configure revision 4e8f48c7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXi 1.8.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libXi/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601as_awk_strverscmp=' 602 # Use only awk features that work with 7th edition Unix awk (1978). 603 # My, what an old awk you have, Mr. Solaris! 604 END { 605 while (length(v1) && length(v2)) { 606 # Set d1 to be the next thing to compare from v1, and likewise for d2. 607 # Normally this is a single character, but if v1 and v2 contain digits, 608 # compare them as integers and fractions as strverscmp does. 609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 610 # Split v1 and v2 into their leading digit string components d1 and d2, 611 # and advance v1 and v2 past the leading digit strings. 612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 616 if (d1 ~ /^0/) { 617 if (d2 ~ /^0/) { 618 # Compare two fractions. 619 while (d1 ~ /^0/ && d2 ~ /^0/) { 620 d1 = substr(d1, 2); len1-- 621 d2 = substr(d2, 2); len2-- 622 } 623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 624 # The two components differ in length, and the common prefix 625 # contains only leading zeros. Consider the longer to be less. 626 d1 = -len1 627 d2 = -len2 628 } else { 629 # Otherwise, compare as strings. 630 d1 = "x" d1 631 d2 = "x" d2 632 } 633 } else { 634 # A fraction is less than an integer. 635 exit 1 636 } 637 } else { 638 if (d2 ~ /^0/) { 639 # An integer is greater than a fraction. 640 exit 2 641 } else { 642 # Compare two integers. 643 d1 += 0 644 d2 += 0 645 } 646 } 647 } else { 648 # The normal case, without worrying about digits. 649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 651 } 652 if (d1 < d2) exit 1 653 if (d1 > d2) exit 2 654 } 655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 656 # which mishandles some comparisons of empty strings to integers. 657 if (length(v2)) exit 1 658 if (length(v1)) exit 2 659 } 660' 661 662test -n "$DJDIR" || exec 7<&0 </dev/null 663exec 6>&1 664 665# Name of the host. 666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 667# so uname gets run too. 668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 669 670# 671# Initializations. 672# 673ac_default_prefix=/usr/local 674ac_clean_files= 675ac_config_libobj_dir=. 676LIBOBJS= 677cross_compiling=no 678subdirs= 679MFLAGS= 680MAKEFLAGS= 681 682# Identity of this package. 683PACKAGE_NAME='libXi' 684PACKAGE_TARNAME='libXi' 685PACKAGE_VERSION='1.8.1' 686PACKAGE_STRING='libXi 1.8.1' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/issues' 688PACKAGE_URL='' 689 690ac_unique_file="Makefile.am" 691# Factoring default headers for most tests. 692ac_includes_default="\ 693#include <stddef.h> 694#ifdef HAVE_STDIO_H 695# include <stdio.h> 696#endif 697#ifdef HAVE_STDLIB_H 698# include <stdlib.h> 699#endif 700#ifdef HAVE_STRING_H 701# include <string.h> 702#endif 703#ifdef HAVE_INTTYPES_H 704# include <inttypes.h> 705#endif 706#ifdef HAVE_STDINT_H 707# include <stdint.h> 708#endif 709#ifdef HAVE_STRINGS_H 710# include <strings.h> 711#endif 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef HAVE_UNISTD_H 719# include <unistd.h> 720#endif" 721 722ac_header_c_list= 723ac_subst_vars='am__EXEEXT_FALSE 724am__EXEEXT_TRUE 725LTLIBOBJS 726LIBOBJS 727INSTALL_MANPAGES_FALSE 728INSTALL_MANPAGES_TRUE 729HAVE_DOCTOOLS_FALSE 730HAVE_DOCTOOLS_TRUE 731XFIXES_LIBS 732XFIXES_CFLAGS 733XI_LIBS 734XI_CFLAGS 735XTMALLOC_ZERO_CFLAGS 736XMALLOC_ZERO_CFLAGS 737MALLOC_ZERO_CFLAGS 738HAVE_ASCIIDOC_FALSE 739HAVE_ASCIIDOC_TRUE 740ASCIIDOC 741HAVE_STYLESHEETS_FALSE 742HAVE_STYLESHEETS_TRUE 743XSL_STYLESHEET 744STYLESHEET_SRCDIR 745XORG_SGML_PATH 746HAVE_XSLTPROC_FALSE 747HAVE_XSLTPROC_TRUE 748XSLTPROC 749HAVE_FOP_FALSE 750HAVE_FOP_TRUE 751FOP 752HAVE_XMLTO_FALSE 753HAVE_XMLTO_TRUE 754HAVE_XMLTO_TEXT_FALSE 755HAVE_XMLTO_TEXT_TRUE 756XMLTO 757ENABLE_SPECS_FALSE 758ENABLE_SPECS_TRUE 759ENABLE_DOCS_FALSE 760ENABLE_DOCS_TRUE 761MAN_SUBSTS 762XORG_MAN_PAGE 763ADMIN_MAN_DIR 764DRIVER_MAN_DIR 765MISC_MAN_DIR 766FILE_MAN_DIR 767LIB_MAN_DIR 768APP_MAN_DIR 769ADMIN_MAN_SUFFIX 770DRIVER_MAN_SUFFIX 771MISC_MAN_SUFFIX 772FILE_MAN_SUFFIX 773LIB_MAN_SUFFIX 774APP_MAN_SUFFIX 775INSTALL_CMD 776PKG_CONFIG_LIBDIR 777PKG_CONFIG_PATH 778PKG_CONFIG 779CHANGELOG_CMD 780STRICT_CFLAGS 781CWARNFLAGS 782BASE_CFLAGS 783LT_SYS_LIBRARY_PATH 784OTOOL64 785OTOOL 786LIPO 787NMEDIT 788DSYMUTIL 789MANIFEST_TOOL 790RANLIB 791ac_ct_AR 792AR 793DLLTOOL 794OBJDUMP 795FILECMD 796LN_S 797NM 798ac_ct_DUMPBIN 799DUMPBIN 800LD 801FGREP 802EGREP 803GREP 804SED 805am__fastdepCC_FALSE 806am__fastdepCC_TRUE 807CCDEPMODE 808am__nodep 809AMDEPBACKSLASH 810AMDEP_FALSE 811AMDEP_TRUE 812am__include 813DEPDIR 814OBJEXT 815EXEEXT 816ac_ct_CC 817CPPFLAGS 818LDFLAGS 819CFLAGS 820CC 821host_os 822host_vendor 823host_cpu 824host 825build_os 826build_vendor 827build_cpu 828build 829LIBTOOL 830AM_BACKSLASH 831AM_DEFAULT_VERBOSITY 832AM_DEFAULT_V 833AM_V 834CSCOPE 835ETAGS 836CTAGS 837am__untar 838am__tar 839AMTAR 840am__leading_dot 841SET_MAKE 842AWK 843mkdir_p 844MKDIR_P 845INSTALL_STRIP_PROGRAM 846STRIP 847install_sh 848MAKEINFO 849AUTOHEADER 850AUTOMAKE 851AUTOCONF 852ACLOCAL 853VERSION 854PACKAGE 855CYGPATH_W 856am__isrc 857INSTALL_DATA 858INSTALL_SCRIPT 859INSTALL_PROGRAM 860target_alias 861host_alias 862build_alias 863LIBS 864ECHO_T 865ECHO_N 866ECHO_C 867DEFS 868mandir 869localedir 870libdir 871psdir 872pdfdir 873dvidir 874htmldir 875infodir 876docdir 877oldincludedir 878includedir 879runstatedir 880localstatedir 881sharedstatedir 882sysconfdir 883datadir 884datarootdir 885libexecdir 886sbindir 887bindir 888program_transform_name 889prefix 890exec_prefix 891PACKAGE_URL 892PACKAGE_BUGREPORT 893PACKAGE_STRING 894PACKAGE_VERSION 895PACKAGE_TARNAME 896PACKAGE_NAME 897PATH_SEPARATOR 898SHELL 899am__quote' 900ac_subst_files='' 901ac_user_opts=' 902enable_option_checking 903enable_silent_rules 904enable_shared 905enable_static 906with_pic 907enable_fast_install 908with_aix_soname 909enable_dependency_tracking 910with_gnu_ld 911with_sysroot 912enable_libtool_lock 913enable_selective_werror 914enable_strict_compilation 915enable_docs 916enable_specs 917with_xmlto 918with_fop 919with_xsltproc 920with_asciidoc 921enable_malloc0returnsnull 922' 923 ac_precious_vars='build_alias 924host_alias 925target_alias 926CC 927CFLAGS 928LDFLAGS 929LIBS 930CPPFLAGS 931LT_SYS_LIBRARY_PATH 932PKG_CONFIG 933PKG_CONFIG_PATH 934PKG_CONFIG_LIBDIR 935XMLTO 936FOP 937XSLTPROC 938ASCIIDOC 939XI_CFLAGS 940XI_LIBS 941XFIXES_CFLAGS 942XFIXES_LIBS' 943 944 945# Initialize some variables set by options. 946ac_init_help= 947ac_init_version=false 948ac_unrecognized_opts= 949ac_unrecognized_sep= 950# The variables have the same names as the options, with 951# dashes changed to underlines. 952cache_file=/dev/null 953exec_prefix=NONE 954no_create= 955no_recursion= 956prefix=NONE 957program_prefix=NONE 958program_suffix=NONE 959program_transform_name=s,x,x, 960silent= 961site= 962srcdir= 963verbose= 964x_includes=NONE 965x_libraries=NONE 966 967# Installation directory options. 968# These are left unexpanded so users can "make install exec_prefix=/foo" 969# and all the variables that are supposed to be based on exec_prefix 970# by default will actually change. 971# Use braces instead of parens because sh, perl, etc. also accept them. 972# (The list follows the same order as the GNU Coding Standards.) 973bindir='${exec_prefix}/bin' 974sbindir='${exec_prefix}/sbin' 975libexecdir='${exec_prefix}/libexec' 976datarootdir='${prefix}/share' 977datadir='${datarootdir}' 978sysconfdir='${prefix}/etc' 979sharedstatedir='${prefix}/com' 980localstatedir='${prefix}/var' 981runstatedir='${localstatedir}/run' 982includedir='${prefix}/include' 983oldincludedir='/usr/include' 984docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 985infodir='${datarootdir}/info' 986htmldir='${docdir}' 987dvidir='${docdir}' 988pdfdir='${docdir}' 989psdir='${docdir}' 990libdir='${exec_prefix}/lib' 991localedir='${datarootdir}/locale' 992mandir='${datarootdir}/man' 993 994ac_prev= 995ac_dashdash= 996for ac_option 997do 998 # If the previous option needs an argument, assign it. 999 if test -n "$ac_prev"; then 1000 eval $ac_prev=\$ac_option 1001 ac_prev= 1002 continue 1003 fi 1004 1005 case $ac_option in 1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1007 *=) ac_optarg= ;; 1008 *) ac_optarg=yes ;; 1009 esac 1010 1011 case $ac_dashdash$ac_option in 1012 --) 1013 ac_dashdash=yes ;; 1014 1015 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1016 ac_prev=bindir ;; 1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1018 bindir=$ac_optarg ;; 1019 1020 -build | --build | --buil | --bui | --bu) 1021 ac_prev=build_alias ;; 1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1023 build_alias=$ac_optarg ;; 1024 1025 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1027 ac_prev=cache_file ;; 1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1030 cache_file=$ac_optarg ;; 1031 1032 --config-cache | -C) 1033 cache_file=config.cache ;; 1034 1035 -datadir | --datadir | --datadi | --datad) 1036 ac_prev=datadir ;; 1037 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1038 datadir=$ac_optarg ;; 1039 1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1041 | --dataroo | --dataro | --datar) 1042 ac_prev=datarootdir ;; 1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1045 datarootdir=$ac_optarg ;; 1046 1047 -disable-* | --disable-*) 1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1052 ac_useropt_orig=$ac_useropt 1053 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1054 case $ac_user_opts in 1055 *" 1056"enable_$ac_useropt" 1057"*) ;; 1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1059 ac_unrecognized_sep=', ';; 1060 esac 1061 eval enable_$ac_useropt=no ;; 1062 1063 -docdir | --docdir | --docdi | --doc | --do) 1064 ac_prev=docdir ;; 1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1066 docdir=$ac_optarg ;; 1067 1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1069 ac_prev=dvidir ;; 1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1071 dvidir=$ac_optarg ;; 1072 1073 -enable-* | --enable-*) 1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1078 ac_useropt_orig=$ac_useropt 1079 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1080 case $ac_user_opts in 1081 *" 1082"enable_$ac_useropt" 1083"*) ;; 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1085 ac_unrecognized_sep=', ';; 1086 esac 1087 eval enable_$ac_useropt=\$ac_optarg ;; 1088 1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1091 | --exec | --exe | --ex) 1092 ac_prev=exec_prefix ;; 1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1095 | --exec=* | --exe=* | --ex=*) 1096 exec_prefix=$ac_optarg ;; 1097 1098 -gas | --gas | --ga | --g) 1099 # Obsolete; use --with-gas. 1100 with_gas=yes ;; 1101 1102 -help | --help | --hel | --he | -h) 1103 ac_init_help=long ;; 1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1105 ac_init_help=recursive ;; 1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1107 ac_init_help=short ;; 1108 1109 -host | --host | --hos | --ho) 1110 ac_prev=host_alias ;; 1111 -host=* | --host=* | --hos=* | --ho=*) 1112 host_alias=$ac_optarg ;; 1113 1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1115 ac_prev=htmldir ;; 1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1117 | --ht=*) 1118 htmldir=$ac_optarg ;; 1119 1120 -includedir | --includedir | --includedi | --included | --include \ 1121 | --includ | --inclu | --incl | --inc) 1122 ac_prev=includedir ;; 1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1124 | --includ=* | --inclu=* | --incl=* | --inc=*) 1125 includedir=$ac_optarg ;; 1126 1127 -infodir | --infodir | --infodi | --infod | --info | --inf) 1128 ac_prev=infodir ;; 1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1130 infodir=$ac_optarg ;; 1131 1132 -libdir | --libdir | --libdi | --libd) 1133 ac_prev=libdir ;; 1134 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1135 libdir=$ac_optarg ;; 1136 1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1138 | --libexe | --libex | --libe) 1139 ac_prev=libexecdir ;; 1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1141 | --libexe=* | --libex=* | --libe=*) 1142 libexecdir=$ac_optarg ;; 1143 1144 -localedir | --localedir | --localedi | --localed | --locale) 1145 ac_prev=localedir ;; 1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1147 localedir=$ac_optarg ;; 1148 1149 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1150 | --localstate | --localstat | --localsta | --localst | --locals) 1151 ac_prev=localstatedir ;; 1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1154 localstatedir=$ac_optarg ;; 1155 1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1157 ac_prev=mandir ;; 1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1159 mandir=$ac_optarg ;; 1160 1161 -nfp | --nfp | --nf) 1162 # Obsolete; use --without-fp. 1163 with_fp=no ;; 1164 1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1166 | --no-cr | --no-c | -n) 1167 no_create=yes ;; 1168 1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1171 no_recursion=yes ;; 1172 1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1175 | --oldin | --oldi | --old | --ol | --o) 1176 ac_prev=oldincludedir ;; 1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1180 oldincludedir=$ac_optarg ;; 1181 1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1183 ac_prev=prefix ;; 1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1185 prefix=$ac_optarg ;; 1186 1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1188 | --program-pre | --program-pr | --program-p) 1189 ac_prev=program_prefix ;; 1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1192 program_prefix=$ac_optarg ;; 1193 1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1195 | --program-suf | --program-su | --program-s) 1196 ac_prev=program_suffix ;; 1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1199 program_suffix=$ac_optarg ;; 1200 1201 -program-transform-name | --program-transform-name \ 1202 | --program-transform-nam | --program-transform-na \ 1203 | --program-transform-n | --program-transform- \ 1204 | --program-transform | --program-transfor \ 1205 | --program-transfo | --program-transf \ 1206 | --program-trans | --program-tran \ 1207 | --progr-tra | --program-tr | --program-t) 1208 ac_prev=program_transform_name ;; 1209 -program-transform-name=* | --program-transform-name=* \ 1210 | --program-transform-nam=* | --program-transform-na=* \ 1211 | --program-transform-n=* | --program-transform-=* \ 1212 | --program-transform=* | --program-transfor=* \ 1213 | --program-transfo=* | --program-transf=* \ 1214 | --program-trans=* | --program-tran=* \ 1215 | --progr-tra=* | --program-tr=* | --program-t=*) 1216 program_transform_name=$ac_optarg ;; 1217 1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1219 ac_prev=pdfdir ;; 1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1221 pdfdir=$ac_optarg ;; 1222 1223 -psdir | --psdir | --psdi | --psd | --ps) 1224 ac_prev=psdir ;; 1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1226 psdir=$ac_optarg ;; 1227 1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1229 | -silent | --silent | --silen | --sile | --sil) 1230 silent=yes ;; 1231 1232 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1233 | --runstate | --runstat | --runsta | --runst | --runs \ 1234 | --run | --ru | --r) 1235 ac_prev=runstatedir ;; 1236 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1237 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1238 | --run=* | --ru=* | --r=*) 1239 runstatedir=$ac_optarg ;; 1240 1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1242 ac_prev=sbindir ;; 1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1244 | --sbi=* | --sb=*) 1245 sbindir=$ac_optarg ;; 1246 1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1249 | --sharedst | --shareds | --shared | --share | --shar \ 1250 | --sha | --sh) 1251 ac_prev=sharedstatedir ;; 1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1255 | --sha=* | --sh=*) 1256 sharedstatedir=$ac_optarg ;; 1257 1258 -site | --site | --sit) 1259 ac_prev=site ;; 1260 -site=* | --site=* | --sit=*) 1261 site=$ac_optarg ;; 1262 1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1264 ac_prev=srcdir ;; 1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1266 srcdir=$ac_optarg ;; 1267 1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1269 | --syscon | --sysco | --sysc | --sys | --sy) 1270 ac_prev=sysconfdir ;; 1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1273 sysconfdir=$ac_optarg ;; 1274 1275 -target | --target | --targe | --targ | --tar | --ta | --t) 1276 ac_prev=target_alias ;; 1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1278 target_alias=$ac_optarg ;; 1279 1280 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1281 verbose=yes ;; 1282 1283 -version | --version | --versio | --versi | --vers | -V) 1284 ac_init_version=: ;; 1285 1286 -with-* | --with-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 as_fn_error $? "invalid package name: \`$ac_useropt'" 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=\$ac_optarg ;; 1301 1302 -without-* | --without-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: \`$ac_useropt'" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=no ;; 1317 1318 --x) 1319 # Obsolete; use --with-x. 1320 with_x=yes ;; 1321 1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1323 | --x-incl | --x-inc | --x-in | --x-i) 1324 ac_prev=x_includes ;; 1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1327 x_includes=$ac_optarg ;; 1328 1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1331 ac_prev=x_libraries ;; 1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1334 x_libraries=$ac_optarg ;; 1335 1336 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1337Try \`$0 --help' for more information" 1338 ;; 1339 1340 *=*) 1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1342 # Reject names that are not valid shell variable names. 1343 case $ac_envvar in #( 1344 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1345 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1346 esac 1347 eval $ac_envvar=\$ac_optarg 1348 export $ac_envvar ;; 1349 1350 *) 1351 # FIXME: should be removed in autoconf 3.0. 1352 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1354 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1355 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1356 ;; 1357 1358 esac 1359done 1360 1361if test -n "$ac_prev"; then 1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1363 as_fn_error $? "missing argument to $ac_option" 1364fi 1365 1366if test -n "$ac_unrecognized_opts"; then 1367 case $enable_option_checking in 1368 no) ;; 1369 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1370 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1371 esac 1372fi 1373 1374# Check all directory arguments for consistency. 1375for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1376 datadir sysconfdir sharedstatedir localstatedir includedir \ 1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1378 libdir localedir mandir runstatedir 1379do 1380 eval ac_val=\$$ac_var 1381 # Remove trailing slashes. 1382 case $ac_val in 1383 */ ) 1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1385 eval $ac_var=\$ac_val;; 1386 esac 1387 # Be sure to have absolute directory names. 1388 case $ac_val in 1389 [\\/$]* | ?:[\\/]* ) continue;; 1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1391 esac 1392 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1393done 1394 1395# There might be people who depend on the old broken behavior: `$host' 1396# used to hold the argument of --host etc. 1397# FIXME: To remove some day. 1398build=$build_alias 1399host=$host_alias 1400target=$target_alias 1401 1402# FIXME: To remove some day. 1403if test "x$host_alias" != x; then 1404 if test "x$build_alias" = x; then 1405 cross_compiling=maybe 1406 elif test "x$build_alias" != "x$host_alias"; then 1407 cross_compiling=yes 1408 fi 1409fi 1410 1411ac_tool_prefix= 1412test -n "$host_alias" && ac_tool_prefix=$host_alias- 1413 1414test "$silent" = yes && exec 6>/dev/null 1415 1416 1417ac_pwd=`pwd` && test -n "$ac_pwd" && 1418ac_ls_di=`ls -di .` && 1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1420 as_fn_error $? "working directory cannot be determined" 1421test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1422 as_fn_error $? "pwd does not report name of working directory" 1423 1424 1425# Find the source files, if location was not specified. 1426if test -z "$srcdir"; then 1427 ac_srcdir_defaulted=yes 1428 # Try the directory containing this script, then the parent directory. 1429 ac_confdir=`$as_dirname -- "$as_myself" || 1430$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1431 X"$as_myself" : 'X\(//\)[^/]' \| \ 1432 X"$as_myself" : 'X\(//\)$' \| \ 1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1434printf "%s\n" X"$as_myself" | 1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\/\)[^/].*/{ 1440 s//\1/ 1441 q 1442 } 1443 /^X\(\/\/\)$/{ 1444 s//\1/ 1445 q 1446 } 1447 /^X\(\/\).*/{ 1448 s//\1/ 1449 q 1450 } 1451 s/.*/./; q'` 1452 srcdir=$ac_confdir 1453 if test ! -r "$srcdir/$ac_unique_file"; then 1454 srcdir=.. 1455 fi 1456else 1457 ac_srcdir_defaulted=no 1458fi 1459if test ! -r "$srcdir/$ac_unique_file"; then 1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1461 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1462fi 1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1464ac_abs_confdir=`( 1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1466 pwd)` 1467# When building in place, set srcdir=. 1468if test "$ac_abs_confdir" = "$ac_pwd"; then 1469 srcdir=. 1470fi 1471# Remove unnecessary trailing slashes from srcdir. 1472# Double slashes in file names in object file debugging info 1473# mess up M-x gdb in Emacs. 1474case $srcdir in 1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1476esac 1477for ac_var in $ac_precious_vars; do 1478 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1479 eval ac_env_${ac_var}_value=\$${ac_var} 1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1482done 1483 1484# 1485# Report the --help message. 1486# 1487if test "$ac_init_help" = "long"; then 1488 # Omit some internal or obsolete options to make the list less imposing. 1489 # This message is too long to be a string in the A/UX 3.1 sh. 1490 cat <<_ACEOF 1491\`configure' configures libXi 1.8.1 to adapt to many kinds of systems. 1492 1493Usage: $0 [OPTION]... [VAR=VALUE]... 1494 1495To assign environment variables (e.g., CC, CFLAGS...), specify them as 1496VAR=VALUE. See below for descriptions of some of the useful variables. 1497 1498Defaults for the options are specified in brackets. 1499 1500Configuration: 1501 -h, --help display this help and exit 1502 --help=short display options specific to this package 1503 --help=recursive display the short help of all the included packages 1504 -V, --version display version information and exit 1505 -q, --quiet, --silent do not print \`checking ...' messages 1506 --cache-file=FILE cache test results in FILE [disabled] 1507 -C, --config-cache alias for \`--cache-file=config.cache' 1508 -n, --no-create do not create output files 1509 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1510 1511Installation directories: 1512 --prefix=PREFIX install architecture-independent files in PREFIX 1513 [$ac_default_prefix] 1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1515 [PREFIX] 1516 1517By default, \`make install' will install all the files in 1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1519an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1520for instance \`--prefix=\$HOME'. 1521 1522For better control, use the options below. 1523 1524Fine tuning of the installation directories: 1525 --bindir=DIR user executables [EPREFIX/bin] 1526 --sbindir=DIR system admin executables [EPREFIX/sbin] 1527 --libexecdir=DIR program executables [EPREFIX/libexec] 1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1531 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1541 --htmldir=DIR html documentation [DOCDIR] 1542 --dvidir=DIR dvi documentation [DOCDIR] 1543 --pdfdir=DIR pdf documentation [DOCDIR] 1544 --psdir=DIR ps documentation [DOCDIR] 1545_ACEOF 1546 1547 cat <<\_ACEOF 1548 1549Program names: 1550 --program-prefix=PREFIX prepend PREFIX to installed program names 1551 --program-suffix=SUFFIX append SUFFIX to installed program names 1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1553 1554System types: 1555 --build=BUILD configure for building on BUILD [guessed] 1556 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1557_ACEOF 1558fi 1559 1560if test -n "$ac_init_help"; then 1561 case $ac_init_help in 1562 short | recursive ) echo "Configuration of libXi 1.8.1:";; 1563 esac 1564 cat <<\_ACEOF 1565 1566Optional Features: 1567 --disable-option-checking ignore unrecognized --enable/--with options 1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1570 --enable-silent-rules less verbose build output (undo: "make V=1") 1571 --disable-silent-rules verbose build output (undo: "make V=0") 1572 --enable-shared[=PKGS] build shared libraries [default=yes] 1573 --enable-static[=PKGS] build static libraries [default=yes] 1574 --enable-fast-install[=PKGS] 1575 optimize for fast installation [default=yes] 1576 --enable-dependency-tracking 1577 do not reject slow dependency extractors 1578 --disable-dependency-tracking 1579 speeds up one-time build 1580 --disable-libtool-lock avoid locking (might break parallel builds) 1581 --disable-selective-werror 1582 Turn off selective compiler errors. (default: 1583 enabled) 1584 --enable-strict-compilation 1585 Enable all warnings from compiler and make them 1586 errors (default: disabled) 1587 --enable-docs Enable building the documentation (default: yes) 1588 --enable-specs Enable building the specs (default: yes) 1589 --enable-malloc0returnsnull 1590 malloc(0) returns NULL (default: auto) 1591 1592Optional Packages: 1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1596 both] 1597 --with-aix-soname=aix|svr4|both 1598 shared library versioning (aka "SONAME") variant to 1599 provide on AIX, [default=aix]. 1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1602 compiler's sysroot if not specified). 1603 --with-xmlto Use xmlto to regenerate documentation (default: 1604 auto) 1605 --with-fop Use fop to regenerate documentation (default: auto) 1606 --with-xsltproc Use xsltproc for the transformation of XML documents 1607 (default: auto) 1608 --with-asciidoc Use asciidoc to regenerate documentation (default: 1609 auto) 1610 1611Some influential environment variables: 1612 CC C compiler command 1613 CFLAGS C compiler flags 1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1615 nonstandard directory <lib dir> 1616 LIBS libraries to pass to the linker, e.g. -l<library> 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1618 you have headers in a nonstandard directory <include dir> 1619 LT_SYS_LIBRARY_PATH 1620 User-defined run-time library search path. 1621 PKG_CONFIG path to pkg-config utility 1622 PKG_CONFIG_PATH 1623 directories to add to pkg-config's search path 1624 PKG_CONFIG_LIBDIR 1625 path overriding pkg-config's built-in search path 1626 XMLTO Path to xmlto command 1627 FOP Path to fop command 1628 XSLTPROC Path to xsltproc command 1629 ASCIIDOC Path to asciidoc command 1630 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1631 XI_LIBS linker flags for XI, overriding pkg-config 1632 XFIXES_CFLAGS 1633 C compiler flags for XFIXES, overriding pkg-config 1634 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1635 1636Use these variables to override the choices made by `configure' or to help 1637it to find libraries and programs with nonstandard names/locations. 1638 1639Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>. 1640_ACEOF 1641ac_status=$? 1642fi 1643 1644if test "$ac_init_help" = "recursive"; then 1645 # If there are subdirs, report their specific --help. 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1647 test -d "$ac_dir" || 1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1649 continue 1650 ac_builddir=. 1651 1652case "$ac_dir" in 1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654*) 1655 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1656 # A ".." for each directory in $ac_dir_suffix. 1657 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1658 case $ac_top_builddir_sub in 1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1661 esac ;; 1662esac 1663ac_abs_top_builddir=$ac_pwd 1664ac_abs_builddir=$ac_pwd$ac_dir_suffix 1665# for backward compatibility: 1666ac_top_builddir=$ac_top_build_prefix 1667 1668case $srcdir in 1669 .) # We are building in place. 1670 ac_srcdir=. 1671 ac_top_srcdir=$ac_top_builddir_sub 1672 ac_abs_top_srcdir=$ac_pwd ;; 1673 [\\/]* | ?:[\\/]* ) # Absolute name. 1674 ac_srcdir=$srcdir$ac_dir_suffix; 1675 ac_top_srcdir=$srcdir 1676 ac_abs_top_srcdir=$srcdir ;; 1677 *) # Relative name. 1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1679 ac_top_srcdir=$ac_top_build_prefix$srcdir 1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1681esac 1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1683 1684 cd "$ac_dir" || { ac_status=$?; continue; } 1685 # Check for configure.gnu first; this name is used for a wrapper for 1686 # Metaconfig's "Configure" on case-insensitive file systems. 1687 if test -f "$ac_srcdir/configure.gnu"; then 1688 echo && 1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1690 elif test -f "$ac_srcdir/configure"; then 1691 echo && 1692 $SHELL "$ac_srcdir/configure" --help=recursive 1693 else 1694 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1695 fi || ac_status=$? 1696 cd "$ac_pwd" || { ac_status=$?; break; } 1697 done 1698fi 1699 1700test -n "$ac_init_help" && exit $ac_status 1701if $ac_init_version; then 1702 cat <<\_ACEOF 1703libXi configure 1.8.1 1704generated by GNU Autoconf 2.71 1705 1706Copyright (C) 2021 Free Software Foundation, Inc. 1707This configure script is free software; the Free Software Foundation 1708gives unlimited permission to copy, distribute and modify it. 1709_ACEOF 1710 exit 1711fi 1712 1713## ------------------------ ## 1714## Autoconf initialization. ## 1715## ------------------------ ## 1716 1717# ac_fn_c_try_compile LINENO 1718# -------------------------- 1719# Try to compile conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_compile () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 rm -f conftest.$ac_objext conftest.beam 1724 if { { ac_try="$ac_compile" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730printf "%s\n" "$ac_try_echo"; } >&5 1731 (eval "$ac_compile") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { 1740 test -z "$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 } && test -s conftest.$ac_objext 1743then : 1744 ac_retval=0 1745else $as_nop 1746 printf "%s\n" "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769printf "%s\n" "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 } 1785then : 1786 ac_retval=0 1787else $as_nop 1788 printf "%s\n" "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_link 1802 1803# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists and can be compiled using the include files in 1806# INCLUDES, setting the cache variable VAR accordingly. 1807ac_fn_c_check_header_compile () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811printf %s "checking for $2... " >&6; } 1812if eval test \${$3+y} 1813then : 1814 printf %s "(cached) " >&6 1815else $as_nop 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO" 1822then : 1823 eval "$3=yes" 1824else $as_nop 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831printf "%s\n" "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_compile 1835 1836# ac_fn_c_check_func LINENO FUNC VAR 1837# ---------------------------------- 1838# Tests whether FUNC exists, setting the cache variable VAR accordingly 1839ac_fn_c_check_func () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843printf %s "checking for $2... " >&6; } 1844if eval test \${$3+y} 1845then : 1846 printf %s "(cached) " >&6 1847else $as_nop 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1852#define $2 innocuous_$2 1853 1854/* System header to define __stub macros and hopefully few prototypes, 1855 which can conflict with char $2 (); below. */ 1856 1857#include <limits.h> 1858#undef $2 1859 1860/* Override any GCC internal prototype to avoid an error. 1861 Use char because int might match the return type of a GCC 1862 builtin and then its argument prototype would still apply. */ 1863#ifdef __cplusplus 1864extern "C" 1865#endif 1866char $2 (); 1867/* The GNU C library defines this for functions which it implements 1868 to always fail with ENOSYS. Some functions are actually named 1869 something starting with __ and the normal name is an alias. */ 1870#if defined __stub_$2 || defined __stub___$2 1871choke me 1872#endif 1873 1874int 1875main (void) 1876{ 1877return $2 (); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_link "$LINENO" 1883then : 1884 eval "$3=yes" 1885else $as_nop 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893printf "%s\n" "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897 1898# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1899# ------------------------------------------------------------------ 1900# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1901# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1902ac_fn_check_decl () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 as_decl_name=`echo $2|sed 's/ *(.*//'` 1906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1907printf %s "checking whether $as_decl_name is declared... " >&6; } 1908if eval test \${$3+y} 1909then : 1910 printf %s "(cached) " >&6 1911else $as_nop 1912 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1913 eval ac_save_FLAGS=\$$6 1914 as_fn_append $6 " $5" 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main (void) 1920{ 1921#ifndef $as_decl_name 1922#ifdef __cplusplus 1923 (void) $as_decl_use; 1924#else 1925 (void) $as_decl_name; 1926#endif 1927#endif 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO" 1934then : 1935 eval "$3=yes" 1936else $as_nop 1937 eval "$3=no" 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1940 eval $6=\$ac_save_FLAGS 1941 1942fi 1943eval ac_res=\$$3 1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945printf "%s\n" "$ac_res" >&6; } 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1947 1948} # ac_fn_check_decl 1949 1950# ac_fn_c_try_run LINENO 1951# ---------------------- 1952# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1953# executables *can* be run. 1954ac_fn_c_try_run () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 if { { ac_try="$ac_link" 1958case "(($ac_try" in 1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1960 *) ac_try_echo=$ac_try;; 1961esac 1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1963printf "%s\n" "$ac_try_echo"; } >&5 1964 (eval "$ac_link") 2>&5 1965 ac_status=$? 1966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1968 { { case "(($ac_try" in 1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1970 *) ac_try_echo=$ac_try;; 1971esac 1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1973printf "%s\n" "$ac_try_echo"; } >&5 1974 (eval "$ac_try") 2>&5 1975 ac_status=$? 1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1977 test $ac_status = 0; }; } 1978then : 1979 ac_retval=0 1980else $as_nop 1981 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1982 printf "%s\n" "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=$ac_status 1986fi 1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 as_fn_set_status $ac_retval 1990 1991} # ac_fn_c_try_run 1992ac_configure_args_raw= 1993for ac_arg 1994do 1995 case $ac_arg in 1996 *\'*) 1997 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1998 esac 1999 as_fn_append ac_configure_args_raw " '$ac_arg'" 2000done 2001 2002case $ac_configure_args_raw in 2003 *$as_nl*) 2004 ac_safe_unquote= ;; 2005 *) 2006 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2007 ac_unsafe_a="$ac_unsafe_z#~" 2008 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2009 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2010esac 2011 2012cat >config.log <<_ACEOF 2013This file contains any messages produced by compilers while 2014running configure, to aid debugging if configure makes a mistake. 2015 2016It was created by libXi $as_me 1.8.1, which was 2017generated by GNU Autoconf 2.71. Invocation command line was 2018 2019 $ $0$ac_configure_args_raw 2020 2021_ACEOF 2022exec 5>>config.log 2023{ 2024cat <<_ASUNAME 2025## --------- ## 2026## Platform. ## 2027## --------- ## 2028 2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2030uname -m = `(uname -m) 2>/dev/null || echo unknown` 2031uname -r = `(uname -r) 2>/dev/null || echo unknown` 2032uname -s = `(uname -s) 2>/dev/null || echo unknown` 2033uname -v = `(uname -v) 2>/dev/null || echo unknown` 2034 2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2037 2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2045 2046_ASUNAME 2047 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 case $as_dir in #((( 2053 '') as_dir=./ ;; 2054 */) ;; 2055 *) as_dir=$as_dir/ ;; 2056 esac 2057 printf "%s\n" "PATH: $as_dir" 2058 done 2059IFS=$as_save_IFS 2060 2061} >&5 2062 2063cat >&5 <<_ACEOF 2064 2065 2066## ----------- ## 2067## Core tests. ## 2068## ----------- ## 2069 2070_ACEOF 2071 2072 2073# Keep a trace of the command line. 2074# Strip out --no-create and --no-recursion so they do not pile up. 2075# Strip out --silent because we don't want to record it for future runs. 2076# Also quote any args containing shell meta-characters. 2077# Make two passes to allow for proper duplicate-argument suppression. 2078ac_configure_args= 2079ac_configure_args0= 2080ac_configure_args1= 2081ac_must_keep_next=false 2082for ac_pass in 1 2 2083do 2084 for ac_arg 2085 do 2086 case $ac_arg in 2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2089 | -silent | --silent | --silen | --sile | --sil) 2090 continue ;; 2091 *\'*) 2092 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2093 esac 2094 case $ac_pass in 2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2096 2) 2097 as_fn_append ac_configure_args1 " '$ac_arg'" 2098 if test $ac_must_keep_next = true; then 2099 ac_must_keep_next=false # Got value, back to normal. 2100 else 2101 case $ac_arg in 2102 *=* | --config-cache | -C | -disable-* | --disable-* \ 2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2105 | -with-* | --with-* | -without-* | --without-* | --x) 2106 case "$ac_configure_args0 " in 2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2108 esac 2109 ;; 2110 -* ) ac_must_keep_next=true ;; 2111 esac 2112 fi 2113 as_fn_append ac_configure_args " '$ac_arg'" 2114 ;; 2115 esac 2116 done 2117done 2118{ ac_configure_args0=; unset ac_configure_args0;} 2119{ ac_configure_args1=; unset ac_configure_args1;} 2120 2121# When interrupted or exit'd, cleanup temporary files, and complete 2122# config.log. We remove comments because anyway the quotes in there 2123# would cause problems or look ugly. 2124# WARNING: Use '\'' to represent an apostrophe within the trap. 2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2126trap 'exit_status=$? 2127 # Sanitize IFS. 2128 IFS=" "" $as_nl" 2129 # Save into config.log some information that might help in debugging. 2130 { 2131 echo 2132 2133 printf "%s\n" "## ---------------- ## 2134## Cache variables. ## 2135## ---------------- ##" 2136 echo 2137 # The following way of writing the cache mishandles newlines in values, 2138( 2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2140 eval ac_val=\$$ac_var 2141 case $ac_val in #( 2142 *${as_nl}*) 2143 case $ac_var in #( 2144 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2145printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2146 esac 2147 case $ac_var in #( 2148 _ | IFS | as_nl) ;; #( 2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2150 *) { eval $ac_var=; unset $ac_var;} ;; 2151 esac ;; 2152 esac 2153 done 2154 (set) 2>&1 | 2155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2156 *${as_nl}ac_space=\ *) 2157 sed -n \ 2158 "s/'\''/'\''\\\\'\'''\''/g; 2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2160 ;; #( 2161 *) 2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2163 ;; 2164 esac | 2165 sort 2166) 2167 echo 2168 2169 printf "%s\n" "## ----------------- ## 2170## Output variables. ## 2171## ----------------- ##" 2172 echo 2173 for ac_var in $ac_subst_vars 2174 do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in 2177 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2178 esac 2179 printf "%s\n" "$ac_var='\''$ac_val'\''" 2180 done | sort 2181 echo 2182 2183 if test -n "$ac_subst_files"; then 2184 printf "%s\n" "## ------------------- ## 2185## File substitutions. ## 2186## ------------------- ##" 2187 echo 2188 for ac_var in $ac_subst_files 2189 do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in 2192 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2193 esac 2194 printf "%s\n" "$ac_var='\''$ac_val'\''" 2195 done | sort 2196 echo 2197 fi 2198 2199 if test -s confdefs.h; then 2200 printf "%s\n" "## ----------- ## 2201## confdefs.h. ## 2202## ----------- ##" 2203 echo 2204 cat confdefs.h 2205 echo 2206 fi 2207 test "$ac_signal" != 0 && 2208 printf "%s\n" "$as_me: caught signal $ac_signal" 2209 printf "%s\n" "$as_me: exit $exit_status" 2210 } >&5 2211 rm -f core *.core core.conftest.* && 2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2213 exit $exit_status 2214' 0 2215for ac_signal in 1 2 13 15; do 2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2217done 2218ac_signal=0 2219 2220# confdefs.h avoids OS command line length limits that DEFS can exceed. 2221rm -f -r conftest* confdefs.h 2222 2223printf "%s\n" "/* confdefs.h */" > confdefs.h 2224 2225# Predefined preprocessor variables. 2226 2227printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2228 2229printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2230 2231printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2232 2233printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2234 2235printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2236 2237printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2238 2239 2240# Let the site file select an alternate cache file if it wants to. 2241# Prefer an explicitly selected file to automatically selected ones. 2242if test -n "$CONFIG_SITE"; then 2243 ac_site_files="$CONFIG_SITE" 2244elif test "x$prefix" != xNONE; then 2245 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2246else 2247 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2248fi 2249 2250for ac_site_file in $ac_site_files 2251do 2252 case $ac_site_file in #( 2253 */*) : 2254 ;; #( 2255 *) : 2256 ac_site_file=./$ac_site_file ;; 2257esac 2258 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2260printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2261 sed 's/^/| /' "$ac_site_file" >&5 2262 . "$ac_site_file" \ 2263 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2265as_fn_error $? "failed to load site script $ac_site_file 2266See \`config.log' for more details" "$LINENO" 5; } 2267 fi 2268done 2269 2270if test -r "$cache_file"; then 2271 # Some versions of bash will fail to source /dev/null (special files 2272 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2273 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2275printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2276 case $cache_file in 2277 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2278 *) . "./$cache_file";; 2279 esac 2280 fi 2281else 2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2283printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2284 >$cache_file 2285fi 2286 2287# Test code for whether the C compiler supports C89 (global declarations) 2288ac_c_conftest_c89_globals=' 2289/* Does the compiler advertise C89 conformance? 2290 Do not test the value of __STDC__, because some compilers set it to 0 2291 while being otherwise adequately conformant. */ 2292#if !defined __STDC__ 2293# error "Compiler does not advertise C89 conformance" 2294#endif 2295 2296#include <stddef.h> 2297#include <stdarg.h> 2298struct stat; 2299/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2300struct buf { int x; }; 2301struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2302static char *e (p, i) 2303 char **p; 2304 int i; 2305{ 2306 return p[i]; 2307} 2308static char *f (char * (*g) (char **, int), char **p, ...) 2309{ 2310 char *s; 2311 va_list v; 2312 va_start (v,p); 2313 s = g (p, va_arg (v,int)); 2314 va_end (v); 2315 return s; 2316} 2317 2318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2319 function prototypes and stuff, but not \xHH hex character constants. 2320 These do not provoke an error unfortunately, instead are silently treated 2321 as an "x". The following induces an error, until -std is added to get 2322 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2323 array size at least. It is necessary to write \x00 == 0 to get something 2324 that is true only with -std. */ 2325int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2326 2327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2328 inside strings and character constants. */ 2329#define FOO(x) '\''x'\'' 2330int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2331 2332int test (int i, double x); 2333struct s1 {int (*f) (int a);}; 2334struct s2 {int (*f) (double a);}; 2335int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2336 int, int);' 2337 2338# Test code for whether the C compiler supports C89 (body of main). 2339ac_c_conftest_c89_main=' 2340ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2341' 2342 2343# Test code for whether the C compiler supports C99 (global declarations) 2344ac_c_conftest_c99_globals=' 2345// Does the compiler advertise C99 conformance? 2346#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2347# error "Compiler does not advertise C99 conformance" 2348#endif 2349 2350#include <stdbool.h> 2351extern int puts (const char *); 2352extern int printf (const char *, ...); 2353extern int dprintf (int, const char *, ...); 2354extern void *malloc (size_t); 2355 2356// Check varargs macros. These examples are taken from C99 6.10.3.5. 2357// dprintf is used instead of fprintf to avoid needing to declare 2358// FILE and stderr. 2359#define debug(...) dprintf (2, __VA_ARGS__) 2360#define showlist(...) puts (#__VA_ARGS__) 2361#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2362static void 2363test_varargs_macros (void) 2364{ 2365 int x = 1234; 2366 int y = 5678; 2367 debug ("Flag"); 2368 debug ("X = %d\n", x); 2369 showlist (The first, second, and third items.); 2370 report (x>y, "x is %d but y is %d", x, y); 2371} 2372 2373// Check long long types. 2374#define BIG64 18446744073709551615ull 2375#define BIG32 4294967295ul 2376#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2377#if !BIG_OK 2378 #error "your preprocessor is broken" 2379#endif 2380#if BIG_OK 2381#else 2382 #error "your preprocessor is broken" 2383#endif 2384static long long int bignum = -9223372036854775807LL; 2385static unsigned long long int ubignum = BIG64; 2386 2387struct incomplete_array 2388{ 2389 int datasize; 2390 double data[]; 2391}; 2392 2393struct named_init { 2394 int number; 2395 const wchar_t *name; 2396 double average; 2397}; 2398 2399typedef const char *ccp; 2400 2401static inline int 2402test_restrict (ccp restrict text) 2403{ 2404 // See if C++-style comments work. 2405 // Iterate through items via the restricted pointer. 2406 // Also check for declarations in for loops. 2407 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2408 continue; 2409 return 0; 2410} 2411 2412// Check varargs and va_copy. 2413static bool 2414test_varargs (const char *format, ...) 2415{ 2416 va_list args; 2417 va_start (args, format); 2418 va_list args_copy; 2419 va_copy (args_copy, args); 2420 2421 const char *str = ""; 2422 int number = 0; 2423 float fnumber = 0; 2424 2425 while (*format) 2426 { 2427 switch (*format++) 2428 { 2429 case '\''s'\'': // string 2430 str = va_arg (args_copy, const char *); 2431 break; 2432 case '\''d'\'': // int 2433 number = va_arg (args_copy, int); 2434 break; 2435 case '\''f'\'': // float 2436 fnumber = va_arg (args_copy, double); 2437 break; 2438 default: 2439 break; 2440 } 2441 } 2442 va_end (args_copy); 2443 va_end (args); 2444 2445 return *str && number && fnumber; 2446} 2447' 2448 2449# Test code for whether the C compiler supports C99 (body of main). 2450ac_c_conftest_c99_main=' 2451 // Check bool. 2452 _Bool success = false; 2453 success |= (argc != 0); 2454 2455 // Check restrict. 2456 if (test_restrict ("String literal") == 0) 2457 success = true; 2458 char *restrict newvar = "Another string"; 2459 2460 // Check varargs. 2461 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2462 test_varargs_macros (); 2463 2464 // Check flexible array members. 2465 struct incomplete_array *ia = 2466 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2467 ia->datasize = 10; 2468 for (int i = 0; i < ia->datasize; ++i) 2469 ia->data[i] = i * 1.234; 2470 2471 // Check named initializers. 2472 struct named_init ni = { 2473 .number = 34, 2474 .name = L"Test wide string", 2475 .average = 543.34343, 2476 }; 2477 2478 ni.number = 58; 2479 2480 int dynamic_array[ni.number]; 2481 dynamic_array[0] = argv[0][0]; 2482 dynamic_array[ni.number - 1] = 543; 2483 2484 // work around unused variable warnings 2485 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2486 || dynamic_array[ni.number - 1] != 543); 2487' 2488 2489# Test code for whether the C compiler supports C11 (global declarations) 2490ac_c_conftest_c11_globals=' 2491// Does the compiler advertise C11 conformance? 2492#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2493# error "Compiler does not advertise C11 conformance" 2494#endif 2495 2496// Check _Alignas. 2497char _Alignas (double) aligned_as_double; 2498char _Alignas (0) no_special_alignment; 2499extern char aligned_as_int; 2500char _Alignas (0) _Alignas (int) aligned_as_int; 2501 2502// Check _Alignof. 2503enum 2504{ 2505 int_alignment = _Alignof (int), 2506 int_array_alignment = _Alignof (int[100]), 2507 char_alignment = _Alignof (char) 2508}; 2509_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2510 2511// Check _Noreturn. 2512int _Noreturn does_not_return (void) { for (;;) continue; } 2513 2514// Check _Static_assert. 2515struct test_static_assert 2516{ 2517 int x; 2518 _Static_assert (sizeof (int) <= sizeof (long int), 2519 "_Static_assert does not work in struct"); 2520 long int y; 2521}; 2522 2523// Check UTF-8 literals. 2524#define u8 syntax error! 2525char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2526 2527// Check duplicate typedefs. 2528typedef long *long_ptr; 2529typedef long int *long_ptr; 2530typedef long_ptr long_ptr; 2531 2532// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2533struct anonymous 2534{ 2535 union { 2536 struct { int i; int j; }; 2537 struct { int k; long int l; } w; 2538 }; 2539 int m; 2540} v1; 2541' 2542 2543# Test code for whether the C compiler supports C11 (body of main). 2544ac_c_conftest_c11_main=' 2545 _Static_assert ((offsetof (struct anonymous, i) 2546 == offsetof (struct anonymous, w.k)), 2547 "Anonymous union alignment botch"); 2548 v1.i = 2; 2549 v1.w.k = 5; 2550 ok |= v1.i != 5; 2551' 2552 2553# Test code for whether the C compiler supports C11 (complete). 2554ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2555${ac_c_conftest_c99_globals} 2556${ac_c_conftest_c11_globals} 2557 2558int 2559main (int argc, char **argv) 2560{ 2561 int ok = 0; 2562 ${ac_c_conftest_c89_main} 2563 ${ac_c_conftest_c99_main} 2564 ${ac_c_conftest_c11_main} 2565 return ok; 2566} 2567" 2568 2569# Test code for whether the C compiler supports C99 (complete). 2570ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2571${ac_c_conftest_c99_globals} 2572 2573int 2574main (int argc, char **argv) 2575{ 2576 int ok = 0; 2577 ${ac_c_conftest_c89_main} 2578 ${ac_c_conftest_c99_main} 2579 return ok; 2580} 2581" 2582 2583# Test code for whether the C compiler supports C89 (complete). 2584ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2585 2586int 2587main (int argc, char **argv) 2588{ 2589 int ok = 0; 2590 ${ac_c_conftest_c89_main} 2591 return ok; 2592} 2593" 2594 2595as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2596as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2597as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2598as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2599as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2600as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2601as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2602as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2603as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2604 2605# Auxiliary files required by this configure script. 2606ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2607 2608# Locations in which to look for auxiliary files. 2609ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2610 2611# Search for a directory containing all of the required auxiliary files, 2612# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2613# If we don't find one directory that contains all the files we need, 2614# we report the set of missing files from the *first* directory in 2615# $ac_aux_dir_candidates and give up. 2616ac_missing_aux_files="" 2617ac_first_candidate=: 2618printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620as_found=false 2621for as_dir in $ac_aux_dir_candidates 2622do 2623 IFS=$as_save_IFS 2624 case $as_dir in #((( 2625 '') as_dir=./ ;; 2626 */) ;; 2627 *) as_dir=$as_dir/ ;; 2628 esac 2629 as_found=: 2630 2631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2632 ac_aux_dir_found=yes 2633 ac_install_sh= 2634 for ac_aux in $ac_aux_files 2635 do 2636 # As a special case, if "install-sh" is required, that requirement 2637 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2638 # and $ac_install_sh is set appropriately for whichever one is found. 2639 if test x"$ac_aux" = x"install-sh" 2640 then 2641 if test -f "${as_dir}install-sh"; then 2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2643 ac_install_sh="${as_dir}install-sh -c" 2644 elif test -f "${as_dir}install.sh"; then 2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2646 ac_install_sh="${as_dir}install.sh -c" 2647 elif test -f "${as_dir}shtool"; then 2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2649 ac_install_sh="${as_dir}shtool install -c" 2650 else 2651 ac_aux_dir_found=no 2652 if $ac_first_candidate; then 2653 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2654 else 2655 break 2656 fi 2657 fi 2658 else 2659 if test -f "${as_dir}${ac_aux}"; then 2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2661 else 2662 ac_aux_dir_found=no 2663 if $ac_first_candidate; then 2664 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2665 else 2666 break 2667 fi 2668 fi 2669 fi 2670 done 2671 if test "$ac_aux_dir_found" = yes; then 2672 ac_aux_dir="$as_dir" 2673 break 2674 fi 2675 ac_first_candidate=false 2676 2677 as_found=false 2678done 2679IFS=$as_save_IFS 2680if $as_found 2681then : 2682 2683else $as_nop 2684 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2685fi 2686 2687 2688# These three variables are undocumented and unsupported, 2689# and are intended to be withdrawn in a future Autoconf release. 2690# They can cause serious problems if a builder's source tree is in a directory 2691# whose full name contains unusual characters. 2692if test -f "${ac_aux_dir}config.guess"; then 2693 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2694fi 2695if test -f "${ac_aux_dir}config.sub"; then 2696 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2697fi 2698if test -f "$ac_aux_dir/configure"; then 2699 ac_configure="$SHELL ${ac_aux_dir}configure" 2700fi 2701 2702# Check that the precious variables saved in the cache have kept the same 2703# value. 2704ac_cache_corrupted=false 2705for ac_var in $ac_precious_vars; do 2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2707 eval ac_new_set=\$ac_env_${ac_var}_set 2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2709 eval ac_new_val=\$ac_env_${ac_var}_value 2710 case $ac_old_set,$ac_new_set in 2711 set,) 2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2713printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2714 ac_cache_corrupted=: ;; 2715 ,set) 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2717printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2718 ac_cache_corrupted=: ;; 2719 ,);; 2720 *) 2721 if test "x$ac_old_val" != "x$ac_new_val"; then 2722 # differences in whitespace do not lead to failure. 2723 ac_old_val_w=`echo x $ac_old_val` 2724 ac_new_val_w=`echo x $ac_new_val` 2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2727printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2728 ac_cache_corrupted=: 2729 else 2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2731printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2732 eval $ac_var=\$ac_old_val 2733 fi 2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2735printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2737printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2738 fi;; 2739 esac 2740 # Pass precious variables to config.status. 2741 if test "$ac_new_set" = set; then 2742 case $ac_new_val in 2743 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2744 *) ac_arg=$ac_var=$ac_new_val ;; 2745 esac 2746 case " $ac_configure_args " in 2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2749 esac 2750 fi 2751done 2752if $ac_cache_corrupted; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2754printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2756printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2757 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2758 and start over" "$LINENO" 5 2759fi 2760## -------------------- ## 2761## Main body of script. ## 2762## -------------------- ## 2763 2764ac_ext=c 2765ac_cpp='$CPP $CPPFLAGS' 2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2768ac_compiler_gnu=$ac_cv_c_compiler_gnu 2769 2770 2771 2772ac_config_headers="$ac_config_headers src/config.h" 2773 2774 2775 2776# Initialize Automake 2777am__api_version='1.16' 2778 2779 2780 2781 # Find a good install program. We prefer a C program (faster), 2782# so one script is as good as another. But avoid the broken or 2783# incompatible versions: 2784# SysV /etc/install, /usr/sbin/install 2785# SunOS /usr/etc/install 2786# IRIX /sbin/install 2787# AIX /bin/install 2788# AmigaOS /C/install, which installs bootblocks on floppy discs 2789# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2790# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2791# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2792# OS/2's system install, which has a completely different semantic 2793# ./install, which can be erroneously created by make from ./install.sh. 2794# Reject install programs that cannot install multiple files. 2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2796printf %s "checking for a BSD-compatible install... " >&6; } 2797if test -z "$INSTALL"; then 2798if test ${ac_cv_path_install+y} 2799then : 2800 printf %s "(cached) " >&6 2801else $as_nop 2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 case $as_dir in #((( 2807 '') as_dir=./ ;; 2808 */) ;; 2809 *) as_dir=$as_dir/ ;; 2810 esac 2811 # Account for fact that we put trailing slashes in our PATH walk. 2812case $as_dir in #(( 2813 ./ | /[cC]/* | \ 2814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2816 /usr/ucb/* ) ;; 2817 *) 2818 # OSF1 and SCO ODT 3.0 have their own names for install. 2819 # Don't use installbsd from OSF since it installs stuff as root 2820 # by default. 2821 for ac_prog in ginstall scoinst install; do 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2824 if test $ac_prog = install && 2825 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2826 # AIX install. It has an incompatible calling convention. 2827 : 2828 elif test $ac_prog = install && 2829 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2830 # program-specific install script used by HP pwplus--don't use. 2831 : 2832 else 2833 rm -rf conftest.one conftest.two conftest.dir 2834 echo one > conftest.one 2835 echo two > conftest.two 2836 mkdir conftest.dir 2837 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2838 test -s conftest.one && test -s conftest.two && 2839 test -s conftest.dir/conftest.one && 2840 test -s conftest.dir/conftest.two 2841 then 2842 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2843 break 3 2844 fi 2845 fi 2846 fi 2847 done 2848 done 2849 ;; 2850esac 2851 2852 done 2853IFS=$as_save_IFS 2854 2855rm -rf conftest.one conftest.two conftest.dir 2856 2857fi 2858 if test ${ac_cv_path_install+y}; then 2859 INSTALL=$ac_cv_path_install 2860 else 2861 # As a last resort, use the slow shell script. Don't cache a 2862 # value for INSTALL within a source directory, because that will 2863 # break other packages using the cache if that directory is 2864 # removed, or if the value is a relative name. 2865 INSTALL=$ac_install_sh 2866 fi 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2869printf "%s\n" "$INSTALL" >&6; } 2870 2871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2872# It thinks the first close brace ends the variable substitution. 2873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2874 2875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2876 2877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2878 2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2880printf %s "checking whether build environment is sane... " >&6; } 2881# Reject unsafe characters in $srcdir or the absolute working directory 2882# name. Accept space and tab only in the latter. 2883am_lf=' 2884' 2885case `pwd` in 2886 *[\\\"\#\$\&\'\`$am_lf]*) 2887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2888esac 2889case $srcdir in 2890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2892esac 2893 2894# Do 'set' in a subshell so we don't clobber the current shell's 2895# arguments. Must try -L first in case configure is actually a 2896# symlink; some systems play weird games with the mod time of symlinks 2897# (eg FreeBSD returns the mod time of the symlink's containing 2898# directory). 2899if ( 2900 am_has_slept=no 2901 for am_try in 1 2; do 2902 echo "timestamp, slept: $am_has_slept" > conftest.file 2903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2904 if test "$*" = "X"; then 2905 # -L didn't work. 2906 set X `ls -t "$srcdir/configure" conftest.file` 2907 fi 2908 if test "$*" != "X $srcdir/configure conftest.file" \ 2909 && test "$*" != "X conftest.file $srcdir/configure"; then 2910 2911 # If neither matched, then we have a broken ls. This can happen 2912 # if, for instance, CONFIG_SHELL is bash and it inherits a 2913 # broken ls alias from the environment. This has actually 2914 # happened. Such a system could not be considered "sane". 2915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2916 alias in your environment" "$LINENO" 5 2917 fi 2918 if test "$2" = conftest.file || test $am_try -eq 2; then 2919 break 2920 fi 2921 # Just in case. 2922 sleep 1 2923 am_has_slept=yes 2924 done 2925 test "$2" = conftest.file 2926 ) 2927then 2928 # Ok. 2929 : 2930else 2931 as_fn_error $? "newly created file is older than distributed files! 2932Check your system clock" "$LINENO" 5 2933fi 2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2935printf "%s\n" "yes" >&6; } 2936# If we didn't sleep, we still need to ensure time stamps of config.status and 2937# generated files are strictly newer. 2938am_sleep_pid= 2939if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2940 ( sleep 1 ) & 2941 am_sleep_pid=$! 2942fi 2943 2944rm -f conftest.file 2945 2946test "$program_prefix" != NONE && 2947 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2948# Use a double $ so make ignores it. 2949test "$program_suffix" != NONE && 2950 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2951# Double any \ or $. 2952# By default was `s,x,x', remove it if useless. 2953ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2954program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2955 2956 2957# Expand $ac_aux_dir to an absolute path. 2958am_aux_dir=`cd "$ac_aux_dir" && pwd` 2959 2960 2961 if test x"${MISSING+set}" != xset; then 2962 MISSING="\${SHELL} '$am_aux_dir/missing'" 2963fi 2964# Use eval to expand $SHELL 2965if eval "$MISSING --is-lightweight"; then 2966 am_missing_run="$MISSING " 2967else 2968 am_missing_run= 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2970printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2971fi 2972 2973if test x"${install_sh+set}" != xset; then 2974 case $am_aux_dir in 2975 *\ * | *\ *) 2976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2977 *) 2978 install_sh="\${SHELL} $am_aux_dir/install-sh" 2979 esac 2980fi 2981 2982# Installed binaries are usually stripped using 'strip' when the user 2983# run "make install-strip". However 'strip' might not be the right 2984# tool to use in cross-compilation environments, therefore Automake 2985# will honor the 'STRIP' environment variable to overrule this program. 2986if test "$cross_compiling" != no; then 2987 if test -n "$ac_tool_prefix"; then 2988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2989set dummy ${ac_tool_prefix}strip; ac_word=$2 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991printf %s "checking for $ac_word... " >&6; } 2992if test ${ac_cv_prog_STRIP+y} 2993then : 2994 printf %s "(cached) " >&6 2995else $as_nop 2996 if test -n "$STRIP"; then 2997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 case $as_dir in #((( 3004 '') as_dir=./ ;; 3005 */) ;; 3006 *) as_dir=$as_dir/ ;; 3007 esac 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi 3019fi 3020STRIP=$ac_cv_prog_STRIP 3021if test -n "$STRIP"; then 3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3023printf "%s\n" "$STRIP" >&6; } 3024else 3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026printf "%s\n" "no" >&6; } 3027fi 3028 3029 3030fi 3031if test -z "$ac_cv_prog_STRIP"; then 3032 ac_ct_STRIP=$STRIP 3033 # Extract the first word of "strip", so it can be a program name with args. 3034set dummy strip; ac_word=$2 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3036printf %s "checking for $ac_word... " >&6; } 3037if test ${ac_cv_prog_ac_ct_STRIP+y} 3038then : 3039 printf %s "(cached) " >&6 3040else $as_nop 3041 if test -n "$ac_ct_STRIP"; then 3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 case $as_dir in #((( 3049 '') as_dir=./ ;; 3050 */) ;; 3051 *) as_dir=$as_dir/ ;; 3052 esac 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_ac_ct_STRIP="strip" 3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3066if test -n "$ac_ct_STRIP"; then 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3068printf "%s\n" "$ac_ct_STRIP" >&6; } 3069else 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071printf "%s\n" "no" >&6; } 3072fi 3073 3074 if test "x$ac_ct_STRIP" = x; then 3075 STRIP=":" 3076 else 3077 case $cross_compiling:$ac_tool_warned in 3078yes:) 3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3080printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3081ac_tool_warned=yes ;; 3082esac 3083 STRIP=$ac_ct_STRIP 3084 fi 3085else 3086 STRIP="$ac_cv_prog_STRIP" 3087fi 3088 3089fi 3090INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3091 3092 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3094printf %s "checking for a race-free mkdir -p... " >&6; } 3095if test -z "$MKDIR_P"; then 3096 if test ${ac_cv_path_mkdir+y} 3097then : 3098 printf %s "(cached) " >&6 3099else $as_nop 3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3102do 3103 IFS=$as_save_IFS 3104 case $as_dir in #((( 3105 '') as_dir=./ ;; 3106 */) ;; 3107 *) as_dir=$as_dir/ ;; 3108 esac 3109 for ac_prog in mkdir gmkdir; do 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3112 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3113 'mkdir ('*'coreutils) '* | \ 3114 'BusyBox '* | \ 3115 'mkdir (fileutils) '4.1*) 3116 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3117 break 3;; 3118 esac 3119 done 3120 done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125 3126 test -d ./--version && rmdir ./--version 3127 if test ${ac_cv_path_mkdir+y}; then 3128 MKDIR_P="$ac_cv_path_mkdir -p" 3129 else 3130 # As a last resort, use the slow shell script. Don't cache a 3131 # value for MKDIR_P within a source directory, because that will 3132 # break other packages using the cache if that directory is 3133 # removed, or if the value is a relative name. 3134 MKDIR_P="$ac_install_sh -d" 3135 fi 3136fi 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3138printf "%s\n" "$MKDIR_P" >&6; } 3139 3140for ac_prog in gawk mawk nawk awk 3141do 3142 # Extract the first word of "$ac_prog", so it can be a program name with args. 3143set dummy $ac_prog; ac_word=$2 3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145printf %s "checking for $ac_word... " >&6; } 3146if test ${ac_cv_prog_AWK+y} 3147then : 3148 printf %s "(cached) " >&6 3149else $as_nop 3150 if test -n "$AWK"; then 3151 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 case $as_dir in #((( 3158 '') as_dir=./ ;; 3159 */) ;; 3160 *) as_dir=$as_dir/ ;; 3161 esac 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3164 ac_cv_prog_AWK="$ac_prog" 3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168done 3169 done 3170IFS=$as_save_IFS 3171 3172fi 3173fi 3174AWK=$ac_cv_prog_AWK 3175if test -n "$AWK"; then 3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3177printf "%s\n" "$AWK" >&6; } 3178else 3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180printf "%s\n" "no" >&6; } 3181fi 3182 3183 3184 test -n "$AWK" && break 3185done 3186 3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3188printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3189set x ${MAKE-make} 3190ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3191if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3192then : 3193 printf %s "(cached) " >&6 3194else $as_nop 3195 cat >conftest.make <<\_ACEOF 3196SHELL = /bin/sh 3197all: 3198 @echo '@@@%%%=$(MAKE)=@@@%%%' 3199_ACEOF 3200# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3201case `${MAKE-make} -f conftest.make 2>/dev/null` in 3202 *@@@%%%=?*=@@@%%%*) 3203 eval ac_cv_prog_make_${ac_make}_set=yes;; 3204 *) 3205 eval ac_cv_prog_make_${ac_make}_set=no;; 3206esac 3207rm -f conftest.make 3208fi 3209if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3211printf "%s\n" "yes" >&6; } 3212 SET_MAKE= 3213else 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215printf "%s\n" "no" >&6; } 3216 SET_MAKE="MAKE=${MAKE-make}" 3217fi 3218 3219rm -rf .tst 2>/dev/null 3220mkdir .tst 2>/dev/null 3221if test -d .tst; then 3222 am__leading_dot=. 3223else 3224 am__leading_dot=_ 3225fi 3226rmdir .tst 2>/dev/null 3227 3228# Check whether --enable-silent-rules was given. 3229if test ${enable_silent_rules+y} 3230then : 3231 enableval=$enable_silent_rules; 3232fi 3233 3234case $enable_silent_rules in # ((( 3235 yes) AM_DEFAULT_VERBOSITY=0;; 3236 no) AM_DEFAULT_VERBOSITY=1;; 3237 *) AM_DEFAULT_VERBOSITY=1;; 3238esac 3239am_make=${MAKE-make} 3240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3241printf %s "checking whether $am_make supports nested variables... " >&6; } 3242if test ${am_cv_make_support_nested_variables+y} 3243then : 3244 printf %s "(cached) " >&6 3245else $as_nop 3246 if printf "%s\n" 'TRUE=$(BAR$(V)) 3247BAR0=false 3248BAR1=true 3249V=1 3250am__doit: 3251 @$(TRUE) 3252.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3253 am_cv_make_support_nested_variables=yes 3254else 3255 am_cv_make_support_nested_variables=no 3256fi 3257fi 3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3259printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3260if test $am_cv_make_support_nested_variables = yes; then 3261 AM_V='$(V)' 3262 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3263else 3264 AM_V=$AM_DEFAULT_VERBOSITY 3265 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3266fi 3267AM_BACKSLASH='\' 3268 3269if test "`cd $srcdir && pwd`" != "`pwd`"; then 3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3271 # is not polluted with repeated "-I." 3272 am__isrc=' -I$(srcdir)' 3273 # test to see if srcdir already configured 3274 if test -f $srcdir/config.status; then 3275 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3276 fi 3277fi 3278 3279# test whether we have cygpath 3280if test -z "$CYGPATH_W"; then 3281 if (cygpath --version) >/dev/null 2>/dev/null; then 3282 CYGPATH_W='cygpath -w' 3283 else 3284 CYGPATH_W=echo 3285 fi 3286fi 3287 3288 3289# Define the identity of the package. 3290 PACKAGE='libXi' 3291 VERSION='1.8.1' 3292 3293 3294printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3295 3296 3297printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3298 3299# Some tools Automake needs. 3300 3301ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3302 3303 3304AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3305 3306 3307AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3308 3309 3310AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3311 3312 3313MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3314 3315# For better backward compatibility. To be removed once Automake 1.9.x 3316# dies out for good. For more background, see: 3317# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3318# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3319mkdir_p='$(MKDIR_P)' 3320 3321# We need awk for the "check" target (and possibly the TAP driver). The 3322# system "awk" is bad on some platforms. 3323# Always define AMTAR for backward compatibility. Yes, it's still used 3324# in the wild :-( We should find a proper way to deprecate it ... 3325AMTAR='$${TAR-tar}' 3326 3327 3328# We'll loop over all known methods to create a tar archive until one works. 3329_am_tools='gnutar pax cpio none' 3330 3331am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3332 3333 3334 3335 3336 3337# Variables for tags utilities; see am/tags.am 3338if test -z "$CTAGS"; then 3339 CTAGS=ctags 3340fi 3341 3342if test -z "$ETAGS"; then 3343 ETAGS=etags 3344fi 3345 3346if test -z "$CSCOPE"; then 3347 CSCOPE=cscope 3348fi 3349 3350 3351 3352# POSIX will say in a future version that running "rm -f" with no argument 3353# is OK; and we want to be able to make that assumption in our Makefile 3354# recipes. So use an aggressive probe to check that the usage we want is 3355# actually supported "in the wild" to an acceptable degree. 3356# See automake bug#10828. 3357# To make any issue more visible, cause the running configure to be aborted 3358# by default if the 'rm' program in use doesn't match our expectations; the 3359# user can still override this though. 3360if rm -f && rm -fr && rm -rf; then : OK; else 3361 cat >&2 <<'END' 3362Oops! 3363 3364Your 'rm' program seems unable to run without file operands specified 3365on the command line, even when the '-f' option is present. This is contrary 3366to the behaviour of most rm programs out there, and not conforming with 3367the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3368 3369Please tell bug-automake@gnu.org about your system, including the value 3370of your $PATH and any error possibly output before this message. This 3371can help us improve future automake versions. 3372 3373END 3374 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3375 echo 'Configuration will proceed anyway, since you have set the' >&2 3376 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3377 echo >&2 3378 else 3379 cat >&2 <<'END' 3380Aborting the configuration process, to ensure you take notice of the issue. 3381 3382You can download and install GNU coreutils to get an 'rm' implementation 3383that behaves properly: <https://www.gnu.org/software/coreutils/>. 3384 3385If you want to complete the configuration process using your problematic 3386'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3387to "yes", and re-run configure. 3388 3389END 3390 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3391 fi 3392fi 3393 3394 3395# Initialize libtool 3396case `pwd` in 3397 *\ * | *\ *) 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3399printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3400esac 3401 3402 3403 3404macro_version='2.4.7' 3405macro_revision='2.4.7' 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420ltmain=$ac_aux_dir/ltmain.sh 3421 3422 3423 3424 # Make sure we can run config.sub. 3425$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3426 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3427 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3429printf %s "checking build system type... " >&6; } 3430if test ${ac_cv_build+y} 3431then : 3432 printf %s "(cached) " >&6 3433else $as_nop 3434 ac_build_alias=$build_alias 3435test "x$ac_build_alias" = x && 3436 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3437test "x$ac_build_alias" = x && 3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3439ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3440 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3441 3442fi 3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3444printf "%s\n" "$ac_cv_build" >&6; } 3445case $ac_cv_build in 3446*-*-*) ;; 3447*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3448esac 3449build=$ac_cv_build 3450ac_save_IFS=$IFS; IFS='-' 3451set x $ac_cv_build 3452shift 3453build_cpu=$1 3454build_vendor=$2 3455shift; shift 3456# Remember, the first character of IFS is used to create $*, 3457# except with old shells: 3458build_os=$* 3459IFS=$ac_save_IFS 3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3461 3462 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3464printf %s "checking host system type... " >&6; } 3465if test ${ac_cv_host+y} 3466then : 3467 printf %s "(cached) " >&6 3468else $as_nop 3469 if test "x$host_alias" = x; then 3470 ac_cv_host=$ac_cv_build 3471else 3472 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3473 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3474fi 3475 3476fi 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3478printf "%s\n" "$ac_cv_host" >&6; } 3479case $ac_cv_host in 3480*-*-*) ;; 3481*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3482esac 3483host=$ac_cv_host 3484ac_save_IFS=$IFS; IFS='-' 3485set x $ac_cv_host 3486shift 3487host_cpu=$1 3488host_vendor=$2 3489shift; shift 3490# Remember, the first character of IFS is used to create $*, 3491# except with old shells: 3492host_os=$* 3493IFS=$ac_save_IFS 3494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3495 3496 3497# Backslashify metacharacters that are still active within 3498# double-quoted strings. 3499sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3500 3501# Same as above, but do not quote variable references. 3502double_quote_subst='s/\(["`\\]\)/\\\1/g' 3503 3504# Sed substitution to delay expansion of an escaped shell variable in a 3505# double_quote_subst'ed string. 3506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3507 3508# Sed substitution to delay expansion of an escaped single quote. 3509delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3510 3511# Sed substitution to avoid accidental globbing in evaled expressions 3512no_glob_subst='s/\*/\\\*/g' 3513 3514ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3515ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3517 3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3519printf %s "checking how to print strings... " >&6; } 3520# Test print first, because it will be a builtin if present. 3521if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3523 ECHO='print -r --' 3524elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3525 ECHO='printf %s\n' 3526else 3527 # Use this function as a fallback that always works. 3528 func_fallback_echo () 3529 { 3530 eval 'cat <<_LTECHO_EOF 3531$1 3532_LTECHO_EOF' 3533 } 3534 ECHO='func_fallback_echo' 3535fi 3536 3537# func_echo_all arg... 3538# Invoke $ECHO with all args, space-separated. 3539func_echo_all () 3540{ 3541 $ECHO "" 3542} 3543 3544case $ECHO in 3545 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3546printf "%s\n" "printf" >&6; } ;; 3547 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3548printf "%s\n" "print -r" >&6; } ;; 3549 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3550printf "%s\n" "cat" >&6; } ;; 3551esac 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575DEPDIR="${am__leading_dot}deps" 3576 3577ac_config_commands="$ac_config_commands depfiles" 3578 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3580printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3581cat > confinc.mk << 'END' 3582am__doit: 3583 @echo this is the am__doit target >confinc.out 3584.PHONY: am__doit 3585END 3586am__include="#" 3587am__quote= 3588# BSD make does it like this. 3589echo '.include "confinc.mk" # ignored' > confmf.BSD 3590# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3591echo 'include confinc.mk # ignored' > confmf.GNU 3592_am_result=no 3593for s in GNU BSD; do 3594 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3595 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } 3599 case $?:`cat confinc.out 2>/dev/null` in #( 3600 '0:this is the am__doit target') : 3601 case $s in #( 3602 BSD) : 3603 am__include='.include' am__quote='"' ;; #( 3604 *) : 3605 am__include='include' am__quote='' ;; 3606esac ;; #( 3607 *) : 3608 ;; 3609esac 3610 if test "$am__include" != "#"; then 3611 _am_result="yes ($s style)" 3612 break 3613 fi 3614done 3615rm -f confinc.* confmf.* 3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3617printf "%s\n" "${_am_result}" >&6; } 3618 3619# Check whether --enable-dependency-tracking was given. 3620if test ${enable_dependency_tracking+y} 3621then : 3622 enableval=$enable_dependency_tracking; 3623fi 3624 3625if test "x$enable_dependency_tracking" != xno; then 3626 am_depcomp="$ac_aux_dir/depcomp" 3627 AMDEPBACKSLASH='\' 3628 am__nodep='_no' 3629fi 3630 if test "x$enable_dependency_tracking" != xno; then 3631 AMDEP_TRUE= 3632 AMDEP_FALSE='#' 3633else 3634 AMDEP_TRUE='#' 3635 AMDEP_FALSE= 3636fi 3637 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644if test -n "$ac_tool_prefix"; then 3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3646set dummy ${ac_tool_prefix}gcc; ac_word=$2 3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3648printf %s "checking for $ac_word... " >&6; } 3649if test ${ac_cv_prog_CC+y} 3650then : 3651 printf %s "(cached) " >&6 3652else $as_nop 3653 if test -n "$CC"; then 3654 ac_cv_prog_CC="$CC" # Let the user override the test. 3655else 3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3657for as_dir in $PATH 3658do 3659 IFS=$as_save_IFS 3660 case $as_dir in #((( 3661 '') as_dir=./ ;; 3662 */) ;; 3663 *) as_dir=$as_dir/ ;; 3664 esac 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3667 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3669 break 2 3670 fi 3671done 3672 done 3673IFS=$as_save_IFS 3674 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680printf "%s\n" "$CC" >&6; } 3681else 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683printf "%s\n" "no" >&6; } 3684fi 3685 3686 3687fi 3688if test -z "$ac_cv_prog_CC"; then 3689 ac_ct_CC=$CC 3690 # Extract the first word of "gcc", so it can be a program name with args. 3691set dummy gcc; ac_word=$2 3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3693printf %s "checking for $ac_word... " >&6; } 3694if test ${ac_cv_prog_ac_ct_CC+y} 3695then : 3696 printf %s "(cached) " >&6 3697else $as_nop 3698 if test -n "$ac_ct_CC"; then 3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3700else 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 case $as_dir in #((( 3706 '') as_dir=./ ;; 3707 */) ;; 3708 *) as_dir=$as_dir/ ;; 3709 esac 3710 for ac_exec_ext in '' $ac_executable_extensions; do 3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3712 ac_cv_prog_ac_ct_CC="gcc" 3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3714 break 2 3715 fi 3716done 3717 done 3718IFS=$as_save_IFS 3719 3720fi 3721fi 3722ac_ct_CC=$ac_cv_prog_ac_ct_CC 3723if test -n "$ac_ct_CC"; then 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3725printf "%s\n" "$ac_ct_CC" >&6; } 3726else 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728printf "%s\n" "no" >&6; } 3729fi 3730 3731 if test "x$ac_ct_CC" = x; then 3732 CC="" 3733 else 3734 case $cross_compiling:$ac_tool_warned in 3735yes:) 3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3738ac_tool_warned=yes ;; 3739esac 3740 CC=$ac_ct_CC 3741 fi 3742else 3743 CC="$ac_cv_prog_CC" 3744fi 3745 3746if test -z "$CC"; then 3747 if test -n "$ac_tool_prefix"; then 3748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3749set dummy ${ac_tool_prefix}cc; ac_word=$2 3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3751printf %s "checking for $ac_word... " >&6; } 3752if test ${ac_cv_prog_CC+y} 3753then : 3754 printf %s "(cached) " >&6 3755else $as_nop 3756 if test -n "$CC"; then 3757 ac_cv_prog_CC="$CC" # Let the user override the test. 3758else 3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3760for as_dir in $PATH 3761do 3762 IFS=$as_save_IFS 3763 case $as_dir in #((( 3764 '') as_dir=./ ;; 3765 */) ;; 3766 *) as_dir=$as_dir/ ;; 3767 esac 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3770 ac_cv_prog_CC="${ac_tool_prefix}cc" 3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3772 break 2 3773 fi 3774done 3775 done 3776IFS=$as_save_IFS 3777 3778fi 3779fi 3780CC=$ac_cv_prog_CC 3781if test -n "$CC"; then 3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3783printf "%s\n" "$CC" >&6; } 3784else 3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3786printf "%s\n" "no" >&6; } 3787fi 3788 3789 3790 fi 3791fi 3792if test -z "$CC"; then 3793 # Extract the first word of "cc", so it can be a program name with args. 3794set dummy cc; ac_word=$2 3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3796printf %s "checking for $ac_word... " >&6; } 3797if test ${ac_cv_prog_CC+y} 3798then : 3799 printf %s "(cached) " >&6 3800else $as_nop 3801 if test -n "$CC"; then 3802 ac_cv_prog_CC="$CC" # Let the user override the test. 3803else 3804 ac_prog_rejected=no 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 case $as_dir in #((( 3810 '') as_dir=./ ;; 3811 */) ;; 3812 *) as_dir=$as_dir/ ;; 3813 esac 3814 for ac_exec_ext in '' $ac_executable_extensions; do 3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3816 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3817 ac_prog_rejected=yes 3818 continue 3819 fi 3820 ac_cv_prog_CC="cc" 3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3822 break 2 3823 fi 3824done 3825 done 3826IFS=$as_save_IFS 3827 3828if test $ac_prog_rejected = yes; then 3829 # We found a bogon in the path, so make sure we never use it. 3830 set dummy $ac_cv_prog_CC 3831 shift 3832 if test $# != 0; then 3833 # We chose a different compiler from the bogus one. 3834 # However, it has the same basename, so the bogon will be chosen 3835 # first if we set CC to just the basename; use the full file name. 3836 shift 3837 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3838 fi 3839fi 3840fi 3841fi 3842CC=$ac_cv_prog_CC 3843if test -n "$CC"; then 3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3845printf "%s\n" "$CC" >&6; } 3846else 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3848printf "%s\n" "no" >&6; } 3849fi 3850 3851 3852fi 3853if test -z "$CC"; then 3854 if test -n "$ac_tool_prefix"; then 3855 for ac_prog in cl.exe 3856 do 3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3858set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3860printf %s "checking for $ac_word... " >&6; } 3861if test ${ac_cv_prog_CC+y} 3862then : 3863 printf %s "(cached) " >&6 3864else $as_nop 3865 if test -n "$CC"; then 3866 ac_cv_prog_CC="$CC" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 case $as_dir in #((( 3873 '') as_dir=./ ;; 3874 */) ;; 3875 *) as_dir=$as_dir/ ;; 3876 esac 3877 for ac_exec_ext in '' $ac_executable_extensions; do 3878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887fi 3888fi 3889CC=$ac_cv_prog_CC 3890if test -n "$CC"; then 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3892printf "%s\n" "$CC" >&6; } 3893else 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895printf "%s\n" "no" >&6; } 3896fi 3897 3898 3899 test -n "$CC" && break 3900 done 3901fi 3902if test -z "$CC"; then 3903 ac_ct_CC=$CC 3904 for ac_prog in cl.exe 3905do 3906 # Extract the first word of "$ac_prog", so it can be a program name with args. 3907set dummy $ac_prog; ac_word=$2 3908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3909printf %s "checking for $ac_word... " >&6; } 3910if test ${ac_cv_prog_ac_ct_CC+y} 3911then : 3912 printf %s "(cached) " >&6 3913else $as_nop 3914 if test -n "$ac_ct_CC"; then 3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3916else 3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH 3919do 3920 IFS=$as_save_IFS 3921 case $as_dir in #((( 3922 '') as_dir=./ ;; 3923 */) ;; 3924 *) as_dir=$as_dir/ ;; 3925 esac 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3928 ac_cv_prog_ac_ct_CC="$ac_prog" 3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3930 break 2 3931 fi 3932done 3933 done 3934IFS=$as_save_IFS 3935 3936fi 3937fi 3938ac_ct_CC=$ac_cv_prog_ac_ct_CC 3939if test -n "$ac_ct_CC"; then 3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3941printf "%s\n" "$ac_ct_CC" >&6; } 3942else 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3944printf "%s\n" "no" >&6; } 3945fi 3946 3947 3948 test -n "$ac_ct_CC" && break 3949done 3950 3951 if test "x$ac_ct_CC" = x; then 3952 CC="" 3953 else 3954 case $cross_compiling:$ac_tool_warned in 3955yes:) 3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3958ac_tool_warned=yes ;; 3959esac 3960 CC=$ac_ct_CC 3961 fi 3962fi 3963 3964fi 3965if test -z "$CC"; then 3966 if test -n "$ac_tool_prefix"; then 3967 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3968set dummy ${ac_tool_prefix}clang; ac_word=$2 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3970printf %s "checking for $ac_word... " >&6; } 3971if test ${ac_cv_prog_CC+y} 3972then : 3973 printf %s "(cached) " >&6 3974else $as_nop 3975 if test -n "$CC"; then 3976 ac_cv_prog_CC="$CC" # Let the user override the test. 3977else 3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH 3980do 3981 IFS=$as_save_IFS 3982 case $as_dir in #((( 3983 '') as_dir=./ ;; 3984 */) ;; 3985 *) as_dir=$as_dir/ ;; 3986 esac 3987 for ac_exec_ext in '' $ac_executable_extensions; do 3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3989 ac_cv_prog_CC="${ac_tool_prefix}clang" 3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3991 break 2 3992 fi 3993done 3994 done 3995IFS=$as_save_IFS 3996 3997fi 3998fi 3999CC=$ac_cv_prog_CC 4000if test -n "$CC"; then 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4002printf "%s\n" "$CC" >&6; } 4003else 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4005printf "%s\n" "no" >&6; } 4006fi 4007 4008 4009fi 4010if test -z "$ac_cv_prog_CC"; then 4011 ac_ct_CC=$CC 4012 # Extract the first word of "clang", so it can be a program name with args. 4013set dummy clang; ac_word=$2 4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015printf %s "checking for $ac_word... " >&6; } 4016if test ${ac_cv_prog_ac_ct_CC+y} 4017then : 4018 printf %s "(cached) " >&6 4019else $as_nop 4020 if test -n "$ac_ct_CC"; then 4021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4022else 4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024for as_dir in $PATH 4025do 4026 IFS=$as_save_IFS 4027 case $as_dir in #((( 4028 '') as_dir=./ ;; 4029 */) ;; 4030 *) as_dir=$as_dir/ ;; 4031 esac 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4034 ac_cv_prog_ac_ct_CC="clang" 4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044ac_ct_CC=$ac_cv_prog_ac_ct_CC 4045if test -n "$ac_ct_CC"; then 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4047printf "%s\n" "$ac_ct_CC" >&6; } 4048else 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050printf "%s\n" "no" >&6; } 4051fi 4052 4053 if test "x$ac_ct_CC" = x; then 4054 CC="" 4055 else 4056 case $cross_compiling:$ac_tool_warned in 4057yes:) 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4060ac_tool_warned=yes ;; 4061esac 4062 CC=$ac_ct_CC 4063 fi 4064else 4065 CC="$ac_cv_prog_CC" 4066fi 4067 4068fi 4069 4070 4071test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4072printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4073as_fn_error $? "no acceptable C compiler found in \$PATH 4074See \`config.log' for more details" "$LINENO" 5; } 4075 4076# Provide some information about the compiler. 4077printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4078set X $ac_compile 4079ac_compiler=$2 4080for ac_option in --version -v -V -qversion -version; do 4081 { { ac_try="$ac_compiler $ac_option >&5" 4082case "(($ac_try" in 4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4084 *) ac_try_echo=$ac_try;; 4085esac 4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4087printf "%s\n" "$ac_try_echo"; } >&5 4088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4089 ac_status=$? 4090 if test -s conftest.err; then 4091 sed '10a\ 4092... rest of stderr output deleted ... 4093 10q' conftest.err >conftest.er1 4094 cat conftest.er1 >&5 4095 fi 4096 rm -f conftest.er1 conftest.err 4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4098 test $ac_status = 0; } 4099done 4100 4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104int 4105main (void) 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112ac_clean_files_save=$ac_clean_files 4113ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4114# Try to create an executable without -o first, disregard a.out. 4115# It will help us diagnose broken compilers, and finding out an intuition 4116# of exeext. 4117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4118printf %s "checking whether the C compiler works... " >&6; } 4119ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4120 4121# The possible output files: 4122ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4123 4124ac_rmfiles= 4125for ac_file in $ac_files 4126do 4127 case $ac_file in 4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4129 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4130 esac 4131done 4132rm -f $ac_rmfiles 4133 4134if { { ac_try="$ac_link_default" 4135case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138esac 4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4140printf "%s\n" "$ac_try_echo"; } >&5 4141 (eval "$ac_link_default") 2>&5 4142 ac_status=$? 4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; } 4145then : 4146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4147# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4148# in a Makefile. We should not override ac_cv_exeext if it was cached, 4149# so that the user can short-circuit this test for compilers unknown to 4150# Autoconf. 4151for ac_file in $ac_files '' 4152do 4153 test -f "$ac_file" || continue 4154 case $ac_file in 4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4156 ;; 4157 [ab].out ) 4158 # We found the default executable, but exeext='' is most 4159 # certainly right. 4160 break;; 4161 *.* ) 4162 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4163 then :; else 4164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4165 fi 4166 # We set ac_cv_exeext here because the later test for it is not 4167 # safe: cross compilers may not add the suffix if given an `-o' 4168 # argument, so we may need to know it at that point already. 4169 # Even if this section looks crufty: it has the advantage of 4170 # actually working. 4171 break;; 4172 * ) 4173 break;; 4174 esac 4175done 4176test "$ac_cv_exeext" = no && ac_cv_exeext= 4177 4178else $as_nop 4179 ac_file='' 4180fi 4181if test -z "$ac_file" 4182then : 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184printf "%s\n" "no" >&6; } 4185printf "%s\n" "$as_me: failed program was:" >&5 4186sed 's/^/| /' conftest.$ac_ext >&5 4187 4188{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4190as_fn_error 77 "C compiler cannot create executables 4191See \`config.log' for more details" "$LINENO" 5; } 4192else $as_nop 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4194printf "%s\n" "yes" >&6; } 4195fi 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4197printf %s "checking for C compiler default output file name... " >&6; } 4198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4199printf "%s\n" "$ac_file" >&6; } 4200ac_exeext=$ac_cv_exeext 4201 4202rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4203ac_clean_files=$ac_clean_files_save 4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4205printf %s "checking for suffix of executables... " >&6; } 4206if { { ac_try="$ac_link" 4207case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4212printf "%s\n" "$ac_try_echo"; } >&5 4213 (eval "$ac_link") 2>&5 4214 ac_status=$? 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4216 test $ac_status = 0; } 4217then : 4218 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4220# work properly (i.e., refer to `conftest.exe'), while it won't with 4221# `rm'. 4222for ac_file in conftest.exe conftest conftest.*; do 4223 test -f "$ac_file" || continue 4224 case $ac_file in 4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4227 break;; 4228 * ) break;; 4229 esac 4230done 4231else $as_nop 4232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4233printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4234as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4235See \`config.log' for more details" "$LINENO" 5; } 4236fi 4237rm -f conftest conftest$ac_cv_exeext 4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4239printf "%s\n" "$ac_cv_exeext" >&6; } 4240 4241rm -f conftest.$ac_ext 4242EXEEXT=$ac_cv_exeext 4243ac_exeext=$EXEEXT 4244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <stdio.h> 4247int 4248main (void) 4249{ 4250FILE *f = fopen ("conftest.out", "w"); 4251 return ferror (f) || fclose (f) != 0; 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257ac_clean_files="$ac_clean_files conftest.out" 4258# Check that the compiler produces executables we can run. If not, either 4259# the compiler is broken, or we cross compile. 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4261printf %s "checking whether we are cross compiling... " >&6; } 4262if test "$cross_compiling" != yes; then 4263 { { ac_try="$ac_link" 4264case "(($ac_try" in 4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4266 *) ac_try_echo=$ac_try;; 4267esac 4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4269printf "%s\n" "$ac_try_echo"; } >&5 4270 (eval "$ac_link") 2>&5 4271 ac_status=$? 4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4273 test $ac_status = 0; } 4274 if { ac_try='./conftest$ac_cv_exeext' 4275 { { case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4280printf "%s\n" "$ac_try_echo"; } >&5 4281 (eval "$ac_try") 2>&5 4282 ac_status=$? 4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4284 test $ac_status = 0; }; }; then 4285 cross_compiling=no 4286 else 4287 if test "$cross_compiling" = maybe; then 4288 cross_compiling=yes 4289 else 4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4292as_fn_error 77 "cannot run C compiled programs. 4293If you meant to cross compile, use \`--host'. 4294See \`config.log' for more details" "$LINENO" 5; } 4295 fi 4296 fi 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4299printf "%s\n" "$cross_compiling" >&6; } 4300 4301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4302ac_clean_files=$ac_clean_files_save 4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4304printf %s "checking for suffix of object files... " >&6; } 4305if test ${ac_cv_objext+y} 4306then : 4307 printf %s "(cached) " >&6 4308else $as_nop 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312int 4313main (void) 4314{ 4315 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320rm -f conftest.o conftest.obj 4321if { { ac_try="$ac_compile" 4322case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325esac 4326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4327printf "%s\n" "$ac_try_echo"; } >&5 4328 (eval "$ac_compile") 2>&5 4329 ac_status=$? 4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4331 test $ac_status = 0; } 4332then : 4333 for ac_file in conftest.o conftest.obj conftest.*; do 4334 test -f "$ac_file" || continue; 4335 case $ac_file in 4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4338 break;; 4339 esac 4340done 4341else $as_nop 4342 printf "%s\n" "$as_me: failed program was:" >&5 4343sed 's/^/| /' conftest.$ac_ext >&5 4344 4345{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4346printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4347as_fn_error $? "cannot compute suffix of object files: cannot compile 4348See \`config.log' for more details" "$LINENO" 5; } 4349fi 4350rm -f conftest.$ac_cv_objext conftest.$ac_ext 4351fi 4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4353printf "%s\n" "$ac_cv_objext" >&6; } 4354OBJEXT=$ac_cv_objext 4355ac_objext=$OBJEXT 4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4357printf %s "checking whether the compiler supports GNU C... " >&6; } 4358if test ${ac_cv_c_compiler_gnu+y} 4359then : 4360 printf %s "(cached) " >&6 4361else $as_nop 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4363/* end confdefs.h. */ 4364 4365int 4366main (void) 4367{ 4368#ifndef __GNUC__ 4369 choke me 4370#endif 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376if ac_fn_c_try_compile "$LINENO" 4377then : 4378 ac_compiler_gnu=yes 4379else $as_nop 4380 ac_compiler_gnu=no 4381fi 4382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4383ac_cv_c_compiler_gnu=$ac_compiler_gnu 4384 4385fi 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4387printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4388ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390if test $ac_compiler_gnu = yes; then 4391 GCC=yes 4392else 4393 GCC= 4394fi 4395ac_test_CFLAGS=${CFLAGS+y} 4396ac_save_CFLAGS=$CFLAGS 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4398printf %s "checking whether $CC accepts -g... " >&6; } 4399if test ${ac_cv_prog_cc_g+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 ac_save_c_werror_flag=$ac_c_werror_flag 4404 ac_c_werror_flag=yes 4405 ac_cv_prog_cc_g=no 4406 CFLAGS="-g" 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main (void) 4412{ 4413 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418if ac_fn_c_try_compile "$LINENO" 4419then : 4420 ac_cv_prog_cc_g=yes 4421else $as_nop 4422 CFLAGS="" 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425 4426int 4427main (void) 4428{ 4429 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434if ac_fn_c_try_compile "$LINENO" 4435then : 4436 4437else $as_nop 4438 ac_c_werror_flag=$ac_save_c_werror_flag 4439 CFLAGS="-g" 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main (void) 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_compile "$LINENO" 4452then : 4453 ac_cv_prog_cc_g=yes 4454fi 4455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4456fi 4457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4458fi 4459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4460 ac_c_werror_flag=$ac_save_c_werror_flag 4461fi 4462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4463printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4464if test $ac_test_CFLAGS; then 4465 CFLAGS=$ac_save_CFLAGS 4466elif test $ac_cv_prog_cc_g = yes; then 4467 if test "$GCC" = yes; then 4468 CFLAGS="-g -O2" 4469 else 4470 CFLAGS="-g" 4471 fi 4472else 4473 if test "$GCC" = yes; then 4474 CFLAGS="-O2" 4475 else 4476 CFLAGS= 4477 fi 4478fi 4479ac_prog_cc_stdc=no 4480if test x$ac_prog_cc_stdc = xno 4481then : 4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4483printf %s "checking for $CC option to enable C11 features... " >&6; } 4484if test ${ac_cv_prog_cc_c11+y} 4485then : 4486 printf %s "(cached) " >&6 4487else $as_nop 4488 ac_cv_prog_cc_c11=no 4489ac_save_CC=$CC 4490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492$ac_c_conftest_c11_program 4493_ACEOF 4494for ac_arg in '' -std=gnu11 4495do 4496 CC="$ac_save_CC $ac_arg" 4497 if ac_fn_c_try_compile "$LINENO" 4498then : 4499 ac_cv_prog_cc_c11=$ac_arg 4500fi 4501rm -f core conftest.err conftest.$ac_objext conftest.beam 4502 test "x$ac_cv_prog_cc_c11" != "xno" && break 4503done 4504rm -f conftest.$ac_ext 4505CC=$ac_save_CC 4506fi 4507 4508if test "x$ac_cv_prog_cc_c11" = xno 4509then : 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4511printf "%s\n" "unsupported" >&6; } 4512else $as_nop 4513 if test "x$ac_cv_prog_cc_c11" = x 4514then : 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4516printf "%s\n" "none needed" >&6; } 4517else $as_nop 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4519printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4520 CC="$CC $ac_cv_prog_cc_c11" 4521fi 4522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4523 ac_prog_cc_stdc=c11 4524fi 4525fi 4526if test x$ac_prog_cc_stdc = xno 4527then : 4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4529printf %s "checking for $CC option to enable C99 features... " >&6; } 4530if test ${ac_cv_prog_cc_c99+y} 4531then : 4532 printf %s "(cached) " >&6 4533else $as_nop 4534 ac_cv_prog_cc_c99=no 4535ac_save_CC=$CC 4536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538$ac_c_conftest_c99_program 4539_ACEOF 4540for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4541do 4542 CC="$ac_save_CC $ac_arg" 4543 if ac_fn_c_try_compile "$LINENO" 4544then : 4545 ac_cv_prog_cc_c99=$ac_arg 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.beam 4548 test "x$ac_cv_prog_cc_c99" != "xno" && break 4549done 4550rm -f conftest.$ac_ext 4551CC=$ac_save_CC 4552fi 4553 4554if test "x$ac_cv_prog_cc_c99" = xno 4555then : 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4557printf "%s\n" "unsupported" >&6; } 4558else $as_nop 4559 if test "x$ac_cv_prog_cc_c99" = x 4560then : 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4562printf "%s\n" "none needed" >&6; } 4563else $as_nop 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4565printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4566 CC="$CC $ac_cv_prog_cc_c99" 4567fi 4568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4569 ac_prog_cc_stdc=c99 4570fi 4571fi 4572if test x$ac_prog_cc_stdc = xno 4573then : 4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4575printf %s "checking for $CC option to enable C89 features... " >&6; } 4576if test ${ac_cv_prog_cc_c89+y} 4577then : 4578 printf %s "(cached) " >&6 4579else $as_nop 4580 ac_cv_prog_cc_c89=no 4581ac_save_CC=$CC 4582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584$ac_c_conftest_c89_program 4585_ACEOF 4586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4587do 4588 CC="$ac_save_CC $ac_arg" 4589 if ac_fn_c_try_compile "$LINENO" 4590then : 4591 ac_cv_prog_cc_c89=$ac_arg 4592fi 4593rm -f core conftest.err conftest.$ac_objext conftest.beam 4594 test "x$ac_cv_prog_cc_c89" != "xno" && break 4595done 4596rm -f conftest.$ac_ext 4597CC=$ac_save_CC 4598fi 4599 4600if test "x$ac_cv_prog_cc_c89" = xno 4601then : 4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4603printf "%s\n" "unsupported" >&6; } 4604else $as_nop 4605 if test "x$ac_cv_prog_cc_c89" = x 4606then : 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4608printf "%s\n" "none needed" >&6; } 4609else $as_nop 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4611printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4612 CC="$CC $ac_cv_prog_cc_c89" 4613fi 4614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4615 ac_prog_cc_stdc=c89 4616fi 4617fi 4618 4619ac_ext=c 4620ac_cpp='$CPP $CPPFLAGS' 4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4623ac_compiler_gnu=$ac_cv_c_compiler_gnu 4624 4625 4626 ac_ext=c 4627ac_cpp='$CPP $CPPFLAGS' 4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4630ac_compiler_gnu=$ac_cv_c_compiler_gnu 4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4632printf %s "checking whether $CC understands -c and -o together... " >&6; } 4633if test ${am_cv_prog_cc_c_o+y} 4634then : 4635 printf %s "(cached) " >&6 4636else $as_nop 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639 4640int 4641main (void) 4642{ 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648 # Make sure it works both with $CC and with simple cc. 4649 # Following AC_PROG_CC_C_O, we do the test twice because some 4650 # compilers refuse to overwrite an existing .o file with -o, 4651 # though they will create one. 4652 am_cv_prog_cc_c_o=yes 4653 for am_i in 1 2; do 4654 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4655 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4656 ac_status=$? 4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4658 (exit $ac_status); } \ 4659 && test -f conftest2.$ac_objext; then 4660 : OK 4661 else 4662 am_cv_prog_cc_c_o=no 4663 break 4664 fi 4665 done 4666 rm -f core conftest* 4667 unset am_i 4668fi 4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4670printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4671if test "$am_cv_prog_cc_c_o" != yes; then 4672 # Losing compiler, so override with the script. 4673 # FIXME: It is wrong to rewrite CC. 4674 # But if we don't then we get into trouble of one sort or another. 4675 # A longer-term fix would be to have automake use am__CC in this case, 4676 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4677 CC="$am_aux_dir/compile $CC" 4678fi 4679ac_ext=c 4680ac_cpp='$CPP $CPPFLAGS' 4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4683ac_compiler_gnu=$ac_cv_c_compiler_gnu 4684 4685 4686depcc="$CC" am_compiler_list= 4687 4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4689printf %s "checking dependency style of $depcc... " >&6; } 4690if test ${am_cv_CC_dependencies_compiler_type+y} 4691then : 4692 printf %s "(cached) " >&6 4693else $as_nop 4694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4695 # We make a subdir and do the tests there. Otherwise we can end up 4696 # making bogus files that we don't know about and never remove. For 4697 # instance it was reported that on HP-UX the gcc test will end up 4698 # making a dummy file named 'D' -- because '-MD' means "put the output 4699 # in D". 4700 rm -rf conftest.dir 4701 mkdir conftest.dir 4702 # Copy depcomp to subdir because otherwise we won't find it if we're 4703 # using a relative directory. 4704 cp "$am_depcomp" conftest.dir 4705 cd conftest.dir 4706 # We will build objects and dependencies in a subdirectory because 4707 # it helps to detect inapplicable dependency modes. For instance 4708 # both Tru64's cc and ICC support -MD to output dependencies as a 4709 # side effect of compilation, but ICC will put the dependencies in 4710 # the current directory while Tru64 will put them in the object 4711 # directory. 4712 mkdir sub 4713 4714 am_cv_CC_dependencies_compiler_type=none 4715 if test "$am_compiler_list" = ""; then 4716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4717 fi 4718 am__universal=false 4719 case " $depcc " in #( 4720 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4721 esac 4722 4723 for depmode in $am_compiler_list; do 4724 # Setup a source with many dependencies, because some compilers 4725 # like to wrap large dependency lists on column 80 (with \), and 4726 # we should not choose a depcomp mode which is confused by this. 4727 # 4728 # We need to recreate these files for each test, as the compiler may 4729 # overwrite some of them when testing with obscure command lines. 4730 # This happens at least with the AIX C compiler. 4731 : > sub/conftest.c 4732 for i in 1 2 3 4 5 6; do 4733 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4734 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4735 # Solaris 10 /bin/sh. 4736 echo '/* dummy */' > sub/conftst$i.h 4737 done 4738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4739 4740 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4741 # mode. It turns out that the SunPro C++ compiler does not properly 4742 # handle '-M -o', and we need to detect this. Also, some Intel 4743 # versions had trouble with output in subdirs. 4744 am__obj=sub/conftest.${OBJEXT-o} 4745 am__minus_obj="-o $am__obj" 4746 case $depmode in 4747 gcc) 4748 # This depmode causes a compiler race in universal mode. 4749 test "$am__universal" = false || continue 4750 ;; 4751 nosideeffect) 4752 # After this tag, mechanisms are not by side-effect, so they'll 4753 # only be used when explicitly requested. 4754 if test "x$enable_dependency_tracking" = xyes; then 4755 continue 4756 else 4757 break 4758 fi 4759 ;; 4760 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4761 # This compiler won't grok '-c -o', but also, the minuso test has 4762 # not run yet. These depmodes are late enough in the game, and 4763 # so weak that their functioning should not be impacted. 4764 am__obj=conftest.${OBJEXT-o} 4765 am__minus_obj= 4766 ;; 4767 none) break ;; 4768 esac 4769 if depmode=$depmode \ 4770 source=sub/conftest.c object=$am__obj \ 4771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4772 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4773 >/dev/null 2>conftest.err && 4774 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4776 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4778 # icc doesn't choke on unknown options, it will just issue warnings 4779 # or remarks (even with -Werror). So we grep stderr for any message 4780 # that says an option was ignored or not supported. 4781 # When given -MP, icc 7.0 and 7.1 complain thusly: 4782 # icc: Command line warning: ignoring option '-M'; no argument required 4783 # The diagnosis changed in icc 8.0: 4784 # icc: Command line remark: option '-MP' not supported 4785 if (grep 'ignoring option' conftest.err || 4786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4787 am_cv_CC_dependencies_compiler_type=$depmode 4788 break 4789 fi 4790 fi 4791 done 4792 4793 cd .. 4794 rm -rf conftest.dir 4795else 4796 am_cv_CC_dependencies_compiler_type=none 4797fi 4798 4799fi 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4801printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4802CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4803 4804 if 4805 test "x$enable_dependency_tracking" != xno \ 4806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4807 am__fastdepCC_TRUE= 4808 am__fastdepCC_FALSE='#' 4809else 4810 am__fastdepCC_TRUE='#' 4811 am__fastdepCC_FALSE= 4812fi 4813 4814 4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4816printf %s "checking for a sed that does not truncate output... " >&6; } 4817if test ${ac_cv_path_SED+y} 4818then : 4819 printf %s "(cached) " >&6 4820else $as_nop 4821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4822 for ac_i in 1 2 3 4 5 6 7; do 4823 ac_script="$ac_script$as_nl$ac_script" 4824 done 4825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4826 { ac_script=; unset ac_script;} 4827 if test -z "$SED"; then 4828 ac_path_SED_found=false 4829 # Loop through the user's path and test for each of PROGNAME-LIST 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831for as_dir in $PATH 4832do 4833 IFS=$as_save_IFS 4834 case $as_dir in #((( 4835 '') as_dir=./ ;; 4836 */) ;; 4837 *) as_dir=$as_dir/ ;; 4838 esac 4839 for ac_prog in sed gsed 4840 do 4841 for ac_exec_ext in '' $ac_executable_extensions; do 4842 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4843 as_fn_executable_p "$ac_path_SED" || continue 4844# Check for GNU ac_path_SED and select it if it is found. 4845 # Check for GNU $ac_path_SED 4846case `"$ac_path_SED" --version 2>&1` in 4847*GNU*) 4848 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4849*) 4850 ac_count=0 4851 printf %s 0123456789 >"conftest.in" 4852 while : 4853 do 4854 cat "conftest.in" "conftest.in" >"conftest.tmp" 4855 mv "conftest.tmp" "conftest.in" 4856 cp "conftest.in" "conftest.nl" 4857 printf "%s\n" '' >> "conftest.nl" 4858 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4860 as_fn_arith $ac_count + 1 && ac_count=$as_val 4861 if test $ac_count -gt ${ac_path_SED_max-0}; then 4862 # Best one so far, save it but keep looking for a better one 4863 ac_cv_path_SED="$ac_path_SED" 4864 ac_path_SED_max=$ac_count 4865 fi 4866 # 10*(2^10) chars as input seems more than enough 4867 test $ac_count -gt 10 && break 4868 done 4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4870esac 4871 4872 $ac_path_SED_found && break 3 4873 done 4874 done 4875 done 4876IFS=$as_save_IFS 4877 if test -z "$ac_cv_path_SED"; then 4878 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4879 fi 4880else 4881 ac_cv_path_SED=$SED 4882fi 4883 4884fi 4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4886printf "%s\n" "$ac_cv_path_SED" >&6; } 4887 SED="$ac_cv_path_SED" 4888 rm -f conftest.sed 4889 4890test -z "$SED" && SED=sed 4891Xsed="$SED -e 1s/^X//" 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4904printf %s "checking for grep that handles long lines and -e... " >&6; } 4905if test ${ac_cv_path_GREP+y} 4906then : 4907 printf %s "(cached) " >&6 4908else $as_nop 4909 if test -z "$GREP"; then 4910 ac_path_GREP_found=false 4911 # Loop through the user's path and test for each of PROGNAME-LIST 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4914do 4915 IFS=$as_save_IFS 4916 case $as_dir in #((( 4917 '') as_dir=./ ;; 4918 */) ;; 4919 *) as_dir=$as_dir/ ;; 4920 esac 4921 for ac_prog in grep ggrep 4922 do 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4925 as_fn_executable_p "$ac_path_GREP" || continue 4926# Check for GNU ac_path_GREP and select it if it is found. 4927 # Check for GNU $ac_path_GREP 4928case `"$ac_path_GREP" --version 2>&1` in 4929*GNU*) 4930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4931*) 4932 ac_count=0 4933 printf %s 0123456789 >"conftest.in" 4934 while : 4935 do 4936 cat "conftest.in" "conftest.in" >"conftest.tmp" 4937 mv "conftest.tmp" "conftest.in" 4938 cp "conftest.in" "conftest.nl" 4939 printf "%s\n" 'GREP' >> "conftest.nl" 4940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4942 as_fn_arith $ac_count + 1 && ac_count=$as_val 4943 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4944 # Best one so far, save it but keep looking for a better one 4945 ac_cv_path_GREP="$ac_path_GREP" 4946 ac_path_GREP_max=$ac_count 4947 fi 4948 # 10*(2^10) chars as input seems more than enough 4949 test $ac_count -gt 10 && break 4950 done 4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4952esac 4953 4954 $ac_path_GREP_found && break 3 4955 done 4956 done 4957 done 4958IFS=$as_save_IFS 4959 if test -z "$ac_cv_path_GREP"; then 4960 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4961 fi 4962else 4963 ac_cv_path_GREP=$GREP 4964fi 4965 4966fi 4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4968printf "%s\n" "$ac_cv_path_GREP" >&6; } 4969 GREP="$ac_cv_path_GREP" 4970 4971 4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4973printf %s "checking for egrep... " >&6; } 4974if test ${ac_cv_path_EGREP+y} 4975then : 4976 printf %s "(cached) " >&6 4977else $as_nop 4978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4979 then ac_cv_path_EGREP="$GREP -E" 4980 else 4981 if test -z "$EGREP"; then 4982 ac_path_EGREP_found=false 4983 # Loop through the user's path and test for each of PROGNAME-LIST 4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4986do 4987 IFS=$as_save_IFS 4988 case $as_dir in #((( 4989 '') as_dir=./ ;; 4990 */) ;; 4991 *) as_dir=$as_dir/ ;; 4992 esac 4993 for ac_prog in egrep 4994 do 4995 for ac_exec_ext in '' $ac_executable_extensions; do 4996 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4997 as_fn_executable_p "$ac_path_EGREP" || continue 4998# Check for GNU ac_path_EGREP and select it if it is found. 4999 # Check for GNU $ac_path_EGREP 5000case `"$ac_path_EGREP" --version 2>&1` in 5001*GNU*) 5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5003*) 5004 ac_count=0 5005 printf %s 0123456789 >"conftest.in" 5006 while : 5007 do 5008 cat "conftest.in" "conftest.in" >"conftest.tmp" 5009 mv "conftest.tmp" "conftest.in" 5010 cp "conftest.in" "conftest.nl" 5011 printf "%s\n" 'EGREP' >> "conftest.nl" 5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5014 as_fn_arith $ac_count + 1 && ac_count=$as_val 5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5016 # Best one so far, save it but keep looking for a better one 5017 ac_cv_path_EGREP="$ac_path_EGREP" 5018 ac_path_EGREP_max=$ac_count 5019 fi 5020 # 10*(2^10) chars as input seems more than enough 5021 test $ac_count -gt 10 && break 5022 done 5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5024esac 5025 5026 $ac_path_EGREP_found && break 3 5027 done 5028 done 5029 done 5030IFS=$as_save_IFS 5031 if test -z "$ac_cv_path_EGREP"; then 5032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5033 fi 5034else 5035 ac_cv_path_EGREP=$EGREP 5036fi 5037 5038 fi 5039fi 5040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5041printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5042 EGREP="$ac_cv_path_EGREP" 5043 5044 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5046printf %s "checking for fgrep... " >&6; } 5047if test ${ac_cv_path_FGREP+y} 5048then : 5049 printf %s "(cached) " >&6 5050else $as_nop 5051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5052 then ac_cv_path_FGREP="$GREP -F" 5053 else 5054 if test -z "$FGREP"; then 5055 ac_path_FGREP_found=false 5056 # Loop through the user's path and test for each of PROGNAME-LIST 5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5059do 5060 IFS=$as_save_IFS 5061 case $as_dir in #((( 5062 '') as_dir=./ ;; 5063 */) ;; 5064 *) as_dir=$as_dir/ ;; 5065 esac 5066 for ac_prog in fgrep 5067 do 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5070 as_fn_executable_p "$ac_path_FGREP" || continue 5071# Check for GNU ac_path_FGREP and select it if it is found. 5072 # Check for GNU $ac_path_FGREP 5073case `"$ac_path_FGREP" --version 2>&1` in 5074*GNU*) 5075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5076*) 5077 ac_count=0 5078 printf %s 0123456789 >"conftest.in" 5079 while : 5080 do 5081 cat "conftest.in" "conftest.in" >"conftest.tmp" 5082 mv "conftest.tmp" "conftest.in" 5083 cp "conftest.in" "conftest.nl" 5084 printf "%s\n" 'FGREP' >> "conftest.nl" 5085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5087 as_fn_arith $ac_count + 1 && ac_count=$as_val 5088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5089 # Best one so far, save it but keep looking for a better one 5090 ac_cv_path_FGREP="$ac_path_FGREP" 5091 ac_path_FGREP_max=$ac_count 5092 fi 5093 # 10*(2^10) chars as input seems more than enough 5094 test $ac_count -gt 10 && break 5095 done 5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5097esac 5098 5099 $ac_path_FGREP_found && break 3 5100 done 5101 done 5102 done 5103IFS=$as_save_IFS 5104 if test -z "$ac_cv_path_FGREP"; then 5105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5106 fi 5107else 5108 ac_cv_path_FGREP=$FGREP 5109fi 5110 5111 fi 5112fi 5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5114printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5115 FGREP="$ac_cv_path_FGREP" 5116 5117 5118test -z "$GREP" && GREP=grep 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138# Check whether --with-gnu-ld was given. 5139if test ${with_gnu_ld+y} 5140then : 5141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5142else $as_nop 5143 with_gnu_ld=no 5144fi 5145 5146ac_prog=ld 5147if test yes = "$GCC"; then 5148 # Check if gcc -print-prog-name=ld gives a path. 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5150printf %s "checking for ld used by $CC... " >&6; } 5151 case $host in 5152 *-*-mingw*) 5153 # gcc leaves a trailing carriage return, which upsets mingw 5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5155 *) 5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5157 esac 5158 case $ac_prog in 5159 # Accept absolute paths. 5160 [\\/]* | ?:[\\/]*) 5161 re_direlt='/[^/][^/]*/\.\./' 5162 # Canonicalize the pathname of ld 5163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5166 done 5167 test -z "$LD" && LD=$ac_prog 5168 ;; 5169 "") 5170 # If it fails, then pretend we aren't using GCC. 5171 ac_prog=ld 5172 ;; 5173 *) 5174 # If it is relative, then search for the first ld in PATH. 5175 with_gnu_ld=unknown 5176 ;; 5177 esac 5178elif test yes = "$with_gnu_ld"; then 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5180printf %s "checking for GNU ld... " >&6; } 5181else 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5183printf %s "checking for non-GNU ld... " >&6; } 5184fi 5185if test ${lt_cv_path_LD+y} 5186then : 5187 printf %s "(cached) " >&6 5188else $as_nop 5189 if test -z "$LD"; then 5190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5191 for ac_dir in $PATH; do 5192 IFS=$lt_save_ifs 5193 test -z "$ac_dir" && ac_dir=. 5194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5195 lt_cv_path_LD=$ac_dir/$ac_prog 5196 # Check to see if the program is GNU ld. I'd rather use --version, 5197 # but apparently some variants of GNU ld only accept -v. 5198 # Break only if it was the GNU/non-GNU ld that we prefer. 5199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5200 *GNU* | *'with BFD'*) 5201 test no != "$with_gnu_ld" && break 5202 ;; 5203 *) 5204 test yes != "$with_gnu_ld" && break 5205 ;; 5206 esac 5207 fi 5208 done 5209 IFS=$lt_save_ifs 5210else 5211 lt_cv_path_LD=$LD # Let the user override the test with a path. 5212fi 5213fi 5214 5215LD=$lt_cv_path_LD 5216if test -n "$LD"; then 5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5218printf "%s\n" "$LD" >&6; } 5219else 5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5221printf "%s\n" "no" >&6; } 5222fi 5223test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5225printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5226if test ${lt_cv_prog_gnu_ld+y} 5227then : 5228 printf %s "(cached) " >&6 5229else $as_nop 5230 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5231case `$LD -v 2>&1 </dev/null` in 5232*GNU* | *'with BFD'*) 5233 lt_cv_prog_gnu_ld=yes 5234 ;; 5235*) 5236 lt_cv_prog_gnu_ld=no 5237 ;; 5238esac 5239fi 5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5241printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5242with_gnu_ld=$lt_cv_prog_gnu_ld 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5253printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5254if test ${lt_cv_path_NM+y} 5255then : 5256 printf %s "(cached) " >&6 5257else $as_nop 5258 if test -n "$NM"; then 5259 # Let the user override the test. 5260 lt_cv_path_NM=$NM 5261else 5262 lt_nm_to_check=${ac_tool_prefix}nm 5263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5264 lt_nm_to_check="$lt_nm_to_check nm" 5265 fi 5266 for lt_tmp_nm in $lt_nm_to_check; do 5267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5269 IFS=$lt_save_ifs 5270 test -z "$ac_dir" && ac_dir=. 5271 tmp_nm=$ac_dir/$lt_tmp_nm 5272 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5273 # Check to see if the nm accepts a BSD-compat flag. 5274 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5275 # nm: unknown option "B" ignored 5276 # Tru64's nm complains that /dev/null is an invalid object file 5277 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5278 case $build_os in 5279 mingw*) lt_bad_file=conftest.nm/nofile ;; 5280 *) lt_bad_file=/dev/null ;; 5281 esac 5282 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5283 *$lt_bad_file* | *'Invalid file or object type'*) 5284 lt_cv_path_NM="$tmp_nm -B" 5285 break 2 5286 ;; 5287 *) 5288 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5289 */dev/null*) 5290 lt_cv_path_NM="$tmp_nm -p" 5291 break 2 5292 ;; 5293 *) 5294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5295 continue # so that we can try to find one that supports BSD flags 5296 ;; 5297 esac 5298 ;; 5299 esac 5300 fi 5301 done 5302 IFS=$lt_save_ifs 5303 done 5304 : ${lt_cv_path_NM=no} 5305fi 5306fi 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5308printf "%s\n" "$lt_cv_path_NM" >&6; } 5309if test no != "$lt_cv_path_NM"; then 5310 NM=$lt_cv_path_NM 5311else 5312 # Didn't find any BSD compatible name lister, look for dumpbin. 5313 if test -n "$DUMPBIN"; then : 5314 # Let the user override the test. 5315 else 5316 if test -n "$ac_tool_prefix"; then 5317 for ac_prog in dumpbin "link -dump" 5318 do 5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5320set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322printf %s "checking for $ac_word... " >&6; } 5323if test ${ac_cv_prog_DUMPBIN+y} 5324then : 5325 printf %s "(cached) " >&6 5326else $as_nop 5327 if test -n "$DUMPBIN"; then 5328 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5329else 5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 case $as_dir in #((( 5335 '') as_dir=./ ;; 5336 */) ;; 5337 *) as_dir=$as_dir/ ;; 5338 esac 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349fi 5350fi 5351DUMPBIN=$ac_cv_prog_DUMPBIN 5352if test -n "$DUMPBIN"; then 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5354printf "%s\n" "$DUMPBIN" >&6; } 5355else 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357printf "%s\n" "no" >&6; } 5358fi 5359 5360 5361 test -n "$DUMPBIN" && break 5362 done 5363fi 5364if test -z "$DUMPBIN"; then 5365 ac_ct_DUMPBIN=$DUMPBIN 5366 for ac_prog in dumpbin "link -dump" 5367do 5368 # Extract the first word of "$ac_prog", so it can be a program name with args. 5369set dummy $ac_prog; ac_word=$2 5370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371printf %s "checking for $ac_word... " >&6; } 5372if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5373then : 5374 printf %s "(cached) " >&6 5375else $as_nop 5376 if test -n "$ac_ct_DUMPBIN"; then 5377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5378else 5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH 5381do 5382 IFS=$as_save_IFS 5383 case $as_dir in #((( 5384 '') as_dir=./ ;; 5385 */) ;; 5386 *) as_dir=$as_dir/ ;; 5387 esac 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395 done 5396IFS=$as_save_IFS 5397 5398fi 5399fi 5400ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5401if test -n "$ac_ct_DUMPBIN"; then 5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5403printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5404else 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406printf "%s\n" "no" >&6; } 5407fi 5408 5409 5410 test -n "$ac_ct_DUMPBIN" && break 5411done 5412 5413 if test "x$ac_ct_DUMPBIN" = x; then 5414 DUMPBIN=":" 5415 else 5416 case $cross_compiling:$ac_tool_warned in 5417yes:) 5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5420ac_tool_warned=yes ;; 5421esac 5422 DUMPBIN=$ac_ct_DUMPBIN 5423 fi 5424fi 5425 5426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5427 *COFF*) 5428 DUMPBIN="$DUMPBIN -symbols -headers" 5429 ;; 5430 *) 5431 DUMPBIN=: 5432 ;; 5433 esac 5434 fi 5435 5436 if test : != "$DUMPBIN"; then 5437 NM=$DUMPBIN 5438 fi 5439fi 5440test -z "$NM" && NM=nm 5441 5442 5443 5444 5445 5446 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5448printf %s "checking the name lister ($NM) interface... " >&6; } 5449if test ${lt_cv_nm_interface+y} 5450then : 5451 printf %s "(cached) " >&6 5452else $as_nop 5453 lt_cv_nm_interface="BSD nm" 5454 echo "int some_variable = 0;" > conftest.$ac_ext 5455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5456 (eval "$ac_compile" 2>conftest.err) 5457 cat conftest.err >&5 5458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5460 cat conftest.err >&5 5461 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5462 cat conftest.out >&5 5463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5464 lt_cv_nm_interface="MS dumpbin" 5465 fi 5466 rm -f conftest* 5467fi 5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5469printf "%s\n" "$lt_cv_nm_interface" >&6; } 5470 5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5472printf %s "checking whether ln -s works... " >&6; } 5473LN_S=$as_ln_s 5474if test "$LN_S" = "ln -s"; then 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5476printf "%s\n" "yes" >&6; } 5477else 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5479printf "%s\n" "no, using $LN_S" >&6; } 5480fi 5481 5482# find the maximum length of command line arguments 5483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5484printf %s "checking the maximum length of command line arguments... " >&6; } 5485if test ${lt_cv_sys_max_cmd_len+y} 5486then : 5487 printf %s "(cached) " >&6 5488else $as_nop 5489 i=0 5490 teststring=ABCD 5491 5492 case $build_os in 5493 msdosdjgpp*) 5494 # On DJGPP, this test can blow up pretty badly due to problems in libc 5495 # (any single argument exceeding 2000 bytes causes a buffer overrun 5496 # during glob expansion). Even if it were fixed, the result of this 5497 # check would be larger than it should be. 5498 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5499 ;; 5500 5501 gnu*) 5502 # Under GNU Hurd, this test is not required because there is 5503 # no limit to the length of command line arguments. 5504 # Libtool will interpret -1 as no limit whatsoever 5505 lt_cv_sys_max_cmd_len=-1; 5506 ;; 5507 5508 cygwin* | mingw* | cegcc*) 5509 # On Win9x/ME, this test blows up -- it succeeds, but takes 5510 # about 5 minutes as the teststring grows exponentially. 5511 # Worse, since 9x/ME are not pre-emptively multitasking, 5512 # you end up with a "frozen" computer, even though with patience 5513 # the test eventually succeeds (with a max line length of 256k). 5514 # Instead, let's just punt: use the minimum linelength reported by 5515 # all of the supported platforms: 8192 (on NT/2K/XP). 5516 lt_cv_sys_max_cmd_len=8192; 5517 ;; 5518 5519 mint*) 5520 # On MiNT this can take a long time and run out of memory. 5521 lt_cv_sys_max_cmd_len=8192; 5522 ;; 5523 5524 amigaos*) 5525 # On AmigaOS with pdksh, this test takes hours, literally. 5526 # So we just punt and use a minimum line length of 8192. 5527 lt_cv_sys_max_cmd_len=8192; 5528 ;; 5529 5530 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5531 # This has been around since 386BSD, at least. Likely further. 5532 if test -x /sbin/sysctl; then 5533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5534 elif test -x /usr/sbin/sysctl; then 5535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5536 else 5537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5538 fi 5539 # And add a safety zone 5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5542 ;; 5543 5544 interix*) 5545 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5546 lt_cv_sys_max_cmd_len=196608 5547 ;; 5548 5549 os2*) 5550 # The test takes a long time on OS/2. 5551 lt_cv_sys_max_cmd_len=8192 5552 ;; 5553 5554 osf*) 5555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5557 # nice to cause kernel panics so lets avoid the loop below. 5558 # First set a reasonable default. 5559 lt_cv_sys_max_cmd_len=16384 5560 # 5561 if test -x /sbin/sysconfig; then 5562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5563 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5564 esac 5565 fi 5566 ;; 5567 sco3.2v5*) 5568 lt_cv_sys_max_cmd_len=102400 5569 ;; 5570 sysv5* | sco5v6* | sysv4.2uw2*) 5571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5572 if test -n "$kargmax"; then 5573 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5574 else 5575 lt_cv_sys_max_cmd_len=32768 5576 fi 5577 ;; 5578 *) 5579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5580 if test -n "$lt_cv_sys_max_cmd_len" && \ 5581 test undefined != "$lt_cv_sys_max_cmd_len"; then 5582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5584 else 5585 # Make teststring a little bigger before we do anything with it. 5586 # a 1K string should be a reasonable start. 5587 for i in 1 2 3 4 5 6 7 8; do 5588 teststring=$teststring$teststring 5589 done 5590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5591 # If test is not a shell built-in, we'll probably end up computing a 5592 # maximum length that is only half of the actual maximum length, but 5593 # we can't tell. 5594 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5595 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5596 test 17 != "$i" # 1/2 MB should be enough 5597 do 5598 i=`expr $i + 1` 5599 teststring=$teststring$teststring 5600 done 5601 # Only check the string length outside the loop. 5602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5603 teststring= 5604 # Add a significant safety factor because C++ compilers can tack on 5605 # massive amounts of additional arguments before passing them to the 5606 # linker. It appears as though 1/2 is a usable value. 5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5608 fi 5609 ;; 5610 esac 5611 5612fi 5613 5614if test -n "$lt_cv_sys_max_cmd_len"; then 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5616printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5617else 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5619printf "%s\n" "none" >&6; } 5620fi 5621max_cmd_len=$lt_cv_sys_max_cmd_len 5622 5623 5624 5625 5626 5627 5628: ${CP="cp -f"} 5629: ${MV="mv -f"} 5630: ${RM="rm -f"} 5631 5632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5633 lt_unset=unset 5634else 5635 lt_unset=false 5636fi 5637 5638 5639 5640 5641 5642# test EBCDIC or ASCII 5643case `echo X|tr X '\101'` in 5644 A) # ASCII based system 5645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5646 lt_SP2NL='tr \040 \012' 5647 lt_NL2SP='tr \015\012 \040\040' 5648 ;; 5649 *) # EBCDIC based system 5650 lt_SP2NL='tr \100 \n' 5651 lt_NL2SP='tr \r\n \100\100' 5652 ;; 5653esac 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5664printf %s "checking how to convert $build file names to $host format... " >&6; } 5665if test ${lt_cv_to_host_file_cmd+y} 5666then : 5667 printf %s "(cached) " >&6 5668else $as_nop 5669 case $host in 5670 *-*-mingw* ) 5671 case $build in 5672 *-*-mingw* ) # actually msys 5673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5674 ;; 5675 *-*-cygwin* ) 5676 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5677 ;; 5678 * ) # otherwise, assume *nix 5679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5680 ;; 5681 esac 5682 ;; 5683 *-*-cygwin* ) 5684 case $build in 5685 *-*-mingw* ) # actually msys 5686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5687 ;; 5688 *-*-cygwin* ) 5689 lt_cv_to_host_file_cmd=func_convert_file_noop 5690 ;; 5691 * ) # otherwise, assume *nix 5692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5693 ;; 5694 esac 5695 ;; 5696 * ) # unhandled hosts (and "normal" native builds) 5697 lt_cv_to_host_file_cmd=func_convert_file_noop 5698 ;; 5699esac 5700 5701fi 5702 5703to_host_file_cmd=$lt_cv_to_host_file_cmd 5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5705printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5706 5707 5708 5709 5710 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5712printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5713if test ${lt_cv_to_tool_file_cmd+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 #assume ordinary cross tools, or native build. 5718lt_cv_to_tool_file_cmd=func_convert_file_noop 5719case $host in 5720 *-*-mingw* ) 5721 case $build in 5722 *-*-mingw* ) # actually msys 5723 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5724 ;; 5725 esac 5726 ;; 5727esac 5728 5729fi 5730 5731to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5733printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5734 5735 5736 5737 5738 5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5740printf %s "checking for $LD option to reload object files... " >&6; } 5741if test ${lt_cv_ld_reload_flag+y} 5742then : 5743 printf %s "(cached) " >&6 5744else $as_nop 5745 lt_cv_ld_reload_flag='-r' 5746fi 5747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5748printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5749reload_flag=$lt_cv_ld_reload_flag 5750case $reload_flag in 5751"" | " "*) ;; 5752*) reload_flag=" $reload_flag" ;; 5753esac 5754reload_cmds='$LD$reload_flag -o $output$reload_objs' 5755case $host_os in 5756 cygwin* | mingw* | pw32* | cegcc*) 5757 if test yes != "$GCC"; then 5758 reload_cmds=false 5759 fi 5760 ;; 5761 darwin*) 5762 if test yes = "$GCC"; then 5763 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5764 else 5765 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5766 fi 5767 ;; 5768esac 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778if test -n "$ac_tool_prefix"; then 5779 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5780set dummy ${ac_tool_prefix}file; ac_word=$2 5781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782printf %s "checking for $ac_word... " >&6; } 5783if test ${ac_cv_prog_FILECMD+y} 5784then : 5785 printf %s "(cached) " >&6 5786else $as_nop 5787 if test -n "$FILECMD"; then 5788 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5789else 5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791for as_dir in $PATH 5792do 5793 IFS=$as_save_IFS 5794 case $as_dir in #((( 5795 '') as_dir=./ ;; 5796 */) ;; 5797 *) as_dir=$as_dir/ ;; 5798 esac 5799 for ac_exec_ext in '' $ac_executable_extensions; do 5800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5801 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5803 break 2 5804 fi 5805done 5806 done 5807IFS=$as_save_IFS 5808 5809fi 5810fi 5811FILECMD=$ac_cv_prog_FILECMD 5812if test -n "$FILECMD"; then 5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5814printf "%s\n" "$FILECMD" >&6; } 5815else 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817printf "%s\n" "no" >&6; } 5818fi 5819 5820 5821fi 5822if test -z "$ac_cv_prog_FILECMD"; then 5823 ac_ct_FILECMD=$FILECMD 5824 # Extract the first word of "file", so it can be a program name with args. 5825set dummy file; ac_word=$2 5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5827printf %s "checking for $ac_word... " >&6; } 5828if test ${ac_cv_prog_ac_ct_FILECMD+y} 5829then : 5830 printf %s "(cached) " >&6 5831else $as_nop 5832 if test -n "$ac_ct_FILECMD"; then 5833 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5834else 5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836for as_dir in $PATH 5837do 5838 IFS=$as_save_IFS 5839 case $as_dir in #((( 5840 '') as_dir=./ ;; 5841 */) ;; 5842 *) as_dir=$as_dir/ ;; 5843 esac 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5846 ac_cv_prog_ac_ct_FILECMD="file" 5847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851 done 5852IFS=$as_save_IFS 5853 5854fi 5855fi 5856ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5857if test -n "$ac_ct_FILECMD"; then 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5859printf "%s\n" "$ac_ct_FILECMD" >&6; } 5860else 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5862printf "%s\n" "no" >&6; } 5863fi 5864 5865 if test "x$ac_ct_FILECMD" = x; then 5866 FILECMD=":" 5867 else 5868 case $cross_compiling:$ac_tool_warned in 5869yes:) 5870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5872ac_tool_warned=yes ;; 5873esac 5874 FILECMD=$ac_ct_FILECMD 5875 fi 5876else 5877 FILECMD="$ac_cv_prog_FILECMD" 5878fi 5879 5880 5881 5882 5883 5884 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}objdump; ac_word=$2 5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890printf %s "checking for $ac_word... " >&6; } 5891if test ${ac_cv_prog_OBJDUMP+y} 5892then : 5893 printf %s "(cached) " >&6 5894else $as_nop 5895 if test -n "$OBJDUMP"; then 5896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5897else 5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899for as_dir in $PATH 5900do 5901 IFS=$as_save_IFS 5902 case $as_dir in #((( 5903 '') as_dir=./ ;; 5904 */) ;; 5905 *) as_dir=$as_dir/ ;; 5906 esac 5907 for ac_exec_ext in '' $ac_executable_extensions; do 5908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5911 break 2 5912 fi 5913done 5914 done 5915IFS=$as_save_IFS 5916 5917fi 5918fi 5919OBJDUMP=$ac_cv_prog_OBJDUMP 5920if test -n "$OBJDUMP"; then 5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5922printf "%s\n" "$OBJDUMP" >&6; } 5923else 5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5925printf "%s\n" "no" >&6; } 5926fi 5927 5928 5929fi 5930if test -z "$ac_cv_prog_OBJDUMP"; then 5931 ac_ct_OBJDUMP=$OBJDUMP 5932 # Extract the first word of "objdump", so it can be a program name with args. 5933set dummy objdump; ac_word=$2 5934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935printf %s "checking for $ac_word... " >&6; } 5936if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5937then : 5938 printf %s "(cached) " >&6 5939else $as_nop 5940 if test -n "$ac_ct_OBJDUMP"; then 5941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5942else 5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5944for as_dir in $PATH 5945do 5946 IFS=$as_save_IFS 5947 case $as_dir in #((( 5948 '') as_dir=./ ;; 5949 */) ;; 5950 *) as_dir=$as_dir/ ;; 5951 esac 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5954 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5965if test -n "$ac_ct_OBJDUMP"; then 5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5967printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5968else 5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970printf "%s\n" "no" >&6; } 5971fi 5972 5973 if test "x$ac_ct_OBJDUMP" = x; then 5974 OBJDUMP="false" 5975 else 5976 case $cross_compiling:$ac_tool_warned in 5977yes:) 5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5980ac_tool_warned=yes ;; 5981esac 5982 OBJDUMP=$ac_ct_OBJDUMP 5983 fi 5984else 5985 OBJDUMP="$ac_cv_prog_OBJDUMP" 5986fi 5987 5988test -z "$OBJDUMP" && OBJDUMP=objdump 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5999printf %s "checking how to recognize dependent libraries... " >&6; } 6000if test ${lt_cv_deplibs_check_method+y} 6001then : 6002 printf %s "(cached) " >&6 6003else $as_nop 6004 lt_cv_file_magic_cmd='$MAGIC_CMD' 6005lt_cv_file_magic_test_file= 6006lt_cv_deplibs_check_method='unknown' 6007# Need to set the preceding variable on all platforms that support 6008# interlibrary dependencies. 6009# 'none' -- dependencies not supported. 6010# 'unknown' -- same as none, but documents that we really don't know. 6011# 'pass_all' -- all dependencies passed with no checks. 6012# 'test_compile' -- check by making test program. 6013# 'file_magic [[regex]]' -- check by looking for files in library path 6014# that responds to the $file_magic_cmd with a given extended regex. 6015# If you have 'file' or equivalent on your system and you're not sure 6016# whether 'pass_all' will *always* work, you probably want this one. 6017 6018case $host_os in 6019aix[4-9]*) 6020 lt_cv_deplibs_check_method=pass_all 6021 ;; 6022 6023beos*) 6024 lt_cv_deplibs_check_method=pass_all 6025 ;; 6026 6027bsdi[45]*) 6028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6029 lt_cv_file_magic_cmd='$FILECMD -L' 6030 lt_cv_file_magic_test_file=/shlib/libc.so 6031 ;; 6032 6033cygwin*) 6034 # func_win32_libid is a shell function defined in ltmain.sh 6035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6036 lt_cv_file_magic_cmd='func_win32_libid' 6037 ;; 6038 6039mingw* | pw32*) 6040 # Base MSYS/MinGW do not provide the 'file' command needed by 6041 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6042 # unless we find 'file', for example because we are cross-compiling. 6043 if ( file / ) >/dev/null 2>&1; then 6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6045 lt_cv_file_magic_cmd='func_win32_libid' 6046 else 6047 # Keep this pattern in sync with the one in func_win32_libid. 6048 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6049 lt_cv_file_magic_cmd='$OBJDUMP -f' 6050 fi 6051 ;; 6052 6053cegcc*) 6054 # use the weaker test based on 'objdump'. See mingw*. 6055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6056 lt_cv_file_magic_cmd='$OBJDUMP -f' 6057 ;; 6058 6059darwin* | rhapsody*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063freebsd* | dragonfly* | midnightbsd*) 6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6065 case $host_cpu in 6066 i*86 ) 6067 # Not sure whether the presence of OpenBSD here was a mistake. 6068 # Let's accept both of them until this is cleared up. 6069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6070 lt_cv_file_magic_cmd=$FILECMD 6071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6072 ;; 6073 esac 6074 else 6075 lt_cv_deplibs_check_method=pass_all 6076 fi 6077 ;; 6078 6079haiku*) 6080 lt_cv_deplibs_check_method=pass_all 6081 ;; 6082 6083hpux10.20* | hpux11*) 6084 lt_cv_file_magic_cmd=$FILECMD 6085 case $host_cpu in 6086 ia64*) 6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6089 ;; 6090 hppa*64*) 6091 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]' 6092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6093 ;; 6094 *) 6095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6096 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6097 ;; 6098 esac 6099 ;; 6100 6101interix[3-9]*) 6102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6104 ;; 6105 6106irix5* | irix6* | nonstopux*) 6107 case $LD in 6108 *-32|*"-32 ") libmagic=32-bit;; 6109 *-n32|*"-n32 ") libmagic=N32;; 6110 *-64|*"-64 ") libmagic=64-bit;; 6111 *) libmagic=never-match;; 6112 esac 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116# This must be glibc/ELF. 6117linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6118 lt_cv_deplibs_check_method=pass_all 6119 ;; 6120 6121netbsd*) 6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6124 else 6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6126 fi 6127 ;; 6128 6129newos6*) 6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6131 lt_cv_file_magic_cmd=$FILECMD 6132 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6133 ;; 6134 6135*nto* | *qnx*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 6139openbsd* | bitrig*) 6140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6142 else 6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6144 fi 6145 ;; 6146 6147osf3* | osf4* | osf5*) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150 6151rdos*) 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 6155solaris*) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 6159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162 6163sysv4 | sysv4.3*) 6164 case $host_vendor in 6165 motorola) 6166 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]' 6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6168 ;; 6169 ncr) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172 sequent) 6173 lt_cv_file_magic_cmd='/bin/file' 6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6175 ;; 6176 sni) 6177 lt_cv_file_magic_cmd='/bin/file' 6178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6179 lt_cv_file_magic_test_file=/lib/libc.so 6180 ;; 6181 siemens) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 pc) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 esac 6188 ;; 6189 6190tpf*) 6191 lt_cv_deplibs_check_method=pass_all 6192 ;; 6193os2*) 6194 lt_cv_deplibs_check_method=pass_all 6195 ;; 6196esac 6197 6198fi 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6200printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6201 6202file_magic_glob= 6203want_nocaseglob=no 6204if test "$build" = "$host"; then 6205 case $host_os in 6206 mingw* | pw32*) 6207 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6208 want_nocaseglob=yes 6209 else 6210 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6211 fi 6212 ;; 6213 esac 6214fi 6215 6216file_magic_cmd=$lt_cv_file_magic_cmd 6217deplibs_check_method=$lt_cv_deplibs_check_method 6218test -z "$deplibs_check_method" && deplibs_check_method=unknown 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241if test -n "$ac_tool_prefix"; then 6242 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6243set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6245printf %s "checking for $ac_word... " >&6; } 6246if test ${ac_cv_prog_DLLTOOL+y} 6247then : 6248 printf %s "(cached) " >&6 6249else $as_nop 6250 if test -n "$DLLTOOL"; then 6251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6252else 6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 case $as_dir in #((( 6258 '') as_dir=./ ;; 6259 */) ;; 6260 *) as_dir=$as_dir/ ;; 6261 esac 6262 for ac_exec_ext in '' $ac_executable_extensions; do 6263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6266 break 2 6267 fi 6268done 6269 done 6270IFS=$as_save_IFS 6271 6272fi 6273fi 6274DLLTOOL=$ac_cv_prog_DLLTOOL 6275if test -n "$DLLTOOL"; then 6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6277printf "%s\n" "$DLLTOOL" >&6; } 6278else 6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280printf "%s\n" "no" >&6; } 6281fi 6282 6283 6284fi 6285if test -z "$ac_cv_prog_DLLTOOL"; then 6286 ac_ct_DLLTOOL=$DLLTOOL 6287 # Extract the first word of "dlltool", so it can be a program name with args. 6288set dummy dlltool; ac_word=$2 6289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290printf %s "checking for $ac_word... " >&6; } 6291if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 if test -n "$ac_ct_DLLTOOL"; then 6296 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6297else 6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299for as_dir in $PATH 6300do 6301 IFS=$as_save_IFS 6302 case $as_dir in #((( 6303 '') as_dir=./ ;; 6304 */) ;; 6305 *) as_dir=$as_dir/ ;; 6306 esac 6307 for ac_exec_ext in '' $ac_executable_extensions; do 6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6309 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6311 break 2 6312 fi 6313done 6314 done 6315IFS=$as_save_IFS 6316 6317fi 6318fi 6319ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6320if test -n "$ac_ct_DLLTOOL"; then 6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6322printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6323else 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6325printf "%s\n" "no" >&6; } 6326fi 6327 6328 if test "x$ac_ct_DLLTOOL" = x; then 6329 DLLTOOL="false" 6330 else 6331 case $cross_compiling:$ac_tool_warned in 6332yes:) 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6334printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6335ac_tool_warned=yes ;; 6336esac 6337 DLLTOOL=$ac_ct_DLLTOOL 6338 fi 6339else 6340 DLLTOOL="$ac_cv_prog_DLLTOOL" 6341fi 6342 6343test -z "$DLLTOOL" && DLLTOOL=dlltool 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6355printf %s "checking how to associate runtime and link libraries... " >&6; } 6356if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6357then : 6358 printf %s "(cached) " >&6 6359else $as_nop 6360 lt_cv_sharedlib_from_linklib_cmd='unknown' 6361 6362case $host_os in 6363cygwin* | mingw* | pw32* | cegcc*) 6364 # two different shell functions defined in ltmain.sh; 6365 # decide which one to use based on capabilities of $DLLTOOL 6366 case `$DLLTOOL --help 2>&1` in 6367 *--identify-strict*) 6368 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6369 ;; 6370 *) 6371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6372 ;; 6373 esac 6374 ;; 6375*) 6376 # fallback: assume linklib IS sharedlib 6377 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6378 ;; 6379esac 6380 6381fi 6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6383printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6384sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6385test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6386 6387 6388 6389 6390 6391 6392 6393 6394if test -n "$ac_tool_prefix"; then 6395 for ac_prog in ar 6396 do 6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400printf %s "checking for $ac_word... " >&6; } 6401if test ${ac_cv_prog_AR+y} 6402then : 6403 printf %s "(cached) " >&6 6404else $as_nop 6405 if test -n "$AR"; then 6406 ac_cv_prog_AR="$AR" # Let the user override the test. 6407else 6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6409for as_dir in $PATH 6410do 6411 IFS=$as_save_IFS 6412 case $as_dir in #((( 6413 '') as_dir=./ ;; 6414 */) ;; 6415 *) as_dir=$as_dir/ ;; 6416 esac 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429AR=$ac_cv_prog_AR 6430if test -n "$AR"; then 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6432printf "%s\n" "$AR" >&6; } 6433else 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435printf "%s\n" "no" >&6; } 6436fi 6437 6438 6439 test -n "$AR" && break 6440 done 6441fi 6442if test -z "$AR"; then 6443 ac_ct_AR=$AR 6444 for ac_prog in ar 6445do 6446 # Extract the first word of "$ac_prog", so it can be a program name with args. 6447set dummy $ac_prog; ac_word=$2 6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449printf %s "checking for $ac_word... " >&6; } 6450if test ${ac_cv_prog_ac_ct_AR+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 if test -n "$ac_ct_AR"; then 6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 case $as_dir in #((( 6462 '') as_dir=./ ;; 6463 */) ;; 6464 *) as_dir=$as_dir/ ;; 6465 esac 6466 for ac_exec_ext in '' $ac_executable_extensions; do 6467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6468 ac_cv_prog_ac_ct_AR="$ac_prog" 6469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6470 break 2 6471 fi 6472done 6473 done 6474IFS=$as_save_IFS 6475 6476fi 6477fi 6478ac_ct_AR=$ac_cv_prog_ac_ct_AR 6479if test -n "$ac_ct_AR"; then 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6481printf "%s\n" "$ac_ct_AR" >&6; } 6482else 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484printf "%s\n" "no" >&6; } 6485fi 6486 6487 6488 test -n "$ac_ct_AR" && break 6489done 6490 6491 if test "x$ac_ct_AR" = x; then 6492 AR="false" 6493 else 6494 case $cross_compiling:$ac_tool_warned in 6495yes:) 6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6497printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6498ac_tool_warned=yes ;; 6499esac 6500 AR=$ac_ct_AR 6501 fi 6502fi 6503 6504: ${AR=ar} 6505 6506 6507 6508 6509 6510 6511# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6512# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6513# higher priority because thats what people were doing historically (setting 6514# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6515# variable obsoleted/removed. 6516 6517test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6518lt_ar_flags=$AR_FLAGS 6519 6520 6521 6522 6523 6524 6525# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6526# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6527 6528 6529 6530 6531 6532 6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6534printf %s "checking for archiver @FILE support... " >&6; } 6535if test ${lt_cv_ar_at_file+y} 6536then : 6537 printf %s "(cached) " >&6 6538else $as_nop 6539 lt_cv_ar_at_file=no 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542 6543int 6544main (void) 6545{ 6546 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551if ac_fn_c_try_compile "$LINENO" 6552then : 6553 echo conftest.$ac_objext > conftest.lst 6554 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6556 (eval $lt_ar_try) 2>&5 6557 ac_status=$? 6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6559 test $ac_status = 0; } 6560 if test 0 -eq "$ac_status"; then 6561 # Ensure the archiver fails upon bogus file names. 6562 rm -f conftest.$ac_objext libconftest.a 6563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6564 (eval $lt_ar_try) 2>&5 6565 ac_status=$? 6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6567 test $ac_status = 0; } 6568 if test 0 -ne "$ac_status"; then 6569 lt_cv_ar_at_file=@ 6570 fi 6571 fi 6572 rm -f conftest.* libconftest.a 6573 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6576 6577fi 6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6579printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6580 6581if test no = "$lt_cv_ar_at_file"; then 6582 archiver_list_spec= 6583else 6584 archiver_list_spec=$lt_cv_ar_at_file 6585fi 6586 6587 6588 6589 6590 6591 6592 6593if test -n "$ac_tool_prefix"; then 6594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6595set dummy ${ac_tool_prefix}strip; ac_word=$2 6596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597printf %s "checking for $ac_word... " >&6; } 6598if test ${ac_cv_prog_STRIP+y} 6599then : 6600 printf %s "(cached) " >&6 6601else $as_nop 6602 if test -n "$STRIP"; then 6603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 case $as_dir in #((( 6610 '') as_dir=./ ;; 6611 */) ;; 6612 *) as_dir=$as_dir/ ;; 6613 esac 6614 for ac_exec_ext in '' $ac_executable_extensions; do 6615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6616 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6618 break 2 6619 fi 6620done 6621 done 6622IFS=$as_save_IFS 6623 6624fi 6625fi 6626STRIP=$ac_cv_prog_STRIP 6627if test -n "$STRIP"; then 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6629printf "%s\n" "$STRIP" >&6; } 6630else 6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6632printf "%s\n" "no" >&6; } 6633fi 6634 6635 6636fi 6637if test -z "$ac_cv_prog_STRIP"; then 6638 ac_ct_STRIP=$STRIP 6639 # Extract the first word of "strip", so it can be a program name with args. 6640set dummy strip; ac_word=$2 6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6642printf %s "checking for $ac_word... " >&6; } 6643if test ${ac_cv_prog_ac_ct_STRIP+y} 6644then : 6645 printf %s "(cached) " >&6 6646else $as_nop 6647 if test -n "$ac_ct_STRIP"; then 6648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 case $as_dir in #((( 6655 '') as_dir=./ ;; 6656 */) ;; 6657 *) as_dir=$as_dir/ ;; 6658 esac 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6661 ac_cv_prog_ac_ct_STRIP="strip" 6662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6672if test -n "$ac_ct_STRIP"; then 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6674printf "%s\n" "$ac_ct_STRIP" >&6; } 6675else 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677printf "%s\n" "no" >&6; } 6678fi 6679 6680 if test "x$ac_ct_STRIP" = x; then 6681 STRIP=":" 6682 else 6683 case $cross_compiling:$ac_tool_warned in 6684yes:) 6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6687ac_tool_warned=yes ;; 6688esac 6689 STRIP=$ac_ct_STRIP 6690 fi 6691else 6692 STRIP="$ac_cv_prog_STRIP" 6693fi 6694 6695test -z "$STRIP" && STRIP=: 6696 6697 6698 6699 6700 6701 6702if test -n "$ac_tool_prefix"; then 6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6704set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6706printf %s "checking for $ac_word... " >&6; } 6707if test ${ac_cv_prog_RANLIB+y} 6708then : 6709 printf %s "(cached) " >&6 6710else $as_nop 6711 if test -n "$RANLIB"; then 6712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 case $as_dir in #((( 6719 '') as_dir=./ ;; 6720 */) ;; 6721 *) as_dir=$as_dir/ ;; 6722 esac 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735RANLIB=$ac_cv_prog_RANLIB 6736if test -n "$RANLIB"; then 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6738printf "%s\n" "$RANLIB" >&6; } 6739else 6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741printf "%s\n" "no" >&6; } 6742fi 6743 6744 6745fi 6746if test -z "$ac_cv_prog_RANLIB"; then 6747 ac_ct_RANLIB=$RANLIB 6748 # Extract the first word of "ranlib", so it can be a program name with args. 6749set dummy ranlib; ac_word=$2 6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751printf %s "checking for $ac_word... " >&6; } 6752if test ${ac_cv_prog_ac_ct_RANLIB+y} 6753then : 6754 printf %s "(cached) " >&6 6755else $as_nop 6756 if test -n "$ac_ct_RANLIB"; then 6757 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6758else 6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6760for as_dir in $PATH 6761do 6762 IFS=$as_save_IFS 6763 case $as_dir in #((( 6764 '') as_dir=./ ;; 6765 */) ;; 6766 *) as_dir=$as_dir/ ;; 6767 esac 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6770 ac_cv_prog_ac_ct_RANLIB="ranlib" 6771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6781if test -n "$ac_ct_RANLIB"; then 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6783printf "%s\n" "$ac_ct_RANLIB" >&6; } 6784else 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786printf "%s\n" "no" >&6; } 6787fi 6788 6789 if test "x$ac_ct_RANLIB" = x; then 6790 RANLIB=":" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 RANLIB=$ac_ct_RANLIB 6799 fi 6800else 6801 RANLIB="$ac_cv_prog_RANLIB" 6802fi 6803 6804test -z "$RANLIB" && RANLIB=: 6805 6806 6807 6808 6809 6810 6811# Determine commands to create old-style static archives. 6812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6813old_postinstall_cmds='chmod 644 $oldlib' 6814old_postuninstall_cmds= 6815 6816if test -n "$RANLIB"; then 6817 case $host_os in 6818 bitrig* | openbsd*) 6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6820 ;; 6821 *) 6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6823 ;; 6824 esac 6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6826fi 6827 6828case $host_os in 6829 darwin*) 6830 lock_old_archive_extraction=yes ;; 6831 *) 6832 lock_old_archive_extraction=no ;; 6833esac 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873# If no C compiler was specified, use CC. 6874LTCC=${LTCC-"$CC"} 6875 6876# If no C compiler flags were specified, use CFLAGS. 6877LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6878 6879# Allow CC to be a program name with arguments. 6880compiler=$CC 6881 6882 6883# Check for command to grab the raw symbol name followed by C symbol from nm. 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6885printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6886if test ${lt_cv_sys_global_symbol_pipe+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 6891# These are sane defaults that work on at least a few old systems. 6892# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6893 6894# Character class describing NM global symbol codes. 6895symcode='[BCDEGRST]' 6896 6897# Regexp to match symbols that can be accessed directly from C. 6898sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6899 6900# Define system-specific variables. 6901case $host_os in 6902aix*) 6903 symcode='[BCDT]' 6904 ;; 6905cygwin* | mingw* | pw32* | cegcc*) 6906 symcode='[ABCDGISTW]' 6907 ;; 6908hpux*) 6909 if test ia64 = "$host_cpu"; then 6910 symcode='[ABCDEGRST]' 6911 fi 6912 ;; 6913irix* | nonstopux*) 6914 symcode='[BCDEGRST]' 6915 ;; 6916osf*) 6917 symcode='[BCDEGQRST]' 6918 ;; 6919solaris*) 6920 symcode='[BDRT]' 6921 ;; 6922sco3.2v5*) 6923 symcode='[DT]' 6924 ;; 6925sysv4.2uw2*) 6926 symcode='[DT]' 6927 ;; 6928sysv5* | sco5v6* | unixware* | OpenUNIX*) 6929 symcode='[ABDT]' 6930 ;; 6931sysv4) 6932 symcode='[DFNSTU]' 6933 ;; 6934esac 6935 6936# If we're using GNU nm, then use its standard symbol codes. 6937case `$NM -V 2>&1` in 6938*GNU* | *'with BFD'*) 6939 symcode='[ABCDGIRSTW]' ;; 6940esac 6941 6942if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6943 # Gets list of data symbols to import. 6944 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6945 # Adjust the below global symbol transforms to fixup imported variables. 6946 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6947 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6948 lt_c_name_lib_hook="\ 6949 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6950 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6951else 6952 # Disable hooks by default. 6953 lt_cv_sys_global_symbol_to_import= 6954 lt_cdecl_hook= 6955 lt_c_name_hook= 6956 lt_c_name_lib_hook= 6957fi 6958 6959# Transform an extracted symbol line into a proper C declaration. 6960# Some systems (esp. on ia64) link data and code symbols differently, 6961# so use this general approach. 6962lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6963$lt_cdecl_hook\ 6964" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6965" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6966 6967# Transform an extracted symbol line into symbol name and symbol address 6968lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6969$lt_c_name_hook\ 6970" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6971" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6972 6973# Transform an extracted symbol line into symbol name with lib prefix and 6974# symbol address. 6975lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6976$lt_c_name_lib_hook\ 6977" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6978" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6979" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6980 6981# Handle CRLF in mingw tool chain 6982opt_cr= 6983case $build_os in 6984mingw*) 6985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6986 ;; 6987esac 6988 6989# Try without a prefix underscore, then with it. 6990for ac_symprfx in "" "_"; do 6991 6992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6993 symxfrm="\\1 $ac_symprfx\\2 \\2" 6994 6995 # Write the raw and C identifiers. 6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6997 # Fake it for dumpbin and say T for any non-static function, 6998 # D for any global variable and I for any imported variable. 6999 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7000 # which start with @ or ?. 7001 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7002" {last_section=section; section=\$ 3};"\ 7003" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7004" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7005" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7006" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7007" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7008" \$ 0!~/External *\|/{next};"\ 7009" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7010" {if(hide[section]) next};"\ 7011" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7012" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7013" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7014" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7015" ' prfx=^$ac_symprfx" 7016 else 7017 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7018 fi 7019 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7020 7021 # Check to see that the pipe works correctly. 7022 pipe_works=no 7023 7024 rm -f conftest* 7025 cat > conftest.$ac_ext <<_LT_EOF 7026#ifdef __cplusplus 7027extern "C" { 7028#endif 7029char nm_test_var; 7030void nm_test_func(void); 7031void nm_test_func(void){} 7032#ifdef __cplusplus 7033} 7034#endif 7035int main(){nm_test_var='a';nm_test_func();return(0);} 7036_LT_EOF 7037 7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7039 (eval $ac_compile) 2>&5 7040 ac_status=$? 7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7042 test $ac_status = 0; }; then 7043 # Now try to grab the symbols. 7044 nlist=conftest.nm 7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7047 ac_status=$? 7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7049 test $ac_status = 0; } && test -s "$nlist"; then 7050 # Try sorting and uniquifying the output. 7051 if sort "$nlist" | uniq > "$nlist"T; then 7052 mv -f "$nlist"T "$nlist" 7053 else 7054 rm -f "$nlist"T 7055 fi 7056 7057 # Make sure that we snagged all the symbols we need. 7058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7060 cat <<_LT_EOF > conftest.$ac_ext 7061/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7062#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7063/* DATA imports from DLLs on WIN32 can't be const, because runtime 7064 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7065# define LT_DLSYM_CONST 7066#elif defined __osf__ 7067/* This system does not cope well with relocations in const data. */ 7068# define LT_DLSYM_CONST 7069#else 7070# define LT_DLSYM_CONST const 7071#endif 7072 7073#ifdef __cplusplus 7074extern "C" { 7075#endif 7076 7077_LT_EOF 7078 # Now generate the symbol file. 7079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7080 7081 cat <<_LT_EOF >> conftest.$ac_ext 7082 7083/* The mapping between symbol names and symbols. */ 7084LT_DLSYM_CONST struct { 7085 const char *name; 7086 void *address; 7087} 7088lt__PROGRAM__LTX_preloaded_symbols[] = 7089{ 7090 { "@PROGRAM@", (void *) 0 }, 7091_LT_EOF 7092 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7093 cat <<\_LT_EOF >> conftest.$ac_ext 7094 {0, (void *) 0} 7095}; 7096 7097/* This works around a problem in FreeBSD linker */ 7098#ifdef FREEBSD_WORKAROUND 7099static const void *lt_preloaded_setup() { 7100 return lt__PROGRAM__LTX_preloaded_symbols; 7101} 7102#endif 7103 7104#ifdef __cplusplus 7105} 7106#endif 7107_LT_EOF 7108 # Now try linking the two files. 7109 mv conftest.$ac_objext conftstm.$ac_objext 7110 lt_globsym_save_LIBS=$LIBS 7111 lt_globsym_save_CFLAGS=$CFLAGS 7112 LIBS=conftstm.$ac_objext 7113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7115 (eval $ac_link) 2>&5 7116 ac_status=$? 7117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7118 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7119 pipe_works=yes 7120 fi 7121 LIBS=$lt_globsym_save_LIBS 7122 CFLAGS=$lt_globsym_save_CFLAGS 7123 else 7124 echo "cannot find nm_test_func in $nlist" >&5 7125 fi 7126 else 7127 echo "cannot find nm_test_var in $nlist" >&5 7128 fi 7129 else 7130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7131 fi 7132 else 7133 echo "$progname: failed program was:" >&5 7134 cat conftest.$ac_ext >&5 7135 fi 7136 rm -rf conftest* conftst* 7137 7138 # Do not use the global_symbol_pipe unless it works. 7139 if test yes = "$pipe_works"; then 7140 break 7141 else 7142 lt_cv_sys_global_symbol_pipe= 7143 fi 7144done 7145 7146fi 7147 7148if test -z "$lt_cv_sys_global_symbol_pipe"; then 7149 lt_cv_sys_global_symbol_to_cdecl= 7150fi 7151if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7153printf "%s\n" "failed" >&6; } 7154else 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7156printf "%s\n" "ok" >&6; } 7157fi 7158 7159# Response file support. 7160if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7161 nm_file_list_spec='@' 7162elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7163 nm_file_list_spec='@' 7164fi 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7203printf %s "checking for sysroot... " >&6; } 7204 7205# Check whether --with-sysroot was given. 7206if test ${with_sysroot+y} 7207then : 7208 withval=$with_sysroot; 7209else $as_nop 7210 with_sysroot=no 7211fi 7212 7213 7214lt_sysroot= 7215case $with_sysroot in #( 7216 yes) 7217 if test yes = "$GCC"; then 7218 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7219 fi 7220 ;; #( 7221 /*) 7222 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7223 ;; #( 7224 no|'') 7225 ;; #( 7226 *) 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7228printf "%s\n" "$with_sysroot" >&6; } 7229 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7230 ;; 7231esac 7232 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7234printf "%s\n" "${lt_sysroot:-no}" >&6; } 7235 7236 7237 7238 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7241printf %s "checking for a working dd... " >&6; } 7242if test ${ac_cv_path_lt_DD+y} 7243then : 7244 printf %s "(cached) " >&6 7245else $as_nop 7246 printf 0123456789abcdef0123456789abcdef >conftest.i 7247cat conftest.i conftest.i >conftest2.i 7248: ${lt_DD:=$DD} 7249if test -z "$lt_DD"; then 7250 ac_path_lt_DD_found=false 7251 # Loop through the user's path and test for each of PROGNAME-LIST 7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7253for as_dir in $PATH 7254do 7255 IFS=$as_save_IFS 7256 case $as_dir in #((( 7257 '') as_dir=./ ;; 7258 */) ;; 7259 *) as_dir=$as_dir/ ;; 7260 esac 7261 for ac_prog in dd 7262 do 7263 for ac_exec_ext in '' $ac_executable_extensions; do 7264 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7265 as_fn_executable_p "$ac_path_lt_DD" || continue 7266if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7267 cmp -s conftest.i conftest.out \ 7268 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7269fi 7270 $ac_path_lt_DD_found && break 3 7271 done 7272 done 7273 done 7274IFS=$as_save_IFS 7275 if test -z "$ac_cv_path_lt_DD"; then 7276 : 7277 fi 7278else 7279 ac_cv_path_lt_DD=$lt_DD 7280fi 7281 7282rm -f conftest.i conftest2.i conftest.out 7283fi 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7285printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7286 7287 7288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7289printf %s "checking how to truncate binary pipes... " >&6; } 7290if test ${lt_cv_truncate_bin+y} 7291then : 7292 printf %s "(cached) " >&6 7293else $as_nop 7294 printf 0123456789abcdef0123456789abcdef >conftest.i 7295cat conftest.i conftest.i >conftest2.i 7296lt_cv_truncate_bin= 7297if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7298 cmp -s conftest.i conftest.out \ 7299 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7300fi 7301rm -f conftest.i conftest2.i conftest.out 7302test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7303fi 7304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7305printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7306 7307 7308 7309 7310 7311 7312 7313# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7314func_cc_basename () 7315{ 7316 for cc_temp in $*""; do 7317 case $cc_temp in 7318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7320 \-*) ;; 7321 *) break;; 7322 esac 7323 done 7324 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7325} 7326 7327# Check whether --enable-libtool-lock was given. 7328if test ${enable_libtool_lock+y} 7329then : 7330 enableval=$enable_libtool_lock; 7331fi 7332 7333test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7334 7335# Some flags need to be propagated to the compiler or linker for good 7336# libtool support. 7337case $host in 7338ia64-*-hpux*) 7339 # Find out what ABI is being produced by ac_compile, and set mode 7340 # options accordingly. 7341 echo 'int i;' > conftest.$ac_ext 7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7343 (eval $ac_compile) 2>&5 7344 ac_status=$? 7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7346 test $ac_status = 0; }; then 7347 case `$FILECMD conftest.$ac_objext` in 7348 *ELF-32*) 7349 HPUX_IA64_MODE=32 7350 ;; 7351 *ELF-64*) 7352 HPUX_IA64_MODE=64 7353 ;; 7354 esac 7355 fi 7356 rm -rf conftest* 7357 ;; 7358*-*-irix6*) 7359 # Find out what ABI is being produced by ac_compile, and set linker 7360 # options accordingly. 7361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7363 (eval $ac_compile) 2>&5 7364 ac_status=$? 7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7366 test $ac_status = 0; }; then 7367 if test yes = "$lt_cv_prog_gnu_ld"; then 7368 case `$FILECMD conftest.$ac_objext` in 7369 *32-bit*) 7370 LD="${LD-ld} -melf32bsmip" 7371 ;; 7372 *N32*) 7373 LD="${LD-ld} -melf32bmipn32" 7374 ;; 7375 *64-bit*) 7376 LD="${LD-ld} -melf64bmip" 7377 ;; 7378 esac 7379 else 7380 case `$FILECMD conftest.$ac_objext` in 7381 *32-bit*) 7382 LD="${LD-ld} -32" 7383 ;; 7384 *N32*) 7385 LD="${LD-ld} -n32" 7386 ;; 7387 *64-bit*) 7388 LD="${LD-ld} -64" 7389 ;; 7390 esac 7391 fi 7392 fi 7393 rm -rf conftest* 7394 ;; 7395 7396mips64*-*linux*) 7397 # Find out what ABI is being produced by ac_compile, and set linker 7398 # options accordingly. 7399 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7401 (eval $ac_compile) 2>&5 7402 ac_status=$? 7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7404 test $ac_status = 0; }; then 7405 emul=elf 7406 case `$FILECMD conftest.$ac_objext` in 7407 *32-bit*) 7408 emul="${emul}32" 7409 ;; 7410 *64-bit*) 7411 emul="${emul}64" 7412 ;; 7413 esac 7414 case `$FILECMD conftest.$ac_objext` in 7415 *MSB*) 7416 emul="${emul}btsmip" 7417 ;; 7418 *LSB*) 7419 emul="${emul}ltsmip" 7420 ;; 7421 esac 7422 case `$FILECMD conftest.$ac_objext` in 7423 *N32*) 7424 emul="${emul}n32" 7425 ;; 7426 esac 7427 LD="${LD-ld} -m $emul" 7428 fi 7429 rm -rf conftest* 7430 ;; 7431 7432x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7433s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7434 # Find out what ABI is being produced by ac_compile, and set linker 7435 # options accordingly. Note that the listed cases only cover the 7436 # situations where additional linker options are needed (such as when 7437 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7438 # vice versa); the common cases where no linker options are needed do 7439 # not appear in the list. 7440 echo 'int i;' > conftest.$ac_ext 7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7442 (eval $ac_compile) 2>&5 7443 ac_status=$? 7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7445 test $ac_status = 0; }; then 7446 case `$FILECMD conftest.o` in 7447 *32-bit*) 7448 case $host in 7449 x86_64-*kfreebsd*-gnu) 7450 LD="${LD-ld} -m elf_i386_fbsd" 7451 ;; 7452 x86_64-*linux*) 7453 case `$FILECMD conftest.o` in 7454 *x86-64*) 7455 LD="${LD-ld} -m elf32_x86_64" 7456 ;; 7457 *) 7458 LD="${LD-ld} -m elf_i386" 7459 ;; 7460 esac 7461 ;; 7462 powerpc64le-*linux*) 7463 LD="${LD-ld} -m elf32lppclinux" 7464 ;; 7465 powerpc64-*linux*) 7466 LD="${LD-ld} -m elf32ppclinux" 7467 ;; 7468 s390x-*linux*) 7469 LD="${LD-ld} -m elf_s390" 7470 ;; 7471 sparc64-*linux*) 7472 LD="${LD-ld} -m elf32_sparc" 7473 ;; 7474 esac 7475 ;; 7476 *64-bit*) 7477 case $host in 7478 x86_64-*kfreebsd*-gnu) 7479 LD="${LD-ld} -m elf_x86_64_fbsd" 7480 ;; 7481 x86_64-*linux*) 7482 LD="${LD-ld} -m elf_x86_64" 7483 ;; 7484 powerpcle-*linux*) 7485 LD="${LD-ld} -m elf64lppc" 7486 ;; 7487 powerpc-*linux*) 7488 LD="${LD-ld} -m elf64ppc" 7489 ;; 7490 s390*-*linux*|s390*-*tpf*) 7491 LD="${LD-ld} -m elf64_s390" 7492 ;; 7493 sparc*-*linux*) 7494 LD="${LD-ld} -m elf64_sparc" 7495 ;; 7496 esac 7497 ;; 7498 esac 7499 fi 7500 rm -rf conftest* 7501 ;; 7502 7503*-*-sco3.2v5*) 7504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7505 SAVE_CFLAGS=$CFLAGS 7506 CFLAGS="$CFLAGS -belf" 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7508printf %s "checking whether the C compiler needs -belf... " >&6; } 7509if test ${lt_cv_cc_needs_belf+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 ac_ext=c 7514ac_cpp='$CPP $CPPFLAGS' 7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7517ac_compiler_gnu=$ac_cv_c_compiler_gnu 7518 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521 7522int 7523main (void) 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_link "$LINENO" 7531then : 7532 lt_cv_cc_needs_belf=yes 7533else $as_nop 7534 lt_cv_cc_needs_belf=no 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7537 conftest$ac_exeext conftest.$ac_ext 7538 ac_ext=c 7539ac_cpp='$CPP $CPPFLAGS' 7540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7542ac_compiler_gnu=$ac_cv_c_compiler_gnu 7543 7544fi 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7546printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7547 if test yes != "$lt_cv_cc_needs_belf"; then 7548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7549 CFLAGS=$SAVE_CFLAGS 7550 fi 7551 ;; 7552*-*solaris*) 7553 # Find out what ABI is being produced by ac_compile, and set linker 7554 # options accordingly. 7555 echo 'int i;' > conftest.$ac_ext 7556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7557 (eval $ac_compile) 2>&5 7558 ac_status=$? 7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7560 test $ac_status = 0; }; then 7561 case `$FILECMD conftest.o` in 7562 *64-bit*) 7563 case $lt_cv_prog_gnu_ld in 7564 yes*) 7565 case $host in 7566 i?86-*-solaris*|x86_64-*-solaris*) 7567 LD="${LD-ld} -m elf_x86_64" 7568 ;; 7569 sparc*-*-solaris*) 7570 LD="${LD-ld} -m elf64_sparc" 7571 ;; 7572 esac 7573 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7574 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7575 LD=${LD-ld}_sol2 7576 fi 7577 ;; 7578 *) 7579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7580 LD="${LD-ld} -64" 7581 fi 7582 ;; 7583 esac 7584 ;; 7585 esac 7586 fi 7587 rm -rf conftest* 7588 ;; 7589esac 7590 7591need_locks=$enable_libtool_lock 7592 7593if test -n "$ac_tool_prefix"; then 7594 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7595set dummy ${ac_tool_prefix}mt; ac_word=$2 7596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597printf %s "checking for $ac_word... " >&6; } 7598if test ${ac_cv_prog_MANIFEST_TOOL+y} 7599then : 7600 printf %s "(cached) " >&6 7601else $as_nop 7602 if test -n "$MANIFEST_TOOL"; then 7603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7604else 7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606for as_dir in $PATH 7607do 7608 IFS=$as_save_IFS 7609 case $as_dir in #((( 7610 '') as_dir=./ ;; 7611 */) ;; 7612 *) as_dir=$as_dir/ ;; 7613 esac 7614 for ac_exec_ext in '' $ac_executable_extensions; do 7615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7616 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7618 break 2 7619 fi 7620done 7621 done 7622IFS=$as_save_IFS 7623 7624fi 7625fi 7626MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7627if test -n "$MANIFEST_TOOL"; then 7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7629printf "%s\n" "$MANIFEST_TOOL" >&6; } 7630else 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7632printf "%s\n" "no" >&6; } 7633fi 7634 7635 7636fi 7637if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7638 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7639 # Extract the first word of "mt", so it can be a program name with args. 7640set dummy mt; ac_word=$2 7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642printf %s "checking for $ac_word... " >&6; } 7643if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7644then : 7645 printf %s "(cached) " >&6 7646else $as_nop 7647 if test -n "$ac_ct_MANIFEST_TOOL"; then 7648 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7649else 7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651for as_dir in $PATH 7652do 7653 IFS=$as_save_IFS 7654 case $as_dir in #((( 7655 '') as_dir=./ ;; 7656 */) ;; 7657 *) as_dir=$as_dir/ ;; 7658 esac 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665done 7666 done 7667IFS=$as_save_IFS 7668 7669fi 7670fi 7671ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7672if test -n "$ac_ct_MANIFEST_TOOL"; then 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7674printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7675else 7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7677printf "%s\n" "no" >&6; } 7678fi 7679 7680 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7681 MANIFEST_TOOL=":" 7682 else 7683 case $cross_compiling:$ac_tool_warned in 7684yes:) 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7687ac_tool_warned=yes ;; 7688esac 7689 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7690 fi 7691else 7692 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7693fi 7694 7695test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7697printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7698if test ${lt_cv_path_mainfest_tool+y} 7699then : 7700 printf %s "(cached) " >&6 7701else $as_nop 7702 lt_cv_path_mainfest_tool=no 7703 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7704 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7705 cat conftest.err >&5 7706 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7707 lt_cv_path_mainfest_tool=yes 7708 fi 7709 rm -f conftest* 7710fi 7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7712printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7713if test yes != "$lt_cv_path_mainfest_tool"; then 7714 MANIFEST_TOOL=: 7715fi 7716 7717 7718 7719 7720 7721 7722 case $host_os in 7723 rhapsody* | darwin*) 7724 if test -n "$ac_tool_prefix"; then 7725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7726set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7728printf %s "checking for $ac_word... " >&6; } 7729if test ${ac_cv_prog_DSYMUTIL+y} 7730then : 7731 printf %s "(cached) " >&6 7732else $as_nop 7733 if test -n "$DSYMUTIL"; then 7734 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7735else 7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7737for as_dir in $PATH 7738do 7739 IFS=$as_save_IFS 7740 case $as_dir in #((( 7741 '') as_dir=./ ;; 7742 */) ;; 7743 *) as_dir=$as_dir/ ;; 7744 esac 7745 for ac_exec_ext in '' $ac_executable_extensions; do 7746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7749 break 2 7750 fi 7751done 7752 done 7753IFS=$as_save_IFS 7754 7755fi 7756fi 7757DSYMUTIL=$ac_cv_prog_DSYMUTIL 7758if test -n "$DSYMUTIL"; then 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7760printf "%s\n" "$DSYMUTIL" >&6; } 7761else 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7763printf "%s\n" "no" >&6; } 7764fi 7765 7766 7767fi 7768if test -z "$ac_cv_prog_DSYMUTIL"; then 7769 ac_ct_DSYMUTIL=$DSYMUTIL 7770 # Extract the first word of "dsymutil", so it can be a program name with args. 7771set dummy dsymutil; ac_word=$2 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773printf %s "checking for $ac_word... " >&6; } 7774if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7775then : 7776 printf %s "(cached) " >&6 7777else $as_nop 7778 if test -n "$ac_ct_DSYMUTIL"; then 7779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 case $as_dir in #((( 7786 '') as_dir=./ ;; 7787 */) ;; 7788 *) as_dir=$as_dir/ ;; 7789 esac 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7803if test -n "$ac_ct_DSYMUTIL"; then 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7805printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7806else 7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808printf "%s\n" "no" >&6; } 7809fi 7810 7811 if test "x$ac_ct_DSYMUTIL" = x; then 7812 DSYMUTIL=":" 7813 else 7814 case $cross_compiling:$ac_tool_warned in 7815yes:) 7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7818ac_tool_warned=yes ;; 7819esac 7820 DSYMUTIL=$ac_ct_DSYMUTIL 7821 fi 7822else 7823 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7824fi 7825 7826 if test -n "$ac_tool_prefix"; then 7827 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7828set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7830printf %s "checking for $ac_word... " >&6; } 7831if test ${ac_cv_prog_NMEDIT+y} 7832then : 7833 printf %s "(cached) " >&6 7834else $as_nop 7835 if test -n "$NMEDIT"; then 7836 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7837else 7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7839for as_dir in $PATH 7840do 7841 IFS=$as_save_IFS 7842 case $as_dir in #((( 7843 '') as_dir=./ ;; 7844 */) ;; 7845 *) as_dir=$as_dir/ ;; 7846 esac 7847 for ac_exec_ext in '' $ac_executable_extensions; do 7848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7849 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7851 break 2 7852 fi 7853done 7854 done 7855IFS=$as_save_IFS 7856 7857fi 7858fi 7859NMEDIT=$ac_cv_prog_NMEDIT 7860if test -n "$NMEDIT"; then 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7862printf "%s\n" "$NMEDIT" >&6; } 7863else 7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865printf "%s\n" "no" >&6; } 7866fi 7867 7868 7869fi 7870if test -z "$ac_cv_prog_NMEDIT"; then 7871 ac_ct_NMEDIT=$NMEDIT 7872 # Extract the first word of "nmedit", so it can be a program name with args. 7873set dummy nmedit; ac_word=$2 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875printf %s "checking for $ac_word... " >&6; } 7876if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7877then : 7878 printf %s "(cached) " >&6 7879else $as_nop 7880 if test -n "$ac_ct_NMEDIT"; then 7881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 case $as_dir in #((( 7888 '') as_dir=./ ;; 7889 */) ;; 7890 *) as_dir=$as_dir/ ;; 7891 esac 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7894 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi 7903fi 7904ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7905if test -n "$ac_ct_NMEDIT"; then 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7907printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7908else 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910printf "%s\n" "no" >&6; } 7911fi 7912 7913 if test "x$ac_ct_NMEDIT" = x; then 7914 NMEDIT=":" 7915 else 7916 case $cross_compiling:$ac_tool_warned in 7917yes:) 7918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7919printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7920ac_tool_warned=yes ;; 7921esac 7922 NMEDIT=$ac_ct_NMEDIT 7923 fi 7924else 7925 NMEDIT="$ac_cv_prog_NMEDIT" 7926fi 7927 7928 if test -n "$ac_tool_prefix"; then 7929 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7930set dummy ${ac_tool_prefix}lipo; ac_word=$2 7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7932printf %s "checking for $ac_word... " >&6; } 7933if test ${ac_cv_prog_LIPO+y} 7934then : 7935 printf %s "(cached) " >&6 7936else $as_nop 7937 if test -n "$LIPO"; then 7938 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 case $as_dir in #((( 7945 '') as_dir=./ ;; 7946 */) ;; 7947 *) as_dir=$as_dir/ ;; 7948 esac 7949 for ac_exec_ext in '' $ac_executable_extensions; do 7950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7953 break 2 7954 fi 7955done 7956 done 7957IFS=$as_save_IFS 7958 7959fi 7960fi 7961LIPO=$ac_cv_prog_LIPO 7962if test -n "$LIPO"; then 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7964printf "%s\n" "$LIPO" >&6; } 7965else 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7967printf "%s\n" "no" >&6; } 7968fi 7969 7970 7971fi 7972if test -z "$ac_cv_prog_LIPO"; then 7973 ac_ct_LIPO=$LIPO 7974 # Extract the first word of "lipo", so it can be a program name with args. 7975set dummy lipo; ac_word=$2 7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7977printf %s "checking for $ac_word... " >&6; } 7978if test ${ac_cv_prog_ac_ct_LIPO+y} 7979then : 7980 printf %s "(cached) " >&6 7981else $as_nop 7982 if test -n "$ac_ct_LIPO"; then 7983 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7984else 7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7986for as_dir in $PATH 7987do 7988 IFS=$as_save_IFS 7989 case $as_dir in #((( 7990 '') as_dir=./ ;; 7991 */) ;; 7992 *) as_dir=$as_dir/ ;; 7993 esac 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7996 ac_cv_prog_ac_ct_LIPO="lipo" 7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000done 8001 done 8002IFS=$as_save_IFS 8003 8004fi 8005fi 8006ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8007if test -n "$ac_ct_LIPO"; then 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8009printf "%s\n" "$ac_ct_LIPO" >&6; } 8010else 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012printf "%s\n" "no" >&6; } 8013fi 8014 8015 if test "x$ac_ct_LIPO" = x; then 8016 LIPO=":" 8017 else 8018 case $cross_compiling:$ac_tool_warned in 8019yes:) 8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8022ac_tool_warned=yes ;; 8023esac 8024 LIPO=$ac_ct_LIPO 8025 fi 8026else 8027 LIPO="$ac_cv_prog_LIPO" 8028fi 8029 8030 if test -n "$ac_tool_prefix"; then 8031 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8032set dummy ${ac_tool_prefix}otool; ac_word=$2 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034printf %s "checking for $ac_word... " >&6; } 8035if test ${ac_cv_prog_OTOOL+y} 8036then : 8037 printf %s "(cached) " >&6 8038else $as_nop 8039 if test -n "$OTOOL"; then 8040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8041else 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8043for as_dir in $PATH 8044do 8045 IFS=$as_save_IFS 8046 case $as_dir in #((( 8047 '') as_dir=./ ;; 8048 */) ;; 8049 *) as_dir=$as_dir/ ;; 8050 esac 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063OTOOL=$ac_cv_prog_OTOOL 8064if test -n "$OTOOL"; then 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8066printf "%s\n" "$OTOOL" >&6; } 8067else 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069printf "%s\n" "no" >&6; } 8070fi 8071 8072 8073fi 8074if test -z "$ac_cv_prog_OTOOL"; then 8075 ac_ct_OTOOL=$OTOOL 8076 # Extract the first word of "otool", so it can be a program name with args. 8077set dummy otool; ac_word=$2 8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8079printf %s "checking for $ac_word... " >&6; } 8080if test ${ac_cv_prog_ac_ct_OTOOL+y} 8081then : 8082 printf %s "(cached) " >&6 8083else $as_nop 8084 if test -n "$ac_ct_OTOOL"; then 8085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8086else 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088for as_dir in $PATH 8089do 8090 IFS=$as_save_IFS 8091 case $as_dir in #((( 8092 '') as_dir=./ ;; 8093 */) ;; 8094 *) as_dir=$as_dir/ ;; 8095 esac 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_ac_ct_OTOOL="otool" 8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8109if test -n "$ac_ct_OTOOL"; then 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8111printf "%s\n" "$ac_ct_OTOOL" >&6; } 8112else 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114printf "%s\n" "no" >&6; } 8115fi 8116 8117 if test "x$ac_ct_OTOOL" = x; then 8118 OTOOL=":" 8119 else 8120 case $cross_compiling:$ac_tool_warned in 8121yes:) 8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8124ac_tool_warned=yes ;; 8125esac 8126 OTOOL=$ac_ct_OTOOL 8127 fi 8128else 8129 OTOOL="$ac_cv_prog_OTOOL" 8130fi 8131 8132 if test -n "$ac_tool_prefix"; then 8133 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8134set dummy ${ac_tool_prefix}otool64; ac_word=$2 8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8136printf %s "checking for $ac_word... " >&6; } 8137if test ${ac_cv_prog_OTOOL64+y} 8138then : 8139 printf %s "(cached) " >&6 8140else $as_nop 8141 if test -n "$OTOOL64"; then 8142 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8143else 8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8145for as_dir in $PATH 8146do 8147 IFS=$as_save_IFS 8148 case $as_dir in #((( 8149 '') as_dir=./ ;; 8150 */) ;; 8151 *) as_dir=$as_dir/ ;; 8152 esac 8153 for ac_exec_ext in '' $ac_executable_extensions; do 8154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8155 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8157 break 2 8158 fi 8159done 8160 done 8161IFS=$as_save_IFS 8162 8163fi 8164fi 8165OTOOL64=$ac_cv_prog_OTOOL64 8166if test -n "$OTOOL64"; then 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8168printf "%s\n" "$OTOOL64" >&6; } 8169else 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8171printf "%s\n" "no" >&6; } 8172fi 8173 8174 8175fi 8176if test -z "$ac_cv_prog_OTOOL64"; then 8177 ac_ct_OTOOL64=$OTOOL64 8178 # Extract the first word of "otool64", so it can be a program name with args. 8179set dummy otool64; ac_word=$2 8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8181printf %s "checking for $ac_word... " >&6; } 8182if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8183then : 8184 printf %s "(cached) " >&6 8185else $as_nop 8186 if test -n "$ac_ct_OTOOL64"; then 8187 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8188else 8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190for as_dir in $PATH 8191do 8192 IFS=$as_save_IFS 8193 case $as_dir in #((( 8194 '') as_dir=./ ;; 8195 */) ;; 8196 *) as_dir=$as_dir/ ;; 8197 esac 8198 for ac_exec_ext in '' $ac_executable_extensions; do 8199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8200 ac_cv_prog_ac_ct_OTOOL64="otool64" 8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8202 break 2 8203 fi 8204done 8205 done 8206IFS=$as_save_IFS 8207 8208fi 8209fi 8210ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8211if test -n "$ac_ct_OTOOL64"; then 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8213printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8214else 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8216printf "%s\n" "no" >&6; } 8217fi 8218 8219 if test "x$ac_ct_OTOOL64" = x; then 8220 OTOOL64=":" 8221 else 8222 case $cross_compiling:$ac_tool_warned in 8223yes:) 8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8225printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8226ac_tool_warned=yes ;; 8227esac 8228 OTOOL64=$ac_ct_OTOOL64 8229 fi 8230else 8231 OTOOL64="$ac_cv_prog_OTOOL64" 8232fi 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8261printf %s "checking for -single_module linker flag... " >&6; } 8262if test ${lt_cv_apple_cc_single_mod+y} 8263then : 8264 printf %s "(cached) " >&6 8265else $as_nop 8266 lt_cv_apple_cc_single_mod=no 8267 if test -z "$LT_MULTI_MODULE"; then 8268 # By default we will add the -single_module flag. You can override 8269 # by either setting the environment variable LT_MULTI_MODULE 8270 # non-empty at configure time, or by adding -multi_module to the 8271 # link flags. 8272 rm -rf libconftest.dylib* 8273 echo "int foo(void){return 1;}" > conftest.c 8274 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8275-dynamiclib -Wl,-single_module conftest.c" >&5 8276 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8277 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8278 _lt_result=$? 8279 # If there is a non-empty error log, and "single_module" 8280 # appears in it, assume the flag caused a linker warning 8281 if test -s conftest.err && $GREP single_module conftest.err; then 8282 cat conftest.err >&5 8283 # Otherwise, if the output was created with a 0 exit code from 8284 # the compiler, it worked. 8285 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8286 lt_cv_apple_cc_single_mod=yes 8287 else 8288 cat conftest.err >&5 8289 fi 8290 rm -rf libconftest.dylib* 8291 rm -f conftest.* 8292 fi 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8295printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8296 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8298printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8299if test ${lt_cv_ld_exported_symbols_list+y} 8300then : 8301 printf %s "(cached) " >&6 8302else $as_nop 8303 lt_cv_ld_exported_symbols_list=no 8304 save_LDFLAGS=$LDFLAGS 8305 echo "_main" > conftest.sym 8306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309 8310int 8311main (void) 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO" 8319then : 8320 lt_cv_ld_exported_symbols_list=yes 8321else $as_nop 8322 lt_cv_ld_exported_symbols_list=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8325 conftest$ac_exeext conftest.$ac_ext 8326 LDFLAGS=$save_LDFLAGS 8327 8328fi 8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8330printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8331 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8333printf %s "checking for -force_load linker flag... " >&6; } 8334if test ${lt_cv_ld_force_load+y} 8335then : 8336 printf %s "(cached) " >&6 8337else $as_nop 8338 lt_cv_ld_force_load=no 8339 cat > conftest.c << _LT_EOF 8340int forced_loaded() { return 2;} 8341_LT_EOF 8342 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8343 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8344 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8345 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8346 echo "$RANLIB libconftest.a" >&5 8347 $RANLIB libconftest.a 2>&5 8348 cat > conftest.c << _LT_EOF 8349int main() { return 0;} 8350_LT_EOF 8351 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8352 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8353 _lt_result=$? 8354 if test -s conftest.err && $GREP force_load conftest.err; then 8355 cat conftest.err >&5 8356 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8357 lt_cv_ld_force_load=yes 8358 else 8359 cat conftest.err >&5 8360 fi 8361 rm -f conftest.err libconftest.a conftest conftest.c 8362 rm -rf conftest.dSYM 8363 8364fi 8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8366printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8367 case $host_os in 8368 rhapsody* | darwin1.[012]) 8369 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8370 darwin1.*) 8371 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8372 darwin*) 8373 case $MACOSX_DEPLOYMENT_TARGET,$host in 8374 10.[012],*|,*powerpc*-darwin[5-8]*) 8375 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8376 *) 8377 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8378 esac 8379 ;; 8380 esac 8381 if test yes = "$lt_cv_apple_cc_single_mod"; then 8382 _lt_dar_single_mod='$single_module' 8383 fi 8384 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8385 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8386 else 8387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8388 fi 8389 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8390 _lt_dsymutil='~$DSYMUTIL $lib || :' 8391 else 8392 _lt_dsymutil= 8393 fi 8394 ;; 8395 esac 8396 8397# func_munge_path_list VARIABLE PATH 8398# ----------------------------------- 8399# VARIABLE is name of variable containing _space_ separated list of 8400# directories to be munged by the contents of PATH, which is string 8401# having a format: 8402# "DIR[:DIR]:" 8403# string "DIR[ DIR]" will be prepended to VARIABLE 8404# ":DIR[:DIR]" 8405# string "DIR[ DIR]" will be appended to VARIABLE 8406# "DIRP[:DIRP]::[DIRA:]DIRA" 8407# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8408# "DIRA[ DIRA]" will be appended to VARIABLE 8409# "DIR[:DIR]" 8410# VARIABLE will be replaced by "DIR[ DIR]" 8411func_munge_path_list () 8412{ 8413 case x$2 in 8414 x) 8415 ;; 8416 *:) 8417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8418 ;; 8419 x:*) 8420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8421 ;; 8422 *::*) 8423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8425 ;; 8426 *) 8427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8428 ;; 8429 esac 8430} 8431 8432ac_header= ac_cache= 8433for ac_item in $ac_header_c_list 8434do 8435 if test $ac_cache; then 8436 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8437 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8438 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8439 fi 8440 ac_header= ac_cache= 8441 elif test $ac_header; then 8442 ac_cache=$ac_item 8443 else 8444 ac_header=$ac_item 8445 fi 8446done 8447 8448 8449 8450 8451 8452 8453 8454 8455if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8456then : 8457 8458printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8459 8460fi 8461ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8462" 8463if test "x$ac_cv_header_dlfcn_h" = xyes 8464then : 8465 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8466 8467fi 8468 8469 8470 8471 8472 8473# Set options 8474 8475 8476 8477 enable_dlopen=no 8478 8479 8480 enable_win32_dll=no 8481 8482 8483 # Check whether --enable-shared was given. 8484if test ${enable_shared+y} 8485then : 8486 enableval=$enable_shared; p=${PACKAGE-default} 8487 case $enableval in 8488 yes) enable_shared=yes ;; 8489 no) enable_shared=no ;; 8490 *) 8491 enable_shared=no 8492 # Look at the argument we got. We use all the common list separators. 8493 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8494 for pkg in $enableval; do 8495 IFS=$lt_save_ifs 8496 if test "X$pkg" = "X$p"; then 8497 enable_shared=yes 8498 fi 8499 done 8500 IFS=$lt_save_ifs 8501 ;; 8502 esac 8503else $as_nop 8504 enable_shared=yes 8505fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 # Check whether --enable-static was given. 8516if test ${enable_static+y} 8517then : 8518 enableval=$enable_static; p=${PACKAGE-default} 8519 case $enableval in 8520 yes) enable_static=yes ;; 8521 no) enable_static=no ;; 8522 *) 8523 enable_static=no 8524 # Look at the argument we got. We use all the common list separators. 8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8526 for pkg in $enableval; do 8527 IFS=$lt_save_ifs 8528 if test "X$pkg" = "X$p"; then 8529 enable_static=yes 8530 fi 8531 done 8532 IFS=$lt_save_ifs 8533 ;; 8534 esac 8535else $as_nop 8536 enable_static=yes 8537fi 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548# Check whether --with-pic was given. 8549if test ${with_pic+y} 8550then : 8551 withval=$with_pic; lt_p=${PACKAGE-default} 8552 case $withval in 8553 yes|no) pic_mode=$withval ;; 8554 *) 8555 pic_mode=default 8556 # Look at the argument we got. We use all the common list separators. 8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8558 for lt_pkg in $withval; do 8559 IFS=$lt_save_ifs 8560 if test "X$lt_pkg" = "X$lt_p"; then 8561 pic_mode=yes 8562 fi 8563 done 8564 IFS=$lt_save_ifs 8565 ;; 8566 esac 8567else $as_nop 8568 pic_mode=default 8569fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 # Check whether --enable-fast-install was given. 8579if test ${enable_fast_install+y} 8580then : 8581 enableval=$enable_fast_install; p=${PACKAGE-default} 8582 case $enableval in 8583 yes) enable_fast_install=yes ;; 8584 no) enable_fast_install=no ;; 8585 *) 8586 enable_fast_install=no 8587 # Look at the argument we got. We use all the common list separators. 8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8589 for pkg in $enableval; do 8590 IFS=$lt_save_ifs 8591 if test "X$pkg" = "X$p"; then 8592 enable_fast_install=yes 8593 fi 8594 done 8595 IFS=$lt_save_ifs 8596 ;; 8597 esac 8598else $as_nop 8599 enable_fast_install=yes 8600fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 shared_archive_member_spec= 8610case $host,$enable_shared in 8611power*-*-aix[5-9]*,yes) 8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8613printf %s "checking which variant of shared library versioning to provide... " >&6; } 8614 8615# Check whether --with-aix-soname was given. 8616if test ${with_aix_soname+y} 8617then : 8618 withval=$with_aix_soname; case $withval in 8619 aix|svr4|both) 8620 ;; 8621 *) 8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8623 ;; 8624 esac 8625 lt_cv_with_aix_soname=$with_aix_soname 8626else $as_nop 8627 if test ${lt_cv_with_aix_soname+y} 8628then : 8629 printf %s "(cached) " >&6 8630else $as_nop 8631 lt_cv_with_aix_soname=aix 8632fi 8633 8634 with_aix_soname=$lt_cv_with_aix_soname 8635fi 8636 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8638printf "%s\n" "$with_aix_soname" >&6; } 8639 if test aix != "$with_aix_soname"; then 8640 # For the AIX way of multilib, we name the shared archive member 8641 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8642 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8643 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8644 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8645 if test 64 = "${OBJECT_MODE-32}"; then 8646 shared_archive_member_spec=shr_64 8647 else 8648 shared_archive_member_spec=shr 8649 fi 8650 fi 8651 ;; 8652*) 8653 with_aix_soname=aix 8654 ;; 8655esac 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666# This can be used to rebuild libtool when needed 8667LIBTOOL_DEPS=$ltmain 8668 8669# Always use our own libtool. 8670LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701test -z "$LN_S" && LN_S="ln -s" 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716if test -n "${ZSH_VERSION+set}"; then 8717 setopt NO_GLOB_SUBST 8718fi 8719 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8721printf %s "checking for objdir... " >&6; } 8722if test ${lt_cv_objdir+y} 8723then : 8724 printf %s "(cached) " >&6 8725else $as_nop 8726 rm -f .libs 2>/dev/null 8727mkdir .libs 2>/dev/null 8728if test -d .libs; then 8729 lt_cv_objdir=.libs 8730else 8731 # MS-DOS does not allow filenames that begin with a dot. 8732 lt_cv_objdir=_libs 8733fi 8734rmdir .libs 2>/dev/null 8735fi 8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8737printf "%s\n" "$lt_cv_objdir" >&6; } 8738objdir=$lt_cv_objdir 8739 8740 8741 8742 8743 8744printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8745 8746 8747 8748 8749case $host_os in 8750aix3*) 8751 # AIX sometimes has problems with the GCC collect2 program. For some 8752 # reason, if we set the COLLECT_NAMES environment variable, the problems 8753 # vanish in a puff of smoke. 8754 if test set != "${COLLECT_NAMES+set}"; then 8755 COLLECT_NAMES= 8756 export COLLECT_NAMES 8757 fi 8758 ;; 8759esac 8760 8761# Global variables: 8762ofile=libtool 8763can_build_shared=yes 8764 8765# All known linkers require a '.a' archive for static linking (except MSVC and 8766# ICC, which need '.lib'). 8767libext=a 8768 8769with_gnu_ld=$lt_cv_prog_gnu_ld 8770 8771old_CC=$CC 8772old_CFLAGS=$CFLAGS 8773 8774# Set sane defaults for various variables 8775test -z "$CC" && CC=cc 8776test -z "$LTCC" && LTCC=$CC 8777test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8778test -z "$LD" && LD=ld 8779test -z "$ac_objext" && ac_objext=o 8780 8781func_cc_basename $compiler 8782cc_basename=$func_cc_basename_result 8783 8784 8785# Only perform the check for file, if the check method requires it 8786test -z "$MAGIC_CMD" && MAGIC_CMD=file 8787case $deplibs_check_method in 8788file_magic*) 8789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8791printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8792if test ${lt_cv_path_MAGIC_CMD+y} 8793then : 8794 printf %s "(cached) " >&6 8795else $as_nop 8796 case $MAGIC_CMD in 8797[\\/*] | ?:[\\/]*) 8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8799 ;; 8800*) 8801 lt_save_MAGIC_CMD=$MAGIC_CMD 8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8804 for ac_dir in $ac_dummy; do 8805 IFS=$lt_save_ifs 8806 test -z "$ac_dir" && ac_dir=. 8807 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8808 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8809 if test -n "$file_magic_test_file"; then 8810 case $deplibs_check_method in 8811 "file_magic "*) 8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8815 $EGREP "$file_magic_regex" > /dev/null; then 8816 : 8817 else 8818 cat <<_LT_EOF 1>&2 8819 8820*** Warning: the command libtool uses to detect shared libraries, 8821*** $file_magic_cmd, produces output that libtool cannot recognize. 8822*** The result is that libtool may fail to recognize shared libraries 8823*** as such. This will affect the creation of libtool libraries that 8824*** depend on shared libraries, but programs linked with such libtool 8825*** libraries will work regardless of this problem. Nevertheless, you 8826*** may want to report the problem to your system manager and/or to 8827*** bug-libtool@gnu.org 8828 8829_LT_EOF 8830 fi ;; 8831 esac 8832 fi 8833 break 8834 fi 8835 done 8836 IFS=$lt_save_ifs 8837 MAGIC_CMD=$lt_save_MAGIC_CMD 8838 ;; 8839esac 8840fi 8841 8842MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8843if test -n "$MAGIC_CMD"; then 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8845printf "%s\n" "$MAGIC_CMD" >&6; } 8846else 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8848printf "%s\n" "no" >&6; } 8849fi 8850 8851 8852 8853 8854 8855if test -z "$lt_cv_path_MAGIC_CMD"; then 8856 if test -n "$ac_tool_prefix"; then 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8858printf %s "checking for file... " >&6; } 8859if test ${lt_cv_path_MAGIC_CMD+y} 8860then : 8861 printf %s "(cached) " >&6 8862else $as_nop 8863 case $MAGIC_CMD in 8864[\\/*] | ?:[\\/]*) 8865 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8866 ;; 8867*) 8868 lt_save_MAGIC_CMD=$MAGIC_CMD 8869 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8871 for ac_dir in $ac_dummy; do 8872 IFS=$lt_save_ifs 8873 test -z "$ac_dir" && ac_dir=. 8874 if test -f "$ac_dir/file"; then 8875 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8876 if test -n "$file_magic_test_file"; then 8877 case $deplibs_check_method in 8878 "file_magic "*) 8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8882 $EGREP "$file_magic_regex" > /dev/null; then 8883 : 8884 else 8885 cat <<_LT_EOF 1>&2 8886 8887*** Warning: the command libtool uses to detect shared libraries, 8888*** $file_magic_cmd, produces output that libtool cannot recognize. 8889*** The result is that libtool may fail to recognize shared libraries 8890*** as such. This will affect the creation of libtool libraries that 8891*** depend on shared libraries, but programs linked with such libtool 8892*** libraries will work regardless of this problem. Nevertheless, you 8893*** may want to report the problem to your system manager and/or to 8894*** bug-libtool@gnu.org 8895 8896_LT_EOF 8897 fi ;; 8898 esac 8899 fi 8900 break 8901 fi 8902 done 8903 IFS=$lt_save_ifs 8904 MAGIC_CMD=$lt_save_MAGIC_CMD 8905 ;; 8906esac 8907fi 8908 8909MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8910if test -n "$MAGIC_CMD"; then 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8912printf "%s\n" "$MAGIC_CMD" >&6; } 8913else 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915printf "%s\n" "no" >&6; } 8916fi 8917 8918 8919 else 8920 MAGIC_CMD=: 8921 fi 8922fi 8923 8924 fi 8925 ;; 8926esac 8927 8928# Use C for the default configuration in the libtool script 8929 8930lt_save_CC=$CC 8931ac_ext=c 8932ac_cpp='$CPP $CPPFLAGS' 8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8935ac_compiler_gnu=$ac_cv_c_compiler_gnu 8936 8937 8938# Source file extension for C test sources. 8939ac_ext=c 8940 8941# Object file extension for compiled C test sources. 8942objext=o 8943objext=$objext 8944 8945# Code to be used in simple compile tests 8946lt_simple_compile_test_code="int some_variable = 0;" 8947 8948# Code to be used in simple link tests 8949lt_simple_link_test_code='int main(){return(0);}' 8950 8951 8952 8953 8954 8955 8956 8957# If no C compiler was specified, use CC. 8958LTCC=${LTCC-"$CC"} 8959 8960# If no C compiler flags were specified, use CFLAGS. 8961LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8962 8963# Allow CC to be a program name with arguments. 8964compiler=$CC 8965 8966# Save the default compiler, since it gets overwritten when the other 8967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8968compiler_DEFAULT=$CC 8969 8970# save warnings/boilerplate of simple test code 8971ac_outfile=conftest.$ac_objext 8972echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8974_lt_compiler_boilerplate=`cat conftest.err` 8975$RM conftest* 8976 8977ac_outfile=conftest.$ac_objext 8978echo "$lt_simple_link_test_code" >conftest.$ac_ext 8979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8980_lt_linker_boilerplate=`cat conftest.err` 8981$RM -r conftest* 8982 8983 8984## CAVEAT EMPTOR: 8985## There is no encapsulation within the following macros, do not change 8986## the running order or otherwise move them around unless you know exactly 8987## what you are doing... 8988if test -n "$compiler"; then 8989 8990lt_prog_compiler_no_builtin_flag= 8991 8992if test yes = "$GCC"; then 8993 case $cc_basename in 8994 nvcc*) 8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8996 *) 8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8998 esac 8999 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9001printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9002if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9003then : 9004 printf %s "(cached) " >&6 9005else $as_nop 9006 lt_cv_prog_compiler_rtti_exceptions=no 9007 ac_outfile=conftest.$ac_objext 9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9009 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9010 # Insert the option either (1) after the last *FLAGS variable, or 9011 # (2) before a word containing "conftest.", or (3) at the end. 9012 # Note that $ac_compile itself does not contain backslashes and begins 9013 # with a dollar sign (not a hyphen), so the echo should work correctly. 9014 # The option is referenced via a variable to avoid confusing sed. 9015 lt_compile=`echo "$ac_compile" | $SED \ 9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9018 -e 's:$: $lt_compiler_flag:'` 9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9020 (eval "$lt_compile" 2>conftest.err) 9021 ac_status=$? 9022 cat conftest.err >&5 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 if (exit $ac_status) && test -s "$ac_outfile"; then 9025 # The compiler can only warn and ignore the option if not recognized 9026 # So say no if there are warnings other than the usual output. 9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9030 lt_cv_prog_compiler_rtti_exceptions=yes 9031 fi 9032 fi 9033 $RM conftest* 9034 9035fi 9036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9037printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9038 9039if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9040 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9041else 9042 : 9043fi 9044 9045fi 9046 9047 9048 9049 9050 9051 9052 lt_prog_compiler_wl= 9053lt_prog_compiler_pic= 9054lt_prog_compiler_static= 9055 9056 9057 if test yes = "$GCC"; then 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_static='-static' 9060 9061 case $host_os in 9062 aix*) 9063 # All AIX code is PIC. 9064 if test ia64 = "$host_cpu"; then 9065 # AIX 5 now supports IA64 processor 9066 lt_prog_compiler_static='-Bstatic' 9067 fi 9068 lt_prog_compiler_pic='-fPIC' 9069 ;; 9070 9071 amigaos*) 9072 case $host_cpu in 9073 powerpc) 9074 # see comment about AmigaOS4 .so support 9075 lt_prog_compiler_pic='-fPIC' 9076 ;; 9077 m68k) 9078 # FIXME: we need at least 68020 code to build shared libraries, but 9079 # adding the '-m68020' flag to GCC prevents building anything better, 9080 # like '-m68040'. 9081 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9082 ;; 9083 esac 9084 ;; 9085 9086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9087 # PIC is the default for these OSes. 9088 ;; 9089 9090 mingw* | cygwin* | pw32* | os2* | cegcc*) 9091 # This hack is so that the source file can tell whether it is being 9092 # built for inclusion in a dll (and should export symbols for example). 9093 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9094 # (--disable-auto-import) libraries 9095 lt_prog_compiler_pic='-DDLL_EXPORT' 9096 case $host_os in 9097 os2*) 9098 lt_prog_compiler_static='$wl-static' 9099 ;; 9100 esac 9101 ;; 9102 9103 darwin* | rhapsody*) 9104 # PIC is the default on this platform 9105 # Common symbols not allowed in MH_DYLIB files 9106 lt_prog_compiler_pic='-fno-common' 9107 ;; 9108 9109 haiku*) 9110 # PIC is the default for Haiku. 9111 # The "-static" flag exists, but is broken. 9112 lt_prog_compiler_static= 9113 ;; 9114 9115 hpux*) 9116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9118 # sets the default TLS model and affects inlining. 9119 case $host_cpu in 9120 hppa*64*) 9121 # +Z the default 9122 ;; 9123 *) 9124 lt_prog_compiler_pic='-fPIC' 9125 ;; 9126 esac 9127 ;; 9128 9129 interix[3-9]*) 9130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9131 # Instead, we relocate shared libraries at runtime. 9132 ;; 9133 9134 msdosdjgpp*) 9135 # Just because we use GCC doesn't mean we suddenly get shared libraries 9136 # on systems that don't support them. 9137 lt_prog_compiler_can_build_shared=no 9138 enable_shared=no 9139 ;; 9140 9141 *nto* | *qnx*) 9142 # QNX uses GNU C++, but need to define -shared option too, otherwise 9143 # it will coredump. 9144 lt_prog_compiler_pic='-fPIC -shared' 9145 ;; 9146 9147 sysv4*MP*) 9148 if test -d /usr/nec; then 9149 lt_prog_compiler_pic=-Kconform_pic 9150 fi 9151 ;; 9152 9153 *) 9154 lt_prog_compiler_pic='-fPIC' 9155 ;; 9156 esac 9157 9158 case $cc_basename in 9159 nvcc*) # Cuda Compiler Driver 2.2 9160 lt_prog_compiler_wl='-Xlinker ' 9161 if test -n "$lt_prog_compiler_pic"; then 9162 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9163 fi 9164 ;; 9165 esac 9166 else 9167 # PORTME Check for flag to pass linker flags through the system compiler. 9168 case $host_os in 9169 aix*) 9170 lt_prog_compiler_wl='-Wl,' 9171 if test ia64 = "$host_cpu"; then 9172 # AIX 5 now supports IA64 processor 9173 lt_prog_compiler_static='-Bstatic' 9174 else 9175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9176 fi 9177 ;; 9178 9179 darwin* | rhapsody*) 9180 # PIC is the default on this platform 9181 # Common symbols not allowed in MH_DYLIB files 9182 lt_prog_compiler_pic='-fno-common' 9183 case $cc_basename in 9184 nagfor*) 9185 # NAG Fortran compiler 9186 lt_prog_compiler_wl='-Wl,-Wl,,' 9187 lt_prog_compiler_pic='-PIC' 9188 lt_prog_compiler_static='-Bstatic' 9189 ;; 9190 esac 9191 ;; 9192 9193 mingw* | cygwin* | pw32* | os2* | cegcc*) 9194 # This hack is so that the source file can tell whether it is being 9195 # built for inclusion in a dll (and should export symbols for example). 9196 lt_prog_compiler_pic='-DDLL_EXPORT' 9197 case $host_os in 9198 os2*) 9199 lt_prog_compiler_static='$wl-static' 9200 ;; 9201 esac 9202 ;; 9203 9204 hpux9* | hpux10* | hpux11*) 9205 lt_prog_compiler_wl='-Wl,' 9206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9207 # not for PA HP-UX. 9208 case $host_cpu in 9209 hppa*64*|ia64*) 9210 # +Z the default 9211 ;; 9212 *) 9213 lt_prog_compiler_pic='+Z' 9214 ;; 9215 esac 9216 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9217 lt_prog_compiler_static='$wl-a ${wl}archive' 9218 ;; 9219 9220 irix5* | irix6* | nonstopux*) 9221 lt_prog_compiler_wl='-Wl,' 9222 # PIC (with -KPIC) is the default. 9223 lt_prog_compiler_static='-non_shared' 9224 ;; 9225 9226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9227 case $cc_basename in 9228 # old Intel for x86_64, which still supported -KPIC. 9229 ecc*) 9230 lt_prog_compiler_wl='-Wl,' 9231 lt_prog_compiler_pic='-KPIC' 9232 lt_prog_compiler_static='-static' 9233 ;; 9234 # icc used to be incompatible with GCC. 9235 # ICC 10 doesn't accept -KPIC any more. 9236 icc* | ifort*) 9237 lt_prog_compiler_wl='-Wl,' 9238 lt_prog_compiler_pic='-fPIC' 9239 lt_prog_compiler_static='-static' 9240 ;; 9241 # Lahey Fortran 8.1. 9242 lf95*) 9243 lt_prog_compiler_wl='-Wl,' 9244 lt_prog_compiler_pic='--shared' 9245 lt_prog_compiler_static='--static' 9246 ;; 9247 nagfor*) 9248 # NAG Fortran compiler 9249 lt_prog_compiler_wl='-Wl,-Wl,,' 9250 lt_prog_compiler_pic='-PIC' 9251 lt_prog_compiler_static='-Bstatic' 9252 ;; 9253 tcc*) 9254 # Fabrice Bellard et al's Tiny C Compiler 9255 lt_prog_compiler_wl='-Wl,' 9256 lt_prog_compiler_pic='-fPIC' 9257 lt_prog_compiler_static='-static' 9258 ;; 9259 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9260 # Portland Group compilers (*not* the Pentium gcc compiler, 9261 # which looks to be a dead project) 9262 lt_prog_compiler_wl='-Wl,' 9263 lt_prog_compiler_pic='-fpic' 9264 lt_prog_compiler_static='-Bstatic' 9265 ;; 9266 ccc*) 9267 lt_prog_compiler_wl='-Wl,' 9268 # All Alpha code is PIC. 9269 lt_prog_compiler_static='-non_shared' 9270 ;; 9271 xl* | bgxl* | bgf* | mpixl*) 9272 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9273 lt_prog_compiler_wl='-Wl,' 9274 lt_prog_compiler_pic='-qpic' 9275 lt_prog_compiler_static='-qstaticlink' 9276 ;; 9277 *) 9278 case `$CC -V 2>&1 | $SED 5q` in 9279 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9280 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9281 lt_prog_compiler_pic='-KPIC' 9282 lt_prog_compiler_static='-Bstatic' 9283 lt_prog_compiler_wl='' 9284 ;; 9285 *Sun\ F* | *Sun*Fortran*) 9286 lt_prog_compiler_pic='-KPIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 lt_prog_compiler_wl='-Qoption ld ' 9289 ;; 9290 *Sun\ C*) 9291 # Sun C 5.9 9292 lt_prog_compiler_pic='-KPIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 lt_prog_compiler_wl='-Wl,' 9295 ;; 9296 *Intel*\ [CF]*Compiler*) 9297 lt_prog_compiler_wl='-Wl,' 9298 lt_prog_compiler_pic='-fPIC' 9299 lt_prog_compiler_static='-static' 9300 ;; 9301 *Portland\ Group*) 9302 lt_prog_compiler_wl='-Wl,' 9303 lt_prog_compiler_pic='-fpic' 9304 lt_prog_compiler_static='-Bstatic' 9305 ;; 9306 esac 9307 ;; 9308 esac 9309 ;; 9310 9311 newsos6) 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 ;; 9315 9316 *nto* | *qnx*) 9317 # QNX uses GNU C++, but need to define -shared option too, otherwise 9318 # it will coredump. 9319 lt_prog_compiler_pic='-fPIC -shared' 9320 ;; 9321 9322 osf3* | osf4* | osf5*) 9323 lt_prog_compiler_wl='-Wl,' 9324 # All OSF/1 code is PIC. 9325 lt_prog_compiler_static='-non_shared' 9326 ;; 9327 9328 rdos*) 9329 lt_prog_compiler_static='-non_shared' 9330 ;; 9331 9332 solaris*) 9333 lt_prog_compiler_pic='-KPIC' 9334 lt_prog_compiler_static='-Bstatic' 9335 case $cc_basename in 9336 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9337 lt_prog_compiler_wl='-Qoption ld ';; 9338 *) 9339 lt_prog_compiler_wl='-Wl,';; 9340 esac 9341 ;; 9342 9343 sunos4*) 9344 lt_prog_compiler_wl='-Qoption ld ' 9345 lt_prog_compiler_pic='-PIC' 9346 lt_prog_compiler_static='-Bstatic' 9347 ;; 9348 9349 sysv4 | sysv4.2uw2* | sysv4.3*) 9350 lt_prog_compiler_wl='-Wl,' 9351 lt_prog_compiler_pic='-KPIC' 9352 lt_prog_compiler_static='-Bstatic' 9353 ;; 9354 9355 sysv4*MP*) 9356 if test -d /usr/nec; then 9357 lt_prog_compiler_pic='-Kconform_pic' 9358 lt_prog_compiler_static='-Bstatic' 9359 fi 9360 ;; 9361 9362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9363 lt_prog_compiler_wl='-Wl,' 9364 lt_prog_compiler_pic='-KPIC' 9365 lt_prog_compiler_static='-Bstatic' 9366 ;; 9367 9368 unicos*) 9369 lt_prog_compiler_wl='-Wl,' 9370 lt_prog_compiler_can_build_shared=no 9371 ;; 9372 9373 uts4*) 9374 lt_prog_compiler_pic='-pic' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 9378 *) 9379 lt_prog_compiler_can_build_shared=no 9380 ;; 9381 esac 9382 fi 9383 9384case $host_os in 9385 # For platforms that do not support PIC, -DPIC is meaningless: 9386 *djgpp*) 9387 lt_prog_compiler_pic= 9388 ;; 9389 *) 9390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9391 ;; 9392esac 9393 9394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9395printf %s "checking for $compiler option to produce PIC... " >&6; } 9396if test ${lt_cv_prog_compiler_pic+y} 9397then : 9398 printf %s "(cached) " >&6 9399else $as_nop 9400 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9401fi 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9403printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9404lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9405 9406# 9407# Check to make sure the PIC flag actually works. 9408# 9409if test -n "$lt_prog_compiler_pic"; then 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9411printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9412if test ${lt_cv_prog_compiler_pic_works+y} 9413then : 9414 printf %s "(cached) " >&6 9415else $as_nop 9416 lt_cv_prog_compiler_pic_works=no 9417 ac_outfile=conftest.$ac_objext 9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9420 # Insert the option either (1) after the last *FLAGS variable, or 9421 # (2) before a word containing "conftest.", or (3) at the end. 9422 # Note that $ac_compile itself does not contain backslashes and begins 9423 # with a dollar sign (not a hyphen), so the echo should work correctly. 9424 # The option is referenced via a variable to avoid confusing sed. 9425 lt_compile=`echo "$ac_compile" | $SED \ 9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9428 -e 's:$: $lt_compiler_flag:'` 9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9430 (eval "$lt_compile" 2>conftest.err) 9431 ac_status=$? 9432 cat conftest.err >&5 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9434 if (exit $ac_status) && test -s "$ac_outfile"; then 9435 # The compiler can only warn and ignore the option if not recognized 9436 # So say no if there are warnings other than the usual output. 9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9440 lt_cv_prog_compiler_pic_works=yes 9441 fi 9442 fi 9443 $RM conftest* 9444 9445fi 9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9447printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9448 9449if test yes = "$lt_cv_prog_compiler_pic_works"; then 9450 case $lt_prog_compiler_pic in 9451 "" | " "*) ;; 9452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9453 esac 9454else 9455 lt_prog_compiler_pic= 9456 lt_prog_compiler_can_build_shared=no 9457fi 9458 9459fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471# 9472# Check to make sure the static flag actually works. 9473# 9474wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9476printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9477if test ${lt_cv_prog_compiler_static_works+y} 9478then : 9479 printf %s "(cached) " >&6 9480else $as_nop 9481 lt_cv_prog_compiler_static_works=no 9482 save_LDFLAGS=$LDFLAGS 9483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9486 # The linker can only warn and ignore the option if not recognized 9487 # So say no if there are warnings 9488 if test -s conftest.err; then 9489 # Append any errors to the config.log. 9490 cat conftest.err 1>&5 9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9493 if diff conftest.exp conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_static_works=yes 9495 fi 9496 else 9497 lt_cv_prog_compiler_static_works=yes 9498 fi 9499 fi 9500 $RM -r conftest* 9501 LDFLAGS=$save_LDFLAGS 9502 9503fi 9504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9505printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9506 9507if test yes = "$lt_cv_prog_compiler_static_works"; then 9508 : 9509else 9510 lt_prog_compiler_static= 9511fi 9512 9513 9514 9515 9516 9517 9518 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9520printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9521if test ${lt_cv_prog_compiler_c_o+y} 9522then : 9523 printf %s "(cached) " >&6 9524else $as_nop 9525 lt_cv_prog_compiler_c_o=no 9526 $RM -r conftest 2>/dev/null 9527 mkdir conftest 9528 cd conftest 9529 mkdir out 9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9531 9532 lt_compiler_flag="-o out/conftest2.$ac_objext" 9533 # Insert the option either (1) after the last *FLAGS variable, or 9534 # (2) before a word containing "conftest.", or (3) at the end. 9535 # Note that $ac_compile itself does not contain backslashes and begins 9536 # with a dollar sign (not a hyphen), so the echo should work correctly. 9537 lt_compile=`echo "$ac_compile" | $SED \ 9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9540 -e 's:$: $lt_compiler_flag:'` 9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9542 (eval "$lt_compile" 2>out/conftest.err) 9543 ac_status=$? 9544 cat out/conftest.err >&5 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9547 then 9548 # The compiler can only warn and ignore the option if not recognized 9549 # So say no if there are warnings 9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9553 lt_cv_prog_compiler_c_o=yes 9554 fi 9555 fi 9556 chmod u+w . 2>&5 9557 $RM conftest* 9558 # SGI C++ compiler will create directory out/ii_files/ for 9559 # template instantiation 9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9561 $RM out/* && rmdir out 9562 cd .. 9563 $RM -r conftest 9564 $RM conftest* 9565 9566fi 9567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9568printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9569 9570 9571 9572 9573 9574 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9576printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9577if test ${lt_cv_prog_compiler_c_o+y} 9578then : 9579 printf %s "(cached) " >&6 9580else $as_nop 9581 lt_cv_prog_compiler_c_o=no 9582 $RM -r conftest 2>/dev/null 9583 mkdir conftest 9584 cd conftest 9585 mkdir out 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 9588 lt_compiler_flag="-o out/conftest2.$ac_objext" 9589 # Insert the option either (1) after the last *FLAGS variable, or 9590 # (2) before a word containing "conftest.", or (3) at the end. 9591 # Note that $ac_compile itself does not contain backslashes and begins 9592 # with a dollar sign (not a hyphen), so the echo should work correctly. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>out/conftest.err) 9599 ac_status=$? 9600 cat out/conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9603 then 9604 # The compiler can only warn and ignore the option if not recognized 9605 # So say no if there are warnings 9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9609 lt_cv_prog_compiler_c_o=yes 9610 fi 9611 fi 9612 chmod u+w . 2>&5 9613 $RM conftest* 9614 # SGI C++ compiler will create directory out/ii_files/ for 9615 # template instantiation 9616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9617 $RM out/* && rmdir out 9618 cd .. 9619 $RM -r conftest 9620 $RM conftest* 9621 9622fi 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9624printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9625 9626 9627 9628 9629hard_links=nottested 9630if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9631 # do not overwrite the value of need_locks provided by the user 9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9633printf %s "checking if we can lock with hard links... " >&6; } 9634 hard_links=yes 9635 $RM conftest* 9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9637 touch conftest.a 9638 ln conftest.a conftest.b 2>&5 || hard_links=no 9639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9641printf "%s\n" "$hard_links" >&6; } 9642 if test no = "$hard_links"; then 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9644printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9645 need_locks=warn 9646 fi 9647else 9648 need_locks=no 9649fi 9650 9651 9652 9653 9654 9655 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9657printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9658 9659 runpath_var= 9660 allow_undefined_flag= 9661 always_export_symbols=no 9662 archive_cmds= 9663 archive_expsym_cmds= 9664 compiler_needs_object=no 9665 enable_shared_with_static_runtimes=no 9666 export_dynamic_flag_spec= 9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9668 hardcode_automatic=no 9669 hardcode_direct=no 9670 hardcode_direct_absolute=no 9671 hardcode_libdir_flag_spec= 9672 hardcode_libdir_separator= 9673 hardcode_minus_L=no 9674 hardcode_shlibpath_var=unsupported 9675 inherit_rpath=no 9676 link_all_deplibs=unknown 9677 module_cmds= 9678 module_expsym_cmds= 9679 old_archive_from_new_cmds= 9680 old_archive_from_expsyms_cmds= 9681 thread_safe_flag_spec= 9682 whole_archive_flag_spec= 9683 # include_expsyms should be a list of space-separated symbols to be *always* 9684 # included in the symbol list 9685 include_expsyms= 9686 # exclude_expsyms can be an extended regexp of symbols to exclude 9687 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9688 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9689 # as well as any symbol that contains 'd'. 9690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9692 # platforms (ab)use it in PIC code, but their linkers get confused if 9693 # the symbol is explicitly referenced. Since portable code cannot 9694 # rely on this symbol name, it's probably fine to never include it in 9695 # preloaded symbol tables. 9696 # Exclude shared library initialization/finalization symbols. 9697 extract_expsyms_cmds= 9698 9699 case $host_os in 9700 cygwin* | mingw* | pw32* | cegcc*) 9701 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9702 # When not using gcc, we currently assume that we are using 9703 # Microsoft Visual C++ or Intel C++ Compiler. 9704 if test yes != "$GCC"; then 9705 with_gnu_ld=no 9706 fi 9707 ;; 9708 interix*) 9709 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9710 with_gnu_ld=yes 9711 ;; 9712 openbsd* | bitrig*) 9713 with_gnu_ld=no 9714 ;; 9715 esac 9716 9717 ld_shlibs=yes 9718 9719 # On some targets, GNU ld is compatible enough with the native linker 9720 # that we're better off using the native interface for both. 9721 lt_use_gnu_ld_interface=no 9722 if test yes = "$with_gnu_ld"; then 9723 case $host_os in 9724 aix*) 9725 # The AIX port of GNU ld has always aspired to compatibility 9726 # with the native linker. However, as the warning in the GNU ld 9727 # block says, versions before 2.19.5* couldn't really create working 9728 # shared libraries, regardless of the interface used. 9729 case `$LD -v 2>&1` in 9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9733 *) 9734 lt_use_gnu_ld_interface=yes 9735 ;; 9736 esac 9737 ;; 9738 *) 9739 lt_use_gnu_ld_interface=yes 9740 ;; 9741 esac 9742 fi 9743 9744 if test yes = "$lt_use_gnu_ld_interface"; then 9745 # If archive_cmds runs LD, not CC, wlarc should be empty 9746 wlarc='$wl' 9747 9748 # Set some defaults for GNU ld with shared library support. These 9749 # are reset later if shared libraries are not supported. Putting them 9750 # here allows them to be overridden if necessary. 9751 runpath_var=LD_RUN_PATH 9752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9753 export_dynamic_flag_spec='$wl--export-dynamic' 9754 # ancient GNU ld didn't support --whole-archive et. al. 9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9757 else 9758 whole_archive_flag_spec= 9759 fi 9760 supports_anon_versioning=no 9761 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9762 *GNU\ gold*) supports_anon_versioning=yes ;; 9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9766 *\ 2.11.*) ;; # other 2.11 versions 9767 *) supports_anon_versioning=yes ;; 9768 esac 9769 9770 # See if GNU ld supports shared libraries. 9771 case $host_os in 9772 aix[3-9]*) 9773 # On AIX/PPC, the GNU linker is very broken 9774 if test ia64 != "$host_cpu"; then 9775 ld_shlibs=no 9776 cat <<_LT_EOF 1>&2 9777 9778*** Warning: the GNU linker, at least up to release 2.19, is reported 9779*** to be unable to reliably create shared libraries on AIX. 9780*** Therefore, libtool is disabling shared libraries support. If you 9781*** really care for shared libraries, you may want to install binutils 9782*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9783*** You will then need to restart the configuration process. 9784 9785_LT_EOF 9786 fi 9787 ;; 9788 9789 amigaos*) 9790 case $host_cpu in 9791 powerpc) 9792 # see comment about AmigaOS4 .so support 9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9794 archive_expsym_cmds='' 9795 ;; 9796 m68k) 9797 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)' 9798 hardcode_libdir_flag_spec='-L$libdir' 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 ;; 9803 9804 beos*) 9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9806 allow_undefined_flag=unsupported 9807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9808 # support --undefined. This deserves some investigation. FIXME 9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9810 else 9811 ld_shlibs=no 9812 fi 9813 ;; 9814 9815 cygwin* | mingw* | pw32* | cegcc*) 9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9817 # as there is no search path for DLLs. 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 export_dynamic_flag_spec='$wl--export-all-symbols' 9820 allow_undefined_flag=unsupported 9821 always_export_symbols=no 9822 enable_shared_with_static_runtimes=yes 9823 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' 9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9825 9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9828 # If the export-symbols file already is a .def file, use it as 9829 # is; otherwise, prepend EXPORTS... 9830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9831 cp $export_symbols $output_objdir/$soname.def; 9832 else 9833 echo EXPORTS > $output_objdir/$soname.def; 9834 cat $export_symbols >> $output_objdir/$soname.def; 9835 fi~ 9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9837 else 9838 ld_shlibs=no 9839 fi 9840 ;; 9841 9842 haiku*) 9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9844 link_all_deplibs=yes 9845 ;; 9846 9847 os2*) 9848 hardcode_libdir_flag_spec='-L$libdir' 9849 hardcode_minus_L=yes 9850 allow_undefined_flag=unsupported 9851 shrext_cmds=.dll 9852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9855 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9858 emximp -o $lib $output_objdir/$libname.def' 9859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9862 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9863 prefix_cmds="$SED"~ 9864 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9865 prefix_cmds="$prefix_cmds -e 1d"; 9866 fi~ 9867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9870 emximp -o $lib $output_objdir/$libname.def' 9871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9872 enable_shared_with_static_runtimes=yes 9873 file_list_spec='@' 9874 ;; 9875 9876 interix[3-9]*) 9877 hardcode_direct=no 9878 hardcode_shlibpath_var=no 9879 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9880 export_dynamic_flag_spec='$wl-E' 9881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9882 # Instead, shared libraries are loaded at an image base (0x10000000 by 9883 # default) and relocated if they conflict, which is a slow very memory 9884 # consuming and fragmenting process. To avoid this, we pick a random, 9885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9886 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9888 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' 9889 ;; 9890 9891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9892 tmp_diet=no 9893 if test linux-dietlibc = "$host_os"; then 9894 case $cc_basename in 9895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9896 esac 9897 fi 9898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9899 && test no = "$tmp_diet" 9900 then 9901 tmp_addflag=' $pic_flag' 9902 tmp_sharedflag='-shared' 9903 case $cc_basename,$host_cpu in 9904 pgcc*) # Portland Group C compiler 9905 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' 9906 tmp_addflag=' $pic_flag' 9907 ;; 9908 pgf77* | pgf90* | pgf95* | pgfortran*) 9909 # Portland Group f77 and f90 compilers 9910 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' 9911 tmp_addflag=' $pic_flag -Mnomain' ;; 9912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9913 tmp_addflag=' -i_dynamic' ;; 9914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9915 tmp_addflag=' -i_dynamic -nofor_main' ;; 9916 ifc* | ifort*) # Intel Fortran compiler 9917 tmp_addflag=' -nofor_main' ;; 9918 lf95*) # Lahey Fortran 8.1 9919 whole_archive_flag_spec= 9920 tmp_sharedflag='--shared' ;; 9921 nagfor*) # NAGFOR 5.3 9922 tmp_sharedflag='-Wl,-shared' ;; 9923 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9924 tmp_sharedflag='-qmkshrobj' 9925 tmp_addflag= ;; 9926 nvcc*) # Cuda Compiler Driver 2.2 9927 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' 9928 compiler_needs_object=yes 9929 ;; 9930 esac 9931 case `$CC -V 2>&1 | $SED 5q` in 9932 *Sun\ C*) # Sun C 5.9 9933 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' 9934 compiler_needs_object=yes 9935 tmp_sharedflag='-G' ;; 9936 *Sun\ F*) # Sun Fortran 8.3 9937 tmp_sharedflag='-G' ;; 9938 esac 9939 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9940 9941 if test yes = "$supports_anon_versioning"; then 9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9943 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9944 echo "local: *; };" >> $output_objdir/$libname.ver~ 9945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9946 fi 9947 9948 case $cc_basename in 9949 tcc*) 9950 export_dynamic_flag_spec='-rdynamic' 9951 ;; 9952 xlf* | bgf* | bgxlf* | mpixlf*) 9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9957 if test yes = "$supports_anon_versioning"; then 9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9959 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9960 echo "local: *; };" >> $output_objdir/$libname.ver~ 9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9962 fi 9963 ;; 9964 esac 9965 else 9966 ld_shlibs=no 9967 fi 9968 ;; 9969 9970 netbsd*) 9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9973 wlarc= 9974 else 9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9977 fi 9978 ;; 9979 9980 solaris*) 9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9982 ld_shlibs=no 9983 cat <<_LT_EOF 1>&2 9984 9985*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9986*** create shared libraries on Solaris systems. Therefore, libtool 9987*** is disabling shared libraries support. We urge you to upgrade GNU 9988*** binutils to release 2.9.1 or newer. Another option is to modify 9989*** your PATH or compiler configuration so that the native linker is 9990*** used, and then restart. 9991 9992_LT_EOF 9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9996 else 9997 ld_shlibs=no 9998 fi 9999 ;; 10000 10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10002 case `$LD -v 2>&1` in 10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10004 ld_shlibs=no 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10008*** reliably create shared libraries on SCO systems. Therefore, libtool 10009*** is disabling shared libraries support. We urge you to upgrade GNU 10010*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10011*** your PATH or compiler configuration so that the native linker is 10012*** used, and then restart. 10013 10014_LT_EOF 10015 ;; 10016 *) 10017 # For security reasons, it is highly recommended that you always 10018 # use absolute paths for naming shared libraries, and exclude the 10019 # DT_RUNPATH tag from executables and libraries. But doing so 10020 # requires that you compile everything twice, which is a pain. 10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 esac 10030 ;; 10031 10032 sunos4*) 10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10034 wlarc= 10035 hardcode_direct=yes 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 *) 10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10043 else 10044 ld_shlibs=no 10045 fi 10046 ;; 10047 esac 10048 10049 if test no = "$ld_shlibs"; then 10050 runpath_var= 10051 hardcode_libdir_flag_spec= 10052 export_dynamic_flag_spec= 10053 whole_archive_flag_spec= 10054 fi 10055 else 10056 # PORTME fill in a description of your system's linker (not GNU ld) 10057 case $host_os in 10058 aix3*) 10059 allow_undefined_flag=unsupported 10060 always_export_symbols=yes 10061 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' 10062 # Note: this linker hardcodes the directories in LIBPATH if there 10063 # are no directories specified by -L. 10064 hardcode_minus_L=yes 10065 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10066 # Neither direct hardcoding nor static linking is supported with a 10067 # broken collect2. 10068 hardcode_direct=unsupported 10069 fi 10070 ;; 10071 10072 aix[4-9]*) 10073 if test ia64 = "$host_cpu"; then 10074 # On IA64, the linker does run time linking by default, so we don't 10075 # have to do anything special. 10076 aix_use_runtimelinking=no 10077 exp_sym_flag='-Bexport' 10078 no_entry_flag= 10079 else 10080 # If we're using GNU nm, then we don't want the "-C" option. 10081 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10082 # Without the "-l" option, or with the "-B" option, AIX nm treats 10083 # weak defined symbols like other global defined symbols, whereas 10084 # GNU nm marks them as "W". 10085 # While the 'weak' keyword is ignored in the Export File, we need 10086 # it in the Import File for the 'aix-soname' feature, so we have 10087 # to replace the "-B" option with "-P" for AIX nm. 10088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10089 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10090 else 10091 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10092 fi 10093 aix_use_runtimelinking=no 10094 10095 # Test if we are trying to use run time linking or normal 10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10097 # have runtime linking enabled, and use it for executables. 10098 # For shared libraries, we enable/disable runtime linking 10099 # depending on the kind of the shared library created - 10100 # when "with_aix_soname,aix_use_runtimelinking" is: 10101 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10102 # "aix,yes" lib.so shared, rtl:yes, for executables 10103 # lib.a static archive 10104 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10105 # lib.a(lib.so.V) shared, rtl:no, for executables 10106 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10107 # lib.a(lib.so.V) shared, rtl:no 10108 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10109 # lib.a static archive 10110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10111 for ld_flag in $LDFLAGS; do 10112 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10113 aix_use_runtimelinking=yes 10114 break 10115 fi 10116 done 10117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10118 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10119 # so we don't have lib.a shared libs to link our executables. 10120 # We have to force runtime linking in this case. 10121 aix_use_runtimelinking=yes 10122 LDFLAGS="$LDFLAGS -Wl,-brtl" 10123 fi 10124 ;; 10125 esac 10126 10127 exp_sym_flag='-bexport' 10128 no_entry_flag='-bnoentry' 10129 fi 10130 10131 # When large executables or shared objects are built, AIX ld can 10132 # have problems creating the table of contents. If linking a library 10133 # or program results in "error TOC overflow" add -mminimal-toc to 10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10136 10137 archive_cmds='' 10138 hardcode_direct=yes 10139 hardcode_direct_absolute=yes 10140 hardcode_libdir_separator=':' 10141 link_all_deplibs=yes 10142 file_list_spec='$wl-f,' 10143 case $with_aix_soname,$aix_use_runtimelinking in 10144 aix,*) ;; # traditional, no import file 10145 svr4,* | *,yes) # use import file 10146 # The Import File defines what to hardcode. 10147 hardcode_direct=no 10148 hardcode_direct_absolute=no 10149 ;; 10150 esac 10151 10152 if test yes = "$GCC"; then 10153 case $host_os in aix4.[012]|aix4.[012].*) 10154 # We only want to do this on AIX 4.2 and lower, the check 10155 # below for broken collect2 doesn't work under 4.3+ 10156 collect2name=`$CC -print-prog-name=collect2` 10157 if test -f "$collect2name" && 10158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10159 then 10160 # We have reworked collect2 10161 : 10162 else 10163 # We have old collect2 10164 hardcode_direct=unsupported 10165 # It fails to find uninstalled libraries when the uninstalled 10166 # path is not listed in the libpath. Setting hardcode_minus_L 10167 # to unsupported forces relinking 10168 hardcode_minus_L=yes 10169 hardcode_libdir_flag_spec='-L$libdir' 10170 hardcode_libdir_separator= 10171 fi 10172 ;; 10173 esac 10174 shared_flag='-shared' 10175 if test yes = "$aix_use_runtimelinking"; then 10176 shared_flag="$shared_flag "'$wl-G' 10177 fi 10178 # Need to ensure runtime linking is disabled for the traditional 10179 # shared library, or the linker may eventually find shared libraries 10180 # /with/ Import File - we do not want to mix them. 10181 shared_flag_aix='-shared' 10182 shared_flag_svr4='-shared $wl-G' 10183 else 10184 # not using gcc 10185 if test ia64 = "$host_cpu"; then 10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10187 # chokes on -Wl,-G. The following line is correct: 10188 shared_flag='-G' 10189 else 10190 if test yes = "$aix_use_runtimelinking"; then 10191 shared_flag='$wl-G' 10192 else 10193 shared_flag='$wl-bM:SRE' 10194 fi 10195 shared_flag_aix='$wl-bM:SRE' 10196 shared_flag_svr4='$wl-G' 10197 fi 10198 fi 10199 10200 export_dynamic_flag_spec='$wl-bexpall' 10201 # It seems that -bexpall does not export symbols beginning with 10202 # underscore (_), so it is better to generate a list of symbols to export. 10203 always_export_symbols=yes 10204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10205 # Warning - without using the other runtime loading flags (-brtl), 10206 # -berok will link without error, but may produce a broken library. 10207 allow_undefined_flag='-berok' 10208 # Determine the default libpath from the value encoded in an 10209 # empty executable. 10210 if test set = "${lt_cv_aix_libpath+set}"; then 10211 aix_libpath=$lt_cv_aix_libpath 10212else 10213 if test ${lt_cv_aix_libpath_+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220int 10221main (void) 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_link "$LINENO" 10229then : 10230 10231 lt_aix_libpath_sed=' 10232 /Import File Strings/,/^$/ { 10233 /^0/ { 10234 s/^0 *\([^ ]*\) *$/\1/ 10235 p 10236 } 10237 }' 10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10239 # Check for a 64-bit object if we didn't find anything. 10240 if test -z "$lt_cv_aix_libpath_"; then 10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10242 fi 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext 10246 if test -z "$lt_cv_aix_libpath_"; then 10247 lt_cv_aix_libpath_=/usr/lib:/lib 10248 fi 10249 10250fi 10251 10252 aix_libpath=$lt_cv_aix_libpath_ 10253fi 10254 10255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10256 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10257 else 10258 if test ia64 = "$host_cpu"; then 10259 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10260 allow_undefined_flag="-z nodefs" 10261 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" 10262 else 10263 # Determine the default libpath from the value encoded in an 10264 # empty executable. 10265 if test set = "${lt_cv_aix_libpath+set}"; then 10266 aix_libpath=$lt_cv_aix_libpath 10267else 10268 if test ${lt_cv_aix_libpath_+y} 10269then : 10270 printf %s "(cached) " >&6 10271else $as_nop 10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273/* end confdefs.h. */ 10274 10275int 10276main (void) 10277{ 10278 10279 ; 10280 return 0; 10281} 10282_ACEOF 10283if ac_fn_c_try_link "$LINENO" 10284then : 10285 10286 lt_aix_libpath_sed=' 10287 /Import File Strings/,/^$/ { 10288 /^0/ { 10289 s/^0 *\([^ ]*\) *$/\1/ 10290 p 10291 } 10292 }' 10293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10294 # Check for a 64-bit object if we didn't find anything. 10295 if test -z "$lt_cv_aix_libpath_"; then 10296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10297 fi 10298fi 10299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 if test -z "$lt_cv_aix_libpath_"; then 10302 lt_cv_aix_libpath_=/usr/lib:/lib 10303 fi 10304 10305fi 10306 10307 aix_libpath=$lt_cv_aix_libpath_ 10308fi 10309 10310 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10311 # Warning - without using the other run time loading flags, 10312 # -berok will link without error, but may produce a broken library. 10313 no_undefined_flag=' $wl-bernotok' 10314 allow_undefined_flag=' $wl-berok' 10315 if test yes = "$with_gnu_ld"; then 10316 # We only use this code for GNU lds that support --whole-archive. 10317 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10318 else 10319 # Exported symbols can be pulled into shared objects from archives 10320 whole_archive_flag_spec='$convenience' 10321 fi 10322 archive_cmds_need_lc=yes 10323 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10324 # -brtl affects multiple linker settings, -berok does not and is overridden later 10325 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10326 if test svr4 != "$with_aix_soname"; then 10327 # This is similar to how AIX traditionally builds its shared libraries. 10328 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10329 fi 10330 if test aix != "$with_aix_soname"; then 10331 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10332 else 10333 # used by -dlpreopen to get the symbols 10334 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10335 fi 10336 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10337 fi 10338 fi 10339 ;; 10340 10341 amigaos*) 10342 case $host_cpu in 10343 powerpc) 10344 # see comment about AmigaOS4 .so support 10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10346 archive_expsym_cmds='' 10347 ;; 10348 m68k) 10349 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)' 10350 hardcode_libdir_flag_spec='-L$libdir' 10351 hardcode_minus_L=yes 10352 ;; 10353 esac 10354 ;; 10355 10356 bsdi[45]*) 10357 export_dynamic_flag_spec=-rdynamic 10358 ;; 10359 10360 cygwin* | mingw* | pw32* | cegcc*) 10361 # When not using gcc, we currently assume that we are using 10362 # Microsoft Visual C++ or Intel C++ Compiler. 10363 # hardcode_libdir_flag_spec is actually meaningless, as there is 10364 # no search path for DLLs. 10365 case $cc_basename in 10366 cl* | icl*) 10367 # Native MSVC or ICC 10368 hardcode_libdir_flag_spec=' ' 10369 allow_undefined_flag=unsupported 10370 always_export_symbols=yes 10371 file_list_spec='@' 10372 # Tell ltmain to make .lib files, not .a files. 10373 libext=lib 10374 # Tell ltmain to make .dll files, not .so files. 10375 shrext_cmds=.dll 10376 # FIXME: Setting linknames here is a bad hack. 10377 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10379 cp "$export_symbols" "$output_objdir/$soname.def"; 10380 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10381 else 10382 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10383 fi~ 10384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10385 linknames=' 10386 # The linker will not automatically build a static lib if we build a DLL. 10387 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10388 enable_shared_with_static_runtimes=yes 10389 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10391 # Don't use ranlib 10392 old_postinstall_cmds='chmod 644 $oldlib' 10393 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10394 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10395 case $lt_outputfile in 10396 *.exe|*.EXE) ;; 10397 *) 10398 lt_outputfile=$lt_outputfile.exe 10399 lt_tool_outputfile=$lt_tool_outputfile.exe 10400 ;; 10401 esac~ 10402 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10404 $RM "$lt_outputfile.manifest"; 10405 fi' 10406 ;; 10407 *) 10408 # Assume MSVC and ICC wrapper 10409 hardcode_libdir_flag_spec=' ' 10410 allow_undefined_flag=unsupported 10411 # Tell ltmain to make .lib files, not .a files. 10412 libext=lib 10413 # Tell ltmain to make .dll files, not .so files. 10414 shrext_cmds=.dll 10415 # FIXME: Setting linknames here is a bad hack. 10416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10417 # The linker will automatically build a .lib file if we build a DLL. 10418 old_archive_from_new_cmds='true' 10419 # FIXME: Should let the user specify the lib program. 10420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10421 enable_shared_with_static_runtimes=yes 10422 ;; 10423 esac 10424 ;; 10425 10426 darwin* | rhapsody*) 10427 10428 10429 archive_cmds_need_lc=no 10430 hardcode_direct=no 10431 hardcode_automatic=yes 10432 hardcode_shlibpath_var=unsupported 10433 if test yes = "$lt_cv_ld_force_load"; then 10434 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\"`' 10435 10436 else 10437 whole_archive_flag_spec='' 10438 fi 10439 link_all_deplibs=yes 10440 allow_undefined_flag=$_lt_dar_allow_undefined 10441 case $cc_basename in 10442 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10443 *) _lt_dar_can_shared=$GCC ;; 10444 esac 10445 if test yes = "$_lt_dar_can_shared"; then 10446 output_verbose_link_cmd=func_echo_all 10447 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10448 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10449 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" 10450 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" 10451 10452 else 10453 ld_shlibs=no 10454 fi 10455 10456 ;; 10457 10458 dgux*) 10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10460 hardcode_libdir_flag_spec='-L$libdir' 10461 hardcode_shlibpath_var=no 10462 ;; 10463 10464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10465 # support. Future versions do this automatically, but an explicit c++rt0.o 10466 # does not break anything, and helps significantly (at the cost of a little 10467 # extra space). 10468 freebsd2.2*) 10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10470 hardcode_libdir_flag_spec='-R$libdir' 10471 hardcode_direct=yes 10472 hardcode_shlibpath_var=no 10473 ;; 10474 10475 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10476 freebsd2.*) 10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10478 hardcode_direct=yes 10479 hardcode_minus_L=yes 10480 hardcode_shlibpath_var=no 10481 ;; 10482 10483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10484 freebsd* | dragonfly* | midnightbsd*) 10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10486 hardcode_libdir_flag_spec='-R$libdir' 10487 hardcode_direct=yes 10488 hardcode_shlibpath_var=no 10489 ;; 10490 10491 hpux9*) 10492 if test yes = "$GCC"; then 10493 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10494 else 10495 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10496 fi 10497 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10498 hardcode_libdir_separator=: 10499 hardcode_direct=yes 10500 10501 # hardcode_minus_L: Not really in the search PATH, 10502 # but as the default location of the library. 10503 hardcode_minus_L=yes 10504 export_dynamic_flag_spec='$wl-E' 10505 ;; 10506 10507 hpux10*) 10508 if test yes,no = "$GCC,$with_gnu_ld"; then 10509 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10510 else 10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10512 fi 10513 if test no = "$with_gnu_ld"; then 10514 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10515 hardcode_libdir_separator=: 10516 hardcode_direct=yes 10517 hardcode_direct_absolute=yes 10518 export_dynamic_flag_spec='$wl-E' 10519 # hardcode_minus_L: Not really in the search PATH, 10520 # but as the default location of the library. 10521 hardcode_minus_L=yes 10522 fi 10523 ;; 10524 10525 hpux11*) 10526 if test yes,no = "$GCC,$with_gnu_ld"; then 10527 case $host_cpu in 10528 hppa*64*) 10529 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10530 ;; 10531 ia64*) 10532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10533 ;; 10534 *) 10535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 esac 10538 else 10539 case $host_cpu in 10540 hppa*64*) 10541 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 ia64*) 10544 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10545 ;; 10546 *) 10547 10548 # Older versions of the 11.00 compiler do not understand -b yet 10549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10551printf %s "checking if $CC understands -b... " >&6; } 10552if test ${lt_cv_prog_compiler__b+y} 10553then : 10554 printf %s "(cached) " >&6 10555else $as_nop 10556 lt_cv_prog_compiler__b=no 10557 save_LDFLAGS=$LDFLAGS 10558 LDFLAGS="$LDFLAGS -b" 10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10561 # The linker can only warn and ignore the option if not recognized 10562 # So say no if there are warnings 10563 if test -s conftest.err; then 10564 # Append any errors to the config.log. 10565 cat conftest.err 1>&5 10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10568 if diff conftest.exp conftest.er2 >/dev/null; then 10569 lt_cv_prog_compiler__b=yes 10570 fi 10571 else 10572 lt_cv_prog_compiler__b=yes 10573 fi 10574 fi 10575 $RM -r conftest* 10576 LDFLAGS=$save_LDFLAGS 10577 10578fi 10579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10580printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10581 10582if test yes = "$lt_cv_prog_compiler__b"; then 10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10584else 10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10586fi 10587 10588 ;; 10589 esac 10590 fi 10591 if test no = "$with_gnu_ld"; then 10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10593 hardcode_libdir_separator=: 10594 10595 case $host_cpu in 10596 hppa*64*|ia64*) 10597 hardcode_direct=no 10598 hardcode_shlibpath_var=no 10599 ;; 10600 *) 10601 hardcode_direct=yes 10602 hardcode_direct_absolute=yes 10603 export_dynamic_flag_spec='$wl-E' 10604 10605 # hardcode_minus_L: Not really in the search PATH, 10606 # but as the default location of the library. 10607 hardcode_minus_L=yes 10608 ;; 10609 esac 10610 fi 10611 ;; 10612 10613 irix5* | irix6* | nonstopux*) 10614 if test yes = "$GCC"; then 10615 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' 10616 # Try to use the -exported_symbol ld option, if it does not 10617 # work, assume that -exports_file does not work either and 10618 # implicitly export all symbols. 10619 # This should be the same for all languages, so no per-tag cache variable. 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10621printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10622if test ${lt_cv_irix_exported_symbol+y} 10623then : 10624 printf %s "(cached) " >&6 10625else $as_nop 10626 save_LDFLAGS=$LDFLAGS 10627 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int foo (void) { return 0; } 10631_ACEOF 10632if ac_fn_c_try_link "$LINENO" 10633then : 10634 lt_cv_irix_exported_symbol=yes 10635else $as_nop 10636 lt_cv_irix_exported_symbol=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10639 conftest$ac_exeext conftest.$ac_ext 10640 LDFLAGS=$save_LDFLAGS 10641fi 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10643printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10644 if test yes = "$lt_cv_irix_exported_symbol"; then 10645 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' 10646 fi 10647 else 10648 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' 10649 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' 10650 fi 10651 archive_cmds_need_lc='no' 10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10653 hardcode_libdir_separator=: 10654 inherit_rpath=yes 10655 link_all_deplibs=yes 10656 ;; 10657 10658 linux*) 10659 case $cc_basename in 10660 tcc*) 10661 # Fabrice Bellard et al's Tiny C Compiler 10662 ld_shlibs=yes 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 ;; 10665 esac 10666 ;; 10667 10668 netbsd*) 10669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10671 else 10672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10673 fi 10674 hardcode_libdir_flag_spec='-R$libdir' 10675 hardcode_direct=yes 10676 hardcode_shlibpath_var=no 10677 ;; 10678 10679 newsos6) 10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10681 hardcode_direct=yes 10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10683 hardcode_libdir_separator=: 10684 hardcode_shlibpath_var=no 10685 ;; 10686 10687 *nto* | *qnx*) 10688 ;; 10689 10690 openbsd* | bitrig*) 10691 if test -f /usr/libexec/ld.so; then 10692 hardcode_direct=yes 10693 hardcode_shlibpath_var=no 10694 hardcode_direct_absolute=yes 10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10699 export_dynamic_flag_spec='$wl-E' 10700 else 10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10702 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10703 fi 10704 else 10705 ld_shlibs=no 10706 fi 10707 ;; 10708 10709 os2*) 10710 hardcode_libdir_flag_spec='-L$libdir' 10711 hardcode_minus_L=yes 10712 allow_undefined_flag=unsupported 10713 shrext_cmds=.dll 10714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10717 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10720 emximp -o $lib $output_objdir/$libname.def' 10721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10724 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10725 prefix_cmds="$SED"~ 10726 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10727 prefix_cmds="$prefix_cmds -e 1d"; 10728 fi~ 10729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10732 emximp -o $lib $output_objdir/$libname.def' 10733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10734 enable_shared_with_static_runtimes=yes 10735 file_list_spec='@' 10736 ;; 10737 10738 osf3*) 10739 if test yes = "$GCC"; then 10740 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10741 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' 10742 else 10743 allow_undefined_flag=' -expect_unresolved \*' 10744 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' 10745 fi 10746 archive_cmds_need_lc='no' 10747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10748 hardcode_libdir_separator=: 10749 ;; 10750 10751 osf4* | osf5*) # as osf3* with the addition of -msym flag 10752 if test yes = "$GCC"; then 10753 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10754 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' 10755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10756 else 10757 allow_undefined_flag=' -expect_unresolved \*' 10758 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' 10759 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~ 10760 $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' 10761 10762 # Both c and cxx compiler support -rpath directly 10763 hardcode_libdir_flag_spec='-rpath $libdir' 10764 fi 10765 archive_cmds_need_lc='no' 10766 hardcode_libdir_separator=: 10767 ;; 10768 10769 solaris*) 10770 no_undefined_flag=' -z defs' 10771 if test yes = "$GCC"; then 10772 wlarc='$wl' 10773 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10775 $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' 10776 else 10777 case `$CC -V 2>&1` in 10778 *"Compilers 5.0"*) 10779 wlarc='' 10780 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10782 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10783 ;; 10784 *) 10785 wlarc='$wl' 10786 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10788 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10789 ;; 10790 esac 10791 fi 10792 hardcode_libdir_flag_spec='-R$libdir' 10793 hardcode_shlibpath_var=no 10794 case $host_os in 10795 solaris2.[0-5] | solaris2.[0-5].*) ;; 10796 *) 10797 # The compiler driver will combine and reorder linker options, 10798 # but understands '-z linker_flag'. GCC discards it without '$wl', 10799 # but is careful enough not to reorder. 10800 # Supported since Solaris 2.6 (maybe 2.5.1?) 10801 if test yes = "$GCC"; then 10802 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10803 else 10804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10805 fi 10806 ;; 10807 esac 10808 link_all_deplibs=yes 10809 ;; 10810 10811 sunos4*) 10812 if test sequent = "$host_vendor"; then 10813 # Use $CC to link under sequent, because it throws in some extra .o 10814 # files that make .init and .fini sections work. 10815 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10816 else 10817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10818 fi 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 hardcode_direct=yes 10821 hardcode_minus_L=yes 10822 hardcode_shlibpath_var=no 10823 ;; 10824 10825 sysv4) 10826 case $host_vendor in 10827 sni) 10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10829 hardcode_direct=yes # is this really true??? 10830 ;; 10831 siemens) 10832 ## LD is ld it makes a PLAMLIB 10833 ## CC just makes a GrossModule. 10834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10835 reload_cmds='$CC -r -o $output$reload_objs' 10836 hardcode_direct=no 10837 ;; 10838 motorola) 10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10841 ;; 10842 esac 10843 runpath_var='LD_RUN_PATH' 10844 hardcode_shlibpath_var=no 10845 ;; 10846 10847 sysv4.3*) 10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10849 hardcode_shlibpath_var=no 10850 export_dynamic_flag_spec='-Bexport' 10851 ;; 10852 10853 sysv4*MP*) 10854 if test -d /usr/nec; then 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_shlibpath_var=no 10857 runpath_var=LD_RUN_PATH 10858 hardcode_runpath_var=yes 10859 ld_shlibs=yes 10860 fi 10861 ;; 10862 10863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10864 no_undefined_flag='$wl-z,text' 10865 archive_cmds_need_lc=no 10866 hardcode_shlibpath_var=no 10867 runpath_var='LD_RUN_PATH' 10868 10869 if test yes = "$GCC"; then 10870 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10872 else 10873 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10874 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10875 fi 10876 ;; 10877 10878 sysv5* | sco3.2v5* | sco5v6*) 10879 # Note: We CANNOT use -z defs as we might desire, because we do not 10880 # link with -lc, and that would cause any symbols used from libc to 10881 # always be unresolved, which means just about no library would 10882 # ever link correctly. If we're not using GNU ld we use -z text 10883 # though, which does catch some bad symbols but isn't as heavy-handed 10884 # as -z defs. 10885 no_undefined_flag='$wl-z,text' 10886 allow_undefined_flag='$wl-z,nodefs' 10887 archive_cmds_need_lc=no 10888 hardcode_shlibpath_var=no 10889 hardcode_libdir_flag_spec='$wl-R,$libdir' 10890 hardcode_libdir_separator=':' 10891 link_all_deplibs=yes 10892 export_dynamic_flag_spec='$wl-Bexport' 10893 runpath_var='LD_RUN_PATH' 10894 10895 if test yes = "$GCC"; then 10896 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10898 else 10899 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10901 fi 10902 ;; 10903 10904 uts4*) 10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10906 hardcode_libdir_flag_spec='-L$libdir' 10907 hardcode_shlibpath_var=no 10908 ;; 10909 10910 *) 10911 ld_shlibs=no 10912 ;; 10913 esac 10914 10915 if test sni = "$host_vendor"; then 10916 case $host in 10917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10918 export_dynamic_flag_spec='$wl-Blargedynsym' 10919 ;; 10920 esac 10921 fi 10922 fi 10923 10924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10925printf "%s\n" "$ld_shlibs" >&6; } 10926test no = "$ld_shlibs" && can_build_shared=no 10927 10928with_gnu_ld=$with_gnu_ld 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944# 10945# Do we need to explicitly link libc? 10946# 10947case "x$archive_cmds_need_lc" in 10948x|xyes) 10949 # Assume -lc should be added 10950 archive_cmds_need_lc=yes 10951 10952 if test yes,yes = "$GCC,$enable_shared"; then 10953 case $archive_cmds in 10954 *'~'*) 10955 # FIXME: we may have to deal with multi-command sequences. 10956 ;; 10957 '$CC '*) 10958 # Test whether the compiler implicitly links with -lc since on some 10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10960 # to ld, don't add -lc before -lgcc. 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10962printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10963if test ${lt_cv_archive_cmds_need_lc+y} 10964then : 10965 printf %s "(cached) " >&6 10966else $as_nop 10967 $RM conftest* 10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10969 10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10971 (eval $ac_compile) 2>&5 10972 ac_status=$? 10973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10974 test $ac_status = 0; } 2>conftest.err; then 10975 soname=conftest 10976 lib=conftest 10977 libobjs=conftest.$ac_objext 10978 deplibs= 10979 wl=$lt_prog_compiler_wl 10980 pic_flag=$lt_prog_compiler_pic 10981 compiler_flags=-v 10982 linker_flags=-v 10983 verstring= 10984 output_objdir=. 10985 libname=conftest 10986 lt_save_allow_undefined_flag=$allow_undefined_flag 10987 allow_undefined_flag= 10988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10989 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10990 ac_status=$? 10991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10992 test $ac_status = 0; } 10993 then 10994 lt_cv_archive_cmds_need_lc=no 10995 else 10996 lt_cv_archive_cmds_need_lc=yes 10997 fi 10998 allow_undefined_flag=$lt_save_allow_undefined_flag 10999 else 11000 cat conftest.err 1>&5 11001 fi 11002 $RM conftest* 11003 11004fi 11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11006printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11007 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11008 ;; 11009 esac 11010 fi 11011 ;; 11012esac 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11166printf %s "checking dynamic linker characteristics... " >&6; } 11167 11168if test yes = "$GCC"; then 11169 case $host_os in 11170 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11171 *) lt_awk_arg='/^libraries:/' ;; 11172 esac 11173 case $host_os in 11174 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11175 *) lt_sed_strip_eq='s|=/|/|g' ;; 11176 esac 11177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11178 case $lt_search_path_spec in 11179 *\;*) 11180 # if the path contains ";" then we assume it to be the separator 11181 # otherwise default to the standard path separator (i.e. ":") - it is 11182 # assumed that no part of a normal pathname contains ";" but that should 11183 # okay in the real world where ";" in dirpaths is itself problematic. 11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11185 ;; 11186 *) 11187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11188 ;; 11189 esac 11190 # Ok, now we have the path, separated by spaces, we can step through it 11191 # and add multilib dir if necessary... 11192 lt_tmp_lt_search_path_spec= 11193 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11194 # ...but if some path component already ends with the multilib dir we assume 11195 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11196 case "$lt_multi_os_dir; $lt_search_path_spec " in 11197 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11198 lt_multi_os_dir= 11199 ;; 11200 esac 11201 for lt_sys_path in $lt_search_path_spec; do 11202 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11204 elif test -n "$lt_multi_os_dir"; then 11205 test -d "$lt_sys_path" && \ 11206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11207 fi 11208 done 11209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11210BEGIN {RS = " "; FS = "/|\n";} { 11211 lt_foo = ""; 11212 lt_count = 0; 11213 for (lt_i = NF; lt_i > 0; lt_i--) { 11214 if ($lt_i != "" && $lt_i != ".") { 11215 if ($lt_i == "..") { 11216 lt_count++; 11217 } else { 11218 if (lt_count == 0) { 11219 lt_foo = "/" $lt_i lt_foo; 11220 } else { 11221 lt_count--; 11222 } 11223 } 11224 } 11225 } 11226 if (lt_foo != "") { lt_freq[lt_foo]++; } 11227 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11228}'` 11229 # AWK program above erroneously prepends '/' to C:/dos/paths 11230 # for these hosts. 11231 case $host_os in 11232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11233 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11234 esac 11235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11236else 11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11238fi 11239library_names_spec= 11240libname_spec='lib$name' 11241soname_spec= 11242shrext_cmds=.so 11243postinstall_cmds= 11244postuninstall_cmds= 11245finish_cmds= 11246finish_eval= 11247shlibpath_var= 11248shlibpath_overrides_runpath=unknown 11249version_type=none 11250dynamic_linker="$host_os ld.so" 11251sys_lib_dlsearch_path_spec="/lib /usr/lib" 11252need_lib_prefix=unknown 11253hardcode_into_libs=no 11254 11255# when you set need_version to no, make sure it does not cause -set_version 11256# flags to be left without arguments 11257need_version=unknown 11258 11259 11260 11261case $host_os in 11262aix3*) 11263 version_type=linux # correct to gnu/linux during the next big refactor 11264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11265 shlibpath_var=LIBPATH 11266 11267 # AIX 3 has no versioning support, so we append a major version to the name. 11268 soname_spec='$libname$release$shared_ext$major' 11269 ;; 11270 11271aix[4-9]*) 11272 version_type=linux # correct to gnu/linux during the next big refactor 11273 need_lib_prefix=no 11274 need_version=no 11275 hardcode_into_libs=yes 11276 if test ia64 = "$host_cpu"; then 11277 # AIX 5 supports IA64 11278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 else 11281 # With GCC up to 2.95.x, collect2 would create an import file 11282 # for dependence libraries. The import file would start with 11283 # the line '#! .'. This would cause the generated library to 11284 # depend on '.', always an invalid library. This was fixed in 11285 # development snapshots of GCC prior to 3.0. 11286 case $host_os in 11287 aix4 | aix4.[01] | aix4.[01].*) 11288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11289 echo ' yes ' 11290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11291 : 11292 else 11293 can_build_shared=no 11294 fi 11295 ;; 11296 esac 11297 # Using Import Files as archive members, it is possible to support 11298 # filename-based versioning of shared library archives on AIX. While 11299 # this would work for both with and without runtime linking, it will 11300 # prevent static linking of such archives. So we do filename-based 11301 # shared library versioning with .so extension only, which is used 11302 # when both runtime linking and shared linking is enabled. 11303 # Unfortunately, runtime linking may impact performance, so we do 11304 # not want this to be the default eventually. Also, we use the 11305 # versioned .so libs for executables only if there is the -brtl 11306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11307 # To allow for filename-based versioning support, we need to create 11308 # libNAME.so.V as an archive file, containing: 11309 # *) an Import File, referring to the versioned filename of the 11310 # archive as well as the shared archive member, telling the 11311 # bitwidth (32 or 64) of that shared object, and providing the 11312 # list of exported symbols of that shared object, eventually 11313 # decorated with the 'weak' keyword 11314 # *) the shared object with the F_LOADONLY flag set, to really avoid 11315 # it being seen by the linker. 11316 # At run time we better use the real file rather than another symlink, 11317 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11318 11319 case $with_aix_soname,$aix_use_runtimelinking in 11320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11321 # soname into executable. Probably we can add versioning support to 11322 # collect2, so additional links can be useful in future. 11323 aix,yes) # traditional libtool 11324 dynamic_linker='AIX unversionable lib.so' 11325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11326 # instead of lib<name>.a to let people know that these are not 11327 # typical AIX shared libraries. 11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11329 ;; 11330 aix,no) # traditional AIX only 11331 dynamic_linker='AIX lib.a(lib.so.V)' 11332 # We preserve .a as extension for shared libraries through AIX4.2 11333 # and later when we are not doing run time linking. 11334 library_names_spec='$libname$release.a $libname.a' 11335 soname_spec='$libname$release$shared_ext$major' 11336 ;; 11337 svr4,*) # full svr4 only 11338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11340 # We do not specify a path in Import Files, so LIBPATH fires. 11341 shlibpath_overrides_runpath=yes 11342 ;; 11343 *,yes) # both, prefer svr4 11344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11346 # unpreferred sharedlib libNAME.a needs extra handling 11347 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11348 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11349 # We do not specify a path in Import Files, so LIBPATH fires. 11350 shlibpath_overrides_runpath=yes 11351 ;; 11352 *,no) # both, prefer aix 11353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11354 library_names_spec='$libname$release.a $libname.a' 11355 soname_spec='$libname$release$shared_ext$major' 11356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11357 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11358 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11359 ;; 11360 esac 11361 shlibpath_var=LIBPATH 11362 fi 11363 ;; 11364 11365amigaos*) 11366 case $host_cpu in 11367 powerpc) 11368 # Since July 2007 AmigaOS4 officially supports .so libraries. 11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 ;; 11372 m68k) 11373 library_names_spec='$libname.ixlibrary $libname.a' 11374 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11376 ;; 11377 esac 11378 ;; 11379 11380beos*) 11381 library_names_spec='$libname$shared_ext' 11382 dynamic_linker="$host_os ld.so" 11383 shlibpath_var=LIBRARY_PATH 11384 ;; 11385 11386bsdi[45]*) 11387 version_type=linux # correct to gnu/linux during the next big refactor 11388 need_version=no 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11395 # the default ld.so.conf also contains /usr/contrib/lib and 11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11397 # libtool to hard-code these into programs 11398 ;; 11399 11400cygwin* | mingw* | pw32* | cegcc*) 11401 version_type=windows 11402 shrext_cmds=.dll 11403 need_version=no 11404 need_lib_prefix=no 11405 11406 case $GCC,$cc_basename in 11407 yes,*) 11408 # gcc 11409 library_names_spec='$libname.dll.a' 11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11411 postinstall_cmds='base_file=`basename \$file`~ 11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11413 dldir=$destdir/`dirname \$dlpath`~ 11414 test -d \$dldir || mkdir -p \$dldir~ 11415 $install_prog $dir/$dlname \$dldir/$dlname~ 11416 chmod a+x \$dldir/$dlname~ 11417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11419 fi' 11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11421 dlpath=$dir/\$dldll~ 11422 $RM \$dlpath' 11423 shlibpath_overrides_runpath=yes 11424 11425 case $host_os in 11426 cygwin*) 11427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11428 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11429 11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11431 ;; 11432 mingw* | cegcc*) 11433 # MinGW DLLs use traditional 'lib' prefix 11434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11435 ;; 11436 pw32*) 11437 # pw32 DLLs use 'pw' prefix rather than 'lib' 11438 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11439 ;; 11440 esac 11441 dynamic_linker='Win32 ld.exe' 11442 ;; 11443 11444 *,cl* | *,icl*) 11445 # Native MSVC or ICC 11446 libname_spec='$name' 11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11448 library_names_spec='$libname.dll.lib' 11449 11450 case $build_os in 11451 mingw*) 11452 sys_lib_search_path_spec= 11453 lt_save_ifs=$IFS 11454 IFS=';' 11455 for lt_path in $LIB 11456 do 11457 IFS=$lt_save_ifs 11458 # Let DOS variable expansion print the short 8.3 style file name. 11459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11461 done 11462 IFS=$lt_save_ifs 11463 # Convert to MSYS style. 11464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11465 ;; 11466 cygwin*) 11467 # Convert to unix form, then to dos form, then back to unix form 11468 # but this time dos style (no spaces!) so that the unix form looks 11469 # like /cygdrive/c/PROGRA~1:/cygdr... 11470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11473 ;; 11474 *) 11475 sys_lib_search_path_spec=$LIB 11476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11477 # It is most probably a Windows format PATH. 11478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11479 else 11480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11481 fi 11482 # FIXME: find the short name or the path components, as spaces are 11483 # common. (e.g. "Program Files" -> "PROGRA~1") 11484 ;; 11485 esac 11486 11487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11488 postinstall_cmds='base_file=`basename \$file`~ 11489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11490 dldir=$destdir/`dirname \$dlpath`~ 11491 test -d \$dldir || mkdir -p \$dldir~ 11492 $install_prog $dir/$dlname \$dldir/$dlname' 11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11494 dlpath=$dir/\$dldll~ 11495 $RM \$dlpath' 11496 shlibpath_overrides_runpath=yes 11497 dynamic_linker='Win32 link.exe' 11498 ;; 11499 11500 *) 11501 # Assume MSVC and ICC wrapper 11502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11503 dynamic_linker='Win32 ld.exe' 11504 ;; 11505 esac 11506 # FIXME: first we should search . and the directory the executable is in 11507 shlibpath_var=PATH 11508 ;; 11509 11510darwin* | rhapsody*) 11511 dynamic_linker="$host_os dyld" 11512 version_type=darwin 11513 need_lib_prefix=no 11514 need_version=no 11515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11516 soname_spec='$libname$release$major$shared_ext' 11517 shlibpath_overrides_runpath=yes 11518 shlibpath_var=DYLD_LIBRARY_PATH 11519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11520 11521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11523 ;; 11524 11525dgux*) 11526 version_type=linux # correct to gnu/linux during the next big refactor 11527 need_lib_prefix=no 11528 need_version=no 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 soname_spec='$libname$release$shared_ext$major' 11531 shlibpath_var=LD_LIBRARY_PATH 11532 ;; 11533 11534freebsd* | dragonfly* | midnightbsd*) 11535 # DragonFly does not have aout. When/if they implement a new 11536 # versioning mechanism, adjust this. 11537 if test -x /usr/bin/objformat; then 11538 objformat=`/usr/bin/objformat` 11539 else 11540 case $host_os in 11541 freebsd[23].*) objformat=aout ;; 11542 *) objformat=elf ;; 11543 esac 11544 fi 11545 version_type=freebsd-$objformat 11546 case $version_type in 11547 freebsd-elf*) 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11549 soname_spec='$libname$release$shared_ext$major' 11550 need_version=no 11551 need_lib_prefix=no 11552 ;; 11553 freebsd-*) 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11555 need_version=yes 11556 ;; 11557 esac 11558 shlibpath_var=LD_LIBRARY_PATH 11559 case $host_os in 11560 freebsd2.*) 11561 shlibpath_overrides_runpath=yes 11562 ;; 11563 freebsd3.[01]* | freebsdelf3.[01]*) 11564 shlibpath_overrides_runpath=yes 11565 hardcode_into_libs=yes 11566 ;; 11567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11569 shlibpath_overrides_runpath=no 11570 hardcode_into_libs=yes 11571 ;; 11572 *) # from 4.6 on, and DragonFly 11573 shlibpath_overrides_runpath=yes 11574 hardcode_into_libs=yes 11575 ;; 11576 esac 11577 ;; 11578 11579haiku*) 11580 version_type=linux # correct to gnu/linux during the next big refactor 11581 need_lib_prefix=no 11582 need_version=no 11583 dynamic_linker="$host_os runtime_loader" 11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11585 soname_spec='$libname$release$shared_ext$major' 11586 shlibpath_var=LIBRARY_PATH 11587 shlibpath_overrides_runpath=no 11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11589 hardcode_into_libs=yes 11590 ;; 11591 11592hpux9* | hpux10* | hpux11*) 11593 # Give a soname corresponding to the major version so that dld.sl refuses to 11594 # link against other versions. 11595 version_type=sunos 11596 need_lib_prefix=no 11597 need_version=no 11598 case $host_cpu in 11599 ia64*) 11600 shrext_cmds='.so' 11601 hardcode_into_libs=yes 11602 dynamic_linker="$host_os dld.so" 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 soname_spec='$libname$release$shared_ext$major' 11607 if test 32 = "$HPUX_IA64_MODE"; then 11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11609 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11610 else 11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11612 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11613 fi 11614 ;; 11615 hppa*64*) 11616 shrext_cmds='.sl' 11617 hardcode_into_libs=yes 11618 dynamic_linker="$host_os dld.sl" 11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 soname_spec='$libname$release$shared_ext$major' 11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11625 ;; 11626 *) 11627 shrext_cmds='.sl' 11628 dynamic_linker="$host_os dld.sl" 11629 shlibpath_var=SHLIB_PATH 11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11632 soname_spec='$libname$release$shared_ext$major' 11633 ;; 11634 esac 11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11636 postinstall_cmds='chmod 555 $lib' 11637 # or fails outright, so override atomically: 11638 install_override_mode=555 11639 ;; 11640 11641interix[3-9]*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_lib_prefix=no 11644 need_version=no 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11646 soname_spec='$libname$release$shared_ext$major' 11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 shlibpath_overrides_runpath=no 11650 hardcode_into_libs=yes 11651 ;; 11652 11653irix5* | irix6* | nonstopux*) 11654 case $host_os in 11655 nonstopux*) version_type=nonstopux ;; 11656 *) 11657 if test yes = "$lt_cv_prog_gnu_ld"; then 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 else 11660 version_type=irix 11661 fi ;; 11662 esac 11663 need_lib_prefix=no 11664 need_version=no 11665 soname_spec='$libname$release$shared_ext$major' 11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11667 case $host_os in 11668 irix5* | nonstopux*) 11669 libsuff= shlibsuff= 11670 ;; 11671 *) 11672 case $LD in # libtool.m4 will add one of these switches to LD 11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11674 libsuff= shlibsuff= libmagic=32-bit;; 11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11676 libsuff=32 shlibsuff=N32 libmagic=N32;; 11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11679 *) libsuff= shlibsuff= libmagic=never-match;; 11680 esac 11681 ;; 11682 esac 11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11684 shlibpath_overrides_runpath=no 11685 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11686 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11687 hardcode_into_libs=yes 11688 ;; 11689 11690# No shared lib support for Linux oldld, aout, or coff. 11691linux*oldld* | linux*aout* | linux*coff*) 11692 dynamic_linker=no 11693 ;; 11694 11695linux*android*) 11696 version_type=none # Android doesn't support versioned libraries. 11697 need_lib_prefix=no 11698 need_version=no 11699 library_names_spec='$libname$release$shared_ext' 11700 soname_spec='$libname$release$shared_ext' 11701 finish_cmds= 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 11705 # This implies no fast_install, which is unacceptable. 11706 # Some rework will be needed to allow for fast_install 11707 # before this can be enabled. 11708 hardcode_into_libs=yes 11709 11710 dynamic_linker='Android linker' 11711 # Don't embed -rpath directories since the linker doesn't support them. 11712 hardcode_libdir_flag_spec='-L$libdir' 11713 ;; 11714 11715# This must be glibc/ELF. 11716linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11717 version_type=linux # correct to gnu/linux during the next big refactor 11718 need_lib_prefix=no 11719 need_version=no 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11723 shlibpath_var=LD_LIBRARY_PATH 11724 shlibpath_overrides_runpath=no 11725 11726 # Some binutils ld are patched to set DT_RUNPATH 11727 if test ${lt_cv_shlibpath_overrides_runpath+y} 11728then : 11729 printf %s "(cached) " >&6 11730else $as_nop 11731 lt_cv_shlibpath_overrides_runpath=no 11732 save_LDFLAGS=$LDFLAGS 11733 save_libdir=$libdir 11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738 11739int 11740main (void) 11741{ 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_link "$LINENO" 11748then : 11749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11750then : 11751 lt_cv_shlibpath_overrides_runpath=yes 11752fi 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11755 conftest$ac_exeext conftest.$ac_ext 11756 LDFLAGS=$save_LDFLAGS 11757 libdir=$save_libdir 11758 11759fi 11760 11761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11762 11763 # This implies no fast_install, which is unacceptable. 11764 # Some rework will be needed to allow for fast_install 11765 # before this can be enabled. 11766 hardcode_into_libs=yes 11767 11768 # Add ABI-specific directories to the system library path. 11769 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11770 11771 # Ideally, we could use ldconfig to report *all* directores which are 11772 # searched for libraries, however this is still not possible. Aside from not 11773 # being certain /sbin/ldconfig is available, command 11774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11775 # even though it is searched at run-time. Try to do the best guess by 11776 # appending ld.so.conf contents (and includes) to the search path. 11777 if test -f /etc/ld.so.conf; then 11778 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' ' '` 11779 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11780 fi 11781 11782 # We used to test for /lib/ld.so.1 and disable shared libraries on 11783 # powerpc, because MkLinux only supported shared libraries with the 11784 # GNU dynamic linker. Since this was broken with cross compilers, 11785 # most powerpc-linux boxes support dynamic linking these days and 11786 # people can always --disable-shared, the test was removed, and we 11787 # assume the GNU/Linux dynamic linker is in use. 11788 dynamic_linker='GNU/Linux ld.so' 11789 ;; 11790 11791netbsd*) 11792 version_type=sunos 11793 need_lib_prefix=no 11794 need_version=no 11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11798 dynamic_linker='NetBSD (a.out) ld.so' 11799 else 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 soname_spec='$libname$release$shared_ext$major' 11802 dynamic_linker='NetBSD ld.elf_so' 11803 fi 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 hardcode_into_libs=yes 11807 ;; 11808 11809newsos6) 11810 version_type=linux # correct to gnu/linux during the next big refactor 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 shlibpath_overrides_runpath=yes 11814 ;; 11815 11816*nto* | *qnx*) 11817 version_type=qnx 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=no 11824 hardcode_into_libs=yes 11825 dynamic_linker='ldqnx.so' 11826 ;; 11827 11828openbsd* | bitrig*) 11829 version_type=sunos 11830 sys_lib_dlsearch_path_spec=/usr/lib 11831 need_lib_prefix=no 11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11833 need_version=no 11834 else 11835 need_version=yes 11836 fi 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 ;; 11842 11843os2*) 11844 libname_spec='$name' 11845 version_type=windows 11846 shrext_cmds=.dll 11847 need_version=no 11848 need_lib_prefix=no 11849 # OS/2 can only load a DLL with a base name of 8 characters or less. 11850 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11851 v=$($ECHO $release$versuffix | tr -d .-); 11852 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11853 $ECHO $n$v`$shared_ext' 11854 library_names_spec='${libname}_dll.$libext' 11855 dynamic_linker='OS/2 ld.exe' 11856 shlibpath_var=BEGINLIBPATH 11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname~ 11864 chmod a+x \$dldir/$dlname~ 11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11867 fi' 11868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11869 dlpath=$dir/\$dldll~ 11870 $RM \$dlpath' 11871 ;; 11872 11873osf3* | osf4* | osf5*) 11874 version_type=osf 11875 need_lib_prefix=no 11876 need_version=no 11877 soname_spec='$libname$release$shared_ext$major' 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11882 ;; 11883 11884rdos*) 11885 dynamic_linker=no 11886 ;; 11887 11888solaris*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 shlibpath_var=LD_LIBRARY_PATH 11895 shlibpath_overrides_runpath=yes 11896 hardcode_into_libs=yes 11897 # ldd complains unless libraries are executable 11898 postinstall_cmds='chmod +x $lib' 11899 ;; 11900 11901sunos4*) 11902 version_type=sunos 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11905 shlibpath_var=LD_LIBRARY_PATH 11906 shlibpath_overrides_runpath=yes 11907 if test yes = "$with_gnu_ld"; then 11908 need_lib_prefix=no 11909 fi 11910 need_version=yes 11911 ;; 11912 11913sysv4 | sysv4.3*) 11914 version_type=linux # correct to gnu/linux during the next big refactor 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 case $host_vendor in 11919 sni) 11920 shlibpath_overrides_runpath=no 11921 need_lib_prefix=no 11922 runpath_var=LD_RUN_PATH 11923 ;; 11924 siemens) 11925 need_lib_prefix=no 11926 ;; 11927 motorola) 11928 need_lib_prefix=no 11929 need_version=no 11930 shlibpath_overrides_runpath=no 11931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11932 ;; 11933 esac 11934 ;; 11935 11936sysv4*MP*) 11937 if test -d /usr/nec; then 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11940 soname_spec='$libname$shared_ext.$major' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 fi 11943 ;; 11944 11945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11946 version_type=sco 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 shlibpath_overrides_runpath=yes 11953 hardcode_into_libs=yes 11954 if test yes = "$with_gnu_ld"; then 11955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11956 else 11957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11958 case $host_os in 11959 sco3.2v5*) 11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11961 ;; 11962 esac 11963 fi 11964 sys_lib_dlsearch_path_spec='/usr/lib' 11965 ;; 11966 11967tpf*) 11968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 need_lib_prefix=no 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 shlibpath_overrides_runpath=no 11975 hardcode_into_libs=yes 11976 ;; 11977 11978uts4*) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 ;; 11984 11985*) 11986 dynamic_linker=no 11987 ;; 11988esac 11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11990printf "%s\n" "$dynamic_linker" >&6; } 11991test no = "$dynamic_linker" && can_build_shared=no 11992 11993variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11994if test yes = "$GCC"; then 11995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11996fi 11997 11998if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11999 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12000fi 12001 12002if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12003 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12004fi 12005 12006# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12007configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12008 12009# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12010func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12011 12012# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12013configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12112printf %s "checking how to hardcode library paths into programs... " >&6; } 12113hardcode_action= 12114if test -n "$hardcode_libdir_flag_spec" || 12115 test -n "$runpath_var" || 12116 test yes = "$hardcode_automatic"; then 12117 12118 # We can hardcode non-existent directories. 12119 if test no != "$hardcode_direct" && 12120 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12121 # have to relink, otherwise we might link with an installed library 12122 # when we should be linking with a yet-to-be-installed one 12123 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12124 test no != "$hardcode_minus_L"; then 12125 # Linking always hardcodes the temporary library directory. 12126 hardcode_action=relink 12127 else 12128 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12129 hardcode_action=immediate 12130 fi 12131else 12132 # We cannot hardcode anything, or else we can only hardcode existing 12133 # directories. 12134 hardcode_action=unsupported 12135fi 12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12137printf "%s\n" "$hardcode_action" >&6; } 12138 12139if test relink = "$hardcode_action" || 12140 test yes = "$inherit_rpath"; then 12141 # Fast installation is not supported 12142 enable_fast_install=no 12143elif test yes = "$shlibpath_overrides_runpath" || 12144 test no = "$enable_shared"; then 12145 # Fast installation is not necessary 12146 enable_fast_install=needless 12147fi 12148 12149 12150 12151 12152 12153 12154 if test yes != "$enable_dlopen"; then 12155 enable_dlopen=unknown 12156 enable_dlopen_self=unknown 12157 enable_dlopen_self_static=unknown 12158else 12159 lt_cv_dlopen=no 12160 lt_cv_dlopen_libs= 12161 12162 case $host_os in 12163 beos*) 12164 lt_cv_dlopen=load_add_on 12165 lt_cv_dlopen_libs= 12166 lt_cv_dlopen_self=yes 12167 ;; 12168 12169 mingw* | pw32* | cegcc*) 12170 lt_cv_dlopen=LoadLibrary 12171 lt_cv_dlopen_libs= 12172 ;; 12173 12174 cygwin*) 12175 lt_cv_dlopen=dlopen 12176 lt_cv_dlopen_libs= 12177 ;; 12178 12179 darwin*) 12180 # if libdl is installed we need to link against it 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12182printf %s "checking for dlopen in -ldl... " >&6; } 12183if test ${ac_cv_lib_dl_dlopen+y} 12184then : 12185 printf %s "(cached) " >&6 12186else $as_nop 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-ldl $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195char dlopen (); 12196int 12197main (void) 12198{ 12199return dlopen (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 ac_cv_lib_dl_dlopen=yes 12207else $as_nop 12208 ac_cv_lib_dl_dlopen=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12215printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12216if test "x$ac_cv_lib_dl_dlopen" = xyes 12217then : 12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12219else $as_nop 12220 12221 lt_cv_dlopen=dyld 12222 lt_cv_dlopen_libs= 12223 lt_cv_dlopen_self=yes 12224 12225fi 12226 12227 ;; 12228 12229 tpf*) 12230 # Don't try to run any link tests for TPF. We know it's impossible 12231 # because TPF is a cross-compiler, and we know how we open DSOs. 12232 lt_cv_dlopen=dlopen 12233 lt_cv_dlopen_libs= 12234 lt_cv_dlopen_self=no 12235 ;; 12236 12237 *) 12238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12239if test "x$ac_cv_func_shl_load" = xyes 12240then : 12241 lt_cv_dlopen=shl_load 12242else $as_nop 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12244printf %s "checking for shl_load in -ldld... " >&6; } 12245if test ${ac_cv_lib_dld_shl_load+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-ldld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257char shl_load (); 12258int 12259main (void) 12260{ 12261return shl_load (); 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266if ac_fn_c_try_link "$LINENO" 12267then : 12268 ac_cv_lib_dld_shl_load=yes 12269else $as_nop 12270 ac_cv_lib_dld_shl_load=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12273 conftest$ac_exeext conftest.$ac_ext 12274LIBS=$ac_check_lib_save_LIBS 12275fi 12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12277printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12278if test "x$ac_cv_lib_dld_shl_load" = xyes 12279then : 12280 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12281else $as_nop 12282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12283if test "x$ac_cv_func_dlopen" = xyes 12284then : 12285 lt_cv_dlopen=dlopen 12286else $as_nop 12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12288printf %s "checking for dlopen in -ldl... " >&6; } 12289if test ${ac_cv_lib_dl_dlopen+y} 12290then : 12291 printf %s "(cached) " >&6 12292else $as_nop 12293 ac_check_lib_save_LIBS=$LIBS 12294LIBS="-ldl $LIBS" 12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297 12298/* Override any GCC internal prototype to avoid an error. 12299 Use char because int might match the return type of a GCC 12300 builtin and then its argument prototype would still apply. */ 12301char dlopen (); 12302int 12303main (void) 12304{ 12305return dlopen (); 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_link "$LINENO" 12311then : 12312 ac_cv_lib_dl_dlopen=yes 12313else $as_nop 12314 ac_cv_lib_dl_dlopen=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12317 conftest$ac_exeext conftest.$ac_ext 12318LIBS=$ac_check_lib_save_LIBS 12319fi 12320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12321printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12322if test "x$ac_cv_lib_dl_dlopen" = xyes 12323then : 12324 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12325else $as_nop 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12327printf %s "checking for dlopen in -lsvld... " >&6; } 12328if test ${ac_cv_lib_svld_dlopen+y} 12329then : 12330 printf %s "(cached) " >&6 12331else $as_nop 12332 ac_check_lib_save_LIBS=$LIBS 12333LIBS="-lsvld $LIBS" 12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336 12337/* Override any GCC internal prototype to avoid an error. 12338 Use char because int might match the return type of a GCC 12339 builtin and then its argument prototype would still apply. */ 12340char dlopen (); 12341int 12342main (void) 12343{ 12344return dlopen (); 12345 ; 12346 return 0; 12347} 12348_ACEOF 12349if ac_fn_c_try_link "$LINENO" 12350then : 12351 ac_cv_lib_svld_dlopen=yes 12352else $as_nop 12353 ac_cv_lib_svld_dlopen=no 12354fi 12355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12356 conftest$ac_exeext conftest.$ac_ext 12357LIBS=$ac_check_lib_save_LIBS 12358fi 12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12360printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12361if test "x$ac_cv_lib_svld_dlopen" = xyes 12362then : 12363 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12364else $as_nop 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12366printf %s "checking for dld_link in -ldld... " >&6; } 12367if test ${ac_cv_lib_dld_dld_link+y} 12368then : 12369 printf %s "(cached) " >&6 12370else $as_nop 12371 ac_check_lib_save_LIBS=$LIBS 12372LIBS="-ldld $LIBS" 12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375 12376/* Override any GCC internal prototype to avoid an error. 12377 Use char because int might match the return type of a GCC 12378 builtin and then its argument prototype would still apply. */ 12379char dld_link (); 12380int 12381main (void) 12382{ 12383return dld_link (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO" 12389then : 12390 ac_cv_lib_dld_dld_link=yes 12391else $as_nop 12392 ac_cv_lib_dld_dld_link=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12399printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12400if test "x$ac_cv_lib_dld_dld_link" = xyes 12401then : 12402 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12403fi 12404 12405 12406fi 12407 12408 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 ;; 12421 esac 12422 12423 if test no = "$lt_cv_dlopen"; then 12424 enable_dlopen=no 12425 else 12426 enable_dlopen=yes 12427 fi 12428 12429 case $lt_cv_dlopen in 12430 dlopen) 12431 save_CPPFLAGS=$CPPFLAGS 12432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12433 12434 save_LDFLAGS=$LDFLAGS 12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12436 12437 save_LIBS=$LIBS 12438 LIBS="$lt_cv_dlopen_libs $LIBS" 12439 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12441printf %s "checking whether a program can dlopen itself... " >&6; } 12442if test ${lt_cv_dlopen_self+y} 12443then : 12444 printf %s "(cached) " >&6 12445else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self=cross 12448else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452#line $LINENO "configure" 12453#include "confdefs.h" 12454 12455#if HAVE_DLFCN_H 12456#include <dlfcn.h> 12457#endif 12458 12459#include <stdio.h> 12460 12461#ifdef RTLD_GLOBAL 12462# define LT_DLGLOBAL RTLD_GLOBAL 12463#else 12464# ifdef DL_GLOBAL 12465# define LT_DLGLOBAL DL_GLOBAL 12466# else 12467# define LT_DLGLOBAL 0 12468# endif 12469#endif 12470 12471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473#ifndef LT_DLLAZY_OR_NOW 12474# ifdef RTLD_LAZY 12475# define LT_DLLAZY_OR_NOW RTLD_LAZY 12476# else 12477# ifdef DL_LAZY 12478# define LT_DLLAZY_OR_NOW DL_LAZY 12479# else 12480# ifdef RTLD_NOW 12481# define LT_DLLAZY_OR_NOW RTLD_NOW 12482# else 12483# ifdef DL_NOW 12484# define LT_DLLAZY_OR_NOW DL_NOW 12485# else 12486# define LT_DLLAZY_OR_NOW 0 12487# endif 12488# endif 12489# endif 12490# endif 12491#endif 12492 12493/* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496int fnord () __attribute__((visibility("default"))); 12497#endif 12498 12499int fnord () { return 42; } 12500int main () 12501{ 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519} 12520_LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self=no 12536 fi 12537fi 12538rm -fr conftest* 12539 12540 12541fi 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12543printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12544 12545 if test yes = "$lt_cv_dlopen_self"; then 12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12548printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12549if test ${lt_cv_dlopen_self_static+y} 12550then : 12551 printf %s "(cached) " >&6 12552else $as_nop 12553 if test yes = "$cross_compiling"; then : 12554 lt_cv_dlopen_self_static=cross 12555else 12556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12557 lt_status=$lt_dlunknown 12558 cat > conftest.$ac_ext <<_LT_EOF 12559#line $LINENO "configure" 12560#include "confdefs.h" 12561 12562#if HAVE_DLFCN_H 12563#include <dlfcn.h> 12564#endif 12565 12566#include <stdio.h> 12567 12568#ifdef RTLD_GLOBAL 12569# define LT_DLGLOBAL RTLD_GLOBAL 12570#else 12571# ifdef DL_GLOBAL 12572# define LT_DLGLOBAL DL_GLOBAL 12573# else 12574# define LT_DLGLOBAL 0 12575# endif 12576#endif 12577 12578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12579 find out it does not work in some platform. */ 12580#ifndef LT_DLLAZY_OR_NOW 12581# ifdef RTLD_LAZY 12582# define LT_DLLAZY_OR_NOW RTLD_LAZY 12583# else 12584# ifdef DL_LAZY 12585# define LT_DLLAZY_OR_NOW DL_LAZY 12586# else 12587# ifdef RTLD_NOW 12588# define LT_DLLAZY_OR_NOW RTLD_NOW 12589# else 12590# ifdef DL_NOW 12591# define LT_DLLAZY_OR_NOW DL_NOW 12592# else 12593# define LT_DLLAZY_OR_NOW 0 12594# endif 12595# endif 12596# endif 12597# endif 12598#endif 12599 12600/* When -fvisibility=hidden is used, assume the code has been annotated 12601 correspondingly for the symbols needed. */ 12602#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12603int fnord () __attribute__((visibility("default"))); 12604#endif 12605 12606int fnord () { return 42; } 12607int main () 12608{ 12609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12610 int status = $lt_dlunknown; 12611 12612 if (self) 12613 { 12614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12615 else 12616 { 12617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12618 else puts (dlerror ()); 12619 } 12620 /* dlclose (self); */ 12621 } 12622 else 12623 puts (dlerror ()); 12624 12625 return status; 12626} 12627_LT_EOF 12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12629 (eval $ac_link) 2>&5 12630 ac_status=$? 12631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12633 (./conftest; exit; ) >&5 2>/dev/null 12634 lt_status=$? 12635 case x$lt_status in 12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12639 esac 12640 else : 12641 # compilation failed 12642 lt_cv_dlopen_self_static=no 12643 fi 12644fi 12645rm -fr conftest* 12646 12647 12648fi 12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12650printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12651 fi 12652 12653 CPPFLAGS=$save_CPPFLAGS 12654 LDFLAGS=$save_LDFLAGS 12655 LIBS=$save_LIBS 12656 ;; 12657 esac 12658 12659 case $lt_cv_dlopen_self in 12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12661 *) enable_dlopen_self=unknown ;; 12662 esac 12663 12664 case $lt_cv_dlopen_self_static in 12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12666 *) enable_dlopen_self_static=unknown ;; 12667 esac 12668fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686striplib= 12687old_striplib= 12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12689printf %s "checking whether stripping libraries is possible... " >&6; } 12690if test -z "$STRIP"; then 12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692printf "%s\n" "no" >&6; } 12693else 12694 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12695 old_striplib="$STRIP --strip-debug" 12696 striplib="$STRIP --strip-unneeded" 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698printf "%s\n" "yes" >&6; } 12699 else 12700 case $host_os in 12701 darwin*) 12702 # FIXME - insert some real tests, host_os isn't really good enough 12703 striplib="$STRIP -x" 12704 old_striplib="$STRIP -S" 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12706printf "%s\n" "yes" >&6; } 12707 ;; 12708 freebsd*) 12709 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12710 old_striplib="$STRIP --strip-debug" 12711 striplib="$STRIP --strip-unneeded" 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12713printf "%s\n" "yes" >&6; } 12714 else 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12716printf "%s\n" "no" >&6; } 12717 fi 12718 ;; 12719 *) 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12721printf "%s\n" "no" >&6; } 12722 ;; 12723 esac 12724 fi 12725fi 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 # Report what library types will actually be built 12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12740printf %s "checking if libtool supports shared libraries... " >&6; } 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12742printf "%s\n" "$can_build_shared" >&6; } 12743 12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12745printf %s "checking whether to build shared libraries... " >&6; } 12746 test no = "$can_build_shared" && enable_shared=no 12747 12748 # On AIX, shared libraries and static libraries use the same namespace, and 12749 # are all built from PIC. 12750 case $host_os in 12751 aix3*) 12752 test yes = "$enable_shared" && enable_static=no 12753 if test -n "$RANLIB"; then 12754 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12755 postinstall_cmds='$RANLIB $lib' 12756 fi 12757 ;; 12758 12759 aix[4-9]*) 12760 if test ia64 != "$host_cpu"; then 12761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12762 yes,aix,yes) ;; # shared object as lib.so file only 12763 yes,svr4,*) ;; # shared object as lib.so archive member only 12764 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12765 esac 12766 fi 12767 ;; 12768 esac 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12770printf "%s\n" "$enable_shared" >&6; } 12771 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12773printf %s "checking whether to build static libraries... " >&6; } 12774 # Make sure either enable_shared or enable_static is yes. 12775 test yes = "$enable_shared" || enable_static=yes 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12777printf "%s\n" "$enable_static" >&6; } 12778 12779 12780 12781 12782fi 12783ac_ext=c 12784ac_cpp='$CPP $CPPFLAGS' 12785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12787ac_compiler_gnu=$ac_cv_c_compiler_gnu 12788 12789CC=$lt_save_CC 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 ac_config_commands="$ac_config_commands libtool" 12806 12807 12808 12809 12810# Only expand once: 12811 12812 12813 12814# Require xorg-macros minimum of 1.12 for DocBook external references 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12828printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12829if test ${ac_cv_c_undeclared_builtin_options+y} 12830then : 12831 printf %s "(cached) " >&6 12832else $as_nop 12833 ac_save_CFLAGS=$CFLAGS 12834 ac_cv_c_undeclared_builtin_options='cannot detect' 12835 for ac_arg in '' -fno-builtin; do 12836 CFLAGS="$ac_save_CFLAGS $ac_arg" 12837 # This test program should *not* compile successfully. 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839/* end confdefs.h. */ 12840 12841int 12842main (void) 12843{ 12844(void) strchr; 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849if ac_fn_c_try_compile "$LINENO" 12850then : 12851 12852else $as_nop 12853 # This test program should compile successfully. 12854 # No library function is consistently available on 12855 # freestanding implementations, so test against a dummy 12856 # declaration. Include always-available headers on the 12857 # off chance that they somehow elicit warnings. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860#include <float.h> 12861#include <limits.h> 12862#include <stdarg.h> 12863#include <stddef.h> 12864extern void ac_decl (int, char *); 12865 12866int 12867main (void) 12868{ 12869(void) ac_decl (0, (char *) 0); 12870 (void) ac_decl; 12871 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876if ac_fn_c_try_compile "$LINENO" 12877then : 12878 if test x"$ac_arg" = x 12879then : 12880 ac_cv_c_undeclared_builtin_options='none needed' 12881else $as_nop 12882 ac_cv_c_undeclared_builtin_options=$ac_arg 12883fi 12884 break 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12887fi 12888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12889 done 12890 CFLAGS=$ac_save_CFLAGS 12891 12892fi 12893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12894printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12895 case $ac_cv_c_undeclared_builtin_options in #( 12896 'cannot detect') : 12897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12898printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12899as_fn_error $? "cannot make $CC report undeclared builtins 12900See \`config.log' for more details" "$LINENO" 5; } ;; #( 12901 'none needed') : 12902 ac_c_undeclared_builtin_options='' ;; #( 12903 *) : 12904 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12905esac 12906 12907 12908 12909 12910 12911ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12912if test "x$ac_cv_have_decl___clang__" = xyes 12913then : 12914 CLANGCC="yes" 12915else $as_nop 12916 CLANGCC="no" 12917fi 12918ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12919if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12920then : 12921 INTELCC="yes" 12922else $as_nop 12923 INTELCC="no" 12924fi 12925ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12926if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12927then : 12928 SUNCC="yes" 12929else $as_nop 12930 SUNCC="no" 12931fi 12932 12933 12934 12935 12936 12937 12938 12939 12940if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12941 if test -n "$ac_tool_prefix"; then 12942 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12943set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12945printf %s "checking for $ac_word... " >&6; } 12946if test ${ac_cv_path_PKG_CONFIG+y} 12947then : 12948 printf %s "(cached) " >&6 12949else $as_nop 12950 case $PKG_CONFIG in 12951 [\\/]* | ?:[\\/]*) 12952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12953 ;; 12954 *) 12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12956for as_dir in $PATH 12957do 12958 IFS=$as_save_IFS 12959 case $as_dir in #((( 12960 '') as_dir=./ ;; 12961 */) ;; 12962 *) as_dir=$as_dir/ ;; 12963 esac 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12966 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12968 break 2 12969 fi 12970done 12971 done 12972IFS=$as_save_IFS 12973 12974 ;; 12975esac 12976fi 12977PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12978if test -n "$PKG_CONFIG"; then 12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12980printf "%s\n" "$PKG_CONFIG" >&6; } 12981else 12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12983printf "%s\n" "no" >&6; } 12984fi 12985 12986 12987fi 12988if test -z "$ac_cv_path_PKG_CONFIG"; then 12989 ac_pt_PKG_CONFIG=$PKG_CONFIG 12990 # Extract the first word of "pkg-config", so it can be a program name with args. 12991set dummy pkg-config; ac_word=$2 12992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12993printf %s "checking for $ac_word... " >&6; } 12994if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12995then : 12996 printf %s "(cached) " >&6 12997else $as_nop 12998 case $ac_pt_PKG_CONFIG in 12999 [\\/]* | ?:[\\/]*) 13000 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13001 ;; 13002 *) 13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13004for as_dir in $PATH 13005do 13006 IFS=$as_save_IFS 13007 case $as_dir in #((( 13008 '') as_dir=./ ;; 13009 */) ;; 13010 *) as_dir=$as_dir/ ;; 13011 esac 13012 for ac_exec_ext in '' $ac_executable_extensions; do 13013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13014 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13016 break 2 13017 fi 13018done 13019 done 13020IFS=$as_save_IFS 13021 13022 ;; 13023esac 13024fi 13025ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13026if test -n "$ac_pt_PKG_CONFIG"; then 13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13028printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13029else 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031printf "%s\n" "no" >&6; } 13032fi 13033 13034 if test "x$ac_pt_PKG_CONFIG" = x; then 13035 PKG_CONFIG="" 13036 else 13037 case $cross_compiling:$ac_tool_warned in 13038yes:) 13039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13041ac_tool_warned=yes ;; 13042esac 13043 PKG_CONFIG=$ac_pt_PKG_CONFIG 13044 fi 13045else 13046 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13047fi 13048 13049fi 13050if test -n "$PKG_CONFIG"; then 13051 _pkg_min_version=0.9.0 13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13053printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13054 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13056printf "%s\n" "yes" >&6; } 13057 else 13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13059printf "%s\n" "no" >&6; } 13060 PKG_CONFIG="" 13061 fi 13062fi 13063 13064 13065 13066 13067 13068# Check whether --enable-selective-werror was given. 13069if test ${enable_selective_werror+y} 13070then : 13071 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13072else $as_nop 13073 SELECTIVE_WERROR=yes 13074fi 13075 13076 13077 13078 13079 13080# -v is too short to test reliably with XORG_TESTSET_CFLAG 13081if test "x$SUNCC" = "xyes"; then 13082 BASE_CFLAGS="-v" 13083else 13084 BASE_CFLAGS="" 13085fi 13086 13087# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101xorg_testset_save_CFLAGS="$CFLAGS" 13102 13103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13108then : 13109 printf %s "(cached) " >&6 13110else $as_nop 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13112/* end confdefs.h. */ 13113int i; 13114_ACEOF 13115if ac_fn_c_try_compile "$LINENO" 13116then : 13117 xorg_cv_cc_flag_unknown_warning_option=yes 13118else $as_nop 13119 xorg_cv_cc_flag_unknown_warning_option=no 13120fi 13121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13122fi 13123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13126 CFLAGS="$xorg_testset_save_CFLAGS" 13127fi 13128 13129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13132 fi 13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13137then : 13138 printf %s "(cached) " >&6 13139else $as_nop 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142int i; 13143_ACEOF 13144if ac_fn_c_try_compile "$LINENO" 13145then : 13146 xorg_cv_cc_flag_unused_command_line_argument=yes 13147else $as_nop 13148 xorg_cv_cc_flag_unused_command_line_argument=no 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13151fi 13152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13155 CFLAGS="$xorg_testset_save_CFLAGS" 13156fi 13157 13158found="no" 13159 13160 if test $found = "no" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 13165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13167 fi 13168 13169 CFLAGS="$CFLAGS -Wall" 13170 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13172printf %s "checking if $CC supports -Wall... " >&6; } 13173 cacheid=xorg_cv_cc_flag__Wall 13174 if eval test \${$cacheid+y} 13175then : 13176 printf %s "(cached) " >&6 13177else $as_nop 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180int i; 13181int 13182main (void) 13183{ 13184 13185 ; 13186 return 0; 13187} 13188_ACEOF 13189if ac_fn_c_try_link "$LINENO" 13190then : 13191 eval $cacheid=yes 13192else $as_nop 13193 eval $cacheid=no 13194fi 13195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13196 conftest$ac_exeext conftest.$ac_ext 13197fi 13198 13199 13200 CFLAGS="$xorg_testset_save_CFLAGS" 13201 13202 eval supported=\$$cacheid 13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13204printf "%s\n" "$supported" >&6; } 13205 if test "$supported" = "yes" ; then 13206 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13207 found="yes" 13208 fi 13209 fi 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225xorg_testset_save_CFLAGS="$CFLAGS" 13226 13227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13231if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13232then : 13233 printf %s "(cached) " >&6 13234else $as_nop 13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13236/* end confdefs.h. */ 13237int i; 13238_ACEOF 13239if ac_fn_c_try_compile "$LINENO" 13240then : 13241 xorg_cv_cc_flag_unknown_warning_option=yes 13242else $as_nop 13243 xorg_cv_cc_flag_unknown_warning_option=no 13244fi 13245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13246fi 13247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13250 CFLAGS="$xorg_testset_save_CFLAGS" 13251fi 13252 13253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13256 fi 13257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13260if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13261then : 13262 printf %s "(cached) " >&6 13263else $as_nop 13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13265/* end confdefs.h. */ 13266int i; 13267_ACEOF 13268if ac_fn_c_try_compile "$LINENO" 13269then : 13270 xorg_cv_cc_flag_unused_command_line_argument=yes 13271else $as_nop 13272 xorg_cv_cc_flag_unused_command_line_argument=no 13273fi 13274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13275fi 13276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13279 CFLAGS="$xorg_testset_save_CFLAGS" 13280fi 13281 13282found="no" 13283 13284 if test $found = "no" ; then 13285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13287 fi 13288 13289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13291 fi 13292 13293 CFLAGS="$CFLAGS -Wpointer-arith" 13294 13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13296printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13297 cacheid=xorg_cv_cc_flag__Wpointer_arith 13298 if eval test \${$cacheid+y} 13299then : 13300 printf %s "(cached) " >&6 13301else $as_nop 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304int i; 13305int 13306main (void) 13307{ 13308 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_link "$LINENO" 13314then : 13315 eval $cacheid=yes 13316else $as_nop 13317 eval $cacheid=no 13318fi 13319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13320 conftest$ac_exeext conftest.$ac_ext 13321fi 13322 13323 13324 CFLAGS="$xorg_testset_save_CFLAGS" 13325 13326 eval supported=\$$cacheid 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13328printf "%s\n" "$supported" >&6; } 13329 if test "$supported" = "yes" ; then 13330 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13331 found="yes" 13332 fi 13333 fi 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349xorg_testset_save_CFLAGS="$CFLAGS" 13350 13351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13356then : 13357 printf %s "(cached) " >&6 13358else $as_nop 13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13360/* end confdefs.h. */ 13361int i; 13362_ACEOF 13363if ac_fn_c_try_compile "$LINENO" 13364then : 13365 xorg_cv_cc_flag_unknown_warning_option=yes 13366else $as_nop 13367 xorg_cv_cc_flag_unknown_warning_option=no 13368fi 13369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13370fi 13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13374 CFLAGS="$xorg_testset_save_CFLAGS" 13375fi 13376 13377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13380 fi 13381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13385then : 13386 printf %s "(cached) " >&6 13387else $as_nop 13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13389/* end confdefs.h. */ 13390int i; 13391_ACEOF 13392if ac_fn_c_try_compile "$LINENO" 13393then : 13394 xorg_cv_cc_flag_unused_command_line_argument=yes 13395else $as_nop 13396 xorg_cv_cc_flag_unused_command_line_argument=no 13397fi 13398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13399fi 13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13403 CFLAGS="$xorg_testset_save_CFLAGS" 13404fi 13405 13406found="no" 13407 13408 if test $found = "no" ; then 13409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13411 fi 13412 13413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13415 fi 13416 13417 CFLAGS="$CFLAGS -Wmissing-declarations" 13418 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13420printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13421 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13422 if eval test \${$cacheid+y} 13423then : 13424 printf %s "(cached) " >&6 13425else $as_nop 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428int i; 13429int 13430main (void) 13431{ 13432 13433 ; 13434 return 0; 13435} 13436_ACEOF 13437if ac_fn_c_try_link "$LINENO" 13438then : 13439 eval $cacheid=yes 13440else $as_nop 13441 eval $cacheid=no 13442fi 13443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13444 conftest$ac_exeext conftest.$ac_ext 13445fi 13446 13447 13448 CFLAGS="$xorg_testset_save_CFLAGS" 13449 13450 eval supported=\$$cacheid 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13452printf "%s\n" "$supported" >&6; } 13453 if test "$supported" = "yes" ; then 13454 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13455 found="yes" 13456 fi 13457 fi 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473xorg_testset_save_CFLAGS="$CFLAGS" 13474 13475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13479if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13480then : 13481 printf %s "(cached) " >&6 13482else $as_nop 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485int i; 13486_ACEOF 13487if ac_fn_c_try_compile "$LINENO" 13488then : 13489 xorg_cv_cc_flag_unknown_warning_option=yes 13490else $as_nop 13491 xorg_cv_cc_flag_unknown_warning_option=no 13492fi 13493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13494fi 13495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13498 CFLAGS="$xorg_testset_save_CFLAGS" 13499fi 13500 13501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13504 fi 13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13508if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13509then : 13510 printf %s "(cached) " >&6 13511else $as_nop 13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13513/* end confdefs.h. */ 13514int i; 13515_ACEOF 13516if ac_fn_c_try_compile "$LINENO" 13517then : 13518 xorg_cv_cc_flag_unused_command_line_argument=yes 13519else $as_nop 13520 xorg_cv_cc_flag_unused_command_line_argument=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13523fi 13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13527 CFLAGS="$xorg_testset_save_CFLAGS" 13528fi 13529 13530found="no" 13531 13532 if test $found = "no" ; then 13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 fi 13536 13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13539 fi 13540 13541 CFLAGS="$CFLAGS -Wformat=2" 13542 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13544printf %s "checking if $CC supports -Wformat=2... " >&6; } 13545 cacheid=xorg_cv_cc_flag__Wformat_2 13546 if eval test \${$cacheid+y} 13547then : 13548 printf %s "(cached) " >&6 13549else $as_nop 13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13551/* end confdefs.h. */ 13552int i; 13553int 13554main (void) 13555{ 13556 13557 ; 13558 return 0; 13559} 13560_ACEOF 13561if ac_fn_c_try_link "$LINENO" 13562then : 13563 eval $cacheid=yes 13564else $as_nop 13565 eval $cacheid=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13568 conftest$ac_exeext conftest.$ac_ext 13569fi 13570 13571 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573 13574 eval supported=\$$cacheid 13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13576printf "%s\n" "$supported" >&6; } 13577 if test "$supported" = "yes" ; then 13578 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13579 found="yes" 13580 fi 13581 fi 13582 13583 if test $found = "no" ; then 13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13586 fi 13587 13588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13590 fi 13591 13592 CFLAGS="$CFLAGS -Wformat" 13593 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13595printf %s "checking if $CC supports -Wformat... " >&6; } 13596 cacheid=xorg_cv_cc_flag__Wformat 13597 if eval test \${$cacheid+y} 13598then : 13599 printf %s "(cached) " >&6 13600else $as_nop 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603int i; 13604int 13605main (void) 13606{ 13607 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_link "$LINENO" 13613then : 13614 eval $cacheid=yes 13615else $as_nop 13616 eval $cacheid=no 13617fi 13618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13619 conftest$ac_exeext conftest.$ac_ext 13620fi 13621 13622 13623 CFLAGS="$xorg_testset_save_CFLAGS" 13624 13625 eval supported=\$$cacheid 13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13627printf "%s\n" "$supported" >&6; } 13628 if test "$supported" = "yes" ; then 13629 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13630 found="yes" 13631 fi 13632 fi 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650xorg_testset_save_CFLAGS="$CFLAGS" 13651 13652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13657then : 13658 printf %s "(cached) " >&6 13659else $as_nop 13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662int i; 13663_ACEOF 13664if ac_fn_c_try_compile "$LINENO" 13665then : 13666 xorg_cv_cc_flag_unknown_warning_option=yes 13667else $as_nop 13668 xorg_cv_cc_flag_unknown_warning_option=no 13669fi 13670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13671fi 13672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13675 CFLAGS="$xorg_testset_save_CFLAGS" 13676fi 13677 13678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13681 fi 13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13686then : 13687 printf %s "(cached) " >&6 13688else $as_nop 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692_ACEOF 13693if ac_fn_c_try_compile "$LINENO" 13694then : 13695 xorg_cv_cc_flag_unused_command_line_argument=yes 13696else $as_nop 13697 xorg_cv_cc_flag_unused_command_line_argument=no 13698fi 13699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13700fi 13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13704 CFLAGS="$xorg_testset_save_CFLAGS" 13705fi 13706 13707found="no" 13708 13709 if test $found = "no" ; then 13710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13712 fi 13713 13714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13716 fi 13717 13718 CFLAGS="$CFLAGS -Wstrict-prototypes" 13719 13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13721printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13722 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13723 if eval test \${$cacheid+y} 13724then : 13725 printf %s "(cached) " >&6 13726else $as_nop 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729int i; 13730int 13731main (void) 13732{ 13733 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738if ac_fn_c_try_link "$LINENO" 13739then : 13740 eval $cacheid=yes 13741else $as_nop 13742 eval $cacheid=no 13743fi 13744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13745 conftest$ac_exeext conftest.$ac_ext 13746fi 13747 13748 13749 CFLAGS="$xorg_testset_save_CFLAGS" 13750 13751 eval supported=\$$cacheid 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13753printf "%s\n" "$supported" >&6; } 13754 if test "$supported" = "yes" ; then 13755 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13756 found="yes" 13757 fi 13758 fi 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774xorg_testset_save_CFLAGS="$CFLAGS" 13775 13776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13780if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13781then : 13782 printf %s "(cached) " >&6 13783else $as_nop 13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786int i; 13787_ACEOF 13788if ac_fn_c_try_compile "$LINENO" 13789then : 13790 xorg_cv_cc_flag_unknown_warning_option=yes 13791else $as_nop 13792 xorg_cv_cc_flag_unknown_warning_option=no 13793fi 13794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13795fi 13796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13799 CFLAGS="$xorg_testset_save_CFLAGS" 13800fi 13801 13802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13805 fi 13806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13809if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13810then : 13811 printf %s "(cached) " >&6 13812else $as_nop 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815int i; 13816_ACEOF 13817if ac_fn_c_try_compile "$LINENO" 13818then : 13819 xorg_cv_cc_flag_unused_command_line_argument=yes 13820else $as_nop 13821 xorg_cv_cc_flag_unused_command_line_argument=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13824fi 13825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829fi 13830 13831found="no" 13832 13833 if test $found = "no" ; then 13834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13836 fi 13837 13838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13840 fi 13841 13842 CFLAGS="$CFLAGS -Wmissing-prototypes" 13843 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13845printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13846 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13847 if eval test \${$cacheid+y} 13848then : 13849 printf %s "(cached) " >&6 13850else $as_nop 13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13852/* end confdefs.h. */ 13853int i; 13854int 13855main (void) 13856{ 13857 13858 ; 13859 return 0; 13860} 13861_ACEOF 13862if ac_fn_c_try_link "$LINENO" 13863then : 13864 eval $cacheid=yes 13865else $as_nop 13866 eval $cacheid=no 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13869 conftest$ac_exeext conftest.$ac_ext 13870fi 13871 13872 13873 CFLAGS="$xorg_testset_save_CFLAGS" 13874 13875 eval supported=\$$cacheid 13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13877printf "%s\n" "$supported" >&6; } 13878 if test "$supported" = "yes" ; then 13879 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13880 found="yes" 13881 fi 13882 fi 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898xorg_testset_save_CFLAGS="$CFLAGS" 13899 13900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13905then : 13906 printf %s "(cached) " >&6 13907else $as_nop 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910int i; 13911_ACEOF 13912if ac_fn_c_try_compile "$LINENO" 13913then : 13914 xorg_cv_cc_flag_unknown_warning_option=yes 13915else $as_nop 13916 xorg_cv_cc_flag_unknown_warning_option=no 13917fi 13918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13919fi 13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13923 CFLAGS="$xorg_testset_save_CFLAGS" 13924fi 13925 13926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13929 fi 13930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13934then : 13935 printf %s "(cached) " >&6 13936else $as_nop 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940_ACEOF 13941if ac_fn_c_try_compile "$LINENO" 13942then : 13943 xorg_cv_cc_flag_unused_command_line_argument=yes 13944else $as_nop 13945 xorg_cv_cc_flag_unused_command_line_argument=no 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13948fi 13949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13952 CFLAGS="$xorg_testset_save_CFLAGS" 13953fi 13954 13955found="no" 13956 13957 if test $found = "no" ; then 13958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13960 fi 13961 13962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13964 fi 13965 13966 CFLAGS="$CFLAGS -Wnested-externs" 13967 13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13969printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13970 cacheid=xorg_cv_cc_flag__Wnested_externs 13971 if eval test \${$cacheid+y} 13972then : 13973 printf %s "(cached) " >&6 13974else $as_nop 13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976/* end confdefs.h. */ 13977int i; 13978int 13979main (void) 13980{ 13981 13982 ; 13983 return 0; 13984} 13985_ACEOF 13986if ac_fn_c_try_link "$LINENO" 13987then : 13988 eval $cacheid=yes 13989else $as_nop 13990 eval $cacheid=no 13991fi 13992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13993 conftest$ac_exeext conftest.$ac_ext 13994fi 13995 13996 13997 CFLAGS="$xorg_testset_save_CFLAGS" 13998 13999 eval supported=\$$cacheid 14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14001printf "%s\n" "$supported" >&6; } 14002 if test "$supported" = "yes" ; then 14003 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14004 found="yes" 14005 fi 14006 fi 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022xorg_testset_save_CFLAGS="$CFLAGS" 14023 14024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14029then : 14030 printf %s "(cached) " >&6 14031else $as_nop 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034int i; 14035_ACEOF 14036if ac_fn_c_try_compile "$LINENO" 14037then : 14038 xorg_cv_cc_flag_unknown_warning_option=yes 14039else $as_nop 14040 xorg_cv_cc_flag_unknown_warning_option=no 14041fi 14042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14043fi 14044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14047 CFLAGS="$xorg_testset_save_CFLAGS" 14048fi 14049 14050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14053 fi 14054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14058then : 14059 printf %s "(cached) " >&6 14060else $as_nop 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063int i; 14064_ACEOF 14065if ac_fn_c_try_compile "$LINENO" 14066then : 14067 xorg_cv_cc_flag_unused_command_line_argument=yes 14068else $as_nop 14069 xorg_cv_cc_flag_unused_command_line_argument=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14072fi 14073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14076 CFLAGS="$xorg_testset_save_CFLAGS" 14077fi 14078 14079found="no" 14080 14081 if test $found = "no" ; then 14082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14084 fi 14085 14086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14088 fi 14089 14090 CFLAGS="$CFLAGS -Wbad-function-cast" 14091 14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14093printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14094 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14095 if eval test \${$cacheid+y} 14096then : 14097 printf %s "(cached) " >&6 14098else $as_nop 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102int 14103main (void) 14104{ 14105 14106 ; 14107 return 0; 14108} 14109_ACEOF 14110if ac_fn_c_try_link "$LINENO" 14111then : 14112 eval $cacheid=yes 14113else $as_nop 14114 eval $cacheid=no 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14117 conftest$ac_exeext conftest.$ac_ext 14118fi 14119 14120 14121 CFLAGS="$xorg_testset_save_CFLAGS" 14122 14123 eval supported=\$$cacheid 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14125printf "%s\n" "$supported" >&6; } 14126 if test "$supported" = "yes" ; then 14127 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14128 found="yes" 14129 fi 14130 fi 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146xorg_testset_save_CFLAGS="$CFLAGS" 14147 14148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14153then : 14154 printf %s "(cached) " >&6 14155else $as_nop 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158int i; 14159_ACEOF 14160if ac_fn_c_try_compile "$LINENO" 14161then : 14162 xorg_cv_cc_flag_unknown_warning_option=yes 14163else $as_nop 14164 xorg_cv_cc_flag_unknown_warning_option=no 14165fi 14166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14167fi 14168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14171 CFLAGS="$xorg_testset_save_CFLAGS" 14172fi 14173 14174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14177 fi 14178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14182then : 14183 printf %s "(cached) " >&6 14184else $as_nop 14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14186/* end confdefs.h. */ 14187int i; 14188_ACEOF 14189if ac_fn_c_try_compile "$LINENO" 14190then : 14191 xorg_cv_cc_flag_unused_command_line_argument=yes 14192else $as_nop 14193 xorg_cv_cc_flag_unused_command_line_argument=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14196fi 14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203found="no" 14204 14205 if test $found = "no" ; then 14206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 14210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 fi 14213 14214 CFLAGS="$CFLAGS -Wold-style-definition" 14215 14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14217printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14218 cacheid=xorg_cv_cc_flag__Wold_style_definition 14219 if eval test \${$cacheid+y} 14220then : 14221 printf %s "(cached) " >&6 14222else $as_nop 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14224/* end confdefs.h. */ 14225int i; 14226int 14227main (void) 14228{ 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234if ac_fn_c_try_link "$LINENO" 14235then : 14236 eval $cacheid=yes 14237else $as_nop 14238 eval $cacheid=no 14239fi 14240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14241 conftest$ac_exeext conftest.$ac_ext 14242fi 14243 14244 14245 CFLAGS="$xorg_testset_save_CFLAGS" 14246 14247 eval supported=\$$cacheid 14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14249printf "%s\n" "$supported" >&6; } 14250 if test "$supported" = "yes" ; then 14251 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14252 found="yes" 14253 fi 14254 fi 14255 14256 if test $found = "no" ; then 14257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14259 fi 14260 14261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14263 fi 14264 14265 CFLAGS="$CFLAGS -fd" 14266 14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14268printf %s "checking if $CC supports -fd... " >&6; } 14269 cacheid=xorg_cv_cc_flag__fd 14270 if eval test \${$cacheid+y} 14271then : 14272 printf %s "(cached) " >&6 14273else $as_nop 14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14275/* end confdefs.h. */ 14276int i; 14277int 14278main (void) 14279{ 14280 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285if ac_fn_c_try_link "$LINENO" 14286then : 14287 eval $cacheid=yes 14288else $as_nop 14289 eval $cacheid=no 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14292 conftest$ac_exeext conftest.$ac_ext 14293fi 14294 14295 14296 CFLAGS="$xorg_testset_save_CFLAGS" 14297 14298 eval supported=\$$cacheid 14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14300printf "%s\n" "$supported" >&6; } 14301 if test "$supported" = "yes" ; then 14302 BASE_CFLAGS="$BASE_CFLAGS -fd" 14303 found="yes" 14304 fi 14305 fi 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321xorg_testset_save_CFLAGS="$CFLAGS" 14322 14323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14328then : 14329 printf %s "(cached) " >&6 14330else $as_nop 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO" 14336then : 14337 xorg_cv_cc_flag_unknown_warning_option=yes 14338else $as_nop 14339 xorg_cv_cc_flag_unknown_warning_option=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14342fi 14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347fi 14348 14349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14352 fi 14353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14357then : 14358 printf %s "(cached) " >&6 14359else $as_nop 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363_ACEOF 14364if ac_fn_c_try_compile "$LINENO" 14365then : 14366 xorg_cv_cc_flag_unused_command_line_argument=yes 14367else $as_nop 14368 xorg_cv_cc_flag_unused_command_line_argument=no 14369fi 14370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14371fi 14372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14375 CFLAGS="$xorg_testset_save_CFLAGS" 14376fi 14377 14378found="no" 14379 14380 if test $found = "no" ; then 14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14383 fi 14384 14385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14387 fi 14388 14389 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14390 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14392printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14393 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14394 if eval test \${$cacheid+y} 14395then : 14396 printf %s "(cached) " >&6 14397else $as_nop 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main (void) 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO" 14410then : 14411 eval $cacheid=yes 14412else $as_nop 14413 eval $cacheid=no 14414fi 14415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14416 conftest$ac_exeext conftest.$ac_ext 14417fi 14418 14419 14420 CFLAGS="$xorg_testset_save_CFLAGS" 14421 14422 eval supported=\$$cacheid 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14424printf "%s\n" "$supported" >&6; } 14425 if test "$supported" = "yes" ; then 14426 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14427 found="yes" 14428 fi 14429 fi 14430 14431 14432 14433 14434 14435# This chunk adds additional warnings that could catch undesired effects. 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449xorg_testset_save_CFLAGS="$CFLAGS" 14450 14451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14455if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14456then : 14457 printf %s "(cached) " >&6 14458else $as_nop 14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460/* end confdefs.h. */ 14461int i; 14462_ACEOF 14463if ac_fn_c_try_compile "$LINENO" 14464then : 14465 xorg_cv_cc_flag_unknown_warning_option=yes 14466else $as_nop 14467 xorg_cv_cc_flag_unknown_warning_option=no 14468fi 14469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14470fi 14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14474 CFLAGS="$xorg_testset_save_CFLAGS" 14475fi 14476 14477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14484if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14485then : 14486 printf %s "(cached) " >&6 14487else $as_nop 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491_ACEOF 14492if ac_fn_c_try_compile "$LINENO" 14493then : 14494 xorg_cv_cc_flag_unused_command_line_argument=yes 14495else $as_nop 14496 xorg_cv_cc_flag_unused_command_line_argument=no 14497fi 14498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14499fi 14500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14503 CFLAGS="$xorg_testset_save_CFLAGS" 14504fi 14505 14506found="no" 14507 14508 if test $found = "no" ; then 14509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14511 fi 14512 14513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14515 fi 14516 14517 CFLAGS="$CFLAGS -Wunused" 14518 14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14520printf %s "checking if $CC supports -Wunused... " >&6; } 14521 cacheid=xorg_cv_cc_flag__Wunused 14522 if eval test \${$cacheid+y} 14523then : 14524 printf %s "(cached) " >&6 14525else $as_nop 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529int 14530main (void) 14531{ 14532 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_link "$LINENO" 14538then : 14539 eval $cacheid=yes 14540else $as_nop 14541 eval $cacheid=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14544 conftest$ac_exeext conftest.$ac_ext 14545fi 14546 14547 14548 CFLAGS="$xorg_testset_save_CFLAGS" 14549 14550 eval supported=\$$cacheid 14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14552printf "%s\n" "$supported" >&6; } 14553 if test "$supported" = "yes" ; then 14554 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14555 found="yes" 14556 fi 14557 fi 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573xorg_testset_save_CFLAGS="$CFLAGS" 14574 14575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14579if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14580then : 14581 printf %s "(cached) " >&6 14582else $as_nop 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585int i; 14586_ACEOF 14587if ac_fn_c_try_compile "$LINENO" 14588then : 14589 xorg_cv_cc_flag_unknown_warning_option=yes 14590else $as_nop 14591 xorg_cv_cc_flag_unknown_warning_option=no 14592fi 14593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14594fi 14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14598 CFLAGS="$xorg_testset_save_CFLAGS" 14599fi 14600 14601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14604 fi 14605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14608if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14609then : 14610 printf %s "(cached) " >&6 14611else $as_nop 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614int i; 14615_ACEOF 14616if ac_fn_c_try_compile "$LINENO" 14617then : 14618 xorg_cv_cc_flag_unused_command_line_argument=yes 14619else $as_nop 14620 xorg_cv_cc_flag_unused_command_line_argument=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14623fi 14624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628fi 14629 14630found="no" 14631 14632 if test $found = "no" ; then 14633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14635 fi 14636 14637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 fi 14640 14641 CFLAGS="$CFLAGS -Wuninitialized" 14642 14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14644printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14645 cacheid=xorg_cv_cc_flag__Wuninitialized 14646 if eval test \${$cacheid+y} 14647then : 14648 printf %s "(cached) " >&6 14649else $as_nop 14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14651/* end confdefs.h. */ 14652int i; 14653int 14654main (void) 14655{ 14656 14657 ; 14658 return 0; 14659} 14660_ACEOF 14661if ac_fn_c_try_link "$LINENO" 14662then : 14663 eval $cacheid=yes 14664else $as_nop 14665 eval $cacheid=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14668 conftest$ac_exeext conftest.$ac_ext 14669fi 14670 14671 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673 14674 eval supported=\$$cacheid 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14676printf "%s\n" "$supported" >&6; } 14677 if test "$supported" = "yes" ; then 14678 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14679 found="yes" 14680 fi 14681 fi 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697xorg_testset_save_CFLAGS="$CFLAGS" 14698 14699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14704then : 14705 printf %s "(cached) " >&6 14706else $as_nop 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708/* end confdefs.h. */ 14709int i; 14710_ACEOF 14711if ac_fn_c_try_compile "$LINENO" 14712then : 14713 xorg_cv_cc_flag_unknown_warning_option=yes 14714else $as_nop 14715 xorg_cv_cc_flag_unknown_warning_option=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14718fi 14719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14728 fi 14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14733then : 14734 printf %s "(cached) " >&6 14735else $as_nop 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739_ACEOF 14740if ac_fn_c_try_compile "$LINENO" 14741then : 14742 xorg_cv_cc_flag_unused_command_line_argument=yes 14743else $as_nop 14744 xorg_cv_cc_flag_unused_command_line_argument=no 14745fi 14746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14747fi 14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14751 CFLAGS="$xorg_testset_save_CFLAGS" 14752fi 14753 14754found="no" 14755 14756 if test $found = "no" ; then 14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14759 fi 14760 14761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14763 fi 14764 14765 CFLAGS="$CFLAGS -Wshadow" 14766 14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14768printf %s "checking if $CC supports -Wshadow... " >&6; } 14769 cacheid=xorg_cv_cc_flag__Wshadow 14770 if eval test \${$cacheid+y} 14771then : 14772 printf %s "(cached) " >&6 14773else $as_nop 14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14775/* end confdefs.h. */ 14776int i; 14777int 14778main (void) 14779{ 14780 14781 ; 14782 return 0; 14783} 14784_ACEOF 14785if ac_fn_c_try_link "$LINENO" 14786then : 14787 eval $cacheid=yes 14788else $as_nop 14789 eval $cacheid=no 14790fi 14791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14792 conftest$ac_exeext conftest.$ac_ext 14793fi 14794 14795 14796 CFLAGS="$xorg_testset_save_CFLAGS" 14797 14798 eval supported=\$$cacheid 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14800printf "%s\n" "$supported" >&6; } 14801 if test "$supported" = "yes" ; then 14802 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14803 found="yes" 14804 fi 14805 fi 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821xorg_testset_save_CFLAGS="$CFLAGS" 14822 14823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14827if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14828then : 14829 printf %s "(cached) " >&6 14830else $as_nop 14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832/* end confdefs.h. */ 14833int i; 14834_ACEOF 14835if ac_fn_c_try_compile "$LINENO" 14836then : 14837 xorg_cv_cc_flag_unknown_warning_option=yes 14838else $as_nop 14839 xorg_cv_cc_flag_unknown_warning_option=no 14840fi 14841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14842fi 14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847fi 14848 14849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14852 fi 14853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14856if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14857then : 14858 printf %s "(cached) " >&6 14859else $as_nop 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861/* end confdefs.h. */ 14862int i; 14863_ACEOF 14864if ac_fn_c_try_compile "$LINENO" 14865then : 14866 xorg_cv_cc_flag_unused_command_line_argument=yes 14867else $as_nop 14868 xorg_cv_cc_flag_unused_command_line_argument=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14871fi 14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876fi 14877 14878found="no" 14879 14880 if test $found = "no" ; then 14881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14883 fi 14884 14885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14887 fi 14888 14889 CFLAGS="$CFLAGS -Wmissing-noreturn" 14890 14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14892printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14893 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14894 if eval test \${$cacheid+y} 14895then : 14896 printf %s "(cached) " >&6 14897else $as_nop 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900int i; 14901int 14902main (void) 14903{ 14904 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_c_try_link "$LINENO" 14910then : 14911 eval $cacheid=yes 14912else $as_nop 14913 eval $cacheid=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14916 conftest$ac_exeext conftest.$ac_ext 14917fi 14918 14919 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921 14922 eval supported=\$$cacheid 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14924printf "%s\n" "$supported" >&6; } 14925 if test "$supported" = "yes" ; then 14926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14927 found="yes" 14928 fi 14929 fi 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945xorg_testset_save_CFLAGS="$CFLAGS" 14946 14947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14952then : 14953 printf %s "(cached) " >&6 14954else $as_nop 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957int i; 14958_ACEOF 14959if ac_fn_c_try_compile "$LINENO" 14960then : 14961 xorg_cv_cc_flag_unknown_warning_option=yes 14962else $as_nop 14963 xorg_cv_cc_flag_unknown_warning_option=no 14964fi 14965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14966fi 14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14970 CFLAGS="$xorg_testset_save_CFLAGS" 14971fi 14972 14973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14976 fi 14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14980if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14981then : 14982 printf %s "(cached) " >&6 14983else $as_nop 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987_ACEOF 14988if ac_fn_c_try_compile "$LINENO" 14989then : 14990 xorg_cv_cc_flag_unused_command_line_argument=yes 14991else $as_nop 14992 xorg_cv_cc_flag_unused_command_line_argument=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14995fi 14996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002found="no" 15003 15004 if test $found = "no" ; then 15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15007 fi 15008 15009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15011 fi 15012 15013 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15014 15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15016printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15017 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15018 if eval test \${$cacheid+y} 15019then : 15020 printf %s "(cached) " >&6 15021else $as_nop 15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023/* end confdefs.h. */ 15024int i; 15025int 15026main (void) 15027{ 15028 15029 ; 15030 return 0; 15031} 15032_ACEOF 15033if ac_fn_c_try_link "$LINENO" 15034then : 15035 eval $cacheid=yes 15036else $as_nop 15037 eval $cacheid=no 15038fi 15039rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15040 conftest$ac_exeext conftest.$ac_ext 15041fi 15042 15043 15044 CFLAGS="$xorg_testset_save_CFLAGS" 15045 15046 eval supported=\$$cacheid 15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15048printf "%s\n" "$supported" >&6; } 15049 if test "$supported" = "yes" ; then 15050 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15051 found="yes" 15052 fi 15053 fi 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069xorg_testset_save_CFLAGS="$CFLAGS" 15070 15071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15076then : 15077 printf %s "(cached) " >&6 15078else $as_nop 15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081int i; 15082_ACEOF 15083if ac_fn_c_try_compile "$LINENO" 15084then : 15085 xorg_cv_cc_flag_unknown_warning_option=yes 15086else $as_nop 15087 xorg_cv_cc_flag_unknown_warning_option=no 15088fi 15089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15090fi 15091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15094 CFLAGS="$xorg_testset_save_CFLAGS" 15095fi 15096 15097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15100 fi 15101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15105then : 15106 printf %s "(cached) " >&6 15107else $as_nop 15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15109/* end confdefs.h. */ 15110int i; 15111_ACEOF 15112if ac_fn_c_try_compile "$LINENO" 15113then : 15114 xorg_cv_cc_flag_unused_command_line_argument=yes 15115else $as_nop 15116 xorg_cv_cc_flag_unused_command_line_argument=no 15117fi 15118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15119fi 15120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15123 CFLAGS="$xorg_testset_save_CFLAGS" 15124fi 15125 15126found="no" 15127 15128 if test $found = "no" ; then 15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15131 fi 15132 15133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15135 fi 15136 15137 CFLAGS="$CFLAGS -Wredundant-decls" 15138 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15140printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15141 cacheid=xorg_cv_cc_flag__Wredundant_decls 15142 if eval test \${$cacheid+y} 15143then : 15144 printf %s "(cached) " >&6 15145else $as_nop 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147/* end confdefs.h. */ 15148int i; 15149int 15150main (void) 15151{ 15152 15153 ; 15154 return 0; 15155} 15156_ACEOF 15157if ac_fn_c_try_link "$LINENO" 15158then : 15159 eval $cacheid=yes 15160else $as_nop 15161 eval $cacheid=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15164 conftest$ac_exeext conftest.$ac_ext 15165fi 15166 15167 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169 15170 eval supported=\$$cacheid 15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15172printf "%s\n" "$supported" >&6; } 15173 if test "$supported" = "yes" ; then 15174 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15199if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15200then : 15201 printf %s "(cached) " >&6 15202else $as_nop 15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15204/* end confdefs.h. */ 15205int i; 15206_ACEOF 15207if ac_fn_c_try_compile "$LINENO" 15208then : 15209 xorg_cv_cc_flag_unknown_warning_option=yes 15210else $as_nop 15211 xorg_cv_cc_flag_unknown_warning_option=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15214fi 15215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15218 CFLAGS="$xorg_testset_save_CFLAGS" 15219fi 15220 15221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15224 fi 15225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15228if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15229then : 15230 printf %s "(cached) " >&6 15231else $as_nop 15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15233/* end confdefs.h. */ 15234int i; 15235_ACEOF 15236if ac_fn_c_try_compile "$LINENO" 15237then : 15238 xorg_cv_cc_flag_unused_command_line_argument=yes 15239else $as_nop 15240 xorg_cv_cc_flag_unused_command_line_argument=no 15241fi 15242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15243fi 15244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15247 CFLAGS="$xorg_testset_save_CFLAGS" 15248fi 15249 15250found="no" 15251 15252 if test $found = "no" ; then 15253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15255 fi 15256 15257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15259 fi 15260 15261 CFLAGS="$CFLAGS -Wlogical-op" 15262 15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15264printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15265 cacheid=xorg_cv_cc_flag__Wlogical_op 15266 if eval test \${$cacheid+y} 15267then : 15268 printf %s "(cached) " >&6 15269else $as_nop 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273int 15274main (void) 15275{ 15276 15277 ; 15278 return 0; 15279} 15280_ACEOF 15281if ac_fn_c_try_link "$LINENO" 15282then : 15283 eval $cacheid=yes 15284else $as_nop 15285 eval $cacheid=no 15286fi 15287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15288 conftest$ac_exeext conftest.$ac_ext 15289fi 15290 15291 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293 15294 eval supported=\$$cacheid 15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15296printf "%s\n" "$supported" >&6; } 15297 if test "$supported" = "yes" ; then 15298 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15299 found="yes" 15300 fi 15301 fi 15302 15303 15304 15305# These are currently disabled because they are noisy. They will be enabled 15306# in the future once the codebase is sufficiently modernized to silence 15307# them. For now, I don't want them to drown out the other warnings. 15308# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15309# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15310# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15311 15312# Turn some warnings into errors, so we don't accidently get successful builds 15313# when there are problems that should be fixed. 15314 15315if test "x$SELECTIVE_WERROR" = "xyes" ; then 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329xorg_testset_save_CFLAGS="$CFLAGS" 15330 15331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15335if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15336then : 15337 printf %s "(cached) " >&6 15338else $as_nop 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342_ACEOF 15343if ac_fn_c_try_compile "$LINENO" 15344then : 15345 xorg_cv_cc_flag_unknown_warning_option=yes 15346else $as_nop 15347 xorg_cv_cc_flag_unknown_warning_option=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15350fi 15351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355fi 15356 15357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15360 fi 15361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15365then : 15366 printf %s "(cached) " >&6 15367else $as_nop 15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15369/* end confdefs.h. */ 15370int i; 15371_ACEOF 15372if ac_fn_c_try_compile "$LINENO" 15373then : 15374 xorg_cv_cc_flag_unused_command_line_argument=yes 15375else $as_nop 15376 xorg_cv_cc_flag_unused_command_line_argument=no 15377fi 15378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15379fi 15380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15383 CFLAGS="$xorg_testset_save_CFLAGS" 15384fi 15385 15386found="no" 15387 15388 if test $found = "no" ; then 15389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15391 fi 15392 15393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15395 fi 15396 15397 CFLAGS="$CFLAGS -Werror=implicit" 15398 15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15400printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15401 cacheid=xorg_cv_cc_flag__Werror_implicit 15402 if eval test \${$cacheid+y} 15403then : 15404 printf %s "(cached) " >&6 15405else $as_nop 15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15407/* end confdefs.h. */ 15408int i; 15409int 15410main (void) 15411{ 15412 15413 ; 15414 return 0; 15415} 15416_ACEOF 15417if ac_fn_c_try_link "$LINENO" 15418then : 15419 eval $cacheid=yes 15420else $as_nop 15421 eval $cacheid=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15424 conftest$ac_exeext conftest.$ac_ext 15425fi 15426 15427 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429 15430 eval supported=\$$cacheid 15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15432printf "%s\n" "$supported" >&6; } 15433 if test "$supported" = "yes" ; then 15434 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15435 found="yes" 15436 fi 15437 fi 15438 15439 if test $found = "no" ; then 15440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15442 fi 15443 15444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15446 fi 15447 15448 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15449 15450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15451printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15452 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15453 if eval test \${$cacheid+y} 15454then : 15455 printf %s "(cached) " >&6 15456else $as_nop 15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458/* end confdefs.h. */ 15459int i; 15460int 15461main (void) 15462{ 15463 15464 ; 15465 return 0; 15466} 15467_ACEOF 15468if ac_fn_c_try_link "$LINENO" 15469then : 15470 eval $cacheid=yes 15471else $as_nop 15472 eval $cacheid=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15475 conftest$ac_exeext conftest.$ac_ext 15476fi 15477 15478 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480 15481 eval supported=\$$cacheid 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15483printf "%s\n" "$supported" >&6; } 15484 if test "$supported" = "yes" ; then 15485 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15486 found="yes" 15487 fi 15488 fi 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504xorg_testset_save_CFLAGS="$CFLAGS" 15505 15506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15509printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15510if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15511then : 15512 printf %s "(cached) " >&6 15513else $as_nop 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516int i; 15517_ACEOF 15518if ac_fn_c_try_compile "$LINENO" 15519then : 15520 xorg_cv_cc_flag_unknown_warning_option=yes 15521else $as_nop 15522 xorg_cv_cc_flag_unknown_warning_option=no 15523fi 15524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15525fi 15526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15527printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15529 CFLAGS="$xorg_testset_save_CFLAGS" 15530fi 15531 15532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15535 fi 15536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15538printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15539if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15540then : 15541 printf %s "(cached) " >&6 15542else $as_nop 15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545int i; 15546_ACEOF 15547if ac_fn_c_try_compile "$LINENO" 15548then : 15549 xorg_cv_cc_flag_unused_command_line_argument=yes 15550else $as_nop 15551 xorg_cv_cc_flag_unused_command_line_argument=no 15552fi 15553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15554fi 15555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15558 CFLAGS="$xorg_testset_save_CFLAGS" 15559fi 15560 15561found="no" 15562 15563 if test $found = "no" ; then 15564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15566 fi 15567 15568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15570 fi 15571 15572 CFLAGS="$CFLAGS -Werror=nonnull" 15573 15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15575printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15576 cacheid=xorg_cv_cc_flag__Werror_nonnull 15577 if eval test \${$cacheid+y} 15578then : 15579 printf %s "(cached) " >&6 15580else $as_nop 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584int 15585main (void) 15586{ 15587 15588 ; 15589 return 0; 15590} 15591_ACEOF 15592if ac_fn_c_try_link "$LINENO" 15593then : 15594 eval $cacheid=yes 15595else $as_nop 15596 eval $cacheid=no 15597fi 15598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15599 conftest$ac_exeext conftest.$ac_ext 15600fi 15601 15602 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604 15605 eval supported=\$$cacheid 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15607printf "%s\n" "$supported" >&6; } 15608 if test "$supported" = "yes" ; then 15609 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15610 found="yes" 15611 fi 15612 fi 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628xorg_testset_save_CFLAGS="$CFLAGS" 15629 15630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15635then : 15636 printf %s "(cached) " >&6 15637else $as_nop 15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639/* end confdefs.h. */ 15640int i; 15641_ACEOF 15642if ac_fn_c_try_compile "$LINENO" 15643then : 15644 xorg_cv_cc_flag_unknown_warning_option=yes 15645else $as_nop 15646 xorg_cv_cc_flag_unknown_warning_option=no 15647fi 15648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15649fi 15650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15653 CFLAGS="$xorg_testset_save_CFLAGS" 15654fi 15655 15656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15659 fi 15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15663if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15664then : 15665 printf %s "(cached) " >&6 15666else $as_nop 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669int i; 15670_ACEOF 15671if ac_fn_c_try_compile "$LINENO" 15672then : 15673 xorg_cv_cc_flag_unused_command_line_argument=yes 15674else $as_nop 15675 xorg_cv_cc_flag_unused_command_line_argument=no 15676fi 15677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15678fi 15679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15682 CFLAGS="$xorg_testset_save_CFLAGS" 15683fi 15684 15685found="no" 15686 15687 if test $found = "no" ; then 15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15690 fi 15691 15692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15694 fi 15695 15696 CFLAGS="$CFLAGS -Werror=init-self" 15697 15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15699printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15700 cacheid=xorg_cv_cc_flag__Werror_init_self 15701 if eval test \${$cacheid+y} 15702then : 15703 printf %s "(cached) " >&6 15704else $as_nop 15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15706/* end confdefs.h. */ 15707int i; 15708int 15709main (void) 15710{ 15711 15712 ; 15713 return 0; 15714} 15715_ACEOF 15716if ac_fn_c_try_link "$LINENO" 15717then : 15718 eval $cacheid=yes 15719else $as_nop 15720 eval $cacheid=no 15721fi 15722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15723 conftest$ac_exeext conftest.$ac_ext 15724fi 15725 15726 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728 15729 eval supported=\$$cacheid 15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15731printf "%s\n" "$supported" >&6; } 15732 if test "$supported" = "yes" ; then 15733 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15734 found="yes" 15735 fi 15736 fi 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752xorg_testset_save_CFLAGS="$CFLAGS" 15753 15754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15758if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15759then : 15760 printf %s "(cached) " >&6 15761else $as_nop 15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765_ACEOF 15766if ac_fn_c_try_compile "$LINENO" 15767then : 15768 xorg_cv_cc_flag_unknown_warning_option=yes 15769else $as_nop 15770 xorg_cv_cc_flag_unknown_warning_option=no 15771fi 15772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15773fi 15774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15777 CFLAGS="$xorg_testset_save_CFLAGS" 15778fi 15779 15780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15783 fi 15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15787if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15788then : 15789 printf %s "(cached) " >&6 15790else $as_nop 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793int i; 15794_ACEOF 15795if ac_fn_c_try_compile "$LINENO" 15796then : 15797 xorg_cv_cc_flag_unused_command_line_argument=yes 15798else $as_nop 15799 xorg_cv_cc_flag_unused_command_line_argument=no 15800fi 15801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15802fi 15803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15806 CFLAGS="$xorg_testset_save_CFLAGS" 15807fi 15808 15809found="no" 15810 15811 if test $found = "no" ; then 15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15814 fi 15815 15816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15818 fi 15819 15820 CFLAGS="$CFLAGS -Werror=main" 15821 15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15823printf %s "checking if $CC supports -Werror=main... " >&6; } 15824 cacheid=xorg_cv_cc_flag__Werror_main 15825 if eval test \${$cacheid+y} 15826then : 15827 printf %s "(cached) " >&6 15828else $as_nop 15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15830/* end confdefs.h. */ 15831int i; 15832int 15833main (void) 15834{ 15835 15836 ; 15837 return 0; 15838} 15839_ACEOF 15840if ac_fn_c_try_link "$LINENO" 15841then : 15842 eval $cacheid=yes 15843else $as_nop 15844 eval $cacheid=no 15845fi 15846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15847 conftest$ac_exeext conftest.$ac_ext 15848fi 15849 15850 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852 15853 eval supported=\$$cacheid 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15855printf "%s\n" "$supported" >&6; } 15856 if test "$supported" = "yes" ; then 15857 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15858 found="yes" 15859 fi 15860 fi 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876xorg_testset_save_CFLAGS="$CFLAGS" 15877 15878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15883then : 15884 printf %s "(cached) " >&6 15885else $as_nop 15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887/* end confdefs.h. */ 15888int i; 15889_ACEOF 15890if ac_fn_c_try_compile "$LINENO" 15891then : 15892 xorg_cv_cc_flag_unknown_warning_option=yes 15893else $as_nop 15894 xorg_cv_cc_flag_unknown_warning_option=no 15895fi 15896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15897fi 15898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15901 CFLAGS="$xorg_testset_save_CFLAGS" 15902fi 15903 15904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 fi 15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15912then : 15913 printf %s "(cached) " >&6 15914else $as_nop 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917int i; 15918_ACEOF 15919if ac_fn_c_try_compile "$LINENO" 15920then : 15921 xorg_cv_cc_flag_unused_command_line_argument=yes 15922else $as_nop 15923 xorg_cv_cc_flag_unused_command_line_argument=no 15924fi 15925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15926fi 15927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15930 CFLAGS="$xorg_testset_save_CFLAGS" 15931fi 15932 15933found="no" 15934 15935 if test $found = "no" ; then 15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 fi 15939 15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15942 fi 15943 15944 CFLAGS="$CFLAGS -Werror=missing-braces" 15945 15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15947printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15948 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15949 if eval test \${$cacheid+y} 15950then : 15951 printf %s "(cached) " >&6 15952else $as_nop 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955int i; 15956int 15957main (void) 15958{ 15959 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO" 15965then : 15966 eval $cacheid=yes 15967else $as_nop 15968 eval $cacheid=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15971 conftest$ac_exeext conftest.$ac_ext 15972fi 15973 15974 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976 15977 eval supported=\$$cacheid 15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15979printf "%s\n" "$supported" >&6; } 15980 if test "$supported" = "yes" ; then 15981 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15982 found="yes" 15983 fi 15984 fi 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000xorg_testset_save_CFLAGS="$CFLAGS" 16001 16002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16006if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16007then : 16008 printf %s "(cached) " >&6 16009else $as_nop 16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16011/* end confdefs.h. */ 16012int i; 16013_ACEOF 16014if ac_fn_c_try_compile "$LINENO" 16015then : 16016 xorg_cv_cc_flag_unknown_warning_option=yes 16017else $as_nop 16018 xorg_cv_cc_flag_unknown_warning_option=no 16019fi 16020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16021fi 16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16025 CFLAGS="$xorg_testset_save_CFLAGS" 16026fi 16027 16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16031 fi 16032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16035if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16036then : 16037 printf %s "(cached) " >&6 16038else $as_nop 16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16040/* end confdefs.h. */ 16041int i; 16042_ACEOF 16043if ac_fn_c_try_compile "$LINENO" 16044then : 16045 xorg_cv_cc_flag_unused_command_line_argument=yes 16046else $as_nop 16047 xorg_cv_cc_flag_unused_command_line_argument=no 16048fi 16049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16050fi 16051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16054 CFLAGS="$xorg_testset_save_CFLAGS" 16055fi 16056 16057found="no" 16058 16059 if test $found = "no" ; then 16060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16062 fi 16063 16064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16066 fi 16067 16068 CFLAGS="$CFLAGS -Werror=sequence-point" 16069 16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16071printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16072 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16073 if eval test \${$cacheid+y} 16074then : 16075 printf %s "(cached) " >&6 16076else $as_nop 16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16078/* end confdefs.h. */ 16079int i; 16080int 16081main (void) 16082{ 16083 16084 ; 16085 return 0; 16086} 16087_ACEOF 16088if ac_fn_c_try_link "$LINENO" 16089then : 16090 eval $cacheid=yes 16091else $as_nop 16092 eval $cacheid=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16095 conftest$ac_exeext conftest.$ac_ext 16096fi 16097 16098 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100 16101 eval supported=\$$cacheid 16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16103printf "%s\n" "$supported" >&6; } 16104 if test "$supported" = "yes" ; then 16105 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16106 found="yes" 16107 fi 16108 fi 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124xorg_testset_save_CFLAGS="$CFLAGS" 16125 16126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16131then : 16132 printf %s "(cached) " >&6 16133else $as_nop 16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136int i; 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO" 16139then : 16140 xorg_cv_cc_flag_unknown_warning_option=yes 16141else $as_nop 16142 xorg_cv_cc_flag_unknown_warning_option=no 16143fi 16144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16145fi 16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16149 CFLAGS="$xorg_testset_save_CFLAGS" 16150fi 16151 16152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16155 fi 16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16159if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16160then : 16161 printf %s "(cached) " >&6 16162else $as_nop 16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16164/* end confdefs.h. */ 16165int i; 16166_ACEOF 16167if ac_fn_c_try_compile "$LINENO" 16168then : 16169 xorg_cv_cc_flag_unused_command_line_argument=yes 16170else $as_nop 16171 xorg_cv_cc_flag_unused_command_line_argument=no 16172fi 16173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16174fi 16175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16178 CFLAGS="$xorg_testset_save_CFLAGS" 16179fi 16180 16181found="no" 16182 16183 if test $found = "no" ; then 16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 fi 16187 16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 fi 16191 16192 CFLAGS="$CFLAGS -Werror=return-type" 16193 16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16195printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16196 cacheid=xorg_cv_cc_flag__Werror_return_type 16197 if eval test \${$cacheid+y} 16198then : 16199 printf %s "(cached) " >&6 16200else $as_nop 16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16202/* end confdefs.h. */ 16203int i; 16204int 16205main (void) 16206{ 16207 16208 ; 16209 return 0; 16210} 16211_ACEOF 16212if ac_fn_c_try_link "$LINENO" 16213then : 16214 eval $cacheid=yes 16215else $as_nop 16216 eval $cacheid=no 16217fi 16218rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16219 conftest$ac_exeext conftest.$ac_ext 16220fi 16221 16222 16223 CFLAGS="$xorg_testset_save_CFLAGS" 16224 16225 eval supported=\$$cacheid 16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16227printf "%s\n" "$supported" >&6; } 16228 if test "$supported" = "yes" ; then 16229 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16230 found="yes" 16231 fi 16232 fi 16233 16234 if test $found = "no" ; then 16235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16237 fi 16238 16239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16241 fi 16242 16243 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16244 16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16246printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16247 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16248 if eval test \${$cacheid+y} 16249then : 16250 printf %s "(cached) " >&6 16251else $as_nop 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253/* end confdefs.h. */ 16254int i; 16255int 16256main (void) 16257{ 16258 16259 ; 16260 return 0; 16261} 16262_ACEOF 16263if ac_fn_c_try_link "$LINENO" 16264then : 16265 eval $cacheid=yes 16266else $as_nop 16267 eval $cacheid=no 16268fi 16269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16270 conftest$ac_exeext conftest.$ac_ext 16271fi 16272 16273 16274 CFLAGS="$xorg_testset_save_CFLAGS" 16275 16276 eval supported=\$$cacheid 16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16278printf "%s\n" "$supported" >&6; } 16279 if test "$supported" = "yes" ; then 16280 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16281 found="yes" 16282 fi 16283 fi 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299xorg_testset_save_CFLAGS="$CFLAGS" 16300 16301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16305if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16306then : 16307 printf %s "(cached) " >&6 16308else $as_nop 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312_ACEOF 16313if ac_fn_c_try_compile "$LINENO" 16314then : 16315 xorg_cv_cc_flag_unknown_warning_option=yes 16316else $as_nop 16317 xorg_cv_cc_flag_unknown_warning_option=no 16318fi 16319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16320fi 16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325fi 16326 16327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16330 fi 16331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16334if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16335then : 16336 printf %s "(cached) " >&6 16337else $as_nop 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340int i; 16341_ACEOF 16342if ac_fn_c_try_compile "$LINENO" 16343then : 16344 xorg_cv_cc_flag_unused_command_line_argument=yes 16345else $as_nop 16346 xorg_cv_cc_flag_unused_command_line_argument=no 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16349fi 16350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16353 CFLAGS="$xorg_testset_save_CFLAGS" 16354fi 16355 16356found="no" 16357 16358 if test $found = "no" ; then 16359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16361 fi 16362 16363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16365 fi 16366 16367 CFLAGS="$CFLAGS -Werror=trigraphs" 16368 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16370printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16371 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16372 if eval test \${$cacheid+y} 16373then : 16374 printf %s "(cached) " >&6 16375else $as_nop 16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16377/* end confdefs.h. */ 16378int i; 16379int 16380main (void) 16381{ 16382 16383 ; 16384 return 0; 16385} 16386_ACEOF 16387if ac_fn_c_try_link "$LINENO" 16388then : 16389 eval $cacheid=yes 16390else $as_nop 16391 eval $cacheid=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16394 conftest$ac_exeext conftest.$ac_ext 16395fi 16396 16397 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399 16400 eval supported=\$$cacheid 16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16402printf "%s\n" "$supported" >&6; } 16403 if test "$supported" = "yes" ; then 16404 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16405 found="yes" 16406 fi 16407 fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423xorg_testset_save_CFLAGS="$CFLAGS" 16424 16425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16430then : 16431 printf %s "(cached) " >&6 16432else $as_nop 16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435int i; 16436_ACEOF 16437if ac_fn_c_try_compile "$LINENO" 16438then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440else $as_nop 16441 xorg_cv_cc_flag_unknown_warning_option=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16444fi 16445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16446printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16458if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16459then : 16460 printf %s "(cached) " >&6 16461else $as_nop 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464int i; 16465_ACEOF 16466if ac_fn_c_try_compile "$LINENO" 16467then : 16468 xorg_cv_cc_flag_unused_command_line_argument=yes 16469else $as_nop 16470 xorg_cv_cc_flag_unused_command_line_argument=no 16471fi 16472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16473fi 16474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16477 CFLAGS="$xorg_testset_save_CFLAGS" 16478fi 16479 16480found="no" 16481 16482 if test $found = "no" ; then 16483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16485 fi 16486 16487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16489 fi 16490 16491 CFLAGS="$CFLAGS -Werror=array-bounds" 16492 16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16494printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16495 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16496 if eval test \${$cacheid+y} 16497then : 16498 printf %s "(cached) " >&6 16499else $as_nop 16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501/* end confdefs.h. */ 16502int i; 16503int 16504main (void) 16505{ 16506 16507 ; 16508 return 0; 16509} 16510_ACEOF 16511if ac_fn_c_try_link "$LINENO" 16512then : 16513 eval $cacheid=yes 16514else $as_nop 16515 eval $cacheid=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16518 conftest$ac_exeext conftest.$ac_ext 16519fi 16520 16521 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523 16524 eval supported=\$$cacheid 16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16526printf "%s\n" "$supported" >&6; } 16527 if test "$supported" = "yes" ; then 16528 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16529 found="yes" 16530 fi 16531 fi 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547xorg_testset_save_CFLAGS="$CFLAGS" 16548 16549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16553if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16554then : 16555 printf %s "(cached) " >&6 16556else $as_nop 16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16558/* end confdefs.h. */ 16559int i; 16560_ACEOF 16561if ac_fn_c_try_compile "$LINENO" 16562then : 16563 xorg_cv_cc_flag_unknown_warning_option=yes 16564else $as_nop 16565 xorg_cv_cc_flag_unknown_warning_option=no 16566fi 16567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16568fi 16569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573fi 16574 16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16578 fi 16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16583then : 16584 printf %s "(cached) " >&6 16585else $as_nop 16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587/* end confdefs.h. */ 16588int i; 16589_ACEOF 16590if ac_fn_c_try_compile "$LINENO" 16591then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593else $as_nop 16594 xorg_cv_cc_flag_unused_command_line_argument=no 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16597fi 16598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16601 CFLAGS="$xorg_testset_save_CFLAGS" 16602fi 16603 16604found="no" 16605 16606 if test $found = "no" ; then 16607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16609 fi 16610 16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16613 fi 16614 16615 CFLAGS="$CFLAGS -Werror=write-strings" 16616 16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16618printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16619 cacheid=xorg_cv_cc_flag__Werror_write_strings 16620 if eval test \${$cacheid+y} 16621then : 16622 printf %s "(cached) " >&6 16623else $as_nop 16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16625/* end confdefs.h. */ 16626int i; 16627int 16628main (void) 16629{ 16630 16631 ; 16632 return 0; 16633} 16634_ACEOF 16635if ac_fn_c_try_link "$LINENO" 16636then : 16637 eval $cacheid=yes 16638else $as_nop 16639 eval $cacheid=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16642 conftest$ac_exeext conftest.$ac_ext 16643fi 16644 16645 16646 CFLAGS="$xorg_testset_save_CFLAGS" 16647 16648 eval supported=\$$cacheid 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16650printf "%s\n" "$supported" >&6; } 16651 if test "$supported" = "yes" ; then 16652 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16653 found="yes" 16654 fi 16655 fi 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671xorg_testset_save_CFLAGS="$CFLAGS" 16672 16673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16677if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16678then : 16679 printf %s "(cached) " >&6 16680else $as_nop 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683int i; 16684_ACEOF 16685if ac_fn_c_try_compile "$LINENO" 16686then : 16687 xorg_cv_cc_flag_unknown_warning_option=yes 16688else $as_nop 16689 xorg_cv_cc_flag_unknown_warning_option=no 16690fi 16691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16692fi 16693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16696 CFLAGS="$xorg_testset_save_CFLAGS" 16697fi 16698 16699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16702 fi 16703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16707then : 16708 printf %s "(cached) " >&6 16709else $as_nop 16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712int i; 16713_ACEOF 16714if ac_fn_c_try_compile "$LINENO" 16715then : 16716 xorg_cv_cc_flag_unused_command_line_argument=yes 16717else $as_nop 16718 xorg_cv_cc_flag_unused_command_line_argument=no 16719fi 16720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16721fi 16722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16725 CFLAGS="$xorg_testset_save_CFLAGS" 16726fi 16727 16728found="no" 16729 16730 if test $found = "no" ; then 16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 fi 16734 16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16737 fi 16738 16739 CFLAGS="$CFLAGS -Werror=address" 16740 16741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16742printf %s "checking if $CC supports -Werror=address... " >&6; } 16743 cacheid=xorg_cv_cc_flag__Werror_address 16744 if eval test \${$cacheid+y} 16745then : 16746 printf %s "(cached) " >&6 16747else $as_nop 16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750int i; 16751int 16752main (void) 16753{ 16754 16755 ; 16756 return 0; 16757} 16758_ACEOF 16759if ac_fn_c_try_link "$LINENO" 16760then : 16761 eval $cacheid=yes 16762else $as_nop 16763 eval $cacheid=no 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16766 conftest$ac_exeext conftest.$ac_ext 16767fi 16768 16769 16770 CFLAGS="$xorg_testset_save_CFLAGS" 16771 16772 eval supported=\$$cacheid 16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16774printf "%s\n" "$supported" >&6; } 16775 if test "$supported" = "yes" ; then 16776 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16777 found="yes" 16778 fi 16779 fi 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795xorg_testset_save_CFLAGS="$CFLAGS" 16796 16797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16802then : 16803 printf %s "(cached) " >&6 16804else $as_nop 16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16806/* end confdefs.h. */ 16807int i; 16808_ACEOF 16809if ac_fn_c_try_compile "$LINENO" 16810then : 16811 xorg_cv_cc_flag_unknown_warning_option=yes 16812else $as_nop 16813 xorg_cv_cc_flag_unknown_warning_option=no 16814fi 16815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16816fi 16817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16820 CFLAGS="$xorg_testset_save_CFLAGS" 16821fi 16822 16823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16826 fi 16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16831then : 16832 printf %s "(cached) " >&6 16833else $as_nop 16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16835/* end confdefs.h. */ 16836int i; 16837_ACEOF 16838if ac_fn_c_try_compile "$LINENO" 16839then : 16840 xorg_cv_cc_flag_unused_command_line_argument=yes 16841else $as_nop 16842 xorg_cv_cc_flag_unused_command_line_argument=no 16843fi 16844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16845fi 16846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16849 CFLAGS="$xorg_testset_save_CFLAGS" 16850fi 16851 16852found="no" 16853 16854 if test $found = "no" ; then 16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16857 fi 16858 16859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16861 fi 16862 16863 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16864 16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16866printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16867 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16868 if eval test \${$cacheid+y} 16869then : 16870 printf %s "(cached) " >&6 16871else $as_nop 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874int i; 16875int 16876main (void) 16877{ 16878 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883if ac_fn_c_try_link "$LINENO" 16884then : 16885 eval $cacheid=yes 16886else $as_nop 16887 eval $cacheid=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16890 conftest$ac_exeext conftest.$ac_ext 16891fi 16892 16893 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895 16896 eval supported=\$$cacheid 16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16898printf "%s\n" "$supported" >&6; } 16899 if test "$supported" = "yes" ; then 16900 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16901 found="yes" 16902 fi 16903 fi 16904 16905 if test $found = "no" ; then 16906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16908 fi 16909 16910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16912 fi 16913 16914 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16915 16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16917printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16918 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16919 if eval test \${$cacheid+y} 16920then : 16921 printf %s "(cached) " >&6 16922else $as_nop 16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16924/* end confdefs.h. */ 16925int i; 16926int 16927main (void) 16928{ 16929 16930 ; 16931 return 0; 16932} 16933_ACEOF 16934if ac_fn_c_try_link "$LINENO" 16935then : 16936 eval $cacheid=yes 16937else $as_nop 16938 eval $cacheid=no 16939fi 16940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16941 conftest$ac_exeext conftest.$ac_ext 16942fi 16943 16944 16945 CFLAGS="$xorg_testset_save_CFLAGS" 16946 16947 eval supported=\$$cacheid 16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16949printf "%s\n" "$supported" >&6; } 16950 if test "$supported" = "yes" ; then 16951 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16952 found="yes" 16953 fi 16954 fi 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970xorg_testset_save_CFLAGS="$CFLAGS" 16971 16972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16977then : 16978 printf %s "(cached) " >&6 16979else $as_nop 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982int i; 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO" 16985then : 16986 xorg_cv_cc_flag_unknown_warning_option=yes 16987else $as_nop 16988 xorg_cv_cc_flag_unknown_warning_option=no 16989fi 16990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16991fi 16992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16995 CFLAGS="$xorg_testset_save_CFLAGS" 16996fi 16997 16998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17006then : 17007 printf %s "(cached) " >&6 17008else $as_nop 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012_ACEOF 17013if ac_fn_c_try_compile "$LINENO" 17014then : 17015 xorg_cv_cc_flag_unused_command_line_argument=yes 17016else $as_nop 17017 xorg_cv_cc_flag_unused_command_line_argument=no 17018fi 17019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17020fi 17021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17024 CFLAGS="$xorg_testset_save_CFLAGS" 17025fi 17026 17027found="no" 17028 17029 if test $found = "no" ; then 17030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17032 fi 17033 17034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17036 fi 17037 17038 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17039 17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17041printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17042 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17043 if eval test \${$cacheid+y} 17044then : 17045 printf %s "(cached) " >&6 17046else $as_nop 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049int i; 17050int 17051main (void) 17052{ 17053 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058if ac_fn_c_try_link "$LINENO" 17059then : 17060 eval $cacheid=yes 17061else $as_nop 17062 eval $cacheid=no 17063fi 17064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17065 conftest$ac_exeext conftest.$ac_ext 17066fi 17067 17068 17069 CFLAGS="$xorg_testset_save_CFLAGS" 17070 17071 eval supported=\$$cacheid 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17073printf "%s\n" "$supported" >&6; } 17074 if test "$supported" = "yes" ; then 17075 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17076 found="yes" 17077 fi 17078 fi 17079 17080 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17081else 17082{ printf "%s\n" "$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 17083printf "%s\n" "$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;} 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097xorg_testset_save_CFLAGS="$CFLAGS" 17098 17099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17103if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17104then : 17105 printf %s "(cached) " >&6 17106else $as_nop 17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17108/* end confdefs.h. */ 17109int i; 17110_ACEOF 17111if ac_fn_c_try_compile "$LINENO" 17112then : 17113 xorg_cv_cc_flag_unknown_warning_option=yes 17114else $as_nop 17115 xorg_cv_cc_flag_unknown_warning_option=no 17116fi 17117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17118fi 17119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17122 CFLAGS="$xorg_testset_save_CFLAGS" 17123fi 17124 17125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17128 fi 17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17132if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17133then : 17134 printf %s "(cached) " >&6 17135else $as_nop 17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137/* end confdefs.h. */ 17138int i; 17139_ACEOF 17140if ac_fn_c_try_compile "$LINENO" 17141then : 17142 xorg_cv_cc_flag_unused_command_line_argument=yes 17143else $as_nop 17144 xorg_cv_cc_flag_unused_command_line_argument=no 17145fi 17146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17147fi 17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17151 CFLAGS="$xorg_testset_save_CFLAGS" 17152fi 17153 17154found="no" 17155 17156 if test $found = "no" ; then 17157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17159 fi 17160 17161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17163 fi 17164 17165 CFLAGS="$CFLAGS -Wimplicit" 17166 17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17168printf %s "checking if $CC supports -Wimplicit... " >&6; } 17169 cacheid=xorg_cv_cc_flag__Wimplicit 17170 if eval test \${$cacheid+y} 17171then : 17172 printf %s "(cached) " >&6 17173else $as_nop 17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17175/* end confdefs.h. */ 17176int i; 17177int 17178main (void) 17179{ 17180 17181 ; 17182 return 0; 17183} 17184_ACEOF 17185if ac_fn_c_try_link "$LINENO" 17186then : 17187 eval $cacheid=yes 17188else $as_nop 17189 eval $cacheid=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194 17195 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197 17198 eval supported=\$$cacheid 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17200printf "%s\n" "$supported" >&6; } 17201 if test "$supported" = "yes" ; then 17202 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17203 found="yes" 17204 fi 17205 fi 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221xorg_testset_save_CFLAGS="$CFLAGS" 17222 17223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17227if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17228then : 17229 printf %s "(cached) " >&6 17230else $as_nop 17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233int i; 17234_ACEOF 17235if ac_fn_c_try_compile "$LINENO" 17236then : 17237 xorg_cv_cc_flag_unknown_warning_option=yes 17238else $as_nop 17239 xorg_cv_cc_flag_unknown_warning_option=no 17240fi 17241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17242fi 17243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17246 CFLAGS="$xorg_testset_save_CFLAGS" 17247fi 17248 17249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17252 fi 17253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17257then : 17258 printf %s "(cached) " >&6 17259else $as_nop 17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17261/* end confdefs.h. */ 17262int i; 17263_ACEOF 17264if ac_fn_c_try_compile "$LINENO" 17265then : 17266 xorg_cv_cc_flag_unused_command_line_argument=yes 17267else $as_nop 17268 xorg_cv_cc_flag_unused_command_line_argument=no 17269fi 17270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17271fi 17272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17275 CFLAGS="$xorg_testset_save_CFLAGS" 17276fi 17277 17278found="no" 17279 17280 if test $found = "no" ; then 17281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17283 fi 17284 17285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17287 fi 17288 17289 CFLAGS="$CFLAGS -Wnonnull" 17290 17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17292printf %s "checking if $CC supports -Wnonnull... " >&6; } 17293 cacheid=xorg_cv_cc_flag__Wnonnull 17294 if eval test \${$cacheid+y} 17295then : 17296 printf %s "(cached) " >&6 17297else $as_nop 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300int i; 17301int 17302main (void) 17303{ 17304 17305 ; 17306 return 0; 17307} 17308_ACEOF 17309if ac_fn_c_try_link "$LINENO" 17310then : 17311 eval $cacheid=yes 17312else $as_nop 17313 eval $cacheid=no 17314fi 17315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17316 conftest$ac_exeext conftest.$ac_ext 17317fi 17318 17319 17320 CFLAGS="$xorg_testset_save_CFLAGS" 17321 17322 eval supported=\$$cacheid 17323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17324printf "%s\n" "$supported" >&6; } 17325 if test "$supported" = "yes" ; then 17326 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17327 found="yes" 17328 fi 17329 fi 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345xorg_testset_save_CFLAGS="$CFLAGS" 17346 17347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17351if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17352then : 17353 printf %s "(cached) " >&6 17354else $as_nop 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358_ACEOF 17359if ac_fn_c_try_compile "$LINENO" 17360then : 17361 xorg_cv_cc_flag_unknown_warning_option=yes 17362else $as_nop 17363 xorg_cv_cc_flag_unknown_warning_option=no 17364fi 17365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17366fi 17367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17370 CFLAGS="$xorg_testset_save_CFLAGS" 17371fi 17372 17373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17376 fi 17377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17380if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17381then : 17382 printf %s "(cached) " >&6 17383else $as_nop 17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17385/* end confdefs.h. */ 17386int i; 17387_ACEOF 17388if ac_fn_c_try_compile "$LINENO" 17389then : 17390 xorg_cv_cc_flag_unused_command_line_argument=yes 17391else $as_nop 17392 xorg_cv_cc_flag_unused_command_line_argument=no 17393fi 17394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17395fi 17396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17399 CFLAGS="$xorg_testset_save_CFLAGS" 17400fi 17401 17402found="no" 17403 17404 if test $found = "no" ; then 17405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17407 fi 17408 17409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17411 fi 17412 17413 CFLAGS="$CFLAGS -Winit-self" 17414 17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17416printf %s "checking if $CC supports -Winit-self... " >&6; } 17417 cacheid=xorg_cv_cc_flag__Winit_self 17418 if eval test \${$cacheid+y} 17419then : 17420 printf %s "(cached) " >&6 17421else $as_nop 17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424int i; 17425int 17426main (void) 17427{ 17428 17429 ; 17430 return 0; 17431} 17432_ACEOF 17433if ac_fn_c_try_link "$LINENO" 17434then : 17435 eval $cacheid=yes 17436else $as_nop 17437 eval $cacheid=no 17438fi 17439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17440 conftest$ac_exeext conftest.$ac_ext 17441fi 17442 17443 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445 17446 eval supported=\$$cacheid 17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17448printf "%s\n" "$supported" >&6; } 17449 if test "$supported" = "yes" ; then 17450 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17451 found="yes" 17452 fi 17453 fi 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469xorg_testset_save_CFLAGS="$CFLAGS" 17470 17471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17476then : 17477 printf %s "(cached) " >&6 17478else $as_nop 17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17480/* end confdefs.h. */ 17481int i; 17482_ACEOF 17483if ac_fn_c_try_compile "$LINENO" 17484then : 17485 xorg_cv_cc_flag_unknown_warning_option=yes 17486else $as_nop 17487 xorg_cv_cc_flag_unknown_warning_option=no 17488fi 17489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17490fi 17491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17494 CFLAGS="$xorg_testset_save_CFLAGS" 17495fi 17496 17497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17500 fi 17501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17505then : 17506 printf %s "(cached) " >&6 17507else $as_nop 17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17509/* end confdefs.h. */ 17510int i; 17511_ACEOF 17512if ac_fn_c_try_compile "$LINENO" 17513then : 17514 xorg_cv_cc_flag_unused_command_line_argument=yes 17515else $as_nop 17516 xorg_cv_cc_flag_unused_command_line_argument=no 17517fi 17518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17519fi 17520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17523 CFLAGS="$xorg_testset_save_CFLAGS" 17524fi 17525 17526found="no" 17527 17528 if test $found = "no" ; then 17529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17531 fi 17532 17533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17535 fi 17536 17537 CFLAGS="$CFLAGS -Wmain" 17538 17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17540printf %s "checking if $CC supports -Wmain... " >&6; } 17541 cacheid=xorg_cv_cc_flag__Wmain 17542 if eval test \${$cacheid+y} 17543then : 17544 printf %s "(cached) " >&6 17545else $as_nop 17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17547/* end confdefs.h. */ 17548int i; 17549int 17550main (void) 17551{ 17552 17553 ; 17554 return 0; 17555} 17556_ACEOF 17557if ac_fn_c_try_link "$LINENO" 17558then : 17559 eval $cacheid=yes 17560else $as_nop 17561 eval $cacheid=no 17562fi 17563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17564 conftest$ac_exeext conftest.$ac_ext 17565fi 17566 17567 17568 CFLAGS="$xorg_testset_save_CFLAGS" 17569 17570 eval supported=\$$cacheid 17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17572printf "%s\n" "$supported" >&6; } 17573 if test "$supported" = "yes" ; then 17574 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17575 found="yes" 17576 fi 17577 fi 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593xorg_testset_save_CFLAGS="$CFLAGS" 17594 17595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17599if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17600then : 17601 printf %s "(cached) " >&6 17602else $as_nop 17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17604/* end confdefs.h. */ 17605int i; 17606_ACEOF 17607if ac_fn_c_try_compile "$LINENO" 17608then : 17609 xorg_cv_cc_flag_unknown_warning_option=yes 17610else $as_nop 17611 xorg_cv_cc_flag_unknown_warning_option=no 17612fi 17613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17614fi 17615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17618 CFLAGS="$xorg_testset_save_CFLAGS" 17619fi 17620 17621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17624 fi 17625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17629then : 17630 printf %s "(cached) " >&6 17631else $as_nop 17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17633/* end confdefs.h. */ 17634int i; 17635_ACEOF 17636if ac_fn_c_try_compile "$LINENO" 17637then : 17638 xorg_cv_cc_flag_unused_command_line_argument=yes 17639else $as_nop 17640 xorg_cv_cc_flag_unused_command_line_argument=no 17641fi 17642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17643fi 17644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17647 CFLAGS="$xorg_testset_save_CFLAGS" 17648fi 17649 17650found="no" 17651 17652 if test $found = "no" ; then 17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17655 fi 17656 17657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17659 fi 17660 17661 CFLAGS="$CFLAGS -Wmissing-braces" 17662 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17664printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17665 cacheid=xorg_cv_cc_flag__Wmissing_braces 17666 if eval test \${$cacheid+y} 17667then : 17668 printf %s "(cached) " >&6 17669else $as_nop 17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672int i; 17673int 17674main (void) 17675{ 17676 17677 ; 17678 return 0; 17679} 17680_ACEOF 17681if ac_fn_c_try_link "$LINENO" 17682then : 17683 eval $cacheid=yes 17684else $as_nop 17685 eval $cacheid=no 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17688 conftest$ac_exeext conftest.$ac_ext 17689fi 17690 17691 17692 CFLAGS="$xorg_testset_save_CFLAGS" 17693 17694 eval supported=\$$cacheid 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17696printf "%s\n" "$supported" >&6; } 17697 if test "$supported" = "yes" ; then 17698 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17699 found="yes" 17700 fi 17701 fi 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717xorg_testset_save_CFLAGS="$CFLAGS" 17718 17719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17724then : 17725 printf %s "(cached) " >&6 17726else $as_nop 17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728/* end confdefs.h. */ 17729int i; 17730_ACEOF 17731if ac_fn_c_try_compile "$LINENO" 17732then : 17733 xorg_cv_cc_flag_unknown_warning_option=yes 17734else $as_nop 17735 xorg_cv_cc_flag_unknown_warning_option=no 17736fi 17737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17738fi 17739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17742 CFLAGS="$xorg_testset_save_CFLAGS" 17743fi 17744 17745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17748 fi 17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17753then : 17754 printf %s "(cached) " >&6 17755else $as_nop 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758int i; 17759_ACEOF 17760if ac_fn_c_try_compile "$LINENO" 17761then : 17762 xorg_cv_cc_flag_unused_command_line_argument=yes 17763else $as_nop 17764 xorg_cv_cc_flag_unused_command_line_argument=no 17765fi 17766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17767fi 17768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17771 CFLAGS="$xorg_testset_save_CFLAGS" 17772fi 17773 17774found="no" 17775 17776 if test $found = "no" ; then 17777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17779 fi 17780 17781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17783 fi 17784 17785 CFLAGS="$CFLAGS -Wsequence-point" 17786 17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17788printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17789 cacheid=xorg_cv_cc_flag__Wsequence_point 17790 if eval test \${$cacheid+y} 17791then : 17792 printf %s "(cached) " >&6 17793else $as_nop 17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796int i; 17797int 17798main (void) 17799{ 17800 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805if ac_fn_c_try_link "$LINENO" 17806then : 17807 eval $cacheid=yes 17808else $as_nop 17809 eval $cacheid=no 17810fi 17811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17812 conftest$ac_exeext conftest.$ac_ext 17813fi 17814 17815 17816 CFLAGS="$xorg_testset_save_CFLAGS" 17817 17818 eval supported=\$$cacheid 17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17820printf "%s\n" "$supported" >&6; } 17821 if test "$supported" = "yes" ; then 17822 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17823 found="yes" 17824 fi 17825 fi 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841xorg_testset_save_CFLAGS="$CFLAGS" 17842 17843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17848then : 17849 printf %s "(cached) " >&6 17850else $as_nop 17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17852/* end confdefs.h. */ 17853int i; 17854_ACEOF 17855if ac_fn_c_try_compile "$LINENO" 17856then : 17857 xorg_cv_cc_flag_unknown_warning_option=yes 17858else $as_nop 17859 xorg_cv_cc_flag_unknown_warning_option=no 17860fi 17861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17862fi 17863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17866 CFLAGS="$xorg_testset_save_CFLAGS" 17867fi 17868 17869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17872 fi 17873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17877then : 17878 printf %s "(cached) " >&6 17879else $as_nop 17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17881/* end confdefs.h. */ 17882int i; 17883_ACEOF 17884if ac_fn_c_try_compile "$LINENO" 17885then : 17886 xorg_cv_cc_flag_unused_command_line_argument=yes 17887else $as_nop 17888 xorg_cv_cc_flag_unused_command_line_argument=no 17889fi 17890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17891fi 17892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17895 CFLAGS="$xorg_testset_save_CFLAGS" 17896fi 17897 17898found="no" 17899 17900 if test $found = "no" ; then 17901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17903 fi 17904 17905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17907 fi 17908 17909 CFLAGS="$CFLAGS -Wreturn-type" 17910 17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17912printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17913 cacheid=xorg_cv_cc_flag__Wreturn_type 17914 if eval test \${$cacheid+y} 17915then : 17916 printf %s "(cached) " >&6 17917else $as_nop 17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17919/* end confdefs.h. */ 17920int i; 17921int 17922main (void) 17923{ 17924 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929if ac_fn_c_try_link "$LINENO" 17930then : 17931 eval $cacheid=yes 17932else $as_nop 17933 eval $cacheid=no 17934fi 17935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17936 conftest$ac_exeext conftest.$ac_ext 17937fi 17938 17939 17940 CFLAGS="$xorg_testset_save_CFLAGS" 17941 17942 eval supported=\$$cacheid 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17944printf "%s\n" "$supported" >&6; } 17945 if test "$supported" = "yes" ; then 17946 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17947 found="yes" 17948 fi 17949 fi 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965xorg_testset_save_CFLAGS="$CFLAGS" 17966 17967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17972then : 17973 printf %s "(cached) " >&6 17974else $as_nop 17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17976/* end confdefs.h. */ 17977int i; 17978_ACEOF 17979if ac_fn_c_try_compile "$LINENO" 17980then : 17981 xorg_cv_cc_flag_unknown_warning_option=yes 17982else $as_nop 17983 xorg_cv_cc_flag_unknown_warning_option=no 17984fi 17985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17986fi 17987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17990 CFLAGS="$xorg_testset_save_CFLAGS" 17991fi 17992 17993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17996 fi 17997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18001then : 18002 printf %s "(cached) " >&6 18003else $as_nop 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006int i; 18007_ACEOF 18008if ac_fn_c_try_compile "$LINENO" 18009then : 18010 xorg_cv_cc_flag_unused_command_line_argument=yes 18011else $as_nop 18012 xorg_cv_cc_flag_unused_command_line_argument=no 18013fi 18014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18015fi 18016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18019 CFLAGS="$xorg_testset_save_CFLAGS" 18020fi 18021 18022found="no" 18023 18024 if test $found = "no" ; then 18025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18027 fi 18028 18029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18031 fi 18032 18033 CFLAGS="$CFLAGS -Wtrigraphs" 18034 18035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18036printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18037 cacheid=xorg_cv_cc_flag__Wtrigraphs 18038 if eval test \${$cacheid+y} 18039then : 18040 printf %s "(cached) " >&6 18041else $as_nop 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044int i; 18045int 18046main (void) 18047{ 18048 18049 ; 18050 return 0; 18051} 18052_ACEOF 18053if ac_fn_c_try_link "$LINENO" 18054then : 18055 eval $cacheid=yes 18056else $as_nop 18057 eval $cacheid=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18060 conftest$ac_exeext conftest.$ac_ext 18061fi 18062 18063 18064 CFLAGS="$xorg_testset_save_CFLAGS" 18065 18066 eval supported=\$$cacheid 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18068printf "%s\n" "$supported" >&6; } 18069 if test "$supported" = "yes" ; then 18070 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18071 found="yes" 18072 fi 18073 fi 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089xorg_testset_save_CFLAGS="$CFLAGS" 18090 18091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18096then : 18097 printf %s "(cached) " >&6 18098else $as_nop 18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100/* end confdefs.h. */ 18101int i; 18102_ACEOF 18103if ac_fn_c_try_compile "$LINENO" 18104then : 18105 xorg_cv_cc_flag_unknown_warning_option=yes 18106else $as_nop 18107 xorg_cv_cc_flag_unknown_warning_option=no 18108fi 18109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18110fi 18111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18114 CFLAGS="$xorg_testset_save_CFLAGS" 18115fi 18116 18117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18120 fi 18121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18125then : 18126 printf %s "(cached) " >&6 18127else $as_nop 18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18129/* end confdefs.h. */ 18130int i; 18131_ACEOF 18132if ac_fn_c_try_compile "$LINENO" 18133then : 18134 xorg_cv_cc_flag_unused_command_line_argument=yes 18135else $as_nop 18136 xorg_cv_cc_flag_unused_command_line_argument=no 18137fi 18138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18139fi 18140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18143 CFLAGS="$xorg_testset_save_CFLAGS" 18144fi 18145 18146found="no" 18147 18148 if test $found = "no" ; then 18149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18151 fi 18152 18153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18155 fi 18156 18157 CFLAGS="$CFLAGS -Warray-bounds" 18158 18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18160printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18161 cacheid=xorg_cv_cc_flag__Warray_bounds 18162 if eval test \${$cacheid+y} 18163then : 18164 printf %s "(cached) " >&6 18165else $as_nop 18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168int i; 18169int 18170main (void) 18171{ 18172 18173 ; 18174 return 0; 18175} 18176_ACEOF 18177if ac_fn_c_try_link "$LINENO" 18178then : 18179 eval $cacheid=yes 18180else $as_nop 18181 eval $cacheid=no 18182fi 18183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18184 conftest$ac_exeext conftest.$ac_ext 18185fi 18186 18187 18188 CFLAGS="$xorg_testset_save_CFLAGS" 18189 18190 eval supported=\$$cacheid 18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18192printf "%s\n" "$supported" >&6; } 18193 if test "$supported" = "yes" ; then 18194 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18195 found="yes" 18196 fi 18197 fi 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213xorg_testset_save_CFLAGS="$CFLAGS" 18214 18215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18219if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18220then : 18221 printf %s "(cached) " >&6 18222else $as_nop 18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18224/* end confdefs.h. */ 18225int i; 18226_ACEOF 18227if ac_fn_c_try_compile "$LINENO" 18228then : 18229 xorg_cv_cc_flag_unknown_warning_option=yes 18230else $as_nop 18231 xorg_cv_cc_flag_unknown_warning_option=no 18232fi 18233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18234fi 18235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18238 CFLAGS="$xorg_testset_save_CFLAGS" 18239fi 18240 18241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18244 fi 18245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18249then : 18250 printf %s "(cached) " >&6 18251else $as_nop 18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18253/* end confdefs.h. */ 18254int i; 18255_ACEOF 18256if ac_fn_c_try_compile "$LINENO" 18257then : 18258 xorg_cv_cc_flag_unused_command_line_argument=yes 18259else $as_nop 18260 xorg_cv_cc_flag_unused_command_line_argument=no 18261fi 18262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18263fi 18264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18267 CFLAGS="$xorg_testset_save_CFLAGS" 18268fi 18269 18270found="no" 18271 18272 if test $found = "no" ; then 18273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18275 fi 18276 18277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18279 fi 18280 18281 CFLAGS="$CFLAGS -Wwrite-strings" 18282 18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18284printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18285 cacheid=xorg_cv_cc_flag__Wwrite_strings 18286 if eval test \${$cacheid+y} 18287then : 18288 printf %s "(cached) " >&6 18289else $as_nop 18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18291/* end confdefs.h. */ 18292int i; 18293int 18294main (void) 18295{ 18296 18297 ; 18298 return 0; 18299} 18300_ACEOF 18301if ac_fn_c_try_link "$LINENO" 18302then : 18303 eval $cacheid=yes 18304else $as_nop 18305 eval $cacheid=no 18306fi 18307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18308 conftest$ac_exeext conftest.$ac_ext 18309fi 18310 18311 18312 CFLAGS="$xorg_testset_save_CFLAGS" 18313 18314 eval supported=\$$cacheid 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18316printf "%s\n" "$supported" >&6; } 18317 if test "$supported" = "yes" ; then 18318 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18319 found="yes" 18320 fi 18321 fi 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337xorg_testset_save_CFLAGS="$CFLAGS" 18338 18339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18343if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18344then : 18345 printf %s "(cached) " >&6 18346else $as_nop 18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18348/* end confdefs.h. */ 18349int i; 18350_ACEOF 18351if ac_fn_c_try_compile "$LINENO" 18352then : 18353 xorg_cv_cc_flag_unknown_warning_option=yes 18354else $as_nop 18355 xorg_cv_cc_flag_unknown_warning_option=no 18356fi 18357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18358fi 18359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18362 CFLAGS="$xorg_testset_save_CFLAGS" 18363fi 18364 18365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18368 fi 18369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18372if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18373then : 18374 printf %s "(cached) " >&6 18375else $as_nop 18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18377/* end confdefs.h. */ 18378int i; 18379_ACEOF 18380if ac_fn_c_try_compile "$LINENO" 18381then : 18382 xorg_cv_cc_flag_unused_command_line_argument=yes 18383else $as_nop 18384 xorg_cv_cc_flag_unused_command_line_argument=no 18385fi 18386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18387fi 18388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18391 CFLAGS="$xorg_testset_save_CFLAGS" 18392fi 18393 18394found="no" 18395 18396 if test $found = "no" ; then 18397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18399 fi 18400 18401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18403 fi 18404 18405 CFLAGS="$CFLAGS -Waddress" 18406 18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18408printf %s "checking if $CC supports -Waddress... " >&6; } 18409 cacheid=xorg_cv_cc_flag__Waddress 18410 if eval test \${$cacheid+y} 18411then : 18412 printf %s "(cached) " >&6 18413else $as_nop 18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18415/* end confdefs.h. */ 18416int i; 18417int 18418main (void) 18419{ 18420 18421 ; 18422 return 0; 18423} 18424_ACEOF 18425if ac_fn_c_try_link "$LINENO" 18426then : 18427 eval $cacheid=yes 18428else $as_nop 18429 eval $cacheid=no 18430fi 18431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18432 conftest$ac_exeext conftest.$ac_ext 18433fi 18434 18435 18436 CFLAGS="$xorg_testset_save_CFLAGS" 18437 18438 eval supported=\$$cacheid 18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18440printf "%s\n" "$supported" >&6; } 18441 if test "$supported" = "yes" ; then 18442 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18443 found="yes" 18444 fi 18445 fi 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461xorg_testset_save_CFLAGS="$CFLAGS" 18462 18463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18467if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18468then : 18469 printf %s "(cached) " >&6 18470else $as_nop 18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18472/* end confdefs.h. */ 18473int i; 18474_ACEOF 18475if ac_fn_c_try_compile "$LINENO" 18476then : 18477 xorg_cv_cc_flag_unknown_warning_option=yes 18478else $as_nop 18479 xorg_cv_cc_flag_unknown_warning_option=no 18480fi 18481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18482fi 18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487fi 18488 18489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18492 fi 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18497then : 18498 printf %s "(cached) " >&6 18499else $as_nop 18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501/* end confdefs.h. */ 18502int i; 18503_ACEOF 18504if ac_fn_c_try_compile "$LINENO" 18505then : 18506 xorg_cv_cc_flag_unused_command_line_argument=yes 18507else $as_nop 18508 xorg_cv_cc_flag_unused_command_line_argument=no 18509fi 18510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18511fi 18512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18515 CFLAGS="$xorg_testset_save_CFLAGS" 18516fi 18517 18518found="no" 18519 18520 if test $found = "no" ; then 18521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18523 fi 18524 18525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18527 fi 18528 18529 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18530 18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18532printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18533 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18534 if eval test \${$cacheid+y} 18535then : 18536 printf %s "(cached) " >&6 18537else $as_nop 18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18539/* end confdefs.h. */ 18540int i; 18541int 18542main (void) 18543{ 18544 18545 ; 18546 return 0; 18547} 18548_ACEOF 18549if ac_fn_c_try_link "$LINENO" 18550then : 18551 eval $cacheid=yes 18552else $as_nop 18553 eval $cacheid=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18556 conftest$ac_exeext conftest.$ac_ext 18557fi 18558 18559 18560 CFLAGS="$xorg_testset_save_CFLAGS" 18561 18562 eval supported=\$$cacheid 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18564printf "%s\n" "$supported" >&6; } 18565 if test "$supported" = "yes" ; then 18566 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18567 found="yes" 18568 fi 18569 fi 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585xorg_testset_save_CFLAGS="$CFLAGS" 18586 18587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18591if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18592then : 18593 printf %s "(cached) " >&6 18594else $as_nop 18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597int i; 18598_ACEOF 18599if ac_fn_c_try_compile "$LINENO" 18600then : 18601 xorg_cv_cc_flag_unknown_warning_option=yes 18602else $as_nop 18603 xorg_cv_cc_flag_unknown_warning_option=no 18604fi 18605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18606fi 18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18610 CFLAGS="$xorg_testset_save_CFLAGS" 18611fi 18612 18613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 fi 18617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18620if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18621then : 18622 printf %s "(cached) " >&6 18623else $as_nop 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625/* end confdefs.h. */ 18626int i; 18627_ACEOF 18628if ac_fn_c_try_compile "$LINENO" 18629then : 18630 xorg_cv_cc_flag_unused_command_line_argument=yes 18631else $as_nop 18632 xorg_cv_cc_flag_unused_command_line_argument=no 18633fi 18634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18635fi 18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640fi 18641 18642found="no" 18643 18644 if test $found = "no" ; then 18645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18647 fi 18648 18649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18651 fi 18652 18653 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18654 18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18656printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18657 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18658 if eval test \${$cacheid+y} 18659then : 18660 printf %s "(cached) " >&6 18661else $as_nop 18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663/* end confdefs.h. */ 18664int i; 18665int 18666main (void) 18667{ 18668 18669 ; 18670 return 0; 18671} 18672_ACEOF 18673if ac_fn_c_try_link "$LINENO" 18674then : 18675 eval $cacheid=yes 18676else $as_nop 18677 eval $cacheid=no 18678fi 18679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18680 conftest$ac_exeext conftest.$ac_ext 18681fi 18682 18683 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685 18686 eval supported=\$$cacheid 18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18688printf "%s\n" "$supported" >&6; } 18689 if test "$supported" = "yes" ; then 18690 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18691 found="yes" 18692 fi 18693 fi 18694 18695 18696fi 18697 18698 18699 18700 18701 18702 18703 18704 CWARNFLAGS="$BASE_CFLAGS" 18705 if test "x$GCC" = xyes ; then 18706 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18707 fi 18708 18709 18710 18711 18712 18713 18714 18715 18716# Check whether --enable-strict-compilation was given. 18717if test ${enable_strict_compilation+y} 18718then : 18719 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18720else $as_nop 18721 STRICT_COMPILE=no 18722fi 18723 18724 18725 18726 18727 18728 18729STRICT_CFLAGS="" 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743xorg_testset_save_CFLAGS="$CFLAGS" 18744 18745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18749if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18750then : 18751 printf %s "(cached) " >&6 18752else $as_nop 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754/* end confdefs.h. */ 18755int i; 18756_ACEOF 18757if ac_fn_c_try_compile "$LINENO" 18758then : 18759 xorg_cv_cc_flag_unknown_warning_option=yes 18760else $as_nop 18761 xorg_cv_cc_flag_unknown_warning_option=no 18762fi 18763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18764fi 18765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18768 CFLAGS="$xorg_testset_save_CFLAGS" 18769fi 18770 18771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18774 fi 18775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18778if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18779then : 18780 printf %s "(cached) " >&6 18781else $as_nop 18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18783/* end confdefs.h. */ 18784int i; 18785_ACEOF 18786if ac_fn_c_try_compile "$LINENO" 18787then : 18788 xorg_cv_cc_flag_unused_command_line_argument=yes 18789else $as_nop 18790 xorg_cv_cc_flag_unused_command_line_argument=no 18791fi 18792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18793fi 18794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18797 CFLAGS="$xorg_testset_save_CFLAGS" 18798fi 18799 18800found="no" 18801 18802 if test $found = "no" ; then 18803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18805 fi 18806 18807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18809 fi 18810 18811 CFLAGS="$CFLAGS -pedantic" 18812 18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18814printf %s "checking if $CC supports -pedantic... " >&6; } 18815 cacheid=xorg_cv_cc_flag__pedantic 18816 if eval test \${$cacheid+y} 18817then : 18818 printf %s "(cached) " >&6 18819else $as_nop 18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18821/* end confdefs.h. */ 18822int i; 18823int 18824main (void) 18825{ 18826 18827 ; 18828 return 0; 18829} 18830_ACEOF 18831if ac_fn_c_try_link "$LINENO" 18832then : 18833 eval $cacheid=yes 18834else $as_nop 18835 eval $cacheid=no 18836fi 18837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18838 conftest$ac_exeext conftest.$ac_ext 18839fi 18840 18841 18842 CFLAGS="$xorg_testset_save_CFLAGS" 18843 18844 eval supported=\$$cacheid 18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18846printf "%s\n" "$supported" >&6; } 18847 if test "$supported" = "yes" ; then 18848 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18849 found="yes" 18850 fi 18851 fi 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867xorg_testset_save_CFLAGS="$CFLAGS" 18868 18869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18873if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18874then : 18875 printf %s "(cached) " >&6 18876else $as_nop 18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18878/* end confdefs.h. */ 18879int i; 18880_ACEOF 18881if ac_fn_c_try_compile "$LINENO" 18882then : 18883 xorg_cv_cc_flag_unknown_warning_option=yes 18884else $as_nop 18885 xorg_cv_cc_flag_unknown_warning_option=no 18886fi 18887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18888fi 18889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18892 CFLAGS="$xorg_testset_save_CFLAGS" 18893fi 18894 18895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18898 fi 18899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18903then : 18904 printf %s "(cached) " >&6 18905else $as_nop 18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18907/* end confdefs.h. */ 18908int i; 18909_ACEOF 18910if ac_fn_c_try_compile "$LINENO" 18911then : 18912 xorg_cv_cc_flag_unused_command_line_argument=yes 18913else $as_nop 18914 xorg_cv_cc_flag_unused_command_line_argument=no 18915fi 18916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18917fi 18918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18921 CFLAGS="$xorg_testset_save_CFLAGS" 18922fi 18923 18924found="no" 18925 18926 if test $found = "no" ; then 18927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18929 fi 18930 18931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18933 fi 18934 18935 CFLAGS="$CFLAGS -Werror" 18936 18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18938printf %s "checking if $CC supports -Werror... " >&6; } 18939 cacheid=xorg_cv_cc_flag__Werror 18940 if eval test \${$cacheid+y} 18941then : 18942 printf %s "(cached) " >&6 18943else $as_nop 18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18945/* end confdefs.h. */ 18946int i; 18947int 18948main (void) 18949{ 18950 18951 ; 18952 return 0; 18953} 18954_ACEOF 18955if ac_fn_c_try_link "$LINENO" 18956then : 18957 eval $cacheid=yes 18958else $as_nop 18959 eval $cacheid=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18962 conftest$ac_exeext conftest.$ac_ext 18963fi 18964 18965 18966 CFLAGS="$xorg_testset_save_CFLAGS" 18967 18968 eval supported=\$$cacheid 18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18970printf "%s\n" "$supported" >&6; } 18971 if test "$supported" = "yes" ; then 18972 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18973 found="yes" 18974 fi 18975 fi 18976 18977 if test $found = "no" ; then 18978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18980 fi 18981 18982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18984 fi 18985 18986 CFLAGS="$CFLAGS -errwarn" 18987 18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18989printf %s "checking if $CC supports -errwarn... " >&6; } 18990 cacheid=xorg_cv_cc_flag__errwarn 18991 if eval test \${$cacheid+y} 18992then : 18993 printf %s "(cached) " >&6 18994else $as_nop 18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18996/* end confdefs.h. */ 18997int i; 18998int 18999main (void) 19000{ 19001 19002 ; 19003 return 0; 19004} 19005_ACEOF 19006if ac_fn_c_try_link "$LINENO" 19007then : 19008 eval $cacheid=yes 19009else $as_nop 19010 eval $cacheid=no 19011fi 19012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19013 conftest$ac_exeext conftest.$ac_ext 19014fi 19015 19016 19017 CFLAGS="$xorg_testset_save_CFLAGS" 19018 19019 eval supported=\$$cacheid 19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19021printf "%s\n" "$supported" >&6; } 19022 if test "$supported" = "yes" ; then 19023 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19024 found="yes" 19025 fi 19026 fi 19027 19028 19029 19030# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19031# activate it with -Werror, so we add it here explicitly. 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045xorg_testset_save_CFLAGS="$CFLAGS" 19046 19047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19052then : 19053 printf %s "(cached) " >&6 19054else $as_nop 19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19056/* end confdefs.h. */ 19057int i; 19058_ACEOF 19059if ac_fn_c_try_compile "$LINENO" 19060then : 19061 xorg_cv_cc_flag_unknown_warning_option=yes 19062else $as_nop 19063 xorg_cv_cc_flag_unknown_warning_option=no 19064fi 19065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19066fi 19067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19070 CFLAGS="$xorg_testset_save_CFLAGS" 19071fi 19072 19073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19076 fi 19077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19081then : 19082 printf %s "(cached) " >&6 19083else $as_nop 19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085/* end confdefs.h. */ 19086int i; 19087_ACEOF 19088if ac_fn_c_try_compile "$LINENO" 19089then : 19090 xorg_cv_cc_flag_unused_command_line_argument=yes 19091else $as_nop 19092 xorg_cv_cc_flag_unused_command_line_argument=no 19093fi 19094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19095fi 19096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19099 CFLAGS="$xorg_testset_save_CFLAGS" 19100fi 19101 19102found="no" 19103 19104 if test $found = "no" ; then 19105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19107 fi 19108 19109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19111 fi 19112 19113 CFLAGS="$CFLAGS -Werror=attributes" 19114 19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19116printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19117 cacheid=xorg_cv_cc_flag__Werror_attributes 19118 if eval test \${$cacheid+y} 19119then : 19120 printf %s "(cached) " >&6 19121else $as_nop 19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19123/* end confdefs.h. */ 19124int i; 19125int 19126main (void) 19127{ 19128 19129 ; 19130 return 0; 19131} 19132_ACEOF 19133if ac_fn_c_try_link "$LINENO" 19134then : 19135 eval $cacheid=yes 19136else $as_nop 19137 eval $cacheid=no 19138fi 19139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19140 conftest$ac_exeext conftest.$ac_ext 19141fi 19142 19143 19144 CFLAGS="$xorg_testset_save_CFLAGS" 19145 19146 eval supported=\$$cacheid 19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19148printf "%s\n" "$supported" >&6; } 19149 if test "$supported" = "yes" ; then 19150 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19151 found="yes" 19152 fi 19153 fi 19154 19155 19156 19157if test "x$STRICT_COMPILE" = "xyes"; then 19158 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19159 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19160fi 19161 19162 19163 19164 19165 19166 19167cat >>confdefs.h <<_ACEOF 19168#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19169_ACEOF 19170 19171 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19172 if test "x$PVM" = "x"; then 19173 PVM="0" 19174 fi 19175 19176printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19177 19178 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19179 if test "x$PVP" = "x"; then 19180 PVP="0" 19181 fi 19182 19183printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19184 19185 19186 19187CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19188mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19189|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19190touch \$(top_srcdir)/ChangeLog; \ 19191echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19192 19193 19194 19195 19196macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19197INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19198mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19199|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19200touch \$(top_srcdir)/INSTALL; \ 19201echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19202 19203 19204 19205 19206 19207 19208case $host_os in 19209 solaris*) 19210 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19211 # check for a man page file found in later versions that use 19212 # traditional section numbers instead 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19214printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19215if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19216then : 19217 printf %s "(cached) " >&6 19218else $as_nop 19219 test "$cross_compiling" = yes && 19220 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19221if test -r "/usr/share/man/man7/attributes.7"; then 19222 ac_cv_file__usr_share_man_man7_attributes_7=yes 19223else 19224 ac_cv_file__usr_share_man_man7_attributes_7=no 19225fi 19226fi 19227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19228printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19229if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19230then : 19231 SYSV_MAN_SECTIONS=false 19232else $as_nop 19233 SYSV_MAN_SECTIONS=true 19234fi 19235 19236 ;; 19237 *) SYSV_MAN_SECTIONS=false ;; 19238esac 19239 19240if test x$APP_MAN_SUFFIX = x ; then 19241 APP_MAN_SUFFIX=1 19242fi 19243if test x$APP_MAN_DIR = x ; then 19244 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19245fi 19246 19247if test x$LIB_MAN_SUFFIX = x ; then 19248 LIB_MAN_SUFFIX=3 19249fi 19250if test x$LIB_MAN_DIR = x ; then 19251 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19252fi 19253 19254if test x$FILE_MAN_SUFFIX = x ; then 19255 case $SYSV_MAN_SECTIONS in 19256 true) FILE_MAN_SUFFIX=4 ;; 19257 *) FILE_MAN_SUFFIX=5 ;; 19258 esac 19259fi 19260if test x$FILE_MAN_DIR = x ; then 19261 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19262fi 19263 19264if test x$MISC_MAN_SUFFIX = x ; then 19265 case $SYSV_MAN_SECTIONS in 19266 true) MISC_MAN_SUFFIX=5 ;; 19267 *) MISC_MAN_SUFFIX=7 ;; 19268 esac 19269fi 19270if test x$MISC_MAN_DIR = x ; then 19271 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19272fi 19273 19274if test x$DRIVER_MAN_SUFFIX = x ; then 19275 case $SYSV_MAN_SECTIONS in 19276 true) DRIVER_MAN_SUFFIX=7 ;; 19277 *) DRIVER_MAN_SUFFIX=4 ;; 19278 esac 19279fi 19280if test x$DRIVER_MAN_DIR = x ; then 19281 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19282fi 19283 19284if test x$ADMIN_MAN_SUFFIX = x ; then 19285 case $SYSV_MAN_SECTIONS in 19286 true) ADMIN_MAN_SUFFIX=1m ;; 19287 *) ADMIN_MAN_SUFFIX=8 ;; 19288 esac 19289fi 19290if test x$ADMIN_MAN_DIR = x ; then 19291 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19292fi 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308XORG_MAN_PAGE="X Version 11" 19309 19310MAN_SUBSTS="\ 19311 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19312 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19313 -e 's|__xservername__|Xorg|g' \ 19314 -e 's|__xconfigfile__|xorg.conf|g' \ 19315 -e 's|__projectroot__|\$(prefix)|g' \ 19316 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19317 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19318 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19319 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19320 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19321 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19322 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19323 19324 19325 19326# Check whether --enable-silent-rules was given. 19327if test ${enable_silent_rules+y} 19328then : 19329 enableval=$enable_silent_rules; 19330fi 19331 19332case $enable_silent_rules in # ((( 19333 yes) AM_DEFAULT_VERBOSITY=0;; 19334 no) AM_DEFAULT_VERBOSITY=1;; 19335 *) AM_DEFAULT_VERBOSITY=0;; 19336esac 19337am_make=${MAKE-make} 19338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19339printf %s "checking whether $am_make supports nested variables... " >&6; } 19340if test ${am_cv_make_support_nested_variables+y} 19341then : 19342 printf %s "(cached) " >&6 19343else $as_nop 19344 if printf "%s\n" 'TRUE=$(BAR$(V)) 19345BAR0=false 19346BAR1=true 19347V=1 19348am__doit: 19349 @$(TRUE) 19350.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19351 am_cv_make_support_nested_variables=yes 19352else 19353 am_cv_make_support_nested_variables=no 19354fi 19355fi 19356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19357printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19358if test $am_cv_make_support_nested_variables = yes; then 19359 AM_V='$(V)' 19360 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19361else 19362 AM_V=$AM_DEFAULT_VERBOSITY 19363 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19364fi 19365AM_BACKSLASH='\' 19366 19367 19368 19369 19370# Check whether --enable-docs was given. 19371if test ${enable_docs+y} 19372then : 19373 enableval=$enable_docs; build_docs=$enableval 19374else $as_nop 19375 build_docs=yes 19376fi 19377 19378 19379 if test x$build_docs = xyes; then 19380 ENABLE_DOCS_TRUE= 19381 ENABLE_DOCS_FALSE='#' 19382else 19383 ENABLE_DOCS_TRUE='#' 19384 ENABLE_DOCS_FALSE= 19385fi 19386 19387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 19388printf %s "checking whether to build documentation... " >&6; } 19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 19390printf "%s\n" "$build_docs" >&6; } 19391 19392 19393 19394# Check whether --enable-specs was given. 19395if test ${enable_specs+y} 19396then : 19397 enableval=$enable_specs; build_specs=$enableval 19398else $as_nop 19399 build_specs=yes 19400fi 19401 19402 19403 if test x$build_specs = xyes; then 19404 ENABLE_SPECS_TRUE= 19405 ENABLE_SPECS_FALSE='#' 19406else 19407 ENABLE_SPECS_TRUE='#' 19408 ENABLE_SPECS_FALSE= 19409fi 19410 19411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19412printf %s "checking whether to build functional specifications... " >&6; } 19413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19414printf "%s\n" "$build_specs" >&6; } 19415 19416 19417 19418 19419 19420# Check whether --with-xmlto was given. 19421if test ${with_xmlto+y} 19422then : 19423 withval=$with_xmlto; use_xmlto=$withval 19424else $as_nop 19425 use_xmlto=auto 19426fi 19427 19428 19429 19430if test "x$use_xmlto" = x"auto"; then 19431 # Extract the first word of "xmlto", so it can be a program name with args. 19432set dummy xmlto; ac_word=$2 19433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19434printf %s "checking for $ac_word... " >&6; } 19435if test ${ac_cv_path_XMLTO+y} 19436then : 19437 printf %s "(cached) " >&6 19438else $as_nop 19439 case $XMLTO in 19440 [\\/]* | ?:[\\/]*) 19441 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19442 ;; 19443 *) 19444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19445for as_dir in $PATH 19446do 19447 IFS=$as_save_IFS 19448 case $as_dir in #((( 19449 '') as_dir=./ ;; 19450 */) ;; 19451 *) as_dir=$as_dir/ ;; 19452 esac 19453 for ac_exec_ext in '' $ac_executable_extensions; do 19454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19455 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19457 break 2 19458 fi 19459done 19460 done 19461IFS=$as_save_IFS 19462 19463 ;; 19464esac 19465fi 19466XMLTO=$ac_cv_path_XMLTO 19467if test -n "$XMLTO"; then 19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19469printf "%s\n" "$XMLTO" >&6; } 19470else 19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19472printf "%s\n" "no" >&6; } 19473fi 19474 19475 19476 if test "x$XMLTO" = "x"; then 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19478printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19479 have_xmlto=no 19480 else 19481 have_xmlto=yes 19482 fi 19483elif test "x$use_xmlto" = x"yes" ; then 19484 # Extract the first word of "xmlto", so it can be a program name with args. 19485set dummy xmlto; ac_word=$2 19486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19487printf %s "checking for $ac_word... " >&6; } 19488if test ${ac_cv_path_XMLTO+y} 19489then : 19490 printf %s "(cached) " >&6 19491else $as_nop 19492 case $XMLTO in 19493 [\\/]* | ?:[\\/]*) 19494 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19495 ;; 19496 *) 19497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19498for as_dir in $PATH 19499do 19500 IFS=$as_save_IFS 19501 case $as_dir in #((( 19502 '') as_dir=./ ;; 19503 */) ;; 19504 *) as_dir=$as_dir/ ;; 19505 esac 19506 for ac_exec_ext in '' $ac_executable_extensions; do 19507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19508 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19510 break 2 19511 fi 19512done 19513 done 19514IFS=$as_save_IFS 19515 19516 ;; 19517esac 19518fi 19519XMLTO=$ac_cv_path_XMLTO 19520if test -n "$XMLTO"; then 19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19522printf "%s\n" "$XMLTO" >&6; } 19523else 19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19525printf "%s\n" "no" >&6; } 19526fi 19527 19528 19529 if test "x$XMLTO" = "x"; then 19530 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19531 fi 19532 have_xmlto=yes 19533elif test "x$use_xmlto" = x"no" ; then 19534 if test "x$XMLTO" != "x"; then 19535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19536printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19537 fi 19538 have_xmlto=no 19539else 19540 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19541fi 19542 19543# Test for a minimum version of xmlto, if provided. 19544if test "$have_xmlto" = yes; then 19545 # scrape the xmlto version 19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19547printf %s "checking the xmlto version... " >&6; } 19548 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19550printf "%s\n" "$xmlto_version" >&6; } 19551 as_arg_v1=$xmlto_version 19552as_arg_v2=0.0.22 19553awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19554case $? in #( 19555 1) : 19556 if test "x$use_xmlto" = xauto; then 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19558printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19559 have_xmlto=no 19560 else 19561 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19562 fi ;; #( 19563 0) : 19564 ;; #( 19565 2) : 19566 ;; #( 19567 *) : 19568 ;; 19569esac 19570fi 19571 19572# Test for the ability of xmlto to generate a text target 19573# 19574# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19575# following test for empty XML docbook files. 19576# For compatibility reasons use the following empty XML docbook file and if 19577# it fails try it again with a non-empty XML file. 19578have_xmlto_text=no 19579cat > conftest.xml << "EOF" 19580EOF 19581if test "$have_xmlto" = yes 19582then : 19583 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19584then : 19585 have_xmlto_text=yes 19586else $as_nop 19587 # Try it again with a non-empty XML file. 19588 cat > conftest.xml << "EOF" 19589<x></x> 19590EOF 19591 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19592then : 19593 have_xmlto_text=yes 19594else $as_nop 19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19596printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19597fi 19598fi 19599fi 19600rm -f conftest.xml 19601 if test $have_xmlto_text = yes; then 19602 HAVE_XMLTO_TEXT_TRUE= 19603 HAVE_XMLTO_TEXT_FALSE='#' 19604else 19605 HAVE_XMLTO_TEXT_TRUE='#' 19606 HAVE_XMLTO_TEXT_FALSE= 19607fi 19608 19609 if test "$have_xmlto" = yes; then 19610 HAVE_XMLTO_TRUE= 19611 HAVE_XMLTO_FALSE='#' 19612else 19613 HAVE_XMLTO_TRUE='#' 19614 HAVE_XMLTO_FALSE= 19615fi 19616 19617 19618 19619 19620 19621 19622# Check whether --with-fop was given. 19623if test ${with_fop+y} 19624then : 19625 withval=$with_fop; use_fop=$withval 19626else $as_nop 19627 use_fop=auto 19628fi 19629 19630 19631 19632if test "x$use_fop" = x"auto"; then 19633 # Extract the first word of "fop", so it can be a program name with args. 19634set dummy fop; ac_word=$2 19635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19636printf %s "checking for $ac_word... " >&6; } 19637if test ${ac_cv_path_FOP+y} 19638then : 19639 printf %s "(cached) " >&6 19640else $as_nop 19641 case $FOP in 19642 [\\/]* | ?:[\\/]*) 19643 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19644 ;; 19645 *) 19646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19647for as_dir in $PATH 19648do 19649 IFS=$as_save_IFS 19650 case $as_dir in #((( 19651 '') as_dir=./ ;; 19652 */) ;; 19653 *) as_dir=$as_dir/ ;; 19654 esac 19655 for ac_exec_ext in '' $ac_executable_extensions; do 19656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19657 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19659 break 2 19660 fi 19661done 19662 done 19663IFS=$as_save_IFS 19664 19665 ;; 19666esac 19667fi 19668FOP=$ac_cv_path_FOP 19669if test -n "$FOP"; then 19670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19671printf "%s\n" "$FOP" >&6; } 19672else 19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19674printf "%s\n" "no" >&6; } 19675fi 19676 19677 19678 if test "x$FOP" = "x"; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19680printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19681 have_fop=no 19682 else 19683 have_fop=yes 19684 fi 19685elif test "x$use_fop" = x"yes" ; then 19686 # Extract the first word of "fop", so it can be a program name with args. 19687set dummy fop; ac_word=$2 19688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19689printf %s "checking for $ac_word... " >&6; } 19690if test ${ac_cv_path_FOP+y} 19691then : 19692 printf %s "(cached) " >&6 19693else $as_nop 19694 case $FOP in 19695 [\\/]* | ?:[\\/]*) 19696 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19697 ;; 19698 *) 19699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19700for as_dir in $PATH 19701do 19702 IFS=$as_save_IFS 19703 case $as_dir in #((( 19704 '') as_dir=./ ;; 19705 */) ;; 19706 *) as_dir=$as_dir/ ;; 19707 esac 19708 for ac_exec_ext in '' $ac_executable_extensions; do 19709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19710 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19712 break 2 19713 fi 19714done 19715 done 19716IFS=$as_save_IFS 19717 19718 ;; 19719esac 19720fi 19721FOP=$ac_cv_path_FOP 19722if test -n "$FOP"; then 19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19724printf "%s\n" "$FOP" >&6; } 19725else 19726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19727printf "%s\n" "no" >&6; } 19728fi 19729 19730 19731 if test "x$FOP" = "x"; then 19732 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19733 fi 19734 have_fop=yes 19735elif test "x$use_fop" = x"no" ; then 19736 if test "x$FOP" != "x"; then 19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19738printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19739 fi 19740 have_fop=no 19741else 19742 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19743fi 19744 19745# Test for a minimum version of fop, if provided. 19746 19747 if test "$have_fop" = yes; then 19748 HAVE_FOP_TRUE= 19749 HAVE_FOP_FALSE='#' 19750else 19751 HAVE_FOP_TRUE='#' 19752 HAVE_FOP_FALSE= 19753fi 19754 19755 19756 19757 19758# Preserves the interface, should it be implemented later 19759 19760 19761 19762# Check whether --with-xsltproc was given. 19763if test ${with_xsltproc+y} 19764then : 19765 withval=$with_xsltproc; use_xsltproc=$withval 19766else $as_nop 19767 use_xsltproc=auto 19768fi 19769 19770 19771 19772if test "x$use_xsltproc" = x"auto"; then 19773 # Extract the first word of "xsltproc", so it can be a program name with args. 19774set dummy xsltproc; ac_word=$2 19775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19776printf %s "checking for $ac_word... " >&6; } 19777if test ${ac_cv_path_XSLTPROC+y} 19778then : 19779 printf %s "(cached) " >&6 19780else $as_nop 19781 case $XSLTPROC in 19782 [\\/]* | ?:[\\/]*) 19783 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19784 ;; 19785 *) 19786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19787for as_dir in $PATH 19788do 19789 IFS=$as_save_IFS 19790 case $as_dir in #((( 19791 '') as_dir=./ ;; 19792 */) ;; 19793 *) as_dir=$as_dir/ ;; 19794 esac 19795 for ac_exec_ext in '' $ac_executable_extensions; do 19796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19797 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19799 break 2 19800 fi 19801done 19802 done 19803IFS=$as_save_IFS 19804 19805 ;; 19806esac 19807fi 19808XSLTPROC=$ac_cv_path_XSLTPROC 19809if test -n "$XSLTPROC"; then 19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19811printf "%s\n" "$XSLTPROC" >&6; } 19812else 19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19814printf "%s\n" "no" >&6; } 19815fi 19816 19817 19818 if test "x$XSLTPROC" = "x"; then 19819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19820printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19821 have_xsltproc=no 19822 else 19823 have_xsltproc=yes 19824 fi 19825elif test "x$use_xsltproc" = x"yes" ; then 19826 # Extract the first word of "xsltproc", so it can be a program name with args. 19827set dummy xsltproc; ac_word=$2 19828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19829printf %s "checking for $ac_word... " >&6; } 19830if test ${ac_cv_path_XSLTPROC+y} 19831then : 19832 printf %s "(cached) " >&6 19833else $as_nop 19834 case $XSLTPROC in 19835 [\\/]* | ?:[\\/]*) 19836 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19837 ;; 19838 *) 19839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19840for as_dir in $PATH 19841do 19842 IFS=$as_save_IFS 19843 case $as_dir in #((( 19844 '') as_dir=./ ;; 19845 */) ;; 19846 *) as_dir=$as_dir/ ;; 19847 esac 19848 for ac_exec_ext in '' $ac_executable_extensions; do 19849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19850 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19852 break 2 19853 fi 19854done 19855 done 19856IFS=$as_save_IFS 19857 19858 ;; 19859esac 19860fi 19861XSLTPROC=$ac_cv_path_XSLTPROC 19862if test -n "$XSLTPROC"; then 19863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19864printf "%s\n" "$XSLTPROC" >&6; } 19865else 19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19867printf "%s\n" "no" >&6; } 19868fi 19869 19870 19871 if test "x$XSLTPROC" = "x"; then 19872 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19873 fi 19874 have_xsltproc=yes 19875elif test "x$use_xsltproc" = x"no" ; then 19876 if test "x$XSLTPROC" != "x"; then 19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19878printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19879 fi 19880 have_xsltproc=no 19881else 19882 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19883fi 19884 19885 if test "$have_xsltproc" = yes; then 19886 HAVE_XSLTPROC_TRUE= 19887 HAVE_XSLTPROC_FALSE='#' 19888else 19889 HAVE_XSLTPROC_TRUE='#' 19890 HAVE_XSLTPROC_FALSE= 19891fi 19892 19893 19894 19895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 19896printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 19897XORG_SGML_PATH= 19898if test -n "$PKG_CONFIG" && \ 19899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 19900 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 19901 ac_status=$? 19902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19903 test $ac_status = 0; }; then 19904 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19905else 19906 : 19907 19908fi 19909 19910# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19911# the path and the name of the doc stylesheet 19912if test "x$XORG_SGML_PATH" != "x" ; then 19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19914printf "%s\n" "$XORG_SGML_PATH" >&6; } 19915 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19916 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19917else 19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19919printf "%s\n" "no" >&6; } 19920fi 19921 19922 19923 19924 19925 if test "x$XSL_STYLESHEET" != "x"; then 19926 HAVE_STYLESHEETS_TRUE= 19927 HAVE_STYLESHEETS_FALSE='#' 19928else 19929 HAVE_STYLESHEETS_TRUE='#' 19930 HAVE_STYLESHEETS_FALSE= 19931fi 19932 19933 19934 19935 19936 19937 19938# Check whether --with-asciidoc was given. 19939if test ${with_asciidoc+y} 19940then : 19941 withval=$with_asciidoc; use_asciidoc=$withval 19942else $as_nop 19943 use_asciidoc=auto 19944fi 19945 19946 19947 19948if test "x$use_asciidoc" = x"auto"; then 19949 # Extract the first word of "asciidoc", so it can be a program name with args. 19950set dummy asciidoc; ac_word=$2 19951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19952printf %s "checking for $ac_word... " >&6; } 19953if test ${ac_cv_path_ASCIIDOC+y} 19954then : 19955 printf %s "(cached) " >&6 19956else $as_nop 19957 case $ASCIIDOC in 19958 [\\/]* | ?:[\\/]*) 19959 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 19960 ;; 19961 *) 19962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19963for as_dir in $PATH 19964do 19965 IFS=$as_save_IFS 19966 case $as_dir in #((( 19967 '') as_dir=./ ;; 19968 */) ;; 19969 *) as_dir=$as_dir/ ;; 19970 esac 19971 for ac_exec_ext in '' $ac_executable_extensions; do 19972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19973 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 19974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19975 break 2 19976 fi 19977done 19978 done 19979IFS=$as_save_IFS 19980 19981 ;; 19982esac 19983fi 19984ASCIIDOC=$ac_cv_path_ASCIIDOC 19985if test -n "$ASCIIDOC"; then 19986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 19987printf "%s\n" "$ASCIIDOC" >&6; } 19988else 19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19990printf "%s\n" "no" >&6; } 19991fi 19992 19993 19994 if test "x$ASCIIDOC" = "x"; then 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 19996printf "%s\n" "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 19997 have_asciidoc=no 19998 else 19999 have_asciidoc=yes 20000 fi 20001elif test "x$use_asciidoc" = x"yes" ; then 20002 # Extract the first word of "asciidoc", so it can be a program name with args. 20003set dummy asciidoc; ac_word=$2 20004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20005printf %s "checking for $ac_word... " >&6; } 20006if test ${ac_cv_path_ASCIIDOC+y} 20007then : 20008 printf %s "(cached) " >&6 20009else $as_nop 20010 case $ASCIIDOC in 20011 [\\/]* | ?:[\\/]*) 20012 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 20013 ;; 20014 *) 20015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20016for as_dir in $PATH 20017do 20018 IFS=$as_save_IFS 20019 case $as_dir in #((( 20020 '') as_dir=./ ;; 20021 */) ;; 20022 *) as_dir=$as_dir/ ;; 20023 esac 20024 for ac_exec_ext in '' $ac_executable_extensions; do 20025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20026 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 20027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20028 break 2 20029 fi 20030done 20031 done 20032IFS=$as_save_IFS 20033 20034 ;; 20035esac 20036fi 20037ASCIIDOC=$ac_cv_path_ASCIIDOC 20038if test -n "$ASCIIDOC"; then 20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 20040printf "%s\n" "$ASCIIDOC" >&6; } 20041else 20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20043printf "%s\n" "no" >&6; } 20044fi 20045 20046 20047 if test "x$ASCIIDOC" = "x"; then 20048 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 20049 fi 20050 have_asciidoc=yes 20051elif test "x$use_asciidoc" = x"no" ; then 20052 if test "x$ASCIIDOC" != "x"; then 20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 20054printf "%s\n" "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 20055 fi 20056 have_asciidoc=no 20057else 20058 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 20059fi 20060if test "$have_asciidoc" = yes; then 20061 # scrape the asciidoc version 20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 20063printf %s "checking the asciidoc version... " >&6; } 20064 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 20066printf "%s\n" "$asciidoc_version" >&6; } 20067 as_arg_v1=$asciidoc_version 20068as_arg_v2=8.4.5 20069awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20070case $? in #( 20071 1) : 20072 if test "x$use_asciidoc" = xauto; then 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 20074printf "%s\n" "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 20075 have_asciidoc=no 20076 else 20077 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 20078 fi ;; #( 20079 0) : 20080 ;; #( 20081 2) : 20082 ;; #( 20083 *) : 20084 ;; 20085esac 20086fi 20087 if test "$have_asciidoc" = yes; then 20088 HAVE_ASCIIDOC_TRUE= 20089 HAVE_ASCIIDOC_FALSE='#' 20090else 20091 HAVE_ASCIIDOC_TRUE='#' 20092 HAVE_ASCIIDOC_FALSE= 20093fi 20094 20095 20096 20097# Check whether --enable-malloc0returnsnull was given. 20098if test ${enable_malloc0returnsnull+y} 20099then : 20100 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20101else $as_nop 20102 MALLOC_ZERO_RETURNS_NULL=auto 20103fi 20104 20105 20106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 20107printf %s "checking whether malloc(0) returns NULL... " >&6; } 20108if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20109if test ${xorg_cv_malloc0_returns_null+y} 20110then : 20111 printf %s "(cached) " >&6 20112else $as_nop 20113 if test "$cross_compiling" = yes 20114then : 20115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20117as_fn_error $? "cannot run test program while cross compiling 20118See \`config.log' for more details" "$LINENO" 5; } 20119else $as_nop 20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20121/* end confdefs.h. */ 20122 20123#include <stdlib.h> 20124 20125int 20126main (void) 20127{ 20128 20129 char *m0, *r0, *c0, *p; 20130 m0 = malloc(0); 20131 p = malloc(10); 20132 r0 = realloc(p,0); 20133 c0 = calloc(0,10); 20134 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 20135 20136 ; 20137 return 0; 20138} 20139_ACEOF 20140if ac_fn_c_try_run "$LINENO" 20141then : 20142 xorg_cv_malloc0_returns_null=yes 20143else $as_nop 20144 xorg_cv_malloc0_returns_null=no 20145fi 20146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20147 conftest.$ac_objext conftest.beam conftest.$ac_ext 20148fi 20149 20150fi 20151 20152MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 20153fi 20154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20155printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20156 20157if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20158 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20159 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20160 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20161else 20162 MALLOC_ZERO_CFLAGS="" 20163 XMALLOC_ZERO_CFLAGS="" 20164 XTMALLOC_ZERO_CFLAGS="" 20165fi 20166 20167 20168 20169 20170 20171 20172# Obtain compiler/linker options for dependencies 20173 20174pkg_failed=no 20175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 20176printf %s "checking for XI... " >&6; } 20177 20178if test -n "$XI_CFLAGS"; then 20179 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 20180 elif test -n "$PKG_CONFIG"; then 20181 if test -n "$PKG_CONFIG" && \ 20182 { { printf "%s\n" "$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.3.99.1\""; } >&5 20183 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 20184 ac_status=$? 20185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20186 test $ac_status = 0; }; then 20187 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.3.99.1" 2>/dev/null` 20188 test "x$?" != "x0" && pkg_failed=yes 20189else 20190 pkg_failed=yes 20191fi 20192 else 20193 pkg_failed=untried 20194fi 20195if test -n "$XI_LIBS"; then 20196 pkg_cv_XI_LIBS="$XI_LIBS" 20197 elif test -n "$PKG_CONFIG"; then 20198 if test -n "$PKG_CONFIG" && \ 20199 { { printf "%s\n" "$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.3.99.1\""; } >&5 20200 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 20201 ac_status=$? 20202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20203 test $ac_status = 0; }; then 20204 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.3.99.1" 2>/dev/null` 20205 test "x$?" != "x0" && pkg_failed=yes 20206else 20207 pkg_failed=yes 20208fi 20209 else 20210 pkg_failed=untried 20211fi 20212 20213 20214 20215if test $pkg_failed = yes; then 20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20217printf "%s\n" "no" >&6; } 20218 20219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20220 _pkg_short_errors_supported=yes 20221else 20222 _pkg_short_errors_supported=no 20223fi 20224 if test $_pkg_short_errors_supported = yes; then 20225 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.3.99.1" 2>&1` 20226 else 20227 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.3.99.1" 2>&1` 20228 fi 20229 # Put the nasty error message in config.log where it belongs 20230 echo "$XI_PKG_ERRORS" >&5 20231 20232 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met: 20233 20234$XI_PKG_ERRORS 20235 20236Consider adjusting the PKG_CONFIG_PATH environment variable if you 20237installed software in a non-standard prefix. 20238 20239Alternatively, you may set the environment variables XI_CFLAGS 20240and XI_LIBS to avoid the need to call pkg-config. 20241See the pkg-config man page for more details." "$LINENO" 5 20242elif test $pkg_failed = untried; then 20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20244printf "%s\n" "no" >&6; } 20245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20247as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20248is in your PATH or set the PKG_CONFIG environment variable to the full 20249path to pkg-config. 20250 20251Alternatively, you may set the environment variables XI_CFLAGS 20252and XI_LIBS to avoid the need to call pkg-config. 20253See the pkg-config man page for more details. 20254 20255To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20256See \`config.log' for more details" "$LINENO" 5; } 20257else 20258 XI_CFLAGS=$pkg_cv_XI_CFLAGS 20259 XI_LIBS=$pkg_cv_XI_LIBS 20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20261printf "%s\n" "yes" >&6; } 20262 20263fi 20264# CFLAGS only for PointerBarrier typedef 20265 20266pkg_failed=no 20267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 20268printf %s "checking for XFIXES... " >&6; } 20269 20270if test -n "$XFIXES_CFLAGS"; then 20271 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 20272 elif test -n "$PKG_CONFIG"; then 20273 if test -n "$PKG_CONFIG" && \ 20274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 20275 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 20276 ac_status=$? 20277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20278 test $ac_status = 0; }; then 20279 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 20280 test "x$?" != "x0" && pkg_failed=yes 20281else 20282 pkg_failed=yes 20283fi 20284 else 20285 pkg_failed=untried 20286fi 20287if test -n "$XFIXES_LIBS"; then 20288 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 20289 elif test -n "$PKG_CONFIG"; then 20290 if test -n "$PKG_CONFIG" && \ 20291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 20292 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 20293 ac_status=$? 20294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20295 test $ac_status = 0; }; then 20296 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 20297 test "x$?" != "x0" && pkg_failed=yes 20298else 20299 pkg_failed=yes 20300fi 20301 else 20302 pkg_failed=untried 20303fi 20304 20305 20306 20307if test $pkg_failed = yes; then 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20309printf "%s\n" "no" >&6; } 20310 20311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20312 _pkg_short_errors_supported=yes 20313else 20314 _pkg_short_errors_supported=no 20315fi 20316 if test $_pkg_short_errors_supported = yes; then 20317 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 20318 else 20319 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 20320 fi 20321 # Put the nasty error message in config.log where it belongs 20322 echo "$XFIXES_PKG_ERRORS" >&5 20323 20324 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 20325 20326$XFIXES_PKG_ERRORS 20327 20328Consider adjusting the PKG_CONFIG_PATH environment variable if you 20329installed software in a non-standard prefix. 20330 20331Alternatively, you may set the environment variables XFIXES_CFLAGS 20332and XFIXES_LIBS to avoid the need to call pkg-config. 20333See the pkg-config man page for more details." "$LINENO" 5 20334elif test $pkg_failed = untried; then 20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20336printf "%s\n" "no" >&6; } 20337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20338printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20339as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20340is in your PATH or set the PKG_CONFIG environment variable to the full 20341path to pkg-config. 20342 20343Alternatively, you may set the environment variables XFIXES_CFLAGS 20344and XFIXES_LIBS to avoid the need to call pkg-config. 20345See the pkg-config man page for more details. 20346 20347To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20348See \`config.log' for more details" "$LINENO" 5; } 20349else 20350 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 20351 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 20352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20353printf "%s\n" "yes" >&6; } 20354 20355fi 20356 20357# Check for xmlto and asciidoc for man page conversion 20358# (only needed by people building tarballs) 20359if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 20360 have_doctools=yes 20361else 20362 have_doctools=no 20363fi 20364 if test $have_doctools = yes; then 20365 HAVE_DOCTOOLS_TRUE= 20366 HAVE_DOCTOOLS_FALSE='#' 20367else 20368 HAVE_DOCTOOLS_TRUE='#' 20369 HAVE_DOCTOOLS_FALSE= 20370fi 20371 20372if test $have_doctools = no; then 20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 20374printf "%s\n" "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 20375fi 20376 20377# Determine if the source for man pages is available 20378# It may already be present (tarball) or can be generated using doctools 20379 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 20380 test $have_doctools = yes; then 20381 INSTALL_MANPAGES_TRUE= 20382 INSTALL_MANPAGES_FALSE='#' 20383else 20384 INSTALL_MANPAGES_TRUE='#' 20385 INSTALL_MANPAGES_FALSE= 20386fi 20387 20388 20389ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 20390 20391cat >confcache <<\_ACEOF 20392# This file is a shell script that caches the results of configure 20393# tests run on this system so they can be shared between configure 20394# scripts and configure runs, see configure's option --config-cache. 20395# It is not useful on other systems. If it contains results you don't 20396# want to keep, you may remove or edit it. 20397# 20398# config.status only pays attention to the cache file if you give it 20399# the --recheck option to rerun configure. 20400# 20401# `ac_cv_env_foo' variables (set or unset) will be overridden when 20402# loading this file, other *unset* `ac_cv_foo' will be assigned the 20403# following values. 20404 20405_ACEOF 20406 20407# The following way of writing the cache mishandles newlines in values, 20408# but we know of no workaround that is simple, portable, and efficient. 20409# So, we kill variables containing newlines. 20410# Ultrix sh set writes to stderr and can't be redirected directly, 20411# and sets the high bit in the cache file unless we assign to the vars. 20412( 20413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20414 eval ac_val=\$$ac_var 20415 case $ac_val in #( 20416 *${as_nl}*) 20417 case $ac_var in #( 20418 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20419printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20420 esac 20421 case $ac_var in #( 20422 _ | IFS | as_nl) ;; #( 20423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20424 *) { eval $ac_var=; unset $ac_var;} ;; 20425 esac ;; 20426 esac 20427 done 20428 20429 (set) 2>&1 | 20430 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20431 *${as_nl}ac_space=\ *) 20432 # `set' does not quote correctly, so add quotes: double-quote 20433 # substitution turns \\\\ into \\, and sed turns \\ into \. 20434 sed -n \ 20435 "s/'/'\\\\''/g; 20436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20437 ;; #( 20438 *) 20439 # `set' quotes correctly as required by POSIX, so do not add quotes. 20440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20441 ;; 20442 esac | 20443 sort 20444) | 20445 sed ' 20446 /^ac_cv_env_/b end 20447 t clear 20448 :clear 20449 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20450 t end 20451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20452 :end' >>confcache 20453if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20454 if test -w "$cache_file"; then 20455 if test "x$cache_file" != "x/dev/null"; then 20456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20457printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20458 if test ! -f "$cache_file" || test -h "$cache_file"; then 20459 cat confcache >"$cache_file" 20460 else 20461 case $cache_file in #( 20462 */* | ?:*) 20463 mv -f confcache "$cache_file"$$ && 20464 mv -f "$cache_file"$$ "$cache_file" ;; #( 20465 *) 20466 mv -f confcache "$cache_file" ;; 20467 esac 20468 fi 20469 fi 20470 else 20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20472printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20473 fi 20474fi 20475rm -f confcache 20476 20477test "x$prefix" = xNONE && prefix=$ac_default_prefix 20478# Let make expand exec_prefix. 20479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20480 20481DEFS=-DHAVE_CONFIG_H 20482 20483ac_libobjs= 20484ac_ltlibobjs= 20485U= 20486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20487 # 1. Remove the extension, and $U if already installed. 20488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20489 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20491 # will be set to the directory where LIBOBJS objects are built. 20492 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20493 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20494done 20495LIBOBJS=$ac_libobjs 20496 20497LTLIBOBJS=$ac_ltlibobjs 20498 20499 20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20501printf %s "checking that generated files are newer than configure... " >&6; } 20502 if test -n "$am_sleep_pid"; then 20503 # Hide warnings about reused PIDs. 20504 wait $am_sleep_pid 2>/dev/null 20505 fi 20506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20507printf "%s\n" "done" >&6; } 20508 if test -n "$EXEEXT"; then 20509 am__EXEEXT_TRUE= 20510 am__EXEEXT_FALSE='#' 20511else 20512 am__EXEEXT_TRUE='#' 20513 am__EXEEXT_FALSE= 20514fi 20515 20516if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20517 as_fn_error $? "conditional \"AMDEP\" was never defined. 20518Usually this means the macro was only invoked conditionally." "$LINENO" 5 20519fi 20520if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20521 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20522Usually this means the macro was only invoked conditionally." "$LINENO" 5 20523fi 20524if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 20525 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 20526Usually this means the macro was only invoked conditionally." "$LINENO" 5 20527fi 20528if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20529 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20530Usually this means the macro was only invoked conditionally." "$LINENO" 5 20531fi 20532if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20533 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20534Usually this means the macro was only invoked conditionally." "$LINENO" 5 20535fi 20536if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20537 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20538Usually this means the macro was only invoked conditionally." "$LINENO" 5 20539fi 20540if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20541 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20542Usually this means the macro was only invoked conditionally." "$LINENO" 5 20543fi 20544if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20545 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20546Usually this means the macro was only invoked conditionally." "$LINENO" 5 20547fi 20548if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20549 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20550Usually this means the macro was only invoked conditionally." "$LINENO" 5 20551fi 20552if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 20553 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 20554Usually this means the macro was only invoked conditionally." "$LINENO" 5 20555fi 20556if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 20557 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 20558Usually this means the macro was only invoked conditionally." "$LINENO" 5 20559fi 20560if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 20561 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 20562Usually this means the macro was only invoked conditionally." "$LINENO" 5 20563fi 20564 20565: "${CONFIG_STATUS=./config.status}" 20566ac_write_fail=0 20567ac_clean_files_save=$ac_clean_files 20568ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20570printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20571as_write_fail=0 20572cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20573#! $SHELL 20574# Generated by $as_me. 20575# Run this file to recreate the current configuration. 20576# Compiler output produced by configure, useful for debugging 20577# configure, is in config.log if it exists. 20578 20579debug=false 20580ac_cs_recheck=false 20581ac_cs_silent=false 20582 20583SHELL=\${CONFIG_SHELL-$SHELL} 20584export SHELL 20585_ASEOF 20586cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20587## -------------------- ## 20588## M4sh Initialization. ## 20589## -------------------- ## 20590 20591# Be more Bourne compatible 20592DUALCASE=1; export DUALCASE # for MKS sh 20593as_nop=: 20594if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20595then : 20596 emulate sh 20597 NULLCMD=: 20598 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20599 # is contrary to our usage. Disable this feature. 20600 alias -g '${1+"$@"}'='"$@"' 20601 setopt NO_GLOB_SUBST 20602else $as_nop 20603 case `(set -o) 2>/dev/null` in #( 20604 *posix*) : 20605 set -o posix ;; #( 20606 *) : 20607 ;; 20608esac 20609fi 20610 20611 20612 20613# Reset variables that may have inherited troublesome values from 20614# the environment. 20615 20616# IFS needs to be set, to space, tab, and newline, in precisely that order. 20617# (If _AS_PATH_WALK were called with IFS unset, it would have the 20618# side effect of setting IFS to empty, thus disabling word splitting.) 20619# Quoting is to prevent editors from complaining about space-tab. 20620as_nl=' 20621' 20622export as_nl 20623IFS=" "" $as_nl" 20624 20625PS1='$ ' 20626PS2='> ' 20627PS4='+ ' 20628 20629# Ensure predictable behavior from utilities with locale-dependent output. 20630LC_ALL=C 20631export LC_ALL 20632LANGUAGE=C 20633export LANGUAGE 20634 20635# We cannot yet rely on "unset" to work, but we need these variables 20636# to be unset--not just set to an empty or harmless value--now, to 20637# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20638# also avoids known problems related to "unset" and subshell syntax 20639# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20640for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20641do eval test \${$as_var+y} \ 20642 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20643done 20644 20645# Ensure that fds 0, 1, and 2 are open. 20646if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20647if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20648if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20649 20650# The user is always right. 20651if ${PATH_SEPARATOR+false} :; then 20652 PATH_SEPARATOR=: 20653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20654 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20655 PATH_SEPARATOR=';' 20656 } 20657fi 20658 20659 20660# Find who we are. Look in the path if we contain no directory separator. 20661as_myself= 20662case $0 in #(( 20663 *[\\/]* ) as_myself=$0 ;; 20664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20665for as_dir in $PATH 20666do 20667 IFS=$as_save_IFS 20668 case $as_dir in #((( 20669 '') as_dir=./ ;; 20670 */) ;; 20671 *) as_dir=$as_dir/ ;; 20672 esac 20673 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20674 done 20675IFS=$as_save_IFS 20676 20677 ;; 20678esac 20679# We did not find ourselves, most probably we were run as `sh COMMAND' 20680# in which case we are not to be found in the path. 20681if test "x$as_myself" = x; then 20682 as_myself=$0 20683fi 20684if test ! -f "$as_myself"; then 20685 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20686 exit 1 20687fi 20688 20689 20690 20691# as_fn_error STATUS ERROR [LINENO LOG_FD] 20692# ---------------------------------------- 20693# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20694# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20695# script with STATUS, using 1 if that was 0. 20696as_fn_error () 20697{ 20698 as_status=$1; test $as_status -eq 0 && as_status=1 20699 if test "$4"; then 20700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20702 fi 20703 printf "%s\n" "$as_me: error: $2" >&2 20704 as_fn_exit $as_status 20705} # as_fn_error 20706 20707 20708 20709# as_fn_set_status STATUS 20710# ----------------------- 20711# Set $? to STATUS, without forking. 20712as_fn_set_status () 20713{ 20714 return $1 20715} # as_fn_set_status 20716 20717# as_fn_exit STATUS 20718# ----------------- 20719# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20720as_fn_exit () 20721{ 20722 set +e 20723 as_fn_set_status $1 20724 exit $1 20725} # as_fn_exit 20726 20727# as_fn_unset VAR 20728# --------------- 20729# Portably unset VAR. 20730as_fn_unset () 20731{ 20732 { eval $1=; unset $1;} 20733} 20734as_unset=as_fn_unset 20735 20736# as_fn_append VAR VALUE 20737# ---------------------- 20738# Append the text in VALUE to the end of the definition contained in VAR. Take 20739# advantage of any shell optimizations that allow amortized linear growth over 20740# repeated appends, instead of the typical quadratic growth present in naive 20741# implementations. 20742if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20743then : 20744 eval 'as_fn_append () 20745 { 20746 eval $1+=\$2 20747 }' 20748else $as_nop 20749 as_fn_append () 20750 { 20751 eval $1=\$$1\$2 20752 } 20753fi # as_fn_append 20754 20755# as_fn_arith ARG... 20756# ------------------ 20757# Perform arithmetic evaluation on the ARGs, and store the result in the 20758# global $as_val. Take advantage of shells that can avoid forks. The arguments 20759# must be portable across $(()) and expr. 20760if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20761then : 20762 eval 'as_fn_arith () 20763 { 20764 as_val=$(( $* )) 20765 }' 20766else $as_nop 20767 as_fn_arith () 20768 { 20769 as_val=`expr "$@" || test $? -eq 1` 20770 } 20771fi # as_fn_arith 20772 20773 20774if expr a : '\(a\)' >/dev/null 2>&1 && 20775 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20776 as_expr=expr 20777else 20778 as_expr=false 20779fi 20780 20781if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20782 as_basename=basename 20783else 20784 as_basename=false 20785fi 20786 20787if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20788 as_dirname=dirname 20789else 20790 as_dirname=false 20791fi 20792 20793as_me=`$as_basename -- "$0" || 20794$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20795 X"$0" : 'X\(//\)$' \| \ 20796 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20797printf "%s\n" X/"$0" | 20798 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20799 s//\1/ 20800 q 20801 } 20802 /^X\/\(\/\/\)$/{ 20803 s//\1/ 20804 q 20805 } 20806 /^X\/\(\/\).*/{ 20807 s//\1/ 20808 q 20809 } 20810 s/.*/./; q'` 20811 20812# Avoid depending upon Character Ranges. 20813as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20814as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20815as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20816as_cr_digits='0123456789' 20817as_cr_alnum=$as_cr_Letters$as_cr_digits 20818 20819 20820# Determine whether it's possible to make 'echo' print without a newline. 20821# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20822# for compatibility with existing Makefiles. 20823ECHO_C= ECHO_N= ECHO_T= 20824case `echo -n x` in #((((( 20825-n*) 20826 case `echo 'xy\c'` in 20827 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20828 xy) ECHO_C='\c';; 20829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20830 ECHO_T=' ';; 20831 esac;; 20832*) 20833 ECHO_N='-n';; 20834esac 20835 20836# For backward compatibility with old third-party macros, we provide 20837# the shell variables $as_echo and $as_echo_n. New code should use 20838# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20839as_echo='printf %s\n' 20840as_echo_n='printf %s' 20841 20842rm -f conf$$ conf$$.exe conf$$.file 20843if test -d conf$$.dir; then 20844 rm -f conf$$.dir/conf$$.file 20845else 20846 rm -f conf$$.dir 20847 mkdir conf$$.dir 2>/dev/null 20848fi 20849if (echo >conf$$.file) 2>/dev/null; then 20850 if ln -s conf$$.file conf$$ 2>/dev/null; then 20851 as_ln_s='ln -s' 20852 # ... but there are two gotchas: 20853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20855 # In both cases, we have to default to `cp -pR'. 20856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20857 as_ln_s='cp -pR' 20858 elif ln conf$$.file conf$$ 2>/dev/null; then 20859 as_ln_s=ln 20860 else 20861 as_ln_s='cp -pR' 20862 fi 20863else 20864 as_ln_s='cp -pR' 20865fi 20866rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20867rmdir conf$$.dir 2>/dev/null 20868 20869 20870# as_fn_mkdir_p 20871# ------------- 20872# Create "$as_dir" as a directory, including parents if necessary. 20873as_fn_mkdir_p () 20874{ 20875 20876 case $as_dir in #( 20877 -*) as_dir=./$as_dir;; 20878 esac 20879 test -d "$as_dir" || eval $as_mkdir_p || { 20880 as_dirs= 20881 while :; do 20882 case $as_dir in #( 20883 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20884 *) as_qdir=$as_dir;; 20885 esac 20886 as_dirs="'$as_qdir' $as_dirs" 20887 as_dir=`$as_dirname -- "$as_dir" || 20888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20889 X"$as_dir" : 'X\(//\)[^/]' \| \ 20890 X"$as_dir" : 'X\(//\)$' \| \ 20891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20892printf "%s\n" X"$as_dir" | 20893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20894 s//\1/ 20895 q 20896 } 20897 /^X\(\/\/\)[^/].*/{ 20898 s//\1/ 20899 q 20900 } 20901 /^X\(\/\/\)$/{ 20902 s//\1/ 20903 q 20904 } 20905 /^X\(\/\).*/{ 20906 s//\1/ 20907 q 20908 } 20909 s/.*/./; q'` 20910 test -d "$as_dir" && break 20911 done 20912 test -z "$as_dirs" || eval "mkdir $as_dirs" 20913 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20914 20915 20916} # as_fn_mkdir_p 20917if mkdir -p . 2>/dev/null; then 20918 as_mkdir_p='mkdir -p "$as_dir"' 20919else 20920 test -d ./-p && rmdir ./-p 20921 as_mkdir_p=false 20922fi 20923 20924 20925# as_fn_executable_p FILE 20926# ----------------------- 20927# Test if FILE is an executable regular file. 20928as_fn_executable_p () 20929{ 20930 test -f "$1" && test -x "$1" 20931} # as_fn_executable_p 20932as_test_x='test -x' 20933as_executable_p=as_fn_executable_p 20934 20935# Sed expression to map a string onto a valid CPP name. 20936as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20937 20938# Sed expression to map a string onto a valid variable name. 20939as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20940 20941 20942exec 6>&1 20943## ----------------------------------- ## 20944## Main body of $CONFIG_STATUS script. ## 20945## ----------------------------------- ## 20946_ASEOF 20947test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20948 20949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20950# Save the log message, to keep $0 and so on meaningful, and to 20951# report actual input values of CONFIG_FILES etc. instead of their 20952# values after options handling. 20953ac_log=" 20954This file was extended by libXi $as_me 1.8.1, which was 20955generated by GNU Autoconf 2.71. Invocation command line was 20956 20957 CONFIG_FILES = $CONFIG_FILES 20958 CONFIG_HEADERS = $CONFIG_HEADERS 20959 CONFIG_LINKS = $CONFIG_LINKS 20960 CONFIG_COMMANDS = $CONFIG_COMMANDS 20961 $ $0 $@ 20962 20963on `(hostname || uname -n) 2>/dev/null | sed 1q` 20964" 20965 20966_ACEOF 20967 20968case $ac_config_files in *" 20969"*) set x $ac_config_files; shift; ac_config_files=$*;; 20970esac 20971 20972case $ac_config_headers in *" 20973"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20974esac 20975 20976 20977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20978# Files that config.status was made for. 20979config_files="$ac_config_files" 20980config_headers="$ac_config_headers" 20981config_commands="$ac_config_commands" 20982 20983_ACEOF 20984 20985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20986ac_cs_usage="\ 20987\`$as_me' instantiates files and other configuration actions 20988from templates according to the current configuration. Unless the files 20989and actions are specified as TAGs, all are instantiated by default. 20990 20991Usage: $0 [OPTION]... [TAG]... 20992 20993 -h, --help print this help, then exit 20994 -V, --version print version number and configuration settings, then exit 20995 --config print configuration, then exit 20996 -q, --quiet, --silent 20997 do not print progress messages 20998 -d, --debug don't remove temporary files 20999 --recheck update $as_me by reconfiguring in the same conditions 21000 --file=FILE[:TEMPLATE] 21001 instantiate the configuration file FILE 21002 --header=FILE[:TEMPLATE] 21003 instantiate the configuration header FILE 21004 21005Configuration files: 21006$config_files 21007 21008Configuration headers: 21009$config_headers 21010 21011Configuration commands: 21012$config_commands 21013 21014Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>." 21015 21016_ACEOF 21017ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21018ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21020ac_cs_config='$ac_cs_config_escaped' 21021ac_cs_version="\\ 21022libXi config.status 1.8.1 21023configured by $0, generated by GNU Autoconf 2.71, 21024 with options \\"\$ac_cs_config\\" 21025 21026Copyright (C) 2021 Free Software Foundation, Inc. 21027This config.status script is free software; the Free Software Foundation 21028gives unlimited permission to copy, distribute and modify it." 21029 21030ac_pwd='$ac_pwd' 21031srcdir='$srcdir' 21032INSTALL='$INSTALL' 21033MKDIR_P='$MKDIR_P' 21034AWK='$AWK' 21035test -n "\$AWK" || AWK=awk 21036_ACEOF 21037 21038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21039# The default lists apply if the user does not specify any file. 21040ac_need_defaults=: 21041while test $# != 0 21042do 21043 case $1 in 21044 --*=?*) 21045 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21046 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21047 ac_shift=: 21048 ;; 21049 --*=) 21050 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21051 ac_optarg= 21052 ac_shift=: 21053 ;; 21054 *) 21055 ac_option=$1 21056 ac_optarg=$2 21057 ac_shift=shift 21058 ;; 21059 esac 21060 21061 case $ac_option in 21062 # Handling of the options. 21063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21064 ac_cs_recheck=: ;; 21065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21066 printf "%s\n" "$ac_cs_version"; exit ;; 21067 --config | --confi | --conf | --con | --co | --c ) 21068 printf "%s\n" "$ac_cs_config"; exit ;; 21069 --debug | --debu | --deb | --de | --d | -d ) 21070 debug=: ;; 21071 --file | --fil | --fi | --f ) 21072 $ac_shift 21073 case $ac_optarg in 21074 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21075 '') as_fn_error $? "missing file argument" ;; 21076 esac 21077 as_fn_append CONFIG_FILES " '$ac_optarg'" 21078 ac_need_defaults=false;; 21079 --header | --heade | --head | --hea ) 21080 $ac_shift 21081 case $ac_optarg in 21082 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21083 esac 21084 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21085 ac_need_defaults=false;; 21086 --he | --h) 21087 # Conflict between --help and --header 21088 as_fn_error $? "ambiguous option: \`$1' 21089Try \`$0 --help' for more information.";; 21090 --help | --hel | -h ) 21091 printf "%s\n" "$ac_cs_usage"; exit ;; 21092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21093 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21094 ac_cs_silent=: ;; 21095 21096 # This is an error. 21097 -*) as_fn_error $? "unrecognized option: \`$1' 21098Try \`$0 --help' for more information." ;; 21099 21100 *) as_fn_append ac_config_targets " $1" 21101 ac_need_defaults=false ;; 21102 21103 esac 21104 shift 21105done 21106 21107ac_configure_extra_args= 21108 21109if $ac_cs_silent; then 21110 exec 6>/dev/null 21111 ac_configure_extra_args="$ac_configure_extra_args --silent" 21112fi 21113 21114_ACEOF 21115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21116if \$ac_cs_recheck; then 21117 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21118 shift 21119 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21120 CONFIG_SHELL='$SHELL' 21121 export CONFIG_SHELL 21122 exec "\$@" 21123fi 21124 21125_ACEOF 21126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21127exec 5>>config.log 21128{ 21129 echo 21130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21131## Running $as_me. ## 21132_ASBOX 21133 printf "%s\n" "$ac_log" 21134} >&5 21135 21136_ACEOF 21137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21138# 21139# INIT-COMMANDS 21140# 21141AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21142 21143 21144# The HP-UX ksh and POSIX shell print the target directory to stdout 21145# if CDPATH is set. 21146(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21147 21148sed_quote_subst='$sed_quote_subst' 21149double_quote_subst='$double_quote_subst' 21150delay_variable_subst='$delay_variable_subst' 21151macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21152macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21153enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21154enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21155pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21156enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21157shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21158SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21159ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21160PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21161host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21162host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21163host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21164build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21165build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21166build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21167SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21168Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21169GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21170EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21171FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21172LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21173NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21174LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21175max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21176ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21177exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21178lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21179lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21180lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21181lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21182lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21183reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21184reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21185FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21186OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21187deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21188file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21189file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21190want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21191DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21192sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21193AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21194lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21195AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21196archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21197STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21198RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21199old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21200old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21201old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21202lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21203CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21204CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21205compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21206GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21207lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21208lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21209lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21210lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21211lt_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"`' 21212lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21213nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21214lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21215lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21216objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21217MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21218lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21219lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21220lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21221lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21222lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21223need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21224MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21225DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21226NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21227LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21228OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21229OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21230libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21231shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21232extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21233archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21234enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21235export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21236whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21237compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21238old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21239old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21240archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21241archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21242module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21243module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21244with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21245allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21246no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21247hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21248hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21249hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21250hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21251hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21252hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21253hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21254inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21255link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21256always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21257export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21258exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21259include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21260prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21261postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21262file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21263variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21264need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21265need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21266version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21267runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21268shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21269shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21270libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21271library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21272soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21273install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21274postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21275postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21276finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21277finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21278hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21279sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21280configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21281configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21282hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21283enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21284enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21285enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21286old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21287striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21288 21289LTCC='$LTCC' 21290LTCFLAGS='$LTCFLAGS' 21291compiler='$compiler_DEFAULT' 21292 21293# A function that is used when there is no print builtin or printf. 21294func_fallback_echo () 21295{ 21296 eval 'cat <<_LTECHO_EOF 21297\$1 21298_LTECHO_EOF' 21299} 21300 21301# Quote evaled strings. 21302for var in SHELL \ 21303ECHO \ 21304PATH_SEPARATOR \ 21305SED \ 21306GREP \ 21307EGREP \ 21308FGREP \ 21309LD \ 21310NM \ 21311LN_S \ 21312lt_SP2NL \ 21313lt_NL2SP \ 21314reload_flag \ 21315FILECMD \ 21316OBJDUMP \ 21317deplibs_check_method \ 21318file_magic_cmd \ 21319file_magic_glob \ 21320want_nocaseglob \ 21321DLLTOOL \ 21322sharedlib_from_linklib_cmd \ 21323AR \ 21324archiver_list_spec \ 21325STRIP \ 21326RANLIB \ 21327CC \ 21328CFLAGS \ 21329compiler \ 21330lt_cv_sys_global_symbol_pipe \ 21331lt_cv_sys_global_symbol_to_cdecl \ 21332lt_cv_sys_global_symbol_to_import \ 21333lt_cv_sys_global_symbol_to_c_name_address \ 21334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21335lt_cv_nm_interface \ 21336nm_file_list_spec \ 21337lt_cv_truncate_bin \ 21338lt_prog_compiler_no_builtin_flag \ 21339lt_prog_compiler_pic \ 21340lt_prog_compiler_wl \ 21341lt_prog_compiler_static \ 21342lt_cv_prog_compiler_c_o \ 21343need_locks \ 21344MANIFEST_TOOL \ 21345DSYMUTIL \ 21346NMEDIT \ 21347LIPO \ 21348OTOOL \ 21349OTOOL64 \ 21350shrext_cmds \ 21351export_dynamic_flag_spec \ 21352whole_archive_flag_spec \ 21353compiler_needs_object \ 21354with_gnu_ld \ 21355allow_undefined_flag \ 21356no_undefined_flag \ 21357hardcode_libdir_flag_spec \ 21358hardcode_libdir_separator \ 21359exclude_expsyms \ 21360include_expsyms \ 21361file_list_spec \ 21362variables_saved_for_relink \ 21363libname_spec \ 21364library_names_spec \ 21365soname_spec \ 21366install_override_mode \ 21367finish_eval \ 21368old_striplib \ 21369striplib; do 21370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21371 *[\\\\\\\`\\"\\\$]*) 21372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21373 ;; 21374 *) 21375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21376 ;; 21377 esac 21378done 21379 21380# Double-quote double-evaled strings. 21381for var in reload_cmds \ 21382old_postinstall_cmds \ 21383old_postuninstall_cmds \ 21384old_archive_cmds \ 21385extract_expsyms_cmds \ 21386old_archive_from_new_cmds \ 21387old_archive_from_expsyms_cmds \ 21388archive_cmds \ 21389archive_expsym_cmds \ 21390module_cmds \ 21391module_expsym_cmds \ 21392export_symbols_cmds \ 21393prelink_cmds \ 21394postlink_cmds \ 21395postinstall_cmds \ 21396postuninstall_cmds \ 21397finish_cmds \ 21398sys_lib_search_path_spec \ 21399configure_time_dlsearch_path \ 21400configure_time_lt_sys_library_path; do 21401 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21402 *[\\\\\\\`\\"\\\$]*) 21403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21404 ;; 21405 *) 21406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21407 ;; 21408 esac 21409done 21410 21411ac_aux_dir='$ac_aux_dir' 21412 21413# See if we are running on zsh, and set the options that allow our 21414# commands through without removal of \ escapes INIT. 21415if test -n "\${ZSH_VERSION+set}"; then 21416 setopt NO_GLOB_SUBST 21417fi 21418 21419 21420 PACKAGE='$PACKAGE' 21421 VERSION='$VERSION' 21422 RM='$RM' 21423 ofile='$ofile' 21424 21425 21426 21427 21428_ACEOF 21429 21430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21431 21432# Handling of arguments. 21433for ac_config_target in $ac_config_targets 21434do 21435 case $ac_config_target in 21436 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21437 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21438 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21439 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21440 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21441 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21442 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21443 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 21444 21445 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21446 esac 21447done 21448 21449 21450# If the user did not use the arguments to specify the items to instantiate, 21451# then the envvar interface is used. Set only those that are not. 21452# We use the long form for the default assignment because of an extremely 21453# bizarre bug on SunOS 4.1.3. 21454if $ac_need_defaults; then 21455 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21456 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21457 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21458fi 21459 21460# Have a temporary directory for convenience. Make it in the build tree 21461# simply because there is no reason against having it here, and in addition, 21462# creating and moving files from /tmp can sometimes cause problems. 21463# Hook for its removal unless debugging. 21464# Note that there is a small window in which the directory will not be cleaned: 21465# after its creation but before its name has been assigned to `$tmp'. 21466$debug || 21467{ 21468 tmp= ac_tmp= 21469 trap 'exit_status=$? 21470 : "${ac_tmp:=$tmp}" 21471 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21472' 0 21473 trap 'as_fn_exit 1' 1 2 13 15 21474} 21475# Create a (secure) tmp directory for tmp files. 21476 21477{ 21478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21479 test -d "$tmp" 21480} || 21481{ 21482 tmp=./conf$$-$RANDOM 21483 (umask 077 && mkdir "$tmp") 21484} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21485ac_tmp=$tmp 21486 21487# Set up the scripts for CONFIG_FILES section. 21488# No need to generate them if there are no CONFIG_FILES. 21489# This happens for instance with `./config.status config.h'. 21490if test -n "$CONFIG_FILES"; then 21491 21492 21493ac_cr=`echo X | tr X '\015'` 21494# On cygwin, bash can eat \r inside `` if the user requested igncr. 21495# But we know of no other shell where ac_cr would be empty at this 21496# point, so we can use a bashism as a fallback. 21497if test "x$ac_cr" = x; then 21498 eval ac_cr=\$\'\\r\' 21499fi 21500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21502 ac_cs_awk_cr='\\r' 21503else 21504 ac_cs_awk_cr=$ac_cr 21505fi 21506 21507echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21508_ACEOF 21509 21510 21511{ 21512 echo "cat >conf$$subs.awk <<_ACEOF" && 21513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21514 echo "_ACEOF" 21515} >conf$$subs.sh || 21516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21517ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21518ac_delim='%!_!# ' 21519for ac_last_try in false false false false false :; do 21520 . ./conf$$subs.sh || 21521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21522 21523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21524 if test $ac_delim_n = $ac_delim_num; then 21525 break 21526 elif $ac_last_try; then 21527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21528 else 21529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21530 fi 21531done 21532rm -f conf$$subs.sh 21533 21534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21535cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21536_ACEOF 21537sed -n ' 21538h 21539s/^/S["/; s/!.*/"]=/ 21540p 21541g 21542s/^[^!]*!// 21543:repl 21544t repl 21545s/'"$ac_delim"'$// 21546t delim 21547:nl 21548h 21549s/\(.\{148\}\)..*/\1/ 21550t more1 21551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21552p 21553n 21554b repl 21555:more1 21556s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21557p 21558g 21559s/.\{148\}// 21560t nl 21561:delim 21562h 21563s/\(.\{148\}\)..*/\1/ 21564t more2 21565s/["\\]/\\&/g; s/^/"/; s/$/"/ 21566p 21567b 21568:more2 21569s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21570p 21571g 21572s/.\{148\}// 21573t delim 21574' <conf$$subs.awk | sed ' 21575/^[^""]/{ 21576 N 21577 s/\n// 21578} 21579' >>$CONFIG_STATUS || ac_write_fail=1 21580rm -f conf$$subs.awk 21581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21582_ACAWK 21583cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21584 for (key in S) S_is_set[key] = 1 21585 FS = "" 21586 21587} 21588{ 21589 line = $ 0 21590 nfields = split(line, field, "@") 21591 substed = 0 21592 len = length(field[1]) 21593 for (i = 2; i < nfields; i++) { 21594 key = field[i] 21595 keylen = length(key) 21596 if (S_is_set[key]) { 21597 value = S[key] 21598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21599 len += length(value) + length(field[++i]) 21600 substed = 1 21601 } else 21602 len += 1 + keylen 21603 } 21604 21605 print line 21606} 21607 21608_ACAWK 21609_ACEOF 21610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21613else 21614 cat 21615fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21616 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21617_ACEOF 21618 21619# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21620# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21621# trailing colons and then remove the whole line if VPATH becomes empty 21622# (actually we leave an empty line to preserve line numbers). 21623if test "x$srcdir" = x.; then 21624 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21625h 21626s/// 21627s/^/:/ 21628s/[ ]*$/:/ 21629s/:\$(srcdir):/:/g 21630s/:\${srcdir}:/:/g 21631s/:@srcdir@:/:/g 21632s/^:*// 21633s/:*$// 21634x 21635s/\(=[ ]*\).*/\1/ 21636G 21637s/\n// 21638s/^[^=]*=[ ]*$// 21639}' 21640fi 21641 21642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21643fi # test -n "$CONFIG_FILES" 21644 21645# Set up the scripts for CONFIG_HEADERS section. 21646# No need to generate them if there are no CONFIG_HEADERS. 21647# This happens for instance with `./config.status Makefile'. 21648if test -n "$CONFIG_HEADERS"; then 21649cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21650BEGIN { 21651_ACEOF 21652 21653# Transform confdefs.h into an awk script `defines.awk', embedded as 21654# here-document in config.status, that substitutes the proper values into 21655# config.h.in to produce config.h. 21656 21657# Create a delimiter string that does not exist in confdefs.h, to ease 21658# handling of long lines. 21659ac_delim='%!_!# ' 21660for ac_last_try in false false :; do 21661 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21662 if test -z "$ac_tt"; then 21663 break 21664 elif $ac_last_try; then 21665 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21666 else 21667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21668 fi 21669done 21670 21671# For the awk script, D is an array of macro values keyed by name, 21672# likewise P contains macro parameters if any. Preserve backslash 21673# newline sequences. 21674 21675ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21676sed -n ' 21677s/.\{148\}/&'"$ac_delim"'/g 21678t rset 21679:rset 21680s/^[ ]*#[ ]*define[ ][ ]*/ / 21681t def 21682d 21683:def 21684s/\\$// 21685t bsnl 21686s/["\\]/\\&/g 21687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21688D["\1"]=" \3"/p 21689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21690d 21691:bsnl 21692s/["\\]/\\&/g 21693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21694D["\1"]=" \3\\\\\\n"\\/p 21695t cont 21696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21697t cont 21698d 21699:cont 21700n 21701s/.\{148\}/&'"$ac_delim"'/g 21702t clear 21703:clear 21704s/\\$// 21705t bsnlc 21706s/["\\]/\\&/g; s/^/"/; s/$/"/p 21707d 21708:bsnlc 21709s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21710b cont 21711' <confdefs.h | sed ' 21712s/'"$ac_delim"'/"\\\ 21713"/g' >>$CONFIG_STATUS || ac_write_fail=1 21714 21715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21716 for (key in D) D_is_set[key] = 1 21717 FS = "" 21718} 21719/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21720 line = \$ 0 21721 split(line, arg, " ") 21722 if (arg[1] == "#") { 21723 defundef = arg[2] 21724 mac1 = arg[3] 21725 } else { 21726 defundef = substr(arg[1], 2) 21727 mac1 = arg[2] 21728 } 21729 split(mac1, mac2, "(") #) 21730 macro = mac2[1] 21731 prefix = substr(line, 1, index(line, defundef) - 1) 21732 if (D_is_set[macro]) { 21733 # Preserve the white space surrounding the "#". 21734 print prefix "define", macro P[macro] D[macro] 21735 next 21736 } else { 21737 # Replace #undef with comments. This is necessary, for example, 21738 # in the case of _POSIX_SOURCE, which is predefined and required 21739 # on some systems where configure will not decide to define it. 21740 if (defundef == "undef") { 21741 print "/*", prefix defundef, macro, "*/" 21742 next 21743 } 21744 } 21745} 21746{ print } 21747_ACAWK 21748_ACEOF 21749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21750 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21751fi # test -n "$CONFIG_HEADERS" 21752 21753 21754eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21755shift 21756for ac_tag 21757do 21758 case $ac_tag in 21759 :[FHLC]) ac_mode=$ac_tag; continue;; 21760 esac 21761 case $ac_mode$ac_tag in 21762 :[FHL]*:*);; 21763 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21764 :[FH]-) ac_tag=-:-;; 21765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21766 esac 21767 ac_save_IFS=$IFS 21768 IFS=: 21769 set x $ac_tag 21770 IFS=$ac_save_IFS 21771 shift 21772 ac_file=$1 21773 shift 21774 21775 case $ac_mode in 21776 :L) ac_source=$1;; 21777 :[FH]) 21778 ac_file_inputs= 21779 for ac_f 21780 do 21781 case $ac_f in 21782 -) ac_f="$ac_tmp/stdin";; 21783 *) # Look for the file first in the build tree, then in the source tree 21784 # (if the path is not absolute). The absolute path cannot be DOS-style, 21785 # because $ac_f cannot contain `:'. 21786 test -f "$ac_f" || 21787 case $ac_f in 21788 [\\/$]*) false;; 21789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21790 esac || 21791 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21792 esac 21793 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21794 as_fn_append ac_file_inputs " '$ac_f'" 21795 done 21796 21797 # Let's still pretend it is `configure' which instantiates (i.e., don't 21798 # use $as_me), people would be surprised to read: 21799 # /* config.h. Generated by config.status. */ 21800 configure_input='Generated from '` 21801 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21802 `' by configure.' 21803 if test x"$ac_file" != x-; then 21804 configure_input="$ac_file. $configure_input" 21805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21806printf "%s\n" "$as_me: creating $ac_file" >&6;} 21807 fi 21808 # Neutralize special characters interpreted by sed in replacement strings. 21809 case $configure_input in #( 21810 *\&* | *\|* | *\\* ) 21811 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21812 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21813 *) ac_sed_conf_input=$configure_input;; 21814 esac 21815 21816 case $ac_tag in 21817 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21819 esac 21820 ;; 21821 esac 21822 21823 ac_dir=`$as_dirname -- "$ac_file" || 21824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21825 X"$ac_file" : 'X\(//\)[^/]' \| \ 21826 X"$ac_file" : 'X\(//\)$' \| \ 21827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21828printf "%s\n" X"$ac_file" | 21829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21830 s//\1/ 21831 q 21832 } 21833 /^X\(\/\/\)[^/].*/{ 21834 s//\1/ 21835 q 21836 } 21837 /^X\(\/\/\)$/{ 21838 s//\1/ 21839 q 21840 } 21841 /^X\(\/\).*/{ 21842 s//\1/ 21843 q 21844 } 21845 s/.*/./; q'` 21846 as_dir="$ac_dir"; as_fn_mkdir_p 21847 ac_builddir=. 21848 21849case "$ac_dir" in 21850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21851*) 21852 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21853 # A ".." for each directory in $ac_dir_suffix. 21854 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21855 case $ac_top_builddir_sub in 21856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21858 esac ;; 21859esac 21860ac_abs_top_builddir=$ac_pwd 21861ac_abs_builddir=$ac_pwd$ac_dir_suffix 21862# for backward compatibility: 21863ac_top_builddir=$ac_top_build_prefix 21864 21865case $srcdir in 21866 .) # We are building in place. 21867 ac_srcdir=. 21868 ac_top_srcdir=$ac_top_builddir_sub 21869 ac_abs_top_srcdir=$ac_pwd ;; 21870 [\\/]* | ?:[\\/]* ) # Absolute name. 21871 ac_srcdir=$srcdir$ac_dir_suffix; 21872 ac_top_srcdir=$srcdir 21873 ac_abs_top_srcdir=$srcdir ;; 21874 *) # Relative name. 21875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21876 ac_top_srcdir=$ac_top_build_prefix$srcdir 21877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21878esac 21879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21880 21881 21882 case $ac_mode in 21883 :F) 21884 # 21885 # CONFIG_FILE 21886 # 21887 21888 case $INSTALL in 21889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21890 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21891 esac 21892 ac_MKDIR_P=$MKDIR_P 21893 case $MKDIR_P in 21894 [\\/$]* | ?:[\\/]* ) ;; 21895 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21896 esac 21897_ACEOF 21898 21899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21900# If the template does not know about datarootdir, expand it. 21901# FIXME: This hack should be removed a few years after 2.60. 21902ac_datarootdir_hack=; ac_datarootdir_seen= 21903ac_sed_dataroot=' 21904/datarootdir/ { 21905 p 21906 q 21907} 21908/@datadir@/p 21909/@docdir@/p 21910/@infodir@/p 21911/@localedir@/p 21912/@mandir@/p' 21913case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21914*datarootdir*) ac_datarootdir_seen=yes;; 21915*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21917printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21918_ACEOF 21919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21920 ac_datarootdir_hack=' 21921 s&@datadir@&$datadir&g 21922 s&@docdir@&$docdir&g 21923 s&@infodir@&$infodir&g 21924 s&@localedir@&$localedir&g 21925 s&@mandir@&$mandir&g 21926 s&\\\${datarootdir}&$datarootdir&g' ;; 21927esac 21928_ACEOF 21929 21930# Neutralize VPATH when `$srcdir' = `.'. 21931# Shell code in configure.ac might set extrasub. 21932# FIXME: do we really want to maintain this feature? 21933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21934ac_sed_extra="$ac_vpsub 21935$extrasub 21936_ACEOF 21937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21938:t 21939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21940s|@configure_input@|$ac_sed_conf_input|;t t 21941s&@top_builddir@&$ac_top_builddir_sub&;t t 21942s&@top_build_prefix@&$ac_top_build_prefix&;t t 21943s&@srcdir@&$ac_srcdir&;t t 21944s&@abs_srcdir@&$ac_abs_srcdir&;t t 21945s&@top_srcdir@&$ac_top_srcdir&;t t 21946s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21947s&@builddir@&$ac_builddir&;t t 21948s&@abs_builddir@&$ac_abs_builddir&;t t 21949s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21950s&@INSTALL@&$ac_INSTALL&;t t 21951s&@MKDIR_P@&$ac_MKDIR_P&;t t 21952$ac_datarootdir_hack 21953" 21954eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21955 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21956 21957test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21958 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21960 "$ac_tmp/out"`; test -z "$ac_out"; } && 21961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21962which seems to be undefined. Please make sure it is defined" >&5 21963printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21964which seems to be undefined. Please make sure it is defined" >&2;} 21965 21966 rm -f "$ac_tmp/stdin" 21967 case $ac_file in 21968 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21969 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21970 esac \ 21971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21972 ;; 21973 :H) 21974 # 21975 # CONFIG_HEADER 21976 # 21977 if test x"$ac_file" != x-; then 21978 { 21979 printf "%s\n" "/* $configure_input */" >&1 \ 21980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21981 } >"$ac_tmp/config.h" \ 21982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21983 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21985printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21986 else 21987 rm -f "$ac_file" 21988 mv "$ac_tmp/config.h" "$ac_file" \ 21989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21990 fi 21991 else 21992 printf "%s\n" "/* $configure_input */" >&1 \ 21993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21994 || as_fn_error $? "could not create -" "$LINENO" 5 21995 fi 21996# Compute "$ac_file"'s index in $config_headers. 21997_am_arg="$ac_file" 21998_am_stamp_count=1 21999for _am_header in $config_headers :; do 22000 case $_am_header in 22001 $_am_arg | $_am_arg:* ) 22002 break ;; 22003 * ) 22004 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22005 esac 22006done 22007echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22008$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22009 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22010 X"$_am_arg" : 'X\(//\)$' \| \ 22011 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22012printf "%s\n" X"$_am_arg" | 22013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22014 s//\1/ 22015 q 22016 } 22017 /^X\(\/\/\)[^/].*/{ 22018 s//\1/ 22019 q 22020 } 22021 /^X\(\/\/\)$/{ 22022 s//\1/ 22023 q 22024 } 22025 /^X\(\/\).*/{ 22026 s//\1/ 22027 q 22028 } 22029 s/.*/./; q'`/stamp-h$_am_stamp_count 22030 ;; 22031 22032 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22033printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22034 ;; 22035 esac 22036 22037 22038 case $ac_file$ac_mode in 22039 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22040 # Older Autoconf quotes --file arguments for eval, but not when files 22041 # are listed without --file. Let's play safe and only enable the eval 22042 # if we detect the quoting. 22043 # TODO: see whether this extra hack can be removed once we start 22044 # requiring Autoconf 2.70 or later. 22045 case $CONFIG_FILES in #( 22046 *\'*) : 22047 eval set x "$CONFIG_FILES" ;; #( 22048 *) : 22049 set x $CONFIG_FILES ;; #( 22050 *) : 22051 ;; 22052esac 22053 shift 22054 # Used to flag and report bootstrapping failures. 22055 am_rc=0 22056 for am_mf 22057 do 22058 # Strip MF so we end up with the name of the file. 22059 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22060 # Check whether this is an Automake generated Makefile which includes 22061 # dependency-tracking related rules and includes. 22062 # Grep'ing the whole file directly is not great: AIX grep has a line 22063 # limit of 2048, but all sed's we know have understand at least 4000. 22064 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22065 || continue 22066 am_dirpart=`$as_dirname -- "$am_mf" || 22067$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22068 X"$am_mf" : 'X\(//\)[^/]' \| \ 22069 X"$am_mf" : 'X\(//\)$' \| \ 22070 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22071printf "%s\n" X"$am_mf" | 22072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22073 s//\1/ 22074 q 22075 } 22076 /^X\(\/\/\)[^/].*/{ 22077 s//\1/ 22078 q 22079 } 22080 /^X\(\/\/\)$/{ 22081 s//\1/ 22082 q 22083 } 22084 /^X\(\/\).*/{ 22085 s//\1/ 22086 q 22087 } 22088 s/.*/./; q'` 22089 am_filepart=`$as_basename -- "$am_mf" || 22090$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22091 X"$am_mf" : 'X\(//\)$' \| \ 22092 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22093printf "%s\n" X/"$am_mf" | 22094 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22095 s//\1/ 22096 q 22097 } 22098 /^X\/\(\/\/\)$/{ 22099 s//\1/ 22100 q 22101 } 22102 /^X\/\(\/\).*/{ 22103 s//\1/ 22104 q 22105 } 22106 s/.*/./; q'` 22107 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22108 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22109 | $MAKE -f - am--depfiles" >&5 22110 (cd "$am_dirpart" \ 22111 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22112 | $MAKE -f - am--depfiles) >&5 2>&5 22113 ac_status=$? 22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22115 (exit $ac_status); } || am_rc=$? 22116 done 22117 if test $am_rc -ne 0; then 22118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22119printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22120as_fn_error $? "Something went wrong bootstrapping makefile fragments 22121 for automatic dependency tracking. If GNU make was not used, consider 22122 re-running the configure script with MAKE=\"gmake\" (or whatever is 22123 necessary). You can also try re-running configure with the 22124 '--disable-dependency-tracking' option to at least be able to build 22125 the package (albeit without support for automatic dependency tracking). 22126See \`config.log' for more details" "$LINENO" 5; } 22127 fi 22128 { am_dirpart=; unset am_dirpart;} 22129 { am_filepart=; unset am_filepart;} 22130 { am_mf=; unset am_mf;} 22131 { am_rc=; unset am_rc;} 22132 rm -f conftest-deps.mk 22133} 22134 ;; 22135 "libtool":C) 22136 22137 # See if we are running on zsh, and set the options that allow our 22138 # commands through without removal of \ escapes. 22139 if test -n "${ZSH_VERSION+set}"; then 22140 setopt NO_GLOB_SUBST 22141 fi 22142 22143 cfgfile=${ofile}T 22144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22145 $RM "$cfgfile" 22146 22147 cat <<_LT_EOF >> "$cfgfile" 22148#! $SHELL 22149# Generated automatically by $as_me ($PACKAGE) $VERSION 22150# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22151# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22152 22153# Provide generalized library-building support services. 22154# Written by Gordon Matzigkeit, 1996 22155 22156# Copyright (C) 2014 Free Software Foundation, Inc. 22157# This is free software; see the source for copying conditions. There is NO 22158# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22159 22160# GNU Libtool is free software; you can redistribute it and/or modify 22161# it under the terms of the GNU General Public License as published by 22162# the Free Software Foundation; either version 2 of of the License, or 22163# (at your option) any later version. 22164# 22165# As a special exception to the GNU General Public License, if you 22166# distribute this file as part of a program or library that is built 22167# using GNU Libtool, you may include this file under the same 22168# distribution terms that you use for the rest of that program. 22169# 22170# GNU Libtool is distributed in the hope that it will be useful, but 22171# WITHOUT ANY WARRANTY; without even the implied warranty of 22172# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22173# GNU General Public License for more details. 22174# 22175# You should have received a copy of the GNU General Public License 22176# along with this program. If not, see <http://www.gnu.org/licenses/>. 22177 22178 22179# The names of the tagged configurations supported by this script. 22180available_tags='' 22181 22182# Configured defaults for sys_lib_dlsearch_path munging. 22183: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22184 22185# ### BEGIN LIBTOOL CONFIG 22186 22187# Which release of libtool.m4 was used? 22188macro_version=$macro_version 22189macro_revision=$macro_revision 22190 22191# Whether or not to build shared libraries. 22192build_libtool_libs=$enable_shared 22193 22194# Whether or not to build static libraries. 22195build_old_libs=$enable_static 22196 22197# What type of objects to build. 22198pic_mode=$pic_mode 22199 22200# Whether or not to optimize for fast installation. 22201fast_install=$enable_fast_install 22202 22203# Shared archive member basename,for filename based shared library versioning on AIX. 22204shared_archive_member_spec=$shared_archive_member_spec 22205 22206# Shell to use when invoking shell scripts. 22207SHELL=$lt_SHELL 22208 22209# An echo program that protects backslashes. 22210ECHO=$lt_ECHO 22211 22212# The PATH separator for the build system. 22213PATH_SEPARATOR=$lt_PATH_SEPARATOR 22214 22215# The host system. 22216host_alias=$host_alias 22217host=$host 22218host_os=$host_os 22219 22220# The build system. 22221build_alias=$build_alias 22222build=$build 22223build_os=$build_os 22224 22225# A sed program that does not truncate output. 22226SED=$lt_SED 22227 22228# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22229Xsed="\$SED -e 1s/^X//" 22230 22231# A grep program that handles long lines. 22232GREP=$lt_GREP 22233 22234# An ERE matcher. 22235EGREP=$lt_EGREP 22236 22237# A literal string matcher. 22238FGREP=$lt_FGREP 22239 22240# A BSD- or MS-compatible name lister. 22241NM=$lt_NM 22242 22243# Whether we need soft or hard links. 22244LN_S=$lt_LN_S 22245 22246# What is the maximum length of a command? 22247max_cmd_len=$max_cmd_len 22248 22249# Object file suffix (normally "o"). 22250objext=$ac_objext 22251 22252# Executable file suffix (normally ""). 22253exeext=$exeext 22254 22255# whether the shell understands "unset". 22256lt_unset=$lt_unset 22257 22258# turn spaces into newlines. 22259SP2NL=$lt_lt_SP2NL 22260 22261# turn newlines into spaces. 22262NL2SP=$lt_lt_NL2SP 22263 22264# convert \$build file names to \$host format. 22265to_host_file_cmd=$lt_cv_to_host_file_cmd 22266 22267# convert \$build files to toolchain format. 22268to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22269 22270# A file(cmd) program that detects file types. 22271FILECMD=$lt_FILECMD 22272 22273# An object symbol dumper. 22274OBJDUMP=$lt_OBJDUMP 22275 22276# Method to check whether dependent libraries are shared objects. 22277deplibs_check_method=$lt_deplibs_check_method 22278 22279# Command to use when deplibs_check_method = "file_magic". 22280file_magic_cmd=$lt_file_magic_cmd 22281 22282# How to find potential files when deplibs_check_method = "file_magic". 22283file_magic_glob=$lt_file_magic_glob 22284 22285# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22286want_nocaseglob=$lt_want_nocaseglob 22287 22288# DLL creation program. 22289DLLTOOL=$lt_DLLTOOL 22290 22291# Command to associate shared and link libraries. 22292sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22293 22294# The archiver. 22295AR=$lt_AR 22296 22297# Flags to create an archive (by configure). 22298lt_ar_flags=$lt_ar_flags 22299 22300# Flags to create an archive. 22301AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22302 22303# How to feed a file listing to the archiver. 22304archiver_list_spec=$lt_archiver_list_spec 22305 22306# A symbol stripping program. 22307STRIP=$lt_STRIP 22308 22309# Commands used to install an old-style archive. 22310RANLIB=$lt_RANLIB 22311old_postinstall_cmds=$lt_old_postinstall_cmds 22312old_postuninstall_cmds=$lt_old_postuninstall_cmds 22313 22314# Whether to use a lock for old archive extraction. 22315lock_old_archive_extraction=$lock_old_archive_extraction 22316 22317# A C compiler. 22318LTCC=$lt_CC 22319 22320# LTCC compiler flags. 22321LTCFLAGS=$lt_CFLAGS 22322 22323# Take the output of nm and produce a listing of raw symbols and C names. 22324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22325 22326# Transform the output of nm in a proper C declaration. 22327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22328 22329# Transform the output of nm into a list of symbols to manually relocate. 22330global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22331 22332# Transform the output of nm in a C name address pair. 22333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22334 22335# Transform the output of nm in a C name address pair when lib prefix is needed. 22336global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22337 22338# The name lister interface. 22339nm_interface=$lt_lt_cv_nm_interface 22340 22341# Specify filename containing input files for \$NM. 22342nm_file_list_spec=$lt_nm_file_list_spec 22343 22344# The root where to search for dependent libraries,and where our libraries should be installed. 22345lt_sysroot=$lt_sysroot 22346 22347# Command to truncate a binary pipe. 22348lt_truncate_bin=$lt_lt_cv_truncate_bin 22349 22350# The name of the directory that contains temporary libtool files. 22351objdir=$objdir 22352 22353# Used to examine libraries when file_magic_cmd begins with "file". 22354MAGIC_CMD=$MAGIC_CMD 22355 22356# Must we lock files when doing compilation? 22357need_locks=$lt_need_locks 22358 22359# Manifest tool. 22360MANIFEST_TOOL=$lt_MANIFEST_TOOL 22361 22362# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22363DSYMUTIL=$lt_DSYMUTIL 22364 22365# Tool to change global to local symbols on Mac OS X. 22366NMEDIT=$lt_NMEDIT 22367 22368# Tool to manipulate fat objects and archives on Mac OS X. 22369LIPO=$lt_LIPO 22370 22371# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22372OTOOL=$lt_OTOOL 22373 22374# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22375OTOOL64=$lt_OTOOL64 22376 22377# Old archive suffix (normally "a"). 22378libext=$libext 22379 22380# Shared library suffix (normally ".so"). 22381shrext_cmds=$lt_shrext_cmds 22382 22383# The commands to extract the exported symbol list from a shared archive. 22384extract_expsyms_cmds=$lt_extract_expsyms_cmds 22385 22386# Variables whose values should be saved in libtool wrapper scripts and 22387# restored at link time. 22388variables_saved_for_relink=$lt_variables_saved_for_relink 22389 22390# Do we need the "lib" prefix for modules? 22391need_lib_prefix=$need_lib_prefix 22392 22393# Do we need a version for libraries? 22394need_version=$need_version 22395 22396# Library versioning type. 22397version_type=$version_type 22398 22399# Shared library runtime path variable. 22400runpath_var=$runpath_var 22401 22402# Shared library path variable. 22403shlibpath_var=$shlibpath_var 22404 22405# Is shlibpath searched before the hard-coded library search path? 22406shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22407 22408# Format of library name prefix. 22409libname_spec=$lt_libname_spec 22410 22411# List of archive names. First name is the real one, the rest are links. 22412# The last name is the one that the linker finds with -lNAME 22413library_names_spec=$lt_library_names_spec 22414 22415# The coded name of the library, if different from the real name. 22416soname_spec=$lt_soname_spec 22417 22418# Permission mode override for installation of shared libraries. 22419install_override_mode=$lt_install_override_mode 22420 22421# Command to use after installation of a shared archive. 22422postinstall_cmds=$lt_postinstall_cmds 22423 22424# Command to use after uninstallation of a shared archive. 22425postuninstall_cmds=$lt_postuninstall_cmds 22426 22427# Commands used to finish a libtool library installation in a directory. 22428finish_cmds=$lt_finish_cmds 22429 22430# As "finish_cmds", except a single script fragment to be evaled but 22431# not shown. 22432finish_eval=$lt_finish_eval 22433 22434# Whether we should hardcode library paths into libraries. 22435hardcode_into_libs=$hardcode_into_libs 22436 22437# Compile-time system search path for libraries. 22438sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22439 22440# Detected run-time system search path for libraries. 22441sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22442 22443# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22444configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22445 22446# Whether dlopen is supported. 22447dlopen_support=$enable_dlopen 22448 22449# Whether dlopen of programs is supported. 22450dlopen_self=$enable_dlopen_self 22451 22452# Whether dlopen of statically linked programs is supported. 22453dlopen_self_static=$enable_dlopen_self_static 22454 22455# Commands to strip libraries. 22456old_striplib=$lt_old_striplib 22457striplib=$lt_striplib 22458 22459 22460# The linker used to build libraries. 22461LD=$lt_LD 22462 22463# How to create reloadable object files. 22464reload_flag=$lt_reload_flag 22465reload_cmds=$lt_reload_cmds 22466 22467# Commands used to build an old-style archive. 22468old_archive_cmds=$lt_old_archive_cmds 22469 22470# A language specific compiler. 22471CC=$lt_compiler 22472 22473# Is the compiler the GNU compiler? 22474with_gcc=$GCC 22475 22476# Compiler flag to turn off builtin functions. 22477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22478 22479# Additional compiler flags for building library objects. 22480pic_flag=$lt_lt_prog_compiler_pic 22481 22482# How to pass a linker flag through the compiler. 22483wl=$lt_lt_prog_compiler_wl 22484 22485# Compiler flag to prevent dynamic linking. 22486link_static_flag=$lt_lt_prog_compiler_static 22487 22488# Does compiler simultaneously support -c and -o options? 22489compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22490 22491# Whether or not to add -lc for building shared libraries. 22492build_libtool_need_lc=$archive_cmds_need_lc 22493 22494# Whether or not to disallow shared libs when runtime libs are static. 22495allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22496 22497# Compiler flag to allow reflexive dlopens. 22498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22499 22500# Compiler flag to generate shared objects directly from archives. 22501whole_archive_flag_spec=$lt_whole_archive_flag_spec 22502 22503# Whether the compiler copes with passing no objects directly. 22504compiler_needs_object=$lt_compiler_needs_object 22505 22506# Create an old-style archive from a shared archive. 22507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22508 22509# Create a temporary old-style archive to link instead of a shared archive. 22510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22511 22512# Commands used to build a shared archive. 22513archive_cmds=$lt_archive_cmds 22514archive_expsym_cmds=$lt_archive_expsym_cmds 22515 22516# Commands used to build a loadable module if different from building 22517# a shared archive. 22518module_cmds=$lt_module_cmds 22519module_expsym_cmds=$lt_module_expsym_cmds 22520 22521# Whether we are building with GNU ld or not. 22522with_gnu_ld=$lt_with_gnu_ld 22523 22524# Flag that allows shared libraries with undefined symbols to be built. 22525allow_undefined_flag=$lt_allow_undefined_flag 22526 22527# Flag that enforces no undefined symbols. 22528no_undefined_flag=$lt_no_undefined_flag 22529 22530# Flag to hardcode \$libdir into a binary during linking. 22531# This must work even if \$libdir does not exist 22532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22533 22534# Whether we need a single "-rpath" flag with a separated argument. 22535hardcode_libdir_separator=$lt_hardcode_libdir_separator 22536 22537# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22538# DIR into the resulting binary. 22539hardcode_direct=$hardcode_direct 22540 22541# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22542# DIR into the resulting binary and the resulting library dependency is 22543# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22544# library is relocated. 22545hardcode_direct_absolute=$hardcode_direct_absolute 22546 22547# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22548# into the resulting binary. 22549hardcode_minus_L=$hardcode_minus_L 22550 22551# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22552# into the resulting binary. 22553hardcode_shlibpath_var=$hardcode_shlibpath_var 22554 22555# Set to "yes" if building a shared library automatically hardcodes DIR 22556# into the library and all subsequent libraries and executables linked 22557# against it. 22558hardcode_automatic=$hardcode_automatic 22559 22560# Set to yes if linker adds runtime paths of dependent libraries 22561# to runtime path list. 22562inherit_rpath=$inherit_rpath 22563 22564# Whether libtool must link a program against all its dependency libraries. 22565link_all_deplibs=$link_all_deplibs 22566 22567# Set to "yes" if exported symbols are required. 22568always_export_symbols=$always_export_symbols 22569 22570# The commands to list exported symbols. 22571export_symbols_cmds=$lt_export_symbols_cmds 22572 22573# Symbols that should not be listed in the preloaded symbols. 22574exclude_expsyms=$lt_exclude_expsyms 22575 22576# Symbols that must always be exported. 22577include_expsyms=$lt_include_expsyms 22578 22579# Commands necessary for linking programs (against libraries) with templates. 22580prelink_cmds=$lt_prelink_cmds 22581 22582# Commands necessary for finishing linking programs. 22583postlink_cmds=$lt_postlink_cmds 22584 22585# Specify filename containing input files. 22586file_list_spec=$lt_file_list_spec 22587 22588# How to hardcode a shared library path into an executable. 22589hardcode_action=$hardcode_action 22590 22591# ### END LIBTOOL CONFIG 22592 22593_LT_EOF 22594 22595 cat <<'_LT_EOF' >> "$cfgfile" 22596 22597# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22598 22599# func_munge_path_list VARIABLE PATH 22600# ----------------------------------- 22601# VARIABLE is name of variable containing _space_ separated list of 22602# directories to be munged by the contents of PATH, which is string 22603# having a format: 22604# "DIR[:DIR]:" 22605# string "DIR[ DIR]" will be prepended to VARIABLE 22606# ":DIR[:DIR]" 22607# string "DIR[ DIR]" will be appended to VARIABLE 22608# "DIRP[:DIRP]::[DIRA:]DIRA" 22609# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22610# "DIRA[ DIRA]" will be appended to VARIABLE 22611# "DIR[:DIR]" 22612# VARIABLE will be replaced by "DIR[ DIR]" 22613func_munge_path_list () 22614{ 22615 case x$2 in 22616 x) 22617 ;; 22618 *:) 22619 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22620 ;; 22621 x:*) 22622 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22623 ;; 22624 *::*) 22625 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22626 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22627 ;; 22628 *) 22629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22630 ;; 22631 esac 22632} 22633 22634 22635# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22636func_cc_basename () 22637{ 22638 for cc_temp in $*""; do 22639 case $cc_temp in 22640 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22641 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22642 \-*) ;; 22643 *) break;; 22644 esac 22645 done 22646 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22647} 22648 22649 22650# ### END FUNCTIONS SHARED WITH CONFIGURE 22651 22652_LT_EOF 22653 22654 case $host_os in 22655 aix3*) 22656 cat <<\_LT_EOF >> "$cfgfile" 22657# AIX sometimes has problems with the GCC collect2 program. For some 22658# reason, if we set the COLLECT_NAMES environment variable, the problems 22659# vanish in a puff of smoke. 22660if test set != "${COLLECT_NAMES+set}"; then 22661 COLLECT_NAMES= 22662 export COLLECT_NAMES 22663fi 22664_LT_EOF 22665 ;; 22666 esac 22667 22668 22669 22670ltmain=$ac_aux_dir/ltmain.sh 22671 22672 22673 # We use sed instead of cat because bash on DJGPP gets confused if 22674 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22675 # text mode, it properly converts lines to CR/LF. This bash problem 22676 # is reportedly fixed, but why not run on old versions too? 22677 $SED '$q' "$ltmain" >> "$cfgfile" \ 22678 || (rm -f "$cfgfile"; exit 1) 22679 22680 mv -f "$cfgfile" "$ofile" || 22681 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22682 chmod +x "$ofile" 22683 22684 ;; 22685 22686 esac 22687done # for ac_tag 22688 22689 22690as_fn_exit 0 22691_ACEOF 22692ac_clean_files=$ac_clean_files_save 22693 22694test $ac_write_fail = 0 || 22695 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22696 22697 22698# configure is writing to config.log, and then calls config.status. 22699# config.status does its own redirection, appending to config.log. 22700# Unfortunately, on DOS this fails, as config.log is still kept open 22701# by configure, so config.status won't be able to write to it; its 22702# output is simply discarded. So we exec the FD to /dev/null, 22703# effectively closing config.log, so it can be properly (re)opened and 22704# appended to by config.status. When coming back to configure, we 22705# need to make the FD available again. 22706if test "$no_create" != yes; then 22707 ac_cs_success=: 22708 ac_config_status_args= 22709 test "$silent" = yes && 22710 ac_config_status_args="$ac_config_status_args --quiet" 22711 exec 5>/dev/null 22712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22713 exec 5>>config.log 22714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22715 # would make configure fail if this is the last instruction. 22716 $ac_cs_success || as_fn_exit 1 22717fi 22718if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22720printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22721fi 22722 22723 22724