1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXtst 1.2.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594as_awk_strverscmp=' 595 # Use only awk features that work with 7th edition Unix awk (1978). 596 # My, what an old awk you have, Mr. Solaris! 597 END { 598 while (length(v1) && length(v2)) { 599 # Set d1 to be the next thing to compare from v1, and likewise for d2. 600 # Normally this is a single character, but if v1 and v2 contain digits, 601 # compare them as integers and fractions as strverscmp does. 602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 603 # Split v1 and v2 into their leading digit string components d1 and d2, 604 # and advance v1 and v2 past the leading digit strings. 605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 609 if (d1 ~ /^0/) { 610 if (d2 ~ /^0/) { 611 # Compare two fractions. 612 while (d1 ~ /^0/ && d2 ~ /^0/) { 613 d1 = substr(d1, 2); len1-- 614 d2 = substr(d2, 2); len2-- 615 } 616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 617 # The two components differ in length, and the common prefix 618 # contains only leading zeros. Consider the longer to be less. 619 d1 = -len1 620 d2 = -len2 621 } else { 622 # Otherwise, compare as strings. 623 d1 = "x" d1 624 d2 = "x" d2 625 } 626 } else { 627 # A fraction is less than an integer. 628 exit 1 629 } 630 } else { 631 if (d2 ~ /^0/) { 632 # An integer is greater than a fraction. 633 exit 2 634 } else { 635 # Compare two integers. 636 d1 += 0 637 d2 += 0 638 } 639 } 640 } else { 641 # The normal case, without worrying about digits. 642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 644 } 645 if (d1 < d2) exit 1 646 if (d1 > d2) exit 2 647 } 648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 649 # which mishandles some comparisons of empty strings to integers. 650 if (length(v2)) exit 1 651 if (length(v1)) exit 2 652 } 653' 654 655test -n "$DJDIR" || exec 7<&0 </dev/null 656exec 6>&1 657 658# Name of the host. 659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660# so uname gets run too. 661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663# 664# Initializations. 665# 666ac_default_prefix=/usr/local 667ac_clean_files= 668ac_config_libobj_dir=. 669LIBOBJS= 670cross_compiling=no 671subdirs= 672MFLAGS= 673MAKEFLAGS= 674 675# Identity of this package. 676PACKAGE_NAME='libXtst' 677PACKAGE_TARNAME='libXtst' 678PACKAGE_VERSION='1.2.5' 679PACKAGE_STRING='libXtst 1.2.5' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716ac_subst_vars='am__EXEEXT_FALSE 717am__EXEEXT_TRUE 718LTLIBOBJS 719LIBOBJS 720MAKE_LINT_LIB_FALSE 721MAKE_LINT_LIB_TRUE 722LINTLIB 723LINT_FALSE 724LINT_TRUE 725LINT_FLAGS 726LINT 727INSTALL_MANPAGES_FALSE 728INSTALL_MANPAGES_TRUE 729XTST_LIBS 730XTST_CFLAGS 731HAVE_STYLESHEETS_FALSE 732HAVE_STYLESHEETS_TRUE 733XSL_STYLESHEET 734STYLESHEET_SRCDIR 735XORG_SGML_PATH 736HAVE_XSLTPROC_FALSE 737HAVE_XSLTPROC_TRUE 738XSLTPROC 739HAVE_FOP_FALSE 740HAVE_FOP_TRUE 741FOP 742HAVE_XMLTO_FALSE 743HAVE_XMLTO_TRUE 744HAVE_XMLTO_TEXT_FALSE 745HAVE_XMLTO_TEXT_TRUE 746XMLTO 747ENABLE_SPECS_FALSE 748ENABLE_SPECS_TRUE 749MAN_SUBSTS 750XORG_MAN_PAGE 751ADMIN_MAN_DIR 752DRIVER_MAN_DIR 753MISC_MAN_DIR 754FILE_MAN_DIR 755LIB_MAN_DIR 756APP_MAN_DIR 757ADMIN_MAN_SUFFIX 758DRIVER_MAN_SUFFIX 759MISC_MAN_SUFFIX 760FILE_MAN_SUFFIX 761LIB_MAN_SUFFIX 762APP_MAN_SUFFIX 763INSTALL_CMD 764PKG_CONFIG_LIBDIR 765PKG_CONFIG_PATH 766PKG_CONFIG 767CHANGELOG_CMD 768STRICT_CFLAGS 769CWARNFLAGS 770BASE_CFLAGS 771LT_SYS_LIBRARY_PATH 772OTOOL64 773OTOOL 774LIPO 775NMEDIT 776DSYMUTIL 777MANIFEST_TOOL 778RANLIB 779ac_ct_AR 780AR 781DLLTOOL 782OBJDUMP 783FILECMD 784LN_S 785NM 786ac_ct_DUMPBIN 787DUMPBIN 788LD 789FGREP 790EGREP 791GREP 792SED 793am__fastdepCC_FALSE 794am__fastdepCC_TRUE 795CCDEPMODE 796am__nodep 797AMDEPBACKSLASH 798AMDEP_FALSE 799AMDEP_TRUE 800am__include 801DEPDIR 802OBJEXT 803EXEEXT 804ac_ct_CC 805CPPFLAGS 806LDFLAGS 807CFLAGS 808CC 809host_os 810host_vendor 811host_cpu 812host 813build_os 814build_vendor 815build_cpu 816build 817LIBTOOL 818am__xargs_n 819am__rm_f_notfound 820AM_BACKSLASH 821AM_DEFAULT_VERBOSITY 822AM_DEFAULT_V 823AM_V 824CSCOPE 825ETAGS 826CTAGS 827am__untar 828am__tar 829AMTAR 830am__leading_dot 831SET_MAKE 832AWK 833mkdir_p 834MKDIR_P 835INSTALL_STRIP_PROGRAM 836STRIP 837install_sh 838MAKEINFO 839AUTOHEADER 840AUTOMAKE 841AUTOCONF 842ACLOCAL 843VERSION 844PACKAGE 845CYGPATH_W 846am__isrc 847INSTALL_DATA 848INSTALL_SCRIPT 849INSTALL_PROGRAM 850target_alias 851host_alias 852build_alias 853LIBS 854ECHO_T 855ECHO_N 856ECHO_C 857DEFS 858mandir 859localedir 860libdir 861psdir 862pdfdir 863dvidir 864htmldir 865infodir 866docdir 867oldincludedir 868includedir 869runstatedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL 889am__quote' 890ac_subst_files='' 891ac_user_opts=' 892enable_option_checking 893enable_silent_rules 894enable_shared 895enable_static 896with_pic 897enable_fast_install 898with_aix_soname 899enable_dependency_tracking 900with_gnu_ld 901with_sysroot 902enable_libtool_lock 903enable_selective_werror 904enable_strict_compilation 905enable_specs 906with_xmlto 907with_fop 908with_xsltproc 909with_lint 910enable_lint_library 911' 912 ac_precious_vars='build_alias 913host_alias 914target_alias 915CC 916CFLAGS 917LDFLAGS 918LIBS 919CPPFLAGS 920LT_SYS_LIBRARY_PATH 921PKG_CONFIG 922PKG_CONFIG_PATH 923PKG_CONFIG_LIBDIR 924XMLTO 925FOP 926XSLTPROC 927XTST_CFLAGS 928XTST_LIBS 929LINT 930LINT_FLAGS' 931 932 933# Initialize some variables set by options. 934ac_init_help= 935ac_init_version=false 936ac_unrecognized_opts= 937ac_unrecognized_sep= 938# The variables have the same names as the options, with 939# dashes changed to underlines. 940cache_file=/dev/null 941exec_prefix=NONE 942no_create= 943no_recursion= 944prefix=NONE 945program_prefix=NONE 946program_suffix=NONE 947program_transform_name=s,x,x, 948silent= 949site= 950srcdir= 951verbose= 952x_includes=NONE 953x_libraries=NONE 954 955# Installation directory options. 956# These are left unexpanded so users can "make install exec_prefix=/foo" 957# and all the variables that are supposed to be based on exec_prefix 958# by default will actually change. 959# Use braces instead of parens because sh, perl, etc. also accept them. 960# (The list follows the same order as the GNU Coding Standards.) 961bindir='${exec_prefix}/bin' 962sbindir='${exec_prefix}/sbin' 963libexecdir='${exec_prefix}/libexec' 964datarootdir='${prefix}/share' 965datadir='${datarootdir}' 966sysconfdir='${prefix}/etc' 967sharedstatedir='${prefix}/com' 968localstatedir='${prefix}/var' 969runstatedir='${localstatedir}/run' 970includedir='${prefix}/include' 971oldincludedir='/usr/include' 972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 973infodir='${datarootdir}/info' 974htmldir='${docdir}' 975dvidir='${docdir}' 976pdfdir='${docdir}' 977psdir='${docdir}' 978libdir='${exec_prefix}/lib' 979localedir='${datarootdir}/locale' 980mandir='${datarootdir}/man' 981 982ac_prev= 983ac_dashdash= 984for ac_option 985do 986 # If the previous option needs an argument, assign it. 987 if test -n "$ac_prev"; then 988 eval $ac_prev=\$ac_option 989 ac_prev= 990 continue 991 fi 992 993 case $ac_option in 994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 995 *=) ac_optarg= ;; 996 *) ac_optarg=yes ;; 997 esac 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error $? "invalid feature name: '$ac_useropt'" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044"enable_$ac_useropt" 1045"*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=no ;; 1050 1051 -docdir | --docdir | --docdi | --doc | --do) 1052 ac_prev=docdir ;; 1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1054 docdir=$ac_optarg ;; 1055 1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1057 ac_prev=dvidir ;; 1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1059 dvidir=$ac_optarg ;; 1060 1061 -enable-* | --enable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: '$ac_useropt'" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1221 | --runstate | --runstat | --runsta | --runst | --runs \ 1222 | --run | --ru | --r) 1223 ac_prev=runstatedir ;; 1224 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1225 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1226 | --run=* | --ru=* | --r=*) 1227 runstatedir=$ac_optarg ;; 1228 1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1230 ac_prev=sbindir ;; 1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1232 | --sbi=* | --sb=*) 1233 sbindir=$ac_optarg ;; 1234 1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1237 | --sharedst | --shareds | --shared | --share | --shar \ 1238 | --sha | --sh) 1239 ac_prev=sharedstatedir ;; 1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1243 | --sha=* | --sh=*) 1244 sharedstatedir=$ac_optarg ;; 1245 1246 -site | --site | --sit) 1247 ac_prev=site ;; 1248 -site=* | --site=* | --sit=*) 1249 site=$ac_optarg ;; 1250 1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1252 ac_prev=srcdir ;; 1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1254 srcdir=$ac_optarg ;; 1255 1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1257 | --syscon | --sysco | --sysc | --sys | --sy) 1258 ac_prev=sysconfdir ;; 1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1261 sysconfdir=$ac_optarg ;; 1262 1263 -target | --target | --targe | --targ | --tar | --ta | --t) 1264 ac_prev=target_alias ;; 1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1266 target_alias=$ac_optarg ;; 1267 1268 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1269 verbose=yes ;; 1270 1271 -version | --version | --versio | --versi | --vers | -V) 1272 ac_init_version=: ;; 1273 1274 -with-* | --with-*) 1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1276 # Reject names that are not valid shell variable names. 1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1278 as_fn_error $? "invalid package name: '$ac_useropt'" 1279 ac_useropt_orig=$ac_useropt 1280 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1281 case $ac_user_opts in 1282 *" 1283"with_$ac_useropt" 1284"*) ;; 1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1286 ac_unrecognized_sep=', ';; 1287 esac 1288 eval with_$ac_useropt=\$ac_optarg ;; 1289 1290 -without-* | --without-*) 1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1292 # Reject names that are not valid shell variable names. 1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1294 as_fn_error $? "invalid package name: '$ac_useropt'" 1295 ac_useropt_orig=$ac_useropt 1296 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1297 case $ac_user_opts in 1298 *" 1299"with_$ac_useropt" 1300"*) ;; 1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1302 ac_unrecognized_sep=', ';; 1303 esac 1304 eval with_$ac_useropt=no ;; 1305 1306 --x) 1307 # Obsolete; use --with-x. 1308 with_x=yes ;; 1309 1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1311 | --x-incl | --x-inc | --x-in | --x-i) 1312 ac_prev=x_includes ;; 1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1315 x_includes=$ac_optarg ;; 1316 1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1319 ac_prev=x_libraries ;; 1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1322 x_libraries=$ac_optarg ;; 1323 1324 -*) as_fn_error $? "unrecognized option: '$ac_option' 1325Try '$0 --help' for more information" 1326 ;; 1327 1328 *=*) 1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1330 # Reject names that are not valid shell variable names. 1331 case $ac_envvar in #( 1332 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1333 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1334 esac 1335 eval $ac_envvar=\$ac_optarg 1336 export $ac_envvar ;; 1337 1338 *) 1339 # FIXME: should be removed in autoconf 3.0. 1340 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1342 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1344 ;; 1345 1346 esac 1347done 1348 1349if test -n "$ac_prev"; then 1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1351 as_fn_error $? "missing argument to $ac_option" 1352fi 1353 1354if test -n "$ac_unrecognized_opts"; then 1355 case $enable_option_checking in 1356 no) ;; 1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1358 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360fi 1361 1362# Check all directory arguments for consistency. 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir runstatedir 1367do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1381done 1382 1383# There might be people who depend on the old broken behavior: '$host' 1384# used to hold the argument of --host etc. 1385# FIXME: To remove some day. 1386build=$build_alias 1387host=$host_alias 1388target=$target_alias 1389 1390# FIXME: To remove some day. 1391if test "x$host_alias" != x; then 1392 if test "x$build_alias" = x; then 1393 cross_compiling=maybe 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397fi 1398 1399ac_tool_prefix= 1400test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402test "$silent" = yes && exec 6>/dev/null 1403 1404 1405ac_pwd=`pwd` && test -n "$ac_pwd" && 1406ac_ls_di=`ls -di .` && 1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 as_fn_error $? "working directory cannot be determined" 1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1410 as_fn_error $? "pwd does not report name of working directory" 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422printf "%s\n" X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1450fi 1451ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1452ac_abs_confdir=`( 1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1454 pwd)` 1455# When building in place, set srcdir=. 1456if test "$ac_abs_confdir" = "$ac_pwd"; then 1457 srcdir=. 1458fi 1459# Remove unnecessary trailing slashes from srcdir. 1460# Double slashes in file names in object file debugging info 1461# mess up M-x gdb in Emacs. 1462case $srcdir in 1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1464esac 1465for ac_var in $ac_precious_vars; do 1466 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1467 eval ac_env_${ac_var}_value=\$${ac_var} 1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1470done 1471 1472# 1473# Report the --help message. 1474# 1475if test "$ac_init_help" = "long"; then 1476 # Omit some internal or obsolete options to make the list less imposing. 1477 # This message is too long to be a string in the A/UX 3.1 sh. 1478 cat <<_ACEOF 1479'configure' configures libXtst 1.2.5 to adapt to many kinds of systems. 1480 1481Usage: $0 [OPTION]... [VAR=VALUE]... 1482 1483To assign environment variables (e.g., CC, CFLAGS...), specify them as 1484VAR=VALUE. See below for descriptions of some of the useful variables. 1485 1486Defaults for the options are specified in brackets. 1487 1488Configuration: 1489 -h, --help display this help and exit 1490 --help=short display options specific to this package 1491 --help=recursive display the short help of all the included packages 1492 -V, --version display version information and exit 1493 -q, --quiet, --silent do not print 'checking ...' messages 1494 --cache-file=FILE cache test results in FILE [disabled] 1495 -C, --config-cache alias for '--cache-file=config.cache' 1496 -n, --no-create do not create output files 1497 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1498 1499Installation directories: 1500 --prefix=PREFIX install architecture-independent files in PREFIX 1501 [$ac_default_prefix] 1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1503 [PREFIX] 1504 1505By default, 'make install' will install all the files in 1506'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1507an installation prefix other than '$ac_default_prefix' using '--prefix', 1508for instance '--prefix=\$HOME'. 1509 1510For better control, use the options below. 1511 1512Fine tuning of the installation directories: 1513 --bindir=DIR user executables [EPREFIX/bin] 1514 --sbindir=DIR system admin executables [EPREFIX/sbin] 1515 --libexecdir=DIR program executables [EPREFIX/libexec] 1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1519 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1520 --libdir=DIR object code libraries [EPREFIX/lib] 1521 --includedir=DIR C header files [PREFIX/include] 1522 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1525 --infodir=DIR info documentation [DATAROOTDIR/info] 1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1527 --mandir=DIR man documentation [DATAROOTDIR/man] 1528 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst] 1529 --htmldir=DIR html documentation [DOCDIR] 1530 --dvidir=DIR dvi documentation [DOCDIR] 1531 --pdfdir=DIR pdf documentation [DOCDIR] 1532 --psdir=DIR ps documentation [DOCDIR] 1533_ACEOF 1534 1535 cat <<\_ACEOF 1536 1537Program names: 1538 --program-prefix=PREFIX prepend PREFIX to installed program names 1539 --program-suffix=SUFFIX append SUFFIX to installed program names 1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1541 1542System types: 1543 --build=BUILD configure for building on BUILD [guessed] 1544 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1545_ACEOF 1546fi 1547 1548if test -n "$ac_init_help"; then 1549 case $ac_init_help in 1550 short | recursive ) echo "Configuration of libXtst 1.2.5:";; 1551 esac 1552 cat <<\_ACEOF 1553 1554Optional Features: 1555 --disable-option-checking ignore unrecognized --enable/--with options 1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1558 --enable-silent-rules less verbose build output (undo: "make V=1") 1559 --disable-silent-rules verbose build output (undo: "make V=0") 1560 --enable-shared[=PKGS] build shared libraries [default=yes] 1561 --enable-static[=PKGS] build static libraries [default=yes] 1562 --enable-fast-install[=PKGS] 1563 optimize for fast installation [default=yes] 1564 --enable-dependency-tracking 1565 do not reject slow dependency extractors 1566 --disable-dependency-tracking 1567 speeds up one-time build 1568 --disable-libtool-lock avoid locking (might break parallel builds) 1569 --disable-selective-werror 1570 Turn off selective compiler errors. (default: 1571 enabled) 1572 --enable-strict-compilation 1573 Enable all warnings from compiler and make them 1574 errors (default: disabled) 1575 --enable-specs Enable building the specs (default: yes) 1576 --enable-lint-library Create lint library (default: disabled) 1577 1578Optional Packages: 1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1581 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1582 both] 1583 --with-aix-soname=aix|svr4|both 1584 shared library versioning (aka "SONAME") variant to 1585 provide on AIX, [default=aix]. 1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1587 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1588 compiler's sysroot if not specified). 1589 --with-xmlto Use xmlto to regenerate documentation (default: 1590 auto) 1591 --with-fop Use fop to regenerate documentation (default: auto) 1592 --with-xsltproc Use xsltproc for the transformation of XML documents 1593 (default: auto) 1594 --with-lint Use a lint-style source code checker (default: 1595 disabled) 1596 1597Some influential environment variables: 1598 CC C compiler command 1599 CFLAGS C compiler flags 1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1601 nonstandard directory <lib dir> 1602 LIBS libraries to pass to the linker, e.g. -l<library> 1603 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1604 you have headers in a nonstandard directory <include dir> 1605 LT_SYS_LIBRARY_PATH 1606 User-defined run-time library search path. 1607 PKG_CONFIG path to pkg-config utility 1608 PKG_CONFIG_PATH 1609 directories to add to pkg-config's search path 1610 PKG_CONFIG_LIBDIR 1611 path overriding pkg-config's built-in search path 1612 XMLTO Path to xmlto command 1613 FOP Path to fop command 1614 XSLTPROC Path to xsltproc command 1615 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1616 XTST_LIBS linker flags for XTST, overriding pkg-config 1617 LINT Path to a lint-style command 1618 LINT_FLAGS Flags for the lint-style command 1619 1620Use these variables to override the choices made by 'configure' or to help 1621it to find libraries and programs with nonstandard names/locations. 1622 1623Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>. 1624_ACEOF 1625ac_status=$? 1626fi 1627 1628if test "$ac_init_help" = "recursive"; then 1629 # If there are subdirs, report their specific --help. 1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1631 test -d "$ac_dir" || 1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1633 continue 1634 ac_builddir=. 1635 1636case "$ac_dir" in 1637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1638*) 1639 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1640 # A ".." for each directory in $ac_dir_suffix. 1641 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1642 case $ac_top_builddir_sub in 1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1645 esac ;; 1646esac 1647ac_abs_top_builddir=$ac_pwd 1648ac_abs_builddir=$ac_pwd$ac_dir_suffix 1649# for backward compatibility: 1650ac_top_builddir=$ac_top_build_prefix 1651 1652case $srcdir in 1653 .) # We are building in place. 1654 ac_srcdir=. 1655 ac_top_srcdir=$ac_top_builddir_sub 1656 ac_abs_top_srcdir=$ac_pwd ;; 1657 [\\/]* | ?:[\\/]* ) # Absolute name. 1658 ac_srcdir=$srcdir$ac_dir_suffix; 1659 ac_top_srcdir=$srcdir 1660 ac_abs_top_srcdir=$srcdir ;; 1661 *) # Relative name. 1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1663 ac_top_srcdir=$ac_top_build_prefix$srcdir 1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1665esac 1666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1667 1668 cd "$ac_dir" || { ac_status=$?; continue; } 1669 # Check for configure.gnu first; this name is used for a wrapper for 1670 # Metaconfig's "Configure" on case-insensitive file systems. 1671 if test -f "$ac_srcdir/configure.gnu"; then 1672 echo && 1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1674 elif test -f "$ac_srcdir/configure"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure" --help=recursive 1677 else 1678 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1679 fi || ac_status=$? 1680 cd "$ac_pwd" || { ac_status=$?; break; } 1681 done 1682fi 1683 1684test -n "$ac_init_help" && exit $ac_status 1685if $ac_init_version; then 1686 cat <<\_ACEOF 1687libXtst configure 1.2.5 1688generated by GNU Autoconf 2.72 1689 1690Copyright (C) 2023 Free Software Foundation, Inc. 1691This configure script is free software; the Free Software Foundation 1692gives unlimited permission to copy, distribute and modify it. 1693_ACEOF 1694 exit 1695fi 1696 1697## ------------------------ ## 1698## Autoconf initialization. ## 1699## ------------------------ ## 1700 1701# ac_fn_c_try_compile LINENO 1702# -------------------------- 1703# Try to compile conftest.$ac_ext, and return whether this succeeded. 1704ac_fn_c_try_compile () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 rm -f conftest.$ac_objext conftest.beam 1708 if { { ac_try="$ac_compile" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714printf "%s\n" "$ac_try_echo"; } >&5 1715 (eval "$ac_compile") 2>conftest.err 1716 ac_status=$? 1717 if test -s conftest.err; then 1718 grep -v '^ *+' conftest.err >conftest.er1 1719 cat conftest.er1 >&5 1720 mv -f conftest.er1 conftest.err 1721 fi 1722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { 1724 test -z "$ac_c_werror_flag" || 1725 test ! -s conftest.err 1726 } && test -s conftest.$ac_objext 1727then : 1728 ac_retval=0 1729else case e in #( 1730 e) printf "%s\n" "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=1 ;; 1734esac 1735fi 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_compile 1740 1741# ac_fn_c_try_link LINENO 1742# ----------------------- 1743# Try to link conftest.$ac_ext, and return whether this succeeded. 1744ac_fn_c_try_link () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1748 if { { ac_try="$ac_link" 1749case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752esac 1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754printf "%s\n" "$ac_try_echo"; } >&5 1755 (eval "$ac_link") 2>conftest.err 1756 ac_status=$? 1757 if test -s conftest.err; then 1758 grep -v '^ *+' conftest.err >conftest.er1 1759 cat conftest.er1 >&5 1760 mv -f conftest.er1 conftest.err 1761 fi 1762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { 1764 test -z "$ac_c_werror_flag" || 1765 test ! -s conftest.err 1766 } && test -s conftest$ac_exeext && { 1767 test "$cross_compiling" = yes || 1768 test -x conftest$ac_exeext 1769 } 1770then : 1771 ac_retval=0 1772else case e in #( 1773 e) printf "%s\n" "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 ;; 1777esac 1778fi 1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1781 # interfere with the next link command; also delete a directory that is 1782 # left behind by Apple's compiler. We do this before executing the actions. 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_link 1788 1789# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1790# ------------------------------------------------------- 1791# Tests whether HEADER exists and can be compiled using the include files in 1792# INCLUDES, setting the cache variable VAR accordingly. 1793ac_fn_c_check_header_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797printf %s "checking for $2... " >&6; } 1798if eval test \${$3+y} 1799then : 1800 printf %s "(cached) " >&6 1801else case e in #( 1802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804$4 1805#include <$2> 1806_ACEOF 1807if ac_fn_c_try_compile "$LINENO" 1808then : 1809 eval "$3=yes" 1810else case e in #( 1811 e) eval "$3=no" ;; 1812esac 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1815esac 1816fi 1817eval ac_res=\$$3 1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819printf "%s\n" "$ac_res" >&6; } 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 1822} # ac_fn_c_check_header_compile 1823 1824# ac_fn_c_check_func LINENO FUNC VAR 1825# ---------------------------------- 1826# Tests whether FUNC exists, setting the cache variable VAR accordingly 1827ac_fn_c_check_func () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831printf %s "checking for $2... " >&6; } 1832if eval test \${$3+y} 1833then : 1834 printf %s "(cached) " >&6 1835else case e in #( 1836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1840#define $2 innocuous_$2 1841 1842/* System header to define __stub macros and hopefully few prototypes, 1843 which can conflict with char $2 (void); below. */ 1844 1845#include <limits.h> 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (void); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main (void) 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO" 1871then : 1872 eval "$3=yes" 1873else case e in #( 1874 e) eval "$3=no" ;; 1875esac 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1878 conftest$ac_exeext conftest.$ac_ext ;; 1879esac 1880fi 1881eval ac_res=\$$3 1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883printf "%s\n" "$ac_res" >&6; } 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_func 1887 1888# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1889# ------------------------------------------------------------------ 1890# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1891# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1892ac_fn_check_decl () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 as_decl_name=`echo $2|sed 's/ *(.*//'` 1896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1897printf %s "checking whether $as_decl_name is declared... " >&6; } 1898if eval test \${$3+y} 1899then : 1900 printf %s "(cached) " >&6 1901else case e in #( 1902 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1903 eval ac_save_FLAGS=\$$6 1904 as_fn_append $6 " $5" 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908int 1909main (void) 1910{ 1911#ifndef $as_decl_name 1912#ifdef __cplusplus 1913 (void) $as_decl_use; 1914#else 1915 (void) $as_decl_name; 1916#endif 1917#endif 1918 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO" 1924then : 1925 eval "$3=yes" 1926else case e in #( 1927 e) eval "$3=no" ;; 1928esac 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1931 eval $6=\$ac_save_FLAGS 1932 ;; 1933esac 1934fi 1935eval ac_res=\$$3 1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937printf "%s\n" "$ac_res" >&6; } 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 1940} # ac_fn_check_decl 1941ac_configure_args_raw= 1942for ac_arg 1943do 1944 case $ac_arg in 1945 *\'*) 1946 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1947 esac 1948 as_fn_append ac_configure_args_raw " '$ac_arg'" 1949done 1950 1951case $ac_configure_args_raw in 1952 *$as_nl*) 1953 ac_safe_unquote= ;; 1954 *) 1955 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1956 ac_unsafe_a="$ac_unsafe_z#~" 1957 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1958 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1959esac 1960 1961cat >config.log <<_ACEOF 1962This file contains any messages produced by compilers while 1963running configure, to aid debugging if configure makes a mistake. 1964 1965It was created by libXtst $as_me 1.2.5, which was 1966generated by GNU Autoconf 2.72. Invocation command line was 1967 1968 $ $0$ac_configure_args_raw 1969 1970_ACEOF 1971exec 5>>config.log 1972{ 1973cat <<_ASUNAME 1974## --------- ## 1975## Platform. ## 1976## --------- ## 1977 1978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1979uname -m = `(uname -m) 2>/dev/null || echo unknown` 1980uname -r = `(uname -r) 2>/dev/null || echo unknown` 1981uname -s = `(uname -s) 2>/dev/null || echo unknown` 1982uname -v = `(uname -v) 2>/dev/null || echo unknown` 1983 1984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1985/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1986 1987/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1988/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1990/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1991/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1992/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1993/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1994 1995_ASUNAME 1996 1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1998for as_dir in $PATH 1999do 2000 IFS=$as_save_IFS 2001 case $as_dir in #((( 2002 '') as_dir=./ ;; 2003 */) ;; 2004 *) as_dir=$as_dir/ ;; 2005 esac 2006 printf "%s\n" "PATH: $as_dir" 2007 done 2008IFS=$as_save_IFS 2009 2010} >&5 2011 2012cat >&5 <<_ACEOF 2013 2014 2015## ----------- ## 2016## Core tests. ## 2017## ----------- ## 2018 2019_ACEOF 2020 2021 2022# Keep a trace of the command line. 2023# Strip out --no-create and --no-recursion so they do not pile up. 2024# Strip out --silent because we don't want to record it for future runs. 2025# Also quote any args containing shell meta-characters. 2026# Make two passes to allow for proper duplicate-argument suppression. 2027ac_configure_args= 2028ac_configure_args0= 2029ac_configure_args1= 2030ac_must_keep_next=false 2031for ac_pass in 1 2 2032do 2033 for ac_arg 2034 do 2035 case $ac_arg in 2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2038 | -silent | --silent | --silen | --sile | --sil) 2039 continue ;; 2040 *\'*) 2041 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2042 esac 2043 case $ac_pass in 2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2045 2) 2046 as_fn_append ac_configure_args1 " '$ac_arg'" 2047 if test $ac_must_keep_next = true; then 2048 ac_must_keep_next=false # Got value, back to normal. 2049 else 2050 case $ac_arg in 2051 *=* | --config-cache | -C | -disable-* | --disable-* \ 2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2054 | -with-* | --with-* | -without-* | --without-* | --x) 2055 case "$ac_configure_args0 " in 2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2057 esac 2058 ;; 2059 -* ) ac_must_keep_next=true ;; 2060 esac 2061 fi 2062 as_fn_append ac_configure_args " '$ac_arg'" 2063 ;; 2064 esac 2065 done 2066done 2067{ ac_configure_args0=; unset ac_configure_args0;} 2068{ ac_configure_args1=; unset ac_configure_args1;} 2069 2070# When interrupted or exit'd, cleanup temporary files, and complete 2071# config.log. We remove comments because anyway the quotes in there 2072# would cause problems or look ugly. 2073# WARNING: Use '\'' to represent an apostrophe within the trap. 2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2075trap 'exit_status=$? 2076 # Sanitize IFS. 2077 IFS=" "" $as_nl" 2078 # Save into config.log some information that might help in debugging. 2079 { 2080 echo 2081 2082 printf "%s\n" "## ---------------- ## 2083## Cache variables. ## 2084## ---------------- ##" 2085 echo 2086 # The following way of writing the cache mishandles newlines in values, 2087( 2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2089 eval ac_val=\$$ac_var 2090 case $ac_val in #( 2091 *${as_nl}*) 2092 case $ac_var in #( 2093 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2094printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2095 esac 2096 case $ac_var in #( 2097 _ | IFS | as_nl) ;; #( 2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2099 *) { eval $ac_var=; unset $ac_var;} ;; 2100 esac ;; 2101 esac 2102 done 2103 (set) 2>&1 | 2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2105 *${as_nl}ac_space=\ *) 2106 sed -n \ 2107 "s/'\''/'\''\\\\'\'''\''/g; 2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2109 ;; #( 2110 *) 2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2112 ;; 2113 esac | 2114 sort 2115) 2116 echo 2117 2118 printf "%s\n" "## ----------------- ## 2119## Output variables. ## 2120## ----------------- ##" 2121 echo 2122 for ac_var in $ac_subst_vars 2123 do 2124 eval ac_val=\$$ac_var 2125 case $ac_val in 2126 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2127 esac 2128 printf "%s\n" "$ac_var='\''$ac_val'\''" 2129 done | sort 2130 echo 2131 2132 if test -n "$ac_subst_files"; then 2133 printf "%s\n" "## ------------------- ## 2134## File substitutions. ## 2135## ------------------- ##" 2136 echo 2137 for ac_var in $ac_subst_files 2138 do 2139 eval ac_val=\$$ac_var 2140 case $ac_val in 2141 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2142 esac 2143 printf "%s\n" "$ac_var='\''$ac_val'\''" 2144 done | sort 2145 echo 2146 fi 2147 2148 if test -s confdefs.h; then 2149 printf "%s\n" "## ----------- ## 2150## confdefs.h. ## 2151## ----------- ##" 2152 echo 2153 cat confdefs.h 2154 echo 2155 fi 2156 test "$ac_signal" != 0 && 2157 printf "%s\n" "$as_me: caught signal $ac_signal" 2158 printf "%s\n" "$as_me: exit $exit_status" 2159 } >&5 2160 rm -f core *.core core.conftest.* && 2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2162 exit $exit_status 2163' 0 2164for ac_signal in 1 2 13 15; do 2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2166done 2167ac_signal=0 2168 2169# confdefs.h avoids OS command line length limits that DEFS can exceed. 2170rm -f -r conftest* confdefs.h 2171 2172printf "%s\n" "/* confdefs.h */" > confdefs.h 2173 2174# Predefined preprocessor variables. 2175 2176printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2177 2178printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2179 2180printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2181 2182printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2183 2184printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2185 2186printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2187 2188 2189# Let the site file select an alternate cache file if it wants to. 2190# Prefer an explicitly selected file to automatically selected ones. 2191if test -n "$CONFIG_SITE"; then 2192 ac_site_files="$CONFIG_SITE" 2193elif test "x$prefix" != xNONE; then 2194 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2195else 2196 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2197fi 2198 2199for ac_site_file in $ac_site_files 2200do 2201 case $ac_site_file in #( 2202 */*) : 2203 ;; #( 2204 *) : 2205 ac_site_file=./$ac_site_file ;; 2206esac 2207 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2209printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2210 sed 's/^/| /' "$ac_site_file" >&5 2211 . "$ac_site_file" \ 2212 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2213printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2214as_fn_error $? "failed to load site script $ac_site_file 2215See 'config.log' for more details" "$LINENO" 5; } 2216 fi 2217done 2218 2219if test -r "$cache_file"; then 2220 # Some versions of bash will fail to source /dev/null (special files 2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2224printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2225 case $cache_file in 2226 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2227 *) . "./$cache_file";; 2228 esac 2229 fi 2230else 2231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2232printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2233 >$cache_file 2234fi 2235 2236# Test code for whether the C compiler supports C89 (global declarations) 2237ac_c_conftest_c89_globals=' 2238/* Does the compiler advertise C89 conformance? 2239 Do not test the value of __STDC__, because some compilers set it to 0 2240 while being otherwise adequately conformant. */ 2241#if !defined __STDC__ 2242# error "Compiler does not advertise C89 conformance" 2243#endif 2244 2245#include <stddef.h> 2246#include <stdarg.h> 2247struct stat; 2248/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2249struct buf { int x; }; 2250struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2251static char *e (char **p, int i) 2252{ 2253 return p[i]; 2254} 2255static char *f (char * (*g) (char **, int), char **p, ...) 2256{ 2257 char *s; 2258 va_list v; 2259 va_start (v,p); 2260 s = g (p, va_arg (v,int)); 2261 va_end (v); 2262 return s; 2263} 2264 2265/* C89 style stringification. */ 2266#define noexpand_stringify(a) #a 2267const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2268 2269/* C89 style token pasting. Exercises some of the corner cases that 2270 e.g. old MSVC gets wrong, but not very hard. */ 2271#define noexpand_concat(a,b) a##b 2272#define expand_concat(a,b) noexpand_concat(a,b) 2273extern int vA; 2274extern int vbee; 2275#define aye A 2276#define bee B 2277int *pvA = &expand_concat(v,aye); 2278int *pvbee = &noexpand_concat(v,bee); 2279 2280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2281 function prototypes and stuff, but not \xHH hex character constants. 2282 These do not provoke an error unfortunately, instead are silently treated 2283 as an "x". The following induces an error, until -std is added to get 2284 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2285 array size at least. It is necessary to write \x00 == 0 to get something 2286 that is true only with -std. */ 2287int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2288 2289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2290 inside strings and character constants. */ 2291#define FOO(x) '\''x'\'' 2292int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2293 2294int test (int i, double x); 2295struct s1 {int (*f) (int a);}; 2296struct s2 {int (*f) (double a);}; 2297int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2298 int, int);' 2299 2300# Test code for whether the C compiler supports C89 (body of main). 2301ac_c_conftest_c89_main=' 2302ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2303' 2304 2305# Test code for whether the C compiler supports C99 (global declarations) 2306ac_c_conftest_c99_globals=' 2307/* Does the compiler advertise C99 conformance? */ 2308#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2309# error "Compiler does not advertise C99 conformance" 2310#endif 2311 2312// See if C++-style comments work. 2313 2314#include <stdbool.h> 2315extern int puts (const char *); 2316extern int printf (const char *, ...); 2317extern int dprintf (int, const char *, ...); 2318extern void *malloc (size_t); 2319extern void free (void *); 2320 2321// Check varargs macros. These examples are taken from C99 6.10.3.5. 2322// dprintf is used instead of fprintf to avoid needing to declare 2323// FILE and stderr. 2324#define debug(...) dprintf (2, __VA_ARGS__) 2325#define showlist(...) puts (#__VA_ARGS__) 2326#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2327static void 2328test_varargs_macros (void) 2329{ 2330 int x = 1234; 2331 int y = 5678; 2332 debug ("Flag"); 2333 debug ("X = %d\n", x); 2334 showlist (The first, second, and third items.); 2335 report (x>y, "x is %d but y is %d", x, y); 2336} 2337 2338// Check long long types. 2339#define BIG64 18446744073709551615ull 2340#define BIG32 4294967295ul 2341#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2342#if !BIG_OK 2343 #error "your preprocessor is broken" 2344#endif 2345#if BIG_OK 2346#else 2347 #error "your preprocessor is broken" 2348#endif 2349static long long int bignum = -9223372036854775807LL; 2350static unsigned long long int ubignum = BIG64; 2351 2352struct incomplete_array 2353{ 2354 int datasize; 2355 double data[]; 2356}; 2357 2358struct named_init { 2359 int number; 2360 const wchar_t *name; 2361 double average; 2362}; 2363 2364typedef const char *ccp; 2365 2366static inline int 2367test_restrict (ccp restrict text) 2368{ 2369 // Iterate through items via the restricted pointer. 2370 // Also check for declarations in for loops. 2371 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2372 continue; 2373 return 0; 2374} 2375 2376// Check varargs and va_copy. 2377static bool 2378test_varargs (const char *format, ...) 2379{ 2380 va_list args; 2381 va_start (args, format); 2382 va_list args_copy; 2383 va_copy (args_copy, args); 2384 2385 const char *str = ""; 2386 int number = 0; 2387 float fnumber = 0; 2388 2389 while (*format) 2390 { 2391 switch (*format++) 2392 { 2393 case '\''s'\'': // string 2394 str = va_arg (args_copy, const char *); 2395 break; 2396 case '\''d'\'': // int 2397 number = va_arg (args_copy, int); 2398 break; 2399 case '\''f'\'': // float 2400 fnumber = va_arg (args_copy, double); 2401 break; 2402 default: 2403 break; 2404 } 2405 } 2406 va_end (args_copy); 2407 va_end (args); 2408 2409 return *str && number && fnumber; 2410} 2411' 2412 2413# Test code for whether the C compiler supports C99 (body of main). 2414ac_c_conftest_c99_main=' 2415 // Check bool. 2416 _Bool success = false; 2417 success |= (argc != 0); 2418 2419 // Check restrict. 2420 if (test_restrict ("String literal") == 0) 2421 success = true; 2422 char *restrict newvar = "Another string"; 2423 2424 // Check varargs. 2425 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2426 test_varargs_macros (); 2427 2428 // Check flexible array members. 2429 struct incomplete_array *ia = 2430 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2431 ia->datasize = 10; 2432 for (int i = 0; i < ia->datasize; ++i) 2433 ia->data[i] = i * 1.234; 2434 // Work around memory leak warnings. 2435 free (ia); 2436 2437 // Check named initializers. 2438 struct named_init ni = { 2439 .number = 34, 2440 .name = L"Test wide string", 2441 .average = 543.34343, 2442 }; 2443 2444 ni.number = 58; 2445 2446 int dynamic_array[ni.number]; 2447 dynamic_array[0] = argv[0][0]; 2448 dynamic_array[ni.number - 1] = 543; 2449 2450 // work around unused variable warnings 2451 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2452 || dynamic_array[ni.number - 1] != 543); 2453' 2454 2455# Test code for whether the C compiler supports C11 (global declarations) 2456ac_c_conftest_c11_globals=' 2457/* Does the compiler advertise C11 conformance? */ 2458#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2459# error "Compiler does not advertise C11 conformance" 2460#endif 2461 2462// Check _Alignas. 2463char _Alignas (double) aligned_as_double; 2464char _Alignas (0) no_special_alignment; 2465extern char aligned_as_int; 2466char _Alignas (0) _Alignas (int) aligned_as_int; 2467 2468// Check _Alignof. 2469enum 2470{ 2471 int_alignment = _Alignof (int), 2472 int_array_alignment = _Alignof (int[100]), 2473 char_alignment = _Alignof (char) 2474}; 2475_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2476 2477// Check _Noreturn. 2478int _Noreturn does_not_return (void) { for (;;) continue; } 2479 2480// Check _Static_assert. 2481struct test_static_assert 2482{ 2483 int x; 2484 _Static_assert (sizeof (int) <= sizeof (long int), 2485 "_Static_assert does not work in struct"); 2486 long int y; 2487}; 2488 2489// Check UTF-8 literals. 2490#define u8 syntax error! 2491char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2492 2493// Check duplicate typedefs. 2494typedef long *long_ptr; 2495typedef long int *long_ptr; 2496typedef long_ptr long_ptr; 2497 2498// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2499struct anonymous 2500{ 2501 union { 2502 struct { int i; int j; }; 2503 struct { int k; long int l; } w; 2504 }; 2505 int m; 2506} v1; 2507' 2508 2509# Test code for whether the C compiler supports C11 (body of main). 2510ac_c_conftest_c11_main=' 2511 _Static_assert ((offsetof (struct anonymous, i) 2512 == offsetof (struct anonymous, w.k)), 2513 "Anonymous union alignment botch"); 2514 v1.i = 2; 2515 v1.w.k = 5; 2516 ok |= v1.i != 5; 2517' 2518 2519# Test code for whether the C compiler supports C11 (complete). 2520ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2521${ac_c_conftest_c99_globals} 2522${ac_c_conftest_c11_globals} 2523 2524int 2525main (int argc, char **argv) 2526{ 2527 int ok = 0; 2528 ${ac_c_conftest_c89_main} 2529 ${ac_c_conftest_c99_main} 2530 ${ac_c_conftest_c11_main} 2531 return ok; 2532} 2533" 2534 2535# Test code for whether the C compiler supports C99 (complete). 2536ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2537${ac_c_conftest_c99_globals} 2538 2539int 2540main (int argc, char **argv) 2541{ 2542 int ok = 0; 2543 ${ac_c_conftest_c89_main} 2544 ${ac_c_conftest_c99_main} 2545 return ok; 2546} 2547" 2548 2549# Test code for whether the C compiler supports C89 (complete). 2550ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2551 2552int 2553main (int argc, char **argv) 2554{ 2555 int ok = 0; 2556 ${ac_c_conftest_c89_main} 2557 return ok; 2558} 2559" 2560 2561as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2562as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2563as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2564as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2565as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2566as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2567as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2568as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2569as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2570 2571# Auxiliary files required by this configure script. 2572ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2573 2574# Locations in which to look for auxiliary files. 2575ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2576 2577# Search for a directory containing all of the required auxiliary files, 2578# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2579# If we don't find one directory that contains all the files we need, 2580# we report the set of missing files from the *first* directory in 2581# $ac_aux_dir_candidates and give up. 2582ac_missing_aux_files="" 2583ac_first_candidate=: 2584printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586as_found=false 2587for as_dir in $ac_aux_dir_candidates 2588do 2589 IFS=$as_save_IFS 2590 case $as_dir in #((( 2591 '') as_dir=./ ;; 2592 */) ;; 2593 *) as_dir=$as_dir/ ;; 2594 esac 2595 as_found=: 2596 2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2598 ac_aux_dir_found=yes 2599 ac_install_sh= 2600 for ac_aux in $ac_aux_files 2601 do 2602 # As a special case, if "install-sh" is required, that requirement 2603 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2604 # and $ac_install_sh is set appropriately for whichever one is found. 2605 if test x"$ac_aux" = x"install-sh" 2606 then 2607 if test -f "${as_dir}install-sh"; then 2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2609 ac_install_sh="${as_dir}install-sh -c" 2610 elif test -f "${as_dir}install.sh"; then 2611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2612 ac_install_sh="${as_dir}install.sh -c" 2613 elif test -f "${as_dir}shtool"; then 2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2615 ac_install_sh="${as_dir}shtool install -c" 2616 else 2617 ac_aux_dir_found=no 2618 if $ac_first_candidate; then 2619 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2620 else 2621 break 2622 fi 2623 fi 2624 else 2625 if test -f "${as_dir}${ac_aux}"; then 2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2627 else 2628 ac_aux_dir_found=no 2629 if $ac_first_candidate; then 2630 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2631 else 2632 break 2633 fi 2634 fi 2635 fi 2636 done 2637 if test "$ac_aux_dir_found" = yes; then 2638 ac_aux_dir="$as_dir" 2639 break 2640 fi 2641 ac_first_candidate=false 2642 2643 as_found=false 2644done 2645IFS=$as_save_IFS 2646if $as_found 2647then : 2648 2649else case e in #( 2650 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2651esac 2652fi 2653 2654 2655# These three variables are undocumented and unsupported, 2656# and are intended to be withdrawn in a future Autoconf release. 2657# They can cause serious problems if a builder's source tree is in a directory 2658# whose full name contains unusual characters. 2659if test -f "${ac_aux_dir}config.guess"; then 2660 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2661fi 2662if test -f "${ac_aux_dir}config.sub"; then 2663 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2664fi 2665if test -f "$ac_aux_dir/configure"; then 2666 ac_configure="$SHELL ${ac_aux_dir}configure" 2667fi 2668 2669# Check that the precious variables saved in the cache have kept the same 2670# value. 2671ac_cache_corrupted=false 2672for ac_var in $ac_precious_vars; do 2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2674 eval ac_new_set=\$ac_env_${ac_var}_set 2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2676 eval ac_new_val=\$ac_env_${ac_var}_value 2677 case $ac_old_set,$ac_new_set in 2678 set,) 2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2680printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2681 ac_cache_corrupted=: ;; 2682 ,set) 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2684printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2685 ac_cache_corrupted=: ;; 2686 ,);; 2687 *) 2688 if test "x$ac_old_val" != "x$ac_new_val"; then 2689 # differences in whitespace do not lead to failure. 2690 ac_old_val_w=`echo x $ac_old_val` 2691 ac_new_val_w=`echo x $ac_new_val` 2692 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2694printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2695 ac_cache_corrupted=: 2696 else 2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2698printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2699 eval $ac_var=\$ac_old_val 2700 fi 2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2702printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2704printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2705 fi;; 2706 esac 2707 # Pass precious variables to config.status. 2708 if test "$ac_new_set" = set; then 2709 case $ac_new_val in 2710 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2711 *) ac_arg=$ac_var=$ac_new_val ;; 2712 esac 2713 case " $ac_configure_args " in 2714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2715 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2716 esac 2717 fi 2718done 2719if $ac_cache_corrupted; then 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2721printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2723printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2724 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2725 and start over" "$LINENO" 5 2726fi 2727## -------------------- ## 2728## Main body of script. ## 2729## -------------------- ## 2730 2731ac_ext=c 2732ac_cpp='$CPP $CPPFLAGS' 2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2735ac_compiler_gnu=$ac_cv_c_compiler_gnu 2736 2737 2738 2739ac_config_headers="$ac_config_headers config.h" 2740 2741 2742 2743# Initialize Automake 2744am__api_version='1.17' 2745 2746 2747 2748 # Find a good install program. We prefer a C program (faster), 2749# so one script is as good as another. But avoid the broken or 2750# incompatible versions: 2751# SysV /etc/install, /usr/sbin/install 2752# SunOS /usr/etc/install 2753# IRIX /sbin/install 2754# AIX /bin/install 2755# AmigaOS /C/install, which installs bootblocks on floppy discs 2756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2757# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2759# OS/2's system install, which has a completely different semantic 2760# ./install, which can be erroneously created by make from ./install.sh. 2761# Reject install programs that cannot install multiple files. 2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2763printf %s "checking for a BSD-compatible install... " >&6; } 2764if test -z "$INSTALL"; then 2765if test ${ac_cv_path_install+y} 2766then : 2767 printf %s "(cached) " >&6 2768else case e in #( 2769 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 case $as_dir in #((( 2774 '') as_dir=./ ;; 2775 */) ;; 2776 *) as_dir=$as_dir/ ;; 2777 esac 2778 # Account for fact that we put trailing slashes in our PATH walk. 2779case $as_dir in #(( 2780 ./ | /[cC]/* | \ 2781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2782 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2783 /usr/ucb/* ) ;; 2784 *) 2785 # OSF1 and SCO ODT 3.0 have their own names for install. 2786 # Don't use installbsd from OSF since it installs stuff as root 2787 # by default. 2788 for ac_prog in ginstall scoinst install; do 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2791 if test $ac_prog = install && 2792 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2793 # AIX install. It has an incompatible calling convention. 2794 : 2795 elif test $ac_prog = install && 2796 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2797 # program-specific install script used by HP pwplus--don't use. 2798 : 2799 else 2800 rm -rf conftest.one conftest.two conftest.dir 2801 echo one > conftest.one 2802 echo two > conftest.two 2803 mkdir conftest.dir 2804 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2805 test -s conftest.one && test -s conftest.two && 2806 test -s conftest.dir/conftest.one && 2807 test -s conftest.dir/conftest.two 2808 then 2809 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2810 break 3 2811 fi 2812 fi 2813 fi 2814 done 2815 done 2816 ;; 2817esac 2818 2819 done 2820IFS=$as_save_IFS 2821 2822rm -rf conftest.one conftest.two conftest.dir 2823 ;; 2824esac 2825fi 2826 if test ${ac_cv_path_install+y}; then 2827 INSTALL=$ac_cv_path_install 2828 else 2829 # As a last resort, use the slow shell script. Don't cache a 2830 # value for INSTALL within a source directory, because that will 2831 # break other packages using the cache if that directory is 2832 # removed, or if the value is a relative name. 2833 INSTALL=$ac_install_sh 2834 fi 2835fi 2836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2837printf "%s\n" "$INSTALL" >&6; } 2838 2839# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2840# It thinks the first close brace ends the variable substitution. 2841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2842 2843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2844 2845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2846 2847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2848printf %s "checking whether sleep supports fractional seconds... " >&6; } 2849if test ${am_cv_sleep_fractional_seconds+y} 2850then : 2851 printf %s "(cached) " >&6 2852else case e in #( 2853 e) if sleep 0.001 2>/dev/null 2854then : 2855 am_cv_sleep_fractional_seconds=yes 2856else case e in #( 2857 e) am_cv_sleep_fractional_seconds=no ;; 2858esac 2859fi 2860 ;; 2861esac 2862fi 2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2864printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2865 2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2867printf %s "checking filesystem timestamp resolution... " >&6; } 2868if test ${am_cv_filesystem_timestamp_resolution+y} 2869then : 2870 printf %s "(cached) " >&6 2871else case e in #( 2872 e) # Default to the worst case. 2873am_cv_filesystem_timestamp_resolution=2 2874 2875# Only try to go finer than 1 sec if sleep can do it. 2876# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2877# - 1 sec is not much of a win compared to 2 sec, and 2878# - it takes 2 seconds to perform the test whether 1 sec works. 2879# 2880# Instead, just use the default 2s on platforms that have 1s resolution, 2881# accept the extra 1s delay when using $sleep in the Automake tests, in 2882# exchange for not incurring the 2s delay for running the test for all 2883# packages. 2884# 2885am_try_resolutions= 2886if test "$am_cv_sleep_fractional_seconds" = yes; then 2887 # Even a millisecond often causes a bunch of false positives, 2888 # so just try a hundredth of a second. The time saved between .001 and 2889 # .01 is not terribly consequential. 2890 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2891fi 2892 2893# In order to catch current-generation FAT out, we must *modify* files 2894# that already exist; the *creation* timestamp is finer. Use names 2895# that make ls -t sort them differently when they have equal 2896# timestamps than when they have distinct timestamps, keeping 2897# in mind that ls -t prints the *newest* file first. 2898rm -f conftest.ts? 2899: > conftest.ts1 2900: > conftest.ts2 2901: > conftest.ts3 2902 2903# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2904# clobber the current shell's arguments. (Outer-level square brackets 2905# are removed by m4; they're present so that m4 does not expand 2906# <dollar><star>; be careful, easy to get confused.) 2907if ( 2908 set X `ls -t conftest.ts[12]` && 2909 { 2910 test "$*" != "X conftest.ts1 conftest.ts2" || 2911 test "$*" != "X conftest.ts2 conftest.ts1"; 2912 } 2913); then :; else 2914 # If neither matched, then we have a broken ls. This can happen 2915 # if, for instance, CONFIG_SHELL is bash and it inherits a 2916 # broken ls alias from the environment. This has actually 2917 # happened. Such a system could not be considered "sane". 2918 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2920printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2921as_fn_error $? "ls -t produces unexpected output. 2922Make sure there is not a broken ls alias in your environment. 2923See 'config.log' for more details" "$LINENO" 5; } 2924fi 2925 2926for am_try_res in $am_try_resolutions; do 2927 # Any one fine-grained sleep might happen to cross the boundary 2928 # between two values of a coarser actual resolution, but if we do 2929 # two fine-grained sleeps in a row, at least one of them will fall 2930 # entirely within a coarse interval. 2931 echo alpha > conftest.ts1 2932 sleep $am_try_res 2933 echo beta > conftest.ts2 2934 sleep $am_try_res 2935 echo gamma > conftest.ts3 2936 2937 # We assume that 'ls -t' will make use of high-resolution 2938 # timestamps if the operating system supports them at all. 2939 if (set X `ls -t conftest.ts?` && 2940 test "$2" = conftest.ts3 && 2941 test "$3" = conftest.ts2 && 2942 test "$4" = conftest.ts1); then 2943 # 2944 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2945 # because we don't need to test make. 2946 make_ok=true 2947 if test $am_try_res != 1; then 2948 # But if we've succeeded so far with a subsecond resolution, we 2949 # have one more thing to check: make. It can happen that 2950 # everything else supports the subsecond mtimes, but make doesn't; 2951 # notably on macOS, which ships make 3.81 from 2006 (the last one 2952 # released under GPLv2). https://bugs.gnu.org/68808 2953 # 2954 # We test $MAKE if it is defined in the environment, else "make". 2955 # It might get overridden later, but our hope is that in practice 2956 # it does not matter: it is the system "make" which is (by far) 2957 # the most likely to be broken, whereas if the user overrides it, 2958 # probably they did so with a better, or at least not worse, make. 2959 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2960 # 2961 # Create a Makefile (real tab character here): 2962 rm -f conftest.mk 2963 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2964 echo ' touch conftest.ts2' >>conftest.mk 2965 # 2966 # Now, running 2967 # touch conftest.ts1; touch conftest.ts2; make 2968 # should touch ts1 because ts2 is newer. This could happen by luck, 2969 # but most often, it will fail if make's support is insufficient. So 2970 # test for several consecutive successes. 2971 # 2972 # (We reuse conftest.ts[12] because we still want to modify existing 2973 # files, not create new ones, per above.) 2974 n=0 2975 make=${MAKE-make} 2976 until test $n -eq 3; do 2977 echo one > conftest.ts1 2978 sleep $am_try_res 2979 echo two > conftest.ts2 # ts2 should now be newer than ts1 2980 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2981 make_ok=false 2982 break # out of $n loop 2983 fi 2984 n=`expr $n + 1` 2985 done 2986 fi 2987 # 2988 if $make_ok; then 2989 # Everything we know to check worked out, so call this resolution good. 2990 am_cv_filesystem_timestamp_resolution=$am_try_res 2991 break # out of $am_try_res loop 2992 fi 2993 # Otherwise, we'll go on to check the next resolution. 2994 fi 2995done 2996rm -f conftest.ts? 2997# (end _am_filesystem_timestamp_resolution) 2998 ;; 2999esac 3000fi 3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3002printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3003 3004# This check should not be cached, as it may vary across builds of 3005# different projects. 3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3007printf %s "checking whether build environment is sane... " >&6; } 3008# Reject unsafe characters in $srcdir or the absolute working directory 3009# name. Accept space and tab only in the latter. 3010am_lf=' 3011' 3012case `pwd` in 3013 *[\\\"\#\$\&\'\`$am_lf]*) 3014 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3015esac 3016case $srcdir in 3017 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3018 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3019esac 3020 3021# Do 'set' in a subshell so we don't clobber the current shell's 3022# arguments. Must try -L first in case configure is actually a 3023# symlink; some systems play weird games with the mod time of symlinks 3024# (eg FreeBSD returns the mod time of the symlink's containing 3025# directory). 3026am_build_env_is_sane=no 3027am_has_slept=no 3028rm -f conftest.file 3029for am_try in 1 2; do 3030 echo "timestamp, slept: $am_has_slept" > conftest.file 3031 if ( 3032 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3033 if test "$*" = "X"; then 3034 # -L didn't work. 3035 set X `ls -t "$srcdir/configure" conftest.file` 3036 fi 3037 test "$2" = conftest.file 3038 ); then 3039 am_build_env_is_sane=yes 3040 break 3041 fi 3042 # Just in case. 3043 sleep "$am_cv_filesystem_timestamp_resolution" 3044 am_has_slept=yes 3045done 3046 3047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3048printf "%s\n" "$am_build_env_is_sane" >&6; } 3049if test "$am_build_env_is_sane" = no; then 3050 as_fn_error $? "newly created file is older than distributed files! 3051Check your system clock" "$LINENO" 5 3052fi 3053 3054# If we didn't sleep, we still need to ensure time stamps of config.status and 3055# generated files are strictly newer. 3056am_sleep_pid= 3057if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3058then : 3059 3060else case e in #( 3061 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3062 am_sleep_pid=$! 3063 ;; 3064esac 3065fi 3066 3067rm -f conftest.file 3068 3069test "$program_prefix" != NONE && 3070 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3071# Use a double $ so make ignores it. 3072test "$program_suffix" != NONE && 3073 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3074# Double any \ or $. 3075# By default was 's,x,x', remove it if useless. 3076ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3077program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3078 3079 3080# Expand $ac_aux_dir to an absolute path. 3081am_aux_dir=`cd "$ac_aux_dir" && pwd` 3082 3083 3084 if test x"${MISSING+set}" != xset; then 3085 MISSING="\${SHELL} '$am_aux_dir/missing'" 3086fi 3087# Use eval to expand $SHELL 3088if eval "$MISSING --is-lightweight"; then 3089 am_missing_run="$MISSING " 3090else 3091 am_missing_run= 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3093printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3094fi 3095 3096if test x"${install_sh+set}" != xset; then 3097 case $am_aux_dir in 3098 *\ * | *\ *) 3099 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3100 *) 3101 install_sh="\${SHELL} $am_aux_dir/install-sh" 3102 esac 3103fi 3104 3105# Installed binaries are usually stripped using 'strip' when the user 3106# run "make install-strip". However 'strip' might not be the right 3107# tool to use in cross-compilation environments, therefore Automake 3108# will honor the 'STRIP' environment variable to overrule this program. 3109if test "$cross_compiling" != no; then 3110 if test -n "$ac_tool_prefix"; then 3111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3112set dummy ${ac_tool_prefix}strip; ac_word=$2 3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114printf %s "checking for $ac_word... " >&6; } 3115if test ${ac_cv_prog_STRIP+y} 3116then : 3117 printf %s "(cached) " >&6 3118else case e in #( 3119 e) if test -n "$STRIP"; then 3120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3121else 3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH 3124do 3125 IFS=$as_save_IFS 3126 case $as_dir in #((( 3127 '') as_dir=./ ;; 3128 */) ;; 3129 *) as_dir=$as_dir/ ;; 3130 esac 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi ;; 3142esac 3143fi 3144STRIP=$ac_cv_prog_STRIP 3145if test -n "$STRIP"; then 3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3147printf "%s\n" "$STRIP" >&6; } 3148else 3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150printf "%s\n" "no" >&6; } 3151fi 3152 3153 3154fi 3155if test -z "$ac_cv_prog_STRIP"; then 3156 ac_ct_STRIP=$STRIP 3157 # Extract the first word of "strip", so it can be a program name with args. 3158set dummy strip; ac_word=$2 3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160printf %s "checking for $ac_word... " >&6; } 3161if test ${ac_cv_prog_ac_ct_STRIP+y} 3162then : 3163 printf %s "(cached) " >&6 3164else case e in #( 3165 e) if test -n "$ac_ct_STRIP"; then 3166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 case $as_dir in #((( 3173 '') as_dir=./ ;; 3174 */) ;; 3175 *) as_dir=$as_dir/ ;; 3176 esac 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3179 ac_cv_prog_ac_ct_STRIP="strip" 3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3181 break 2 3182 fi 3183done 3184 done 3185IFS=$as_save_IFS 3186 3187fi ;; 3188esac 3189fi 3190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3191if test -n "$ac_ct_STRIP"; then 3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3193printf "%s\n" "$ac_ct_STRIP" >&6; } 3194else 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196printf "%s\n" "no" >&6; } 3197fi 3198 3199 if test "x$ac_ct_STRIP" = x; then 3200 STRIP=":" 3201 else 3202 case $cross_compiling:$ac_tool_warned in 3203yes:) 3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3206ac_tool_warned=yes ;; 3207esac 3208 STRIP=$ac_ct_STRIP 3209 fi 3210else 3211 STRIP="$ac_cv_prog_STRIP" 3212fi 3213 3214fi 3215INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3216 3217 3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3219printf %s "checking for a race-free mkdir -p... " >&6; } 3220if test -z "$MKDIR_P"; then 3221 if test ${ac_cv_path_mkdir+y} 3222then : 3223 printf %s "(cached) " >&6 3224else case e in #( 3225 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3227do 3228 IFS=$as_save_IFS 3229 case $as_dir in #((( 3230 '') as_dir=./ ;; 3231 */) ;; 3232 *) as_dir=$as_dir/ ;; 3233 esac 3234 for ac_prog in mkdir gmkdir; do 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3237 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3238 'mkdir ('*'coreutils) '* | \ 3239 *'BusyBox '* | \ 3240 'mkdir (fileutils) '4.1*) 3241 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3242 break 3;; 3243 esac 3244 done 3245 done 3246 done 3247IFS=$as_save_IFS 3248 ;; 3249esac 3250fi 3251 3252 test -d ./--version && rmdir ./--version 3253 if test ${ac_cv_path_mkdir+y}; then 3254 MKDIR_P="$ac_cv_path_mkdir -p" 3255 else 3256 # As a last resort, use plain mkdir -p, 3257 # in the hope it doesn't have the bugs of ancient mkdir. 3258 MKDIR_P='mkdir -p' 3259 fi 3260fi 3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3262printf "%s\n" "$MKDIR_P" >&6; } 3263 3264for ac_prog in gawk mawk nawk awk 3265do 3266 # Extract the first word of "$ac_prog", so it can be a program name with args. 3267set dummy $ac_prog; ac_word=$2 3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3269printf %s "checking for $ac_word... " >&6; } 3270if test ${ac_cv_prog_AWK+y} 3271then : 3272 printf %s "(cached) " >&6 3273else case e in #( 3274 e) if test -n "$AWK"; then 3275 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3276else 3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3278for as_dir in $PATH 3279do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_AWK="$ac_prog" 3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi ;; 3297esac 3298fi 3299AWK=$ac_cv_prog_AWK 3300if test -n "$AWK"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3302printf "%s\n" "$AWK" >&6; } 3303else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305printf "%s\n" "no" >&6; } 3306fi 3307 3308 3309 test -n "$AWK" && break 3310done 3311 3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3314set x ${MAKE-make} 3315ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3316if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3317then : 3318 printf %s "(cached) " >&6 3319else case e in #( 3320 e) cat >conftest.make <<\_ACEOF 3321SHELL = /bin/sh 3322all: 3323 @echo '@@@%%%=$(MAKE)=@@@%%%' 3324_ACEOF 3325# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3326case `${MAKE-make} -f conftest.make 2>/dev/null` in 3327 *@@@%%%=?*=@@@%%%*) 3328 eval ac_cv_prog_make_${ac_make}_set=yes;; 3329 *) 3330 eval ac_cv_prog_make_${ac_make}_set=no;; 3331esac 3332rm -f conftest.make ;; 3333esac 3334fi 3335if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3337printf "%s\n" "yes" >&6; } 3338 SET_MAKE= 3339else 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341printf "%s\n" "no" >&6; } 3342 SET_MAKE="MAKE=${MAKE-make}" 3343fi 3344 3345rm -rf .tst 2>/dev/null 3346mkdir .tst 2>/dev/null 3347if test -d .tst; then 3348 am__leading_dot=. 3349else 3350 am__leading_dot=_ 3351fi 3352rmdir .tst 2>/dev/null 3353 3354AM_DEFAULT_VERBOSITY=1 3355# Check whether --enable-silent-rules was given. 3356if test ${enable_silent_rules+y} 3357then : 3358 enableval=$enable_silent_rules; 3359fi 3360 3361am_make=${MAKE-make} 3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3363printf %s "checking whether $am_make supports nested variables... " >&6; } 3364if test ${am_cv_make_support_nested_variables+y} 3365then : 3366 printf %s "(cached) " >&6 3367else case e in #( 3368 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3369BAR0=false 3370BAR1=true 3371V=1 3372am__doit: 3373 @$(TRUE) 3374.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3375 am_cv_make_support_nested_variables=yes 3376else 3377 am_cv_make_support_nested_variables=no 3378fi ;; 3379esac 3380fi 3381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3382printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3383AM_BACKSLASH='\' 3384 3385am__rm_f_notfound= 3386if (rm -f && rm -fr && rm -rf) 2>/dev/null 3387then : 3388 3389else case e in #( 3390 e) am__rm_f_notfound='""' ;; 3391esac 3392fi 3393 3394 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3396printf %s "checking xargs -n works... " >&6; } 3397if test ${am_cv_xargs_n_works+y} 3398then : 3399 printf %s "(cached) " >&6 3400else case e in #( 3401 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 34023" 3403then : 3404 am_cv_xargs_n_works=yes 3405else case e in #( 3406 e) am_cv_xargs_n_works=no ;; 3407esac 3408fi ;; 3409esac 3410fi 3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3412printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3413if test "$am_cv_xargs_n_works" = yes 3414then : 3415 am__xargs_n='xargs -n' 3416else case e in #( 3417 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3418 ;; 3419esac 3420fi 3421 3422if test "`cd $srcdir && pwd`" != "`pwd`"; then 3423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3424 # is not polluted with repeated "-I." 3425 am__isrc=' -I$(srcdir)' 3426 # test to see if srcdir already configured 3427 if test -f $srcdir/config.status; then 3428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3429 fi 3430fi 3431 3432# test whether we have cygpath 3433if test -z "$CYGPATH_W"; then 3434 if (cygpath --version) >/dev/null 2>/dev/null; then 3435 CYGPATH_W='cygpath -w' 3436 else 3437 CYGPATH_W=echo 3438 fi 3439fi 3440 3441 3442# Define the identity of the package. 3443 PACKAGE='libXtst' 3444 VERSION='1.2.5' 3445 3446 3447printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3448 3449 3450printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3451 3452# Some tools Automake needs. 3453 3454ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3455 3456 3457AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3458 3459 3460AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3461 3462 3463AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3464 3465 3466MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3467 3468# For better backward compatibility. To be removed once Automake 1.9.x 3469# dies out for good. For more background, see: 3470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3472mkdir_p='$(MKDIR_P)' 3473 3474# We need awk for the "check" target (and possibly the TAP driver). The 3475# system "awk" is bad on some platforms. 3476# Always define AMTAR for backward compatibility. Yes, it's still used 3477# in the wild :-( We should find a proper way to deprecate it ... 3478AMTAR='$${TAR-tar}' 3479 3480 3481# We'll loop over all known methods to create a tar archive until one works. 3482_am_tools='gnutar pax cpio none' 3483 3484am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3485 3486 3487 3488 3489 3490# Variables for tags utilities; see am/tags.am 3491if test -z "$CTAGS"; then 3492 CTAGS=ctags 3493fi 3494 3495if test -z "$ETAGS"; then 3496 ETAGS=etags 3497fi 3498 3499if test -z "$CSCOPE"; then 3500 CSCOPE=cscope 3501fi 3502 3503 3504 3505 3506 3507 3508 3509 3510# Initialize libtool 3511case `pwd` in 3512 *\ * | *\ *) 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3514printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3515esac 3516 3517 3518 3519macro_version='2.4.7' 3520macro_revision='2.4.7' 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535ltmain=$ac_aux_dir/ltmain.sh 3536 3537 3538 3539 # Make sure we can run config.sub. 3540$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3541 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3542 3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3544printf %s "checking build system type... " >&6; } 3545if test ${ac_cv_build+y} 3546then : 3547 printf %s "(cached) " >&6 3548else case e in #( 3549 e) ac_build_alias=$build_alias 3550test "x$ac_build_alias" = x && 3551 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3552test "x$ac_build_alias" = x && 3553 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3554ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3555 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3556 ;; 3557esac 3558fi 3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3560printf "%s\n" "$ac_cv_build" >&6; } 3561case $ac_cv_build in 3562*-*-*) ;; 3563*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3564esac 3565build=$ac_cv_build 3566ac_save_IFS=$IFS; IFS='-' 3567set x $ac_cv_build 3568shift 3569build_cpu=$1 3570build_vendor=$2 3571shift; shift 3572# Remember, the first character of IFS is used to create $*, 3573# except with old shells: 3574build_os=$* 3575IFS=$ac_save_IFS 3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3577 3578 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3580printf %s "checking host system type... " >&6; } 3581if test ${ac_cv_host+y} 3582then : 3583 printf %s "(cached) " >&6 3584else case e in #( 3585 e) if test "x$host_alias" = x; then 3586 ac_cv_host=$ac_cv_build 3587else 3588 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3589 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3590fi 3591 ;; 3592esac 3593fi 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3595printf "%s\n" "$ac_cv_host" >&6; } 3596case $ac_cv_host in 3597*-*-*) ;; 3598*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3599esac 3600host=$ac_cv_host 3601ac_save_IFS=$IFS; IFS='-' 3602set x $ac_cv_host 3603shift 3604host_cpu=$1 3605host_vendor=$2 3606shift; shift 3607# Remember, the first character of IFS is used to create $*, 3608# except with old shells: 3609host_os=$* 3610IFS=$ac_save_IFS 3611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3612 3613 3614# Backslashify metacharacters that are still active within 3615# double-quoted strings. 3616sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3617 3618# Same as above, but do not quote variable references. 3619double_quote_subst='s/\(["`\\]\)/\\\1/g' 3620 3621# Sed substitution to delay expansion of an escaped shell variable in a 3622# double_quote_subst'ed string. 3623delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3624 3625# Sed substitution to delay expansion of an escaped single quote. 3626delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3627 3628# Sed substitution to avoid accidental globbing in evaled expressions 3629no_glob_subst='s/\*/\\\*/g' 3630 3631ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3632ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3634 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3636printf %s "checking how to print strings... " >&6; } 3637# Test print first, because it will be a builtin if present. 3638if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3639 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3640 ECHO='print -r --' 3641elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3642 ECHO='printf %s\n' 3643else 3644 # Use this function as a fallback that always works. 3645 func_fallback_echo () 3646 { 3647 eval 'cat <<_LTECHO_EOF 3648$1 3649_LTECHO_EOF' 3650 } 3651 ECHO='func_fallback_echo' 3652fi 3653 3654# func_echo_all arg... 3655# Invoke $ECHO with all args, space-separated. 3656func_echo_all () 3657{ 3658 $ECHO "" 3659} 3660 3661case $ECHO in 3662 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3663printf "%s\n" "printf" >&6; } ;; 3664 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3665printf "%s\n" "print -r" >&6; } ;; 3666 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3667printf "%s\n" "cat" >&6; } ;; 3668esac 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692DEPDIR="${am__leading_dot}deps" 3693 3694ac_config_commands="$ac_config_commands depfiles" 3695 3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3697printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3698cat > confinc.mk << 'END' 3699am__doit: 3700 @echo this is the am__doit target >confinc.out 3701.PHONY: am__doit 3702END 3703am__include="#" 3704am__quote= 3705# BSD make does it like this. 3706echo '.include "confinc.mk" # ignored' > confmf.BSD 3707# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3708echo 'include confinc.mk # ignored' > confmf.GNU 3709_am_result=no 3710for s in GNU BSD; do 3711 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3712 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3713 ac_status=$? 3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3715 (exit $ac_status); } 3716 case $?:`cat confinc.out 2>/dev/null` in #( 3717 '0:this is the am__doit target') : 3718 case $s in #( 3719 BSD) : 3720 am__include='.include' am__quote='"' ;; #( 3721 *) : 3722 am__include='include' am__quote='' ;; 3723esac ;; #( 3724 *) : 3725 ;; 3726esac 3727 if test "$am__include" != "#"; then 3728 _am_result="yes ($s style)" 3729 break 3730 fi 3731done 3732rm -f confinc.* confmf.* 3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3734printf "%s\n" "${_am_result}" >&6; } 3735 3736# Check whether --enable-dependency-tracking was given. 3737if test ${enable_dependency_tracking+y} 3738then : 3739 enableval=$enable_dependency_tracking; 3740fi 3741 3742if test "x$enable_dependency_tracking" != xno; then 3743 am_depcomp="$ac_aux_dir/depcomp" 3744 AMDEPBACKSLASH='\' 3745 am__nodep='_no' 3746fi 3747 if test "x$enable_dependency_tracking" != xno; then 3748 AMDEP_TRUE= 3749 AMDEP_FALSE='#' 3750else 3751 AMDEP_TRUE='#' 3752 AMDEP_FALSE= 3753fi 3754 3755 3756ac_ext=c 3757ac_cpp='$CPP $CPPFLAGS' 3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3760ac_compiler_gnu=$ac_cv_c_compiler_gnu 3761if test -n "$ac_tool_prefix"; then 3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3763set dummy ${ac_tool_prefix}gcc; ac_word=$2 3764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3765printf %s "checking for $ac_word... " >&6; } 3766if test ${ac_cv_prog_CC+y} 3767then : 3768 printf %s "(cached) " >&6 3769else case e in #( 3770 e) if test -n "$CC"; then 3771 ac_cv_prog_CC="$CC" # Let the user override the test. 3772else 3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3774for as_dir in $PATH 3775do 3776 IFS=$as_save_IFS 3777 case $as_dir in #((( 3778 '') as_dir=./ ;; 3779 */) ;; 3780 *) as_dir=$as_dir/ ;; 3781 esac 3782 for ac_exec_ext in '' $ac_executable_extensions; do 3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3784 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3786 break 2 3787 fi 3788done 3789 done 3790IFS=$as_save_IFS 3791 3792fi ;; 3793esac 3794fi 3795CC=$ac_cv_prog_CC 3796if test -n "$CC"; then 3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3798printf "%s\n" "$CC" >&6; } 3799else 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801printf "%s\n" "no" >&6; } 3802fi 3803 3804 3805fi 3806if test -z "$ac_cv_prog_CC"; then 3807 ac_ct_CC=$CC 3808 # Extract the first word of "gcc", so it can be a program name with args. 3809set dummy gcc; ac_word=$2 3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3811printf %s "checking for $ac_word... " >&6; } 3812if test ${ac_cv_prog_ac_ct_CC+y} 3813then : 3814 printf %s "(cached) " >&6 3815else case e in #( 3816 e) if test -n "$ac_ct_CC"; then 3817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 case $as_dir in #((( 3824 '') as_dir=./ ;; 3825 */) ;; 3826 *) as_dir=$as_dir/ ;; 3827 esac 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3830 ac_cv_prog_ac_ct_CC="gcc" 3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3832 break 2 3833 fi 3834done 3835 done 3836IFS=$as_save_IFS 3837 3838fi ;; 3839esac 3840fi 3841ac_ct_CC=$ac_cv_prog_ac_ct_CC 3842if test -n "$ac_ct_CC"; then 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3844printf "%s\n" "$ac_ct_CC" >&6; } 3845else 3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847printf "%s\n" "no" >&6; } 3848fi 3849 3850 if test "x$ac_ct_CC" = x; then 3851 CC="" 3852 else 3853 case $cross_compiling:$ac_tool_warned in 3854yes:) 3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3857ac_tool_warned=yes ;; 3858esac 3859 CC=$ac_ct_CC 3860 fi 3861else 3862 CC="$ac_cv_prog_CC" 3863fi 3864 3865if test -z "$CC"; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3868set dummy ${ac_tool_prefix}cc; ac_word=$2 3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870printf %s "checking for $ac_word... " >&6; } 3871if test ${ac_cv_prog_CC+y} 3872then : 3873 printf %s "(cached) " >&6 3874else case e in #( 3875 e) if test -n "$CC"; then 3876 ac_cv_prog_CC="$CC" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 case $as_dir in #((( 3883 '') as_dir=./ ;; 3884 */) ;; 3885 *) as_dir=$as_dir/ ;; 3886 esac 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3889 ac_cv_prog_CC="${ac_tool_prefix}cc" 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893done 3894 done 3895IFS=$as_save_IFS 3896 3897fi ;; 3898esac 3899fi 3900CC=$ac_cv_prog_CC 3901if test -n "$CC"; then 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3903printf "%s\n" "$CC" >&6; } 3904else 3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3906printf "%s\n" "no" >&6; } 3907fi 3908 3909 3910 fi 3911fi 3912if test -z "$CC"; then 3913 # Extract the first word of "cc", so it can be a program name with args. 3914set dummy cc; ac_word=$2 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3916printf %s "checking for $ac_word... " >&6; } 3917if test ${ac_cv_prog_CC+y} 3918then : 3919 printf %s "(cached) " >&6 3920else case e in #( 3921 e) if test -n "$CC"; then 3922 ac_cv_prog_CC="$CC" # Let the user override the test. 3923else 3924 ac_prog_rejected=no 3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3926for as_dir in $PATH 3927do 3928 IFS=$as_save_IFS 3929 case $as_dir in #((( 3930 '') as_dir=./ ;; 3931 */) ;; 3932 *) as_dir=$as_dir/ ;; 3933 esac 3934 for ac_exec_ext in '' $ac_executable_extensions; do 3935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3936 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3937 ac_prog_rejected=yes 3938 continue 3939 fi 3940 ac_cv_prog_CC="cc" 3941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3942 break 2 3943 fi 3944done 3945 done 3946IFS=$as_save_IFS 3947 3948if test $ac_prog_rejected = yes; then 3949 # We found a bogon in the path, so make sure we never use it. 3950 set dummy $ac_cv_prog_CC 3951 shift 3952 if test $# != 0; then 3953 # We chose a different compiler from the bogus one. 3954 # However, it has the same basename, so the bogon will be chosen 3955 # first if we set CC to just the basename; use the full file name. 3956 shift 3957 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3958 fi 3959fi 3960fi ;; 3961esac 3962fi 3963CC=$ac_cv_prog_CC 3964if test -n "$CC"; then 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3966printf "%s\n" "$CC" >&6; } 3967else 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969printf "%s\n" "no" >&6; } 3970fi 3971 3972 3973fi 3974if test -z "$CC"; then 3975 if test -n "$ac_tool_prefix"; then 3976 for ac_prog in cl.exe 3977 do 3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3979set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3981printf %s "checking for $ac_word... " >&6; } 3982if test ${ac_cv_prog_CC+y} 3983then : 3984 printf %s "(cached) " >&6 3985else case e in #( 3986 e) if test -n "$CC"; then 3987 ac_cv_prog_CC="$CC" # Let the user override the test. 3988else 3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3990for as_dir in $PATH 3991do 3992 IFS=$as_save_IFS 3993 case $as_dir in #((( 3994 '') as_dir=./ ;; 3995 */) ;; 3996 *) as_dir=$as_dir/ ;; 3997 esac 3998 for ac_exec_ext in '' $ac_executable_extensions; do 3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4002 break 2 4003 fi 4004done 4005 done 4006IFS=$as_save_IFS 4007 4008fi ;; 4009esac 4010fi 4011CC=$ac_cv_prog_CC 4012if test -n "$CC"; then 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4014printf "%s\n" "$CC" >&6; } 4015else 4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4017printf "%s\n" "no" >&6; } 4018fi 4019 4020 4021 test -n "$CC" && break 4022 done 4023fi 4024if test -z "$CC"; then 4025 ac_ct_CC=$CC 4026 for ac_prog in cl.exe 4027do 4028 # Extract the first word of "$ac_prog", so it can be a program name with args. 4029set dummy $ac_prog; ac_word=$2 4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031printf %s "checking for $ac_word... " >&6; } 4032if test ${ac_cv_prog_ac_ct_CC+y} 4033then : 4034 printf %s "(cached) " >&6 4035else case e in #( 4036 e) if test -n "$ac_ct_CC"; then 4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4038else 4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040for as_dir in $PATH 4041do 4042 IFS=$as_save_IFS 4043 case $as_dir in #((( 4044 '') as_dir=./ ;; 4045 */) ;; 4046 *) as_dir=$as_dir/ ;; 4047 esac 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_ac_ct_CC="$ac_prog" 4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi ;; 4059esac 4060fi 4061ac_ct_CC=$ac_cv_prog_ac_ct_CC 4062if test -n "$ac_ct_CC"; then 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4064printf "%s\n" "$ac_ct_CC" >&6; } 4065else 4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067printf "%s\n" "no" >&6; } 4068fi 4069 4070 4071 test -n "$ac_ct_CC" && break 4072done 4073 4074 if test "x$ac_ct_CC" = x; then 4075 CC="" 4076 else 4077 case $cross_compiling:$ac_tool_warned in 4078yes:) 4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4080printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4081ac_tool_warned=yes ;; 4082esac 4083 CC=$ac_ct_CC 4084 fi 4085fi 4086 4087fi 4088if test -z "$CC"; then 4089 if test -n "$ac_tool_prefix"; then 4090 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4091set dummy ${ac_tool_prefix}clang; ac_word=$2 4092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4093printf %s "checking for $ac_word... " >&6; } 4094if test ${ac_cv_prog_CC+y} 4095then : 4096 printf %s "(cached) " >&6 4097else case e in #( 4098 e) if test -n "$CC"; then 4099 ac_cv_prog_CC="$CC" # Let the user override the test. 4100else 4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4102for as_dir in $PATH 4103do 4104 IFS=$as_save_IFS 4105 case $as_dir in #((( 4106 '') as_dir=./ ;; 4107 */) ;; 4108 *) as_dir=$as_dir/ ;; 4109 esac 4110 for ac_exec_ext in '' $ac_executable_extensions; do 4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4112 ac_cv_prog_CC="${ac_tool_prefix}clang" 4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4114 break 2 4115 fi 4116done 4117 done 4118IFS=$as_save_IFS 4119 4120fi ;; 4121esac 4122fi 4123CC=$ac_cv_prog_CC 4124if test -n "$CC"; then 4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4126printf "%s\n" "$CC" >&6; } 4127else 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4129printf "%s\n" "no" >&6; } 4130fi 4131 4132 4133fi 4134if test -z "$ac_cv_prog_CC"; then 4135 ac_ct_CC=$CC 4136 # Extract the first word of "clang", so it can be a program name with args. 4137set dummy clang; ac_word=$2 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4139printf %s "checking for $ac_word... " >&6; } 4140if test ${ac_cv_prog_ac_ct_CC+y} 4141then : 4142 printf %s "(cached) " >&6 4143else case e in #( 4144 e) if test -n "$ac_ct_CC"; then 4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 case $as_dir in #((( 4152 '') as_dir=./ ;; 4153 */) ;; 4154 *) as_dir=$as_dir/ ;; 4155 esac 4156 for ac_exec_ext in '' $ac_executable_extensions; do 4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4158 ac_cv_prog_ac_ct_CC="clang" 4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4160 break 2 4161 fi 4162done 4163 done 4164IFS=$as_save_IFS 4165 4166fi ;; 4167esac 4168fi 4169ac_ct_CC=$ac_cv_prog_ac_ct_CC 4170if test -n "$ac_ct_CC"; then 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4172printf "%s\n" "$ac_ct_CC" >&6; } 4173else 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4175printf "%s\n" "no" >&6; } 4176fi 4177 4178 if test "x$ac_ct_CC" = x; then 4179 CC="" 4180 else 4181 case $cross_compiling:$ac_tool_warned in 4182yes:) 4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4185ac_tool_warned=yes ;; 4186esac 4187 CC=$ac_ct_CC 4188 fi 4189else 4190 CC="$ac_cv_prog_CC" 4191fi 4192 4193fi 4194 4195 4196test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4197printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4198as_fn_error $? "no acceptable C compiler found in \$PATH 4199See 'config.log' for more details" "$LINENO" 5; } 4200 4201# Provide some information about the compiler. 4202printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4203set X $ac_compile 4204ac_compiler=$2 4205for ac_option in --version -v -V -qversion -version; do 4206 { { ac_try="$ac_compiler $ac_option >&5" 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_compiler $ac_option >&5") 2>conftest.err 4214 ac_status=$? 4215 if test -s conftest.err; then 4216 sed '10a\ 4217... rest of stderr output deleted ... 4218 10q' conftest.err >conftest.er1 4219 cat conftest.er1 >&5 4220 fi 4221 rm -f conftest.er1 conftest.err 4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4223 test $ac_status = 0; } 4224done 4225 4226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228 4229int 4230main (void) 4231{ 4232 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237ac_clean_files_save=$ac_clean_files 4238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4239# Try to create an executable without -o first, disregard a.out. 4240# It will help us diagnose broken compilers, and finding out an intuition 4241# of exeext. 4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4243printf %s "checking whether the C compiler works... " >&6; } 4244ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4245 4246# The possible output files: 4247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4248 4249ac_rmfiles= 4250for ac_file in $ac_files 4251do 4252 case $ac_file in 4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4254 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4255 esac 4256done 4257rm -f $ac_rmfiles 4258 4259if { { ac_try="$ac_link_default" 4260case "(($ac_try" in 4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4262 *) ac_try_echo=$ac_try;; 4263esac 4264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4265printf "%s\n" "$ac_try_echo"; } >&5 4266 (eval "$ac_link_default") 2>&5 4267 ac_status=$? 4268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4269 test $ac_status = 0; } 4270then : 4271 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4272# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4273# in a Makefile. We should not override ac_cv_exeext if it was cached, 4274# so that the user can short-circuit this test for compilers unknown to 4275# Autoconf. 4276for ac_file in $ac_files '' 4277do 4278 test -f "$ac_file" || continue 4279 case $ac_file in 4280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4281 ;; 4282 [ab].out ) 4283 # We found the default executable, but exeext='' is most 4284 # certainly right. 4285 break;; 4286 *.* ) 4287 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4288 then :; else 4289 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4290 fi 4291 # We set ac_cv_exeext here because the later test for it is not 4292 # safe: cross compilers may not add the suffix if given an '-o' 4293 # argument, so we may need to know it at that point already. 4294 # Even if this section looks crufty: it has the advantage of 4295 # actually working. 4296 break;; 4297 * ) 4298 break;; 4299 esac 4300done 4301test "$ac_cv_exeext" = no && ac_cv_exeext= 4302 4303else case e in #( 4304 e) ac_file='' ;; 4305esac 4306fi 4307if test -z "$ac_file" 4308then : 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4310printf "%s\n" "no" >&6; } 4311printf "%s\n" "$as_me: failed program was:" >&5 4312sed 's/^/| /' conftest.$ac_ext >&5 4313 4314{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4315printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4316as_fn_error 77 "C compiler cannot create executables 4317See 'config.log' for more details" "$LINENO" 5; } 4318else case e in #( 4319 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4320printf "%s\n" "yes" >&6; } ;; 4321esac 4322fi 4323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4324printf %s "checking for C compiler default output file name... " >&6; } 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4326printf "%s\n" "$ac_file" >&6; } 4327ac_exeext=$ac_cv_exeext 4328 4329rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4330ac_clean_files=$ac_clean_files_save 4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4332printf %s "checking for suffix of executables... " >&6; } 4333if { { ac_try="$ac_link" 4334case "(($ac_try" in 4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4336 *) ac_try_echo=$ac_try;; 4337esac 4338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4339printf "%s\n" "$ac_try_echo"; } >&5 4340 (eval "$ac_link") 2>&5 4341 ac_status=$? 4342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4343 test $ac_status = 0; } 4344then : 4345 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4346# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4347# work properly (i.e., refer to 'conftest.exe'), while it won't with 4348# 'rm'. 4349for ac_file in conftest.exe conftest conftest.*; do 4350 test -f "$ac_file" || continue 4351 case $ac_file in 4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4354 break;; 4355 * ) break;; 4356 esac 4357done 4358else case e in #( 4359 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4360printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4361as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4362See 'config.log' for more details" "$LINENO" 5; } ;; 4363esac 4364fi 4365rm -f conftest conftest$ac_cv_exeext 4366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4367printf "%s\n" "$ac_cv_exeext" >&6; } 4368 4369rm -f conftest.$ac_ext 4370EXEEXT=$ac_cv_exeext 4371ac_exeext=$EXEEXT 4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374#include <stdio.h> 4375int 4376main (void) 4377{ 4378FILE *f = fopen ("conftest.out", "w"); 4379 if (!f) 4380 return 1; 4381 return ferror (f) || fclose (f) != 0; 4382 4383 ; 4384 return 0; 4385} 4386_ACEOF 4387ac_clean_files="$ac_clean_files conftest.out" 4388# Check that the compiler produces executables we can run. If not, either 4389# the compiler is broken, or we cross compile. 4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4391printf %s "checking whether we are cross compiling... " >&6; } 4392if test "$cross_compiling" != yes; then 4393 { { ac_try="$ac_link" 4394case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4399printf "%s\n" "$ac_try_echo"; } >&5 4400 (eval "$ac_link") 2>&5 4401 ac_status=$? 4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4403 test $ac_status = 0; } 4404 if { ac_try='./conftest$ac_cv_exeext' 4405 { { case "(($ac_try" in 4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4407 *) ac_try_echo=$ac_try;; 4408esac 4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4410printf "%s\n" "$ac_try_echo"; } >&5 4411 (eval "$ac_try") 2>&5 4412 ac_status=$? 4413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4414 test $ac_status = 0; }; }; then 4415 cross_compiling=no 4416 else 4417 if test "$cross_compiling" = maybe; then 4418 cross_compiling=yes 4419 else 4420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4421printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4422as_fn_error 77 "cannot run C compiled programs. 4423If you meant to cross compile, use '--host'. 4424See 'config.log' for more details" "$LINENO" 5; } 4425 fi 4426 fi 4427fi 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4429printf "%s\n" "$cross_compiling" >&6; } 4430 4431rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4432 conftest.o conftest.obj conftest.out 4433ac_clean_files=$ac_clean_files_save 4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4435printf %s "checking for suffix of object files... " >&6; } 4436if test ${ac_cv_objext+y} 4437then : 4438 printf %s "(cached) " >&6 4439else case e in #( 4440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main (void) 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451rm -f conftest.o conftest.obj 4452if { { ac_try="$ac_compile" 4453case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4458printf "%s\n" "$ac_try_echo"; } >&5 4459 (eval "$ac_compile") 2>&5 4460 ac_status=$? 4461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4462 test $ac_status = 0; } 4463then : 4464 for ac_file in conftest.o conftest.obj conftest.*; do 4465 test -f "$ac_file" || continue; 4466 case $ac_file in 4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4469 break;; 4470 esac 4471done 4472else case e in #( 4473 e) printf "%s\n" "$as_me: failed program was:" >&5 4474sed 's/^/| /' conftest.$ac_ext >&5 4475 4476{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4477printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4478as_fn_error $? "cannot compute suffix of object files: cannot compile 4479See 'config.log' for more details" "$LINENO" 5; } ;; 4480esac 4481fi 4482rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4483esac 4484fi 4485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4486printf "%s\n" "$ac_cv_objext" >&6; } 4487OBJEXT=$ac_cv_objext 4488ac_objext=$OBJEXT 4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4490printf %s "checking whether the compiler supports GNU C... " >&6; } 4491if test ${ac_cv_c_compiler_gnu+y} 4492then : 4493 printf %s "(cached) " >&6 4494else case e in #( 4495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497 4498int 4499main (void) 4500{ 4501#ifndef __GNUC__ 4502 choke me 4503#endif 4504 4505 ; 4506 return 0; 4507} 4508_ACEOF 4509if ac_fn_c_try_compile "$LINENO" 4510then : 4511 ac_compiler_gnu=yes 4512else case e in #( 4513 e) ac_compiler_gnu=no ;; 4514esac 4515fi 4516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4517ac_cv_c_compiler_gnu=$ac_compiler_gnu 4518 ;; 4519esac 4520fi 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4522printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4523ac_compiler_gnu=$ac_cv_c_compiler_gnu 4524 4525if test $ac_compiler_gnu = yes; then 4526 GCC=yes 4527else 4528 GCC= 4529fi 4530ac_test_CFLAGS=${CFLAGS+y} 4531ac_save_CFLAGS=$CFLAGS 4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4533printf %s "checking whether $CC accepts -g... " >&6; } 4534if test ${ac_cv_prog_cc_g+y} 4535then : 4536 printf %s "(cached) " >&6 4537else case e in #( 4538 e) ac_save_c_werror_flag=$ac_c_werror_flag 4539 ac_c_werror_flag=yes 4540 ac_cv_prog_cc_g=no 4541 CFLAGS="-g" 4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544 4545int 4546main (void) 4547{ 4548 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553if ac_fn_c_try_compile "$LINENO" 4554then : 4555 ac_cv_prog_cc_g=yes 4556else case e in #( 4557 e) CFLAGS="" 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560 4561int 4562main (void) 4563{ 4564 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569if ac_fn_c_try_compile "$LINENO" 4570then : 4571 4572else case e in #( 4573 e) ac_c_werror_flag=$ac_save_c_werror_flag 4574 CFLAGS="-g" 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577 4578int 4579main (void) 4580{ 4581 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586if ac_fn_c_try_compile "$LINENO" 4587then : 4588 ac_cv_prog_cc_g=yes 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4591esac 4592fi 4593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4594esac 4595fi 4596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4597 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4598esac 4599fi 4600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4601printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4602if test $ac_test_CFLAGS; then 4603 CFLAGS=$ac_save_CFLAGS 4604elif test $ac_cv_prog_cc_g = yes; then 4605 if test "$GCC" = yes; then 4606 CFLAGS="-g -O2" 4607 else 4608 CFLAGS="-g" 4609 fi 4610else 4611 if test "$GCC" = yes; then 4612 CFLAGS="-O2" 4613 else 4614 CFLAGS= 4615 fi 4616fi 4617ac_prog_cc_stdc=no 4618if test x$ac_prog_cc_stdc = xno 4619then : 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4621printf %s "checking for $CC option to enable C11 features... " >&6; } 4622if test ${ac_cv_prog_cc_c11+y} 4623then : 4624 printf %s "(cached) " >&6 4625else case e in #( 4626 e) ac_cv_prog_cc_c11=no 4627ac_save_CC=$CC 4628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630$ac_c_conftest_c11_program 4631_ACEOF 4632for ac_arg in '' -std=gnu11 4633do 4634 CC="$ac_save_CC $ac_arg" 4635 if ac_fn_c_try_compile "$LINENO" 4636then : 4637 ac_cv_prog_cc_c11=$ac_arg 4638fi 4639rm -f core conftest.err conftest.$ac_objext conftest.beam 4640 test "x$ac_cv_prog_cc_c11" != "xno" && break 4641done 4642rm -f conftest.$ac_ext 4643CC=$ac_save_CC ;; 4644esac 4645fi 4646 4647if test "x$ac_cv_prog_cc_c11" = xno 4648then : 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4650printf "%s\n" "unsupported" >&6; } 4651else case e in #( 4652 e) if test "x$ac_cv_prog_cc_c11" = x 4653then : 4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4655printf "%s\n" "none needed" >&6; } 4656else case e in #( 4657 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4658printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4659 CC="$CC $ac_cv_prog_cc_c11" ;; 4660esac 4661fi 4662 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4663 ac_prog_cc_stdc=c11 ;; 4664esac 4665fi 4666fi 4667if test x$ac_prog_cc_stdc = xno 4668then : 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4670printf %s "checking for $CC option to enable C99 features... " >&6; } 4671if test ${ac_cv_prog_cc_c99+y} 4672then : 4673 printf %s "(cached) " >&6 4674else case e in #( 4675 e) ac_cv_prog_cc_c99=no 4676ac_save_CC=$CC 4677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4678/* end confdefs.h. */ 4679$ac_c_conftest_c99_program 4680_ACEOF 4681for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4682do 4683 CC="$ac_save_CC $ac_arg" 4684 if ac_fn_c_try_compile "$LINENO" 4685then : 4686 ac_cv_prog_cc_c99=$ac_arg 4687fi 4688rm -f core conftest.err conftest.$ac_objext conftest.beam 4689 test "x$ac_cv_prog_cc_c99" != "xno" && break 4690done 4691rm -f conftest.$ac_ext 4692CC=$ac_save_CC ;; 4693esac 4694fi 4695 4696if test "x$ac_cv_prog_cc_c99" = xno 4697then : 4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4699printf "%s\n" "unsupported" >&6; } 4700else case e in #( 4701 e) if test "x$ac_cv_prog_cc_c99" = x 4702then : 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4704printf "%s\n" "none needed" >&6; } 4705else case e in #( 4706 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4707printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4708 CC="$CC $ac_cv_prog_cc_c99" ;; 4709esac 4710fi 4711 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4712 ac_prog_cc_stdc=c99 ;; 4713esac 4714fi 4715fi 4716if test x$ac_prog_cc_stdc = xno 4717then : 4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4719printf %s "checking for $CC option to enable C89 features... " >&6; } 4720if test ${ac_cv_prog_cc_c89+y} 4721then : 4722 printf %s "(cached) " >&6 4723else case e in #( 4724 e) ac_cv_prog_cc_c89=no 4725ac_save_CC=$CC 4726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728$ac_c_conftest_c89_program 4729_ACEOF 4730for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4731do 4732 CC="$ac_save_CC $ac_arg" 4733 if ac_fn_c_try_compile "$LINENO" 4734then : 4735 ac_cv_prog_cc_c89=$ac_arg 4736fi 4737rm -f core conftest.err conftest.$ac_objext conftest.beam 4738 test "x$ac_cv_prog_cc_c89" != "xno" && break 4739done 4740rm -f conftest.$ac_ext 4741CC=$ac_save_CC ;; 4742esac 4743fi 4744 4745if test "x$ac_cv_prog_cc_c89" = xno 4746then : 4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4748printf "%s\n" "unsupported" >&6; } 4749else case e in #( 4750 e) if test "x$ac_cv_prog_cc_c89" = x 4751then : 4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4753printf "%s\n" "none needed" >&6; } 4754else case e in #( 4755 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4756printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4757 CC="$CC $ac_cv_prog_cc_c89" ;; 4758esac 4759fi 4760 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4761 ac_prog_cc_stdc=c89 ;; 4762esac 4763fi 4764fi 4765 4766ac_ext=c 4767ac_cpp='$CPP $CPPFLAGS' 4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4770ac_compiler_gnu=$ac_cv_c_compiler_gnu 4771 4772 4773 ac_ext=c 4774ac_cpp='$CPP $CPPFLAGS' 4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4777ac_compiler_gnu=$ac_cv_c_compiler_gnu 4778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4779printf %s "checking whether $CC understands -c and -o together... " >&6; } 4780if test ${am_cv_prog_cc_c_o+y} 4781then : 4782 printf %s "(cached) " >&6 4783else case e in #( 4784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786 4787int 4788main (void) 4789{ 4790 4791 ; 4792 return 0; 4793} 4794_ACEOF 4795 # Make sure it works both with $CC and with simple cc. 4796 # Following AC_PROG_CC_C_O, we do the test twice because some 4797 # compilers refuse to overwrite an existing .o file with -o, 4798 # though they will create one. 4799 am_cv_prog_cc_c_o=yes 4800 for am_i in 1 2; do 4801 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4802 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4803 ac_status=$? 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } \ 4806 && test -f conftest2.$ac_objext; then 4807 : OK 4808 else 4809 am_cv_prog_cc_c_o=no 4810 break 4811 fi 4812 done 4813 rm -f core conftest* 4814 unset am_i ;; 4815esac 4816fi 4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4818printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4819if test "$am_cv_prog_cc_c_o" != yes; then 4820 # Losing compiler, so override with the script. 4821 # FIXME: It is wrong to rewrite CC. 4822 # But if we don't then we get into trouble of one sort or another. 4823 # A longer-term fix would be to have automake use am__CC in this case, 4824 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4825 CC="$am_aux_dir/compile $CC" 4826fi 4827ac_ext=c 4828ac_cpp='$CPP $CPPFLAGS' 4829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4831ac_compiler_gnu=$ac_cv_c_compiler_gnu 4832 4833 4834depcc="$CC" am_compiler_list= 4835 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4837printf %s "checking dependency style of $depcc... " >&6; } 4838if test ${am_cv_CC_dependencies_compiler_type+y} 4839then : 4840 printf %s "(cached) " >&6 4841else case e in #( 4842 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4843 # We make a subdir and do the tests there. Otherwise we can end up 4844 # making bogus files that we don't know about and never remove. For 4845 # instance it was reported that on HP-UX the gcc test will end up 4846 # making a dummy file named 'D' -- because '-MD' means "put the output 4847 # in D". 4848 rm -rf conftest.dir 4849 mkdir conftest.dir 4850 # Copy depcomp to subdir because otherwise we won't find it if we're 4851 # using a relative directory. 4852 cp "$am_depcomp" conftest.dir 4853 cd conftest.dir 4854 # We will build objects and dependencies in a subdirectory because 4855 # it helps to detect inapplicable dependency modes. For instance 4856 # both Tru64's cc and ICC support -MD to output dependencies as a 4857 # side effect of compilation, but ICC will put the dependencies in 4858 # the current directory while Tru64 will put them in the object 4859 # directory. 4860 mkdir sub 4861 4862 am_cv_CC_dependencies_compiler_type=none 4863 if test "$am_compiler_list" = ""; then 4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4865 fi 4866 am__universal=false 4867 case " $depcc " in #( 4868 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4869 esac 4870 4871 for depmode in $am_compiler_list; do 4872 # Setup a source with many dependencies, because some compilers 4873 # like to wrap large dependency lists on column 80 (with \), and 4874 # we should not choose a depcomp mode which is confused by this. 4875 # 4876 # We need to recreate these files for each test, as the compiler may 4877 # overwrite some of them when testing with obscure command lines. 4878 # This happens at least with the AIX C compiler. 4879 : > sub/conftest.c 4880 for i in 1 2 3 4 5 6; do 4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4883 # Solaris 10 /bin/sh. 4884 echo '/* dummy */' > sub/conftst$i.h 4885 done 4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4887 4888 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4889 # mode. It turns out that the SunPro C++ compiler does not properly 4890 # handle '-M -o', and we need to detect this. Also, some Intel 4891 # versions had trouble with output in subdirs. 4892 am__obj=sub/conftest.${OBJEXT-o} 4893 am__minus_obj="-o $am__obj" 4894 case $depmode in 4895 gcc) 4896 # This depmode causes a compiler race in universal mode. 4897 test "$am__universal" = false || continue 4898 ;; 4899 nosideeffect) 4900 # After this tag, mechanisms are not by side-effect, so they'll 4901 # only be used when explicitly requested. 4902 if test "x$enable_dependency_tracking" = xyes; then 4903 continue 4904 else 4905 break 4906 fi 4907 ;; 4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4909 # This compiler won't grok '-c -o', but also, the minuso test has 4910 # not run yet. These depmodes are late enough in the game, and 4911 # so weak that their functioning should not be impacted. 4912 am__obj=conftest.${OBJEXT-o} 4913 am__minus_obj= 4914 ;; 4915 none) break ;; 4916 esac 4917 if depmode=$depmode \ 4918 source=sub/conftest.c object=$am__obj \ 4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4921 >/dev/null 2>conftest.err && 4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4926 # icc doesn't choke on unknown options, it will just issue warnings 4927 # or remarks (even with -Werror). So we grep stderr for any message 4928 # that says an option was ignored or not supported. 4929 # When given -MP, icc 7.0 and 7.1 complain thus: 4930 # icc: Command line warning: ignoring option '-M'; no argument required 4931 # The diagnosis changed in icc 8.0: 4932 # icc: Command line remark: option '-MP' not supported 4933 if (grep 'ignoring option' conftest.err || 4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4935 am_cv_CC_dependencies_compiler_type=$depmode 4936 break 4937 fi 4938 fi 4939 done 4940 4941 cd .. 4942 rm -rf conftest.dir 4943else 4944 am_cv_CC_dependencies_compiler_type=none 4945fi 4946 ;; 4947esac 4948fi 4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4950printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4952 4953 if 4954 test "x$enable_dependency_tracking" != xno \ 4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4956 am__fastdepCC_TRUE= 4957 am__fastdepCC_FALSE='#' 4958else 4959 am__fastdepCC_TRUE='#' 4960 am__fastdepCC_FALSE= 4961fi 4962 4963 4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4965printf %s "checking for a sed that does not truncate output... " >&6; } 4966if test ${ac_cv_path_SED+y} 4967then : 4968 printf %s "(cached) " >&6 4969else case e in #( 4970 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4971 for ac_i in 1 2 3 4 5 6 7; do 4972 ac_script="$ac_script$as_nl$ac_script" 4973 done 4974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4975 { ac_script=; unset ac_script;} 4976 if test -z "$SED"; then 4977 ac_path_SED_found=false 4978 # Loop through the user's path and test for each of PROGNAME-LIST 4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4980for as_dir in $PATH 4981do 4982 IFS=$as_save_IFS 4983 case $as_dir in #((( 4984 '') as_dir=./ ;; 4985 */) ;; 4986 *) as_dir=$as_dir/ ;; 4987 esac 4988 for ac_prog in sed gsed 4989 do 4990 for ac_exec_ext in '' $ac_executable_extensions; do 4991 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4992 as_fn_executable_p "$ac_path_SED" || continue 4993# Check for GNU ac_path_SED and select it if it is found. 4994 # Check for GNU $ac_path_SED 4995case `"$ac_path_SED" --version 2>&1` in #( 4996*GNU*) 4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4998#( 4999*) 5000 ac_count=0 5001 printf %s 0123456789 >"conftest.in" 5002 while : 5003 do 5004 cat "conftest.in" "conftest.in" >"conftest.tmp" 5005 mv "conftest.tmp" "conftest.in" 5006 cp "conftest.in" "conftest.nl" 5007 printf "%s\n" '' >> "conftest.nl" 5008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5010 as_fn_arith $ac_count + 1 && ac_count=$as_val 5011 if test $ac_count -gt ${ac_path_SED_max-0}; then 5012 # Best one so far, save it but keep looking for a better one 5013 ac_cv_path_SED="$ac_path_SED" 5014 ac_path_SED_max=$ac_count 5015 fi 5016 # 10*(2^10) chars as input seems more than enough 5017 test $ac_count -gt 10 && break 5018 done 5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5020esac 5021 5022 $ac_path_SED_found && break 3 5023 done 5024 done 5025 done 5026IFS=$as_save_IFS 5027 if test -z "$ac_cv_path_SED"; then 5028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5029 fi 5030else 5031 ac_cv_path_SED=$SED 5032fi 5033 ;; 5034esac 5035fi 5036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5037printf "%s\n" "$ac_cv_path_SED" >&6; } 5038 SED="$ac_cv_path_SED" 5039 rm -f conftest.sed 5040 5041test -z "$SED" && SED=sed 5042Xsed="$SED -e 1s/^X//" 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5055printf %s "checking for grep that handles long lines and -e... " >&6; } 5056if test ${ac_cv_path_GREP+y} 5057then : 5058 printf %s "(cached) " >&6 5059else case e in #( 5060 e) if test -z "$GREP"; then 5061 ac_path_GREP_found=false 5062 # Loop through the user's path and test for each of PROGNAME-LIST 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5065do 5066 IFS=$as_save_IFS 5067 case $as_dir in #((( 5068 '') as_dir=./ ;; 5069 */) ;; 5070 *) as_dir=$as_dir/ ;; 5071 esac 5072 for ac_prog in grep ggrep 5073 do 5074 for ac_exec_ext in '' $ac_executable_extensions; do 5075 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5076 as_fn_executable_p "$ac_path_GREP" || continue 5077# Check for GNU ac_path_GREP and select it if it is found. 5078 # Check for GNU $ac_path_GREP 5079case `"$ac_path_GREP" --version 2>&1` in #( 5080*GNU*) 5081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5082#( 5083*) 5084 ac_count=0 5085 printf %s 0123456789 >"conftest.in" 5086 while : 5087 do 5088 cat "conftest.in" "conftest.in" >"conftest.tmp" 5089 mv "conftest.tmp" "conftest.in" 5090 cp "conftest.in" "conftest.nl" 5091 printf "%s\n" 'GREP' >> "conftest.nl" 5092 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5094 as_fn_arith $ac_count + 1 && ac_count=$as_val 5095 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5096 # Best one so far, save it but keep looking for a better one 5097 ac_cv_path_GREP="$ac_path_GREP" 5098 ac_path_GREP_max=$ac_count 5099 fi 5100 # 10*(2^10) chars as input seems more than enough 5101 test $ac_count -gt 10 && break 5102 done 5103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5104esac 5105 5106 $ac_path_GREP_found && break 3 5107 done 5108 done 5109 done 5110IFS=$as_save_IFS 5111 if test -z "$ac_cv_path_GREP"; then 5112 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5113 fi 5114else 5115 ac_cv_path_GREP=$GREP 5116fi 5117 ;; 5118esac 5119fi 5120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5121printf "%s\n" "$ac_cv_path_GREP" >&6; } 5122 GREP="$ac_cv_path_GREP" 5123 5124 5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5126printf %s "checking for egrep... " >&6; } 5127if test ${ac_cv_path_EGREP+y} 5128then : 5129 printf %s "(cached) " >&6 5130else case e in #( 5131 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5132 then ac_cv_path_EGREP="$GREP -E" 5133 else 5134 if test -z "$EGREP"; then 5135 ac_path_EGREP_found=false 5136 # Loop through the user's path and test for each of PROGNAME-LIST 5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5139do 5140 IFS=$as_save_IFS 5141 case $as_dir in #((( 5142 '') as_dir=./ ;; 5143 */) ;; 5144 *) as_dir=$as_dir/ ;; 5145 esac 5146 for ac_prog in egrep 5147 do 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5150 as_fn_executable_p "$ac_path_EGREP" || continue 5151# Check for GNU ac_path_EGREP and select it if it is found. 5152 # Check for GNU $ac_path_EGREP 5153case `"$ac_path_EGREP" --version 2>&1` in #( 5154*GNU*) 5155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5156#( 5157*) 5158 ac_count=0 5159 printf %s 0123456789 >"conftest.in" 5160 while : 5161 do 5162 cat "conftest.in" "conftest.in" >"conftest.tmp" 5163 mv "conftest.tmp" "conftest.in" 5164 cp "conftest.in" "conftest.nl" 5165 printf "%s\n" 'EGREP' >> "conftest.nl" 5166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5168 as_fn_arith $ac_count + 1 && ac_count=$as_val 5169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5170 # Best one so far, save it but keep looking for a better one 5171 ac_cv_path_EGREP="$ac_path_EGREP" 5172 ac_path_EGREP_max=$ac_count 5173 fi 5174 # 10*(2^10) chars as input seems more than enough 5175 test $ac_count -gt 10 && break 5176 done 5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5178esac 5179 5180 $ac_path_EGREP_found && break 3 5181 done 5182 done 5183 done 5184IFS=$as_save_IFS 5185 if test -z "$ac_cv_path_EGREP"; then 5186 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5187 fi 5188else 5189 ac_cv_path_EGREP=$EGREP 5190fi 5191 5192 fi ;; 5193esac 5194fi 5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5196printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5197 EGREP="$ac_cv_path_EGREP" 5198 5199 EGREP_TRADITIONAL=$EGREP 5200 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5201 5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5203printf %s "checking for fgrep... " >&6; } 5204if test ${ac_cv_path_FGREP+y} 5205then : 5206 printf %s "(cached) " >&6 5207else case e in #( 5208 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5209 then ac_cv_path_FGREP="$GREP -F" 5210 else 5211 if test -z "$FGREP"; then 5212 ac_path_FGREP_found=false 5213 # Loop through the user's path and test for each of PROGNAME-LIST 5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5216do 5217 IFS=$as_save_IFS 5218 case $as_dir in #((( 5219 '') as_dir=./ ;; 5220 */) ;; 5221 *) as_dir=$as_dir/ ;; 5222 esac 5223 for ac_prog in fgrep 5224 do 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5227 as_fn_executable_p "$ac_path_FGREP" || continue 5228# Check for GNU ac_path_FGREP and select it if it is found. 5229 # Check for GNU $ac_path_FGREP 5230case `"$ac_path_FGREP" --version 2>&1` in #( 5231*GNU*) 5232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5233#( 5234*) 5235 ac_count=0 5236 printf %s 0123456789 >"conftest.in" 5237 while : 5238 do 5239 cat "conftest.in" "conftest.in" >"conftest.tmp" 5240 mv "conftest.tmp" "conftest.in" 5241 cp "conftest.in" "conftest.nl" 5242 printf "%s\n" 'FGREP' >> "conftest.nl" 5243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5245 as_fn_arith $ac_count + 1 && ac_count=$as_val 5246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5247 # Best one so far, save it but keep looking for a better one 5248 ac_cv_path_FGREP="$ac_path_FGREP" 5249 ac_path_FGREP_max=$ac_count 5250 fi 5251 # 10*(2^10) chars as input seems more than enough 5252 test $ac_count -gt 10 && break 5253 done 5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5255esac 5256 5257 $ac_path_FGREP_found && break 3 5258 done 5259 done 5260 done 5261IFS=$as_save_IFS 5262 if test -z "$ac_cv_path_FGREP"; then 5263 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5264 fi 5265else 5266 ac_cv_path_FGREP=$FGREP 5267fi 5268 5269 fi ;; 5270esac 5271fi 5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5273printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5274 FGREP="$ac_cv_path_FGREP" 5275 5276 5277test -z "$GREP" && GREP=grep 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297# Check whether --with-gnu-ld was given. 5298if test ${with_gnu_ld+y} 5299then : 5300 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5301else case e in #( 5302 e) with_gnu_ld=no ;; 5303esac 5304fi 5305 5306ac_prog=ld 5307if test yes = "$GCC"; then 5308 # Check if gcc -print-prog-name=ld gives a path. 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5310printf %s "checking for ld used by $CC... " >&6; } 5311 case $host in 5312 *-*-mingw*) 5313 # gcc leaves a trailing carriage return, which upsets mingw 5314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5315 *) 5316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5317 esac 5318 case $ac_prog in 5319 # Accept absolute paths. 5320 [\\/]* | ?:[\\/]*) 5321 re_direlt='/[^/][^/]*/\.\./' 5322 # Canonicalize the pathname of ld 5323 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5324 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5325 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5326 done 5327 test -z "$LD" && LD=$ac_prog 5328 ;; 5329 "") 5330 # If it fails, then pretend we aren't using GCC. 5331 ac_prog=ld 5332 ;; 5333 *) 5334 # If it is relative, then search for the first ld in PATH. 5335 with_gnu_ld=unknown 5336 ;; 5337 esac 5338elif test yes = "$with_gnu_ld"; then 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5340printf %s "checking for GNU ld... " >&6; } 5341else 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5343printf %s "checking for non-GNU ld... " >&6; } 5344fi 5345if test ${lt_cv_path_LD+y} 5346then : 5347 printf %s "(cached) " >&6 5348else case e in #( 5349 e) if test -z "$LD"; then 5350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5351 for ac_dir in $PATH; do 5352 IFS=$lt_save_ifs 5353 test -z "$ac_dir" && ac_dir=. 5354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5355 lt_cv_path_LD=$ac_dir/$ac_prog 5356 # Check to see if the program is GNU ld. I'd rather use --version, 5357 # but apparently some variants of GNU ld only accept -v. 5358 # Break only if it was the GNU/non-GNU ld that we prefer. 5359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5360 *GNU* | *'with BFD'*) 5361 test no != "$with_gnu_ld" && break 5362 ;; 5363 *) 5364 test yes != "$with_gnu_ld" && break 5365 ;; 5366 esac 5367 fi 5368 done 5369 IFS=$lt_save_ifs 5370else 5371 lt_cv_path_LD=$LD # Let the user override the test with a path. 5372fi ;; 5373esac 5374fi 5375 5376LD=$lt_cv_path_LD 5377if test -n "$LD"; then 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5379printf "%s\n" "$LD" >&6; } 5380else 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382printf "%s\n" "no" >&6; } 5383fi 5384test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5386printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5387if test ${lt_cv_prog_gnu_ld+y} 5388then : 5389 printf %s "(cached) " >&6 5390else case e in #( 5391 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5392case `$LD -v 2>&1 </dev/null` in 5393*GNU* | *'with BFD'*) 5394 lt_cv_prog_gnu_ld=yes 5395 ;; 5396*) 5397 lt_cv_prog_gnu_ld=no 5398 ;; 5399esac ;; 5400esac 5401fi 5402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5403printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5404with_gnu_ld=$lt_cv_prog_gnu_ld 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5415printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5416if test ${lt_cv_path_NM+y} 5417then : 5418 printf %s "(cached) " >&6 5419else case e in #( 5420 e) if test -n "$NM"; then 5421 # Let the user override the test. 5422 lt_cv_path_NM=$NM 5423else 5424 lt_nm_to_check=${ac_tool_prefix}nm 5425 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5426 lt_nm_to_check="$lt_nm_to_check nm" 5427 fi 5428 for lt_tmp_nm in $lt_nm_to_check; do 5429 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5430 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5431 IFS=$lt_save_ifs 5432 test -z "$ac_dir" && ac_dir=. 5433 tmp_nm=$ac_dir/$lt_tmp_nm 5434 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5435 # Check to see if the nm accepts a BSD-compat flag. 5436 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5437 # nm: unknown option "B" ignored 5438 # Tru64's nm complains that /dev/null is an invalid object file 5439 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5440 case $build_os in 5441 mingw*) lt_bad_file=conftest.nm/nofile ;; 5442 *) lt_bad_file=/dev/null ;; 5443 esac 5444 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5445 *$lt_bad_file* | *'Invalid file or object type'*) 5446 lt_cv_path_NM="$tmp_nm -B" 5447 break 2 5448 ;; 5449 *) 5450 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5451 */dev/null*) 5452 lt_cv_path_NM="$tmp_nm -p" 5453 break 2 5454 ;; 5455 *) 5456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5457 continue # so that we can try to find one that supports BSD flags 5458 ;; 5459 esac 5460 ;; 5461 esac 5462 fi 5463 done 5464 IFS=$lt_save_ifs 5465 done 5466 : ${lt_cv_path_NM=no} 5467fi ;; 5468esac 5469fi 5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5471printf "%s\n" "$lt_cv_path_NM" >&6; } 5472if test no != "$lt_cv_path_NM"; then 5473 NM=$lt_cv_path_NM 5474else 5475 # Didn't find any BSD compatible name lister, look for dumpbin. 5476 if test -n "$DUMPBIN"; then : 5477 # Let the user override the test. 5478 else 5479 if test -n "$ac_tool_prefix"; then 5480 for ac_prog in dumpbin "link -dump" 5481 do 5482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5483set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5485printf %s "checking for $ac_word... " >&6; } 5486if test ${ac_cv_prog_DUMPBIN+y} 5487then : 5488 printf %s "(cached) " >&6 5489else case e in #( 5490 e) if test -n "$DUMPBIN"; then 5491 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5492else 5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5494for as_dir in $PATH 5495do 5496 IFS=$as_save_IFS 5497 case $as_dir in #((( 5498 '') as_dir=./ ;; 5499 */) ;; 5500 *) as_dir=$as_dir/ ;; 5501 esac 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5504 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi ;; 5513esac 5514fi 5515DUMPBIN=$ac_cv_prog_DUMPBIN 5516if test -n "$DUMPBIN"; then 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5518printf "%s\n" "$DUMPBIN" >&6; } 5519else 5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5521printf "%s\n" "no" >&6; } 5522fi 5523 5524 5525 test -n "$DUMPBIN" && break 5526 done 5527fi 5528if test -z "$DUMPBIN"; then 5529 ac_ct_DUMPBIN=$DUMPBIN 5530 for ac_prog in dumpbin "link -dump" 5531do 5532 # Extract the first word of "$ac_prog", so it can be a program name with args. 5533set dummy $ac_prog; ac_word=$2 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5535printf %s "checking for $ac_word... " >&6; } 5536if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5537then : 5538 printf %s "(cached) " >&6 5539else case e in #( 5540 e) if test -n "$ac_ct_DUMPBIN"; then 5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 case $as_dir in #((( 5548 '') as_dir=./ ;; 5549 */) ;; 5550 *) as_dir=$as_dir/ ;; 5551 esac 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558done 5559 done 5560IFS=$as_save_IFS 5561 5562fi ;; 5563esac 5564fi 5565ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5566if test -n "$ac_ct_DUMPBIN"; then 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5568printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5569else 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571printf "%s\n" "no" >&6; } 5572fi 5573 5574 5575 test -n "$ac_ct_DUMPBIN" && break 5576done 5577 5578 if test "x$ac_ct_DUMPBIN" = x; then 5579 DUMPBIN=":" 5580 else 5581 case $cross_compiling:$ac_tool_warned in 5582yes:) 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5585ac_tool_warned=yes ;; 5586esac 5587 DUMPBIN=$ac_ct_DUMPBIN 5588 fi 5589fi 5590 5591 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5592 *COFF*) 5593 DUMPBIN="$DUMPBIN -symbols -headers" 5594 ;; 5595 *) 5596 DUMPBIN=: 5597 ;; 5598 esac 5599 fi 5600 5601 if test : != "$DUMPBIN"; then 5602 NM=$DUMPBIN 5603 fi 5604fi 5605test -z "$NM" && NM=nm 5606 5607 5608 5609 5610 5611 5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5613printf %s "checking the name lister ($NM) interface... " >&6; } 5614if test ${lt_cv_nm_interface+y} 5615then : 5616 printf %s "(cached) " >&6 5617else case e in #( 5618 e) lt_cv_nm_interface="BSD nm" 5619 echo "int some_variable = 0;" > conftest.$ac_ext 5620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5621 (eval "$ac_compile" 2>conftest.err) 5622 cat conftest.err >&5 5623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5625 cat conftest.err >&5 5626 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5627 cat conftest.out >&5 5628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5629 lt_cv_nm_interface="MS dumpbin" 5630 fi 5631 rm -f conftest* ;; 5632esac 5633fi 5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5635printf "%s\n" "$lt_cv_nm_interface" >&6; } 5636 5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5638printf %s "checking whether ln -s works... " >&6; } 5639LN_S=$as_ln_s 5640if test "$LN_S" = "ln -s"; then 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5642printf "%s\n" "yes" >&6; } 5643else 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5645printf "%s\n" "no, using $LN_S" >&6; } 5646fi 5647 5648# find the maximum length of command line arguments 5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5650printf %s "checking the maximum length of command line arguments... " >&6; } 5651if test ${lt_cv_sys_max_cmd_len+y} 5652then : 5653 printf %s "(cached) " >&6 5654else case e in #( 5655 e) i=0 5656 teststring=ABCD 5657 5658 case $build_os in 5659 msdosdjgpp*) 5660 # On DJGPP, this test can blow up pretty badly due to problems in libc 5661 # (any single argument exceeding 2000 bytes causes a buffer overrun 5662 # during glob expansion). Even if it were fixed, the result of this 5663 # check would be larger than it should be. 5664 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5665 ;; 5666 5667 gnu*) 5668 # Under GNU Hurd, this test is not required because there is 5669 # no limit to the length of command line arguments. 5670 # Libtool will interpret -1 as no limit whatsoever 5671 lt_cv_sys_max_cmd_len=-1; 5672 ;; 5673 5674 cygwin* | mingw* | cegcc*) 5675 # On Win9x/ME, this test blows up -- it succeeds, but takes 5676 # about 5 minutes as the teststring grows exponentially. 5677 # Worse, since 9x/ME are not pre-emptively multitasking, 5678 # you end up with a "frozen" computer, even though with patience 5679 # the test eventually succeeds (with a max line length of 256k). 5680 # Instead, let's just punt: use the minimum linelength reported by 5681 # all of the supported platforms: 8192 (on NT/2K/XP). 5682 lt_cv_sys_max_cmd_len=8192; 5683 ;; 5684 5685 mint*) 5686 # On MiNT this can take a long time and run out of memory. 5687 lt_cv_sys_max_cmd_len=8192; 5688 ;; 5689 5690 amigaos*) 5691 # On AmigaOS with pdksh, this test takes hours, literally. 5692 # So we just punt and use a minimum line length of 8192. 5693 lt_cv_sys_max_cmd_len=8192; 5694 ;; 5695 5696 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5697 # This has been around since 386BSD, at least. Likely further. 5698 if test -x /sbin/sysctl; then 5699 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5700 elif test -x /usr/sbin/sysctl; then 5701 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5702 else 5703 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5704 fi 5705 # And add a safety zone 5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5708 ;; 5709 5710 interix*) 5711 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5712 lt_cv_sys_max_cmd_len=196608 5713 ;; 5714 5715 os2*) 5716 # The test takes a long time on OS/2. 5717 lt_cv_sys_max_cmd_len=8192 5718 ;; 5719 5720 osf*) 5721 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5722 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5723 # nice to cause kernel panics so lets avoid the loop below. 5724 # First set a reasonable default. 5725 lt_cv_sys_max_cmd_len=16384 5726 # 5727 if test -x /sbin/sysconfig; then 5728 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5729 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5730 esac 5731 fi 5732 ;; 5733 sco3.2v5*) 5734 lt_cv_sys_max_cmd_len=102400 5735 ;; 5736 sysv5* | sco5v6* | sysv4.2uw2*) 5737 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5738 if test -n "$kargmax"; then 5739 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5740 else 5741 lt_cv_sys_max_cmd_len=32768 5742 fi 5743 ;; 5744 *) 5745 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5746 if test -n "$lt_cv_sys_max_cmd_len" && \ 5747 test undefined != "$lt_cv_sys_max_cmd_len"; then 5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5750 else 5751 # Make teststring a little bigger before we do anything with it. 5752 # a 1K string should be a reasonable start. 5753 for i in 1 2 3 4 5 6 7 8; do 5754 teststring=$teststring$teststring 5755 done 5756 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5757 # If test is not a shell built-in, we'll probably end up computing a 5758 # maximum length that is only half of the actual maximum length, but 5759 # we can't tell. 5760 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5761 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5762 test 17 != "$i" # 1/2 MB should be enough 5763 do 5764 i=`expr $i + 1` 5765 teststring=$teststring$teststring 5766 done 5767 # Only check the string length outside the loop. 5768 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5769 teststring= 5770 # Add a significant safety factor because C++ compilers can tack on 5771 # massive amounts of additional arguments before passing them to the 5772 # linker. It appears as though 1/2 is a usable value. 5773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5774 fi 5775 ;; 5776 esac 5777 ;; 5778esac 5779fi 5780 5781if test -n "$lt_cv_sys_max_cmd_len"; then 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5783printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5784else 5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5786printf "%s\n" "none" >&6; } 5787fi 5788max_cmd_len=$lt_cv_sys_max_cmd_len 5789 5790 5791 5792 5793 5794 5795: ${CP="cp -f"} 5796: ${MV="mv -f"} 5797: ${RM="rm -f"} 5798 5799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5800 lt_unset=unset 5801else 5802 lt_unset=false 5803fi 5804 5805 5806 5807 5808 5809# test EBCDIC or ASCII 5810case `echo X|tr X '\101'` in 5811 A) # ASCII based system 5812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5813 lt_SP2NL='tr \040 \012' 5814 lt_NL2SP='tr \015\012 \040\040' 5815 ;; 5816 *) # EBCDIC based system 5817 lt_SP2NL='tr \100 \n' 5818 lt_NL2SP='tr \r\n \100\100' 5819 ;; 5820esac 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5831printf %s "checking how to convert $build file names to $host format... " >&6; } 5832if test ${lt_cv_to_host_file_cmd+y} 5833then : 5834 printf %s "(cached) " >&6 5835else case e in #( 5836 e) case $host in 5837 *-*-mingw* ) 5838 case $build in 5839 *-*-mingw* ) # actually msys 5840 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5841 ;; 5842 *-*-cygwin* ) 5843 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5844 ;; 5845 * ) # otherwise, assume *nix 5846 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5847 ;; 5848 esac 5849 ;; 5850 *-*-cygwin* ) 5851 case $build in 5852 *-*-mingw* ) # actually msys 5853 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5854 ;; 5855 *-*-cygwin* ) 5856 lt_cv_to_host_file_cmd=func_convert_file_noop 5857 ;; 5858 * ) # otherwise, assume *nix 5859 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5860 ;; 5861 esac 5862 ;; 5863 * ) # unhandled hosts (and "normal" native builds) 5864 lt_cv_to_host_file_cmd=func_convert_file_noop 5865 ;; 5866esac 5867 ;; 5868esac 5869fi 5870 5871to_host_file_cmd=$lt_cv_to_host_file_cmd 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5873printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5874 5875 5876 5877 5878 5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5880printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5881if test ${lt_cv_to_tool_file_cmd+y} 5882then : 5883 printf %s "(cached) " >&6 5884else case e in #( 5885 e) #assume ordinary cross tools, or native build. 5886lt_cv_to_tool_file_cmd=func_convert_file_noop 5887case $host in 5888 *-*-mingw* ) 5889 case $build in 5890 *-*-mingw* ) # actually msys 5891 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5892 ;; 5893 esac 5894 ;; 5895esac 5896 ;; 5897esac 5898fi 5899 5900to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5902printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5903 5904 5905 5906 5907 5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5909printf %s "checking for $LD option to reload object files... " >&6; } 5910if test ${lt_cv_ld_reload_flag+y} 5911then : 5912 printf %s "(cached) " >&6 5913else case e in #( 5914 e) lt_cv_ld_reload_flag='-r' ;; 5915esac 5916fi 5917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5918printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5919reload_flag=$lt_cv_ld_reload_flag 5920case $reload_flag in 5921"" | " "*) ;; 5922*) reload_flag=" $reload_flag" ;; 5923esac 5924reload_cmds='$LD$reload_flag -o $output$reload_objs' 5925case $host_os in 5926 cygwin* | mingw* | pw32* | cegcc*) 5927 if test yes != "$GCC"; then 5928 reload_cmds=false 5929 fi 5930 ;; 5931 darwin*) 5932 if test yes = "$GCC"; then 5933 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5934 else 5935 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5936 fi 5937 ;; 5938esac 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948if test -n "$ac_tool_prefix"; then 5949 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5950set dummy ${ac_tool_prefix}file; ac_word=$2 5951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5952printf %s "checking for $ac_word... " >&6; } 5953if test ${ac_cv_prog_FILECMD+y} 5954then : 5955 printf %s "(cached) " >&6 5956else case e in #( 5957 e) if test -n "$FILECMD"; then 5958 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5959else 5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 case $as_dir in #((( 5965 '') as_dir=./ ;; 5966 */) ;; 5967 *) as_dir=$as_dir/ ;; 5968 esac 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5971 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi ;; 5980esac 5981fi 5982FILECMD=$ac_cv_prog_FILECMD 5983if test -n "$FILECMD"; then 5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5985printf "%s\n" "$FILECMD" >&6; } 5986else 5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988printf "%s\n" "no" >&6; } 5989fi 5990 5991 5992fi 5993if test -z "$ac_cv_prog_FILECMD"; then 5994 ac_ct_FILECMD=$FILECMD 5995 # Extract the first word of "file", so it can be a program name with args. 5996set dummy file; ac_word=$2 5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5998printf %s "checking for $ac_word... " >&6; } 5999if test ${ac_cv_prog_ac_ct_FILECMD+y} 6000then : 6001 printf %s "(cached) " >&6 6002else case e in #( 6003 e) if test -n "$ac_ct_FILECMD"; then 6004 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6005else 6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6007for as_dir in $PATH 6008do 6009 IFS=$as_save_IFS 6010 case $as_dir in #((( 6011 '') as_dir=./ ;; 6012 */) ;; 6013 *) as_dir=$as_dir/ ;; 6014 esac 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6017 ac_cv_prog_ac_ct_FILECMD="file" 6018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021done 6022 done 6023IFS=$as_save_IFS 6024 6025fi ;; 6026esac 6027fi 6028ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6029if test -n "$ac_ct_FILECMD"; then 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6031printf "%s\n" "$ac_ct_FILECMD" >&6; } 6032else 6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6034printf "%s\n" "no" >&6; } 6035fi 6036 6037 if test "x$ac_ct_FILECMD" = x; then 6038 FILECMD=":" 6039 else 6040 case $cross_compiling:$ac_tool_warned in 6041yes:) 6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6044ac_tool_warned=yes ;; 6045esac 6046 FILECMD=$ac_ct_FILECMD 6047 fi 6048else 6049 FILECMD="$ac_cv_prog_FILECMD" 6050fi 6051 6052 6053 6054 6055 6056 6057 6058if test -n "$ac_tool_prefix"; then 6059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6060set dummy ${ac_tool_prefix}objdump; ac_word=$2 6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6062printf %s "checking for $ac_word... " >&6; } 6063if test ${ac_cv_prog_OBJDUMP+y} 6064then : 6065 printf %s "(cached) " >&6 6066else case e in #( 6067 e) if test -n "$OBJDUMP"; then 6068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6069else 6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6071for as_dir in $PATH 6072do 6073 IFS=$as_save_IFS 6074 case $as_dir in #((( 6075 '') as_dir=./ ;; 6076 */) ;; 6077 *) as_dir=$as_dir/ ;; 6078 esac 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6081 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086 done 6087IFS=$as_save_IFS 6088 6089fi ;; 6090esac 6091fi 6092OBJDUMP=$ac_cv_prog_OBJDUMP 6093if test -n "$OBJDUMP"; then 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6095printf "%s\n" "$OBJDUMP" >&6; } 6096else 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098printf "%s\n" "no" >&6; } 6099fi 6100 6101 6102fi 6103if test -z "$ac_cv_prog_OBJDUMP"; then 6104 ac_ct_OBJDUMP=$OBJDUMP 6105 # Extract the first word of "objdump", so it can be a program name with args. 6106set dummy objdump; ac_word=$2 6107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6108printf %s "checking for $ac_word... " >&6; } 6109if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6110then : 6111 printf %s "(cached) " >&6 6112else case e in #( 6113 e) if test -n "$ac_ct_OBJDUMP"; then 6114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6115else 6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 case $as_dir in #((( 6121 '') as_dir=./ ;; 6122 */) ;; 6123 *) as_dir=$as_dir/ ;; 6124 esac 6125 for ac_exec_ext in '' $ac_executable_extensions; do 6126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6127 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6129 break 2 6130 fi 6131done 6132 done 6133IFS=$as_save_IFS 6134 6135fi ;; 6136esac 6137fi 6138ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6139if test -n "$ac_ct_OBJDUMP"; then 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6141printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6142else 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6144printf "%s\n" "no" >&6; } 6145fi 6146 6147 if test "x$ac_ct_OBJDUMP" = x; then 6148 OBJDUMP="false" 6149 else 6150 case $cross_compiling:$ac_tool_warned in 6151yes:) 6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6153printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6154ac_tool_warned=yes ;; 6155esac 6156 OBJDUMP=$ac_ct_OBJDUMP 6157 fi 6158else 6159 OBJDUMP="$ac_cv_prog_OBJDUMP" 6160fi 6161 6162test -z "$OBJDUMP" && OBJDUMP=objdump 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6173printf %s "checking how to recognize dependent libraries... " >&6; } 6174if test ${lt_cv_deplibs_check_method+y} 6175then : 6176 printf %s "(cached) " >&6 6177else case e in #( 6178 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6179lt_cv_file_magic_test_file= 6180lt_cv_deplibs_check_method='unknown' 6181# Need to set the preceding variable on all platforms that support 6182# interlibrary dependencies. 6183# 'none' -- dependencies not supported. 6184# 'unknown' -- same as none, but documents that we really don't know. 6185# 'pass_all' -- all dependencies passed with no checks. 6186# 'test_compile' -- check by making test program. 6187# 'file_magic [[regex]]' -- check by looking for files in library path 6188# that responds to the $file_magic_cmd with a given extended regex. 6189# If you have 'file' or equivalent on your system and you're not sure 6190# whether 'pass_all' will *always* work, you probably want this one. 6191 6192case $host_os in 6193aix[4-9]*) 6194 lt_cv_deplibs_check_method=pass_all 6195 ;; 6196 6197beos*) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200 6201bsdi[45]*) 6202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6203 lt_cv_file_magic_cmd='$FILECMD -L' 6204 lt_cv_file_magic_test_file=/shlib/libc.so 6205 ;; 6206 6207cygwin*) 6208 # func_win32_libid is a shell function defined in ltmain.sh 6209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6210 lt_cv_file_magic_cmd='func_win32_libid' 6211 ;; 6212 6213mingw* | pw32*) 6214 # Base MSYS/MinGW do not provide the 'file' command needed by 6215 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6216 # unless we find 'file', for example because we are cross-compiling. 6217 if ( file / ) >/dev/null 2>&1; then 6218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6219 lt_cv_file_magic_cmd='func_win32_libid' 6220 else 6221 # Keep this pattern in sync with the one in func_win32_libid. 6222 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6223 lt_cv_file_magic_cmd='$OBJDUMP -f' 6224 fi 6225 ;; 6226 6227cegcc*) 6228 # use the weaker test based on 'objdump'. See mingw*. 6229 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6230 lt_cv_file_magic_cmd='$OBJDUMP -f' 6231 ;; 6232 6233darwin* | rhapsody*) 6234 lt_cv_deplibs_check_method=pass_all 6235 ;; 6236 6237freebsd* | dragonfly* | midnightbsd*) 6238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6239 case $host_cpu in 6240 i*86 ) 6241 # Not sure whether the presence of OpenBSD here was a mistake. 6242 # Let's accept both of them until this is cleared up. 6243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6244 lt_cv_file_magic_cmd=$FILECMD 6245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6246 ;; 6247 esac 6248 else 6249 lt_cv_deplibs_check_method=pass_all 6250 fi 6251 ;; 6252 6253haiku*) 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257hpux10.20* | hpux11*) 6258 lt_cv_file_magic_cmd=$FILECMD 6259 case $host_cpu in 6260 ia64*) 6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6263 ;; 6264 hppa*64*) 6265 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]' 6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6267 ;; 6268 *) 6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6271 ;; 6272 esac 6273 ;; 6274 6275interix[3-9]*) 6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6278 ;; 6279 6280irix5* | irix6* | nonstopux*) 6281 case $LD in 6282 *-32|*"-32 ") libmagic=32-bit;; 6283 *-n32|*"-n32 ") libmagic=N32;; 6284 *-64|*"-64 ") libmagic=64-bit;; 6285 *) libmagic=never-match;; 6286 esac 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 6290# This must be glibc/ELF. 6291linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6292 lt_cv_deplibs_check_method=pass_all 6293 ;; 6294 6295netbsd*) 6296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6298 else 6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6300 fi 6301 ;; 6302 6303newos6*) 6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6305 lt_cv_file_magic_cmd=$FILECMD 6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6307 ;; 6308 6309*nto* | *qnx*) 6310 lt_cv_deplibs_check_method=pass_all 6311 ;; 6312 6313openbsd* | bitrig*) 6314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6316 else 6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6318 fi 6319 ;; 6320 6321osf3* | osf4* | osf5*) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 6325rdos*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329solaris*) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 6333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6334 lt_cv_deplibs_check_method=pass_all 6335 ;; 6336 6337sysv4 | sysv4.3*) 6338 case $host_vendor in 6339 motorola) 6340 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]' 6341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6342 ;; 6343 ncr) 6344 lt_cv_deplibs_check_method=pass_all 6345 ;; 6346 sequent) 6347 lt_cv_file_magic_cmd='/bin/file' 6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6349 ;; 6350 sni) 6351 lt_cv_file_magic_cmd='/bin/file' 6352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6353 lt_cv_file_magic_test_file=/lib/libc.so 6354 ;; 6355 siemens) 6356 lt_cv_deplibs_check_method=pass_all 6357 ;; 6358 pc) 6359 lt_cv_deplibs_check_method=pass_all 6360 ;; 6361 esac 6362 ;; 6363 6364tpf*) 6365 lt_cv_deplibs_check_method=pass_all 6366 ;; 6367os2*) 6368 lt_cv_deplibs_check_method=pass_all 6369 ;; 6370esac 6371 ;; 6372esac 6373fi 6374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6375printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6376 6377file_magic_glob= 6378want_nocaseglob=no 6379if test "$build" = "$host"; then 6380 case $host_os in 6381 mingw* | pw32*) 6382 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6383 want_nocaseglob=yes 6384 else 6385 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6386 fi 6387 ;; 6388 esac 6389fi 6390 6391file_magic_cmd=$lt_cv_file_magic_cmd 6392deplibs_check_method=$lt_cv_deplibs_check_method 6393test -z "$deplibs_check_method" && deplibs_check_method=unknown 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416if test -n "$ac_tool_prefix"; then 6417 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6418set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420printf %s "checking for $ac_word... " >&6; } 6421if test ${ac_cv_prog_DLLTOOL+y} 6422then : 6423 printf %s "(cached) " >&6 6424else case e in #( 6425 e) if test -n "$DLLTOOL"; then 6426 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6427else 6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6429for as_dir in $PATH 6430do 6431 IFS=$as_save_IFS 6432 case $as_dir in #((( 6433 '') as_dir=./ ;; 6434 */) ;; 6435 *) as_dir=$as_dir/ ;; 6436 esac 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444 done 6445IFS=$as_save_IFS 6446 6447fi ;; 6448esac 6449fi 6450DLLTOOL=$ac_cv_prog_DLLTOOL 6451if test -n "$DLLTOOL"; then 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6453printf "%s\n" "$DLLTOOL" >&6; } 6454else 6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456printf "%s\n" "no" >&6; } 6457fi 6458 6459 6460fi 6461if test -z "$ac_cv_prog_DLLTOOL"; then 6462 ac_ct_DLLTOOL=$DLLTOOL 6463 # Extract the first word of "dlltool", so it can be a program name with args. 6464set dummy dlltool; ac_word=$2 6465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6466printf %s "checking for $ac_word... " >&6; } 6467if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6468then : 6469 printf %s "(cached) " >&6 6470else case e in #( 6471 e) if test -n "$ac_ct_DLLTOOL"; then 6472 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6473else 6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6475for as_dir in $PATH 6476do 6477 IFS=$as_save_IFS 6478 case $as_dir in #((( 6479 '') as_dir=./ ;; 6480 */) ;; 6481 *) as_dir=$as_dir/ ;; 6482 esac 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6485 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490 done 6491IFS=$as_save_IFS 6492 6493fi ;; 6494esac 6495fi 6496ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6497if test -n "$ac_ct_DLLTOOL"; then 6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6499printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6500else 6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502printf "%s\n" "no" >&6; } 6503fi 6504 6505 if test "x$ac_ct_DLLTOOL" = x; then 6506 DLLTOOL="false" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509yes:) 6510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6511printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6512ac_tool_warned=yes ;; 6513esac 6514 DLLTOOL=$ac_ct_DLLTOOL 6515 fi 6516else 6517 DLLTOOL="$ac_cv_prog_DLLTOOL" 6518fi 6519 6520test -z "$DLLTOOL" && DLLTOOL=dlltool 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6532printf %s "checking how to associate runtime and link libraries... " >&6; } 6533if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6534then : 6535 printf %s "(cached) " >&6 6536else case e in #( 6537 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6538 6539case $host_os in 6540cygwin* | mingw* | pw32* | cegcc*) 6541 # two different shell functions defined in ltmain.sh; 6542 # decide which one to use based on capabilities of $DLLTOOL 6543 case `$DLLTOOL --help 2>&1` in 6544 *--identify-strict*) 6545 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6546 ;; 6547 *) 6548 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6549 ;; 6550 esac 6551 ;; 6552*) 6553 # fallback: assume linklib IS sharedlib 6554 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6555 ;; 6556esac 6557 ;; 6558esac 6559fi 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6561printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6562sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6563test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6564 6565 6566 6567 6568 6569 6570 6571 6572if test -n "$ac_tool_prefix"; then 6573 for ac_prog in ar 6574 do 6575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6576set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578printf %s "checking for $ac_word... " >&6; } 6579if test ${ac_cv_prog_AR+y} 6580then : 6581 printf %s "(cached) " >&6 6582else case e in #( 6583 e) if test -n "$AR"; then 6584 ac_cv_prog_AR="$AR" # Let the user override the test. 6585else 6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587for as_dir in $PATH 6588do 6589 IFS=$as_save_IFS 6590 case $as_dir in #((( 6591 '') as_dir=./ ;; 6592 */) ;; 6593 *) as_dir=$as_dir/ ;; 6594 esac 6595 for ac_exec_ext in '' $ac_executable_extensions; do 6596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6597 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6599 break 2 6600 fi 6601done 6602 done 6603IFS=$as_save_IFS 6604 6605fi ;; 6606esac 6607fi 6608AR=$ac_cv_prog_AR 6609if test -n "$AR"; then 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6611printf "%s\n" "$AR" >&6; } 6612else 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6614printf "%s\n" "no" >&6; } 6615fi 6616 6617 6618 test -n "$AR" && break 6619 done 6620fi 6621if test -z "$AR"; then 6622 ac_ct_AR=$AR 6623 for ac_prog in ar 6624do 6625 # Extract the first word of "$ac_prog", so it can be a program name with args. 6626set dummy $ac_prog; ac_word=$2 6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6628printf %s "checking for $ac_word... " >&6; } 6629if test ${ac_cv_prog_ac_ct_AR+y} 6630then : 6631 printf %s "(cached) " >&6 6632else case e in #( 6633 e) if test -n "$ac_ct_AR"; then 6634 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6635else 6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637for as_dir in $PATH 6638do 6639 IFS=$as_save_IFS 6640 case $as_dir in #((( 6641 '') as_dir=./ ;; 6642 */) ;; 6643 *) as_dir=$as_dir/ ;; 6644 esac 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6647 ac_cv_prog_ac_ct_AR="$ac_prog" 6648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi ;; 6656esac 6657fi 6658ac_ct_AR=$ac_cv_prog_ac_ct_AR 6659if test -n "$ac_ct_AR"; then 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6661printf "%s\n" "$ac_ct_AR" >&6; } 6662else 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664printf "%s\n" "no" >&6; } 6665fi 6666 6667 6668 test -n "$ac_ct_AR" && break 6669done 6670 6671 if test "x$ac_ct_AR" = x; then 6672 AR="false" 6673 else 6674 case $cross_compiling:$ac_tool_warned in 6675yes:) 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6678ac_tool_warned=yes ;; 6679esac 6680 AR=$ac_ct_AR 6681 fi 6682fi 6683 6684: ${AR=ar} 6685 6686 6687 6688 6689 6690 6691# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6692# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6693# higher priority because thats what people were doing historically (setting 6694# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6695# variable obsoleted/removed. 6696 6697test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6698lt_ar_flags=$AR_FLAGS 6699 6700 6701 6702 6703 6704 6705# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6706# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6707 6708 6709 6710 6711 6712 6713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6714printf %s "checking for archiver @FILE support... " >&6; } 6715if test ${lt_cv_ar_at_file+y} 6716then : 6717 printf %s "(cached) " >&6 6718else case e in #( 6719 e) lt_cv_ar_at_file=no 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722 6723int 6724main (void) 6725{ 6726 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_c_try_compile "$LINENO" 6732then : 6733 echo conftest.$ac_objext > conftest.lst 6734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6736 (eval $lt_ar_try) 2>&5 6737 ac_status=$? 6738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6739 test $ac_status = 0; } 6740 if test 0 -eq "$ac_status"; then 6741 # Ensure the archiver fails upon bogus file names. 6742 rm -f conftest.$ac_objext libconftest.a 6743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6744 (eval $lt_ar_try) 2>&5 6745 ac_status=$? 6746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6747 test $ac_status = 0; } 6748 if test 0 -ne "$ac_status"; then 6749 lt_cv_ar_at_file=@ 6750 fi 6751 fi 6752 rm -f conftest.* libconftest.a 6753 6754fi 6755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6756 ;; 6757esac 6758fi 6759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6760printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6761 6762if test no = "$lt_cv_ar_at_file"; then 6763 archiver_list_spec= 6764else 6765 archiver_list_spec=$lt_cv_ar_at_file 6766fi 6767 6768 6769 6770 6771 6772 6773 6774if test -n "$ac_tool_prefix"; then 6775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6776set dummy ${ac_tool_prefix}strip; ac_word=$2 6777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778printf %s "checking for $ac_word... " >&6; } 6779if test ${ac_cv_prog_STRIP+y} 6780then : 6781 printf %s "(cached) " >&6 6782else case e in #( 6783 e) if test -n "$STRIP"; then 6784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6785else 6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6787for as_dir in $PATH 6788do 6789 IFS=$as_save_IFS 6790 case $as_dir in #((( 6791 '') as_dir=./ ;; 6792 */) ;; 6793 *) as_dir=$as_dir/ ;; 6794 esac 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6797 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6799 break 2 6800 fi 6801done 6802 done 6803IFS=$as_save_IFS 6804 6805fi ;; 6806esac 6807fi 6808STRIP=$ac_cv_prog_STRIP 6809if test -n "$STRIP"; then 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6811printf "%s\n" "$STRIP" >&6; } 6812else 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6814printf "%s\n" "no" >&6; } 6815fi 6816 6817 6818fi 6819if test -z "$ac_cv_prog_STRIP"; then 6820 ac_ct_STRIP=$STRIP 6821 # Extract the first word of "strip", so it can be a program name with args. 6822set dummy strip; ac_word=$2 6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824printf %s "checking for $ac_word... " >&6; } 6825if test ${ac_cv_prog_ac_ct_STRIP+y} 6826then : 6827 printf %s "(cached) " >&6 6828else case e in #( 6829 e) if test -n "$ac_ct_STRIP"; then 6830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 case $as_dir in #((( 6837 '') as_dir=./ ;; 6838 */) ;; 6839 *) as_dir=$as_dir/ ;; 6840 esac 6841 for ac_exec_ext in '' $ac_executable_extensions; do 6842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6843 ac_cv_prog_ac_ct_STRIP="strip" 6844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6845 break 2 6846 fi 6847done 6848 done 6849IFS=$as_save_IFS 6850 6851fi ;; 6852esac 6853fi 6854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6855if test -n "$ac_ct_STRIP"; then 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6857printf "%s\n" "$ac_ct_STRIP" >&6; } 6858else 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6860printf "%s\n" "no" >&6; } 6861fi 6862 6863 if test "x$ac_ct_STRIP" = x; then 6864 STRIP=":" 6865 else 6866 case $cross_compiling:$ac_tool_warned in 6867yes:) 6868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6869printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6870ac_tool_warned=yes ;; 6871esac 6872 STRIP=$ac_ct_STRIP 6873 fi 6874else 6875 STRIP="$ac_cv_prog_STRIP" 6876fi 6877 6878test -z "$STRIP" && STRIP=: 6879 6880 6881 6882 6883 6884 6885if test -n "$ac_tool_prefix"; then 6886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6887set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889printf %s "checking for $ac_word... " >&6; } 6890if test ${ac_cv_prog_RANLIB+y} 6891then : 6892 printf %s "(cached) " >&6 6893else case e in #( 6894 e) if test -n "$RANLIB"; then 6895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 case $as_dir in #((( 6902 '') as_dir=./ ;; 6903 */) ;; 6904 *) as_dir=$as_dir/ ;; 6905 esac 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913 done 6914IFS=$as_save_IFS 6915 6916fi ;; 6917esac 6918fi 6919RANLIB=$ac_cv_prog_RANLIB 6920if test -n "$RANLIB"; then 6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6922printf "%s\n" "$RANLIB" >&6; } 6923else 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925printf "%s\n" "no" >&6; } 6926fi 6927 6928 6929fi 6930if test -z "$ac_cv_prog_RANLIB"; then 6931 ac_ct_RANLIB=$RANLIB 6932 # Extract the first word of "ranlib", so it can be a program name with args. 6933set dummy ranlib; ac_word=$2 6934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935printf %s "checking for $ac_word... " >&6; } 6936if test ${ac_cv_prog_ac_ct_RANLIB+y} 6937then : 6938 printf %s "(cached) " >&6 6939else case e in #( 6940 e) if test -n "$ac_ct_RANLIB"; then 6941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6942else 6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6944for as_dir in $PATH 6945do 6946 IFS=$as_save_IFS 6947 case $as_dir in #((( 6948 '') as_dir=./ ;; 6949 */) ;; 6950 *) as_dir=$as_dir/ ;; 6951 esac 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6954 ac_cv_prog_ac_ct_RANLIB="ranlib" 6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958done 6959 done 6960IFS=$as_save_IFS 6961 6962fi ;; 6963esac 6964fi 6965ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6966if test -n "$ac_ct_RANLIB"; then 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6968printf "%s\n" "$ac_ct_RANLIB" >&6; } 6969else 6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971printf "%s\n" "no" >&6; } 6972fi 6973 6974 if test "x$ac_ct_RANLIB" = x; then 6975 RANLIB=":" 6976 else 6977 case $cross_compiling:$ac_tool_warned in 6978yes:) 6979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6981ac_tool_warned=yes ;; 6982esac 6983 RANLIB=$ac_ct_RANLIB 6984 fi 6985else 6986 RANLIB="$ac_cv_prog_RANLIB" 6987fi 6988 6989test -z "$RANLIB" && RANLIB=: 6990 6991 6992 6993 6994 6995 6996# Determine commands to create old-style static archives. 6997old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6998old_postinstall_cmds='chmod 644 $oldlib' 6999old_postuninstall_cmds= 7000 7001if test -n "$RANLIB"; then 7002 case $host_os in 7003 bitrig* | openbsd*) 7004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7005 ;; 7006 *) 7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7008 ;; 7009 esac 7010 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7011fi 7012 7013case $host_os in 7014 darwin*) 7015 lock_old_archive_extraction=yes ;; 7016 *) 7017 lock_old_archive_extraction=no ;; 7018esac 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058# If no C compiler was specified, use CC. 7059LTCC=${LTCC-"$CC"} 7060 7061# If no C compiler flags were specified, use CFLAGS. 7062LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7063 7064# Allow CC to be a program name with arguments. 7065compiler=$CC 7066 7067 7068# Check for command to grab the raw symbol name followed by C symbol from nm. 7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7070printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7071if test ${lt_cv_sys_global_symbol_pipe+y} 7072then : 7073 printf %s "(cached) " >&6 7074else case e in #( 7075 e) 7076# These are sane defaults that work on at least a few old systems. 7077# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7078 7079# Character class describing NM global symbol codes. 7080symcode='[BCDEGRST]' 7081 7082# Regexp to match symbols that can be accessed directly from C. 7083sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7084 7085# Define system-specific variables. 7086case $host_os in 7087aix*) 7088 symcode='[BCDT]' 7089 ;; 7090cygwin* | mingw* | pw32* | cegcc*) 7091 symcode='[ABCDGISTW]' 7092 ;; 7093hpux*) 7094 if test ia64 = "$host_cpu"; then 7095 symcode='[ABCDEGRST]' 7096 fi 7097 ;; 7098irix* | nonstopux*) 7099 symcode='[BCDEGRST]' 7100 ;; 7101osf*) 7102 symcode='[BCDEGQRST]' 7103 ;; 7104solaris*) 7105 symcode='[BDRT]' 7106 ;; 7107sco3.2v5*) 7108 symcode='[DT]' 7109 ;; 7110sysv4.2uw2*) 7111 symcode='[DT]' 7112 ;; 7113sysv5* | sco5v6* | unixware* | OpenUNIX*) 7114 symcode='[ABDT]' 7115 ;; 7116sysv4) 7117 symcode='[DFNSTU]' 7118 ;; 7119esac 7120 7121# If we're using GNU nm, then use its standard symbol codes. 7122case `$NM -V 2>&1` in 7123*GNU* | *'with BFD'*) 7124 symcode='[ABCDGIRSTW]' ;; 7125esac 7126 7127if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7128 # Gets list of data symbols to import. 7129 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7130 # Adjust the below global symbol transforms to fixup imported variables. 7131 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7132 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7133 lt_c_name_lib_hook="\ 7134 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7135 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7136else 7137 # Disable hooks by default. 7138 lt_cv_sys_global_symbol_to_import= 7139 lt_cdecl_hook= 7140 lt_c_name_hook= 7141 lt_c_name_lib_hook= 7142fi 7143 7144# Transform an extracted symbol line into a proper C declaration. 7145# Some systems (esp. on ia64) link data and code symbols differently, 7146# so use this general approach. 7147lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7148$lt_cdecl_hook\ 7149" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7150" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7151 7152# Transform an extracted symbol line into symbol name and symbol address 7153lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7154$lt_c_name_hook\ 7155" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7156" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7157 7158# Transform an extracted symbol line into symbol name with lib prefix and 7159# symbol address. 7160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7161$lt_c_name_lib_hook\ 7162" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7163" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7164" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7165 7166# Handle CRLF in mingw tool chain 7167opt_cr= 7168case $build_os in 7169mingw*) 7170 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7171 ;; 7172esac 7173 7174# Try without a prefix underscore, then with it. 7175for ac_symprfx in "" "_"; do 7176 7177 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7178 symxfrm="\\1 $ac_symprfx\\2 \\2" 7179 7180 # Write the raw and C identifiers. 7181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7182 # Fake it for dumpbin and say T for any non-static function, 7183 # D for any global variable and I for any imported variable. 7184 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7185 # which start with @ or ?. 7186 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7187" {last_section=section; section=\$ 3};"\ 7188" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7189" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7190" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7191" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7192" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7193" \$ 0!~/External *\|/{next};"\ 7194" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7195" {if(hide[section]) next};"\ 7196" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7197" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7198" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7199" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7200" ' prfx=^$ac_symprfx" 7201 else 7202 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7203 fi 7204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7205 7206 # Check to see that the pipe works correctly. 7207 pipe_works=no 7208 7209 rm -f conftest* 7210 cat > conftest.$ac_ext <<_LT_EOF 7211#ifdef __cplusplus 7212extern "C" { 7213#endif 7214char nm_test_var; 7215void nm_test_func(void); 7216void nm_test_func(void){} 7217#ifdef __cplusplus 7218} 7219#endif 7220int main(){nm_test_var='a';nm_test_func();return(0);} 7221_LT_EOF 7222 7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7224 (eval $ac_compile) 2>&5 7225 ac_status=$? 7226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7227 test $ac_status = 0; }; then 7228 # Now try to grab the symbols. 7229 nlist=conftest.nm 7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7232 ac_status=$? 7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7234 test $ac_status = 0; } && test -s "$nlist"; then 7235 # Try sorting and uniquifying the output. 7236 if sort "$nlist" | uniq > "$nlist"T; then 7237 mv -f "$nlist"T "$nlist" 7238 else 7239 rm -f "$nlist"T 7240 fi 7241 7242 # Make sure that we snagged all the symbols we need. 7243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7245 cat <<_LT_EOF > conftest.$ac_ext 7246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7247#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7248/* DATA imports from DLLs on WIN32 can't be const, because runtime 7249 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7250# define LT_DLSYM_CONST 7251#elif defined __osf__ 7252/* This system does not cope well with relocations in const data. */ 7253# define LT_DLSYM_CONST 7254#else 7255# define LT_DLSYM_CONST const 7256#endif 7257 7258#ifdef __cplusplus 7259extern "C" { 7260#endif 7261 7262_LT_EOF 7263 # Now generate the symbol file. 7264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7265 7266 cat <<_LT_EOF >> conftest.$ac_ext 7267 7268/* The mapping between symbol names and symbols. */ 7269LT_DLSYM_CONST struct { 7270 const char *name; 7271 void *address; 7272} 7273lt__PROGRAM__LTX_preloaded_symbols[] = 7274{ 7275 { "@PROGRAM@", (void *) 0 }, 7276_LT_EOF 7277 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7278 cat <<\_LT_EOF >> conftest.$ac_ext 7279 {0, (void *) 0} 7280}; 7281 7282/* This works around a problem in FreeBSD linker */ 7283#ifdef FREEBSD_WORKAROUND 7284static const void *lt_preloaded_setup() { 7285 return lt__PROGRAM__LTX_preloaded_symbols; 7286} 7287#endif 7288 7289#ifdef __cplusplus 7290} 7291#endif 7292_LT_EOF 7293 # Now try linking the two files. 7294 mv conftest.$ac_objext conftstm.$ac_objext 7295 lt_globsym_save_LIBS=$LIBS 7296 lt_globsym_save_CFLAGS=$CFLAGS 7297 LIBS=conftstm.$ac_objext 7298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7300 (eval $ac_link) 2>&5 7301 ac_status=$? 7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7303 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7304 pipe_works=yes 7305 fi 7306 LIBS=$lt_globsym_save_LIBS 7307 CFLAGS=$lt_globsym_save_CFLAGS 7308 else 7309 echo "cannot find nm_test_func in $nlist" >&5 7310 fi 7311 else 7312 echo "cannot find nm_test_var in $nlist" >&5 7313 fi 7314 else 7315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7316 fi 7317 else 7318 echo "$progname: failed program was:" >&5 7319 cat conftest.$ac_ext >&5 7320 fi 7321 rm -rf conftest* conftst* 7322 7323 # Do not use the global_symbol_pipe unless it works. 7324 if test yes = "$pipe_works"; then 7325 break 7326 else 7327 lt_cv_sys_global_symbol_pipe= 7328 fi 7329done 7330 ;; 7331esac 7332fi 7333 7334if test -z "$lt_cv_sys_global_symbol_pipe"; then 7335 lt_cv_sys_global_symbol_to_cdecl= 7336fi 7337if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7339printf "%s\n" "failed" >&6; } 7340else 7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7342printf "%s\n" "ok" >&6; } 7343fi 7344 7345# Response file support. 7346if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7347 nm_file_list_spec='@' 7348elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7349 nm_file_list_spec='@' 7350fi 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7389printf %s "checking for sysroot... " >&6; } 7390 7391# Check whether --with-sysroot was given. 7392if test ${with_sysroot+y} 7393then : 7394 withval=$with_sysroot; 7395else case e in #( 7396 e) with_sysroot=no ;; 7397esac 7398fi 7399 7400 7401lt_sysroot= 7402case $with_sysroot in #( 7403 yes) 7404 if test yes = "$GCC"; then 7405 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7406 fi 7407 ;; #( 7408 /*) 7409 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7410 ;; #( 7411 no|'') 7412 ;; #( 7413 *) 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7415printf "%s\n" "$with_sysroot" >&6; } 7416 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7417 ;; 7418esac 7419 7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7421printf "%s\n" "${lt_sysroot:-no}" >&6; } 7422 7423 7424 7425 7426 7427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7428printf %s "checking for a working dd... " >&6; } 7429if test ${ac_cv_path_lt_DD+y} 7430then : 7431 printf %s "(cached) " >&6 7432else case e in #( 7433 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7434cat conftest.i conftest.i >conftest2.i 7435: ${lt_DD:=$DD} 7436if test -z "$lt_DD"; then 7437 ac_path_lt_DD_found=false 7438 # Loop through the user's path and test for each of PROGNAME-LIST 7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 case $as_dir in #((( 7444 '') as_dir=./ ;; 7445 */) ;; 7446 *) as_dir=$as_dir/ ;; 7447 esac 7448 for ac_prog in dd 7449 do 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7452 as_fn_executable_p "$ac_path_lt_DD" || continue 7453if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7454 cmp -s conftest.i conftest.out \ 7455 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7456fi 7457 $ac_path_lt_DD_found && break 3 7458 done 7459 done 7460 done 7461IFS=$as_save_IFS 7462 if test -z "$ac_cv_path_lt_DD"; then 7463 : 7464 fi 7465else 7466 ac_cv_path_lt_DD=$lt_DD 7467fi 7468 7469rm -f conftest.i conftest2.i conftest.out ;; 7470esac 7471fi 7472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7473printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7474 7475 7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7477printf %s "checking how to truncate binary pipes... " >&6; } 7478if test ${lt_cv_truncate_bin+y} 7479then : 7480 printf %s "(cached) " >&6 7481else case e in #( 7482 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7483cat conftest.i conftest.i >conftest2.i 7484lt_cv_truncate_bin= 7485if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7486 cmp -s conftest.i conftest.out \ 7487 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7488fi 7489rm -f conftest.i conftest2.i conftest.out 7490test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7491esac 7492fi 7493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7494printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7495 7496 7497 7498 7499 7500 7501 7502# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7503func_cc_basename () 7504{ 7505 for cc_temp in $*""; do 7506 case $cc_temp in 7507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7509 \-*) ;; 7510 *) break;; 7511 esac 7512 done 7513 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7514} 7515 7516# Check whether --enable-libtool-lock was given. 7517if test ${enable_libtool_lock+y} 7518then : 7519 enableval=$enable_libtool_lock; 7520fi 7521 7522test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7523 7524# Some flags need to be propagated to the compiler or linker for good 7525# libtool support. 7526case $host in 7527ia64-*-hpux*) 7528 # Find out what ABI is being produced by ac_compile, and set mode 7529 # options accordingly. 7530 echo 'int i;' > conftest.$ac_ext 7531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7532 (eval $ac_compile) 2>&5 7533 ac_status=$? 7534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7535 test $ac_status = 0; }; then 7536 case `$FILECMD conftest.$ac_objext` in 7537 *ELF-32*) 7538 HPUX_IA64_MODE=32 7539 ;; 7540 *ELF-64*) 7541 HPUX_IA64_MODE=64 7542 ;; 7543 esac 7544 fi 7545 rm -rf conftest* 7546 ;; 7547*-*-irix6*) 7548 # Find out what ABI is being produced by ac_compile, and set linker 7549 # options accordingly. 7550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7552 (eval $ac_compile) 2>&5 7553 ac_status=$? 7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7555 test $ac_status = 0; }; then 7556 if test yes = "$lt_cv_prog_gnu_ld"; then 7557 case `$FILECMD conftest.$ac_objext` in 7558 *32-bit*) 7559 LD="${LD-ld} -melf32bsmip" 7560 ;; 7561 *N32*) 7562 LD="${LD-ld} -melf32bmipn32" 7563 ;; 7564 *64-bit*) 7565 LD="${LD-ld} -melf64bmip" 7566 ;; 7567 esac 7568 else 7569 case `$FILECMD conftest.$ac_objext` in 7570 *32-bit*) 7571 LD="${LD-ld} -32" 7572 ;; 7573 *N32*) 7574 LD="${LD-ld} -n32" 7575 ;; 7576 *64-bit*) 7577 LD="${LD-ld} -64" 7578 ;; 7579 esac 7580 fi 7581 fi 7582 rm -rf conftest* 7583 ;; 7584 7585mips64*-*linux*) 7586 # Find out what ABI is being produced by ac_compile, and set linker 7587 # options accordingly. 7588 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7590 (eval $ac_compile) 2>&5 7591 ac_status=$? 7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7593 test $ac_status = 0; }; then 7594 emul=elf 7595 case `$FILECMD conftest.$ac_objext` in 7596 *32-bit*) 7597 emul="${emul}32" 7598 ;; 7599 *64-bit*) 7600 emul="${emul}64" 7601 ;; 7602 esac 7603 case `$FILECMD conftest.$ac_objext` in 7604 *MSB*) 7605 emul="${emul}btsmip" 7606 ;; 7607 *LSB*) 7608 emul="${emul}ltsmip" 7609 ;; 7610 esac 7611 case `$FILECMD conftest.$ac_objext` in 7612 *N32*) 7613 emul="${emul}n32" 7614 ;; 7615 esac 7616 LD="${LD-ld} -m $emul" 7617 fi 7618 rm -rf conftest* 7619 ;; 7620 7621x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7622s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7623 # Find out what ABI is being produced by ac_compile, and set linker 7624 # options accordingly. Note that the listed cases only cover the 7625 # situations where additional linker options are needed (such as when 7626 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7627 # vice versa); the common cases where no linker options are needed do 7628 # not appear in the list. 7629 echo 'int i;' > conftest.$ac_ext 7630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7631 (eval $ac_compile) 2>&5 7632 ac_status=$? 7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7634 test $ac_status = 0; }; then 7635 case `$FILECMD conftest.o` in 7636 *32-bit*) 7637 case $host in 7638 x86_64-*kfreebsd*-gnu) 7639 LD="${LD-ld} -m elf_i386_fbsd" 7640 ;; 7641 x86_64-*linux*) 7642 case `$FILECMD conftest.o` in 7643 *x86-64*) 7644 LD="${LD-ld} -m elf32_x86_64" 7645 ;; 7646 *) 7647 LD="${LD-ld} -m elf_i386" 7648 ;; 7649 esac 7650 ;; 7651 powerpc64le-*linux*) 7652 LD="${LD-ld} -m elf32lppclinux" 7653 ;; 7654 powerpc64-*linux*) 7655 LD="${LD-ld} -m elf32ppclinux" 7656 ;; 7657 s390x-*linux*) 7658 LD="${LD-ld} -m elf_s390" 7659 ;; 7660 sparc64-*linux*) 7661 LD="${LD-ld} -m elf32_sparc" 7662 ;; 7663 esac 7664 ;; 7665 *64-bit*) 7666 case $host in 7667 x86_64-*kfreebsd*-gnu) 7668 LD="${LD-ld} -m elf_x86_64_fbsd" 7669 ;; 7670 x86_64-*linux*) 7671 LD="${LD-ld} -m elf_x86_64" 7672 ;; 7673 powerpcle-*linux*) 7674 LD="${LD-ld} -m elf64lppc" 7675 ;; 7676 powerpc-*linux*) 7677 LD="${LD-ld} -m elf64ppc" 7678 ;; 7679 s390*-*linux*|s390*-*tpf*) 7680 LD="${LD-ld} -m elf64_s390" 7681 ;; 7682 sparc*-*linux*) 7683 LD="${LD-ld} -m elf64_sparc" 7684 ;; 7685 esac 7686 ;; 7687 esac 7688 fi 7689 rm -rf conftest* 7690 ;; 7691 7692*-*-sco3.2v5*) 7693 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7694 SAVE_CFLAGS=$CFLAGS 7695 CFLAGS="$CFLAGS -belf" 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7697printf %s "checking whether the C compiler needs -belf... " >&6; } 7698if test ${lt_cv_cc_needs_belf+y} 7699then : 7700 printf %s "(cached) " >&6 7701else case e in #( 7702 e) ac_ext=c 7703ac_cpp='$CPP $CPPFLAGS' 7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7706ac_compiler_gnu=$ac_cv_c_compiler_gnu 7707 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710 7711int 7712main (void) 7713{ 7714 7715 ; 7716 return 0; 7717} 7718_ACEOF 7719if ac_fn_c_try_link "$LINENO" 7720then : 7721 lt_cv_cc_needs_belf=yes 7722else case e in #( 7723 e) lt_cv_cc_needs_belf=no ;; 7724esac 7725fi 7726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7727 conftest$ac_exeext conftest.$ac_ext 7728 ac_ext=c 7729ac_cpp='$CPP $CPPFLAGS' 7730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7732ac_compiler_gnu=$ac_cv_c_compiler_gnu 7733 ;; 7734esac 7735fi 7736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7737printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7738 if test yes != "$lt_cv_cc_needs_belf"; then 7739 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7740 CFLAGS=$SAVE_CFLAGS 7741 fi 7742 ;; 7743*-*solaris*) 7744 # Find out what ABI is being produced by ac_compile, and set linker 7745 # options accordingly. 7746 echo 'int i;' > conftest.$ac_ext 7747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7748 (eval $ac_compile) 2>&5 7749 ac_status=$? 7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7751 test $ac_status = 0; }; then 7752 case `$FILECMD conftest.o` in 7753 *64-bit*) 7754 case $lt_cv_prog_gnu_ld in 7755 yes*) 7756 case $host in 7757 i?86-*-solaris*|x86_64-*-solaris*) 7758 LD="${LD-ld} -m elf_x86_64" 7759 ;; 7760 sparc*-*-solaris*) 7761 LD="${LD-ld} -m elf64_sparc" 7762 ;; 7763 esac 7764 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7765 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7766 LD=${LD-ld}_sol2 7767 fi 7768 ;; 7769 *) 7770 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7771 LD="${LD-ld} -64" 7772 fi 7773 ;; 7774 esac 7775 ;; 7776 esac 7777 fi 7778 rm -rf conftest* 7779 ;; 7780esac 7781 7782need_locks=$enable_libtool_lock 7783 7784if test -n "$ac_tool_prefix"; then 7785 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7786set dummy ${ac_tool_prefix}mt; ac_word=$2 7787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7788printf %s "checking for $ac_word... " >&6; } 7789if test ${ac_cv_prog_MANIFEST_TOOL+y} 7790then : 7791 printf %s "(cached) " >&6 7792else case e in #( 7793 e) if test -n "$MANIFEST_TOOL"; then 7794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7795else 7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797for as_dir in $PATH 7798do 7799 IFS=$as_save_IFS 7800 case $as_dir in #((( 7801 '') as_dir=./ ;; 7802 */) ;; 7803 *) as_dir=$as_dir/ ;; 7804 esac 7805 for ac_exec_ext in '' $ac_executable_extensions; do 7806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7807 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7809 break 2 7810 fi 7811done 7812 done 7813IFS=$as_save_IFS 7814 7815fi ;; 7816esac 7817fi 7818MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7819if test -n "$MANIFEST_TOOL"; then 7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7821printf "%s\n" "$MANIFEST_TOOL" >&6; } 7822else 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7824printf "%s\n" "no" >&6; } 7825fi 7826 7827 7828fi 7829if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7830 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7831 # Extract the first word of "mt", so it can be a program name with args. 7832set dummy mt; ac_word=$2 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7834printf %s "checking for $ac_word... " >&6; } 7835if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7836then : 7837 printf %s "(cached) " >&6 7838else case e in #( 7839 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7840 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7841else 7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7843for as_dir in $PATH 7844do 7845 IFS=$as_save_IFS 7846 case $as_dir in #((( 7847 '') as_dir=./ ;; 7848 */) ;; 7849 *) as_dir=$as_dir/ ;; 7850 esac 7851 for ac_exec_ext in '' $ac_executable_extensions; do 7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7855 break 2 7856 fi 7857done 7858 done 7859IFS=$as_save_IFS 7860 7861fi ;; 7862esac 7863fi 7864ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7865if test -n "$ac_ct_MANIFEST_TOOL"; then 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7867printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7868else 7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7870printf "%s\n" "no" >&6; } 7871fi 7872 7873 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7874 MANIFEST_TOOL=":" 7875 else 7876 case $cross_compiling:$ac_tool_warned in 7877yes:) 7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7880ac_tool_warned=yes ;; 7881esac 7882 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7883 fi 7884else 7885 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7886fi 7887 7888test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7890printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7891if test ${lt_cv_path_mainfest_tool+y} 7892then : 7893 printf %s "(cached) " >&6 7894else case e in #( 7895 e) lt_cv_path_mainfest_tool=no 7896 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7897 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7898 cat conftest.err >&5 7899 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7900 lt_cv_path_mainfest_tool=yes 7901 fi 7902 rm -f conftest* ;; 7903esac 7904fi 7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7906printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7907if test yes != "$lt_cv_path_mainfest_tool"; then 7908 MANIFEST_TOOL=: 7909fi 7910 7911 7912 7913 7914 7915 7916 case $host_os in 7917 rhapsody* | darwin*) 7918 if test -n "$ac_tool_prefix"; then 7919 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7920set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922printf %s "checking for $ac_word... " >&6; } 7923if test ${ac_cv_prog_DSYMUTIL+y} 7924then : 7925 printf %s "(cached) " >&6 7926else case e in #( 7927 e) if test -n "$DSYMUTIL"; then 7928 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7929else 7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7931for as_dir in $PATH 7932do 7933 IFS=$as_save_IFS 7934 case $as_dir in #((( 7935 '') as_dir=./ ;; 7936 */) ;; 7937 *) as_dir=$as_dir/ ;; 7938 esac 7939 for ac_exec_ext in '' $ac_executable_extensions; do 7940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7941 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7943 break 2 7944 fi 7945done 7946 done 7947IFS=$as_save_IFS 7948 7949fi ;; 7950esac 7951fi 7952DSYMUTIL=$ac_cv_prog_DSYMUTIL 7953if test -n "$DSYMUTIL"; then 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7955printf "%s\n" "$DSYMUTIL" >&6; } 7956else 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958printf "%s\n" "no" >&6; } 7959fi 7960 7961 7962fi 7963if test -z "$ac_cv_prog_DSYMUTIL"; then 7964 ac_ct_DSYMUTIL=$DSYMUTIL 7965 # Extract the first word of "dsymutil", so it can be a program name with args. 7966set dummy dsymutil; ac_word=$2 7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968printf %s "checking for $ac_word... " >&6; } 7969if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7970then : 7971 printf %s "(cached) " >&6 7972else case e in #( 7973 e) if test -n "$ac_ct_DSYMUTIL"; then 7974 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7975else 7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7977for as_dir in $PATH 7978do 7979 IFS=$as_save_IFS 7980 case $as_dir in #((( 7981 '') as_dir=./ ;; 7982 */) ;; 7983 *) as_dir=$as_dir/ ;; 7984 esac 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991done 7992 done 7993IFS=$as_save_IFS 7994 7995fi ;; 7996esac 7997fi 7998ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7999if test -n "$ac_ct_DSYMUTIL"; then 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8001printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8002else 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8004printf "%s\n" "no" >&6; } 8005fi 8006 8007 if test "x$ac_ct_DSYMUTIL" = x; then 8008 DSYMUTIL=":" 8009 else 8010 case $cross_compiling:$ac_tool_warned in 8011yes:) 8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8013printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8014ac_tool_warned=yes ;; 8015esac 8016 DSYMUTIL=$ac_ct_DSYMUTIL 8017 fi 8018else 8019 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8020fi 8021 8022 if test -n "$ac_tool_prefix"; then 8023 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8024set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8026printf %s "checking for $ac_word... " >&6; } 8027if test ${ac_cv_prog_NMEDIT+y} 8028then : 8029 printf %s "(cached) " >&6 8030else case e in #( 8031 e) if test -n "$NMEDIT"; then 8032 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8033else 8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8035for as_dir in $PATH 8036do 8037 IFS=$as_save_IFS 8038 case $as_dir in #((( 8039 '') as_dir=./ ;; 8040 */) ;; 8041 *) as_dir=$as_dir/ ;; 8042 esac 8043 for ac_exec_ext in '' $ac_executable_extensions; do 8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8047 break 2 8048 fi 8049done 8050 done 8051IFS=$as_save_IFS 8052 8053fi ;; 8054esac 8055fi 8056NMEDIT=$ac_cv_prog_NMEDIT 8057if test -n "$NMEDIT"; then 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8059printf "%s\n" "$NMEDIT" >&6; } 8060else 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062printf "%s\n" "no" >&6; } 8063fi 8064 8065 8066fi 8067if test -z "$ac_cv_prog_NMEDIT"; then 8068 ac_ct_NMEDIT=$NMEDIT 8069 # Extract the first word of "nmedit", so it can be a program name with args. 8070set dummy nmedit; ac_word=$2 8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072printf %s "checking for $ac_word... " >&6; } 8073if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8074then : 8075 printf %s "(cached) " >&6 8076else case e in #( 8077 e) if test -n "$ac_ct_NMEDIT"; then 8078 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 case $as_dir in #((( 8085 '') as_dir=./ ;; 8086 */) ;; 8087 *) as_dir=$as_dir/ ;; 8088 esac 8089 for ac_exec_ext in '' $ac_executable_extensions; do 8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8091 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8093 break 2 8094 fi 8095done 8096 done 8097IFS=$as_save_IFS 8098 8099fi ;; 8100esac 8101fi 8102ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8103if test -n "$ac_ct_NMEDIT"; then 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8105printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8106else 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108printf "%s\n" "no" >&6; } 8109fi 8110 8111 if test "x$ac_ct_NMEDIT" = x; then 8112 NMEDIT=":" 8113 else 8114 case $cross_compiling:$ac_tool_warned in 8115yes:) 8116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8118ac_tool_warned=yes ;; 8119esac 8120 NMEDIT=$ac_ct_NMEDIT 8121 fi 8122else 8123 NMEDIT="$ac_cv_prog_NMEDIT" 8124fi 8125 8126 if test -n "$ac_tool_prefix"; then 8127 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8128set dummy ${ac_tool_prefix}lipo; ac_word=$2 8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130printf %s "checking for $ac_word... " >&6; } 8131if test ${ac_cv_prog_LIPO+y} 8132then : 8133 printf %s "(cached) " >&6 8134else case e in #( 8135 e) if test -n "$LIPO"; then 8136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8137else 8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8139for as_dir in $PATH 8140do 8141 IFS=$as_save_IFS 8142 case $as_dir in #((( 8143 '') as_dir=./ ;; 8144 */) ;; 8145 *) as_dir=$as_dir/ ;; 8146 esac 8147 for ac_exec_ext in '' $ac_executable_extensions; do 8148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8149 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8151 break 2 8152 fi 8153done 8154 done 8155IFS=$as_save_IFS 8156 8157fi ;; 8158esac 8159fi 8160LIPO=$ac_cv_prog_LIPO 8161if test -n "$LIPO"; then 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8163printf "%s\n" "$LIPO" >&6; } 8164else 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8166printf "%s\n" "no" >&6; } 8167fi 8168 8169 8170fi 8171if test -z "$ac_cv_prog_LIPO"; then 8172 ac_ct_LIPO=$LIPO 8173 # Extract the first word of "lipo", so it can be a program name with args. 8174set dummy lipo; ac_word=$2 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176printf %s "checking for $ac_word... " >&6; } 8177if test ${ac_cv_prog_ac_ct_LIPO+y} 8178then : 8179 printf %s "(cached) " >&6 8180else case e in #( 8181 e) if test -n "$ac_ct_LIPO"; then 8182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8183else 8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185for as_dir in $PATH 8186do 8187 IFS=$as_save_IFS 8188 case $as_dir in #((( 8189 '') as_dir=./ ;; 8190 */) ;; 8191 *) as_dir=$as_dir/ ;; 8192 esac 8193 for ac_exec_ext in '' $ac_executable_extensions; do 8194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8195 ac_cv_prog_ac_ct_LIPO="lipo" 8196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8197 break 2 8198 fi 8199done 8200 done 8201IFS=$as_save_IFS 8202 8203fi ;; 8204esac 8205fi 8206ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8207if test -n "$ac_ct_LIPO"; then 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8209printf "%s\n" "$ac_ct_LIPO" >&6; } 8210else 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212printf "%s\n" "no" >&6; } 8213fi 8214 8215 if test "x$ac_ct_LIPO" = x; then 8216 LIPO=":" 8217 else 8218 case $cross_compiling:$ac_tool_warned in 8219yes:) 8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8221printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8222ac_tool_warned=yes ;; 8223esac 8224 LIPO=$ac_ct_LIPO 8225 fi 8226else 8227 LIPO="$ac_cv_prog_LIPO" 8228fi 8229 8230 if test -n "$ac_tool_prefix"; then 8231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8232set dummy ${ac_tool_prefix}otool; ac_word=$2 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234printf %s "checking for $ac_word... " >&6; } 8235if test ${ac_cv_prog_OTOOL+y} 8236then : 8237 printf %s "(cached) " >&6 8238else case e in #( 8239 e) if test -n "$OTOOL"; then 8240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8241else 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8243for as_dir in $PATH 8244do 8245 IFS=$as_save_IFS 8246 case $as_dir in #((( 8247 '') as_dir=./ ;; 8248 */) ;; 8249 *) as_dir=$as_dir/ ;; 8250 esac 8251 for ac_exec_ext in '' $ac_executable_extensions; do 8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8255 break 2 8256 fi 8257done 8258 done 8259IFS=$as_save_IFS 8260 8261fi ;; 8262esac 8263fi 8264OTOOL=$ac_cv_prog_OTOOL 8265if test -n "$OTOOL"; then 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8267printf "%s\n" "$OTOOL" >&6; } 8268else 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8270printf "%s\n" "no" >&6; } 8271fi 8272 8273 8274fi 8275if test -z "$ac_cv_prog_OTOOL"; then 8276 ac_ct_OTOOL=$OTOOL 8277 # Extract the first word of "otool", so it can be a program name with args. 8278set dummy otool; ac_word=$2 8279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8280printf %s "checking for $ac_word... " >&6; } 8281if test ${ac_cv_prog_ac_ct_OTOOL+y} 8282then : 8283 printf %s "(cached) " >&6 8284else case e in #( 8285 e) if test -n "$ac_ct_OTOOL"; then 8286 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8287else 8288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8289for as_dir in $PATH 8290do 8291 IFS=$as_save_IFS 8292 case $as_dir in #((( 8293 '') as_dir=./ ;; 8294 */) ;; 8295 *) as_dir=$as_dir/ ;; 8296 esac 8297 for ac_exec_ext in '' $ac_executable_extensions; do 8298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8299 ac_cv_prog_ac_ct_OTOOL="otool" 8300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8301 break 2 8302 fi 8303done 8304 done 8305IFS=$as_save_IFS 8306 8307fi ;; 8308esac 8309fi 8310ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8311if test -n "$ac_ct_OTOOL"; then 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8313printf "%s\n" "$ac_ct_OTOOL" >&6; } 8314else 8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316printf "%s\n" "no" >&6; } 8317fi 8318 8319 if test "x$ac_ct_OTOOL" = x; then 8320 OTOOL=":" 8321 else 8322 case $cross_compiling:$ac_tool_warned in 8323yes:) 8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8325printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8326ac_tool_warned=yes ;; 8327esac 8328 OTOOL=$ac_ct_OTOOL 8329 fi 8330else 8331 OTOOL="$ac_cv_prog_OTOOL" 8332fi 8333 8334 if test -n "$ac_tool_prefix"; then 8335 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8336set dummy ${ac_tool_prefix}otool64; ac_word=$2 8337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8338printf %s "checking for $ac_word... " >&6; } 8339if test ${ac_cv_prog_OTOOL64+y} 8340then : 8341 printf %s "(cached) " >&6 8342else case e in #( 8343 e) if test -n "$OTOOL64"; then 8344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8345else 8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 case $as_dir in #((( 8351 '') as_dir=./ ;; 8352 */) ;; 8353 *) as_dir=$as_dir/ ;; 8354 esac 8355 for ac_exec_ext in '' $ac_executable_extensions; do 8356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8359 break 2 8360 fi 8361done 8362 done 8363IFS=$as_save_IFS 8364 8365fi ;; 8366esac 8367fi 8368OTOOL64=$ac_cv_prog_OTOOL64 8369if test -n "$OTOOL64"; then 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8371printf "%s\n" "$OTOOL64" >&6; } 8372else 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8374printf "%s\n" "no" >&6; } 8375fi 8376 8377 8378fi 8379if test -z "$ac_cv_prog_OTOOL64"; then 8380 ac_ct_OTOOL64=$OTOOL64 8381 # Extract the first word of "otool64", so it can be a program name with args. 8382set dummy otool64; ac_word=$2 8383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8384printf %s "checking for $ac_word... " >&6; } 8385if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8386then : 8387 printf %s "(cached) " >&6 8388else case e in #( 8389 e) if test -n "$ac_ct_OTOOL64"; then 8390 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8391else 8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8393for as_dir in $PATH 8394do 8395 IFS=$as_save_IFS 8396 case $as_dir in #((( 8397 '') as_dir=./ ;; 8398 */) ;; 8399 *) as_dir=$as_dir/ ;; 8400 esac 8401 for ac_exec_ext in '' $ac_executable_extensions; do 8402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8403 ac_cv_prog_ac_ct_OTOOL64="otool64" 8404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8405 break 2 8406 fi 8407done 8408 done 8409IFS=$as_save_IFS 8410 8411fi ;; 8412esac 8413fi 8414ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8415if test -n "$ac_ct_OTOOL64"; then 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8417printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8418else 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8420printf "%s\n" "no" >&6; } 8421fi 8422 8423 if test "x$ac_ct_OTOOL64" = x; then 8424 OTOOL64=":" 8425 else 8426 case $cross_compiling:$ac_tool_warned in 8427yes:) 8428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8429printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8430ac_tool_warned=yes ;; 8431esac 8432 OTOOL64=$ac_ct_OTOOL64 8433 fi 8434else 8435 OTOOL64="$ac_cv_prog_OTOOL64" 8436fi 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8465printf %s "checking for -single_module linker flag... " >&6; } 8466if test ${lt_cv_apple_cc_single_mod+y} 8467then : 8468 printf %s "(cached) " >&6 8469else case e in #( 8470 e) lt_cv_apple_cc_single_mod=no 8471 if test -z "$LT_MULTI_MODULE"; then 8472 # By default we will add the -single_module flag. You can override 8473 # by either setting the environment variable LT_MULTI_MODULE 8474 # non-empty at configure time, or by adding -multi_module to the 8475 # link flags. 8476 rm -rf libconftest.dylib* 8477 echo "int foo(void){return 1;}" > conftest.c 8478 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8479-dynamiclib -Wl,-single_module conftest.c" >&5 8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8481 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8482 _lt_result=$? 8483 # If there is a non-empty error log, and "single_module" 8484 # appears in it, assume the flag caused a linker warning 8485 if test -s conftest.err && $GREP single_module conftest.err; then 8486 cat conftest.err >&5 8487 # Otherwise, if the output was created with a 0 exit code from 8488 # the compiler, it worked. 8489 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8490 lt_cv_apple_cc_single_mod=yes 8491 else 8492 cat conftest.err >&5 8493 fi 8494 rm -rf libconftest.dylib* 8495 rm -f conftest.* 8496 fi ;; 8497esac 8498fi 8499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8500printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8501 8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8503printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8504if test ${lt_cv_ld_exported_symbols_list+y} 8505then : 8506 printf %s "(cached) " >&6 8507else case e in #( 8508 e) lt_cv_ld_exported_symbols_list=no 8509 save_LDFLAGS=$LDFLAGS 8510 echo "_main" > conftest.sym 8511 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514 8515int 8516main (void) 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_link "$LINENO" 8524then : 8525 lt_cv_ld_exported_symbols_list=yes 8526else case e in #( 8527 e) lt_cv_ld_exported_symbols_list=no ;; 8528esac 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8531 conftest$ac_exeext conftest.$ac_ext 8532 LDFLAGS=$save_LDFLAGS 8533 ;; 8534esac 8535fi 8536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8537printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8538 8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8540printf %s "checking for -force_load linker flag... " >&6; } 8541if test ${lt_cv_ld_force_load+y} 8542then : 8543 printf %s "(cached) " >&6 8544else case e in #( 8545 e) lt_cv_ld_force_load=no 8546 cat > conftest.c << _LT_EOF 8547int forced_loaded() { return 2;} 8548_LT_EOF 8549 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8550 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8551 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8552 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8553 echo "$RANLIB libconftest.a" >&5 8554 $RANLIB libconftest.a 2>&5 8555 cat > conftest.c << _LT_EOF 8556int main() { return 0;} 8557_LT_EOF 8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8560 _lt_result=$? 8561 if test -s conftest.err && $GREP force_load conftest.err; then 8562 cat conftest.err >&5 8563 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8564 lt_cv_ld_force_load=yes 8565 else 8566 cat conftest.err >&5 8567 fi 8568 rm -f conftest.err libconftest.a conftest conftest.c 8569 rm -rf conftest.dSYM 8570 ;; 8571esac 8572fi 8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8574printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8575 case $host_os in 8576 rhapsody* | darwin1.[012]) 8577 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8578 darwin1.*) 8579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8580 darwin*) 8581 case $MACOSX_DEPLOYMENT_TARGET,$host in 8582 10.[012],*|,*powerpc*-darwin[5-8]*) 8583 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8584 *) 8585 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8586 esac 8587 ;; 8588 esac 8589 if test yes = "$lt_cv_apple_cc_single_mod"; then 8590 _lt_dar_single_mod='$single_module' 8591 fi 8592 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8593 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8594 else 8595 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8596 fi 8597 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8598 _lt_dsymutil='~$DSYMUTIL $lib || :' 8599 else 8600 _lt_dsymutil= 8601 fi 8602 ;; 8603 esac 8604 8605# func_munge_path_list VARIABLE PATH 8606# ----------------------------------- 8607# VARIABLE is name of variable containing _space_ separated list of 8608# directories to be munged by the contents of PATH, which is string 8609# having a format: 8610# "DIR[:DIR]:" 8611# string "DIR[ DIR]" will be prepended to VARIABLE 8612# ":DIR[:DIR]" 8613# string "DIR[ DIR]" will be appended to VARIABLE 8614# "DIRP[:DIRP]::[DIRA:]DIRA" 8615# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8616# "DIRA[ DIRA]" will be appended to VARIABLE 8617# "DIR[:DIR]" 8618# VARIABLE will be replaced by "DIR[ DIR]" 8619func_munge_path_list () 8620{ 8621 case x$2 in 8622 x) 8623 ;; 8624 *:) 8625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8626 ;; 8627 x:*) 8628 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8629 ;; 8630 *::*) 8631 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8632 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8633 ;; 8634 *) 8635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8636 ;; 8637 esac 8638} 8639 8640ac_header= ac_cache= 8641for ac_item in $ac_header_c_list 8642do 8643 if test $ac_cache; then 8644 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8645 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8646 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8647 fi 8648 ac_header= ac_cache= 8649 elif test $ac_header; then 8650 ac_cache=$ac_item 8651 else 8652 ac_header=$ac_item 8653 fi 8654done 8655 8656 8657 8658 8659 8660 8661 8662 8663if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8664then : 8665 8666printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8667 8668fi 8669ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8670" 8671if test "x$ac_cv_header_dlfcn_h" = xyes 8672then : 8673 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8674 8675fi 8676 8677 8678 8679 8680 8681# Set options 8682 8683 8684 8685 enable_dlopen=no 8686 8687 8688 enable_win32_dll=no 8689 8690 8691 # Check whether --enable-shared was given. 8692if test ${enable_shared+y} 8693then : 8694 enableval=$enable_shared; p=${PACKAGE-default} 8695 case $enableval in 8696 yes) enable_shared=yes ;; 8697 no) enable_shared=no ;; 8698 *) 8699 enable_shared=no 8700 # Look at the argument we got. We use all the common list separators. 8701 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8702 for pkg in $enableval; do 8703 IFS=$lt_save_ifs 8704 if test "X$pkg" = "X$p"; then 8705 enable_shared=yes 8706 fi 8707 done 8708 IFS=$lt_save_ifs 8709 ;; 8710 esac 8711else case e in #( 8712 e) enable_shared=yes ;; 8713esac 8714fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 # Check whether --enable-static was given. 8725if test ${enable_static+y} 8726then : 8727 enableval=$enable_static; p=${PACKAGE-default} 8728 case $enableval in 8729 yes) enable_static=yes ;; 8730 no) enable_static=no ;; 8731 *) 8732 enable_static=no 8733 # Look at the argument we got. We use all the common list separators. 8734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8735 for pkg in $enableval; do 8736 IFS=$lt_save_ifs 8737 if test "X$pkg" = "X$p"; then 8738 enable_static=yes 8739 fi 8740 done 8741 IFS=$lt_save_ifs 8742 ;; 8743 esac 8744else case e in #( 8745 e) enable_static=yes ;; 8746esac 8747fi 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758# Check whether --with-pic was given. 8759if test ${with_pic+y} 8760then : 8761 withval=$with_pic; lt_p=${PACKAGE-default} 8762 case $withval in 8763 yes|no) pic_mode=$withval ;; 8764 *) 8765 pic_mode=default 8766 # Look at the argument we got. We use all the common list separators. 8767 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8768 for lt_pkg in $withval; do 8769 IFS=$lt_save_ifs 8770 if test "X$lt_pkg" = "X$lt_p"; then 8771 pic_mode=yes 8772 fi 8773 done 8774 IFS=$lt_save_ifs 8775 ;; 8776 esac 8777else case e in #( 8778 e) pic_mode=default ;; 8779esac 8780fi 8781 8782 8783 8784 8785 8786 8787 8788 8789 # Check whether --enable-fast-install was given. 8790if test ${enable_fast_install+y} 8791then : 8792 enableval=$enable_fast_install; p=${PACKAGE-default} 8793 case $enableval in 8794 yes) enable_fast_install=yes ;; 8795 no) enable_fast_install=no ;; 8796 *) 8797 enable_fast_install=no 8798 # Look at the argument we got. We use all the common list separators. 8799 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8800 for pkg in $enableval; do 8801 IFS=$lt_save_ifs 8802 if test "X$pkg" = "X$p"; then 8803 enable_fast_install=yes 8804 fi 8805 done 8806 IFS=$lt_save_ifs 8807 ;; 8808 esac 8809else case e in #( 8810 e) enable_fast_install=yes ;; 8811esac 8812fi 8813 8814 8815 8816 8817 8818 8819 8820 8821 shared_archive_member_spec= 8822case $host,$enable_shared in 8823power*-*-aix[5-9]*,yes) 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8825printf %s "checking which variant of shared library versioning to provide... " >&6; } 8826 8827# Check whether --with-aix-soname was given. 8828if test ${with_aix_soname+y} 8829then : 8830 withval=$with_aix_soname; case $withval in 8831 aix|svr4|both) 8832 ;; 8833 *) 8834 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8835 ;; 8836 esac 8837 lt_cv_with_aix_soname=$with_aix_soname 8838else case e in #( 8839 e) if test ${lt_cv_with_aix_soname+y} 8840then : 8841 printf %s "(cached) " >&6 8842else case e in #( 8843 e) lt_cv_with_aix_soname=aix ;; 8844esac 8845fi 8846 8847 with_aix_soname=$lt_cv_with_aix_soname ;; 8848esac 8849fi 8850 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8852printf "%s\n" "$with_aix_soname" >&6; } 8853 if test aix != "$with_aix_soname"; then 8854 # For the AIX way of multilib, we name the shared archive member 8855 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8856 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8857 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8858 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8859 if test 64 = "${OBJECT_MODE-32}"; then 8860 shared_archive_member_spec=shr_64 8861 else 8862 shared_archive_member_spec=shr 8863 fi 8864 fi 8865 ;; 8866*) 8867 with_aix_soname=aix 8868 ;; 8869esac 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880# This can be used to rebuild libtool when needed 8881LIBTOOL_DEPS=$ltmain 8882 8883# Always use our own libtool. 8884LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915test -z "$LN_S" && LN_S="ln -s" 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930if test -n "${ZSH_VERSION+set}"; then 8931 setopt NO_GLOB_SUBST 8932fi 8933 8934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8935printf %s "checking for objdir... " >&6; } 8936if test ${lt_cv_objdir+y} 8937then : 8938 printf %s "(cached) " >&6 8939else case e in #( 8940 e) rm -f .libs 2>/dev/null 8941mkdir .libs 2>/dev/null 8942if test -d .libs; then 8943 lt_cv_objdir=.libs 8944else 8945 # MS-DOS does not allow filenames that begin with a dot. 8946 lt_cv_objdir=_libs 8947fi 8948rmdir .libs 2>/dev/null ;; 8949esac 8950fi 8951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8952printf "%s\n" "$lt_cv_objdir" >&6; } 8953objdir=$lt_cv_objdir 8954 8955 8956 8957 8958 8959printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8960 8961 8962 8963 8964case $host_os in 8965aix3*) 8966 # AIX sometimes has problems with the GCC collect2 program. For some 8967 # reason, if we set the COLLECT_NAMES environment variable, the problems 8968 # vanish in a puff of smoke. 8969 if test set != "${COLLECT_NAMES+set}"; then 8970 COLLECT_NAMES= 8971 export COLLECT_NAMES 8972 fi 8973 ;; 8974esac 8975 8976# Global variables: 8977ofile=libtool 8978can_build_shared=yes 8979 8980# All known linkers require a '.a' archive for static linking (except MSVC and 8981# ICC, which need '.lib'). 8982libext=a 8983 8984with_gnu_ld=$lt_cv_prog_gnu_ld 8985 8986old_CC=$CC 8987old_CFLAGS=$CFLAGS 8988 8989# Set sane defaults for various variables 8990test -z "$CC" && CC=cc 8991test -z "$LTCC" && LTCC=$CC 8992test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8993test -z "$LD" && LD=ld 8994test -z "$ac_objext" && ac_objext=o 8995 8996func_cc_basename $compiler 8997cc_basename=$func_cc_basename_result 8998 8999 9000# Only perform the check for file, if the check method requires it 9001test -z "$MAGIC_CMD" && MAGIC_CMD=file 9002case $deplibs_check_method in 9003file_magic*) 9004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9006printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9007if test ${lt_cv_path_MAGIC_CMD+y} 9008then : 9009 printf %s "(cached) " >&6 9010else case e in #( 9011 e) case $MAGIC_CMD in 9012[\\/*] | ?:[\\/]*) 9013 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9014 ;; 9015*) 9016 lt_save_MAGIC_CMD=$MAGIC_CMD 9017 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9019 for ac_dir in $ac_dummy; do 9020 IFS=$lt_save_ifs 9021 test -z "$ac_dir" && ac_dir=. 9022 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9023 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9024 if test -n "$file_magic_test_file"; then 9025 case $deplibs_check_method in 9026 "file_magic "*) 9027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9028 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9030 $EGREP "$file_magic_regex" > /dev/null; then 9031 : 9032 else 9033 cat <<_LT_EOF 1>&2 9034 9035*** Warning: the command libtool uses to detect shared libraries, 9036*** $file_magic_cmd, produces output that libtool cannot recognize. 9037*** The result is that libtool may fail to recognize shared libraries 9038*** as such. This will affect the creation of libtool libraries that 9039*** depend on shared libraries, but programs linked with such libtool 9040*** libraries will work regardless of this problem. Nevertheless, you 9041*** may want to report the problem to your system manager and/or to 9042*** bug-libtool@gnu.org 9043 9044_LT_EOF 9045 fi ;; 9046 esac 9047 fi 9048 break 9049 fi 9050 done 9051 IFS=$lt_save_ifs 9052 MAGIC_CMD=$lt_save_MAGIC_CMD 9053 ;; 9054esac ;; 9055esac 9056fi 9057 9058MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9059if test -n "$MAGIC_CMD"; then 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9061printf "%s\n" "$MAGIC_CMD" >&6; } 9062else 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9064printf "%s\n" "no" >&6; } 9065fi 9066 9067 9068 9069 9070 9071if test -z "$lt_cv_path_MAGIC_CMD"; then 9072 if test -n "$ac_tool_prefix"; then 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9074printf %s "checking for file... " >&6; } 9075if test ${lt_cv_path_MAGIC_CMD+y} 9076then : 9077 printf %s "(cached) " >&6 9078else case e in #( 9079 e) case $MAGIC_CMD in 9080[\\/*] | ?:[\\/]*) 9081 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9082 ;; 9083*) 9084 lt_save_MAGIC_CMD=$MAGIC_CMD 9085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9087 for ac_dir in $ac_dummy; do 9088 IFS=$lt_save_ifs 9089 test -z "$ac_dir" && ac_dir=. 9090 if test -f "$ac_dir/file"; then 9091 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9092 if test -n "$file_magic_test_file"; then 9093 case $deplibs_check_method in 9094 "file_magic "*) 9095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9096 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9098 $EGREP "$file_magic_regex" > /dev/null; then 9099 : 9100 else 9101 cat <<_LT_EOF 1>&2 9102 9103*** Warning: the command libtool uses to detect shared libraries, 9104*** $file_magic_cmd, produces output that libtool cannot recognize. 9105*** The result is that libtool may fail to recognize shared libraries 9106*** as such. This will affect the creation of libtool libraries that 9107*** depend on shared libraries, but programs linked with such libtool 9108*** libraries will work regardless of this problem. Nevertheless, you 9109*** may want to report the problem to your system manager and/or to 9110*** bug-libtool@gnu.org 9111 9112_LT_EOF 9113 fi ;; 9114 esac 9115 fi 9116 break 9117 fi 9118 done 9119 IFS=$lt_save_ifs 9120 MAGIC_CMD=$lt_save_MAGIC_CMD 9121 ;; 9122esac ;; 9123esac 9124fi 9125 9126MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9127if test -n "$MAGIC_CMD"; then 9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9129printf "%s\n" "$MAGIC_CMD" >&6; } 9130else 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9132printf "%s\n" "no" >&6; } 9133fi 9134 9135 9136 else 9137 MAGIC_CMD=: 9138 fi 9139fi 9140 9141 fi 9142 ;; 9143esac 9144 9145# Use C for the default configuration in the libtool script 9146 9147lt_save_CC=$CC 9148ac_ext=c 9149ac_cpp='$CPP $CPPFLAGS' 9150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9152ac_compiler_gnu=$ac_cv_c_compiler_gnu 9153 9154 9155# Source file extension for C test sources. 9156ac_ext=c 9157 9158# Object file extension for compiled C test sources. 9159objext=o 9160objext=$objext 9161 9162# Code to be used in simple compile tests 9163lt_simple_compile_test_code="int some_variable = 0;" 9164 9165# Code to be used in simple link tests 9166lt_simple_link_test_code='int main(){return(0);}' 9167 9168 9169 9170 9171 9172 9173 9174# If no C compiler was specified, use CC. 9175LTCC=${LTCC-"$CC"} 9176 9177# If no C compiler flags were specified, use CFLAGS. 9178LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9179 9180# Allow CC to be a program name with arguments. 9181compiler=$CC 9182 9183# Save the default compiler, since it gets overwritten when the other 9184# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9185compiler_DEFAULT=$CC 9186 9187# save warnings/boilerplate of simple test code 9188ac_outfile=conftest.$ac_objext 9189echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9191_lt_compiler_boilerplate=`cat conftest.err` 9192$RM conftest* 9193 9194ac_outfile=conftest.$ac_objext 9195echo "$lt_simple_link_test_code" >conftest.$ac_ext 9196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9197_lt_linker_boilerplate=`cat conftest.err` 9198$RM -r conftest* 9199 9200 9201## CAVEAT EMPTOR: 9202## There is no encapsulation within the following macros, do not change 9203## the running order or otherwise move them around unless you know exactly 9204## what you are doing... 9205if test -n "$compiler"; then 9206 9207lt_prog_compiler_no_builtin_flag= 9208 9209if test yes = "$GCC"; then 9210 case $cc_basename in 9211 nvcc*) 9212 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9213 *) 9214 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9215 esac 9216 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9218printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9219if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9220then : 9221 printf %s "(cached) " >&6 9222else case e in #( 9223 e) lt_cv_prog_compiler_rtti_exceptions=no 9224 ac_outfile=conftest.$ac_objext 9225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9226 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9227 # Insert the option either (1) after the last *FLAGS variable, or 9228 # (2) before a word containing "conftest.", or (3) at the end. 9229 # Note that $ac_compile itself does not contain backslashes and begins 9230 # with a dollar sign (not a hyphen), so the echo should work correctly. 9231 # The option is referenced via a variable to avoid confusing sed. 9232 lt_compile=`echo "$ac_compile" | $SED \ 9233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9235 -e 's:$: $lt_compiler_flag:'` 9236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9237 (eval "$lt_compile" 2>conftest.err) 9238 ac_status=$? 9239 cat conftest.err >&5 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 if (exit $ac_status) && test -s "$ac_outfile"; then 9242 # The compiler can only warn and ignore the option if not recognized 9243 # So say no if there are warnings other than the usual output. 9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9247 lt_cv_prog_compiler_rtti_exceptions=yes 9248 fi 9249 fi 9250 $RM conftest* 9251 ;; 9252esac 9253fi 9254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9255printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9256 9257if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9259else 9260 : 9261fi 9262 9263fi 9264 9265 9266 9267 9268 9269 9270 lt_prog_compiler_wl= 9271lt_prog_compiler_pic= 9272lt_prog_compiler_static= 9273 9274 9275 if test yes = "$GCC"; then 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_static='-static' 9278 9279 case $host_os in 9280 aix*) 9281 # All AIX code is PIC. 9282 if test ia64 = "$host_cpu"; then 9283 # AIX 5 now supports IA64 processor 9284 lt_prog_compiler_static='-Bstatic' 9285 fi 9286 lt_prog_compiler_pic='-fPIC' 9287 ;; 9288 9289 amigaos*) 9290 case $host_cpu in 9291 powerpc) 9292 # see comment about AmigaOS4 .so support 9293 lt_prog_compiler_pic='-fPIC' 9294 ;; 9295 m68k) 9296 # FIXME: we need at least 68020 code to build shared libraries, but 9297 # adding the '-m68020' flag to GCC prevents building anything better, 9298 # like '-m68040'. 9299 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9300 ;; 9301 esac 9302 ;; 9303 9304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9305 # PIC is the default for these OSes. 9306 ;; 9307 9308 mingw* | cygwin* | pw32* | os2* | cegcc*) 9309 # This hack is so that the source file can tell whether it is being 9310 # built for inclusion in a dll (and should export symbols for example). 9311 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9312 # (--disable-auto-import) libraries 9313 lt_prog_compiler_pic='-DDLL_EXPORT' 9314 case $host_os in 9315 os2*) 9316 lt_prog_compiler_static='$wl-static' 9317 ;; 9318 esac 9319 ;; 9320 9321 darwin* | rhapsody*) 9322 # PIC is the default on this platform 9323 # Common symbols not allowed in MH_DYLIB files 9324 lt_prog_compiler_pic='-fno-common' 9325 ;; 9326 9327 haiku*) 9328 # PIC is the default for Haiku. 9329 # The "-static" flag exists, but is broken. 9330 lt_prog_compiler_static= 9331 ;; 9332 9333 hpux*) 9334 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9335 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9336 # sets the default TLS model and affects inlining. 9337 case $host_cpu in 9338 hppa*64*) 9339 # +Z the default 9340 ;; 9341 *) 9342 lt_prog_compiler_pic='-fPIC' 9343 ;; 9344 esac 9345 ;; 9346 9347 interix[3-9]*) 9348 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9349 # Instead, we relocate shared libraries at runtime. 9350 ;; 9351 9352 msdosdjgpp*) 9353 # Just because we use GCC doesn't mean we suddenly get shared libraries 9354 # on systems that don't support them. 9355 lt_prog_compiler_can_build_shared=no 9356 enable_shared=no 9357 ;; 9358 9359 *nto* | *qnx*) 9360 # QNX uses GNU C++, but need to define -shared option too, otherwise 9361 # it will coredump. 9362 lt_prog_compiler_pic='-fPIC -shared' 9363 ;; 9364 9365 sysv4*MP*) 9366 if test -d /usr/nec; then 9367 lt_prog_compiler_pic=-Kconform_pic 9368 fi 9369 ;; 9370 9371 *) 9372 lt_prog_compiler_pic='-fPIC' 9373 ;; 9374 esac 9375 9376 case $cc_basename in 9377 nvcc*) # Cuda Compiler Driver 2.2 9378 lt_prog_compiler_wl='-Xlinker ' 9379 if test -n "$lt_prog_compiler_pic"; then 9380 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9381 fi 9382 ;; 9383 esac 9384 else 9385 # PORTME Check for flag to pass linker flags through the system compiler. 9386 case $host_os in 9387 aix*) 9388 lt_prog_compiler_wl='-Wl,' 9389 if test ia64 = "$host_cpu"; then 9390 # AIX 5 now supports IA64 processor 9391 lt_prog_compiler_static='-Bstatic' 9392 else 9393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9394 fi 9395 ;; 9396 9397 darwin* | rhapsody*) 9398 # PIC is the default on this platform 9399 # Common symbols not allowed in MH_DYLIB files 9400 lt_prog_compiler_pic='-fno-common' 9401 case $cc_basename in 9402 nagfor*) 9403 # NAG Fortran compiler 9404 lt_prog_compiler_wl='-Wl,-Wl,,' 9405 lt_prog_compiler_pic='-PIC' 9406 lt_prog_compiler_static='-Bstatic' 9407 ;; 9408 esac 9409 ;; 9410 9411 mingw* | cygwin* | pw32* | os2* | cegcc*) 9412 # This hack is so that the source file can tell whether it is being 9413 # built for inclusion in a dll (and should export symbols for example). 9414 lt_prog_compiler_pic='-DDLL_EXPORT' 9415 case $host_os in 9416 os2*) 9417 lt_prog_compiler_static='$wl-static' 9418 ;; 9419 esac 9420 ;; 9421 9422 hpux9* | hpux10* | hpux11*) 9423 lt_prog_compiler_wl='-Wl,' 9424 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9425 # not for PA HP-UX. 9426 case $host_cpu in 9427 hppa*64*|ia64*) 9428 # +Z the default 9429 ;; 9430 *) 9431 lt_prog_compiler_pic='+Z' 9432 ;; 9433 esac 9434 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9435 lt_prog_compiler_static='$wl-a ${wl}archive' 9436 ;; 9437 9438 irix5* | irix6* | nonstopux*) 9439 lt_prog_compiler_wl='-Wl,' 9440 # PIC (with -KPIC) is the default. 9441 lt_prog_compiler_static='-non_shared' 9442 ;; 9443 9444 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9445 case $cc_basename in 9446 # old Intel for x86_64, which still supported -KPIC. 9447 ecc*) 9448 lt_prog_compiler_wl='-Wl,' 9449 lt_prog_compiler_pic='-KPIC' 9450 lt_prog_compiler_static='-static' 9451 ;; 9452 # icc used to be incompatible with GCC. 9453 # ICC 10 doesn't accept -KPIC any more. 9454 icc* | ifort*) 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_pic='-fPIC' 9457 lt_prog_compiler_static='-static' 9458 ;; 9459 # Lahey Fortran 8.1. 9460 lf95*) 9461 lt_prog_compiler_wl='-Wl,' 9462 lt_prog_compiler_pic='--shared' 9463 lt_prog_compiler_static='--static' 9464 ;; 9465 nagfor*) 9466 # NAG Fortran compiler 9467 lt_prog_compiler_wl='-Wl,-Wl,,' 9468 lt_prog_compiler_pic='-PIC' 9469 lt_prog_compiler_static='-Bstatic' 9470 ;; 9471 tcc*) 9472 # Fabrice Bellard et al's Tiny C Compiler 9473 lt_prog_compiler_wl='-Wl,' 9474 lt_prog_compiler_pic='-fPIC' 9475 lt_prog_compiler_static='-static' 9476 ;; 9477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9478 # Portland Group compilers (*not* the Pentium gcc compiler, 9479 # which looks to be a dead project) 9480 lt_prog_compiler_wl='-Wl,' 9481 lt_prog_compiler_pic='-fpic' 9482 lt_prog_compiler_static='-Bstatic' 9483 ;; 9484 ccc*) 9485 lt_prog_compiler_wl='-Wl,' 9486 # All Alpha code is PIC. 9487 lt_prog_compiler_static='-non_shared' 9488 ;; 9489 xl* | bgxl* | bgf* | mpixl*) 9490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9491 lt_prog_compiler_wl='-Wl,' 9492 lt_prog_compiler_pic='-qpic' 9493 lt_prog_compiler_static='-qstaticlink' 9494 ;; 9495 *) 9496 case `$CC -V 2>&1 | $SED 5q` in 9497 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9498 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9499 lt_prog_compiler_pic='-KPIC' 9500 lt_prog_compiler_static='-Bstatic' 9501 lt_prog_compiler_wl='' 9502 ;; 9503 *Sun\ F* | *Sun*Fortran*) 9504 lt_prog_compiler_pic='-KPIC' 9505 lt_prog_compiler_static='-Bstatic' 9506 lt_prog_compiler_wl='-Qoption ld ' 9507 ;; 9508 *Sun\ C*) 9509 # Sun C 5.9 9510 lt_prog_compiler_pic='-KPIC' 9511 lt_prog_compiler_static='-Bstatic' 9512 lt_prog_compiler_wl='-Wl,' 9513 ;; 9514 *Intel*\ [CF]*Compiler*) 9515 lt_prog_compiler_wl='-Wl,' 9516 lt_prog_compiler_pic='-fPIC' 9517 lt_prog_compiler_static='-static' 9518 ;; 9519 *Portland\ Group*) 9520 lt_prog_compiler_wl='-Wl,' 9521 lt_prog_compiler_pic='-fpic' 9522 lt_prog_compiler_static='-Bstatic' 9523 ;; 9524 esac 9525 ;; 9526 esac 9527 ;; 9528 9529 newsos6) 9530 lt_prog_compiler_pic='-KPIC' 9531 lt_prog_compiler_static='-Bstatic' 9532 ;; 9533 9534 *nto* | *qnx*) 9535 # QNX uses GNU C++, but need to define -shared option too, otherwise 9536 # it will coredump. 9537 lt_prog_compiler_pic='-fPIC -shared' 9538 ;; 9539 9540 osf3* | osf4* | osf5*) 9541 lt_prog_compiler_wl='-Wl,' 9542 # All OSF/1 code is PIC. 9543 lt_prog_compiler_static='-non_shared' 9544 ;; 9545 9546 rdos*) 9547 lt_prog_compiler_static='-non_shared' 9548 ;; 9549 9550 solaris*) 9551 lt_prog_compiler_pic='-KPIC' 9552 lt_prog_compiler_static='-Bstatic' 9553 case $cc_basename in 9554 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9555 lt_prog_compiler_wl='-Qoption ld ';; 9556 *) 9557 lt_prog_compiler_wl='-Wl,';; 9558 esac 9559 ;; 9560 9561 sunos4*) 9562 lt_prog_compiler_wl='-Qoption ld ' 9563 lt_prog_compiler_pic='-PIC' 9564 lt_prog_compiler_static='-Bstatic' 9565 ;; 9566 9567 sysv4 | sysv4.2uw2* | sysv4.3*) 9568 lt_prog_compiler_wl='-Wl,' 9569 lt_prog_compiler_pic='-KPIC' 9570 lt_prog_compiler_static='-Bstatic' 9571 ;; 9572 9573 sysv4*MP*) 9574 if test -d /usr/nec; then 9575 lt_prog_compiler_pic='-Kconform_pic' 9576 lt_prog_compiler_static='-Bstatic' 9577 fi 9578 ;; 9579 9580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9581 lt_prog_compiler_wl='-Wl,' 9582 lt_prog_compiler_pic='-KPIC' 9583 lt_prog_compiler_static='-Bstatic' 9584 ;; 9585 9586 unicos*) 9587 lt_prog_compiler_wl='-Wl,' 9588 lt_prog_compiler_can_build_shared=no 9589 ;; 9590 9591 uts4*) 9592 lt_prog_compiler_pic='-pic' 9593 lt_prog_compiler_static='-Bstatic' 9594 ;; 9595 9596 *) 9597 lt_prog_compiler_can_build_shared=no 9598 ;; 9599 esac 9600 fi 9601 9602case $host_os in 9603 # For platforms that do not support PIC, -DPIC is meaningless: 9604 *djgpp*) 9605 lt_prog_compiler_pic= 9606 ;; 9607 *) 9608 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9609 ;; 9610esac 9611 9612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9613printf %s "checking for $compiler option to produce PIC... " >&6; } 9614if test ${lt_cv_prog_compiler_pic+y} 9615then : 9616 printf %s "(cached) " >&6 9617else case e in #( 9618 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9619esac 9620fi 9621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9622printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9623lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9624 9625# 9626# Check to make sure the PIC flag actually works. 9627# 9628if test -n "$lt_prog_compiler_pic"; then 9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9630printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9631if test ${lt_cv_prog_compiler_pic_works+y} 9632then : 9633 printf %s "(cached) " >&6 9634else case e in #( 9635 e) lt_cv_prog_compiler_pic_works=no 9636 ac_outfile=conftest.$ac_objext 9637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9638 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9639 # Insert the option either (1) after the last *FLAGS variable, or 9640 # (2) before a word containing "conftest.", or (3) at the end. 9641 # Note that $ac_compile itself does not contain backslashes and begins 9642 # with a dollar sign (not a hyphen), so the echo should work correctly. 9643 # The option is referenced via a variable to avoid confusing sed. 9644 lt_compile=`echo "$ac_compile" | $SED \ 9645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9647 -e 's:$: $lt_compiler_flag:'` 9648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9649 (eval "$lt_compile" 2>conftest.err) 9650 ac_status=$? 9651 cat conftest.err >&5 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 if (exit $ac_status) && test -s "$ac_outfile"; then 9654 # The compiler can only warn and ignore the option if not recognized 9655 # So say no if there are warnings other than the usual output. 9656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9659 lt_cv_prog_compiler_pic_works=yes 9660 fi 9661 fi 9662 $RM conftest* 9663 ;; 9664esac 9665fi 9666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9667printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9668 9669if test yes = "$lt_cv_prog_compiler_pic_works"; then 9670 case $lt_prog_compiler_pic in 9671 "" | " "*) ;; 9672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9673 esac 9674else 9675 lt_prog_compiler_pic= 9676 lt_prog_compiler_can_build_shared=no 9677fi 9678 9679fi 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691# 9692# Check to make sure the static flag actually works. 9693# 9694wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9696printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9697if test ${lt_cv_prog_compiler_static_works+y} 9698then : 9699 printf %s "(cached) " >&6 9700else case e in #( 9701 e) lt_cv_prog_compiler_static_works=no 9702 save_LDFLAGS=$LDFLAGS 9703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9704 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9706 # The linker can only warn and ignore the option if not recognized 9707 # So say no if there are warnings 9708 if test -s conftest.err; then 9709 # Append any errors to the config.log. 9710 cat conftest.err 1>&5 9711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9713 if diff conftest.exp conftest.er2 >/dev/null; then 9714 lt_cv_prog_compiler_static_works=yes 9715 fi 9716 else 9717 lt_cv_prog_compiler_static_works=yes 9718 fi 9719 fi 9720 $RM -r conftest* 9721 LDFLAGS=$save_LDFLAGS 9722 ;; 9723esac 9724fi 9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9726printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9727 9728if test yes = "$lt_cv_prog_compiler_static_works"; then 9729 : 9730else 9731 lt_prog_compiler_static= 9732fi 9733 9734 9735 9736 9737 9738 9739 9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9741printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9742if test ${lt_cv_prog_compiler_c_o+y} 9743then : 9744 printf %s "(cached) " >&6 9745else case e in #( 9746 e) lt_cv_prog_compiler_c_o=no 9747 $RM -r conftest 2>/dev/null 9748 mkdir conftest 9749 cd conftest 9750 mkdir out 9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9752 9753 lt_compiler_flag="-o out/conftest2.$ac_objext" 9754 # Insert the option either (1) after the last *FLAGS variable, or 9755 # (2) before a word containing "conftest.", or (3) at the end. 9756 # Note that $ac_compile itself does not contain backslashes and begins 9757 # with a dollar sign (not a hyphen), so the echo should work correctly. 9758 lt_compile=`echo "$ac_compile" | $SED \ 9759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9761 -e 's:$: $lt_compiler_flag:'` 9762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9763 (eval "$lt_compile" 2>out/conftest.err) 9764 ac_status=$? 9765 cat out/conftest.err >&5 9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9768 then 9769 # The compiler can only warn and ignore the option if not recognized 9770 # So say no if there are warnings 9771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9774 lt_cv_prog_compiler_c_o=yes 9775 fi 9776 fi 9777 chmod u+w . 2>&5 9778 $RM conftest* 9779 # SGI C++ compiler will create directory out/ii_files/ for 9780 # template instantiation 9781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9782 $RM out/* && rmdir out 9783 cd .. 9784 $RM -r conftest 9785 $RM conftest* 9786 ;; 9787esac 9788fi 9789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9790printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9791 9792 9793 9794 9795 9796 9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9798printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9799if test ${lt_cv_prog_compiler_c_o+y} 9800then : 9801 printf %s "(cached) " >&6 9802else case e in #( 9803 e) lt_cv_prog_compiler_c_o=no 9804 $RM -r conftest 2>/dev/null 9805 mkdir conftest 9806 cd conftest 9807 mkdir out 9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9809 9810 lt_compiler_flag="-o out/conftest2.$ac_objext" 9811 # Insert the option either (1) after the last *FLAGS variable, or 9812 # (2) before a word containing "conftest.", or (3) at the end. 9813 # Note that $ac_compile itself does not contain backslashes and begins 9814 # with a dollar sign (not a hyphen), so the echo should work correctly. 9815 lt_compile=`echo "$ac_compile" | $SED \ 9816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9818 -e 's:$: $lt_compiler_flag:'` 9819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9820 (eval "$lt_compile" 2>out/conftest.err) 9821 ac_status=$? 9822 cat out/conftest.err >&5 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9824 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9825 then 9826 # The compiler can only warn and ignore the option if not recognized 9827 # So say no if there are warnings 9828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9831 lt_cv_prog_compiler_c_o=yes 9832 fi 9833 fi 9834 chmod u+w . 2>&5 9835 $RM conftest* 9836 # SGI C++ compiler will create directory out/ii_files/ for 9837 # template instantiation 9838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9839 $RM out/* && rmdir out 9840 cd .. 9841 $RM -r conftest 9842 $RM conftest* 9843 ;; 9844esac 9845fi 9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9847printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9848 9849 9850 9851 9852hard_links=nottested 9853if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9854 # do not overwrite the value of need_locks provided by the user 9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9856printf %s "checking if we can lock with hard links... " >&6; } 9857 hard_links=yes 9858 $RM conftest* 9859 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9860 touch conftest.a 9861 ln conftest.a conftest.b 2>&5 || hard_links=no 9862 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9864printf "%s\n" "$hard_links" >&6; } 9865 if test no = "$hard_links"; then 9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9867printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9868 need_locks=warn 9869 fi 9870else 9871 need_locks=no 9872fi 9873 9874 9875 9876 9877 9878 9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9880printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9881 9882 runpath_var= 9883 allow_undefined_flag= 9884 always_export_symbols=no 9885 archive_cmds= 9886 archive_expsym_cmds= 9887 compiler_needs_object=no 9888 enable_shared_with_static_runtimes=no 9889 export_dynamic_flag_spec= 9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9891 hardcode_automatic=no 9892 hardcode_direct=no 9893 hardcode_direct_absolute=no 9894 hardcode_libdir_flag_spec= 9895 hardcode_libdir_separator= 9896 hardcode_minus_L=no 9897 hardcode_shlibpath_var=unsupported 9898 inherit_rpath=no 9899 link_all_deplibs=unknown 9900 module_cmds= 9901 module_expsym_cmds= 9902 old_archive_from_new_cmds= 9903 old_archive_from_expsyms_cmds= 9904 thread_safe_flag_spec= 9905 whole_archive_flag_spec= 9906 # include_expsyms should be a list of space-separated symbols to be *always* 9907 # included in the symbol list 9908 include_expsyms= 9909 # exclude_expsyms can be an extended regexp of symbols to exclude 9910 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9911 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9912 # as well as any symbol that contains 'd'. 9913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9915 # platforms (ab)use it in PIC code, but their linkers get confused if 9916 # the symbol is explicitly referenced. Since portable code cannot 9917 # rely on this symbol name, it's probably fine to never include it in 9918 # preloaded symbol tables. 9919 # Exclude shared library initialization/finalization symbols. 9920 extract_expsyms_cmds= 9921 9922 case $host_os in 9923 cygwin* | mingw* | pw32* | cegcc*) 9924 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9925 # When not using gcc, we currently assume that we are using 9926 # Microsoft Visual C++ or Intel C++ Compiler. 9927 if test yes != "$GCC"; then 9928 with_gnu_ld=no 9929 fi 9930 ;; 9931 interix*) 9932 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9933 with_gnu_ld=yes 9934 ;; 9935 openbsd* | bitrig*) 9936 with_gnu_ld=no 9937 ;; 9938 esac 9939 9940 ld_shlibs=yes 9941 9942 # On some targets, GNU ld is compatible enough with the native linker 9943 # that we're better off using the native interface for both. 9944 lt_use_gnu_ld_interface=no 9945 if test yes = "$with_gnu_ld"; then 9946 case $host_os in 9947 aix*) 9948 # The AIX port of GNU ld has always aspired to compatibility 9949 # with the native linker. However, as the warning in the GNU ld 9950 # block says, versions before 2.19.5* couldn't really create working 9951 # shared libraries, regardless of the interface used. 9952 case `$LD -v 2>&1` in 9953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9955 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9956 *) 9957 lt_use_gnu_ld_interface=yes 9958 ;; 9959 esac 9960 ;; 9961 *) 9962 lt_use_gnu_ld_interface=yes 9963 ;; 9964 esac 9965 fi 9966 9967 if test yes = "$lt_use_gnu_ld_interface"; then 9968 # If archive_cmds runs LD, not CC, wlarc should be empty 9969 wlarc='$wl' 9970 9971 # Set some defaults for GNU ld with shared library support. These 9972 # are reset later if shared libraries are not supported. Putting them 9973 # here allows them to be overridden if necessary. 9974 runpath_var=LD_RUN_PATH 9975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9976 export_dynamic_flag_spec='$wl--export-dynamic' 9977 # ancient GNU ld didn't support --whole-archive et. al. 9978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9979 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9980 else 9981 whole_archive_flag_spec= 9982 fi 9983 supports_anon_versioning=no 9984 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9985 *GNU\ gold*) supports_anon_versioning=yes ;; 9986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9989 *\ 2.11.*) ;; # other 2.11 versions 9990 *) supports_anon_versioning=yes ;; 9991 esac 9992 9993 # See if GNU ld supports shared libraries. 9994 case $host_os in 9995 aix[3-9]*) 9996 # On AIX/PPC, the GNU linker is very broken 9997 if test ia64 != "$host_cpu"; then 9998 ld_shlibs=no 9999 cat <<_LT_EOF 1>&2 10000 10001*** Warning: the GNU linker, at least up to release 2.19, is reported 10002*** to be unable to reliably create shared libraries on AIX. 10003*** Therefore, libtool is disabling shared libraries support. If you 10004*** really care for shared libraries, you may want to install binutils 10005*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10006*** You will then need to restart the configuration process. 10007 10008_LT_EOF 10009 fi 10010 ;; 10011 10012 amigaos*) 10013 case $host_cpu in 10014 powerpc) 10015 # see comment about AmigaOS4 .so support 10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10017 archive_expsym_cmds='' 10018 ;; 10019 m68k) 10020 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)' 10021 hardcode_libdir_flag_spec='-L$libdir' 10022 hardcode_minus_L=yes 10023 ;; 10024 esac 10025 ;; 10026 10027 beos*) 10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10029 allow_undefined_flag=unsupported 10030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10031 # support --undefined. This deserves some investigation. FIXME 10032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10033 else 10034 ld_shlibs=no 10035 fi 10036 ;; 10037 10038 cygwin* | mingw* | pw32* | cegcc*) 10039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10040 # as there is no search path for DLLs. 10041 hardcode_libdir_flag_spec='-L$libdir' 10042 export_dynamic_flag_spec='$wl--export-all-symbols' 10043 allow_undefined_flag=unsupported 10044 always_export_symbols=no 10045 enable_shared_with_static_runtimes=yes 10046 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' 10047 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10048 10049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10051 # If the export-symbols file already is a .def file, use it as 10052 # is; otherwise, prepend EXPORTS... 10053 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10054 cp $export_symbols $output_objdir/$soname.def; 10055 else 10056 echo EXPORTS > $output_objdir/$soname.def; 10057 cat $export_symbols >> $output_objdir/$soname.def; 10058 fi~ 10059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10060 else 10061 ld_shlibs=no 10062 fi 10063 ;; 10064 10065 haiku*) 10066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10067 link_all_deplibs=yes 10068 ;; 10069 10070 os2*) 10071 hardcode_libdir_flag_spec='-L$libdir' 10072 hardcode_minus_L=yes 10073 allow_undefined_flag=unsupported 10074 shrext_cmds=.dll 10075 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10076 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10077 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10078 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10079 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10080 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10081 emximp -o $lib $output_objdir/$libname.def' 10082 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10083 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10084 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10085 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10086 prefix_cmds="$SED"~ 10087 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10088 prefix_cmds="$prefix_cmds -e 1d"; 10089 fi~ 10090 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10091 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10093 emximp -o $lib $output_objdir/$libname.def' 10094 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10095 enable_shared_with_static_runtimes=yes 10096 file_list_spec='@' 10097 ;; 10098 10099 interix[3-9]*) 10100 hardcode_direct=no 10101 hardcode_shlibpath_var=no 10102 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10103 export_dynamic_flag_spec='$wl-E' 10104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10105 # Instead, shared libraries are loaded at an image base (0x10000000 by 10106 # default) and relocated if they conflict, which is a slow very memory 10107 # consuming and fragmenting process. To avoid this, we pick a random, 10108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10109 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10111 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' 10112 ;; 10113 10114 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10115 tmp_diet=no 10116 if test linux-dietlibc = "$host_os"; then 10117 case $cc_basename in 10118 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10119 esac 10120 fi 10121 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10122 && test no = "$tmp_diet" 10123 then 10124 tmp_addflag=' $pic_flag' 10125 tmp_sharedflag='-shared' 10126 case $cc_basename,$host_cpu in 10127 pgcc*) # Portland Group C compiler 10128 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' 10129 tmp_addflag=' $pic_flag' 10130 ;; 10131 pgf77* | pgf90* | pgf95* | pgfortran*) 10132 # Portland Group f77 and f90 compilers 10133 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' 10134 tmp_addflag=' $pic_flag -Mnomain' ;; 10135 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10136 tmp_addflag=' -i_dynamic' ;; 10137 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10138 tmp_addflag=' -i_dynamic -nofor_main' ;; 10139 ifc* | ifort*) # Intel Fortran compiler 10140 tmp_addflag=' -nofor_main' ;; 10141 lf95*) # Lahey Fortran 8.1 10142 whole_archive_flag_spec= 10143 tmp_sharedflag='--shared' ;; 10144 nagfor*) # NAGFOR 5.3 10145 tmp_sharedflag='-Wl,-shared' ;; 10146 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10147 tmp_sharedflag='-qmkshrobj' 10148 tmp_addflag= ;; 10149 nvcc*) # Cuda Compiler Driver 2.2 10150 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' 10151 compiler_needs_object=yes 10152 ;; 10153 esac 10154 case `$CC -V 2>&1 | $SED 5q` in 10155 *Sun\ C*) # Sun C 5.9 10156 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' 10157 compiler_needs_object=yes 10158 tmp_sharedflag='-G' ;; 10159 *Sun\ F*) # Sun Fortran 8.3 10160 tmp_sharedflag='-G' ;; 10161 esac 10162 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10163 10164 if test yes = "$supports_anon_versioning"; then 10165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10166 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10167 echo "local: *; };" >> $output_objdir/$libname.ver~ 10168 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10169 fi 10170 10171 case $cc_basename in 10172 tcc*) 10173 export_dynamic_flag_spec='-rdynamic' 10174 ;; 10175 xlf* | bgf* | bgxlf* | mpixlf*) 10176 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10177 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10179 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10180 if test yes = "$supports_anon_versioning"; then 10181 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10182 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10183 echo "local: *; };" >> $output_objdir/$libname.ver~ 10184 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10185 fi 10186 ;; 10187 esac 10188 else 10189 ld_shlibs=no 10190 fi 10191 ;; 10192 10193 netbsd*) 10194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10195 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10196 wlarc= 10197 else 10198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10199 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10200 fi 10201 ;; 10202 10203 solaris*) 10204 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10205 ld_shlibs=no 10206 cat <<_LT_EOF 1>&2 10207 10208*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10209*** create shared libraries on Solaris systems. Therefore, libtool 10210*** is disabling shared libraries support. We urge you to upgrade GNU 10211*** binutils to release 2.9.1 or newer. Another option is to modify 10212*** your PATH or compiler configuration so that the native linker is 10213*** used, and then restart. 10214 10215_LT_EOF 10216 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10219 else 10220 ld_shlibs=no 10221 fi 10222 ;; 10223 10224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10225 case `$LD -v 2>&1` in 10226 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10227 ld_shlibs=no 10228 cat <<_LT_EOF 1>&2 10229 10230*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10231*** reliably create shared libraries on SCO systems. Therefore, libtool 10232*** is disabling shared libraries support. We urge you to upgrade GNU 10233*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10234*** your PATH or compiler configuration so that the native linker is 10235*** used, and then restart. 10236 10237_LT_EOF 10238 ;; 10239 *) 10240 # For security reasons, it is highly recommended that you always 10241 # use absolute paths for naming shared libraries, and exclude the 10242 # DT_RUNPATH tag from executables and libraries. But doing so 10243 # requires that you compile everything twice, which is a pain. 10244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10248 else 10249 ld_shlibs=no 10250 fi 10251 ;; 10252 esac 10253 ;; 10254 10255 sunos4*) 10256 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10257 wlarc= 10258 hardcode_direct=yes 10259 hardcode_shlibpath_var=no 10260 ;; 10261 10262 *) 10263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10266 else 10267 ld_shlibs=no 10268 fi 10269 ;; 10270 esac 10271 10272 if test no = "$ld_shlibs"; then 10273 runpath_var= 10274 hardcode_libdir_flag_spec= 10275 export_dynamic_flag_spec= 10276 whole_archive_flag_spec= 10277 fi 10278 else 10279 # PORTME fill in a description of your system's linker (not GNU ld) 10280 case $host_os in 10281 aix3*) 10282 allow_undefined_flag=unsupported 10283 always_export_symbols=yes 10284 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' 10285 # Note: this linker hardcodes the directories in LIBPATH if there 10286 # are no directories specified by -L. 10287 hardcode_minus_L=yes 10288 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10289 # Neither direct hardcoding nor static linking is supported with a 10290 # broken collect2. 10291 hardcode_direct=unsupported 10292 fi 10293 ;; 10294 10295 aix[4-9]*) 10296 if test ia64 = "$host_cpu"; then 10297 # On IA64, the linker does run time linking by default, so we don't 10298 # have to do anything special. 10299 aix_use_runtimelinking=no 10300 exp_sym_flag='-Bexport' 10301 no_entry_flag= 10302 else 10303 # If we're using GNU nm, then we don't want the "-C" option. 10304 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10305 # Without the "-l" option, or with the "-B" option, AIX nm treats 10306 # weak defined symbols like other global defined symbols, whereas 10307 # GNU nm marks them as "W". 10308 # While the 'weak' keyword is ignored in the Export File, we need 10309 # it in the Import File for the 'aix-soname' feature, so we have 10310 # to replace the "-B" option with "-P" for AIX nm. 10311 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10312 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' 10313 else 10314 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' 10315 fi 10316 aix_use_runtimelinking=no 10317 10318 # Test if we are trying to use run time linking or normal 10319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10320 # have runtime linking enabled, and use it for executables. 10321 # For shared libraries, we enable/disable runtime linking 10322 # depending on the kind of the shared library created - 10323 # when "with_aix_soname,aix_use_runtimelinking" is: 10324 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10325 # "aix,yes" lib.so shared, rtl:yes, for executables 10326 # lib.a static archive 10327 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10328 # lib.a(lib.so.V) shared, rtl:no, for executables 10329 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10330 # lib.a(lib.so.V) shared, rtl:no 10331 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10332 # lib.a static archive 10333 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10334 for ld_flag in $LDFLAGS; do 10335 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10336 aix_use_runtimelinking=yes 10337 break 10338 fi 10339 done 10340 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10341 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10342 # so we don't have lib.a shared libs to link our executables. 10343 # We have to force runtime linking in this case. 10344 aix_use_runtimelinking=yes 10345 LDFLAGS="$LDFLAGS -Wl,-brtl" 10346 fi 10347 ;; 10348 esac 10349 10350 exp_sym_flag='-bexport' 10351 no_entry_flag='-bnoentry' 10352 fi 10353 10354 # When large executables or shared objects are built, AIX ld can 10355 # have problems creating the table of contents. If linking a library 10356 # or program results in "error TOC overflow" add -mminimal-toc to 10357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10359 10360 archive_cmds='' 10361 hardcode_direct=yes 10362 hardcode_direct_absolute=yes 10363 hardcode_libdir_separator=':' 10364 link_all_deplibs=yes 10365 file_list_spec='$wl-f,' 10366 case $with_aix_soname,$aix_use_runtimelinking in 10367 aix,*) ;; # traditional, no import file 10368 svr4,* | *,yes) # use import file 10369 # The Import File defines what to hardcode. 10370 hardcode_direct=no 10371 hardcode_direct_absolute=no 10372 ;; 10373 esac 10374 10375 if test yes = "$GCC"; then 10376 case $host_os in aix4.[012]|aix4.[012].*) 10377 # We only want to do this on AIX 4.2 and lower, the check 10378 # below for broken collect2 doesn't work under 4.3+ 10379 collect2name=`$CC -print-prog-name=collect2` 10380 if test -f "$collect2name" && 10381 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10382 then 10383 # We have reworked collect2 10384 : 10385 else 10386 # We have old collect2 10387 hardcode_direct=unsupported 10388 # It fails to find uninstalled libraries when the uninstalled 10389 # path is not listed in the libpath. Setting hardcode_minus_L 10390 # to unsupported forces relinking 10391 hardcode_minus_L=yes 10392 hardcode_libdir_flag_spec='-L$libdir' 10393 hardcode_libdir_separator= 10394 fi 10395 ;; 10396 esac 10397 shared_flag='-shared' 10398 if test yes = "$aix_use_runtimelinking"; then 10399 shared_flag="$shared_flag "'$wl-G' 10400 fi 10401 # Need to ensure runtime linking is disabled for the traditional 10402 # shared library, or the linker may eventually find shared libraries 10403 # /with/ Import File - we do not want to mix them. 10404 shared_flag_aix='-shared' 10405 shared_flag_svr4='-shared $wl-G' 10406 else 10407 # not using gcc 10408 if test ia64 = "$host_cpu"; then 10409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10410 # chokes on -Wl,-G. The following line is correct: 10411 shared_flag='-G' 10412 else 10413 if test yes = "$aix_use_runtimelinking"; then 10414 shared_flag='$wl-G' 10415 else 10416 shared_flag='$wl-bM:SRE' 10417 fi 10418 shared_flag_aix='$wl-bM:SRE' 10419 shared_flag_svr4='$wl-G' 10420 fi 10421 fi 10422 10423 export_dynamic_flag_spec='$wl-bexpall' 10424 # It seems that -bexpall does not export symbols beginning with 10425 # underscore (_), so it is better to generate a list of symbols to export. 10426 always_export_symbols=yes 10427 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10428 # Warning - without using the other runtime loading flags (-brtl), 10429 # -berok will link without error, but may produce a broken library. 10430 allow_undefined_flag='-berok' 10431 # Determine the default libpath from the value encoded in an 10432 # empty executable. 10433 if test set = "${lt_cv_aix_libpath+set}"; then 10434 aix_libpath=$lt_cv_aix_libpath 10435else 10436 if test ${lt_cv_aix_libpath_+y} 10437then : 10438 printf %s "(cached) " >&6 10439else case e in #( 10440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10441/* end confdefs.h. */ 10442 10443int 10444main (void) 10445{ 10446 10447 ; 10448 return 0; 10449} 10450_ACEOF 10451if ac_fn_c_try_link "$LINENO" 10452then : 10453 10454 lt_aix_libpath_sed=' 10455 /Import File Strings/,/^$/ { 10456 /^0/ { 10457 s/^0 *\([^ ]*\) *$/\1/ 10458 p 10459 } 10460 }' 10461 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10462 # Check for a 64-bit object if we didn't find anything. 10463 if test -z "$lt_cv_aix_libpath_"; then 10464 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10465 fi 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10468 conftest$ac_exeext conftest.$ac_ext 10469 if test -z "$lt_cv_aix_libpath_"; then 10470 lt_cv_aix_libpath_=/usr/lib:/lib 10471 fi 10472 ;; 10473esac 10474fi 10475 10476 aix_libpath=$lt_cv_aix_libpath_ 10477fi 10478 10479 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10480 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 10481 else 10482 if test ia64 = "$host_cpu"; then 10483 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10484 allow_undefined_flag="-z nodefs" 10485 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" 10486 else 10487 # Determine the default libpath from the value encoded in an 10488 # empty executable. 10489 if test set = "${lt_cv_aix_libpath+set}"; then 10490 aix_libpath=$lt_cv_aix_libpath 10491else 10492 if test ${lt_cv_aix_libpath_+y} 10493then : 10494 printf %s "(cached) " >&6 10495else case e in #( 10496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10497/* end confdefs.h. */ 10498 10499int 10500main (void) 10501{ 10502 10503 ; 10504 return 0; 10505} 10506_ACEOF 10507if ac_fn_c_try_link "$LINENO" 10508then : 10509 10510 lt_aix_libpath_sed=' 10511 /Import File Strings/,/^$/ { 10512 /^0/ { 10513 s/^0 *\([^ ]*\) *$/\1/ 10514 p 10515 } 10516 }' 10517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10518 # Check for a 64-bit object if we didn't find anything. 10519 if test -z "$lt_cv_aix_libpath_"; then 10520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10521 fi 10522fi 10523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10524 conftest$ac_exeext conftest.$ac_ext 10525 if test -z "$lt_cv_aix_libpath_"; then 10526 lt_cv_aix_libpath_=/usr/lib:/lib 10527 fi 10528 ;; 10529esac 10530fi 10531 10532 aix_libpath=$lt_cv_aix_libpath_ 10533fi 10534 10535 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10536 # Warning - without using the other run time loading flags, 10537 # -berok will link without error, but may produce a broken library. 10538 no_undefined_flag=' $wl-bernotok' 10539 allow_undefined_flag=' $wl-berok' 10540 if test yes = "$with_gnu_ld"; then 10541 # We only use this code for GNU lds that support --whole-archive. 10542 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10543 else 10544 # Exported symbols can be pulled into shared objects from archives 10545 whole_archive_flag_spec='$convenience' 10546 fi 10547 archive_cmds_need_lc=yes 10548 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10549 # -brtl affects multiple linker settings, -berok does not and is overridden later 10550 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10551 if test svr4 != "$with_aix_soname"; then 10552 # This is similar to how AIX traditionally builds its shared libraries. 10553 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' 10554 fi 10555 if test aix != "$with_aix_soname"; then 10556 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' 10557 else 10558 # used by -dlpreopen to get the symbols 10559 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10560 fi 10561 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10562 fi 10563 fi 10564 ;; 10565 10566 amigaos*) 10567 case $host_cpu in 10568 powerpc) 10569 # see comment about AmigaOS4 .so support 10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10571 archive_expsym_cmds='' 10572 ;; 10573 m68k) 10574 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)' 10575 hardcode_libdir_flag_spec='-L$libdir' 10576 hardcode_minus_L=yes 10577 ;; 10578 esac 10579 ;; 10580 10581 bsdi[45]*) 10582 export_dynamic_flag_spec=-rdynamic 10583 ;; 10584 10585 cygwin* | mingw* | pw32* | cegcc*) 10586 # When not using gcc, we currently assume that we are using 10587 # Microsoft Visual C++ or Intel C++ Compiler. 10588 # hardcode_libdir_flag_spec is actually meaningless, as there is 10589 # no search path for DLLs. 10590 case $cc_basename in 10591 cl* | icl*) 10592 # Native MSVC or ICC 10593 hardcode_libdir_flag_spec=' ' 10594 allow_undefined_flag=unsupported 10595 always_export_symbols=yes 10596 file_list_spec='@' 10597 # Tell ltmain to make .lib files, not .a files. 10598 libext=lib 10599 # Tell ltmain to make .dll files, not .so files. 10600 shrext_cmds=.dll 10601 # FIXME: Setting linknames here is a bad hack. 10602 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10603 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10604 cp "$export_symbols" "$output_objdir/$soname.def"; 10605 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10606 else 10607 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10608 fi~ 10609 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10610 linknames=' 10611 # The linker will not automatically build a static lib if we build a DLL. 10612 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10613 enable_shared_with_static_runtimes=yes 10614 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10615 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10616 # Don't use ranlib 10617 old_postinstall_cmds='chmod 644 $oldlib' 10618 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10619 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10620 case $lt_outputfile in 10621 *.exe|*.EXE) ;; 10622 *) 10623 lt_outputfile=$lt_outputfile.exe 10624 lt_tool_outputfile=$lt_tool_outputfile.exe 10625 ;; 10626 esac~ 10627 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10628 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10629 $RM "$lt_outputfile.manifest"; 10630 fi' 10631 ;; 10632 *) 10633 # Assume MSVC and ICC wrapper 10634 hardcode_libdir_flag_spec=' ' 10635 allow_undefined_flag=unsupported 10636 # Tell ltmain to make .lib files, not .a files. 10637 libext=lib 10638 # Tell ltmain to make .dll files, not .so files. 10639 shrext_cmds=.dll 10640 # FIXME: Setting linknames here is a bad hack. 10641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10642 # The linker will automatically build a .lib file if we build a DLL. 10643 old_archive_from_new_cmds='true' 10644 # FIXME: Should let the user specify the lib program. 10645 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10646 enable_shared_with_static_runtimes=yes 10647 ;; 10648 esac 10649 ;; 10650 10651 darwin* | rhapsody*) 10652 10653 10654 archive_cmds_need_lc=no 10655 hardcode_direct=no 10656 hardcode_automatic=yes 10657 hardcode_shlibpath_var=unsupported 10658 if test yes = "$lt_cv_ld_force_load"; then 10659 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\"`' 10660 10661 else 10662 whole_archive_flag_spec='' 10663 fi 10664 link_all_deplibs=yes 10665 allow_undefined_flag=$_lt_dar_allow_undefined 10666 case $cc_basename in 10667 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10668 *) _lt_dar_can_shared=$GCC ;; 10669 esac 10670 if test yes = "$_lt_dar_can_shared"; then 10671 output_verbose_link_cmd=func_echo_all 10672 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10673 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10674 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" 10675 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" 10676 10677 else 10678 ld_shlibs=no 10679 fi 10680 10681 ;; 10682 10683 dgux*) 10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10685 hardcode_libdir_flag_spec='-L$libdir' 10686 hardcode_shlibpath_var=no 10687 ;; 10688 10689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10690 # support. Future versions do this automatically, but an explicit c++rt0.o 10691 # does not break anything, and helps significantly (at the cost of a little 10692 # extra space). 10693 freebsd2.2*) 10694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10695 hardcode_libdir_flag_spec='-R$libdir' 10696 hardcode_direct=yes 10697 hardcode_shlibpath_var=no 10698 ;; 10699 10700 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10701 freebsd2.*) 10702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10703 hardcode_direct=yes 10704 hardcode_minus_L=yes 10705 hardcode_shlibpath_var=no 10706 ;; 10707 10708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10709 freebsd* | dragonfly* | midnightbsd*) 10710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10711 hardcode_libdir_flag_spec='-R$libdir' 10712 hardcode_direct=yes 10713 hardcode_shlibpath_var=no 10714 ;; 10715 10716 hpux9*) 10717 if test yes = "$GCC"; then 10718 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' 10719 else 10720 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' 10721 fi 10722 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10723 hardcode_libdir_separator=: 10724 hardcode_direct=yes 10725 10726 # hardcode_minus_L: Not really in the search PATH, 10727 # but as the default location of the library. 10728 hardcode_minus_L=yes 10729 export_dynamic_flag_spec='$wl-E' 10730 ;; 10731 10732 hpux10*) 10733 if test yes,no = "$GCC,$with_gnu_ld"; then 10734 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10735 else 10736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10737 fi 10738 if test no = "$with_gnu_ld"; then 10739 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10740 hardcode_libdir_separator=: 10741 hardcode_direct=yes 10742 hardcode_direct_absolute=yes 10743 export_dynamic_flag_spec='$wl-E' 10744 # hardcode_minus_L: Not really in the search PATH, 10745 # but as the default location of the library. 10746 hardcode_minus_L=yes 10747 fi 10748 ;; 10749 10750 hpux11*) 10751 if test yes,no = "$GCC,$with_gnu_ld"; then 10752 case $host_cpu in 10753 hppa*64*) 10754 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10755 ;; 10756 ia64*) 10757 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10758 ;; 10759 *) 10760 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10761 ;; 10762 esac 10763 else 10764 case $host_cpu in 10765 hppa*64*) 10766 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 ;; 10768 ia64*) 10769 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10770 ;; 10771 *) 10772 10773 # Older versions of the 11.00 compiler do not understand -b yet 10774 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10776printf %s "checking if $CC understands -b... " >&6; } 10777if test ${lt_cv_prog_compiler__b+y} 10778then : 10779 printf %s "(cached) " >&6 10780else case e in #( 10781 e) lt_cv_prog_compiler__b=no 10782 save_LDFLAGS=$LDFLAGS 10783 LDFLAGS="$LDFLAGS -b" 10784 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10786 # The linker can only warn and ignore the option if not recognized 10787 # So say no if there are warnings 10788 if test -s conftest.err; then 10789 # Append any errors to the config.log. 10790 cat conftest.err 1>&5 10791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10793 if diff conftest.exp conftest.er2 >/dev/null; then 10794 lt_cv_prog_compiler__b=yes 10795 fi 10796 else 10797 lt_cv_prog_compiler__b=yes 10798 fi 10799 fi 10800 $RM -r conftest* 10801 LDFLAGS=$save_LDFLAGS 10802 ;; 10803esac 10804fi 10805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10806printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10807 10808if test yes = "$lt_cv_prog_compiler__b"; then 10809 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10810else 10811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10812fi 10813 10814 ;; 10815 esac 10816 fi 10817 if test no = "$with_gnu_ld"; then 10818 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10819 hardcode_libdir_separator=: 10820 10821 case $host_cpu in 10822 hppa*64*|ia64*) 10823 hardcode_direct=no 10824 hardcode_shlibpath_var=no 10825 ;; 10826 *) 10827 hardcode_direct=yes 10828 hardcode_direct_absolute=yes 10829 export_dynamic_flag_spec='$wl-E' 10830 10831 # hardcode_minus_L: Not really in the search PATH, 10832 # but as the default location of the library. 10833 hardcode_minus_L=yes 10834 ;; 10835 esac 10836 fi 10837 ;; 10838 10839 irix5* | irix6* | nonstopux*) 10840 if test yes = "$GCC"; then 10841 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' 10842 # Try to use the -exported_symbol ld option, if it does not 10843 # work, assume that -exports_file does not work either and 10844 # implicitly export all symbols. 10845 # This should be the same for all languages, so no per-tag cache variable. 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10847printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10848if test ${lt_cv_irix_exported_symbol+y} 10849then : 10850 printf %s "(cached) " >&6 10851else case e in #( 10852 e) save_LDFLAGS=$LDFLAGS 10853 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856int foo (void) { return 0; } 10857_ACEOF 10858if ac_fn_c_try_link "$LINENO" 10859then : 10860 lt_cv_irix_exported_symbol=yes 10861else case e in #( 10862 e) lt_cv_irix_exported_symbol=no ;; 10863esac 10864fi 10865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10866 conftest$ac_exeext conftest.$ac_ext 10867 LDFLAGS=$save_LDFLAGS ;; 10868esac 10869fi 10870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10871printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10872 if test yes = "$lt_cv_irix_exported_symbol"; then 10873 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' 10874 fi 10875 else 10876 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' 10877 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' 10878 fi 10879 archive_cmds_need_lc='no' 10880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10881 hardcode_libdir_separator=: 10882 inherit_rpath=yes 10883 link_all_deplibs=yes 10884 ;; 10885 10886 linux*) 10887 case $cc_basename in 10888 tcc*) 10889 # Fabrice Bellard et al's Tiny C Compiler 10890 ld_shlibs=yes 10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10892 ;; 10893 esac 10894 ;; 10895 10896 netbsd*) 10897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10899 else 10900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10901 fi 10902 hardcode_libdir_flag_spec='-R$libdir' 10903 hardcode_direct=yes 10904 hardcode_shlibpath_var=no 10905 ;; 10906 10907 newsos6) 10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10909 hardcode_direct=yes 10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10911 hardcode_libdir_separator=: 10912 hardcode_shlibpath_var=no 10913 ;; 10914 10915 *nto* | *qnx*) 10916 ;; 10917 10918 openbsd* | bitrig*) 10919 if test -f /usr/libexec/ld.so; then 10920 hardcode_direct=yes 10921 hardcode_shlibpath_var=no 10922 hardcode_direct_absolute=yes 10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10926 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10927 export_dynamic_flag_spec='$wl-E' 10928 else 10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10930 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10931 fi 10932 else 10933 ld_shlibs=no 10934 fi 10935 ;; 10936 10937 os2*) 10938 hardcode_libdir_flag_spec='-L$libdir' 10939 hardcode_minus_L=yes 10940 allow_undefined_flag=unsupported 10941 shrext_cmds=.dll 10942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10945 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10948 emximp -o $lib $output_objdir/$libname.def' 10949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10952 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10953 prefix_cmds="$SED"~ 10954 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10955 prefix_cmds="$prefix_cmds -e 1d"; 10956 fi~ 10957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10960 emximp -o $lib $output_objdir/$libname.def' 10961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10962 enable_shared_with_static_runtimes=yes 10963 file_list_spec='@' 10964 ;; 10965 10966 osf3*) 10967 if test yes = "$GCC"; then 10968 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10969 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' 10970 else 10971 allow_undefined_flag=' -expect_unresolved \*' 10972 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' 10973 fi 10974 archive_cmds_need_lc='no' 10975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10976 hardcode_libdir_separator=: 10977 ;; 10978 10979 osf4* | osf5*) # as osf3* with the addition of -msym flag 10980 if test yes = "$GCC"; then 10981 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10982 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' 10983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10984 else 10985 allow_undefined_flag=' -expect_unresolved \*' 10986 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' 10987 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~ 10988 $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' 10989 10990 # Both c and cxx compiler support -rpath directly 10991 hardcode_libdir_flag_spec='-rpath $libdir' 10992 fi 10993 archive_cmds_need_lc='no' 10994 hardcode_libdir_separator=: 10995 ;; 10996 10997 solaris*) 10998 no_undefined_flag=' -z defs' 10999 if test yes = "$GCC"; then 11000 wlarc='$wl' 11001 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11003 $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' 11004 else 11005 case `$CC -V 2>&1` in 11006 *"Compilers 5.0"*) 11007 wlarc='' 11008 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11010 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11011 ;; 11012 *) 11013 wlarc='$wl' 11014 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11016 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11017 ;; 11018 esac 11019 fi 11020 hardcode_libdir_flag_spec='-R$libdir' 11021 hardcode_shlibpath_var=no 11022 case $host_os in 11023 solaris2.[0-5] | solaris2.[0-5].*) ;; 11024 *) 11025 # The compiler driver will combine and reorder linker options, 11026 # but understands '-z linker_flag'. GCC discards it without '$wl', 11027 # but is careful enough not to reorder. 11028 # Supported since Solaris 2.6 (maybe 2.5.1?) 11029 if test yes = "$GCC"; then 11030 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11031 else 11032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11033 fi 11034 ;; 11035 esac 11036 link_all_deplibs=yes 11037 ;; 11038 11039 sunos4*) 11040 if test sequent = "$host_vendor"; then 11041 # Use $CC to link under sequent, because it throws in some extra .o 11042 # files that make .init and .fini sections work. 11043 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11044 else 11045 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11046 fi 11047 hardcode_libdir_flag_spec='-L$libdir' 11048 hardcode_direct=yes 11049 hardcode_minus_L=yes 11050 hardcode_shlibpath_var=no 11051 ;; 11052 11053 sysv4) 11054 case $host_vendor in 11055 sni) 11056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11057 hardcode_direct=yes # is this really true??? 11058 ;; 11059 siemens) 11060 ## LD is ld it makes a PLAMLIB 11061 ## CC just makes a GrossModule. 11062 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11063 reload_cmds='$CC -r -o $output$reload_objs' 11064 hardcode_direct=no 11065 ;; 11066 motorola) 11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11068 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11069 ;; 11070 esac 11071 runpath_var='LD_RUN_PATH' 11072 hardcode_shlibpath_var=no 11073 ;; 11074 11075 sysv4.3*) 11076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11077 hardcode_shlibpath_var=no 11078 export_dynamic_flag_spec='-Bexport' 11079 ;; 11080 11081 sysv4*MP*) 11082 if test -d /usr/nec; then 11083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11084 hardcode_shlibpath_var=no 11085 runpath_var=LD_RUN_PATH 11086 hardcode_runpath_var=yes 11087 ld_shlibs=yes 11088 fi 11089 ;; 11090 11091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11092 no_undefined_flag='$wl-z,text' 11093 archive_cmds_need_lc=no 11094 hardcode_shlibpath_var=no 11095 runpath_var='LD_RUN_PATH' 11096 11097 if test yes = "$GCC"; then 11098 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11099 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11100 else 11101 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11103 fi 11104 ;; 11105 11106 sysv5* | sco3.2v5* | sco5v6*) 11107 # Note: We CANNOT use -z defs as we might desire, because we do not 11108 # link with -lc, and that would cause any symbols used from libc to 11109 # always be unresolved, which means just about no library would 11110 # ever link correctly. If we're not using GNU ld we use -z text 11111 # though, which does catch some bad symbols but isn't as heavy-handed 11112 # as -z defs. 11113 no_undefined_flag='$wl-z,text' 11114 allow_undefined_flag='$wl-z,nodefs' 11115 archive_cmds_need_lc=no 11116 hardcode_shlibpath_var=no 11117 hardcode_libdir_flag_spec='$wl-R,$libdir' 11118 hardcode_libdir_separator=':' 11119 link_all_deplibs=yes 11120 export_dynamic_flag_spec='$wl-Bexport' 11121 runpath_var='LD_RUN_PATH' 11122 11123 if test yes = "$GCC"; then 11124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11126 else 11127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11129 fi 11130 ;; 11131 11132 uts4*) 11133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11134 hardcode_libdir_flag_spec='-L$libdir' 11135 hardcode_shlibpath_var=no 11136 ;; 11137 11138 *) 11139 ld_shlibs=no 11140 ;; 11141 esac 11142 11143 if test sni = "$host_vendor"; then 11144 case $host in 11145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11146 export_dynamic_flag_spec='$wl-Blargedynsym' 11147 ;; 11148 esac 11149 fi 11150 fi 11151 11152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11153printf "%s\n" "$ld_shlibs" >&6; } 11154test no = "$ld_shlibs" && can_build_shared=no 11155 11156with_gnu_ld=$with_gnu_ld 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172# 11173# Do we need to explicitly link libc? 11174# 11175case "x$archive_cmds_need_lc" in 11176x|xyes) 11177 # Assume -lc should be added 11178 archive_cmds_need_lc=yes 11179 11180 if test yes,yes = "$GCC,$enable_shared"; then 11181 case $archive_cmds in 11182 *'~'*) 11183 # FIXME: we may have to deal with multi-command sequences. 11184 ;; 11185 '$CC '*) 11186 # Test whether the compiler implicitly links with -lc since on some 11187 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11188 # to ld, don't add -lc before -lgcc. 11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11190printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11191if test ${lt_cv_archive_cmds_need_lc+y} 11192then : 11193 printf %s "(cached) " >&6 11194else case e in #( 11195 e) $RM conftest* 11196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11197 11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11199 (eval $ac_compile) 2>&5 11200 ac_status=$? 11201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11202 test $ac_status = 0; } 2>conftest.err; then 11203 soname=conftest 11204 lib=conftest 11205 libobjs=conftest.$ac_objext 11206 deplibs= 11207 wl=$lt_prog_compiler_wl 11208 pic_flag=$lt_prog_compiler_pic 11209 compiler_flags=-v 11210 linker_flags=-v 11211 verstring= 11212 output_objdir=. 11213 libname=conftest 11214 lt_save_allow_undefined_flag=$allow_undefined_flag 11215 allow_undefined_flag= 11216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11218 ac_status=$? 11219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11220 test $ac_status = 0; } 11221 then 11222 lt_cv_archive_cmds_need_lc=no 11223 else 11224 lt_cv_archive_cmds_need_lc=yes 11225 fi 11226 allow_undefined_flag=$lt_save_allow_undefined_flag 11227 else 11228 cat conftest.err 1>&5 11229 fi 11230 $RM conftest* 11231 ;; 11232esac 11233fi 11234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11235printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11236 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11237 ;; 11238 esac 11239 fi 11240 ;; 11241esac 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11395printf %s "checking dynamic linker characteristics... " >&6; } 11396 11397if test yes = "$GCC"; then 11398 case $host_os in 11399 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11400 *) lt_awk_arg='/^libraries:/' ;; 11401 esac 11402 case $host_os in 11403 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11404 *) lt_sed_strip_eq='s|=/|/|g' ;; 11405 esac 11406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11407 case $lt_search_path_spec in 11408 *\;*) 11409 # if the path contains ";" then we assume it to be the separator 11410 # otherwise default to the standard path separator (i.e. ":") - it is 11411 # assumed that no part of a normal pathname contains ";" but that should 11412 # okay in the real world where ";" in dirpaths is itself problematic. 11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11414 ;; 11415 *) 11416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11417 ;; 11418 esac 11419 # Ok, now we have the path, separated by spaces, we can step through it 11420 # and add multilib dir if necessary... 11421 lt_tmp_lt_search_path_spec= 11422 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11423 # ...but if some path component already ends with the multilib dir we assume 11424 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11425 case "$lt_multi_os_dir; $lt_search_path_spec " in 11426 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11427 lt_multi_os_dir= 11428 ;; 11429 esac 11430 for lt_sys_path in $lt_search_path_spec; do 11431 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11433 elif test -n "$lt_multi_os_dir"; then 11434 test -d "$lt_sys_path" && \ 11435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11436 fi 11437 done 11438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11439BEGIN {RS = " "; FS = "/|\n";} { 11440 lt_foo = ""; 11441 lt_count = 0; 11442 for (lt_i = NF; lt_i > 0; lt_i--) { 11443 if ($lt_i != "" && $lt_i != ".") { 11444 if ($lt_i == "..") { 11445 lt_count++; 11446 } else { 11447 if (lt_count == 0) { 11448 lt_foo = "/" $lt_i lt_foo; 11449 } else { 11450 lt_count--; 11451 } 11452 } 11453 } 11454 } 11455 if (lt_foo != "") { lt_freq[lt_foo]++; } 11456 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11457}'` 11458 # AWK program above erroneously prepends '/' to C:/dos/paths 11459 # for these hosts. 11460 case $host_os in 11461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11462 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11463 esac 11464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11465else 11466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11467fi 11468library_names_spec= 11469libname_spec='lib$name' 11470soname_spec= 11471shrext_cmds=.so 11472postinstall_cmds= 11473postuninstall_cmds= 11474finish_cmds= 11475finish_eval= 11476shlibpath_var= 11477shlibpath_overrides_runpath=unknown 11478version_type=none 11479dynamic_linker="$host_os ld.so" 11480sys_lib_dlsearch_path_spec="/lib /usr/lib" 11481need_lib_prefix=unknown 11482hardcode_into_libs=no 11483 11484# when you set need_version to no, make sure it does not cause -set_version 11485# flags to be left without arguments 11486need_version=unknown 11487 11488 11489 11490case $host_os in 11491aix3*) 11492 version_type=linux # correct to gnu/linux during the next big refactor 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11494 shlibpath_var=LIBPATH 11495 11496 # AIX 3 has no versioning support, so we append a major version to the name. 11497 soname_spec='$libname$release$shared_ext$major' 11498 ;; 11499 11500aix[4-9]*) 11501 version_type=linux # correct to gnu/linux during the next big refactor 11502 need_lib_prefix=no 11503 need_version=no 11504 hardcode_into_libs=yes 11505 if test ia64 = "$host_cpu"; then 11506 # AIX 5 supports IA64 11507 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11508 shlibpath_var=LD_LIBRARY_PATH 11509 else 11510 # With GCC up to 2.95.x, collect2 would create an import file 11511 # for dependence libraries. The import file would start with 11512 # the line '#! .'. This would cause the generated library to 11513 # depend on '.', always an invalid library. This was fixed in 11514 # development snapshots of GCC prior to 3.0. 11515 case $host_os in 11516 aix4 | aix4.[01] | aix4.[01].*) 11517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11518 echo ' yes ' 11519 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11520 : 11521 else 11522 can_build_shared=no 11523 fi 11524 ;; 11525 esac 11526 # Using Import Files as archive members, it is possible to support 11527 # filename-based versioning of shared library archives on AIX. While 11528 # this would work for both with and without runtime linking, it will 11529 # prevent static linking of such archives. So we do filename-based 11530 # shared library versioning with .so extension only, which is used 11531 # when both runtime linking and shared linking is enabled. 11532 # Unfortunately, runtime linking may impact performance, so we do 11533 # not want this to be the default eventually. Also, we use the 11534 # versioned .so libs for executables only if there is the -brtl 11535 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11536 # To allow for filename-based versioning support, we need to create 11537 # libNAME.so.V as an archive file, containing: 11538 # *) an Import File, referring to the versioned filename of the 11539 # archive as well as the shared archive member, telling the 11540 # bitwidth (32 or 64) of that shared object, and providing the 11541 # list of exported symbols of that shared object, eventually 11542 # decorated with the 'weak' keyword 11543 # *) the shared object with the F_LOADONLY flag set, to really avoid 11544 # it being seen by the linker. 11545 # At run time we better use the real file rather than another symlink, 11546 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11547 11548 case $with_aix_soname,$aix_use_runtimelinking in 11549 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11550 # soname into executable. Probably we can add versioning support to 11551 # collect2, so additional links can be useful in future. 11552 aix,yes) # traditional libtool 11553 dynamic_linker='AIX unversionable lib.so' 11554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11555 # instead of lib<name>.a to let people know that these are not 11556 # typical AIX shared libraries. 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 ;; 11559 aix,no) # traditional AIX only 11560 dynamic_linker='AIX lib.a(lib.so.V)' 11561 # We preserve .a as extension for shared libraries through AIX4.2 11562 # and later when we are not doing run time linking. 11563 library_names_spec='$libname$release.a $libname.a' 11564 soname_spec='$libname$release$shared_ext$major' 11565 ;; 11566 svr4,*) # full svr4 only 11567 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11568 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11569 # We do not specify a path in Import Files, so LIBPATH fires. 11570 shlibpath_overrides_runpath=yes 11571 ;; 11572 *,yes) # both, prefer svr4 11573 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11574 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11575 # unpreferred sharedlib libNAME.a needs extra handling 11576 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"' 11577 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"' 11578 # We do not specify a path in Import Files, so LIBPATH fires. 11579 shlibpath_overrides_runpath=yes 11580 ;; 11581 *,no) # both, prefer aix 11582 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11583 library_names_spec='$libname$release.a $libname.a' 11584 soname_spec='$libname$release$shared_ext$major' 11585 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11586 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)' 11587 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"' 11588 ;; 11589 esac 11590 shlibpath_var=LIBPATH 11591 fi 11592 ;; 11593 11594amigaos*) 11595 case $host_cpu in 11596 powerpc) 11597 # Since July 2007 AmigaOS4 officially supports .so libraries. 11598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11600 ;; 11601 m68k) 11602 library_names_spec='$libname.ixlibrary $libname.a' 11603 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11604 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' 11605 ;; 11606 esac 11607 ;; 11608 11609beos*) 11610 library_names_spec='$libname$shared_ext' 11611 dynamic_linker="$host_os ld.so" 11612 shlibpath_var=LIBRARY_PATH 11613 ;; 11614 11615bsdi[45]*) 11616 version_type=linux # correct to gnu/linux during the next big refactor 11617 need_version=no 11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11619 soname_spec='$libname$release$shared_ext$major' 11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11621 shlibpath_var=LD_LIBRARY_PATH 11622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11624 # the default ld.so.conf also contains /usr/contrib/lib and 11625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11626 # libtool to hard-code these into programs 11627 ;; 11628 11629cygwin* | mingw* | pw32* | cegcc*) 11630 version_type=windows 11631 shrext_cmds=.dll 11632 need_version=no 11633 need_lib_prefix=no 11634 11635 case $GCC,$cc_basename in 11636 yes,*) 11637 # gcc 11638 library_names_spec='$libname.dll.a' 11639 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11640 postinstall_cmds='base_file=`basename \$file`~ 11641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11642 dldir=$destdir/`dirname \$dlpath`~ 11643 test -d \$dldir || mkdir -p \$dldir~ 11644 $install_prog $dir/$dlname \$dldir/$dlname~ 11645 chmod a+x \$dldir/$dlname~ 11646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11648 fi' 11649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11650 dlpath=$dir/\$dldll~ 11651 $RM \$dlpath' 11652 shlibpath_overrides_runpath=yes 11653 11654 case $host_os in 11655 cygwin*) 11656 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11657 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11658 11659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11660 ;; 11661 mingw* | cegcc*) 11662 # MinGW DLLs use traditional 'lib' prefix 11663 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11664 ;; 11665 pw32*) 11666 # pw32 DLLs use 'pw' prefix rather than 'lib' 11667 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11668 ;; 11669 esac 11670 dynamic_linker='Win32 ld.exe' 11671 ;; 11672 11673 *,cl* | *,icl*) 11674 # Native MSVC or ICC 11675 libname_spec='$name' 11676 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11677 library_names_spec='$libname.dll.lib' 11678 11679 case $build_os in 11680 mingw*) 11681 sys_lib_search_path_spec= 11682 lt_save_ifs=$IFS 11683 IFS=';' 11684 for lt_path in $LIB 11685 do 11686 IFS=$lt_save_ifs 11687 # Let DOS variable expansion print the short 8.3 style file name. 11688 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11689 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11690 done 11691 IFS=$lt_save_ifs 11692 # Convert to MSYS style. 11693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11694 ;; 11695 cygwin*) 11696 # Convert to unix form, then to dos form, then back to unix form 11697 # but this time dos style (no spaces!) so that the unix form looks 11698 # like /cygdrive/c/PROGRA~1:/cygdr... 11699 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11700 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11701 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11702 ;; 11703 *) 11704 sys_lib_search_path_spec=$LIB 11705 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11706 # It is most probably a Windows format PATH. 11707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11708 else 11709 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11710 fi 11711 # FIXME: find the short name or the path components, as spaces are 11712 # common. (e.g. "Program Files" -> "PROGRA~1") 11713 ;; 11714 esac 11715 11716 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11717 postinstall_cmds='base_file=`basename \$file`~ 11718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11719 dldir=$destdir/`dirname \$dlpath`~ 11720 test -d \$dldir || mkdir -p \$dldir~ 11721 $install_prog $dir/$dlname \$dldir/$dlname' 11722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11723 dlpath=$dir/\$dldll~ 11724 $RM \$dlpath' 11725 shlibpath_overrides_runpath=yes 11726 dynamic_linker='Win32 link.exe' 11727 ;; 11728 11729 *) 11730 # Assume MSVC and ICC wrapper 11731 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11732 dynamic_linker='Win32 ld.exe' 11733 ;; 11734 esac 11735 # FIXME: first we should search . and the directory the executable is in 11736 shlibpath_var=PATH 11737 ;; 11738 11739darwin* | rhapsody*) 11740 dynamic_linker="$host_os dyld" 11741 version_type=darwin 11742 need_lib_prefix=no 11743 need_version=no 11744 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11745 soname_spec='$libname$release$major$shared_ext' 11746 shlibpath_overrides_runpath=yes 11747 shlibpath_var=DYLD_LIBRARY_PATH 11748 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11749 11750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11752 ;; 11753 11754dgux*) 11755 version_type=linux # correct to gnu/linux during the next big refactor 11756 need_lib_prefix=no 11757 need_version=no 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 shlibpath_var=LD_LIBRARY_PATH 11761 ;; 11762 11763freebsd* | dragonfly* | midnightbsd*) 11764 # DragonFly does not have aout. When/if they implement a new 11765 # versioning mechanism, adjust this. 11766 if test -x /usr/bin/objformat; then 11767 objformat=`/usr/bin/objformat` 11768 else 11769 case $host_os in 11770 freebsd[23].*) objformat=aout ;; 11771 *) objformat=elf ;; 11772 esac 11773 fi 11774 version_type=freebsd-$objformat 11775 case $version_type in 11776 freebsd-elf*) 11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11778 soname_spec='$libname$release$shared_ext$major' 11779 need_version=no 11780 need_lib_prefix=no 11781 ;; 11782 freebsd-*) 11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11784 need_version=yes 11785 ;; 11786 esac 11787 shlibpath_var=LD_LIBRARY_PATH 11788 case $host_os in 11789 freebsd2.*) 11790 shlibpath_overrides_runpath=yes 11791 ;; 11792 freebsd3.[01]* | freebsdelf3.[01]*) 11793 shlibpath_overrides_runpath=yes 11794 hardcode_into_libs=yes 11795 ;; 11796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11798 shlibpath_overrides_runpath=no 11799 hardcode_into_libs=yes 11800 ;; 11801 *) # from 4.6 on, and DragonFly 11802 shlibpath_overrides_runpath=yes 11803 hardcode_into_libs=yes 11804 ;; 11805 esac 11806 ;; 11807 11808haiku*) 11809 version_type=linux # correct to gnu/linux during the next big refactor 11810 need_lib_prefix=no 11811 need_version=no 11812 dynamic_linker="$host_os runtime_loader" 11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11814 soname_spec='$libname$release$shared_ext$major' 11815 shlibpath_var=LIBRARY_PATH 11816 shlibpath_overrides_runpath=no 11817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11818 hardcode_into_libs=yes 11819 ;; 11820 11821hpux9* | hpux10* | hpux11*) 11822 # Give a soname corresponding to the major version so that dld.sl refuses to 11823 # link against other versions. 11824 version_type=sunos 11825 need_lib_prefix=no 11826 need_version=no 11827 case $host_cpu in 11828 ia64*) 11829 shrext_cmds='.so' 11830 hardcode_into_libs=yes 11831 dynamic_linker="$host_os dld.so" 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11835 soname_spec='$libname$release$shared_ext$major' 11836 if test 32 = "$HPUX_IA64_MODE"; then 11837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11839 else 11840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11841 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11842 fi 11843 ;; 11844 hppa*64*) 11845 shrext_cmds='.sl' 11846 hardcode_into_libs=yes 11847 dynamic_linker="$host_os dld.sl" 11848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11851 soname_spec='$libname$release$shared_ext$major' 11852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11854 ;; 11855 *) 11856 shrext_cmds='.sl' 11857 dynamic_linker="$host_os dld.sl" 11858 shlibpath_var=SHLIB_PATH 11859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11861 soname_spec='$libname$release$shared_ext$major' 11862 ;; 11863 esac 11864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11865 postinstall_cmds='chmod 555 $lib' 11866 # or fails outright, so override atomically: 11867 install_override_mode=555 11868 ;; 11869 11870interix[3-9]*) 11871 version_type=linux # correct to gnu/linux during the next big refactor 11872 need_lib_prefix=no 11873 need_version=no 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11875 soname_spec='$libname$release$shared_ext$major' 11876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11877 shlibpath_var=LD_LIBRARY_PATH 11878 shlibpath_overrides_runpath=no 11879 hardcode_into_libs=yes 11880 ;; 11881 11882irix5* | irix6* | nonstopux*) 11883 case $host_os in 11884 nonstopux*) version_type=nonstopux ;; 11885 *) 11886 if test yes = "$lt_cv_prog_gnu_ld"; then 11887 version_type=linux # correct to gnu/linux during the next big refactor 11888 else 11889 version_type=irix 11890 fi ;; 11891 esac 11892 need_lib_prefix=no 11893 need_version=no 11894 soname_spec='$libname$release$shared_ext$major' 11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11896 case $host_os in 11897 irix5* | nonstopux*) 11898 libsuff= shlibsuff= 11899 ;; 11900 *) 11901 case $LD in # libtool.m4 will add one of these switches to LD 11902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11903 libsuff= shlibsuff= libmagic=32-bit;; 11904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11905 libsuff=32 shlibsuff=N32 libmagic=N32;; 11906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11907 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11908 *) libsuff= shlibsuff= libmagic=never-match;; 11909 esac 11910 ;; 11911 esac 11912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11913 shlibpath_overrides_runpath=no 11914 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11915 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11916 hardcode_into_libs=yes 11917 ;; 11918 11919# No shared lib support for Linux oldld, aout, or coff. 11920linux*oldld* | linux*aout* | linux*coff*) 11921 dynamic_linker=no 11922 ;; 11923 11924linux*android*) 11925 version_type=none # Android doesn't support versioned libraries. 11926 need_lib_prefix=no 11927 need_version=no 11928 library_names_spec='$libname$release$shared_ext' 11929 soname_spec='$libname$release$shared_ext' 11930 finish_cmds= 11931 shlibpath_var=LD_LIBRARY_PATH 11932 shlibpath_overrides_runpath=yes 11933 11934 # This implies no fast_install, which is unacceptable. 11935 # Some rework will be needed to allow for fast_install 11936 # before this can be enabled. 11937 hardcode_into_libs=yes 11938 11939 dynamic_linker='Android linker' 11940 # Don't embed -rpath directories since the linker doesn't support them. 11941 hardcode_libdir_flag_spec='-L$libdir' 11942 ;; 11943 11944# This must be glibc/ELF. 11945linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11946 version_type=linux # correct to gnu/linux during the next big refactor 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11952 shlibpath_var=LD_LIBRARY_PATH 11953 shlibpath_overrides_runpath=no 11954 11955 # Some binutils ld are patched to set DT_RUNPATH 11956 if test ${lt_cv_shlibpath_overrides_runpath+y} 11957then : 11958 printf %s "(cached) " >&6 11959else case e in #( 11960 e) lt_cv_shlibpath_overrides_runpath=no 11961 save_LDFLAGS=$LDFLAGS 11962 save_libdir=$libdir 11963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966/* end confdefs.h. */ 11967 11968int 11969main (void) 11970{ 11971 11972 ; 11973 return 0; 11974} 11975_ACEOF 11976if ac_fn_c_try_link "$LINENO" 11977then : 11978 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11979then : 11980 lt_cv_shlibpath_overrides_runpath=yes 11981fi 11982fi 11983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11984 conftest$ac_exeext conftest.$ac_ext 11985 LDFLAGS=$save_LDFLAGS 11986 libdir=$save_libdir 11987 ;; 11988esac 11989fi 11990 11991 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11992 11993 # This implies no fast_install, which is unacceptable. 11994 # Some rework will be needed to allow for fast_install 11995 # before this can be enabled. 11996 hardcode_into_libs=yes 11997 11998 # Ideally, we could use ldconfig to report *all* directores which are 11999 # searched for libraries, however this is still not possible. Aside from not 12000 # being certain /sbin/ldconfig is available, command 12001 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12002 # even though it is searched at run-time. Try to do the best guess by 12003 # appending ld.so.conf contents (and includes) to the search path. 12004 if test -f /etc/ld.so.conf; then 12005 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' ' '` 12006 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12007 fi 12008 12009 # We used to test for /lib/ld.so.1 and disable shared libraries on 12010 # powerpc, because MkLinux only supported shared libraries with the 12011 # GNU dynamic linker. Since this was broken with cross compilers, 12012 # most powerpc-linux boxes support dynamic linking these days and 12013 # people can always --disable-shared, the test was removed, and we 12014 # assume the GNU/Linux dynamic linker is in use. 12015 dynamic_linker='GNU/Linux ld.so' 12016 ;; 12017 12018netbsd*) 12019 version_type=sunos 12020 need_lib_prefix=no 12021 need_version=no 12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12025 dynamic_linker='NetBSD (a.out) ld.so' 12026 else 12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12028 soname_spec='$libname$release$shared_ext$major' 12029 dynamic_linker='NetBSD ld.elf_so' 12030 fi 12031 shlibpath_var=LD_LIBRARY_PATH 12032 shlibpath_overrides_runpath=yes 12033 hardcode_into_libs=yes 12034 ;; 12035 12036newsos6) 12037 version_type=linux # correct to gnu/linux during the next big refactor 12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12039 shlibpath_var=LD_LIBRARY_PATH 12040 shlibpath_overrides_runpath=yes 12041 ;; 12042 12043*nto* | *qnx*) 12044 version_type=qnx 12045 need_lib_prefix=no 12046 need_version=no 12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12048 soname_spec='$libname$release$shared_ext$major' 12049 shlibpath_var=LD_LIBRARY_PATH 12050 shlibpath_overrides_runpath=no 12051 hardcode_into_libs=yes 12052 dynamic_linker='ldqnx.so' 12053 ;; 12054 12055openbsd* | bitrig*) 12056 version_type=sunos 12057 sys_lib_dlsearch_path_spec=/usr/lib 12058 need_lib_prefix=no 12059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12060 need_version=no 12061 else 12062 need_version=yes 12063 fi 12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12066 shlibpath_var=LD_LIBRARY_PATH 12067 shlibpath_overrides_runpath=yes 12068 ;; 12069 12070os2*) 12071 libname_spec='$name' 12072 version_type=windows 12073 shrext_cmds=.dll 12074 need_version=no 12075 need_lib_prefix=no 12076 # OS/2 can only load a DLL with a base name of 8 characters or less. 12077 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12078 v=$($ECHO $release$versuffix | tr -d .-); 12079 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12080 $ECHO $n$v`$shared_ext' 12081 library_names_spec='${libname}_dll.$libext' 12082 dynamic_linker='OS/2 ld.exe' 12083 shlibpath_var=BEGINLIBPATH 12084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12086 postinstall_cmds='base_file=`basename \$file`~ 12087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12088 dldir=$destdir/`dirname \$dlpath`~ 12089 test -d \$dldir || mkdir -p \$dldir~ 12090 $install_prog $dir/$dlname \$dldir/$dlname~ 12091 chmod a+x \$dldir/$dlname~ 12092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12094 fi' 12095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12096 dlpath=$dir/\$dldll~ 12097 $RM \$dlpath' 12098 ;; 12099 12100osf3* | osf4* | osf5*) 12101 version_type=osf 12102 need_lib_prefix=no 12103 need_version=no 12104 soname_spec='$libname$release$shared_ext$major' 12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12106 shlibpath_var=LD_LIBRARY_PATH 12107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12109 ;; 12110 12111rdos*) 12112 dynamic_linker=no 12113 ;; 12114 12115solaris*) 12116 version_type=linux # correct to gnu/linux during the next big refactor 12117 need_lib_prefix=no 12118 need_version=no 12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12120 soname_spec='$libname$release$shared_ext$major' 12121 shlibpath_var=LD_LIBRARY_PATH 12122 shlibpath_overrides_runpath=yes 12123 hardcode_into_libs=yes 12124 # ldd complains unless libraries are executable 12125 postinstall_cmds='chmod +x $lib' 12126 ;; 12127 12128sunos4*) 12129 version_type=sunos 12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12132 shlibpath_var=LD_LIBRARY_PATH 12133 shlibpath_overrides_runpath=yes 12134 if test yes = "$with_gnu_ld"; then 12135 need_lib_prefix=no 12136 fi 12137 need_version=yes 12138 ;; 12139 12140sysv4 | sysv4.3*) 12141 version_type=linux # correct to gnu/linux during the next big refactor 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12143 soname_spec='$libname$release$shared_ext$major' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 case $host_vendor in 12146 sni) 12147 shlibpath_overrides_runpath=no 12148 need_lib_prefix=no 12149 runpath_var=LD_RUN_PATH 12150 ;; 12151 siemens) 12152 need_lib_prefix=no 12153 ;; 12154 motorola) 12155 need_lib_prefix=no 12156 need_version=no 12157 shlibpath_overrides_runpath=no 12158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12159 ;; 12160 esac 12161 ;; 12162 12163sysv4*MP*) 12164 if test -d /usr/nec; then 12165 version_type=linux # correct to gnu/linux during the next big refactor 12166 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12167 soname_spec='$libname$shared_ext.$major' 12168 shlibpath_var=LD_LIBRARY_PATH 12169 fi 12170 ;; 12171 12172sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12173 version_type=sco 12174 need_lib_prefix=no 12175 need_version=no 12176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12177 soname_spec='$libname$release$shared_ext$major' 12178 shlibpath_var=LD_LIBRARY_PATH 12179 shlibpath_overrides_runpath=yes 12180 hardcode_into_libs=yes 12181 if test yes = "$with_gnu_ld"; then 12182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12183 else 12184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12185 case $host_os in 12186 sco3.2v5*) 12187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12188 ;; 12189 esac 12190 fi 12191 sys_lib_dlsearch_path_spec='/usr/lib' 12192 ;; 12193 12194tpf*) 12195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12196 version_type=linux # correct to gnu/linux during the next big refactor 12197 need_lib_prefix=no 12198 need_version=no 12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 shlibpath_overrides_runpath=no 12202 hardcode_into_libs=yes 12203 ;; 12204 12205uts4*) 12206 version_type=linux # correct to gnu/linux during the next big refactor 12207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12208 soname_spec='$libname$release$shared_ext$major' 12209 shlibpath_var=LD_LIBRARY_PATH 12210 ;; 12211 12212*) 12213 dynamic_linker=no 12214 ;; 12215esac 12216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12217printf "%s\n" "$dynamic_linker" >&6; } 12218test no = "$dynamic_linker" && can_build_shared=no 12219 12220variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12221if test yes = "$GCC"; then 12222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12223fi 12224 12225if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12226 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12227fi 12228 12229if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12230 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12231fi 12232 12233# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12234configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12235 12236# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12237func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12238 12239# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12240configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12339printf %s "checking how to hardcode library paths into programs... " >&6; } 12340hardcode_action= 12341if test -n "$hardcode_libdir_flag_spec" || 12342 test -n "$runpath_var" || 12343 test yes = "$hardcode_automatic"; then 12344 12345 # We can hardcode non-existent directories. 12346 if test no != "$hardcode_direct" && 12347 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12348 # have to relink, otherwise we might link with an installed library 12349 # when we should be linking with a yet-to-be-installed one 12350 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12351 test no != "$hardcode_minus_L"; then 12352 # Linking always hardcodes the temporary library directory. 12353 hardcode_action=relink 12354 else 12355 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12356 hardcode_action=immediate 12357 fi 12358else 12359 # We cannot hardcode anything, or else we can only hardcode existing 12360 # directories. 12361 hardcode_action=unsupported 12362fi 12363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12364printf "%s\n" "$hardcode_action" >&6; } 12365 12366if test relink = "$hardcode_action" || 12367 test yes = "$inherit_rpath"; then 12368 # Fast installation is not supported 12369 enable_fast_install=no 12370elif test yes = "$shlibpath_overrides_runpath" || 12371 test no = "$enable_shared"; then 12372 # Fast installation is not necessary 12373 enable_fast_install=needless 12374fi 12375 12376 12377 12378 12379 12380 12381 if test yes != "$enable_dlopen"; then 12382 enable_dlopen=unknown 12383 enable_dlopen_self=unknown 12384 enable_dlopen_self_static=unknown 12385else 12386 lt_cv_dlopen=no 12387 lt_cv_dlopen_libs= 12388 12389 case $host_os in 12390 beos*) 12391 lt_cv_dlopen=load_add_on 12392 lt_cv_dlopen_libs= 12393 lt_cv_dlopen_self=yes 12394 ;; 12395 12396 mingw* | pw32* | cegcc*) 12397 lt_cv_dlopen=LoadLibrary 12398 lt_cv_dlopen_libs= 12399 ;; 12400 12401 cygwin*) 12402 lt_cv_dlopen=dlopen 12403 lt_cv_dlopen_libs= 12404 ;; 12405 12406 darwin*) 12407 # if libdl is installed we need to link against it 12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12409printf %s "checking for dlopen in -ldl... " >&6; } 12410if test ${ac_cv_lib_dl_dlopen+y} 12411then : 12412 printf %s "(cached) " >&6 12413else case e in #( 12414 e) ac_check_lib_save_LIBS=$LIBS 12415LIBS="-ldl $LIBS" 12416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417/* end confdefs.h. */ 12418 12419/* Override any GCC internal prototype to avoid an error. 12420 Use char because int might match the return type of a GCC 12421 builtin and then its argument prototype would still apply. 12422 The 'extern "C"' is for builds by C++ compilers; 12423 although this is not generally supported in C code supporting it here 12424 has little cost and some practical benefit (sr 110532). */ 12425#ifdef __cplusplus 12426extern "C" 12427#endif 12428char dlopen (void); 12429int 12430main (void) 12431{ 12432return dlopen (); 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437if ac_fn_c_try_link "$LINENO" 12438then : 12439 ac_cv_lib_dl_dlopen=yes 12440else case e in #( 12441 e) ac_cv_lib_dl_dlopen=no ;; 12442esac 12443fi 12444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12445 conftest$ac_exeext conftest.$ac_ext 12446LIBS=$ac_check_lib_save_LIBS ;; 12447esac 12448fi 12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12450printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12451if test "x$ac_cv_lib_dl_dlopen" = xyes 12452then : 12453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12454else case e in #( 12455 e) 12456 lt_cv_dlopen=dyld 12457 lt_cv_dlopen_libs= 12458 lt_cv_dlopen_self=yes 12459 ;; 12460esac 12461fi 12462 12463 ;; 12464 12465 tpf*) 12466 # Don't try to run any link tests for TPF. We know it's impossible 12467 # because TPF is a cross-compiler, and we know how we open DSOs. 12468 lt_cv_dlopen=dlopen 12469 lt_cv_dlopen_libs= 12470 lt_cv_dlopen_self=no 12471 ;; 12472 12473 *) 12474 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12475if test "x$ac_cv_func_shl_load" = xyes 12476then : 12477 lt_cv_dlopen=shl_load 12478else case e in #( 12479 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12480printf %s "checking for shl_load in -ldld... " >&6; } 12481if test ${ac_cv_lib_dld_shl_load+y} 12482then : 12483 printf %s "(cached) " >&6 12484else case e in #( 12485 e) ac_check_lib_save_LIBS=$LIBS 12486LIBS="-ldld $LIBS" 12487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489 12490/* Override any GCC internal prototype to avoid an error. 12491 Use char because int might match the return type of a GCC 12492 builtin and then its argument prototype would still apply. 12493 The 'extern "C"' is for builds by C++ compilers; 12494 although this is not generally supported in C code supporting it here 12495 has little cost and some practical benefit (sr 110532). */ 12496#ifdef __cplusplus 12497extern "C" 12498#endif 12499char shl_load (void); 12500int 12501main (void) 12502{ 12503return shl_load (); 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508if ac_fn_c_try_link "$LINENO" 12509then : 12510 ac_cv_lib_dld_shl_load=yes 12511else case e in #( 12512 e) ac_cv_lib_dld_shl_load=no ;; 12513esac 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12516 conftest$ac_exeext conftest.$ac_ext 12517LIBS=$ac_check_lib_save_LIBS ;; 12518esac 12519fi 12520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12521printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12522if test "x$ac_cv_lib_dld_shl_load" = xyes 12523then : 12524 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12525else case e in #( 12526 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12527if test "x$ac_cv_func_dlopen" = xyes 12528then : 12529 lt_cv_dlopen=dlopen 12530else case e in #( 12531 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12532printf %s "checking for dlopen in -ldl... " >&6; } 12533if test ${ac_cv_lib_dl_dlopen+y} 12534then : 12535 printf %s "(cached) " >&6 12536else case e in #( 12537 e) ac_check_lib_save_LIBS=$LIBS 12538LIBS="-ldl $LIBS" 12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542/* Override any GCC internal prototype to avoid an error. 12543 Use char because int might match the return type of a GCC 12544 builtin and then its argument prototype would still apply. 12545 The 'extern "C"' is for builds by C++ compilers; 12546 although this is not generally supported in C code supporting it here 12547 has little cost and some practical benefit (sr 110532). */ 12548#ifdef __cplusplus 12549extern "C" 12550#endif 12551char dlopen (void); 12552int 12553main (void) 12554{ 12555return dlopen (); 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO" 12561then : 12562 ac_cv_lib_dl_dlopen=yes 12563else case e in #( 12564 e) ac_cv_lib_dl_dlopen=no ;; 12565esac 12566fi 12567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12568 conftest$ac_exeext conftest.$ac_ext 12569LIBS=$ac_check_lib_save_LIBS ;; 12570esac 12571fi 12572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12573printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12574if test "x$ac_cv_lib_dl_dlopen" = xyes 12575then : 12576 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12577else case e in #( 12578 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12579printf %s "checking for dlopen in -lsvld... " >&6; } 12580if test ${ac_cv_lib_svld_dlopen+y} 12581then : 12582 printf %s "(cached) " >&6 12583else case e in #( 12584 e) ac_check_lib_save_LIBS=$LIBS 12585LIBS="-lsvld $LIBS" 12586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588 12589/* Override any GCC internal prototype to avoid an error. 12590 Use char because int might match the return type of a GCC 12591 builtin and then its argument prototype would still apply. 12592 The 'extern "C"' is for builds by C++ compilers; 12593 although this is not generally supported in C code supporting it here 12594 has little cost and some practical benefit (sr 110532). */ 12595#ifdef __cplusplus 12596extern "C" 12597#endif 12598char dlopen (void); 12599int 12600main (void) 12601{ 12602return dlopen (); 12603 ; 12604 return 0; 12605} 12606_ACEOF 12607if ac_fn_c_try_link "$LINENO" 12608then : 12609 ac_cv_lib_svld_dlopen=yes 12610else case e in #( 12611 e) ac_cv_lib_svld_dlopen=no ;; 12612esac 12613fi 12614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12615 conftest$ac_exeext conftest.$ac_ext 12616LIBS=$ac_check_lib_save_LIBS ;; 12617esac 12618fi 12619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12620printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12621if test "x$ac_cv_lib_svld_dlopen" = xyes 12622then : 12623 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12624else case e in #( 12625 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12626printf %s "checking for dld_link in -ldld... " >&6; } 12627if test ${ac_cv_lib_dld_dld_link+y} 12628then : 12629 printf %s "(cached) " >&6 12630else case e in #( 12631 e) ac_check_lib_save_LIBS=$LIBS 12632LIBS="-ldld $LIBS" 12633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12634/* end confdefs.h. */ 12635 12636/* Override any GCC internal prototype to avoid an error. 12637 Use char because int might match the return type of a GCC 12638 builtin and then its argument prototype would still apply. 12639 The 'extern "C"' is for builds by C++ compilers; 12640 although this is not generally supported in C code supporting it here 12641 has little cost and some practical benefit (sr 110532). */ 12642#ifdef __cplusplus 12643extern "C" 12644#endif 12645char dld_link (void); 12646int 12647main (void) 12648{ 12649return dld_link (); 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_link "$LINENO" 12655then : 12656 ac_cv_lib_dld_dld_link=yes 12657else case e in #( 12658 e) ac_cv_lib_dld_dld_link=no ;; 12659esac 12660fi 12661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12662 conftest$ac_exeext conftest.$ac_ext 12663LIBS=$ac_check_lib_save_LIBS ;; 12664esac 12665fi 12666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12667printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12668if test "x$ac_cv_lib_dld_dld_link" = xyes 12669then : 12670 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12671fi 12672 12673 ;; 12674esac 12675fi 12676 12677 ;; 12678esac 12679fi 12680 12681 ;; 12682esac 12683fi 12684 12685 ;; 12686esac 12687fi 12688 12689 ;; 12690esac 12691fi 12692 12693 ;; 12694 esac 12695 12696 if test no = "$lt_cv_dlopen"; then 12697 enable_dlopen=no 12698 else 12699 enable_dlopen=yes 12700 fi 12701 12702 case $lt_cv_dlopen in 12703 dlopen) 12704 save_CPPFLAGS=$CPPFLAGS 12705 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12706 12707 save_LDFLAGS=$LDFLAGS 12708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12709 12710 save_LIBS=$LIBS 12711 LIBS="$lt_cv_dlopen_libs $LIBS" 12712 12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12714printf %s "checking whether a program can dlopen itself... " >&6; } 12715if test ${lt_cv_dlopen_self+y} 12716then : 12717 printf %s "(cached) " >&6 12718else case e in #( 12719 e) if test yes = "$cross_compiling"; then : 12720 lt_cv_dlopen_self=cross 12721else 12722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12723 lt_status=$lt_dlunknown 12724 cat > conftest.$ac_ext <<_LT_EOF 12725#line $LINENO "configure" 12726#include "confdefs.h" 12727 12728#if HAVE_DLFCN_H 12729#include <dlfcn.h> 12730#endif 12731 12732#include <stdio.h> 12733 12734#ifdef RTLD_GLOBAL 12735# define LT_DLGLOBAL RTLD_GLOBAL 12736#else 12737# ifdef DL_GLOBAL 12738# define LT_DLGLOBAL DL_GLOBAL 12739# else 12740# define LT_DLGLOBAL 0 12741# endif 12742#endif 12743 12744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12745 find out it does not work in some platform. */ 12746#ifndef LT_DLLAZY_OR_NOW 12747# ifdef RTLD_LAZY 12748# define LT_DLLAZY_OR_NOW RTLD_LAZY 12749# else 12750# ifdef DL_LAZY 12751# define LT_DLLAZY_OR_NOW DL_LAZY 12752# else 12753# ifdef RTLD_NOW 12754# define LT_DLLAZY_OR_NOW RTLD_NOW 12755# else 12756# ifdef DL_NOW 12757# define LT_DLLAZY_OR_NOW DL_NOW 12758# else 12759# define LT_DLLAZY_OR_NOW 0 12760# endif 12761# endif 12762# endif 12763# endif 12764#endif 12765 12766/* When -fvisibility=hidden is used, assume the code has been annotated 12767 correspondingly for the symbols needed. */ 12768#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12769int fnord () __attribute__((visibility("default"))); 12770#endif 12771 12772int fnord () { return 42; } 12773int main () 12774{ 12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12776 int status = $lt_dlunknown; 12777 12778 if (self) 12779 { 12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12781 else 12782 { 12783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12784 else puts (dlerror ()); 12785 } 12786 /* dlclose (self); */ 12787 } 12788 else 12789 puts (dlerror ()); 12790 12791 return status; 12792} 12793_LT_EOF 12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12795 (eval $ac_link) 2>&5 12796 ac_status=$? 12797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12798 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12799 (./conftest; exit; ) >&5 2>/dev/null 12800 lt_status=$? 12801 case x$lt_status in 12802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12804 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12805 esac 12806 else : 12807 # compilation failed 12808 lt_cv_dlopen_self=no 12809 fi 12810fi 12811rm -fr conftest* 12812 12813 ;; 12814esac 12815fi 12816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12817printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12818 12819 if test yes = "$lt_cv_dlopen_self"; then 12820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12822printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12823if test ${lt_cv_dlopen_self_static+y} 12824then : 12825 printf %s "(cached) " >&6 12826else case e in #( 12827 e) if test yes = "$cross_compiling"; then : 12828 lt_cv_dlopen_self_static=cross 12829else 12830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12831 lt_status=$lt_dlunknown 12832 cat > conftest.$ac_ext <<_LT_EOF 12833#line $LINENO "configure" 12834#include "confdefs.h" 12835 12836#if HAVE_DLFCN_H 12837#include <dlfcn.h> 12838#endif 12839 12840#include <stdio.h> 12841 12842#ifdef RTLD_GLOBAL 12843# define LT_DLGLOBAL RTLD_GLOBAL 12844#else 12845# ifdef DL_GLOBAL 12846# define LT_DLGLOBAL DL_GLOBAL 12847# else 12848# define LT_DLGLOBAL 0 12849# endif 12850#endif 12851 12852/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12853 find out it does not work in some platform. */ 12854#ifndef LT_DLLAZY_OR_NOW 12855# ifdef RTLD_LAZY 12856# define LT_DLLAZY_OR_NOW RTLD_LAZY 12857# else 12858# ifdef DL_LAZY 12859# define LT_DLLAZY_OR_NOW DL_LAZY 12860# else 12861# ifdef RTLD_NOW 12862# define LT_DLLAZY_OR_NOW RTLD_NOW 12863# else 12864# ifdef DL_NOW 12865# define LT_DLLAZY_OR_NOW DL_NOW 12866# else 12867# define LT_DLLAZY_OR_NOW 0 12868# endif 12869# endif 12870# endif 12871# endif 12872#endif 12873 12874/* When -fvisibility=hidden is used, assume the code has been annotated 12875 correspondingly for the symbols needed. */ 12876#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12877int fnord () __attribute__((visibility("default"))); 12878#endif 12879 12880int fnord () { return 42; } 12881int main () 12882{ 12883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12884 int status = $lt_dlunknown; 12885 12886 if (self) 12887 { 12888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12889 else 12890 { 12891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12892 else puts (dlerror ()); 12893 } 12894 /* dlclose (self); */ 12895 } 12896 else 12897 puts (dlerror ()); 12898 12899 return status; 12900} 12901_LT_EOF 12902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12903 (eval $ac_link) 2>&5 12904 ac_status=$? 12905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12906 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12907 (./conftest; exit; ) >&5 2>/dev/null 12908 lt_status=$? 12909 case x$lt_status in 12910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12912 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12913 esac 12914 else : 12915 # compilation failed 12916 lt_cv_dlopen_self_static=no 12917 fi 12918fi 12919rm -fr conftest* 12920 12921 ;; 12922esac 12923fi 12924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12925printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12926 fi 12927 12928 CPPFLAGS=$save_CPPFLAGS 12929 LDFLAGS=$save_LDFLAGS 12930 LIBS=$save_LIBS 12931 ;; 12932 esac 12933 12934 case $lt_cv_dlopen_self in 12935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12936 *) enable_dlopen_self=unknown ;; 12937 esac 12938 12939 case $lt_cv_dlopen_self_static in 12940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12941 *) enable_dlopen_self_static=unknown ;; 12942 esac 12943fi 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961striplib= 12962old_striplib= 12963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12964printf %s "checking whether stripping libraries is possible... " >&6; } 12965if test -z "$STRIP"; then 12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12967printf "%s\n" "no" >&6; } 12968else 12969 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12970 old_striplib="$STRIP --strip-debug" 12971 striplib="$STRIP --strip-unneeded" 12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12973printf "%s\n" "yes" >&6; } 12974 else 12975 case $host_os in 12976 darwin*) 12977 # FIXME - insert some real tests, host_os isn't really good enough 12978 striplib="$STRIP -x" 12979 old_striplib="$STRIP -S" 12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12981printf "%s\n" "yes" >&6; } 12982 ;; 12983 freebsd*) 12984 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12985 old_striplib="$STRIP --strip-debug" 12986 striplib="$STRIP --strip-unneeded" 12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12988printf "%s\n" "yes" >&6; } 12989 else 12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12991printf "%s\n" "no" >&6; } 12992 fi 12993 ;; 12994 *) 12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12996printf "%s\n" "no" >&6; } 12997 ;; 12998 esac 12999 fi 13000fi 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 # Report what library types will actually be built 13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13015printf %s "checking if libtool supports shared libraries... " >&6; } 13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13017printf "%s\n" "$can_build_shared" >&6; } 13018 13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13020printf %s "checking whether to build shared libraries... " >&6; } 13021 test no = "$can_build_shared" && enable_shared=no 13022 13023 # On AIX, shared libraries and static libraries use the same namespace, and 13024 # are all built from PIC. 13025 case $host_os in 13026 aix3*) 13027 test yes = "$enable_shared" && enable_static=no 13028 if test -n "$RANLIB"; then 13029 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13030 postinstall_cmds='$RANLIB $lib' 13031 fi 13032 ;; 13033 13034 aix[4-9]*) 13035 if test ia64 != "$host_cpu"; then 13036 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13037 yes,aix,yes) ;; # shared object as lib.so file only 13038 yes,svr4,*) ;; # shared object as lib.so archive member only 13039 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13040 esac 13041 fi 13042 ;; 13043 esac 13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13045printf "%s\n" "$enable_shared" >&6; } 13046 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13048printf %s "checking whether to build static libraries... " >&6; } 13049 # Make sure either enable_shared or enable_static is yes. 13050 test yes = "$enable_shared" || enable_static=yes 13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13052printf "%s\n" "$enable_static" >&6; } 13053 13054 13055 13056 13057fi 13058ac_ext=c 13059ac_cpp='$CPP $CPPFLAGS' 13060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13062ac_compiler_gnu=$ac_cv_c_compiler_gnu 13063 13064CC=$lt_save_CC 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 ac_config_commands="$ac_config_commands libtool" 13081 13082 13083 13084 13085# Only expand once: 13086 13087 13088 13089# Require xorg-macros minimum of 1.12 for DocBook external references 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13102printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13103if test ${ac_cv_c_undeclared_builtin_options+y} 13104then : 13105 printf %s "(cached) " >&6 13106else case e in #( 13107 e) ac_save_CFLAGS=$CFLAGS 13108 ac_cv_c_undeclared_builtin_options='cannot detect' 13109 for ac_arg in '' -fno-builtin; do 13110 CFLAGS="$ac_save_CFLAGS $ac_arg" 13111 # This test program should *not* compile successfully. 13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113/* end confdefs.h. */ 13114 13115int 13116main (void) 13117{ 13118(void) strchr; 13119 ; 13120 return 0; 13121} 13122_ACEOF 13123if ac_fn_c_try_compile "$LINENO" 13124then : 13125 13126else case e in #( 13127 e) # This test program should compile successfully. 13128 # No library function is consistently available on 13129 # freestanding implementations, so test against a dummy 13130 # declaration. Include always-available headers on the 13131 # off chance that they somehow elicit warnings. 13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13133/* end confdefs.h. */ 13134#include <float.h> 13135#include <limits.h> 13136#include <stdarg.h> 13137#include <stddef.h> 13138extern void ac_decl (int, char *); 13139 13140int 13141main (void) 13142{ 13143(void) ac_decl (0, (char *) 0); 13144 (void) ac_decl; 13145 13146 ; 13147 return 0; 13148} 13149_ACEOF 13150if ac_fn_c_try_compile "$LINENO" 13151then : 13152 if test x"$ac_arg" = x 13153then : 13154 ac_cv_c_undeclared_builtin_options='none needed' 13155else case e in #( 13156 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13157esac 13158fi 13159 break 13160fi 13161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13162esac 13163fi 13164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13165 done 13166 CFLAGS=$ac_save_CFLAGS 13167 ;; 13168esac 13169fi 13170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13171printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13172 case $ac_cv_c_undeclared_builtin_options in #( 13173 'cannot detect') : 13174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13175printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13176as_fn_error $? "cannot make $CC report undeclared builtins 13177See 'config.log' for more details" "$LINENO" 5; } ;; #( 13178 'none needed') : 13179 ac_c_undeclared_builtin_options='' ;; #( 13180 *) : 13181 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13182esac 13183 13184 13185 13186 13187 13188ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13189if test "x$ac_cv_have_decl___clang__" = xyes 13190then : 13191 CLANGCC="yes" 13192else case e in #( 13193 e) CLANGCC="no" ;; 13194esac 13195fi 13196ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13197if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13198then : 13199 INTELCC="yes" 13200else case e in #( 13201 e) INTELCC="no" ;; 13202esac 13203fi 13204ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13205if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13206then : 13207 SUNCC="yes" 13208else case e in #( 13209 e) SUNCC="no" ;; 13210esac 13211fi 13212 13213 13214 13215 13216 13217 13218 13219 13220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13221 if test -n "$ac_tool_prefix"; then 13222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13225printf %s "checking for $ac_word... " >&6; } 13226if test ${ac_cv_path_PKG_CONFIG+y} 13227then : 13228 printf %s "(cached) " >&6 13229else case e in #( 13230 e) case $PKG_CONFIG in 13231 [\\/]* | ?:[\\/]*) 13232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13233 ;; 13234 *) 13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13236for as_dir in $PATH 13237do 13238 IFS=$as_save_IFS 13239 case $as_dir in #((( 13240 '') as_dir=./ ;; 13241 */) ;; 13242 *) as_dir=$as_dir/ ;; 13243 esac 13244 for ac_exec_ext in '' $ac_executable_extensions; do 13245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13246 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13248 break 2 13249 fi 13250done 13251 done 13252IFS=$as_save_IFS 13253 13254 ;; 13255esac ;; 13256esac 13257fi 13258PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13259if test -n "$PKG_CONFIG"; then 13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13261printf "%s\n" "$PKG_CONFIG" >&6; } 13262else 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13264printf "%s\n" "no" >&6; } 13265fi 13266 13267 13268fi 13269if test -z "$ac_cv_path_PKG_CONFIG"; then 13270 ac_pt_PKG_CONFIG=$PKG_CONFIG 13271 # Extract the first word of "pkg-config", so it can be a program name with args. 13272set dummy pkg-config; ac_word=$2 13273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13274printf %s "checking for $ac_word... " >&6; } 13275if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13276then : 13277 printf %s "(cached) " >&6 13278else case e in #( 13279 e) case $ac_pt_PKG_CONFIG in 13280 [\\/]* | ?:[\\/]*) 13281 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13282 ;; 13283 *) 13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13285for as_dir in $PATH 13286do 13287 IFS=$as_save_IFS 13288 case $as_dir in #((( 13289 '') as_dir=./ ;; 13290 */) ;; 13291 *) as_dir=$as_dir/ ;; 13292 esac 13293 for ac_exec_ext in '' $ac_executable_extensions; do 13294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13295 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13297 break 2 13298 fi 13299done 13300 done 13301IFS=$as_save_IFS 13302 13303 ;; 13304esac ;; 13305esac 13306fi 13307ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13308if test -n "$ac_pt_PKG_CONFIG"; then 13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13310printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13311else 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13313printf "%s\n" "no" >&6; } 13314fi 13315 13316 if test "x$ac_pt_PKG_CONFIG" = x; then 13317 PKG_CONFIG="" 13318 else 13319 case $cross_compiling:$ac_tool_warned in 13320yes:) 13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13322printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13323ac_tool_warned=yes ;; 13324esac 13325 PKG_CONFIG=$ac_pt_PKG_CONFIG 13326 fi 13327else 13328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13329fi 13330 13331fi 13332if test -n "$PKG_CONFIG"; then 13333 _pkg_min_version=0.9.0 13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13335printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13338printf "%s\n" "yes" >&6; } 13339 else 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13341printf "%s\n" "no" >&6; } 13342 PKG_CONFIG="" 13343 fi 13344fi 13345 13346 13347 13348 13349 13350# Check whether --enable-selective-werror was given. 13351if test ${enable_selective_werror+y} 13352then : 13353 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13354else case e in #( 13355 e) SELECTIVE_WERROR=yes ;; 13356esac 13357fi 13358 13359 13360 13361 13362 13363# -v is too short to test reliably with XORG_TESTSET_CFLAG 13364if test "x$SUNCC" = "xyes"; then 13365 BASE_CFLAGS="-v" 13366else 13367 BASE_CFLAGS="" 13368fi 13369 13370# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384xorg_testset_save_CFLAGS="$CFLAGS" 13385 13386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13390if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13391then : 13392 printf %s "(cached) " >&6 13393else case e in #( 13394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13395/* end confdefs.h. */ 13396int i; 13397_ACEOF 13398if ac_fn_c_try_compile "$LINENO" 13399then : 13400 xorg_cv_cc_flag_unknown_warning_option=yes 13401else case e in #( 13402 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13403esac 13404fi 13405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13406esac 13407fi 13408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13409printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13411 CFLAGS="$xorg_testset_save_CFLAGS" 13412fi 13413 13414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13417 fi 13418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13420printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13421if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13422then : 13423 printf %s "(cached) " >&6 13424else case e in #( 13425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427int i; 13428_ACEOF 13429if ac_fn_c_try_compile "$LINENO" 13430then : 13431 xorg_cv_cc_flag_unused_command_line_argument=yes 13432else case e in #( 13433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13434esac 13435fi 13436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13437esac 13438fi 13439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13442 CFLAGS="$xorg_testset_save_CFLAGS" 13443fi 13444 13445found="no" 13446 13447 if test $found = "no" ; then 13448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13450 fi 13451 13452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13454 fi 13455 13456 CFLAGS="$CFLAGS -Wall" 13457 13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13459printf %s "checking if $CC supports -Wall... " >&6; } 13460 cacheid=xorg_cv_cc_flag__Wall 13461 if eval test \${$cacheid+y} 13462then : 13463 printf %s "(cached) " >&6 13464else case e in #( 13465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13466/* end confdefs.h. */ 13467int i; 13468int 13469main (void) 13470{ 13471 13472 ; 13473 return 0; 13474} 13475_ACEOF 13476if ac_fn_c_try_link "$LINENO" 13477then : 13478 eval $cacheid=yes 13479else case e in #( 13480 e) eval $cacheid=no ;; 13481esac 13482fi 13483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13484 conftest$ac_exeext conftest.$ac_ext ;; 13485esac 13486fi 13487 13488 13489 CFLAGS="$xorg_testset_save_CFLAGS" 13490 13491 eval supported=\$$cacheid 13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13493printf "%s\n" "$supported" >&6; } 13494 if test "$supported" = "yes" ; then 13495 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13496 found="yes" 13497 fi 13498 fi 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514xorg_testset_save_CFLAGS="$CFLAGS" 13515 13516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13520if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13521then : 13522 printf %s "(cached) " >&6 13523else case e in #( 13524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526int i; 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO" 13529then : 13530 xorg_cv_cc_flag_unknown_warning_option=yes 13531else case e in #( 13532 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13533esac 13534fi 13535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13536esac 13537fi 13538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13541 CFLAGS="$xorg_testset_save_CFLAGS" 13542fi 13543 13544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 fi 13548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13551if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13552then : 13553 printf %s "(cached) " >&6 13554else case e in #( 13555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13556/* end confdefs.h. */ 13557int i; 13558_ACEOF 13559if ac_fn_c_try_compile "$LINENO" 13560then : 13561 xorg_cv_cc_flag_unused_command_line_argument=yes 13562else case e in #( 13563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13564esac 13565fi 13566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13567esac 13568fi 13569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575found="no" 13576 13577 if test $found = "no" ; then 13578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13580 fi 13581 13582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13584 fi 13585 13586 CFLAGS="$CFLAGS -Wpointer-arith" 13587 13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13589printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13590 cacheid=xorg_cv_cc_flag__Wpointer_arith 13591 if eval test \${$cacheid+y} 13592then : 13593 printf %s "(cached) " >&6 13594else case e in #( 13595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13596/* end confdefs.h. */ 13597int i; 13598int 13599main (void) 13600{ 13601 13602 ; 13603 return 0; 13604} 13605_ACEOF 13606if ac_fn_c_try_link "$LINENO" 13607then : 13608 eval $cacheid=yes 13609else case e in #( 13610 e) eval $cacheid=no ;; 13611esac 13612fi 13613rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13614 conftest$ac_exeext conftest.$ac_ext ;; 13615esac 13616fi 13617 13618 13619 CFLAGS="$xorg_testset_save_CFLAGS" 13620 13621 eval supported=\$$cacheid 13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13623printf "%s\n" "$supported" >&6; } 13624 if test "$supported" = "yes" ; then 13625 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13626 found="yes" 13627 fi 13628 fi 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644xorg_testset_save_CFLAGS="$CFLAGS" 13645 13646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13650if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13651then : 13652 printf %s "(cached) " >&6 13653else case e in #( 13654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655/* end confdefs.h. */ 13656int i; 13657_ACEOF 13658if ac_fn_c_try_compile "$LINENO" 13659then : 13660 xorg_cv_cc_flag_unknown_warning_option=yes 13661else case e in #( 13662 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13663esac 13664fi 13665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13666esac 13667fi 13668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13671 CFLAGS="$xorg_testset_save_CFLAGS" 13672fi 13673 13674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13677 fi 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13681if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13682then : 13683 printf %s "(cached) " >&6 13684else case e in #( 13685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13686/* end confdefs.h. */ 13687int i; 13688_ACEOF 13689if ac_fn_c_try_compile "$LINENO" 13690then : 13691 xorg_cv_cc_flag_unused_command_line_argument=yes 13692else case e in #( 13693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13694esac 13695fi 13696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13697esac 13698fi 13699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13702 CFLAGS="$xorg_testset_save_CFLAGS" 13703fi 13704 13705found="no" 13706 13707 if test $found = "no" ; then 13708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13710 fi 13711 13712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13714 fi 13715 13716 CFLAGS="$CFLAGS -Wmissing-declarations" 13717 13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13719printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13720 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13721 if eval test \${$cacheid+y} 13722then : 13723 printf %s "(cached) " >&6 13724else case e in #( 13725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13726/* end confdefs.h. */ 13727int i; 13728int 13729main (void) 13730{ 13731 13732 ; 13733 return 0; 13734} 13735_ACEOF 13736if ac_fn_c_try_link "$LINENO" 13737then : 13738 eval $cacheid=yes 13739else case e in #( 13740 e) eval $cacheid=no ;; 13741esac 13742fi 13743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13744 conftest$ac_exeext conftest.$ac_ext ;; 13745esac 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 -Wmissing-declarations" 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 case e in #( 13784 e) 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 case e in #( 13792 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13793esac 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13796esac 13797fi 13798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13801 CFLAGS="$xorg_testset_save_CFLAGS" 13802fi 13803 13804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13807 fi 13808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13811if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13812then : 13813 printf %s "(cached) " >&6 13814else case e in #( 13815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13816/* end confdefs.h. */ 13817int i; 13818_ACEOF 13819if ac_fn_c_try_compile "$LINENO" 13820then : 13821 xorg_cv_cc_flag_unused_command_line_argument=yes 13822else case e in #( 13823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13824esac 13825fi 13826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13827esac 13828fi 13829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13830printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13832 CFLAGS="$xorg_testset_save_CFLAGS" 13833fi 13834 13835found="no" 13836 13837 if test $found = "no" ; then 13838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13840 fi 13841 13842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13844 fi 13845 13846 CFLAGS="$CFLAGS -Wformat=2" 13847 13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13849printf %s "checking if $CC supports -Wformat=2... " >&6; } 13850 cacheid=xorg_cv_cc_flag__Wformat_2 13851 if eval test \${$cacheid+y} 13852then : 13853 printf %s "(cached) " >&6 13854else case e in #( 13855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13856/* end confdefs.h. */ 13857int i; 13858int 13859main (void) 13860{ 13861 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866if ac_fn_c_try_link "$LINENO" 13867then : 13868 eval $cacheid=yes 13869else case e in #( 13870 e) eval $cacheid=no ;; 13871esac 13872fi 13873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13874 conftest$ac_exeext conftest.$ac_ext ;; 13875esac 13876fi 13877 13878 13879 CFLAGS="$xorg_testset_save_CFLAGS" 13880 13881 eval supported=\$$cacheid 13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13883printf "%s\n" "$supported" >&6; } 13884 if test "$supported" = "yes" ; then 13885 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13886 found="yes" 13887 fi 13888 fi 13889 13890 if test $found = "no" ; then 13891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13893 fi 13894 13895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13897 fi 13898 13899 CFLAGS="$CFLAGS -Wformat" 13900 13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13902printf %s "checking if $CC supports -Wformat... " >&6; } 13903 cacheid=xorg_cv_cc_flag__Wformat 13904 if eval test \${$cacheid+y} 13905then : 13906 printf %s "(cached) " >&6 13907else case e in #( 13908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910int i; 13911int 13912main (void) 13913{ 13914 13915 ; 13916 return 0; 13917} 13918_ACEOF 13919if ac_fn_c_try_link "$LINENO" 13920then : 13921 eval $cacheid=yes 13922else case e in #( 13923 e) eval $cacheid=no ;; 13924esac 13925fi 13926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13927 conftest$ac_exeext conftest.$ac_ext ;; 13928esac 13929fi 13930 13931 13932 CFLAGS="$xorg_testset_save_CFLAGS" 13933 13934 eval supported=\$$cacheid 13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13936printf "%s\n" "$supported" >&6; } 13937 if test "$supported" = "yes" ; then 13938 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13939 found="yes" 13940 fi 13941 fi 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959xorg_testset_save_CFLAGS="$CFLAGS" 13960 13961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13966then : 13967 printf %s "(cached) " >&6 13968else case e in #( 13969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971int i; 13972_ACEOF 13973if ac_fn_c_try_compile "$LINENO" 13974then : 13975 xorg_cv_cc_flag_unknown_warning_option=yes 13976else case e in #( 13977 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13978esac 13979fi 13980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13981esac 13982fi 13983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13986 CFLAGS="$xorg_testset_save_CFLAGS" 13987fi 13988 13989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13992 fi 13993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13996if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13997then : 13998 printf %s "(cached) " >&6 13999else case e in #( 14000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14001/* end confdefs.h. */ 14002int i; 14003_ACEOF 14004if ac_fn_c_try_compile "$LINENO" 14005then : 14006 xorg_cv_cc_flag_unused_command_line_argument=yes 14007else case e in #( 14008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14009esac 14010fi 14011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14012esac 14013fi 14014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14017 CFLAGS="$xorg_testset_save_CFLAGS" 14018fi 14019 14020found="no" 14021 14022 if test $found = "no" ; then 14023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14025 fi 14026 14027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14029 fi 14030 14031 CFLAGS="$CFLAGS -Wstrict-prototypes" 14032 14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14034printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14035 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14036 if eval test \${$cacheid+y} 14037then : 14038 printf %s "(cached) " >&6 14039else case e in #( 14040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042int i; 14043int 14044main (void) 14045{ 14046 14047 ; 14048 return 0; 14049} 14050_ACEOF 14051if ac_fn_c_try_link "$LINENO" 14052then : 14053 eval $cacheid=yes 14054else case e in #( 14055 e) eval $cacheid=no ;; 14056esac 14057fi 14058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14059 conftest$ac_exeext conftest.$ac_ext ;; 14060esac 14061fi 14062 14063 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 14066 eval supported=\$$cacheid 14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14068printf "%s\n" "$supported" >&6; } 14069 if test "$supported" = "yes" ; then 14070 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14071 found="yes" 14072 fi 14073 fi 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089xorg_testset_save_CFLAGS="$CFLAGS" 14090 14091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14096then : 14097 printf %s "(cached) " >&6 14098else case e in #( 14099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102_ACEOF 14103if ac_fn_c_try_compile "$LINENO" 14104then : 14105 xorg_cv_cc_flag_unknown_warning_option=yes 14106else case e in #( 14107 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14108esac 14109fi 14110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14111esac 14112fi 14113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14116 CFLAGS="$xorg_testset_save_CFLAGS" 14117fi 14118 14119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14122 fi 14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14127then : 14128 printf %s "(cached) " >&6 14129else case e in #( 14130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14131/* end confdefs.h. */ 14132int i; 14133_ACEOF 14134if ac_fn_c_try_compile "$LINENO" 14135then : 14136 xorg_cv_cc_flag_unused_command_line_argument=yes 14137else case e in #( 14138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14139esac 14140fi 14141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14142esac 14143fi 14144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14147 CFLAGS="$xorg_testset_save_CFLAGS" 14148fi 14149 14150found="no" 14151 14152 if test $found = "no" ; then 14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14155 fi 14156 14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14159 fi 14160 14161 CFLAGS="$CFLAGS -Wmissing-prototypes" 14162 14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14164printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14165 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14166 if eval test \${$cacheid+y} 14167then : 14168 printf %s "(cached) " >&6 14169else case e in #( 14170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172int i; 14173int 14174main (void) 14175{ 14176 14177 ; 14178 return 0; 14179} 14180_ACEOF 14181if ac_fn_c_try_link "$LINENO" 14182then : 14183 eval $cacheid=yes 14184else case e in #( 14185 e) eval $cacheid=no ;; 14186esac 14187fi 14188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14189 conftest$ac_exeext conftest.$ac_ext ;; 14190esac 14191fi 14192 14193 14194 CFLAGS="$xorg_testset_save_CFLAGS" 14195 14196 eval supported=\$$cacheid 14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14198printf "%s\n" "$supported" >&6; } 14199 if test "$supported" = "yes" ; then 14200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14201 found="yes" 14202 fi 14203 fi 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219xorg_testset_save_CFLAGS="$CFLAGS" 14220 14221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14226then : 14227 printf %s "(cached) " >&6 14228else case e in #( 14229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231int i; 14232_ACEOF 14233if ac_fn_c_try_compile "$LINENO" 14234then : 14235 xorg_cv_cc_flag_unknown_warning_option=yes 14236else case e in #( 14237 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14238esac 14239fi 14240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14241esac 14242fi 14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14246 CFLAGS="$xorg_testset_save_CFLAGS" 14247fi 14248 14249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14252 fi 14253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14257then : 14258 printf %s "(cached) " >&6 14259else case e in #( 14260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14261/* end confdefs.h. */ 14262int i; 14263_ACEOF 14264if ac_fn_c_try_compile "$LINENO" 14265then : 14266 xorg_cv_cc_flag_unused_command_line_argument=yes 14267else case e in #( 14268 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14269esac 14270fi 14271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14272esac 14273fi 14274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14277 CFLAGS="$xorg_testset_save_CFLAGS" 14278fi 14279 14280found="no" 14281 14282 if test $found = "no" ; then 14283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14285 fi 14286 14287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14289 fi 14290 14291 CFLAGS="$CFLAGS -Wnested-externs" 14292 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14294printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14295 cacheid=xorg_cv_cc_flag__Wnested_externs 14296 if eval test \${$cacheid+y} 14297then : 14298 printf %s "(cached) " >&6 14299else case e in #( 14300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14301/* end confdefs.h. */ 14302int i; 14303int 14304main (void) 14305{ 14306 14307 ; 14308 return 0; 14309} 14310_ACEOF 14311if ac_fn_c_try_link "$LINENO" 14312then : 14313 eval $cacheid=yes 14314else case e in #( 14315 e) eval $cacheid=no ;; 14316esac 14317fi 14318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14319 conftest$ac_exeext conftest.$ac_ext ;; 14320esac 14321fi 14322 14323 14324 CFLAGS="$xorg_testset_save_CFLAGS" 14325 14326 eval supported=\$$cacheid 14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14328printf "%s\n" "$supported" >&6; } 14329 if test "$supported" = "yes" ; then 14330 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14331 found="yes" 14332 fi 14333 fi 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349xorg_testset_save_CFLAGS="$CFLAGS" 14350 14351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14356then : 14357 printf %s "(cached) " >&6 14358else case e in #( 14359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360/* end confdefs.h. */ 14361int i; 14362_ACEOF 14363if ac_fn_c_try_compile "$LINENO" 14364then : 14365 xorg_cv_cc_flag_unknown_warning_option=yes 14366else case e in #( 14367 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14368esac 14369fi 14370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14371esac 14372fi 14373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377fi 14378 14379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14387then : 14388 printf %s "(cached) " >&6 14389else case e in #( 14390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392int i; 14393_ACEOF 14394if ac_fn_c_try_compile "$LINENO" 14395then : 14396 xorg_cv_cc_flag_unused_command_line_argument=yes 14397else case e in #( 14398 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14399esac 14400fi 14401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14402esac 14403fi 14404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14407 CFLAGS="$xorg_testset_save_CFLAGS" 14408fi 14409 14410found="no" 14411 14412 if test $found = "no" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 14417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14419 fi 14420 14421 CFLAGS="$CFLAGS -Wbad-function-cast" 14422 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14424printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14425 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14426 if eval test \${$cacheid+y} 14427then : 14428 printf %s "(cached) " >&6 14429else case e in #( 14430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431/* end confdefs.h. */ 14432int i; 14433int 14434main (void) 14435{ 14436 14437 ; 14438 return 0; 14439} 14440_ACEOF 14441if ac_fn_c_try_link "$LINENO" 14442then : 14443 eval $cacheid=yes 14444else case e in #( 14445 e) eval $cacheid=no ;; 14446esac 14447fi 14448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14449 conftest$ac_exeext conftest.$ac_ext ;; 14450esac 14451fi 14452 14453 14454 CFLAGS="$xorg_testset_save_CFLAGS" 14455 14456 eval supported=\$$cacheid 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14458printf "%s\n" "$supported" >&6; } 14459 if test "$supported" = "yes" ; then 14460 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14461 found="yes" 14462 fi 14463 fi 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479xorg_testset_save_CFLAGS="$CFLAGS" 14480 14481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14486then : 14487 printf %s "(cached) " >&6 14488else case e in #( 14489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14490/* end confdefs.h. */ 14491int i; 14492_ACEOF 14493if ac_fn_c_try_compile "$LINENO" 14494then : 14495 xorg_cv_cc_flag_unknown_warning_option=yes 14496else case e in #( 14497 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14498esac 14499fi 14500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14501esac 14502fi 14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14506 CFLAGS="$xorg_testset_save_CFLAGS" 14507fi 14508 14509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14517then : 14518 printf %s "(cached) " >&6 14519else case e in #( 14520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14521/* end confdefs.h. */ 14522int i; 14523_ACEOF 14524if ac_fn_c_try_compile "$LINENO" 14525then : 14526 xorg_cv_cc_flag_unused_command_line_argument=yes 14527else case e in #( 14528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14529esac 14530fi 14531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14532esac 14533fi 14534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538fi 14539 14540found="no" 14541 14542 if test $found = "no" ; then 14543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14545 fi 14546 14547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14549 fi 14550 14551 CFLAGS="$CFLAGS -Wold-style-definition" 14552 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14554printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14555 cacheid=xorg_cv_cc_flag__Wold_style_definition 14556 if eval test \${$cacheid+y} 14557then : 14558 printf %s "(cached) " >&6 14559else case e in #( 14560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14561/* end confdefs.h. */ 14562int i; 14563int 14564main (void) 14565{ 14566 14567 ; 14568 return 0; 14569} 14570_ACEOF 14571if ac_fn_c_try_link "$LINENO" 14572then : 14573 eval $cacheid=yes 14574else case e in #( 14575 e) eval $cacheid=no ;; 14576esac 14577fi 14578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14579 conftest$ac_exeext conftest.$ac_ext ;; 14580esac 14581fi 14582 14583 14584 CFLAGS="$xorg_testset_save_CFLAGS" 14585 14586 eval supported=\$$cacheid 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14588printf "%s\n" "$supported" >&6; } 14589 if test "$supported" = "yes" ; then 14590 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14591 found="yes" 14592 fi 14593 fi 14594 14595 if test $found = "no" ; then 14596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14598 fi 14599 14600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14602 fi 14603 14604 CFLAGS="$CFLAGS -fd" 14605 14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14607printf %s "checking if $CC supports -fd... " >&6; } 14608 cacheid=xorg_cv_cc_flag__fd 14609 if eval test \${$cacheid+y} 14610then : 14611 printf %s "(cached) " >&6 14612else case e in #( 14613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14614/* end confdefs.h. */ 14615int i; 14616int 14617main (void) 14618{ 14619 14620 ; 14621 return 0; 14622} 14623_ACEOF 14624if ac_fn_c_try_link "$LINENO" 14625then : 14626 eval $cacheid=yes 14627else case e in #( 14628 e) eval $cacheid=no ;; 14629esac 14630fi 14631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14632 conftest$ac_exeext conftest.$ac_ext ;; 14633esac 14634fi 14635 14636 14637 CFLAGS="$xorg_testset_save_CFLAGS" 14638 14639 eval supported=\$$cacheid 14640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14641printf "%s\n" "$supported" >&6; } 14642 if test "$supported" = "yes" ; then 14643 BASE_CFLAGS="$BASE_CFLAGS -fd" 14644 found="yes" 14645 fi 14646 fi 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662xorg_testset_save_CFLAGS="$CFLAGS" 14663 14664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14669then : 14670 printf %s "(cached) " >&6 14671else case e in #( 14672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14673/* end confdefs.h. */ 14674int i; 14675_ACEOF 14676if ac_fn_c_try_compile "$LINENO" 14677then : 14678 xorg_cv_cc_flag_unknown_warning_option=yes 14679else case e in #( 14680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14681esac 14682fi 14683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14684esac 14685fi 14686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690fi 14691 14692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14695 fi 14696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14700then : 14701 printf %s "(cached) " >&6 14702else case e in #( 14703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705int i; 14706_ACEOF 14707if ac_fn_c_try_compile "$LINENO" 14708then : 14709 xorg_cv_cc_flag_unused_command_line_argument=yes 14710else case e in #( 14711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14712esac 14713fi 14714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14715esac 14716fi 14717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14720 CFLAGS="$xorg_testset_save_CFLAGS" 14721fi 14722 14723found="no" 14724 14725 if test $found = "no" ; then 14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14728 fi 14729 14730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14732 fi 14733 14734 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14735 14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14737printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14738 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14739 if eval test \${$cacheid+y} 14740then : 14741 printf %s "(cached) " >&6 14742else case e in #( 14743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746int 14747main (void) 14748{ 14749 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO" 14755then : 14756 eval $cacheid=yes 14757else case e in #( 14758 e) eval $cacheid=no ;; 14759esac 14760fi 14761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14762 conftest$ac_exeext conftest.$ac_ext ;; 14763esac 14764fi 14765 14766 14767 CFLAGS="$xorg_testset_save_CFLAGS" 14768 14769 eval supported=\$$cacheid 14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14771printf "%s\n" "$supported" >&6; } 14772 if test "$supported" = "yes" ; then 14773 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14774 found="yes" 14775 fi 14776 fi 14777 14778 14779 14780 14781 14782# This chunk adds additional warnings that could catch undesired effects. 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796xorg_testset_save_CFLAGS="$CFLAGS" 14797 14798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14803then : 14804 printf %s "(cached) " >&6 14805else case e in #( 14806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808int i; 14809_ACEOF 14810if ac_fn_c_try_compile "$LINENO" 14811then : 14812 xorg_cv_cc_flag_unknown_warning_option=yes 14813else case e in #( 14814 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14815esac 14816fi 14817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14818esac 14819fi 14820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14821printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14823 CFLAGS="$xorg_testset_save_CFLAGS" 14824fi 14825 14826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14829 fi 14830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14832printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14833if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14834then : 14835 printf %s "(cached) " >&6 14836else case e in #( 14837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14838/* end confdefs.h. */ 14839int i; 14840_ACEOF 14841if ac_fn_c_try_compile "$LINENO" 14842then : 14843 xorg_cv_cc_flag_unused_command_line_argument=yes 14844else case e in #( 14845 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14846esac 14847fi 14848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14849esac 14850fi 14851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14854 CFLAGS="$xorg_testset_save_CFLAGS" 14855fi 14856 14857found="no" 14858 14859 if test $found = "no" ; then 14860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14862 fi 14863 14864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14866 fi 14867 14868 CFLAGS="$CFLAGS -Wunused" 14869 14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14871printf %s "checking if $CC supports -Wunused... " >&6; } 14872 cacheid=xorg_cv_cc_flag__Wunused 14873 if eval test \${$cacheid+y} 14874then : 14875 printf %s "(cached) " >&6 14876else case e in #( 14877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14878/* end confdefs.h. */ 14879int i; 14880int 14881main (void) 14882{ 14883 14884 ; 14885 return 0; 14886} 14887_ACEOF 14888if ac_fn_c_try_link "$LINENO" 14889then : 14890 eval $cacheid=yes 14891else case e in #( 14892 e) eval $cacheid=no ;; 14893esac 14894fi 14895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14896 conftest$ac_exeext conftest.$ac_ext ;; 14897esac 14898fi 14899 14900 14901 CFLAGS="$xorg_testset_save_CFLAGS" 14902 14903 eval supported=\$$cacheid 14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14905printf "%s\n" "$supported" >&6; } 14906 if test "$supported" = "yes" ; then 14907 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14908 found="yes" 14909 fi 14910 fi 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926xorg_testset_save_CFLAGS="$CFLAGS" 14927 14928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14932if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14933then : 14934 printf %s "(cached) " >&6 14935else case e in #( 14936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937/* end confdefs.h. */ 14938int i; 14939_ACEOF 14940if ac_fn_c_try_compile "$LINENO" 14941then : 14942 xorg_cv_cc_flag_unknown_warning_option=yes 14943else case e in #( 14944 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14945esac 14946fi 14947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14948esac 14949fi 14950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14953 CFLAGS="$xorg_testset_save_CFLAGS" 14954fi 14955 14956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14959 fi 14960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14963if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14964then : 14965 printf %s "(cached) " >&6 14966else case e in #( 14967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14968/* end confdefs.h. */ 14969int i; 14970_ACEOF 14971if ac_fn_c_try_compile "$LINENO" 14972then : 14973 xorg_cv_cc_flag_unused_command_line_argument=yes 14974else case e in #( 14975 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14976esac 14977fi 14978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14979esac 14980fi 14981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14984 CFLAGS="$xorg_testset_save_CFLAGS" 14985fi 14986 14987found="no" 14988 14989 if test $found = "no" ; then 14990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14992 fi 14993 14994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14996 fi 14997 14998 CFLAGS="$CFLAGS -Wuninitialized" 14999 15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15001printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15002 cacheid=xorg_cv_cc_flag__Wuninitialized 15003 if eval test \${$cacheid+y} 15004then : 15005 printf %s "(cached) " >&6 15006else case e in #( 15007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008/* end confdefs.h. */ 15009int i; 15010int 15011main (void) 15012{ 15013 15014 ; 15015 return 0; 15016} 15017_ACEOF 15018if ac_fn_c_try_link "$LINENO" 15019then : 15020 eval $cacheid=yes 15021else case e in #( 15022 e) eval $cacheid=no ;; 15023esac 15024fi 15025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15026 conftest$ac_exeext conftest.$ac_ext ;; 15027esac 15028fi 15029 15030 15031 CFLAGS="$xorg_testset_save_CFLAGS" 15032 15033 eval supported=\$$cacheid 15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15035printf "%s\n" "$supported" >&6; } 15036 if test "$supported" = "yes" ; then 15037 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15038 found="yes" 15039 fi 15040 fi 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056xorg_testset_save_CFLAGS="$CFLAGS" 15057 15058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15063then : 15064 printf %s "(cached) " >&6 15065else case e in #( 15066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15067/* end confdefs.h. */ 15068int i; 15069_ACEOF 15070if ac_fn_c_try_compile "$LINENO" 15071then : 15072 xorg_cv_cc_flag_unknown_warning_option=yes 15073else case e in #( 15074 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15075esac 15076fi 15077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15078esac 15079fi 15080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15083 CFLAGS="$xorg_testset_save_CFLAGS" 15084fi 15085 15086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15089 fi 15090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15093if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15094then : 15095 printf %s "(cached) " >&6 15096else case e in #( 15097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100_ACEOF 15101if ac_fn_c_try_compile "$LINENO" 15102then : 15103 xorg_cv_cc_flag_unused_command_line_argument=yes 15104else case e in #( 15105 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15106esac 15107fi 15108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15109esac 15110fi 15111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15114 CFLAGS="$xorg_testset_save_CFLAGS" 15115fi 15116 15117found="no" 15118 15119 if test $found = "no" ; then 15120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15122 fi 15123 15124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15126 fi 15127 15128 CFLAGS="$CFLAGS -Wshadow" 15129 15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15131printf %s "checking if $CC supports -Wshadow... " >&6; } 15132 cacheid=xorg_cv_cc_flag__Wshadow 15133 if eval test \${$cacheid+y} 15134then : 15135 printf %s "(cached) " >&6 15136else case e in #( 15137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15138/* end confdefs.h. */ 15139int i; 15140int 15141main (void) 15142{ 15143 15144 ; 15145 return 0; 15146} 15147_ACEOF 15148if ac_fn_c_try_link "$LINENO" 15149then : 15150 eval $cacheid=yes 15151else case e in #( 15152 e) eval $cacheid=no ;; 15153esac 15154fi 15155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15156 conftest$ac_exeext conftest.$ac_ext ;; 15157esac 15158fi 15159 15160 15161 CFLAGS="$xorg_testset_save_CFLAGS" 15162 15163 eval supported=\$$cacheid 15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15165printf "%s\n" "$supported" >&6; } 15166 if test "$supported" = "yes" ; then 15167 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15168 found="yes" 15169 fi 15170 fi 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186xorg_testset_save_CFLAGS="$CFLAGS" 15187 15188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15192if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15193then : 15194 printf %s "(cached) " >&6 15195else case e in #( 15196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15197/* end confdefs.h. */ 15198int i; 15199_ACEOF 15200if ac_fn_c_try_compile "$LINENO" 15201then : 15202 xorg_cv_cc_flag_unknown_warning_option=yes 15203else case e in #( 15204 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15205esac 15206fi 15207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15208esac 15209fi 15210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15213 CFLAGS="$xorg_testset_save_CFLAGS" 15214fi 15215 15216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15219 fi 15220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15223if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15224then : 15225 printf %s "(cached) " >&6 15226else case e in #( 15227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15228/* end confdefs.h. */ 15229int i; 15230_ACEOF 15231if ac_fn_c_try_compile "$LINENO" 15232then : 15233 xorg_cv_cc_flag_unused_command_line_argument=yes 15234else case e in #( 15235 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15236esac 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15239esac 15240fi 15241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15242printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15244 CFLAGS="$xorg_testset_save_CFLAGS" 15245fi 15246 15247found="no" 15248 15249 if test $found = "no" ; then 15250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15252 fi 15253 15254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15256 fi 15257 15258 CFLAGS="$CFLAGS -Wmissing-noreturn" 15259 15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15261printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15262 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15263 if eval test \${$cacheid+y} 15264then : 15265 printf %s "(cached) " >&6 15266else case e in #( 15267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15268/* end confdefs.h. */ 15269int i; 15270int 15271main (void) 15272{ 15273 15274 ; 15275 return 0; 15276} 15277_ACEOF 15278if ac_fn_c_try_link "$LINENO" 15279then : 15280 eval $cacheid=yes 15281else case e in #( 15282 e) eval $cacheid=no ;; 15283esac 15284fi 15285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15286 conftest$ac_exeext conftest.$ac_ext ;; 15287esac 15288fi 15289 15290 15291 CFLAGS="$xorg_testset_save_CFLAGS" 15292 15293 eval supported=\$$cacheid 15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15295printf "%s\n" "$supported" >&6; } 15296 if test "$supported" = "yes" ; then 15297 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15298 found="yes" 15299 fi 15300 fi 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316xorg_testset_save_CFLAGS="$CFLAGS" 15317 15318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15322if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15323then : 15324 printf %s "(cached) " >&6 15325else case e in #( 15326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15327/* end confdefs.h. */ 15328int i; 15329_ACEOF 15330if ac_fn_c_try_compile "$LINENO" 15331then : 15332 xorg_cv_cc_flag_unknown_warning_option=yes 15333else case e in #( 15334 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15335esac 15336fi 15337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15338esac 15339fi 15340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15343 CFLAGS="$xorg_testset_save_CFLAGS" 15344fi 15345 15346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15349 fi 15350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15353if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15354then : 15355 printf %s "(cached) " >&6 15356else case e in #( 15357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15358/* end confdefs.h. */ 15359int i; 15360_ACEOF 15361if ac_fn_c_try_compile "$LINENO" 15362then : 15363 xorg_cv_cc_flag_unused_command_line_argument=yes 15364else case e in #( 15365 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15366esac 15367fi 15368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15369esac 15370fi 15371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15374 CFLAGS="$xorg_testset_save_CFLAGS" 15375fi 15376 15377found="no" 15378 15379 if test $found = "no" ; then 15380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15382 fi 15383 15384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15386 fi 15387 15388 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15389 15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15391printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15392 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15393 if eval test \${$cacheid+y} 15394then : 15395 printf %s "(cached) " >&6 15396else case e in #( 15397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15398/* end confdefs.h. */ 15399int i; 15400int 15401main (void) 15402{ 15403 15404 ; 15405 return 0; 15406} 15407_ACEOF 15408if ac_fn_c_try_link "$LINENO" 15409then : 15410 eval $cacheid=yes 15411else case e in #( 15412 e) eval $cacheid=no ;; 15413esac 15414fi 15415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15416 conftest$ac_exeext conftest.$ac_ext ;; 15417esac 15418fi 15419 15420 15421 CFLAGS="$xorg_testset_save_CFLAGS" 15422 15423 eval supported=\$$cacheid 15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15425printf "%s\n" "$supported" >&6; } 15426 if test "$supported" = "yes" ; then 15427 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15428 found="yes" 15429 fi 15430 fi 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446xorg_testset_save_CFLAGS="$CFLAGS" 15447 15448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15451printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15452if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15453then : 15454 printf %s "(cached) " >&6 15455else case e in #( 15456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458int i; 15459_ACEOF 15460if ac_fn_c_try_compile "$LINENO" 15461then : 15462 xorg_cv_cc_flag_unknown_warning_option=yes 15463else case e in #( 15464 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15465esac 15466fi 15467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15468esac 15469fi 15470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15473 CFLAGS="$xorg_testset_save_CFLAGS" 15474fi 15475 15476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 fi 15480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15483if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15484then : 15485 printf %s "(cached) " >&6 15486else case e in #( 15487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15488/* end confdefs.h. */ 15489int i; 15490_ACEOF 15491if ac_fn_c_try_compile "$LINENO" 15492then : 15493 xorg_cv_cc_flag_unused_command_line_argument=yes 15494else case e in #( 15495 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15496esac 15497fi 15498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15499esac 15500fi 15501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15504 CFLAGS="$xorg_testset_save_CFLAGS" 15505fi 15506 15507found="no" 15508 15509 if test $found = "no" ; then 15510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15512 fi 15513 15514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15516 fi 15517 15518 CFLAGS="$CFLAGS -Wredundant-decls" 15519 15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15521printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15522 cacheid=xorg_cv_cc_flag__Wredundant_decls 15523 if eval test \${$cacheid+y} 15524then : 15525 printf %s "(cached) " >&6 15526else case e in #( 15527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15528/* end confdefs.h. */ 15529int i; 15530int 15531main (void) 15532{ 15533 15534 ; 15535 return 0; 15536} 15537_ACEOF 15538if ac_fn_c_try_link "$LINENO" 15539then : 15540 eval $cacheid=yes 15541else case e in #( 15542 e) eval $cacheid=no ;; 15543esac 15544fi 15545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15546 conftest$ac_exeext conftest.$ac_ext ;; 15547esac 15548fi 15549 15550 15551 CFLAGS="$xorg_testset_save_CFLAGS" 15552 15553 eval supported=\$$cacheid 15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15555printf "%s\n" "$supported" >&6; } 15556 if test "$supported" = "yes" ; then 15557 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15558 found="yes" 15559 fi 15560 fi 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576xorg_testset_save_CFLAGS="$CFLAGS" 15577 15578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15581printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15582if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15583then : 15584 printf %s "(cached) " >&6 15585else case e in #( 15586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15587/* end confdefs.h. */ 15588int i; 15589_ACEOF 15590if ac_fn_c_try_compile "$LINENO" 15591then : 15592 xorg_cv_cc_flag_unknown_warning_option=yes 15593else case e in #( 15594 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15595esac 15596fi 15597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15598esac 15599fi 15600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604fi 15605 15606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15609 fi 15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15613if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15614then : 15615 printf %s "(cached) " >&6 15616else case e in #( 15617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619int i; 15620_ACEOF 15621if ac_fn_c_try_compile "$LINENO" 15622then : 15623 xorg_cv_cc_flag_unused_command_line_argument=yes 15624else case e in #( 15625 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15626esac 15627fi 15628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15629esac 15630fi 15631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15634 CFLAGS="$xorg_testset_save_CFLAGS" 15635fi 15636 15637found="no" 15638 15639 if test $found = "no" ; then 15640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15642 fi 15643 15644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 fi 15647 15648 CFLAGS="$CFLAGS -Wlogical-op" 15649 15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15651printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15652 cacheid=xorg_cv_cc_flag__Wlogical_op 15653 if eval test \${$cacheid+y} 15654then : 15655 printf %s "(cached) " >&6 15656else case e in #( 15657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15658/* end confdefs.h. */ 15659int i; 15660int 15661main (void) 15662{ 15663 15664 ; 15665 return 0; 15666} 15667_ACEOF 15668if ac_fn_c_try_link "$LINENO" 15669then : 15670 eval $cacheid=yes 15671else case e in #( 15672 e) eval $cacheid=no ;; 15673esac 15674fi 15675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15676 conftest$ac_exeext conftest.$ac_ext ;; 15677esac 15678fi 15679 15680 15681 CFLAGS="$xorg_testset_save_CFLAGS" 15682 15683 eval supported=\$$cacheid 15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15685printf "%s\n" "$supported" >&6; } 15686 if test "$supported" = "yes" ; then 15687 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15688 found="yes" 15689 fi 15690 fi 15691 15692 15693 15694# These are currently disabled because they are noisy. They will be enabled 15695# in the future once the codebase is sufficiently modernized to silence 15696# them. For now, I don't want them to drown out the other warnings. 15697# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15698# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15699# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15700 15701# Turn some warnings into errors, so we don't accidentally get successful builds 15702# when there are problems that should be fixed. 15703 15704if test "x$SELECTIVE_WERROR" = "xyes" ; then 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718xorg_testset_save_CFLAGS="$CFLAGS" 15719 15720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15725then : 15726 printf %s "(cached) " >&6 15727else case e in #( 15728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15729/* end confdefs.h. */ 15730int i; 15731_ACEOF 15732if ac_fn_c_try_compile "$LINENO" 15733then : 15734 xorg_cv_cc_flag_unknown_warning_option=yes 15735else case e in #( 15736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15737esac 15738fi 15739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15740esac 15741fi 15742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15743printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746fi 15747 15748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 fi 15752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15754printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15755if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15756then : 15757 printf %s "(cached) " >&6 15758else case e in #( 15759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15760/* end confdefs.h. */ 15761int i; 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO" 15764then : 15765 xorg_cv_cc_flag_unused_command_line_argument=yes 15766else case e in #( 15767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15768esac 15769fi 15770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15771esac 15772fi 15773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15776 CFLAGS="$xorg_testset_save_CFLAGS" 15777fi 15778 15779found="no" 15780 15781 if test $found = "no" ; then 15782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15784 fi 15785 15786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15788 fi 15789 15790 CFLAGS="$CFLAGS -Werror=implicit" 15791 15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15793printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15794 cacheid=xorg_cv_cc_flag__Werror_implicit 15795 if eval test \${$cacheid+y} 15796then : 15797 printf %s "(cached) " >&6 15798else case e in #( 15799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15800/* end confdefs.h. */ 15801int i; 15802int 15803main (void) 15804{ 15805 15806 ; 15807 return 0; 15808} 15809_ACEOF 15810if ac_fn_c_try_link "$LINENO" 15811then : 15812 eval $cacheid=yes 15813else case e in #( 15814 e) eval $cacheid=no ;; 15815esac 15816fi 15817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15818 conftest$ac_exeext conftest.$ac_ext ;; 15819esac 15820fi 15821 15822 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824 15825 eval supported=\$$cacheid 15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15827printf "%s\n" "$supported" >&6; } 15828 if test "$supported" = "yes" ; then 15829 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15830 found="yes" 15831 fi 15832 fi 15833 15834 if test $found = "no" ; then 15835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15837 fi 15838 15839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15841 fi 15842 15843 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15844 15845 { 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 15846printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15847 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15848 if eval test \${$cacheid+y} 15849then : 15850 printf %s "(cached) " >&6 15851else case e in #( 15852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853/* end confdefs.h. */ 15854int i; 15855int 15856main (void) 15857{ 15858 15859 ; 15860 return 0; 15861} 15862_ACEOF 15863if ac_fn_c_try_link "$LINENO" 15864then : 15865 eval $cacheid=yes 15866else case e in #( 15867 e) eval $cacheid=no ;; 15868esac 15869fi 15870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15871 conftest$ac_exeext conftest.$ac_ext ;; 15872esac 15873fi 15874 15875 15876 CFLAGS="$xorg_testset_save_CFLAGS" 15877 15878 eval supported=\$$cacheid 15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15880printf "%s\n" "$supported" >&6; } 15881 if test "$supported" = "yes" ; then 15882 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15883 found="yes" 15884 fi 15885 fi 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901xorg_testset_save_CFLAGS="$CFLAGS" 15902 15903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15908then : 15909 printf %s "(cached) " >&6 15910else case e in #( 15911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913int i; 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO" 15916then : 15917 xorg_cv_cc_flag_unknown_warning_option=yes 15918else case e in #( 15919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15920esac 15921fi 15922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15923esac 15924fi 15925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15928 CFLAGS="$xorg_testset_save_CFLAGS" 15929fi 15930 15931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15934 fi 15935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15939then : 15940 printf %s "(cached) " >&6 15941else case e in #( 15942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944int i; 15945_ACEOF 15946if ac_fn_c_try_compile "$LINENO" 15947then : 15948 xorg_cv_cc_flag_unused_command_line_argument=yes 15949else case e in #( 15950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15951esac 15952fi 15953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15954esac 15955fi 15956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15959 CFLAGS="$xorg_testset_save_CFLAGS" 15960fi 15961 15962found="no" 15963 15964 if test $found = "no" ; then 15965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15967 fi 15968 15969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15971 fi 15972 15973 CFLAGS="$CFLAGS -Werror=nonnull" 15974 15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15976printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15977 cacheid=xorg_cv_cc_flag__Werror_nonnull 15978 if eval test \${$cacheid+y} 15979then : 15980 printf %s "(cached) " >&6 15981else case e in #( 15982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983/* end confdefs.h. */ 15984int i; 15985int 15986main (void) 15987{ 15988 15989 ; 15990 return 0; 15991} 15992_ACEOF 15993if ac_fn_c_try_link "$LINENO" 15994then : 15995 eval $cacheid=yes 15996else case e in #( 15997 e) eval $cacheid=no ;; 15998esac 15999fi 16000rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16001 conftest$ac_exeext conftest.$ac_ext ;; 16002esac 16003fi 16004 16005 16006 CFLAGS="$xorg_testset_save_CFLAGS" 16007 16008 eval supported=\$$cacheid 16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16010printf "%s\n" "$supported" >&6; } 16011 if test "$supported" = "yes" ; then 16012 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16013 found="yes" 16014 fi 16015 fi 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031xorg_testset_save_CFLAGS="$CFLAGS" 16032 16033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16038then : 16039 printf %s "(cached) " >&6 16040else case e in #( 16041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043int i; 16044_ACEOF 16045if ac_fn_c_try_compile "$LINENO" 16046then : 16047 xorg_cv_cc_flag_unknown_warning_option=yes 16048else case e in #( 16049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16050esac 16051fi 16052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16053esac 16054fi 16055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16058 CFLAGS="$xorg_testset_save_CFLAGS" 16059fi 16060 16061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16064 fi 16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16069then : 16070 printf %s "(cached) " >&6 16071else case e in #( 16072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074int i; 16075_ACEOF 16076if ac_fn_c_try_compile "$LINENO" 16077then : 16078 xorg_cv_cc_flag_unused_command_line_argument=yes 16079else case e in #( 16080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16081esac 16082fi 16083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16084esac 16085fi 16086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16089 CFLAGS="$xorg_testset_save_CFLAGS" 16090fi 16091 16092found="no" 16093 16094 if test $found = "no" ; then 16095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16097 fi 16098 16099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16101 fi 16102 16103 CFLAGS="$CFLAGS -Werror=init-self" 16104 16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16106printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16107 cacheid=xorg_cv_cc_flag__Werror_init_self 16108 if eval test \${$cacheid+y} 16109then : 16110 printf %s "(cached) " >&6 16111else case e in #( 16112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16113/* end confdefs.h. */ 16114int i; 16115int 16116main (void) 16117{ 16118 16119 ; 16120 return 0; 16121} 16122_ACEOF 16123if ac_fn_c_try_link "$LINENO" 16124then : 16125 eval $cacheid=yes 16126else case e in #( 16127 e) eval $cacheid=no ;; 16128esac 16129fi 16130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16131 conftest$ac_exeext conftest.$ac_ext ;; 16132esac 16133fi 16134 16135 16136 CFLAGS="$xorg_testset_save_CFLAGS" 16137 16138 eval supported=\$$cacheid 16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16140printf "%s\n" "$supported" >&6; } 16141 if test "$supported" = "yes" ; then 16142 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16143 found="yes" 16144 fi 16145 fi 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161xorg_testset_save_CFLAGS="$CFLAGS" 16162 16163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16168then : 16169 printf %s "(cached) " >&6 16170else case e in #( 16171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172/* end confdefs.h. */ 16173int i; 16174_ACEOF 16175if ac_fn_c_try_compile "$LINENO" 16176then : 16177 xorg_cv_cc_flag_unknown_warning_option=yes 16178else case e in #( 16179 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16180esac 16181fi 16182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16183esac 16184fi 16185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189fi 16190 16191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16194 fi 16195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16198if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16199then : 16200 printf %s "(cached) " >&6 16201else case e in #( 16202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203/* end confdefs.h. */ 16204int i; 16205_ACEOF 16206if ac_fn_c_try_compile "$LINENO" 16207then : 16208 xorg_cv_cc_flag_unused_command_line_argument=yes 16209else case e in #( 16210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16211esac 16212fi 16213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16214esac 16215fi 16216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220fi 16221 16222found="no" 16223 16224 if test $found = "no" ; then 16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16227 fi 16228 16229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16231 fi 16232 16233 CFLAGS="$CFLAGS -Werror=main" 16234 16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16236printf %s "checking if $CC supports -Werror=main... " >&6; } 16237 cacheid=xorg_cv_cc_flag__Werror_main 16238 if eval test \${$cacheid+y} 16239then : 16240 printf %s "(cached) " >&6 16241else case e in #( 16242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16243/* end confdefs.h. */ 16244int i; 16245int 16246main (void) 16247{ 16248 16249 ; 16250 return 0; 16251} 16252_ACEOF 16253if ac_fn_c_try_link "$LINENO" 16254then : 16255 eval $cacheid=yes 16256else case e in #( 16257 e) eval $cacheid=no ;; 16258esac 16259fi 16260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16261 conftest$ac_exeext conftest.$ac_ext ;; 16262esac 16263fi 16264 16265 16266 CFLAGS="$xorg_testset_save_CFLAGS" 16267 16268 eval supported=\$$cacheid 16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16270printf "%s\n" "$supported" >&6; } 16271 if test "$supported" = "yes" ; then 16272 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16273 found="yes" 16274 fi 16275 fi 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291xorg_testset_save_CFLAGS="$CFLAGS" 16292 16293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16297if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16298then : 16299 printf %s "(cached) " >&6 16300else case e in #( 16301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16302/* end confdefs.h. */ 16303int i; 16304_ACEOF 16305if ac_fn_c_try_compile "$LINENO" 16306then : 16307 xorg_cv_cc_flag_unknown_warning_option=yes 16308else case e in #( 16309 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16310esac 16311fi 16312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16313esac 16314fi 16315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16318 CFLAGS="$xorg_testset_save_CFLAGS" 16319fi 16320 16321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16324 fi 16325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16328if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16329then : 16330 printf %s "(cached) " >&6 16331else case e in #( 16332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16333/* end confdefs.h. */ 16334int i; 16335_ACEOF 16336if ac_fn_c_try_compile "$LINENO" 16337then : 16338 xorg_cv_cc_flag_unused_command_line_argument=yes 16339else case e in #( 16340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16341esac 16342fi 16343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16344esac 16345fi 16346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350fi 16351 16352found="no" 16353 16354 if test $found = "no" ; then 16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 fi 16358 16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 fi 16362 16363 CFLAGS="$CFLAGS -Werror=missing-braces" 16364 16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16366printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16367 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16368 if eval test \${$cacheid+y} 16369then : 16370 printf %s "(cached) " >&6 16371else case e in #( 16372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374int i; 16375int 16376main (void) 16377{ 16378 16379 ; 16380 return 0; 16381} 16382_ACEOF 16383if ac_fn_c_try_link "$LINENO" 16384then : 16385 eval $cacheid=yes 16386else case e in #( 16387 e) eval $cacheid=no ;; 16388esac 16389fi 16390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16391 conftest$ac_exeext conftest.$ac_ext ;; 16392esac 16393fi 16394 16395 16396 CFLAGS="$xorg_testset_save_CFLAGS" 16397 16398 eval supported=\$$cacheid 16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16400printf "%s\n" "$supported" >&6; } 16401 if test "$supported" = "yes" ; then 16402 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16403 found="yes" 16404 fi 16405 fi 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421xorg_testset_save_CFLAGS="$CFLAGS" 16422 16423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16428then : 16429 printf %s "(cached) " >&6 16430else case e in #( 16431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16432/* end confdefs.h. */ 16433int i; 16434_ACEOF 16435if ac_fn_c_try_compile "$LINENO" 16436then : 16437 xorg_cv_cc_flag_unknown_warning_option=yes 16438else case e in #( 16439 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16440esac 16441fi 16442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16443esac 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 case e in #( 16462 e) 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 case e in #( 16470 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16471esac 16472fi 16473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16474esac 16475fi 16476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16479 CFLAGS="$xorg_testset_save_CFLAGS" 16480fi 16481 16482found="no" 16483 16484 if test $found = "no" ; then 16485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16487 fi 16488 16489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16491 fi 16492 16493 CFLAGS="$CFLAGS -Werror=sequence-point" 16494 16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16496printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16497 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16498 if eval test \${$cacheid+y} 16499then : 16500 printf %s "(cached) " >&6 16501else case e in #( 16502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505int 16506main (void) 16507{ 16508 16509 ; 16510 return 0; 16511} 16512_ACEOF 16513if ac_fn_c_try_link "$LINENO" 16514then : 16515 eval $cacheid=yes 16516else case e in #( 16517 e) eval $cacheid=no ;; 16518esac 16519fi 16520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16521 conftest$ac_exeext conftest.$ac_ext ;; 16522esac 16523fi 16524 16525 16526 CFLAGS="$xorg_testset_save_CFLAGS" 16527 16528 eval supported=\$$cacheid 16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16530printf "%s\n" "$supported" >&6; } 16531 if test "$supported" = "yes" ; then 16532 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16533 found="yes" 16534 fi 16535 fi 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551xorg_testset_save_CFLAGS="$CFLAGS" 16552 16553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16556printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16557if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16558then : 16559 printf %s "(cached) " >&6 16560else case e in #( 16561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16562/* end confdefs.h. */ 16563int i; 16564_ACEOF 16565if ac_fn_c_try_compile "$LINENO" 16566then : 16567 xorg_cv_cc_flag_unknown_warning_option=yes 16568else case e in #( 16569 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16570esac 16571fi 16572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16573esac 16574fi 16575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16578 CFLAGS="$xorg_testset_save_CFLAGS" 16579fi 16580 16581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16584 fi 16585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16588if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16589then : 16590 printf %s "(cached) " >&6 16591else case e in #( 16592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16593/* end confdefs.h. */ 16594int i; 16595_ACEOF 16596if ac_fn_c_try_compile "$LINENO" 16597then : 16598 xorg_cv_cc_flag_unused_command_line_argument=yes 16599else case e in #( 16600 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16601esac 16602fi 16603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16604esac 16605fi 16606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16607printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16609 CFLAGS="$xorg_testset_save_CFLAGS" 16610fi 16611 16612found="no" 16613 16614 if test $found = "no" ; then 16615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16617 fi 16618 16619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16621 fi 16622 16623 CFLAGS="$CFLAGS -Werror=return-type" 16624 16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16626printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16627 cacheid=xorg_cv_cc_flag__Werror_return_type 16628 if eval test \${$cacheid+y} 16629then : 16630 printf %s "(cached) " >&6 16631else case e in #( 16632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16633/* end confdefs.h. */ 16634int i; 16635int 16636main (void) 16637{ 16638 16639 ; 16640 return 0; 16641} 16642_ACEOF 16643if ac_fn_c_try_link "$LINENO" 16644then : 16645 eval $cacheid=yes 16646else case e in #( 16647 e) eval $cacheid=no ;; 16648esac 16649fi 16650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16651 conftest$ac_exeext conftest.$ac_ext ;; 16652esac 16653fi 16654 16655 16656 CFLAGS="$xorg_testset_save_CFLAGS" 16657 16658 eval supported=\$$cacheid 16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16660printf "%s\n" "$supported" >&6; } 16661 if test "$supported" = "yes" ; then 16662 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16663 found="yes" 16664 fi 16665 fi 16666 16667 if test $found = "no" ; then 16668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16670 fi 16671 16672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16674 fi 16675 16676 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16677 16678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16679printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16680 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16681 if eval test \${$cacheid+y} 16682then : 16683 printf %s "(cached) " >&6 16684else case e in #( 16685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687int i; 16688int 16689main (void) 16690{ 16691 16692 ; 16693 return 0; 16694} 16695_ACEOF 16696if ac_fn_c_try_link "$LINENO" 16697then : 16698 eval $cacheid=yes 16699else case e in #( 16700 e) eval $cacheid=no ;; 16701esac 16702fi 16703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16704 conftest$ac_exeext conftest.$ac_ext ;; 16705esac 16706fi 16707 16708 16709 CFLAGS="$xorg_testset_save_CFLAGS" 16710 16711 eval supported=\$$cacheid 16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16713printf "%s\n" "$supported" >&6; } 16714 if test "$supported" = "yes" ; then 16715 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16716 found="yes" 16717 fi 16718 fi 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734xorg_testset_save_CFLAGS="$CFLAGS" 16735 16736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16740if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16741then : 16742 printf %s "(cached) " >&6 16743else case e in #( 16744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16745/* end confdefs.h. */ 16746int i; 16747_ACEOF 16748if ac_fn_c_try_compile "$LINENO" 16749then : 16750 xorg_cv_cc_flag_unknown_warning_option=yes 16751else case e in #( 16752 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16753esac 16754fi 16755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16756esac 16757fi 16758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16761 CFLAGS="$xorg_testset_save_CFLAGS" 16762fi 16763 16764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16767 fi 16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16771if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16772then : 16773 printf %s "(cached) " >&6 16774else case e in #( 16775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16776/* end confdefs.h. */ 16777int i; 16778_ACEOF 16779if ac_fn_c_try_compile "$LINENO" 16780then : 16781 xorg_cv_cc_flag_unused_command_line_argument=yes 16782else case e in #( 16783 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16784esac 16785fi 16786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16787esac 16788fi 16789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16792 CFLAGS="$xorg_testset_save_CFLAGS" 16793fi 16794 16795found="no" 16796 16797 if test $found = "no" ; then 16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16800 fi 16801 16802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16804 fi 16805 16806 CFLAGS="$CFLAGS -Werror=trigraphs" 16807 16808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16809printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16810 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16811 if eval test \${$cacheid+y} 16812then : 16813 printf %s "(cached) " >&6 16814else case e in #( 16815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818int 16819main (void) 16820{ 16821 16822 ; 16823 return 0; 16824} 16825_ACEOF 16826if ac_fn_c_try_link "$LINENO" 16827then : 16828 eval $cacheid=yes 16829else case e in #( 16830 e) eval $cacheid=no ;; 16831esac 16832fi 16833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16834 conftest$ac_exeext conftest.$ac_ext ;; 16835esac 16836fi 16837 16838 16839 CFLAGS="$xorg_testset_save_CFLAGS" 16840 16841 eval supported=\$$cacheid 16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16843printf "%s\n" "$supported" >&6; } 16844 if test "$supported" = "yes" ; then 16845 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16846 found="yes" 16847 fi 16848 fi 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864xorg_testset_save_CFLAGS="$CFLAGS" 16865 16866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16870if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16871then : 16872 printf %s "(cached) " >&6 16873else case e in #( 16874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16875/* end confdefs.h. */ 16876int i; 16877_ACEOF 16878if ac_fn_c_try_compile "$LINENO" 16879then : 16880 xorg_cv_cc_flag_unknown_warning_option=yes 16881else case e in #( 16882 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16883esac 16884fi 16885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16886esac 16887fi 16888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16891 CFLAGS="$xorg_testset_save_CFLAGS" 16892fi 16893 16894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16897 fi 16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16902then : 16903 printf %s "(cached) " >&6 16904else case e in #( 16905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906/* end confdefs.h. */ 16907int i; 16908_ACEOF 16909if ac_fn_c_try_compile "$LINENO" 16910then : 16911 xorg_cv_cc_flag_unused_command_line_argument=yes 16912else case e in #( 16913 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16914esac 16915fi 16916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16917esac 16918fi 16919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16920printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16922 CFLAGS="$xorg_testset_save_CFLAGS" 16923fi 16924 16925found="no" 16926 16927 if test $found = "no" ; then 16928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16930 fi 16931 16932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16934 fi 16935 16936 CFLAGS="$CFLAGS -Werror=array-bounds" 16937 16938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16939printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16940 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16941 if eval test \${$cacheid+y} 16942then : 16943 printf %s "(cached) " >&6 16944else case e in #( 16945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16946/* end confdefs.h. */ 16947int i; 16948int 16949main (void) 16950{ 16951 16952 ; 16953 return 0; 16954} 16955_ACEOF 16956if ac_fn_c_try_link "$LINENO" 16957then : 16958 eval $cacheid=yes 16959else case e in #( 16960 e) eval $cacheid=no ;; 16961esac 16962fi 16963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16964 conftest$ac_exeext conftest.$ac_ext ;; 16965esac 16966fi 16967 16968 16969 CFLAGS="$xorg_testset_save_CFLAGS" 16970 16971 eval supported=\$$cacheid 16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16973printf "%s\n" "$supported" >&6; } 16974 if test "$supported" = "yes" ; then 16975 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16976 found="yes" 16977 fi 16978 fi 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994xorg_testset_save_CFLAGS="$CFLAGS" 16995 16996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17000if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17001then : 17002 printf %s "(cached) " >&6 17003else case e in #( 17004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17005/* end confdefs.h. */ 17006int i; 17007_ACEOF 17008if ac_fn_c_try_compile "$LINENO" 17009then : 17010 xorg_cv_cc_flag_unknown_warning_option=yes 17011else case e in #( 17012 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17013esac 17014fi 17015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17016esac 17017fi 17018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17021 CFLAGS="$xorg_testset_save_CFLAGS" 17022fi 17023 17024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17027 fi 17028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17031if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17032then : 17033 printf %s "(cached) " >&6 17034else case e in #( 17035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17036/* end confdefs.h. */ 17037int i; 17038_ACEOF 17039if ac_fn_c_try_compile "$LINENO" 17040then : 17041 xorg_cv_cc_flag_unused_command_line_argument=yes 17042else case e in #( 17043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17044esac 17045fi 17046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17047esac 17048fi 17049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17052 CFLAGS="$xorg_testset_save_CFLAGS" 17053fi 17054 17055found="no" 17056 17057 if test $found = "no" ; then 17058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17060 fi 17061 17062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17064 fi 17065 17066 CFLAGS="$CFLAGS -Werror=write-strings" 17067 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17069printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17070 cacheid=xorg_cv_cc_flag__Werror_write_strings 17071 if eval test \${$cacheid+y} 17072then : 17073 printf %s "(cached) " >&6 17074else case e in #( 17075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17076/* end confdefs.h. */ 17077int i; 17078int 17079main (void) 17080{ 17081 17082 ; 17083 return 0; 17084} 17085_ACEOF 17086if ac_fn_c_try_link "$LINENO" 17087then : 17088 eval $cacheid=yes 17089else case e in #( 17090 e) eval $cacheid=no ;; 17091esac 17092fi 17093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17094 conftest$ac_exeext conftest.$ac_ext ;; 17095esac 17096fi 17097 17098 17099 CFLAGS="$xorg_testset_save_CFLAGS" 17100 17101 eval supported=\$$cacheid 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17103printf "%s\n" "$supported" >&6; } 17104 if test "$supported" = "yes" ; then 17105 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17106 found="yes" 17107 fi 17108 fi 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124xorg_testset_save_CFLAGS="$CFLAGS" 17125 17126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17131then : 17132 printf %s "(cached) " >&6 17133else case e in #( 17134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137_ACEOF 17138if ac_fn_c_try_compile "$LINENO" 17139then : 17140 xorg_cv_cc_flag_unknown_warning_option=yes 17141else case e in #( 17142 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17143esac 17144fi 17145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17146esac 17147fi 17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17149printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17151 CFLAGS="$xorg_testset_save_CFLAGS" 17152fi 17153 17154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17157 fi 17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17160printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17161if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17162then : 17163 printf %s "(cached) " >&6 17164else case e in #( 17165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166/* end confdefs.h. */ 17167int i; 17168_ACEOF 17169if ac_fn_c_try_compile "$LINENO" 17170then : 17171 xorg_cv_cc_flag_unused_command_line_argument=yes 17172else case e in #( 17173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17174esac 17175fi 17176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17177esac 17178fi 17179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17182 CFLAGS="$xorg_testset_save_CFLAGS" 17183fi 17184 17185found="no" 17186 17187 if test $found = "no" ; then 17188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17190 fi 17191 17192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17194 fi 17195 17196 CFLAGS="$CFLAGS -Werror=address" 17197 17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17199printf %s "checking if $CC supports -Werror=address... " >&6; } 17200 cacheid=xorg_cv_cc_flag__Werror_address 17201 if eval test \${$cacheid+y} 17202then : 17203 printf %s "(cached) " >&6 17204else case e in #( 17205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17206/* end confdefs.h. */ 17207int i; 17208int 17209main (void) 17210{ 17211 17212 ; 17213 return 0; 17214} 17215_ACEOF 17216if ac_fn_c_try_link "$LINENO" 17217then : 17218 eval $cacheid=yes 17219else case e in #( 17220 e) eval $cacheid=no ;; 17221esac 17222fi 17223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17224 conftest$ac_exeext conftest.$ac_ext ;; 17225esac 17226fi 17227 17228 17229 CFLAGS="$xorg_testset_save_CFLAGS" 17230 17231 eval supported=\$$cacheid 17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17233printf "%s\n" "$supported" >&6; } 17234 if test "$supported" = "yes" ; then 17235 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17236 found="yes" 17237 fi 17238 fi 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254xorg_testset_save_CFLAGS="$CFLAGS" 17255 17256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17261then : 17262 printf %s "(cached) " >&6 17263else case e in #( 17264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17265/* end confdefs.h. */ 17266int i; 17267_ACEOF 17268if ac_fn_c_try_compile "$LINENO" 17269then : 17270 xorg_cv_cc_flag_unknown_warning_option=yes 17271else case e in #( 17272 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17273esac 17274fi 17275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17276esac 17277fi 17278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17281 CFLAGS="$xorg_testset_save_CFLAGS" 17282fi 17283 17284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17287 fi 17288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17292then : 17293 printf %s "(cached) " >&6 17294else case e in #( 17295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17296/* end confdefs.h. */ 17297int i; 17298_ACEOF 17299if ac_fn_c_try_compile "$LINENO" 17300then : 17301 xorg_cv_cc_flag_unused_command_line_argument=yes 17302else case e in #( 17303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17304esac 17305fi 17306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17307esac 17308fi 17309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17312 CFLAGS="$xorg_testset_save_CFLAGS" 17313fi 17314 17315found="no" 17316 17317 if test $found = "no" ; then 17318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17320 fi 17321 17322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17324 fi 17325 17326 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17327 17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17329printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17330 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17331 if eval test \${$cacheid+y} 17332then : 17333 printf %s "(cached) " >&6 17334else case e in #( 17335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17336/* end confdefs.h. */ 17337int i; 17338int 17339main (void) 17340{ 17341 17342 ; 17343 return 0; 17344} 17345_ACEOF 17346if ac_fn_c_try_link "$LINENO" 17347then : 17348 eval $cacheid=yes 17349else case e in #( 17350 e) eval $cacheid=no ;; 17351esac 17352fi 17353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17354 conftest$ac_exeext conftest.$ac_ext ;; 17355esac 17356fi 17357 17358 17359 CFLAGS="$xorg_testset_save_CFLAGS" 17360 17361 eval supported=\$$cacheid 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17363printf "%s\n" "$supported" >&6; } 17364 if test "$supported" = "yes" ; then 17365 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17366 found="yes" 17367 fi 17368 fi 17369 17370 if test $found = "no" ; then 17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17373 fi 17374 17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17377 fi 17378 17379 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17380 17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17382printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17383 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17384 if eval test \${$cacheid+y} 17385then : 17386 printf %s "(cached) " >&6 17387else case e in #( 17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17389/* end confdefs.h. */ 17390int i; 17391int 17392main (void) 17393{ 17394 17395 ; 17396 return 0; 17397} 17398_ACEOF 17399if ac_fn_c_try_link "$LINENO" 17400then : 17401 eval $cacheid=yes 17402else case e in #( 17403 e) eval $cacheid=no ;; 17404esac 17405fi 17406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17407 conftest$ac_exeext conftest.$ac_ext ;; 17408esac 17409fi 17410 17411 17412 CFLAGS="$xorg_testset_save_CFLAGS" 17413 17414 eval supported=\$$cacheid 17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17416printf "%s\n" "$supported" >&6; } 17417 if test "$supported" = "yes" ; then 17418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17419 found="yes" 17420 fi 17421 fi 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437xorg_testset_save_CFLAGS="$CFLAGS" 17438 17439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17444then : 17445 printf %s "(cached) " >&6 17446else case e in #( 17447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17448/* end confdefs.h. */ 17449int i; 17450_ACEOF 17451if ac_fn_c_try_compile "$LINENO" 17452then : 17453 xorg_cv_cc_flag_unknown_warning_option=yes 17454else case e in #( 17455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17456esac 17457fi 17458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17459esac 17460fi 17461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17464 CFLAGS="$xorg_testset_save_CFLAGS" 17465fi 17466 17467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17470 fi 17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17475then : 17476 printf %s "(cached) " >&6 17477else case e in #( 17478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480int i; 17481_ACEOF 17482if ac_fn_c_try_compile "$LINENO" 17483then : 17484 xorg_cv_cc_flag_unused_command_line_argument=yes 17485else case e in #( 17486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17487esac 17488fi 17489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17490esac 17491fi 17492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496fi 17497 17498found="no" 17499 17500 if test $found = "no" ; then 17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17503 fi 17504 17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17507 fi 17508 17509 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17510 17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17512printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17513 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17514 if eval test \${$cacheid+y} 17515then : 17516 printf %s "(cached) " >&6 17517else case e in #( 17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17519/* end confdefs.h. */ 17520int i; 17521int 17522main (void) 17523{ 17524 17525 ; 17526 return 0; 17527} 17528_ACEOF 17529if ac_fn_c_try_link "$LINENO" 17530then : 17531 eval $cacheid=yes 17532else case e in #( 17533 e) eval $cacheid=no ;; 17534esac 17535fi 17536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17537 conftest$ac_exeext conftest.$ac_ext ;; 17538esac 17539fi 17540 17541 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543 17544 eval supported=\$$cacheid 17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17546printf "%s\n" "$supported" >&6; } 17547 if test "$supported" = "yes" ; then 17548 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17549 found="yes" 17550 fi 17551 fi 17552 17553 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17554else 17555{ 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 17556printf "%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;} 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570xorg_testset_save_CFLAGS="$CFLAGS" 17571 17572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17576if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17577then : 17578 printf %s "(cached) " >&6 17579else case e in #( 17580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17581/* end confdefs.h. */ 17582int i; 17583_ACEOF 17584if ac_fn_c_try_compile "$LINENO" 17585then : 17586 xorg_cv_cc_flag_unknown_warning_option=yes 17587else case e in #( 17588 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17589esac 17590fi 17591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17592esac 17593fi 17594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17597 CFLAGS="$xorg_testset_save_CFLAGS" 17598fi 17599 17600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17603 fi 17604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17607if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17608then : 17609 printf %s "(cached) " >&6 17610else case e in #( 17611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17612/* end confdefs.h. */ 17613int i; 17614_ACEOF 17615if ac_fn_c_try_compile "$LINENO" 17616then : 17617 xorg_cv_cc_flag_unused_command_line_argument=yes 17618else case e in #( 17619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17620esac 17621fi 17622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17623esac 17624fi 17625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17628 CFLAGS="$xorg_testset_save_CFLAGS" 17629fi 17630 17631found="no" 17632 17633 if test $found = "no" ; then 17634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17636 fi 17637 17638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17640 fi 17641 17642 CFLAGS="$CFLAGS -Wimplicit" 17643 17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17645printf %s "checking if $CC supports -Wimplicit... " >&6; } 17646 cacheid=xorg_cv_cc_flag__Wimplicit 17647 if eval test \${$cacheid+y} 17648then : 17649 printf %s "(cached) " >&6 17650else case e in #( 17651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17652/* end confdefs.h. */ 17653int i; 17654int 17655main (void) 17656{ 17657 17658 ; 17659 return 0; 17660} 17661_ACEOF 17662if ac_fn_c_try_link "$LINENO" 17663then : 17664 eval $cacheid=yes 17665else case e in #( 17666 e) eval $cacheid=no ;; 17667esac 17668fi 17669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17670 conftest$ac_exeext conftest.$ac_ext ;; 17671esac 17672fi 17673 17674 17675 CFLAGS="$xorg_testset_save_CFLAGS" 17676 17677 eval supported=\$$cacheid 17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17679printf "%s\n" "$supported" >&6; } 17680 if test "$supported" = "yes" ; then 17681 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17682 found="yes" 17683 fi 17684 fi 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700xorg_testset_save_CFLAGS="$CFLAGS" 17701 17702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17706if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17707then : 17708 printf %s "(cached) " >&6 17709else case e in #( 17710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712int i; 17713_ACEOF 17714if ac_fn_c_try_compile "$LINENO" 17715then : 17716 xorg_cv_cc_flag_unknown_warning_option=yes 17717else case e in #( 17718 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17719esac 17720fi 17721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17722esac 17723fi 17724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17727 CFLAGS="$xorg_testset_save_CFLAGS" 17728fi 17729 17730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17733 fi 17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17738then : 17739 printf %s "(cached) " >&6 17740else case e in #( 17741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17742/* end confdefs.h. */ 17743int i; 17744_ACEOF 17745if ac_fn_c_try_compile "$LINENO" 17746then : 17747 xorg_cv_cc_flag_unused_command_line_argument=yes 17748else case e in #( 17749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17750esac 17751fi 17752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17753esac 17754fi 17755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17758 CFLAGS="$xorg_testset_save_CFLAGS" 17759fi 17760 17761found="no" 17762 17763 if test $found = "no" ; then 17764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17766 fi 17767 17768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17770 fi 17771 17772 CFLAGS="$CFLAGS -Wnonnull" 17773 17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17775printf %s "checking if $CC supports -Wnonnull... " >&6; } 17776 cacheid=xorg_cv_cc_flag__Wnonnull 17777 if eval test \${$cacheid+y} 17778then : 17779 printf %s "(cached) " >&6 17780else case e in #( 17781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17782/* end confdefs.h. */ 17783int i; 17784int 17785main (void) 17786{ 17787 17788 ; 17789 return 0; 17790} 17791_ACEOF 17792if ac_fn_c_try_link "$LINENO" 17793then : 17794 eval $cacheid=yes 17795else case e in #( 17796 e) eval $cacheid=no ;; 17797esac 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17800 conftest$ac_exeext conftest.$ac_ext ;; 17801esac 17802fi 17803 17804 17805 CFLAGS="$xorg_testset_save_CFLAGS" 17806 17807 eval supported=\$$cacheid 17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17809printf "%s\n" "$supported" >&6; } 17810 if test "$supported" = "yes" ; then 17811 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17812 found="yes" 17813 fi 17814 fi 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830xorg_testset_save_CFLAGS="$CFLAGS" 17831 17832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17837then : 17838 printf %s "(cached) " >&6 17839else case e in #( 17840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841/* end confdefs.h. */ 17842int i; 17843_ACEOF 17844if ac_fn_c_try_compile "$LINENO" 17845then : 17846 xorg_cv_cc_flag_unknown_warning_option=yes 17847else case e in #( 17848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17849esac 17850fi 17851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17852esac 17853fi 17854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17857 CFLAGS="$xorg_testset_save_CFLAGS" 17858fi 17859 17860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17863 fi 17864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17867if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17868then : 17869 printf %s "(cached) " >&6 17870else case e in #( 17871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873int i; 17874_ACEOF 17875if ac_fn_c_try_compile "$LINENO" 17876then : 17877 xorg_cv_cc_flag_unused_command_line_argument=yes 17878else case e in #( 17879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17880esac 17881fi 17882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17883esac 17884fi 17885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17888 CFLAGS="$xorg_testset_save_CFLAGS" 17889fi 17890 17891found="no" 17892 17893 if test $found = "no" ; then 17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17896 fi 17897 17898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17900 fi 17901 17902 CFLAGS="$CFLAGS -Winit-self" 17903 17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17905printf %s "checking if $CC supports -Winit-self... " >&6; } 17906 cacheid=xorg_cv_cc_flag__Winit_self 17907 if eval test \${$cacheid+y} 17908then : 17909 printf %s "(cached) " >&6 17910else case e in #( 17911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17912/* end confdefs.h. */ 17913int i; 17914int 17915main (void) 17916{ 17917 17918 ; 17919 return 0; 17920} 17921_ACEOF 17922if ac_fn_c_try_link "$LINENO" 17923then : 17924 eval $cacheid=yes 17925else case e in #( 17926 e) eval $cacheid=no ;; 17927esac 17928fi 17929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17930 conftest$ac_exeext conftest.$ac_ext ;; 17931esac 17932fi 17933 17934 17935 CFLAGS="$xorg_testset_save_CFLAGS" 17936 17937 eval supported=\$$cacheid 17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17939printf "%s\n" "$supported" >&6; } 17940 if test "$supported" = "yes" ; then 17941 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17942 found="yes" 17943 fi 17944 fi 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960xorg_testset_save_CFLAGS="$CFLAGS" 17961 17962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17967then : 17968 printf %s "(cached) " >&6 17969else case e in #( 17970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971/* end confdefs.h. */ 17972int i; 17973_ACEOF 17974if ac_fn_c_try_compile "$LINENO" 17975then : 17976 xorg_cv_cc_flag_unknown_warning_option=yes 17977else case e in #( 17978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17979esac 17980fi 17981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17982esac 17983fi 17984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17987 CFLAGS="$xorg_testset_save_CFLAGS" 17988fi 17989 17990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17993 fi 17994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17998then : 17999 printf %s "(cached) " >&6 18000else case e in #( 18001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18002/* end confdefs.h. */ 18003int i; 18004_ACEOF 18005if ac_fn_c_try_compile "$LINENO" 18006then : 18007 xorg_cv_cc_flag_unused_command_line_argument=yes 18008else case e in #( 18009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18010esac 18011fi 18012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18013esac 18014fi 18015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18018 CFLAGS="$xorg_testset_save_CFLAGS" 18019fi 18020 18021found="no" 18022 18023 if test $found = "no" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18030 fi 18031 18032 CFLAGS="$CFLAGS -Wmain" 18033 18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18035printf %s "checking if $CC supports -Wmain... " >&6; } 18036 cacheid=xorg_cv_cc_flag__Wmain 18037 if eval test \${$cacheid+y} 18038then : 18039 printf %s "(cached) " >&6 18040else case e in #( 18041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18042/* end confdefs.h. */ 18043int i; 18044int 18045main (void) 18046{ 18047 18048 ; 18049 return 0; 18050} 18051_ACEOF 18052if ac_fn_c_try_link "$LINENO" 18053then : 18054 eval $cacheid=yes 18055else case e in #( 18056 e) eval $cacheid=no ;; 18057esac 18058fi 18059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18060 conftest$ac_exeext conftest.$ac_ext ;; 18061esac 18062fi 18063 18064 18065 CFLAGS="$xorg_testset_save_CFLAGS" 18066 18067 eval supported=\$$cacheid 18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18069printf "%s\n" "$supported" >&6; } 18070 if test "$supported" = "yes" ; then 18071 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18072 found="yes" 18073 fi 18074 fi 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090xorg_testset_save_CFLAGS="$CFLAGS" 18091 18092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18097then : 18098 printf %s "(cached) " >&6 18099else case e in #( 18100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18101/* end confdefs.h. */ 18102int i; 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO" 18105then : 18106 xorg_cv_cc_flag_unknown_warning_option=yes 18107else case e in #( 18108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18109esac 18110fi 18111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18112esac 18113fi 18114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18117 CFLAGS="$xorg_testset_save_CFLAGS" 18118fi 18119 18120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18123 fi 18124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18128then : 18129 printf %s "(cached) " >&6 18130else case e in #( 18131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133int i; 18134_ACEOF 18135if ac_fn_c_try_compile "$LINENO" 18136then : 18137 xorg_cv_cc_flag_unused_command_line_argument=yes 18138else case e in #( 18139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18140esac 18141fi 18142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18143esac 18144fi 18145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18148 CFLAGS="$xorg_testset_save_CFLAGS" 18149fi 18150 18151found="no" 18152 18153 if test $found = "no" ; then 18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18156 fi 18157 18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18160 fi 18161 18162 CFLAGS="$CFLAGS -Wmissing-braces" 18163 18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18165printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18166 cacheid=xorg_cv_cc_flag__Wmissing_braces 18167 if eval test \${$cacheid+y} 18168then : 18169 printf %s "(cached) " >&6 18170else case e in #( 18171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18172/* end confdefs.h. */ 18173int i; 18174int 18175main (void) 18176{ 18177 18178 ; 18179 return 0; 18180} 18181_ACEOF 18182if ac_fn_c_try_link "$LINENO" 18183then : 18184 eval $cacheid=yes 18185else case e in #( 18186 e) eval $cacheid=no ;; 18187esac 18188fi 18189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18190 conftest$ac_exeext conftest.$ac_ext ;; 18191esac 18192fi 18193 18194 18195 CFLAGS="$xorg_testset_save_CFLAGS" 18196 18197 eval supported=\$$cacheid 18198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18199printf "%s\n" "$supported" >&6; } 18200 if test "$supported" = "yes" ; then 18201 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18202 found="yes" 18203 fi 18204 fi 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220xorg_testset_save_CFLAGS="$CFLAGS" 18221 18222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18227then : 18228 printf %s "(cached) " >&6 18229else case e in #( 18230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232int i; 18233_ACEOF 18234if ac_fn_c_try_compile "$LINENO" 18235then : 18236 xorg_cv_cc_flag_unknown_warning_option=yes 18237else case e in #( 18238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18239esac 18240fi 18241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18242esac 18243fi 18244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18247 CFLAGS="$xorg_testset_save_CFLAGS" 18248fi 18249 18250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18253 fi 18254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18258then : 18259 printf %s "(cached) " >&6 18260else case e in #( 18261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262/* end confdefs.h. */ 18263int i; 18264_ACEOF 18265if ac_fn_c_try_compile "$LINENO" 18266then : 18267 xorg_cv_cc_flag_unused_command_line_argument=yes 18268else case e in #( 18269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18270esac 18271fi 18272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18273esac 18274fi 18275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18278 CFLAGS="$xorg_testset_save_CFLAGS" 18279fi 18280 18281found="no" 18282 18283 if test $found = "no" ; then 18284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18286 fi 18287 18288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18290 fi 18291 18292 CFLAGS="$CFLAGS -Wsequence-point" 18293 18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18295printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18296 cacheid=xorg_cv_cc_flag__Wsequence_point 18297 if eval test \${$cacheid+y} 18298then : 18299 printf %s "(cached) " >&6 18300else case e in #( 18301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18302/* end confdefs.h. */ 18303int i; 18304int 18305main (void) 18306{ 18307 18308 ; 18309 return 0; 18310} 18311_ACEOF 18312if ac_fn_c_try_link "$LINENO" 18313then : 18314 eval $cacheid=yes 18315else case e in #( 18316 e) eval $cacheid=no ;; 18317esac 18318fi 18319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18320 conftest$ac_exeext conftest.$ac_ext ;; 18321esac 18322fi 18323 18324 18325 CFLAGS="$xorg_testset_save_CFLAGS" 18326 18327 eval supported=\$$cacheid 18328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18329printf "%s\n" "$supported" >&6; } 18330 if test "$supported" = "yes" ; then 18331 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18332 found="yes" 18333 fi 18334 fi 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350xorg_testset_save_CFLAGS="$CFLAGS" 18351 18352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18357then : 18358 printf %s "(cached) " >&6 18359else case e in #( 18360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18361/* end confdefs.h. */ 18362int i; 18363_ACEOF 18364if ac_fn_c_try_compile "$LINENO" 18365then : 18366 xorg_cv_cc_flag_unknown_warning_option=yes 18367else case e in #( 18368 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18369esac 18370fi 18371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18372esac 18373fi 18374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18377 CFLAGS="$xorg_testset_save_CFLAGS" 18378fi 18379 18380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18383 fi 18384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18387if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18388then : 18389 printf %s "(cached) " >&6 18390else case e in #( 18391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18392/* end confdefs.h. */ 18393int i; 18394_ACEOF 18395if ac_fn_c_try_compile "$LINENO" 18396then : 18397 xorg_cv_cc_flag_unused_command_line_argument=yes 18398else case e in #( 18399 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18400esac 18401fi 18402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18403esac 18404fi 18405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18408 CFLAGS="$xorg_testset_save_CFLAGS" 18409fi 18410 18411found="no" 18412 18413 if test $found = "no" ; then 18414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18416 fi 18417 18418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18420 fi 18421 18422 CFLAGS="$CFLAGS -Wreturn-type" 18423 18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18425printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18426 cacheid=xorg_cv_cc_flag__Wreturn_type 18427 if eval test \${$cacheid+y} 18428then : 18429 printf %s "(cached) " >&6 18430else case e in #( 18431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18432/* end confdefs.h. */ 18433int i; 18434int 18435main (void) 18436{ 18437 18438 ; 18439 return 0; 18440} 18441_ACEOF 18442if ac_fn_c_try_link "$LINENO" 18443then : 18444 eval $cacheid=yes 18445else case e in #( 18446 e) eval $cacheid=no ;; 18447esac 18448fi 18449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18450 conftest$ac_exeext conftest.$ac_ext ;; 18451esac 18452fi 18453 18454 18455 CFLAGS="$xorg_testset_save_CFLAGS" 18456 18457 eval supported=\$$cacheid 18458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18459printf "%s\n" "$supported" >&6; } 18460 if test "$supported" = "yes" ; then 18461 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18462 found="yes" 18463 fi 18464 fi 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480xorg_testset_save_CFLAGS="$CFLAGS" 18481 18482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18487then : 18488 printf %s "(cached) " >&6 18489else case e in #( 18490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492int i; 18493_ACEOF 18494if ac_fn_c_try_compile "$LINENO" 18495then : 18496 xorg_cv_cc_flag_unknown_warning_option=yes 18497else case e in #( 18498 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18499esac 18500fi 18501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18502esac 18503fi 18504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18505printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18507 CFLAGS="$xorg_testset_save_CFLAGS" 18508fi 18509 18510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18513 fi 18514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18516printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18517if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18518then : 18519 printf %s "(cached) " >&6 18520else case e in #( 18521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18522/* end confdefs.h. */ 18523int i; 18524_ACEOF 18525if ac_fn_c_try_compile "$LINENO" 18526then : 18527 xorg_cv_cc_flag_unused_command_line_argument=yes 18528else case e in #( 18529 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18530esac 18531fi 18532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18533esac 18534fi 18535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18536printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18538 CFLAGS="$xorg_testset_save_CFLAGS" 18539fi 18540 18541found="no" 18542 18543 if test $found = "no" ; then 18544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18546 fi 18547 18548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18550 fi 18551 18552 CFLAGS="$CFLAGS -Wtrigraphs" 18553 18554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18555printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18556 cacheid=xorg_cv_cc_flag__Wtrigraphs 18557 if eval test \${$cacheid+y} 18558then : 18559 printf %s "(cached) " >&6 18560else case e in #( 18561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18562/* end confdefs.h. */ 18563int i; 18564int 18565main (void) 18566{ 18567 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572if ac_fn_c_try_link "$LINENO" 18573then : 18574 eval $cacheid=yes 18575else case e in #( 18576 e) eval $cacheid=no ;; 18577esac 18578fi 18579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18580 conftest$ac_exeext conftest.$ac_ext ;; 18581esac 18582fi 18583 18584 18585 CFLAGS="$xorg_testset_save_CFLAGS" 18586 18587 eval supported=\$$cacheid 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18589printf "%s\n" "$supported" >&6; } 18590 if test "$supported" = "yes" ; then 18591 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18592 found="yes" 18593 fi 18594 fi 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610xorg_testset_save_CFLAGS="$CFLAGS" 18611 18612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18616if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18617then : 18618 printf %s "(cached) " >&6 18619else case e in #( 18620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18621/* end confdefs.h. */ 18622int i; 18623_ACEOF 18624if ac_fn_c_try_compile "$LINENO" 18625then : 18626 xorg_cv_cc_flag_unknown_warning_option=yes 18627else case e in #( 18628 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18629esac 18630fi 18631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18632esac 18633fi 18634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18637 CFLAGS="$xorg_testset_save_CFLAGS" 18638fi 18639 18640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18643 fi 18644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18648then : 18649 printf %s "(cached) " >&6 18650else case e in #( 18651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18652/* end confdefs.h. */ 18653int i; 18654_ACEOF 18655if ac_fn_c_try_compile "$LINENO" 18656then : 18657 xorg_cv_cc_flag_unused_command_line_argument=yes 18658else case e in #( 18659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18660esac 18661fi 18662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18663esac 18664fi 18665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18668 CFLAGS="$xorg_testset_save_CFLAGS" 18669fi 18670 18671found="no" 18672 18673 if test $found = "no" ; then 18674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18676 fi 18677 18678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18680 fi 18681 18682 CFLAGS="$CFLAGS -Warray-bounds" 18683 18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18685printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18686 cacheid=xorg_cv_cc_flag__Warray_bounds 18687 if eval test \${$cacheid+y} 18688then : 18689 printf %s "(cached) " >&6 18690else case e in #( 18691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693int i; 18694int 18695main (void) 18696{ 18697 18698 ; 18699 return 0; 18700} 18701_ACEOF 18702if ac_fn_c_try_link "$LINENO" 18703then : 18704 eval $cacheid=yes 18705else case e in #( 18706 e) eval $cacheid=no ;; 18707esac 18708fi 18709rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18710 conftest$ac_exeext conftest.$ac_ext ;; 18711esac 18712fi 18713 18714 18715 CFLAGS="$xorg_testset_save_CFLAGS" 18716 18717 eval supported=\$$cacheid 18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18719printf "%s\n" "$supported" >&6; } 18720 if test "$supported" = "yes" ; then 18721 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18722 found="yes" 18723 fi 18724 fi 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740xorg_testset_save_CFLAGS="$CFLAGS" 18741 18742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18746if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18747then : 18748 printf %s "(cached) " >&6 18749else case e in #( 18750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18751/* end confdefs.h. */ 18752int i; 18753_ACEOF 18754if ac_fn_c_try_compile "$LINENO" 18755then : 18756 xorg_cv_cc_flag_unknown_warning_option=yes 18757else case e in #( 18758 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18759esac 18760fi 18761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18762esac 18763fi 18764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18767 CFLAGS="$xorg_testset_save_CFLAGS" 18768fi 18769 18770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18773 fi 18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18778then : 18779 printf %s "(cached) " >&6 18780else case e in #( 18781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18782/* end confdefs.h. */ 18783int i; 18784_ACEOF 18785if ac_fn_c_try_compile "$LINENO" 18786then : 18787 xorg_cv_cc_flag_unused_command_line_argument=yes 18788else case e in #( 18789 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18790esac 18791fi 18792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18793esac 18794fi 18795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18798 CFLAGS="$xorg_testset_save_CFLAGS" 18799fi 18800 18801found="no" 18802 18803 if test $found = "no" ; then 18804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18806 fi 18807 18808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18810 fi 18811 18812 CFLAGS="$CFLAGS -Wwrite-strings" 18813 18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18815printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18816 cacheid=xorg_cv_cc_flag__Wwrite_strings 18817 if eval test \${$cacheid+y} 18818then : 18819 printf %s "(cached) " >&6 18820else case e in #( 18821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18822/* end confdefs.h. */ 18823int i; 18824int 18825main (void) 18826{ 18827 18828 ; 18829 return 0; 18830} 18831_ACEOF 18832if ac_fn_c_try_link "$LINENO" 18833then : 18834 eval $cacheid=yes 18835else case e in #( 18836 e) eval $cacheid=no ;; 18837esac 18838fi 18839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18840 conftest$ac_exeext conftest.$ac_ext ;; 18841esac 18842fi 18843 18844 18845 CFLAGS="$xorg_testset_save_CFLAGS" 18846 18847 eval supported=\$$cacheid 18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18849printf "%s\n" "$supported" >&6; } 18850 if test "$supported" = "yes" ; then 18851 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18852 found="yes" 18853 fi 18854 fi 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870xorg_testset_save_CFLAGS="$CFLAGS" 18871 18872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18876if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18877then : 18878 printf %s "(cached) " >&6 18879else case e in #( 18880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18881/* end confdefs.h. */ 18882int i; 18883_ACEOF 18884if ac_fn_c_try_compile "$LINENO" 18885then : 18886 xorg_cv_cc_flag_unknown_warning_option=yes 18887else case e in #( 18888 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18889esac 18890fi 18891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18892esac 18893fi 18894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18895printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18897 CFLAGS="$xorg_testset_save_CFLAGS" 18898fi 18899 18900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18903 fi 18904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18906printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18907if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18908then : 18909 printf %s "(cached) " >&6 18910else case e in #( 18911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18912/* end confdefs.h. */ 18913int i; 18914_ACEOF 18915if ac_fn_c_try_compile "$LINENO" 18916then : 18917 xorg_cv_cc_flag_unused_command_line_argument=yes 18918else case e in #( 18919 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18920esac 18921fi 18922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18923esac 18924fi 18925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18928 CFLAGS="$xorg_testset_save_CFLAGS" 18929fi 18930 18931found="no" 18932 18933 if test $found = "no" ; then 18934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18936 fi 18937 18938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18940 fi 18941 18942 CFLAGS="$CFLAGS -Waddress" 18943 18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18945printf %s "checking if $CC supports -Waddress... " >&6; } 18946 cacheid=xorg_cv_cc_flag__Waddress 18947 if eval test \${$cacheid+y} 18948then : 18949 printf %s "(cached) " >&6 18950else case e in #( 18951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18952/* end confdefs.h. */ 18953int i; 18954int 18955main (void) 18956{ 18957 18958 ; 18959 return 0; 18960} 18961_ACEOF 18962if ac_fn_c_try_link "$LINENO" 18963then : 18964 eval $cacheid=yes 18965else case e in #( 18966 e) eval $cacheid=no ;; 18967esac 18968fi 18969rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18970 conftest$ac_exeext conftest.$ac_ext ;; 18971esac 18972fi 18973 18974 18975 CFLAGS="$xorg_testset_save_CFLAGS" 18976 18977 eval supported=\$$cacheid 18978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18979printf "%s\n" "$supported" >&6; } 18980 if test "$supported" = "yes" ; then 18981 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18982 found="yes" 18983 fi 18984 fi 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000xorg_testset_save_CFLAGS="$CFLAGS" 19001 19002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19006if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19007then : 19008 printf %s "(cached) " >&6 19009else case e in #( 19010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19011/* end confdefs.h. */ 19012int i; 19013_ACEOF 19014if ac_fn_c_try_compile "$LINENO" 19015then : 19016 xorg_cv_cc_flag_unknown_warning_option=yes 19017else case e in #( 19018 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19019esac 19020fi 19021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19022esac 19023fi 19024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19025printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19027 CFLAGS="$xorg_testset_save_CFLAGS" 19028fi 19029 19030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19033 fi 19034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19036printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19037if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19038then : 19039 printf %s "(cached) " >&6 19040else case e in #( 19041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19042/* end confdefs.h. */ 19043int i; 19044_ACEOF 19045if ac_fn_c_try_compile "$LINENO" 19046then : 19047 xorg_cv_cc_flag_unused_command_line_argument=yes 19048else case e in #( 19049 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19050esac 19051fi 19052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19053esac 19054fi 19055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19056printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19058 CFLAGS="$xorg_testset_save_CFLAGS" 19059fi 19060 19061found="no" 19062 19063 if test $found = "no" ; then 19064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19066 fi 19067 19068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19070 fi 19071 19072 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19073 19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19075printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19076 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19077 if eval test \${$cacheid+y} 19078then : 19079 printf %s "(cached) " >&6 19080else case e in #( 19081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19082/* end confdefs.h. */ 19083int i; 19084int 19085main (void) 19086{ 19087 19088 ; 19089 return 0; 19090} 19091_ACEOF 19092if ac_fn_c_try_link "$LINENO" 19093then : 19094 eval $cacheid=yes 19095else case e in #( 19096 e) eval $cacheid=no ;; 19097esac 19098fi 19099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19100 conftest$ac_exeext conftest.$ac_ext ;; 19101esac 19102fi 19103 19104 19105 CFLAGS="$xorg_testset_save_CFLAGS" 19106 19107 eval supported=\$$cacheid 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19109printf "%s\n" "$supported" >&6; } 19110 if test "$supported" = "yes" ; then 19111 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19112 found="yes" 19113 fi 19114 fi 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130xorg_testset_save_CFLAGS="$CFLAGS" 19131 19132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19136if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19137then : 19138 printf %s "(cached) " >&6 19139else case e in #( 19140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19141/* end confdefs.h. */ 19142int i; 19143_ACEOF 19144if ac_fn_c_try_compile "$LINENO" 19145then : 19146 xorg_cv_cc_flag_unknown_warning_option=yes 19147else case e in #( 19148 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19149esac 19150fi 19151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19152esac 19153fi 19154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19157 CFLAGS="$xorg_testset_save_CFLAGS" 19158fi 19159 19160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19163 fi 19164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19167if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19168then : 19169 printf %s "(cached) " >&6 19170else case e in #( 19171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19172/* end confdefs.h. */ 19173int i; 19174_ACEOF 19175if ac_fn_c_try_compile "$LINENO" 19176then : 19177 xorg_cv_cc_flag_unused_command_line_argument=yes 19178else case e in #( 19179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19180esac 19181fi 19182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19183esac 19184fi 19185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19188 CFLAGS="$xorg_testset_save_CFLAGS" 19189fi 19190 19191found="no" 19192 19193 if test $found = "no" ; then 19194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19196 fi 19197 19198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19200 fi 19201 19202 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19203 19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19205printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19206 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19207 if eval test \${$cacheid+y} 19208then : 19209 printf %s "(cached) " >&6 19210else case e in #( 19211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19212/* end confdefs.h. */ 19213int i; 19214int 19215main (void) 19216{ 19217 19218 ; 19219 return 0; 19220} 19221_ACEOF 19222if ac_fn_c_try_link "$LINENO" 19223then : 19224 eval $cacheid=yes 19225else case e in #( 19226 e) eval $cacheid=no ;; 19227esac 19228fi 19229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19230 conftest$ac_exeext conftest.$ac_ext ;; 19231esac 19232fi 19233 19234 19235 CFLAGS="$xorg_testset_save_CFLAGS" 19236 19237 eval supported=\$$cacheid 19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19239printf "%s\n" "$supported" >&6; } 19240 if test "$supported" = "yes" ; then 19241 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19242 found="yes" 19243 fi 19244 fi 19245 19246 19247fi 19248 19249 19250 19251 19252 19253 19254 19255 CWARNFLAGS="$BASE_CFLAGS" 19256 if test "x$GCC" = xyes ; then 19257 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19258 fi 19259 19260 19261 19262 19263 19264 19265 19266 19267# Check whether --enable-strict-compilation was given. 19268if test ${enable_strict_compilation+y} 19269then : 19270 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19271else case e in #( 19272 e) STRICT_COMPILE=no ;; 19273esac 19274fi 19275 19276 19277 19278 19279 19280 19281STRICT_CFLAGS="" 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295xorg_testset_save_CFLAGS="$CFLAGS" 19296 19297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19302then : 19303 printf %s "(cached) " >&6 19304else case e in #( 19305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19306/* end confdefs.h. */ 19307int i; 19308_ACEOF 19309if ac_fn_c_try_compile "$LINENO" 19310then : 19311 xorg_cv_cc_flag_unknown_warning_option=yes 19312else case e in #( 19313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19314esac 19315fi 19316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19317esac 19318fi 19319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19322 CFLAGS="$xorg_testset_save_CFLAGS" 19323fi 19324 19325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19328 fi 19329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19333then : 19334 printf %s "(cached) " >&6 19335else case e in #( 19336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19337/* end confdefs.h. */ 19338int i; 19339_ACEOF 19340if ac_fn_c_try_compile "$LINENO" 19341then : 19342 xorg_cv_cc_flag_unused_command_line_argument=yes 19343else case e in #( 19344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19345esac 19346fi 19347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19348esac 19349fi 19350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19353 CFLAGS="$xorg_testset_save_CFLAGS" 19354fi 19355 19356found="no" 19357 19358 if test $found = "no" ; then 19359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19361 fi 19362 19363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19365 fi 19366 19367 CFLAGS="$CFLAGS -pedantic" 19368 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19370printf %s "checking if $CC supports -pedantic... " >&6; } 19371 cacheid=xorg_cv_cc_flag__pedantic 19372 if eval test \${$cacheid+y} 19373then : 19374 printf %s "(cached) " >&6 19375else case e in #( 19376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19377/* end confdefs.h. */ 19378int i; 19379int 19380main (void) 19381{ 19382 19383 ; 19384 return 0; 19385} 19386_ACEOF 19387if ac_fn_c_try_link "$LINENO" 19388then : 19389 eval $cacheid=yes 19390else case e in #( 19391 e) eval $cacheid=no ;; 19392esac 19393fi 19394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19395 conftest$ac_exeext conftest.$ac_ext ;; 19396esac 19397fi 19398 19399 19400 CFLAGS="$xorg_testset_save_CFLAGS" 19401 19402 eval supported=\$$cacheid 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19404printf "%s\n" "$supported" >&6; } 19405 if test "$supported" = "yes" ; then 19406 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19407 found="yes" 19408 fi 19409 fi 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425xorg_testset_save_CFLAGS="$CFLAGS" 19426 19427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19431if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19432then : 19433 printf %s "(cached) " >&6 19434else case e in #( 19435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19436/* end confdefs.h. */ 19437int i; 19438_ACEOF 19439if ac_fn_c_try_compile "$LINENO" 19440then : 19441 xorg_cv_cc_flag_unknown_warning_option=yes 19442else case e in #( 19443 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19444esac 19445fi 19446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19447esac 19448fi 19449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19452 CFLAGS="$xorg_testset_save_CFLAGS" 19453fi 19454 19455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19458 fi 19459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19462if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19463then : 19464 printf %s "(cached) " >&6 19465else case e in #( 19466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19467/* end confdefs.h. */ 19468int i; 19469_ACEOF 19470if ac_fn_c_try_compile "$LINENO" 19471then : 19472 xorg_cv_cc_flag_unused_command_line_argument=yes 19473else case e in #( 19474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19475esac 19476fi 19477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19478esac 19479fi 19480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19483 CFLAGS="$xorg_testset_save_CFLAGS" 19484fi 19485 19486found="no" 19487 19488 if test $found = "no" ; then 19489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19491 fi 19492 19493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19495 fi 19496 19497 CFLAGS="$CFLAGS -Werror" 19498 19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19500printf %s "checking if $CC supports -Werror... " >&6; } 19501 cacheid=xorg_cv_cc_flag__Werror 19502 if eval test \${$cacheid+y} 19503then : 19504 printf %s "(cached) " >&6 19505else case e in #( 19506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19507/* end confdefs.h. */ 19508int i; 19509int 19510main (void) 19511{ 19512 19513 ; 19514 return 0; 19515} 19516_ACEOF 19517if ac_fn_c_try_link "$LINENO" 19518then : 19519 eval $cacheid=yes 19520else case e in #( 19521 e) eval $cacheid=no ;; 19522esac 19523fi 19524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19525 conftest$ac_exeext conftest.$ac_ext ;; 19526esac 19527fi 19528 19529 19530 CFLAGS="$xorg_testset_save_CFLAGS" 19531 19532 eval supported=\$$cacheid 19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19534printf "%s\n" "$supported" >&6; } 19535 if test "$supported" = "yes" ; then 19536 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19537 found="yes" 19538 fi 19539 fi 19540 19541 if test $found = "no" ; then 19542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19544 fi 19545 19546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19548 fi 19549 19550 CFLAGS="$CFLAGS -errwarn" 19551 19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19553printf %s "checking if $CC supports -errwarn... " >&6; } 19554 cacheid=xorg_cv_cc_flag__errwarn 19555 if eval test \${$cacheid+y} 19556then : 19557 printf %s "(cached) " >&6 19558else case e in #( 19559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19560/* end confdefs.h. */ 19561int i; 19562int 19563main (void) 19564{ 19565 19566 ; 19567 return 0; 19568} 19569_ACEOF 19570if ac_fn_c_try_link "$LINENO" 19571then : 19572 eval $cacheid=yes 19573else case e in #( 19574 e) eval $cacheid=no ;; 19575esac 19576fi 19577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19578 conftest$ac_exeext conftest.$ac_ext ;; 19579esac 19580fi 19581 19582 19583 CFLAGS="$xorg_testset_save_CFLAGS" 19584 19585 eval supported=\$$cacheid 19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19587printf "%s\n" "$supported" >&6; } 19588 if test "$supported" = "yes" ; then 19589 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19590 found="yes" 19591 fi 19592 fi 19593 19594 19595 19596# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19597# activate it with -Werror, so we add it here explicitly. 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611xorg_testset_save_CFLAGS="$CFLAGS" 19612 19613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19617if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19618then : 19619 printf %s "(cached) " >&6 19620else case e in #( 19621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19622/* end confdefs.h. */ 19623int i; 19624_ACEOF 19625if ac_fn_c_try_compile "$LINENO" 19626then : 19627 xorg_cv_cc_flag_unknown_warning_option=yes 19628else case e in #( 19629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19630esac 19631fi 19632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19633esac 19634fi 19635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19638 CFLAGS="$xorg_testset_save_CFLAGS" 19639fi 19640 19641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19644 fi 19645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19649then : 19650 printf %s "(cached) " >&6 19651else case e in #( 19652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19653/* end confdefs.h. */ 19654int i; 19655_ACEOF 19656if ac_fn_c_try_compile "$LINENO" 19657then : 19658 xorg_cv_cc_flag_unused_command_line_argument=yes 19659else case e in #( 19660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19661esac 19662fi 19663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19664esac 19665fi 19666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19669 CFLAGS="$xorg_testset_save_CFLAGS" 19670fi 19671 19672found="no" 19673 19674 if test $found = "no" ; then 19675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19677 fi 19678 19679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19681 fi 19682 19683 CFLAGS="$CFLAGS -Werror=attributes" 19684 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19686printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19687 cacheid=xorg_cv_cc_flag__Werror_attributes 19688 if eval test \${$cacheid+y} 19689then : 19690 printf %s "(cached) " >&6 19691else case e in #( 19692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19693/* end confdefs.h. */ 19694int i; 19695int 19696main (void) 19697{ 19698 19699 ; 19700 return 0; 19701} 19702_ACEOF 19703if ac_fn_c_try_link "$LINENO" 19704then : 19705 eval $cacheid=yes 19706else case e in #( 19707 e) eval $cacheid=no ;; 19708esac 19709fi 19710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19711 conftest$ac_exeext conftest.$ac_ext ;; 19712esac 19713fi 19714 19715 19716 CFLAGS="$xorg_testset_save_CFLAGS" 19717 19718 eval supported=\$$cacheid 19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19720printf "%s\n" "$supported" >&6; } 19721 if test "$supported" = "yes" ; then 19722 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19723 found="yes" 19724 fi 19725 fi 19726 19727 19728 19729if test "x$STRICT_COMPILE" = "xyes"; then 19730 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19731 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19732fi 19733 19734 19735 19736 19737 19738 19739 19740 19741cat >>confdefs.h <<_ACEOF 19742#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19743_ACEOF 19744 19745 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19746 if test "x$PVM" = "x"; then 19747 PVM="0" 19748 fi 19749 19750printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19751 19752 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19753 if test "x$PVP" = "x"; then 19754 PVP="0" 19755 fi 19756 19757printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19758 19759 19760 19761CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19762mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19763|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19764touch \$(top_srcdir)/ChangeLog; \ 19765echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19766 19767 19768 19769 19770macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19771INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19772mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19773|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19774touch \$(top_srcdir)/INSTALL; \ 19775echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19776 19777 19778 19779 19780 19781 19782case $host_os in 19783 solaris*) 19784 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19785 # check for a man page file found in later versions that use 19786 # traditional section numbers instead 19787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19788printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19789if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19790then : 19791 printf %s "(cached) " >&6 19792else case e in #( 19793 e) test "$cross_compiling" = yes && 19794 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19795if test -r "/usr/share/man/man7/attributes.7"; then 19796 ac_cv_file__usr_share_man_man7_attributes_7=yes 19797else 19798 ac_cv_file__usr_share_man_man7_attributes_7=no 19799fi ;; 19800esac 19801fi 19802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19803printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19804if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19805then : 19806 SYSV_MAN_SECTIONS=false 19807else case e in #( 19808 e) SYSV_MAN_SECTIONS=true ;; 19809esac 19810fi 19811 19812 ;; 19813 *) SYSV_MAN_SECTIONS=false ;; 19814esac 19815 19816if test x$APP_MAN_SUFFIX = x ; then 19817 APP_MAN_SUFFIX=1 19818fi 19819if test x$APP_MAN_DIR = x ; then 19820 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19821fi 19822 19823if test x$LIB_MAN_SUFFIX = x ; then 19824 LIB_MAN_SUFFIX=3 19825fi 19826if test x$LIB_MAN_DIR = x ; then 19827 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19828fi 19829 19830if test x$FILE_MAN_SUFFIX = x ; then 19831 case $SYSV_MAN_SECTIONS in 19832 true) FILE_MAN_SUFFIX=4 ;; 19833 *) FILE_MAN_SUFFIX=5 ;; 19834 esac 19835fi 19836if test x$FILE_MAN_DIR = x ; then 19837 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19838fi 19839 19840if test x$MISC_MAN_SUFFIX = x ; then 19841 case $SYSV_MAN_SECTIONS in 19842 true) MISC_MAN_SUFFIX=5 ;; 19843 *) MISC_MAN_SUFFIX=7 ;; 19844 esac 19845fi 19846if test x$MISC_MAN_DIR = x ; then 19847 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19848fi 19849 19850if test x$DRIVER_MAN_SUFFIX = x ; then 19851 case $SYSV_MAN_SECTIONS in 19852 true) DRIVER_MAN_SUFFIX=7 ;; 19853 *) DRIVER_MAN_SUFFIX=4 ;; 19854 esac 19855fi 19856if test x$DRIVER_MAN_DIR = x ; then 19857 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19858fi 19859 19860if test x$ADMIN_MAN_SUFFIX = x ; then 19861 case $SYSV_MAN_SECTIONS in 19862 true) ADMIN_MAN_SUFFIX=1m ;; 19863 *) ADMIN_MAN_SUFFIX=8 ;; 19864 esac 19865fi 19866if test x$ADMIN_MAN_DIR = x ; then 19867 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19868fi 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884XORG_MAN_PAGE="X Version 11" 19885 19886MAN_SUBSTS="\ 19887 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19888 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19889 -e 's|__xservername__|Xorg|g' \ 19890 -e 's|__xconfigfile__|xorg.conf|g' \ 19891 -e 's|__projectroot__|\$(prefix)|g' \ 19892 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19893 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19894 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19895 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19896 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19897 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19898 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19899 19900 19901 19902 19903AM_DEFAULT_VERBOSITY=0 19904 19905 19906 19907 19908# Check whether --enable-specs was given. 19909if test ${enable_specs+y} 19910then : 19911 enableval=$enable_specs; build_specs=$enableval 19912else case e in #( 19913 e) build_specs=yes ;; 19914esac 19915fi 19916 19917 19918 if test x$build_specs = xyes; then 19919 ENABLE_SPECS_TRUE= 19920 ENABLE_SPECS_FALSE='#' 19921else 19922 ENABLE_SPECS_TRUE='#' 19923 ENABLE_SPECS_FALSE= 19924fi 19925 19926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19927printf %s "checking whether to build functional specifications... " >&6; } 19928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19929printf "%s\n" "$build_specs" >&6; } 19930 19931 19932 19933 19934 19935# Check whether --with-xmlto was given. 19936if test ${with_xmlto+y} 19937then : 19938 withval=$with_xmlto; use_xmlto=$withval 19939else case e in #( 19940 e) use_xmlto=auto ;; 19941esac 19942fi 19943 19944 19945 19946if test "x$use_xmlto" = x"auto"; then 19947 # Extract the first word of "xmlto", so it can be a program name with args. 19948set dummy xmlto; ac_word=$2 19949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19950printf %s "checking for $ac_word... " >&6; } 19951if test ${ac_cv_path_XMLTO+y} 19952then : 19953 printf %s "(cached) " >&6 19954else case e in #( 19955 e) case $XMLTO in 19956 [\\/]* | ?:[\\/]*) 19957 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19958 ;; 19959 *) 19960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19961for as_dir in $PATH 19962do 19963 IFS=$as_save_IFS 19964 case $as_dir in #((( 19965 '') as_dir=./ ;; 19966 */) ;; 19967 *) as_dir=$as_dir/ ;; 19968 esac 19969 for ac_exec_ext in '' $ac_executable_extensions; do 19970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19971 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19973 break 2 19974 fi 19975done 19976 done 19977IFS=$as_save_IFS 19978 19979 ;; 19980esac ;; 19981esac 19982fi 19983XMLTO=$ac_cv_path_XMLTO 19984if test -n "$XMLTO"; then 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19986printf "%s\n" "$XMLTO" >&6; } 19987else 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19989printf "%s\n" "no" >&6; } 19990fi 19991 19992 19993 if test "x$XMLTO" = "x"; then 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19995printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19996 have_xmlto=no 19997 else 19998 have_xmlto=yes 19999 fi 20000elif test "x$use_xmlto" = x"yes" ; then 20001 # Extract the first word of "xmlto", so it can be a program name with args. 20002set dummy xmlto; ac_word=$2 20003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20004printf %s "checking for $ac_word... " >&6; } 20005if test ${ac_cv_path_XMLTO+y} 20006then : 20007 printf %s "(cached) " >&6 20008else case e in #( 20009 e) case $XMLTO in 20010 [\\/]* | ?:[\\/]*) 20011 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20012 ;; 20013 *) 20014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20015for as_dir in $PATH 20016do 20017 IFS=$as_save_IFS 20018 case $as_dir in #((( 20019 '') as_dir=./ ;; 20020 */) ;; 20021 *) as_dir=$as_dir/ ;; 20022 esac 20023 for ac_exec_ext in '' $ac_executable_extensions; do 20024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20025 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20027 break 2 20028 fi 20029done 20030 done 20031IFS=$as_save_IFS 20032 20033 ;; 20034esac ;; 20035esac 20036fi 20037XMLTO=$ac_cv_path_XMLTO 20038if test -n "$XMLTO"; then 20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20040printf "%s\n" "$XMLTO" >&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$XMLTO" = "x"; then 20048 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20049 fi 20050 have_xmlto=yes 20051elif test "x$use_xmlto" = x"no" ; then 20052 if test "x$XMLTO" != "x"; then 20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20054printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20055 fi 20056 have_xmlto=no 20057else 20058 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20059fi 20060 20061# Test for a minimum version of xmlto, if provided. 20062if test "$have_xmlto" = yes; then 20063 # scrape the xmlto version 20064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20065printf %s "checking the xmlto version... " >&6; } 20066 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20068printf "%s\n" "$xmlto_version" >&6; } 20069 as_arg_v1=$xmlto_version 20070as_arg_v2=0.0.22 20071awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20072case $? in #( 20073 1) : 20074 if test "x$use_xmlto" = xauto; then 20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20076printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20077 have_xmlto=no 20078 else 20079 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20080 fi ;; #( 20081 0) : 20082 ;; #( 20083 2) : 20084 ;; #( 20085 *) : 20086 ;; 20087esac 20088fi 20089 20090# Test for the ability of xmlto to generate a text target 20091# 20092# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20093# following test for empty XML docbook files. 20094# For compatibility reasons use the following empty XML docbook file and if 20095# it fails try it again with a non-empty XML file. 20096have_xmlto_text=no 20097cat > conftest.xml << "EOF" 20098EOF 20099if test "$have_xmlto" = yes 20100then : 20101 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20102then : 20103 have_xmlto_text=yes 20104else case e in #( 20105 e) # Try it again with a non-empty XML file. 20106 cat > conftest.xml << "EOF" 20107<x></x> 20108EOF 20109 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20110then : 20111 have_xmlto_text=yes 20112else case e in #( 20113 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20114printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20115esac 20116fi ;; 20117esac 20118fi 20119fi 20120rm -f conftest.xml 20121 if test $have_xmlto_text = yes; then 20122 HAVE_XMLTO_TEXT_TRUE= 20123 HAVE_XMLTO_TEXT_FALSE='#' 20124else 20125 HAVE_XMLTO_TEXT_TRUE='#' 20126 HAVE_XMLTO_TEXT_FALSE= 20127fi 20128 20129 if test "$have_xmlto" = yes; then 20130 HAVE_XMLTO_TRUE= 20131 HAVE_XMLTO_FALSE='#' 20132else 20133 HAVE_XMLTO_TRUE='#' 20134 HAVE_XMLTO_FALSE= 20135fi 20136 20137 20138 20139 20140 20141 20142# Check whether --with-fop was given. 20143if test ${with_fop+y} 20144then : 20145 withval=$with_fop; use_fop=$withval 20146else case e in #( 20147 e) use_fop=auto ;; 20148esac 20149fi 20150 20151 20152 20153if test "x$use_fop" = x"auto"; then 20154 # Extract the first word of "fop", so it can be a program name with args. 20155set dummy fop; ac_word=$2 20156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20157printf %s "checking for $ac_word... " >&6; } 20158if test ${ac_cv_path_FOP+y} 20159then : 20160 printf %s "(cached) " >&6 20161else case e in #( 20162 e) case $FOP in 20163 [\\/]* | ?:[\\/]*) 20164 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20165 ;; 20166 *) 20167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20168for as_dir in $PATH 20169do 20170 IFS=$as_save_IFS 20171 case $as_dir in #((( 20172 '') as_dir=./ ;; 20173 */) ;; 20174 *) as_dir=$as_dir/ ;; 20175 esac 20176 for ac_exec_ext in '' $ac_executable_extensions; do 20177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20178 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20180 break 2 20181 fi 20182done 20183 done 20184IFS=$as_save_IFS 20185 20186 ;; 20187esac ;; 20188esac 20189fi 20190FOP=$ac_cv_path_FOP 20191if test -n "$FOP"; then 20192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20193printf "%s\n" "$FOP" >&6; } 20194else 20195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20196printf "%s\n" "no" >&6; } 20197fi 20198 20199 20200 if test "x$FOP" = "x"; then 20201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20202printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20203 have_fop=no 20204 else 20205 have_fop=yes 20206 fi 20207elif test "x$use_fop" = x"yes" ; then 20208 # Extract the first word of "fop", so it can be a program name with args. 20209set dummy fop; ac_word=$2 20210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20211printf %s "checking for $ac_word... " >&6; } 20212if test ${ac_cv_path_FOP+y} 20213then : 20214 printf %s "(cached) " >&6 20215else case e in #( 20216 e) case $FOP in 20217 [\\/]* | ?:[\\/]*) 20218 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20219 ;; 20220 *) 20221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20222for as_dir in $PATH 20223do 20224 IFS=$as_save_IFS 20225 case $as_dir in #((( 20226 '') as_dir=./ ;; 20227 */) ;; 20228 *) as_dir=$as_dir/ ;; 20229 esac 20230 for ac_exec_ext in '' $ac_executable_extensions; do 20231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20232 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20234 break 2 20235 fi 20236done 20237 done 20238IFS=$as_save_IFS 20239 20240 ;; 20241esac ;; 20242esac 20243fi 20244FOP=$ac_cv_path_FOP 20245if test -n "$FOP"; then 20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20247printf "%s\n" "$FOP" >&6; } 20248else 20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20250printf "%s\n" "no" >&6; } 20251fi 20252 20253 20254 if test "x$FOP" = "x"; then 20255 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20256 fi 20257 have_fop=yes 20258elif test "x$use_fop" = x"no" ; then 20259 if test "x$FOP" != "x"; then 20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20261printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20262 fi 20263 have_fop=no 20264else 20265 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20266fi 20267 20268# Test for a minimum version of fop, if provided. 20269 20270 if test "$have_fop" = yes; then 20271 HAVE_FOP_TRUE= 20272 HAVE_FOP_FALSE='#' 20273else 20274 HAVE_FOP_TRUE='#' 20275 HAVE_FOP_FALSE= 20276fi 20277 20278 20279 20280 20281# Preserves the interface, should it be implemented later 20282 20283 20284 20285# Check whether --with-xsltproc was given. 20286if test ${with_xsltproc+y} 20287then : 20288 withval=$with_xsltproc; use_xsltproc=$withval 20289else case e in #( 20290 e) use_xsltproc=auto ;; 20291esac 20292fi 20293 20294 20295 20296if test "x$use_xsltproc" = x"auto"; then 20297 # Extract the first word of "xsltproc", so it can be a program name with args. 20298set dummy xsltproc; ac_word=$2 20299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20300printf %s "checking for $ac_word... " >&6; } 20301if test ${ac_cv_path_XSLTPROC+y} 20302then : 20303 printf %s "(cached) " >&6 20304else case e in #( 20305 e) case $XSLTPROC in 20306 [\\/]* | ?:[\\/]*) 20307 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20308 ;; 20309 *) 20310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20311for as_dir in $PATH 20312do 20313 IFS=$as_save_IFS 20314 case $as_dir in #((( 20315 '') as_dir=./ ;; 20316 */) ;; 20317 *) as_dir=$as_dir/ ;; 20318 esac 20319 for ac_exec_ext in '' $ac_executable_extensions; do 20320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20321 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20323 break 2 20324 fi 20325done 20326 done 20327IFS=$as_save_IFS 20328 20329 ;; 20330esac ;; 20331esac 20332fi 20333XSLTPROC=$ac_cv_path_XSLTPROC 20334if test -n "$XSLTPROC"; then 20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20336printf "%s\n" "$XSLTPROC" >&6; } 20337else 20338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20339printf "%s\n" "no" >&6; } 20340fi 20341 20342 20343 if test "x$XSLTPROC" = "x"; then 20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20345printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20346 have_xsltproc=no 20347 else 20348 have_xsltproc=yes 20349 fi 20350elif test "x$use_xsltproc" = x"yes" ; then 20351 # Extract the first word of "xsltproc", so it can be a program name with args. 20352set dummy xsltproc; ac_word=$2 20353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20354printf %s "checking for $ac_word... " >&6; } 20355if test ${ac_cv_path_XSLTPROC+y} 20356then : 20357 printf %s "(cached) " >&6 20358else case e in #( 20359 e) case $XSLTPROC in 20360 [\\/]* | ?:[\\/]*) 20361 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20362 ;; 20363 *) 20364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20365for as_dir in $PATH 20366do 20367 IFS=$as_save_IFS 20368 case $as_dir in #((( 20369 '') as_dir=./ ;; 20370 */) ;; 20371 *) as_dir=$as_dir/ ;; 20372 esac 20373 for ac_exec_ext in '' $ac_executable_extensions; do 20374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20375 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20377 break 2 20378 fi 20379done 20380 done 20381IFS=$as_save_IFS 20382 20383 ;; 20384esac ;; 20385esac 20386fi 20387XSLTPROC=$ac_cv_path_XSLTPROC 20388if test -n "$XSLTPROC"; then 20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20390printf "%s\n" "$XSLTPROC" >&6; } 20391else 20392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20393printf "%s\n" "no" >&6; } 20394fi 20395 20396 20397 if test "x$XSLTPROC" = "x"; then 20398 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20399 fi 20400 have_xsltproc=yes 20401elif test "x$use_xsltproc" = x"no" ; then 20402 if test "x$XSLTPROC" != "x"; then 20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20404printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20405 fi 20406 have_xsltproc=no 20407else 20408 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20409fi 20410 20411 if test "$have_xsltproc" = yes; then 20412 HAVE_XSLTPROC_TRUE= 20413 HAVE_XSLTPROC_FALSE='#' 20414else 20415 HAVE_XSLTPROC_TRUE='#' 20416 HAVE_XSLTPROC_FALSE= 20417fi 20418 20419 20420 20421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 20422printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 20423XORG_SGML_PATH= 20424if test -n "$PKG_CONFIG" && \ 20425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 20426 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 20427 ac_status=$? 20428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20429 test $ac_status = 0; }; then 20430 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20431else 20432 : 20433 20434fi 20435 20436# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20437# the path and the name of the doc stylesheet 20438if test "x$XORG_SGML_PATH" != "x" ; then 20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20440printf "%s\n" "$XORG_SGML_PATH" >&6; } 20441 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20442 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20443else 20444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20445printf "%s\n" "no" >&6; } 20446fi 20447 20448 20449 20450 20451 if test "x$XSL_STYLESHEET" != "x"; then 20452 HAVE_STYLESHEETS_TRUE= 20453 HAVE_STYLESHEETS_FALSE='#' 20454else 20455 HAVE_STYLESHEETS_TRUE='#' 20456 HAVE_STYLESHEETS_FALSE= 20457fi 20458 20459 20460 20461# Obtain compiler/linker options for dependencies 20462 20463pkg_failed=no 20464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 20465printf %s "checking for XTST... " >&6; } 20466 20467if test -n "$XTST_CFLAGS"; then 20468 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 20469 elif test -n "$PKG_CONFIG"; then 20470 if test -n "$PKG_CONFIG" && \ 20471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 20472 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 20473 ac_status=$? 20474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20475 test $ac_status = 0; }; then 20476 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 20477 test "x$?" != "x0" && pkg_failed=yes 20478else 20479 pkg_failed=yes 20480fi 20481 else 20482 pkg_failed=untried 20483fi 20484if test -n "$XTST_LIBS"; then 20485 pkg_cv_XTST_LIBS="$XTST_LIBS" 20486 elif test -n "$PKG_CONFIG"; then 20487 if test -n "$PKG_CONFIG" && \ 20488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 20489 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 20490 ac_status=$? 20491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20492 test $ac_status = 0; }; then 20493 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 20494 test "x$?" != "x0" && pkg_failed=yes 20495else 20496 pkg_failed=yes 20497fi 20498 else 20499 pkg_failed=untried 20500fi 20501 20502 20503 20504if test $pkg_failed = yes; then 20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20506printf "%s\n" "no" >&6; } 20507 20508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20509 _pkg_short_errors_supported=yes 20510else 20511 _pkg_short_errors_supported=no 20512fi 20513 if test $_pkg_short_errors_supported = yes; then 20514 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 20515 else 20516 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 20517 fi 20518 # Put the nasty error message in config.log where it belongs 20519 echo "$XTST_PKG_ERRORS" >&5 20520 20521 as_fn_error $? "Package requirements (x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 20522 20523$XTST_PKG_ERRORS 20524 20525Consider adjusting the PKG_CONFIG_PATH environment variable if you 20526installed software in a non-standard prefix. 20527 20528Alternatively, you may set the environment variables XTST_CFLAGS 20529and XTST_LIBS to avoid the need to call pkg-config. 20530See the pkg-config man page for more details." "$LINENO" 5 20531elif test $pkg_failed = untried; then 20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20533printf "%s\n" "no" >&6; } 20534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20535printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20536as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20537is in your PATH or set the PKG_CONFIG environment variable to the full 20538path to pkg-config. 20539 20540Alternatively, you may set the environment variables XTST_CFLAGS 20541and XTST_LIBS to avoid the need to call pkg-config. 20542See the pkg-config man page for more details. 20543 20544To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20545See 'config.log' for more details" "$LINENO" 5; } 20546else 20547 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 20548 XTST_LIBS=$pkg_cv_XTST_LIBS 20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20550printf "%s\n" "yes" >&6; } 20551 20552fi 20553 20554# Determine if the source for man pages is available 20555# It may already be present (tarball) or can be generated using xmlto 20556 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then 20557 INSTALL_MANPAGES_TRUE= 20558 INSTALL_MANPAGES_FALSE='#' 20559else 20560 INSTALL_MANPAGES_TRUE='#' 20561 INSTALL_MANPAGES_FALSE= 20562fi 20563 20564 20565# Allow checking code with lint, sparse, etc. 20566 20567 20568 20569 20570 20571# Check whether --with-lint was given. 20572if test ${with_lint+y} 20573then : 20574 withval=$with_lint; use_lint=$withval 20575else case e in #( 20576 e) use_lint=no ;; 20577esac 20578fi 20579 20580 20581# Obtain platform specific info like program name and options 20582# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20583case $host_os in 20584 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20585 lint_name=splint 20586 lint_options="-badflag" 20587 ;; 20588 *freebsd* | *netbsd*) 20589 lint_name=lint 20590 lint_options="-u -b" 20591 ;; 20592 *solaris*) 20593 lint_name=lint 20594 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20595 ;; 20596esac 20597 20598# Test for the presence of the program (either guessed by the code or spelled out by the user) 20599if test "x$use_lint" = x"yes" ; then 20600 # Extract the first word of "$lint_name", so it can be a program name with args. 20601set dummy $lint_name; ac_word=$2 20602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20603printf %s "checking for $ac_word... " >&6; } 20604if test ${ac_cv_path_LINT+y} 20605then : 20606 printf %s "(cached) " >&6 20607else case e in #( 20608 e) case $LINT in 20609 [\\/]* | ?:[\\/]*) 20610 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20611 ;; 20612 *) 20613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20614for as_dir in $PATH 20615do 20616 IFS=$as_save_IFS 20617 case $as_dir in #((( 20618 '') as_dir=./ ;; 20619 */) ;; 20620 *) as_dir=$as_dir/ ;; 20621 esac 20622 for ac_exec_ext in '' $ac_executable_extensions; do 20623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20624 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20626 break 2 20627 fi 20628done 20629 done 20630IFS=$as_save_IFS 20631 20632 ;; 20633esac ;; 20634esac 20635fi 20636LINT=$ac_cv_path_LINT 20637if test -n "$LINT"; then 20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20639printf "%s\n" "$LINT" >&6; } 20640else 20641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20642printf "%s\n" "no" >&6; } 20643fi 20644 20645 20646 if test "x$LINT" = "x"; then 20647 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20648 fi 20649elif test "x$use_lint" = x"no" ; then 20650 if test "x$LINT" != "x"; then 20651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20652printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20653 fi 20654else 20655 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20656fi 20657 20658# User supplied flags override default flags 20659if test "x$LINT_FLAGS" != "x"; then 20660 lint_options=$LINT_FLAGS 20661fi 20662 20663LINT_FLAGS=$lint_options 20664 20665 if test "x$LINT" != x; then 20666 LINT_TRUE= 20667 LINT_FALSE='#' 20668else 20669 LINT_TRUE='#' 20670 LINT_FALSE= 20671fi 20672 20673 20674 20675 20676 20677# Check whether --enable-lint-library was given. 20678if test ${enable_lint_library+y} 20679then : 20680 enableval=$enable_lint_library; make_lint_lib=$enableval 20681else case e in #( 20682 e) make_lint_lib=no ;; 20683esac 20684fi 20685 20686 20687if test "x$make_lint_lib" = x"yes" ; then 20688 LINTLIB=llib-lXtst.ln 20689 if test "x$LINT" = "x"; then 20690 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20691 fi 20692elif test "x$make_lint_lib" != x"no" ; then 20693 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20694fi 20695 20696 20697 if test x$make_lint_lib != xno; then 20698 MAKE_LINT_LIB_TRUE= 20699 MAKE_LINT_LIB_FALSE='#' 20700else 20701 MAKE_LINT_LIB_TRUE='#' 20702 MAKE_LINT_LIB_FALSE= 20703fi 20704 20705 20706 20707LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 20708 20709ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc" 20710 20711cat >confcache <<\_ACEOF 20712# This file is a shell script that caches the results of configure 20713# tests run on this system so they can be shared between configure 20714# scripts and configure runs, see configure's option --config-cache. 20715# It is not useful on other systems. If it contains results you don't 20716# want to keep, you may remove or edit it. 20717# 20718# config.status only pays attention to the cache file if you give it 20719# the --recheck option to rerun configure. 20720# 20721# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20722# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20723# following values. 20724 20725_ACEOF 20726 20727# The following way of writing the cache mishandles newlines in values, 20728# but we know of no workaround that is simple, portable, and efficient. 20729# So, we kill variables containing newlines. 20730# Ultrix sh set writes to stderr and can't be redirected directly, 20731# and sets the high bit in the cache file unless we assign to the vars. 20732( 20733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20734 eval ac_val=\$$ac_var 20735 case $ac_val in #( 20736 *${as_nl}*) 20737 case $ac_var in #( 20738 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20739printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20740 esac 20741 case $ac_var in #( 20742 _ | IFS | as_nl) ;; #( 20743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20744 *) { eval $ac_var=; unset $ac_var;} ;; 20745 esac ;; 20746 esac 20747 done 20748 20749 (set) 2>&1 | 20750 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20751 *${as_nl}ac_space=\ *) 20752 # 'set' does not quote correctly, so add quotes: double-quote 20753 # substitution turns \\\\ into \\, and sed turns \\ into \. 20754 sed -n \ 20755 "s/'/'\\\\''/g; 20756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20757 ;; #( 20758 *) 20759 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20761 ;; 20762 esac | 20763 sort 20764) | 20765 sed ' 20766 /^ac_cv_env_/b end 20767 t clear 20768 :clear 20769 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20770 t end 20771 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20772 :end' >>confcache 20773if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20774 if test -w "$cache_file"; then 20775 if test "x$cache_file" != "x/dev/null"; then 20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20777printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20778 if test ! -f "$cache_file" || test -h "$cache_file"; then 20779 cat confcache >"$cache_file" 20780 else 20781 case $cache_file in #( 20782 */* | ?:*) 20783 mv -f confcache "$cache_file"$$ && 20784 mv -f "$cache_file"$$ "$cache_file" ;; #( 20785 *) 20786 mv -f confcache "$cache_file" ;; 20787 esac 20788 fi 20789 fi 20790 else 20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20792printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20793 fi 20794fi 20795rm -f confcache 20796 20797test "x$prefix" = xNONE && prefix=$ac_default_prefix 20798# Let make expand exec_prefix. 20799test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20800 20801DEFS=-DHAVE_CONFIG_H 20802 20803ac_libobjs= 20804ac_ltlibobjs= 20805U= 20806for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20807 # 1. Remove the extension, and $U if already installed. 20808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20809 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20811 # will be set to the directory where LIBOBJS objects are built. 20812 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20813 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20814done 20815LIBOBJS=$ac_libobjs 20816 20817LTLIBOBJS=$ac_ltlibobjs 20818 20819 20820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20821printf %s "checking that generated files are newer than configure... " >&6; } 20822 if test -n "$am_sleep_pid"; then 20823 # Hide warnings about reused PIDs. 20824 wait $am_sleep_pid 2>/dev/null 20825 fi 20826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20827printf "%s\n" "done" >&6; } 20828case $enable_silent_rules in # ((( 20829 yes) AM_DEFAULT_VERBOSITY=0;; 20830 no) AM_DEFAULT_VERBOSITY=1;; 20831esac 20832if test $am_cv_make_support_nested_variables = yes; then 20833 AM_V='$(V)' 20834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20835else 20836 AM_V=$AM_DEFAULT_VERBOSITY 20837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20838fi 20839 20840 if test -n "$EXEEXT"; then 20841 am__EXEEXT_TRUE= 20842 am__EXEEXT_FALSE='#' 20843else 20844 am__EXEEXT_TRUE='#' 20845 am__EXEEXT_FALSE= 20846fi 20847 20848if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20849 as_fn_error $? "conditional \"AMDEP\" was never defined. 20850Usually this means the macro was only invoked conditionally." "$LINENO" 5 20851fi 20852if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20854Usually this means the macro was only invoked conditionally." "$LINENO" 5 20855fi 20856if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20857 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20858Usually this means the macro was only invoked conditionally." "$LINENO" 5 20859fi 20860if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20861 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20862Usually this means the macro was only invoked conditionally." "$LINENO" 5 20863fi 20864if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20865 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20866Usually this means the macro was only invoked conditionally." "$LINENO" 5 20867fi 20868if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20869 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20870Usually this means the macro was only invoked conditionally." "$LINENO" 5 20871fi 20872if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20873 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20874Usually this means the macro was only invoked conditionally." "$LINENO" 5 20875fi 20876if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20877 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20878Usually this means the macro was only invoked conditionally." "$LINENO" 5 20879fi 20880if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 20881 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 20882Usually this means the macro was only invoked conditionally." "$LINENO" 5 20883fi 20884if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20885 as_fn_error $? "conditional \"LINT\" was never defined. 20886Usually this means the macro was only invoked conditionally." "$LINENO" 5 20887fi 20888if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20889 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 20890Usually this means the macro was only invoked conditionally." "$LINENO" 5 20891fi 20892 20893: "${CONFIG_STATUS=./config.status}" 20894ac_write_fail=0 20895ac_clean_files_save=$ac_clean_files 20896ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20898printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20899as_write_fail=0 20900cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20901#! $SHELL 20902# Generated by $as_me. 20903# Run this file to recreate the current configuration. 20904# Compiler output produced by configure, useful for debugging 20905# configure, is in config.log if it exists. 20906 20907debug=false 20908ac_cs_recheck=false 20909ac_cs_silent=false 20910 20911SHELL=\${CONFIG_SHELL-$SHELL} 20912export SHELL 20913_ASEOF 20914cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20915## -------------------- ## 20916## M4sh Initialization. ## 20917## -------------------- ## 20918 20919# Be more Bourne compatible 20920DUALCASE=1; export DUALCASE # for MKS sh 20921if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20922then : 20923 emulate sh 20924 NULLCMD=: 20925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20926 # is contrary to our usage. Disable this feature. 20927 alias -g '${1+"$@"}'='"$@"' 20928 setopt NO_GLOB_SUBST 20929else case e in #( 20930 e) case `(set -o) 2>/dev/null` in #( 20931 *posix*) : 20932 set -o posix ;; #( 20933 *) : 20934 ;; 20935esac ;; 20936esac 20937fi 20938 20939 20940 20941# Reset variables that may have inherited troublesome values from 20942# the environment. 20943 20944# IFS needs to be set, to space, tab, and newline, in precisely that order. 20945# (If _AS_PATH_WALK were called with IFS unset, it would have the 20946# side effect of setting IFS to empty, thus disabling word splitting.) 20947# Quoting is to prevent editors from complaining about space-tab. 20948as_nl=' 20949' 20950export as_nl 20951IFS=" "" $as_nl" 20952 20953PS1='$ ' 20954PS2='> ' 20955PS4='+ ' 20956 20957# Ensure predictable behavior from utilities with locale-dependent output. 20958LC_ALL=C 20959export LC_ALL 20960LANGUAGE=C 20961export LANGUAGE 20962 20963# We cannot yet rely on "unset" to work, but we need these variables 20964# to be unset--not just set to an empty or harmless value--now, to 20965# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20966# also avoids known problems related to "unset" and subshell syntax 20967# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20968for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20969do eval test \${$as_var+y} \ 20970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20971done 20972 20973# Ensure that fds 0, 1, and 2 are open. 20974if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20975if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20976if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20977 20978# The user is always right. 20979if ${PATH_SEPARATOR+false} :; then 20980 PATH_SEPARATOR=: 20981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20983 PATH_SEPARATOR=';' 20984 } 20985fi 20986 20987 20988# Find who we are. Look in the path if we contain no directory separator. 20989as_myself= 20990case $0 in #(( 20991 *[\\/]* ) as_myself=$0 ;; 20992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20993for as_dir in $PATH 20994do 20995 IFS=$as_save_IFS 20996 case $as_dir in #((( 20997 '') as_dir=./ ;; 20998 */) ;; 20999 *) as_dir=$as_dir/ ;; 21000 esac 21001 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21002 done 21003IFS=$as_save_IFS 21004 21005 ;; 21006esac 21007# We did not find ourselves, most probably we were run as 'sh COMMAND' 21008# in which case we are not to be found in the path. 21009if test "x$as_myself" = x; then 21010 as_myself=$0 21011fi 21012if test ! -f "$as_myself"; then 21013 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21014 exit 1 21015fi 21016 21017 21018 21019# as_fn_error STATUS ERROR [LINENO LOG_FD] 21020# ---------------------------------------- 21021# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21022# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21023# script with STATUS, using 1 if that was 0. 21024as_fn_error () 21025{ 21026 as_status=$1; test $as_status -eq 0 && as_status=1 21027 if test "$4"; then 21028 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21030 fi 21031 printf "%s\n" "$as_me: error: $2" >&2 21032 as_fn_exit $as_status 21033} # as_fn_error 21034 21035 21036# as_fn_set_status STATUS 21037# ----------------------- 21038# Set $? to STATUS, without forking. 21039as_fn_set_status () 21040{ 21041 return $1 21042} # as_fn_set_status 21043 21044# as_fn_exit STATUS 21045# ----------------- 21046# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21047as_fn_exit () 21048{ 21049 set +e 21050 as_fn_set_status $1 21051 exit $1 21052} # as_fn_exit 21053 21054# as_fn_unset VAR 21055# --------------- 21056# Portably unset VAR. 21057as_fn_unset () 21058{ 21059 { eval $1=; unset $1;} 21060} 21061as_unset=as_fn_unset 21062 21063# as_fn_append VAR VALUE 21064# ---------------------- 21065# Append the text in VALUE to the end of the definition contained in VAR. Take 21066# advantage of any shell optimizations that allow amortized linear growth over 21067# repeated appends, instead of the typical quadratic growth present in naive 21068# implementations. 21069if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21070then : 21071 eval 'as_fn_append () 21072 { 21073 eval $1+=\$2 21074 }' 21075else case e in #( 21076 e) as_fn_append () 21077 { 21078 eval $1=\$$1\$2 21079 } ;; 21080esac 21081fi # as_fn_append 21082 21083# as_fn_arith ARG... 21084# ------------------ 21085# Perform arithmetic evaluation on the ARGs, and store the result in the 21086# global $as_val. Take advantage of shells that can avoid forks. The arguments 21087# must be portable across $(()) and expr. 21088if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21089then : 21090 eval 'as_fn_arith () 21091 { 21092 as_val=$(( $* )) 21093 }' 21094else case e in #( 21095 e) as_fn_arith () 21096 { 21097 as_val=`expr "$@" || test $? -eq 1` 21098 } ;; 21099esac 21100fi # as_fn_arith 21101 21102 21103if expr a : '\(a\)' >/dev/null 2>&1 && 21104 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21105 as_expr=expr 21106else 21107 as_expr=false 21108fi 21109 21110if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21111 as_basename=basename 21112else 21113 as_basename=false 21114fi 21115 21116if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21117 as_dirname=dirname 21118else 21119 as_dirname=false 21120fi 21121 21122as_me=`$as_basename -- "$0" || 21123$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21124 X"$0" : 'X\(//\)$' \| \ 21125 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21126printf "%s\n" X/"$0" | 21127 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21128 s//\1/ 21129 q 21130 } 21131 /^X\/\(\/\/\)$/{ 21132 s//\1/ 21133 q 21134 } 21135 /^X\/\(\/\).*/{ 21136 s//\1/ 21137 q 21138 } 21139 s/.*/./; q'` 21140 21141# Avoid depending upon Character Ranges. 21142as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21144as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21145as_cr_digits='0123456789' 21146as_cr_alnum=$as_cr_Letters$as_cr_digits 21147 21148 21149# Determine whether it's possible to make 'echo' print without a newline. 21150# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21151# for compatibility with existing Makefiles. 21152ECHO_C= ECHO_N= ECHO_T= 21153case `echo -n x` in #((((( 21154-n*) 21155 case `echo 'xy\c'` in 21156 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21157 xy) ECHO_C='\c';; 21158 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21159 ECHO_T=' ';; 21160 esac;; 21161*) 21162 ECHO_N='-n';; 21163esac 21164 21165# For backward compatibility with old third-party macros, we provide 21166# the shell variables $as_echo and $as_echo_n. New code should use 21167# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21168as_echo='printf %s\n' 21169as_echo_n='printf %s' 21170 21171rm -f conf$$ conf$$.exe conf$$.file 21172if test -d conf$$.dir; then 21173 rm -f conf$$.dir/conf$$.file 21174else 21175 rm -f conf$$.dir 21176 mkdir conf$$.dir 2>/dev/null 21177fi 21178if (echo >conf$$.file) 2>/dev/null; then 21179 if ln -s conf$$.file conf$$ 2>/dev/null; then 21180 as_ln_s='ln -s' 21181 # ... but there are two gotchas: 21182 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21183 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21184 # In both cases, we have to default to 'cp -pR'. 21185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21186 as_ln_s='cp -pR' 21187 elif ln conf$$.file conf$$ 2>/dev/null; then 21188 as_ln_s=ln 21189 else 21190 as_ln_s='cp -pR' 21191 fi 21192else 21193 as_ln_s='cp -pR' 21194fi 21195rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21196rmdir conf$$.dir 2>/dev/null 21197 21198 21199# as_fn_mkdir_p 21200# ------------- 21201# Create "$as_dir" as a directory, including parents if necessary. 21202as_fn_mkdir_p () 21203{ 21204 21205 case $as_dir in #( 21206 -*) as_dir=./$as_dir;; 21207 esac 21208 test -d "$as_dir" || eval $as_mkdir_p || { 21209 as_dirs= 21210 while :; do 21211 case $as_dir in #( 21212 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21213 *) as_qdir=$as_dir;; 21214 esac 21215 as_dirs="'$as_qdir' $as_dirs" 21216 as_dir=`$as_dirname -- "$as_dir" || 21217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21218 X"$as_dir" : 'X\(//\)[^/]' \| \ 21219 X"$as_dir" : 'X\(//\)$' \| \ 21220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21221printf "%s\n" X"$as_dir" | 21222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21223 s//\1/ 21224 q 21225 } 21226 /^X\(\/\/\)[^/].*/{ 21227 s//\1/ 21228 q 21229 } 21230 /^X\(\/\/\)$/{ 21231 s//\1/ 21232 q 21233 } 21234 /^X\(\/\).*/{ 21235 s//\1/ 21236 q 21237 } 21238 s/.*/./; q'` 21239 test -d "$as_dir" && break 21240 done 21241 test -z "$as_dirs" || eval "mkdir $as_dirs" 21242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21243 21244 21245} # as_fn_mkdir_p 21246if mkdir -p . 2>/dev/null; then 21247 as_mkdir_p='mkdir -p "$as_dir"' 21248else 21249 test -d ./-p && rmdir ./-p 21250 as_mkdir_p=false 21251fi 21252 21253 21254# as_fn_executable_p FILE 21255# ----------------------- 21256# Test if FILE is an executable regular file. 21257as_fn_executable_p () 21258{ 21259 test -f "$1" && test -x "$1" 21260} # as_fn_executable_p 21261as_test_x='test -x' 21262as_executable_p=as_fn_executable_p 21263 21264# Sed expression to map a string onto a valid CPP name. 21265as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21266as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21267 21268# Sed expression to map a string onto a valid variable name. 21269as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21270as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21271 21272 21273exec 6>&1 21274## ----------------------------------- ## 21275## Main body of $CONFIG_STATUS script. ## 21276## ----------------------------------- ## 21277_ASEOF 21278test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21279 21280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21281# Save the log message, to keep $0 and so on meaningful, and to 21282# report actual input values of CONFIG_FILES etc. instead of their 21283# values after options handling. 21284ac_log=" 21285This file was extended by libXtst $as_me 1.2.5, which was 21286generated by GNU Autoconf 2.72. Invocation command line was 21287 21288 CONFIG_FILES = $CONFIG_FILES 21289 CONFIG_HEADERS = $CONFIG_HEADERS 21290 CONFIG_LINKS = $CONFIG_LINKS 21291 CONFIG_COMMANDS = $CONFIG_COMMANDS 21292 $ $0 $@ 21293 21294on `(hostname || uname -n) 2>/dev/null | sed 1q` 21295" 21296 21297_ACEOF 21298 21299case $ac_config_files in *" 21300"*) set x $ac_config_files; shift; ac_config_files=$*;; 21301esac 21302 21303case $ac_config_headers in *" 21304"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21305esac 21306 21307 21308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21309# Files that config.status was made for. 21310config_files="$ac_config_files" 21311config_headers="$ac_config_headers" 21312config_commands="$ac_config_commands" 21313 21314_ACEOF 21315 21316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21317ac_cs_usage="\ 21318'$as_me' instantiates files and other configuration actions 21319from templates according to the current configuration. Unless the files 21320and actions are specified as TAGs, all are instantiated by default. 21321 21322Usage: $0 [OPTION]... [TAG]... 21323 21324 -h, --help print this help, then exit 21325 -V, --version print version number and configuration settings, then exit 21326 --config print configuration, then exit 21327 -q, --quiet, --silent 21328 do not print progress messages 21329 -d, --debug don't remove temporary files 21330 --recheck update $as_me by reconfiguring in the same conditions 21331 --file=FILE[:TEMPLATE] 21332 instantiate the configuration file FILE 21333 --header=FILE[:TEMPLATE] 21334 instantiate the configuration header FILE 21335 21336Configuration files: 21337$config_files 21338 21339Configuration headers: 21340$config_headers 21341 21342Configuration commands: 21343$config_commands 21344 21345Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>." 21346 21347_ACEOF 21348ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21349ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21351ac_cs_config='$ac_cs_config_escaped' 21352ac_cs_version="\\ 21353libXtst config.status 1.2.5 21354configured by $0, generated by GNU Autoconf 2.72, 21355 with options \\"\$ac_cs_config\\" 21356 21357Copyright (C) 2023 Free Software Foundation, Inc. 21358This config.status script is free software; the Free Software Foundation 21359gives unlimited permission to copy, distribute and modify it." 21360 21361ac_pwd='$ac_pwd' 21362srcdir='$srcdir' 21363INSTALL='$INSTALL' 21364MKDIR_P='$MKDIR_P' 21365AWK='$AWK' 21366test -n "\$AWK" || AWK=awk 21367_ACEOF 21368 21369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21370# The default lists apply if the user does not specify any file. 21371ac_need_defaults=: 21372while test $# != 0 21373do 21374 case $1 in 21375 --*=?*) 21376 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21378 ac_shift=: 21379 ;; 21380 --*=) 21381 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21382 ac_optarg= 21383 ac_shift=: 21384 ;; 21385 *) 21386 ac_option=$1 21387 ac_optarg=$2 21388 ac_shift=shift 21389 ;; 21390 esac 21391 21392 case $ac_option in 21393 # Handling of the options. 21394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21395 ac_cs_recheck=: ;; 21396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21397 printf "%s\n" "$ac_cs_version"; exit ;; 21398 --config | --confi | --conf | --con | --co | --c ) 21399 printf "%s\n" "$ac_cs_config"; exit ;; 21400 --debug | --debu | --deb | --de | --d | -d ) 21401 debug=: ;; 21402 --file | --fil | --fi | --f ) 21403 $ac_shift 21404 case $ac_optarg in 21405 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21406 '') as_fn_error $? "missing file argument" ;; 21407 esac 21408 as_fn_append CONFIG_FILES " '$ac_optarg'" 21409 ac_need_defaults=false;; 21410 --header | --heade | --head | --hea ) 21411 $ac_shift 21412 case $ac_optarg in 21413 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21414 esac 21415 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21416 ac_need_defaults=false;; 21417 --he | --h) 21418 # Conflict between --help and --header 21419 as_fn_error $? "ambiguous option: '$1' 21420Try '$0 --help' for more information.";; 21421 --help | --hel | -h ) 21422 printf "%s\n" "$ac_cs_usage"; exit ;; 21423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21424 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21425 ac_cs_silent=: ;; 21426 21427 # This is an error. 21428 -*) as_fn_error $? "unrecognized option: '$1' 21429Try '$0 --help' for more information." ;; 21430 21431 *) as_fn_append ac_config_targets " $1" 21432 ac_need_defaults=false ;; 21433 21434 esac 21435 shift 21436done 21437 21438ac_configure_extra_args= 21439 21440if $ac_cs_silent; then 21441 exec 6>/dev/null 21442 ac_configure_extra_args="$ac_configure_extra_args --silent" 21443fi 21444 21445_ACEOF 21446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21447if \$ac_cs_recheck; then 21448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21449 shift 21450 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21451 CONFIG_SHELL='$SHELL' 21452 export CONFIG_SHELL 21453 exec "\$@" 21454fi 21455 21456_ACEOF 21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21458exec 5>>config.log 21459{ 21460 echo 21461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21462## Running $as_me. ## 21463_ASBOX 21464 printf "%s\n" "$ac_log" 21465} >&5 21466 21467_ACEOF 21468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21469# 21470# INIT-COMMANDS 21471# 21472AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21473 21474 21475# The HP-UX ksh and POSIX shell print the target directory to stdout 21476# if CDPATH is set. 21477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21478 21479sed_quote_subst='$sed_quote_subst' 21480double_quote_subst='$double_quote_subst' 21481delay_variable_subst='$delay_variable_subst' 21482macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21483macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21484enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21485enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21486pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21487enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21488shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21489SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21490ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21491PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21492host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21493host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21494host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21495build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21496build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21497build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21498SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21499Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21500GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21501EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21502FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21503LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21504NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21505LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21506max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21507ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21508exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21509lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21510lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21511lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21512lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21513lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21514reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21515reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21516FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21517OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21518deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21519file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21520file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21521want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21522DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21523sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21524AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21525lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21526AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21527archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21528STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21529RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21530old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21531old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21532old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21533lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21534CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21535CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21536compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21537GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21538lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21539lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21540lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21541lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21542lt_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"`' 21543lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21544nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21545lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21546lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21547objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21548MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21549lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21550lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21551lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21552lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21553lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21554need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21555MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21556DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21557NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21558LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21559OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21560OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21561libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21562shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21563extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21564archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21565enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21566export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21567whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21568compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21569old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21570old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21571archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21572archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21573module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21574module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21575with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21576allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21577no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21578hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21579hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21580hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21581hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21582hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21583hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21584hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21585inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21586link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21587always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21588export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21589exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21590include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21591prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21592postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21593file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21594variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21595need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21596need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21597version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21598runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21599shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21600shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21601libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21602library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21603soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21604install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21605postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21606postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21607finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21608finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21609hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21610sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21611configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21612configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21613hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21614enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21615enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21616enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21617old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21618striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21619 21620LTCC='$LTCC' 21621LTCFLAGS='$LTCFLAGS' 21622compiler='$compiler_DEFAULT' 21623 21624# A function that is used when there is no print builtin or printf. 21625func_fallback_echo () 21626{ 21627 eval 'cat <<_LTECHO_EOF 21628\$1 21629_LTECHO_EOF' 21630} 21631 21632# Quote evaled strings. 21633for var in SHELL \ 21634ECHO \ 21635PATH_SEPARATOR \ 21636SED \ 21637GREP \ 21638EGREP \ 21639FGREP \ 21640LD \ 21641NM \ 21642LN_S \ 21643lt_SP2NL \ 21644lt_NL2SP \ 21645reload_flag \ 21646FILECMD \ 21647OBJDUMP \ 21648deplibs_check_method \ 21649file_magic_cmd \ 21650file_magic_glob \ 21651want_nocaseglob \ 21652DLLTOOL \ 21653sharedlib_from_linklib_cmd \ 21654AR \ 21655archiver_list_spec \ 21656STRIP \ 21657RANLIB \ 21658CC \ 21659CFLAGS \ 21660compiler \ 21661lt_cv_sys_global_symbol_pipe \ 21662lt_cv_sys_global_symbol_to_cdecl \ 21663lt_cv_sys_global_symbol_to_import \ 21664lt_cv_sys_global_symbol_to_c_name_address \ 21665lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21666lt_cv_nm_interface \ 21667nm_file_list_spec \ 21668lt_cv_truncate_bin \ 21669lt_prog_compiler_no_builtin_flag \ 21670lt_prog_compiler_pic \ 21671lt_prog_compiler_wl \ 21672lt_prog_compiler_static \ 21673lt_cv_prog_compiler_c_o \ 21674need_locks \ 21675MANIFEST_TOOL \ 21676DSYMUTIL \ 21677NMEDIT \ 21678LIPO \ 21679OTOOL \ 21680OTOOL64 \ 21681shrext_cmds \ 21682export_dynamic_flag_spec \ 21683whole_archive_flag_spec \ 21684compiler_needs_object \ 21685with_gnu_ld \ 21686allow_undefined_flag \ 21687no_undefined_flag \ 21688hardcode_libdir_flag_spec \ 21689hardcode_libdir_separator \ 21690exclude_expsyms \ 21691include_expsyms \ 21692file_list_spec \ 21693variables_saved_for_relink \ 21694libname_spec \ 21695library_names_spec \ 21696soname_spec \ 21697install_override_mode \ 21698finish_eval \ 21699old_striplib \ 21700striplib; do 21701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21702 *[\\\\\\\`\\"\\\$]*) 21703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21704 ;; 21705 *) 21706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21707 ;; 21708 esac 21709done 21710 21711# Double-quote double-evaled strings. 21712for var in reload_cmds \ 21713old_postinstall_cmds \ 21714old_postuninstall_cmds \ 21715old_archive_cmds \ 21716extract_expsyms_cmds \ 21717old_archive_from_new_cmds \ 21718old_archive_from_expsyms_cmds \ 21719archive_cmds \ 21720archive_expsym_cmds \ 21721module_cmds \ 21722module_expsym_cmds \ 21723export_symbols_cmds \ 21724prelink_cmds \ 21725postlink_cmds \ 21726postinstall_cmds \ 21727postuninstall_cmds \ 21728finish_cmds \ 21729sys_lib_search_path_spec \ 21730configure_time_dlsearch_path \ 21731configure_time_lt_sys_library_path; do 21732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21733 *[\\\\\\\`\\"\\\$]*) 21734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21735 ;; 21736 *) 21737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21738 ;; 21739 esac 21740done 21741 21742ac_aux_dir='$ac_aux_dir' 21743 21744# See if we are running on zsh, and set the options that allow our 21745# commands through without removal of \ escapes INIT. 21746if test -n "\${ZSH_VERSION+set}"; then 21747 setopt NO_GLOB_SUBST 21748fi 21749 21750 21751 PACKAGE='$PACKAGE' 21752 VERSION='$VERSION' 21753 RM='$RM' 21754 ofile='$ofile' 21755 21756 21757 21758 21759_ACEOF 21760 21761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21762 21763# Handling of arguments. 21764for ac_config_target in $ac_config_targets 21765do 21766 case $ac_config_target in 21767 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21768 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21772 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21773 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21774 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;; 21775 21776 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21777 esac 21778done 21779 21780 21781# If the user did not use the arguments to specify the items to instantiate, 21782# then the envvar interface is used. Set only those that are not. 21783# We use the long form for the default assignment because of an extremely 21784# bizarre bug on SunOS 4.1.3. 21785if $ac_need_defaults; then 21786 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21787 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21788 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21789fi 21790 21791# Have a temporary directory for convenience. Make it in the build tree 21792# simply because there is no reason against having it here, and in addition, 21793# creating and moving files from /tmp can sometimes cause problems. 21794# Hook for its removal unless debugging. 21795# Note that there is a small window in which the directory will not be cleaned: 21796# after its creation but before its name has been assigned to '$tmp'. 21797$debug || 21798{ 21799 tmp= ac_tmp= 21800 trap 'exit_status=$? 21801 : "${ac_tmp:=$tmp}" 21802 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21803' 0 21804 trap 'as_fn_exit 1' 1 2 13 15 21805} 21806# Create a (secure) tmp directory for tmp files. 21807 21808{ 21809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21810 test -d "$tmp" 21811} || 21812{ 21813 tmp=./conf$$-$RANDOM 21814 (umask 077 && mkdir "$tmp") 21815} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21816ac_tmp=$tmp 21817 21818# Set up the scripts for CONFIG_FILES section. 21819# No need to generate them if there are no CONFIG_FILES. 21820# This happens for instance with './config.status config.h'. 21821if test -n "$CONFIG_FILES"; then 21822 21823 21824ac_cr=`echo X | tr X '\015'` 21825# On cygwin, bash can eat \r inside `` if the user requested igncr. 21826# But we know of no other shell where ac_cr would be empty at this 21827# point, so we can use a bashism as a fallback. 21828if test "x$ac_cr" = x; then 21829 eval ac_cr=\$\'\\r\' 21830fi 21831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21833 ac_cs_awk_cr='\\r' 21834else 21835 ac_cs_awk_cr=$ac_cr 21836fi 21837 21838echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21839_ACEOF 21840 21841 21842{ 21843 echo "cat >conf$$subs.awk <<_ACEOF" && 21844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21845 echo "_ACEOF" 21846} >conf$$subs.sh || 21847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21848ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21849ac_delim='%!_!# ' 21850for ac_last_try in false false false false false :; do 21851 . ./conf$$subs.sh || 21852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21853 21854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21855 if test $ac_delim_n = $ac_delim_num; then 21856 break 21857 elif $ac_last_try; then 21858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21859 else 21860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21861 fi 21862done 21863rm -f conf$$subs.sh 21864 21865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21866cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21867_ACEOF 21868sed -n ' 21869h 21870s/^/S["/; s/!.*/"]=/ 21871p 21872g 21873s/^[^!]*!// 21874:repl 21875t repl 21876s/'"$ac_delim"'$// 21877t delim 21878:nl 21879h 21880s/\(.\{148\}\)..*/\1/ 21881t more1 21882s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21883p 21884n 21885b repl 21886:more1 21887s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21888p 21889g 21890s/.\{148\}// 21891t nl 21892:delim 21893h 21894s/\(.\{148\}\)..*/\1/ 21895t more2 21896s/["\\]/\\&/g; s/^/"/; s/$/"/ 21897p 21898b 21899:more2 21900s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21901p 21902g 21903s/.\{148\}// 21904t delim 21905' <conf$$subs.awk | sed ' 21906/^[^""]/{ 21907 N 21908 s/\n// 21909} 21910' >>$CONFIG_STATUS || ac_write_fail=1 21911rm -f conf$$subs.awk 21912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21913_ACAWK 21914cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21915 for (key in S) S_is_set[key] = 1 21916 FS = "" 21917 21918} 21919{ 21920 line = $ 0 21921 nfields = split(line, field, "@") 21922 substed = 0 21923 len = length(field[1]) 21924 for (i = 2; i < nfields; i++) { 21925 key = field[i] 21926 keylen = length(key) 21927 if (S_is_set[key]) { 21928 value = S[key] 21929 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21930 len += length(value) + length(field[++i]) 21931 substed = 1 21932 } else 21933 len += 1 + keylen 21934 } 21935 21936 print line 21937} 21938 21939_ACAWK 21940_ACEOF 21941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21942if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21943 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21944else 21945 cat 21946fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21947 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21948_ACEOF 21949 21950# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21951# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21952# trailing colons and then remove the whole line if VPATH becomes empty 21953# (actually we leave an empty line to preserve line numbers). 21954if test "x$srcdir" = x.; then 21955 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21956h 21957s/// 21958s/^/:/ 21959s/[ ]*$/:/ 21960s/:\$(srcdir):/:/g 21961s/:\${srcdir}:/:/g 21962s/:@srcdir@:/:/g 21963s/^:*// 21964s/:*$// 21965x 21966s/\(=[ ]*\).*/\1/ 21967G 21968s/\n// 21969s/^[^=]*=[ ]*$// 21970}' 21971fi 21972 21973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21974fi # test -n "$CONFIG_FILES" 21975 21976# Set up the scripts for CONFIG_HEADERS section. 21977# No need to generate them if there are no CONFIG_HEADERS. 21978# This happens for instance with './config.status Makefile'. 21979if test -n "$CONFIG_HEADERS"; then 21980cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21981BEGIN { 21982_ACEOF 21983 21984# Transform confdefs.h into an awk script 'defines.awk', embedded as 21985# here-document in config.status, that substitutes the proper values into 21986# config.h.in to produce config.h. 21987 21988# Create a delimiter string that does not exist in confdefs.h, to ease 21989# handling of long lines. 21990ac_delim='%!_!# ' 21991for ac_last_try in false false :; do 21992 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21993 if test -z "$ac_tt"; then 21994 break 21995 elif $ac_last_try; then 21996 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21997 else 21998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21999 fi 22000done 22001 22002# For the awk script, D is an array of macro values keyed by name, 22003# likewise P contains macro parameters if any. Preserve backslash 22004# newline sequences. 22005 22006ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22007sed -n ' 22008s/.\{148\}/&'"$ac_delim"'/g 22009t rset 22010:rset 22011s/^[ ]*#[ ]*define[ ][ ]*/ / 22012t def 22013d 22014:def 22015s/\\$// 22016t bsnl 22017s/["\\]/\\&/g 22018s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22019D["\1"]=" \3"/p 22020s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22021d 22022:bsnl 22023s/["\\]/\\&/g 22024s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22025D["\1"]=" \3\\\\\\n"\\/p 22026t cont 22027s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22028t cont 22029d 22030:cont 22031n 22032s/.\{148\}/&'"$ac_delim"'/g 22033t clear 22034:clear 22035s/\\$// 22036t bsnlc 22037s/["\\]/\\&/g; s/^/"/; s/$/"/p 22038d 22039:bsnlc 22040s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22041b cont 22042' <confdefs.h | sed ' 22043s/'"$ac_delim"'/"\\\ 22044"/g' >>$CONFIG_STATUS || ac_write_fail=1 22045 22046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22047 for (key in D) D_is_set[key] = 1 22048 FS = "" 22049} 22050/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22051 line = \$ 0 22052 split(line, arg, " ") 22053 if (arg[1] == "#") { 22054 defundef = arg[2] 22055 mac1 = arg[3] 22056 } else { 22057 defundef = substr(arg[1], 2) 22058 mac1 = arg[2] 22059 } 22060 split(mac1, mac2, "(") #) 22061 macro = mac2[1] 22062 prefix = substr(line, 1, index(line, defundef) - 1) 22063 if (D_is_set[macro]) { 22064 # Preserve the white space surrounding the "#". 22065 print prefix "define", macro P[macro] D[macro] 22066 next 22067 } else { 22068 # Replace #undef with comments. This is necessary, for example, 22069 # in the case of _POSIX_SOURCE, which is predefined and required 22070 # on some systems where configure will not decide to define it. 22071 if (defundef == "undef") { 22072 print "/*", prefix defundef, macro, "*/" 22073 next 22074 } 22075 } 22076} 22077{ print } 22078_ACAWK 22079_ACEOF 22080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22081 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22082fi # test -n "$CONFIG_HEADERS" 22083 22084 22085eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22086shift 22087for ac_tag 22088do 22089 case $ac_tag in 22090 :[FHLC]) ac_mode=$ac_tag; continue;; 22091 esac 22092 case $ac_mode$ac_tag in 22093 :[FHL]*:*);; 22094 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22095 :[FH]-) ac_tag=-:-;; 22096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22097 esac 22098 ac_save_IFS=$IFS 22099 IFS=: 22100 set x $ac_tag 22101 IFS=$ac_save_IFS 22102 shift 22103 ac_file=$1 22104 shift 22105 22106 case $ac_mode in 22107 :L) ac_source=$1;; 22108 :[FH]) 22109 ac_file_inputs= 22110 for ac_f 22111 do 22112 case $ac_f in 22113 -) ac_f="$ac_tmp/stdin";; 22114 *) # Look for the file first in the build tree, then in the source tree 22115 # (if the path is not absolute). The absolute path cannot be DOS-style, 22116 # because $ac_f cannot contain ':'. 22117 test -f "$ac_f" || 22118 case $ac_f in 22119 [\\/$]*) false;; 22120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22121 esac || 22122 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22123 esac 22124 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22125 as_fn_append ac_file_inputs " '$ac_f'" 22126 done 22127 22128 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22129 # use $as_me), people would be surprised to read: 22130 # /* config.h. Generated by config.status. */ 22131 configure_input='Generated from '` 22132 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22133 `' by configure.' 22134 if test x"$ac_file" != x-; then 22135 configure_input="$ac_file. $configure_input" 22136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22137printf "%s\n" "$as_me: creating $ac_file" >&6;} 22138 fi 22139 # Neutralize special characters interpreted by sed in replacement strings. 22140 case $configure_input in #( 22141 *\&* | *\|* | *\\* ) 22142 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22143 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22144 *) ac_sed_conf_input=$configure_input;; 22145 esac 22146 22147 case $ac_tag in 22148 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22150 esac 22151 ;; 22152 esac 22153 22154 ac_dir=`$as_dirname -- "$ac_file" || 22155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22156 X"$ac_file" : 'X\(//\)[^/]' \| \ 22157 X"$ac_file" : 'X\(//\)$' \| \ 22158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22159printf "%s\n" X"$ac_file" | 22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22161 s//\1/ 22162 q 22163 } 22164 /^X\(\/\/\)[^/].*/{ 22165 s//\1/ 22166 q 22167 } 22168 /^X\(\/\/\)$/{ 22169 s//\1/ 22170 q 22171 } 22172 /^X\(\/\).*/{ 22173 s//\1/ 22174 q 22175 } 22176 s/.*/./; q'` 22177 as_dir="$ac_dir"; as_fn_mkdir_p 22178 ac_builddir=. 22179 22180case "$ac_dir" in 22181.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22182*) 22183 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22184 # A ".." for each directory in $ac_dir_suffix. 22185 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22186 case $ac_top_builddir_sub in 22187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22189 esac ;; 22190esac 22191ac_abs_top_builddir=$ac_pwd 22192ac_abs_builddir=$ac_pwd$ac_dir_suffix 22193# for backward compatibility: 22194ac_top_builddir=$ac_top_build_prefix 22195 22196case $srcdir in 22197 .) # We are building in place. 22198 ac_srcdir=. 22199 ac_top_srcdir=$ac_top_builddir_sub 22200 ac_abs_top_srcdir=$ac_pwd ;; 22201 [\\/]* | ?:[\\/]* ) # Absolute name. 22202 ac_srcdir=$srcdir$ac_dir_suffix; 22203 ac_top_srcdir=$srcdir 22204 ac_abs_top_srcdir=$srcdir ;; 22205 *) # Relative name. 22206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22207 ac_top_srcdir=$ac_top_build_prefix$srcdir 22208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22209esac 22210ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22211 22212 22213 case $ac_mode in 22214 :F) 22215 # 22216 # CONFIG_FILE 22217 # 22218 22219 case $INSTALL in 22220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22222 esac 22223 ac_MKDIR_P=$MKDIR_P 22224 case $MKDIR_P in 22225 [\\/$]* | ?:[\\/]* ) ;; 22226 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22227 esac 22228_ACEOF 22229 22230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22231# If the template does not know about datarootdir, expand it. 22232# FIXME: This hack should be removed a few years after 2.60. 22233ac_datarootdir_hack=; ac_datarootdir_seen= 22234ac_sed_dataroot=' 22235/datarootdir/ { 22236 p 22237 q 22238} 22239/@datadir@/p 22240/@docdir@/p 22241/@infodir@/p 22242/@localedir@/p 22243/@mandir@/p' 22244case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22245*datarootdir*) ac_datarootdir_seen=yes;; 22246*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22248printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22249_ACEOF 22250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22251 ac_datarootdir_hack=' 22252 s&@datadir@&$datadir&g 22253 s&@docdir@&$docdir&g 22254 s&@infodir@&$infodir&g 22255 s&@localedir@&$localedir&g 22256 s&@mandir@&$mandir&g 22257 s&\\\${datarootdir}&$datarootdir&g' ;; 22258esac 22259_ACEOF 22260 22261# Neutralize VPATH when '$srcdir' = '.'. 22262# Shell code in configure.ac might set extrasub. 22263# FIXME: do we really want to maintain this feature? 22264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22265ac_sed_extra="$ac_vpsub 22266$extrasub 22267_ACEOF 22268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22269:t 22270/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22271s|@configure_input@|$ac_sed_conf_input|;t t 22272s&@top_builddir@&$ac_top_builddir_sub&;t t 22273s&@top_build_prefix@&$ac_top_build_prefix&;t t 22274s&@srcdir@&$ac_srcdir&;t t 22275s&@abs_srcdir@&$ac_abs_srcdir&;t t 22276s&@top_srcdir@&$ac_top_srcdir&;t t 22277s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22278s&@builddir@&$ac_builddir&;t t 22279s&@abs_builddir@&$ac_abs_builddir&;t t 22280s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22281s&@INSTALL@&$ac_INSTALL&;t t 22282s&@MKDIR_P@&$ac_MKDIR_P&;t t 22283$ac_datarootdir_hack 22284" 22285eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22286 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22287 22288test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22289 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22291 "$ac_tmp/out"`; test -z "$ac_out"; } && 22292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22293which seems to be undefined. Please make sure it is defined" >&5 22294printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22295which seems to be undefined. Please make sure it is defined" >&2;} 22296 22297 rm -f "$ac_tmp/stdin" 22298 case $ac_file in 22299 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22300 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22301 esac \ 22302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22303 ;; 22304 :H) 22305 # 22306 # CONFIG_HEADER 22307 # 22308 if test x"$ac_file" != x-; then 22309 { 22310 printf "%s\n" "/* $configure_input */" >&1 \ 22311 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22312 } >"$ac_tmp/config.h" \ 22313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22314 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22316printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22317 else 22318 rm -f "$ac_file" 22319 mv "$ac_tmp/config.h" "$ac_file" \ 22320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22321 fi 22322 else 22323 printf "%s\n" "/* $configure_input */" >&1 \ 22324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22325 || as_fn_error $? "could not create -" "$LINENO" 5 22326 fi 22327# Compute "$ac_file"'s index in $config_headers. 22328_am_arg="$ac_file" 22329_am_stamp_count=1 22330for _am_header in $config_headers :; do 22331 case $_am_header in 22332 $_am_arg | $_am_arg:* ) 22333 break ;; 22334 * ) 22335 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22336 esac 22337done 22338echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22339$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22340 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22341 X"$_am_arg" : 'X\(//\)$' \| \ 22342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22343printf "%s\n" X"$_am_arg" | 22344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22345 s//\1/ 22346 q 22347 } 22348 /^X\(\/\/\)[^/].*/{ 22349 s//\1/ 22350 q 22351 } 22352 /^X\(\/\/\)$/{ 22353 s//\1/ 22354 q 22355 } 22356 /^X\(\/\).*/{ 22357 s//\1/ 22358 q 22359 } 22360 s/.*/./; q'`/stamp-h$_am_stamp_count 22361 ;; 22362 22363 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22364printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22365 ;; 22366 esac 22367 22368 22369 case $ac_file$ac_mode in 22370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22371 # Older Autoconf quotes --file arguments for eval, but not when files 22372 # are listed without --file. Let's play safe and only enable the eval 22373 # if we detect the quoting. 22374 # TODO: see whether this extra hack can be removed once we start 22375 # requiring Autoconf 2.70 or later. 22376 case $CONFIG_FILES in #( 22377 *\'*) : 22378 eval set x "$CONFIG_FILES" ;; #( 22379 *) : 22380 set x $CONFIG_FILES ;; #( 22381 *) : 22382 ;; 22383esac 22384 shift 22385 # Used to flag and report bootstrapping failures. 22386 am_rc=0 22387 for am_mf 22388 do 22389 # Strip MF so we end up with the name of the file. 22390 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22391 # Check whether this is an Automake generated Makefile which includes 22392 # dependency-tracking related rules and includes. 22393 # Grep'ing the whole file directly is not great: AIX grep has a line 22394 # limit of 2048, but all sed's we know have understand at least 4000. 22395 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22396 || continue 22397 am_dirpart=`$as_dirname -- "$am_mf" || 22398$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22399 X"$am_mf" : 'X\(//\)[^/]' \| \ 22400 X"$am_mf" : 'X\(//\)$' \| \ 22401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22402printf "%s\n" X"$am_mf" | 22403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22404 s//\1/ 22405 q 22406 } 22407 /^X\(\/\/\)[^/].*/{ 22408 s//\1/ 22409 q 22410 } 22411 /^X\(\/\/\)$/{ 22412 s//\1/ 22413 q 22414 } 22415 /^X\(\/\).*/{ 22416 s//\1/ 22417 q 22418 } 22419 s/.*/./; q'` 22420 am_filepart=`$as_basename -- "$am_mf" || 22421$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22422 X"$am_mf" : 'X\(//\)$' \| \ 22423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22424printf "%s\n" X/"$am_mf" | 22425 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22426 s//\1/ 22427 q 22428 } 22429 /^X\/\(\/\/\)$/{ 22430 s//\1/ 22431 q 22432 } 22433 /^X\/\(\/\).*/{ 22434 s//\1/ 22435 q 22436 } 22437 s/.*/./; q'` 22438 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22439 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22440 | $MAKE -f - am--depfiles" >&5 22441 (cd "$am_dirpart" \ 22442 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22443 | $MAKE -f - am--depfiles) >&5 2>&5 22444 ac_status=$? 22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22446 (exit $ac_status); } || am_rc=$? 22447 done 22448 if test $am_rc -ne 0; then 22449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22450printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22451as_fn_error $? "Something went wrong bootstrapping makefile fragments 22452 for automatic dependency tracking. If GNU make was not used, consider 22453 re-running the configure script with MAKE=\"gmake\" (or whatever is 22454 necessary). You can also try re-running configure with the 22455 '--disable-dependency-tracking' option to at least be able to build 22456 the package (albeit without support for automatic dependency tracking). 22457See 'config.log' for more details" "$LINENO" 5; } 22458 fi 22459 { am_dirpart=; unset am_dirpart;} 22460 { am_filepart=; unset am_filepart;} 22461 { am_mf=; unset am_mf;} 22462 { am_rc=; unset am_rc;} 22463 rm -f conftest-deps.mk 22464} 22465 ;; 22466 "libtool":C) 22467 22468 # See if we are running on zsh, and set the options that allow our 22469 # commands through without removal of \ escapes. 22470 if test -n "${ZSH_VERSION+set}"; then 22471 setopt NO_GLOB_SUBST 22472 fi 22473 22474 cfgfile=${ofile}T 22475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22476 $RM "$cfgfile" 22477 22478 cat <<_LT_EOF >> "$cfgfile" 22479#! $SHELL 22480# Generated automatically by $as_me ($PACKAGE) $VERSION 22481# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22482# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22483 22484# Provide generalized library-building support services. 22485# Written by Gordon Matzigkeit, 1996 22486 22487# Copyright (C) 2014 Free Software Foundation, Inc. 22488# This is free software; see the source for copying conditions. There is NO 22489# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22490 22491# GNU Libtool is free software; you can redistribute it and/or modify 22492# it under the terms of the GNU General Public License as published by 22493# the Free Software Foundation; either version 2 of of the License, or 22494# (at your option) any later version. 22495# 22496# As a special exception to the GNU General Public License, if you 22497# distribute this file as part of a program or library that is built 22498# using GNU Libtool, you may include this file under the same 22499# distribution terms that you use for the rest of that program. 22500# 22501# GNU Libtool is distributed in the hope that it will be useful, but 22502# WITHOUT ANY WARRANTY; without even the implied warranty of 22503# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22504# GNU General Public License for more details. 22505# 22506# You should have received a copy of the GNU General Public License 22507# along with this program. If not, see <http://www.gnu.org/licenses/>. 22508 22509 22510# The names of the tagged configurations supported by this script. 22511available_tags='' 22512 22513# Configured defaults for sys_lib_dlsearch_path munging. 22514: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22515 22516# ### BEGIN LIBTOOL CONFIG 22517 22518# Which release of libtool.m4 was used? 22519macro_version=$macro_version 22520macro_revision=$macro_revision 22521 22522# Whether or not to build shared libraries. 22523build_libtool_libs=$enable_shared 22524 22525# Whether or not to build static libraries. 22526build_old_libs=$enable_static 22527 22528# What type of objects to build. 22529pic_mode=$pic_mode 22530 22531# Whether or not to optimize for fast installation. 22532fast_install=$enable_fast_install 22533 22534# Shared archive member basename,for filename based shared library versioning on AIX. 22535shared_archive_member_spec=$shared_archive_member_spec 22536 22537# Shell to use when invoking shell scripts. 22538SHELL=$lt_SHELL 22539 22540# An echo program that protects backslashes. 22541ECHO=$lt_ECHO 22542 22543# The PATH separator for the build system. 22544PATH_SEPARATOR=$lt_PATH_SEPARATOR 22545 22546# The host system. 22547host_alias=$host_alias 22548host=$host 22549host_os=$host_os 22550 22551# The build system. 22552build_alias=$build_alias 22553build=$build 22554build_os=$build_os 22555 22556# A sed program that does not truncate output. 22557SED=$lt_SED 22558 22559# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22560Xsed="\$SED -e 1s/^X//" 22561 22562# A grep program that handles long lines. 22563GREP=$lt_GREP 22564 22565# An ERE matcher. 22566EGREP=$lt_EGREP 22567 22568# A literal string matcher. 22569FGREP=$lt_FGREP 22570 22571# A BSD- or MS-compatible name lister. 22572NM=$lt_NM 22573 22574# Whether we need soft or hard links. 22575LN_S=$lt_LN_S 22576 22577# What is the maximum length of a command? 22578max_cmd_len=$max_cmd_len 22579 22580# Object file suffix (normally "o"). 22581objext=$ac_objext 22582 22583# Executable file suffix (normally ""). 22584exeext=$exeext 22585 22586# whether the shell understands "unset". 22587lt_unset=$lt_unset 22588 22589# turn spaces into newlines. 22590SP2NL=$lt_lt_SP2NL 22591 22592# turn newlines into spaces. 22593NL2SP=$lt_lt_NL2SP 22594 22595# convert \$build file names to \$host format. 22596to_host_file_cmd=$lt_cv_to_host_file_cmd 22597 22598# convert \$build files to toolchain format. 22599to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22600 22601# A file(cmd) program that detects file types. 22602FILECMD=$lt_FILECMD 22603 22604# An object symbol dumper. 22605OBJDUMP=$lt_OBJDUMP 22606 22607# Method to check whether dependent libraries are shared objects. 22608deplibs_check_method=$lt_deplibs_check_method 22609 22610# Command to use when deplibs_check_method = "file_magic". 22611file_magic_cmd=$lt_file_magic_cmd 22612 22613# How to find potential files when deplibs_check_method = "file_magic". 22614file_magic_glob=$lt_file_magic_glob 22615 22616# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22617want_nocaseglob=$lt_want_nocaseglob 22618 22619# DLL creation program. 22620DLLTOOL=$lt_DLLTOOL 22621 22622# Command to associate shared and link libraries. 22623sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22624 22625# The archiver. 22626AR=$lt_AR 22627 22628# Flags to create an archive (by configure). 22629lt_ar_flags=$lt_ar_flags 22630 22631# Flags to create an archive. 22632AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22633 22634# How to feed a file listing to the archiver. 22635archiver_list_spec=$lt_archiver_list_spec 22636 22637# A symbol stripping program. 22638STRIP=$lt_STRIP 22639 22640# Commands used to install an old-style archive. 22641RANLIB=$lt_RANLIB 22642old_postinstall_cmds=$lt_old_postinstall_cmds 22643old_postuninstall_cmds=$lt_old_postuninstall_cmds 22644 22645# Whether to use a lock for old archive extraction. 22646lock_old_archive_extraction=$lock_old_archive_extraction 22647 22648# A C compiler. 22649LTCC=$lt_CC 22650 22651# LTCC compiler flags. 22652LTCFLAGS=$lt_CFLAGS 22653 22654# Take the output of nm and produce a listing of raw symbols and C names. 22655global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22656 22657# Transform the output of nm in a proper C declaration. 22658global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22659 22660# Transform the output of nm into a list of symbols to manually relocate. 22661global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22662 22663# Transform the output of nm in a C name address pair. 22664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22665 22666# Transform the output of nm in a C name address pair when lib prefix is needed. 22667global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22668 22669# The name lister interface. 22670nm_interface=$lt_lt_cv_nm_interface 22671 22672# Specify filename containing input files for \$NM. 22673nm_file_list_spec=$lt_nm_file_list_spec 22674 22675# The root where to search for dependent libraries,and where our libraries should be installed. 22676lt_sysroot=$lt_sysroot 22677 22678# Command to truncate a binary pipe. 22679lt_truncate_bin=$lt_lt_cv_truncate_bin 22680 22681# The name of the directory that contains temporary libtool files. 22682objdir=$objdir 22683 22684# Used to examine libraries when file_magic_cmd begins with "file". 22685MAGIC_CMD=$MAGIC_CMD 22686 22687# Must we lock files when doing compilation? 22688need_locks=$lt_need_locks 22689 22690# Manifest tool. 22691MANIFEST_TOOL=$lt_MANIFEST_TOOL 22692 22693# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22694DSYMUTIL=$lt_DSYMUTIL 22695 22696# Tool to change global to local symbols on Mac OS X. 22697NMEDIT=$lt_NMEDIT 22698 22699# Tool to manipulate fat objects and archives on Mac OS X. 22700LIPO=$lt_LIPO 22701 22702# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22703OTOOL=$lt_OTOOL 22704 22705# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22706OTOOL64=$lt_OTOOL64 22707 22708# Old archive suffix (normally "a"). 22709libext=$libext 22710 22711# Shared library suffix (normally ".so"). 22712shrext_cmds=$lt_shrext_cmds 22713 22714# The commands to extract the exported symbol list from a shared archive. 22715extract_expsyms_cmds=$lt_extract_expsyms_cmds 22716 22717# Variables whose values should be saved in libtool wrapper scripts and 22718# restored at link time. 22719variables_saved_for_relink=$lt_variables_saved_for_relink 22720 22721# Do we need the "lib" prefix for modules? 22722need_lib_prefix=$need_lib_prefix 22723 22724# Do we need a version for libraries? 22725need_version=$need_version 22726 22727# Library versioning type. 22728version_type=$version_type 22729 22730# Shared library runtime path variable. 22731runpath_var=$runpath_var 22732 22733# Shared library path variable. 22734shlibpath_var=$shlibpath_var 22735 22736# Is shlibpath searched before the hard-coded library search path? 22737shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22738 22739# Format of library name prefix. 22740libname_spec=$lt_libname_spec 22741 22742# List of archive names. First name is the real one, the rest are links. 22743# The last name is the one that the linker finds with -lNAME 22744library_names_spec=$lt_library_names_spec 22745 22746# The coded name of the library, if different from the real name. 22747soname_spec=$lt_soname_spec 22748 22749# Permission mode override for installation of shared libraries. 22750install_override_mode=$lt_install_override_mode 22751 22752# Command to use after installation of a shared archive. 22753postinstall_cmds=$lt_postinstall_cmds 22754 22755# Command to use after uninstallation of a shared archive. 22756postuninstall_cmds=$lt_postuninstall_cmds 22757 22758# Commands used to finish a libtool library installation in a directory. 22759finish_cmds=$lt_finish_cmds 22760 22761# As "finish_cmds", except a single script fragment to be evaled but 22762# not shown. 22763finish_eval=$lt_finish_eval 22764 22765# Whether we should hardcode library paths into libraries. 22766hardcode_into_libs=$hardcode_into_libs 22767 22768# Compile-time system search path for libraries. 22769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22770 22771# Detected run-time system search path for libraries. 22772sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22773 22774# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22775configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22776 22777# Whether dlopen is supported. 22778dlopen_support=$enable_dlopen 22779 22780# Whether dlopen of programs is supported. 22781dlopen_self=$enable_dlopen_self 22782 22783# Whether dlopen of statically linked programs is supported. 22784dlopen_self_static=$enable_dlopen_self_static 22785 22786# Commands to strip libraries. 22787old_striplib=$lt_old_striplib 22788striplib=$lt_striplib 22789 22790 22791# The linker used to build libraries. 22792LD=$lt_LD 22793 22794# How to create reloadable object files. 22795reload_flag=$lt_reload_flag 22796reload_cmds=$lt_reload_cmds 22797 22798# Commands used to build an old-style archive. 22799old_archive_cmds=$lt_old_archive_cmds 22800 22801# A language specific compiler. 22802CC=$lt_compiler 22803 22804# Is the compiler the GNU compiler? 22805with_gcc=$GCC 22806 22807# Compiler flag to turn off builtin functions. 22808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22809 22810# Additional compiler flags for building library objects. 22811pic_flag=$lt_lt_prog_compiler_pic 22812 22813# How to pass a linker flag through the compiler. 22814wl=$lt_lt_prog_compiler_wl 22815 22816# Compiler flag to prevent dynamic linking. 22817link_static_flag=$lt_lt_prog_compiler_static 22818 22819# Does compiler simultaneously support -c and -o options? 22820compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22821 22822# Whether or not to add -lc for building shared libraries. 22823build_libtool_need_lc=$archive_cmds_need_lc 22824 22825# Whether or not to disallow shared libs when runtime libs are static. 22826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22827 22828# Compiler flag to allow reflexive dlopens. 22829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22830 22831# Compiler flag to generate shared objects directly from archives. 22832whole_archive_flag_spec=$lt_whole_archive_flag_spec 22833 22834# Whether the compiler copes with passing no objects directly. 22835compiler_needs_object=$lt_compiler_needs_object 22836 22837# Create an old-style archive from a shared archive. 22838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22839 22840# Create a temporary old-style archive to link instead of a shared archive. 22841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22842 22843# Commands used to build a shared archive. 22844archive_cmds=$lt_archive_cmds 22845archive_expsym_cmds=$lt_archive_expsym_cmds 22846 22847# Commands used to build a loadable module if different from building 22848# a shared archive. 22849module_cmds=$lt_module_cmds 22850module_expsym_cmds=$lt_module_expsym_cmds 22851 22852# Whether we are building with GNU ld or not. 22853with_gnu_ld=$lt_with_gnu_ld 22854 22855# Flag that allows shared libraries with undefined symbols to be built. 22856allow_undefined_flag=$lt_allow_undefined_flag 22857 22858# Flag that enforces no undefined symbols. 22859no_undefined_flag=$lt_no_undefined_flag 22860 22861# Flag to hardcode \$libdir into a binary during linking. 22862# This must work even if \$libdir does not exist 22863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22864 22865# Whether we need a single "-rpath" flag with a separated argument. 22866hardcode_libdir_separator=$lt_hardcode_libdir_separator 22867 22868# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22869# DIR into the resulting binary. 22870hardcode_direct=$hardcode_direct 22871 22872# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22873# DIR into the resulting binary and the resulting library dependency is 22874# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22875# library is relocated. 22876hardcode_direct_absolute=$hardcode_direct_absolute 22877 22878# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22879# into the resulting binary. 22880hardcode_minus_L=$hardcode_minus_L 22881 22882# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22883# into the resulting binary. 22884hardcode_shlibpath_var=$hardcode_shlibpath_var 22885 22886# Set to "yes" if building a shared library automatically hardcodes DIR 22887# into the library and all subsequent libraries and executables linked 22888# against it. 22889hardcode_automatic=$hardcode_automatic 22890 22891# Set to yes if linker adds runtime paths of dependent libraries 22892# to runtime path list. 22893inherit_rpath=$inherit_rpath 22894 22895# Whether libtool must link a program against all its dependency libraries. 22896link_all_deplibs=$link_all_deplibs 22897 22898# Set to "yes" if exported symbols are required. 22899always_export_symbols=$always_export_symbols 22900 22901# The commands to list exported symbols. 22902export_symbols_cmds=$lt_export_symbols_cmds 22903 22904# Symbols that should not be listed in the preloaded symbols. 22905exclude_expsyms=$lt_exclude_expsyms 22906 22907# Symbols that must always be exported. 22908include_expsyms=$lt_include_expsyms 22909 22910# Commands necessary for linking programs (against libraries) with templates. 22911prelink_cmds=$lt_prelink_cmds 22912 22913# Commands necessary for finishing linking programs. 22914postlink_cmds=$lt_postlink_cmds 22915 22916# Specify filename containing input files. 22917file_list_spec=$lt_file_list_spec 22918 22919# How to hardcode a shared library path into an executable. 22920hardcode_action=$hardcode_action 22921 22922# ### END LIBTOOL CONFIG 22923 22924_LT_EOF 22925 22926 cat <<'_LT_EOF' >> "$cfgfile" 22927 22928# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22929 22930# func_munge_path_list VARIABLE PATH 22931# ----------------------------------- 22932# VARIABLE is name of variable containing _space_ separated list of 22933# directories to be munged by the contents of PATH, which is string 22934# having a format: 22935# "DIR[:DIR]:" 22936# string "DIR[ DIR]" will be prepended to VARIABLE 22937# ":DIR[:DIR]" 22938# string "DIR[ DIR]" will be appended to VARIABLE 22939# "DIRP[:DIRP]::[DIRA:]DIRA" 22940# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22941# "DIRA[ DIRA]" will be appended to VARIABLE 22942# "DIR[:DIR]" 22943# VARIABLE will be replaced by "DIR[ DIR]" 22944func_munge_path_list () 22945{ 22946 case x$2 in 22947 x) 22948 ;; 22949 *:) 22950 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22951 ;; 22952 x:*) 22953 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22954 ;; 22955 *::*) 22956 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22957 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22958 ;; 22959 *) 22960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22961 ;; 22962 esac 22963} 22964 22965 22966# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22967func_cc_basename () 22968{ 22969 for cc_temp in $*""; do 22970 case $cc_temp in 22971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22973 \-*) ;; 22974 *) break;; 22975 esac 22976 done 22977 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22978} 22979 22980 22981# ### END FUNCTIONS SHARED WITH CONFIGURE 22982 22983_LT_EOF 22984 22985 case $host_os in 22986 aix3*) 22987 cat <<\_LT_EOF >> "$cfgfile" 22988# AIX sometimes has problems with the GCC collect2 program. For some 22989# reason, if we set the COLLECT_NAMES environment variable, the problems 22990# vanish in a puff of smoke. 22991if test set != "${COLLECT_NAMES+set}"; then 22992 COLLECT_NAMES= 22993 export COLLECT_NAMES 22994fi 22995_LT_EOF 22996 ;; 22997 esac 22998 22999 23000 23001ltmain=$ac_aux_dir/ltmain.sh 23002 23003 23004 # We use sed instead of cat because bash on DJGPP gets confused if 23005 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23006 # text mode, it properly converts lines to CR/LF. This bash problem 23007 # is reportedly fixed, but why not run on old versions too? 23008 $SED '$q' "$ltmain" >> "$cfgfile" \ 23009 || (rm -f "$cfgfile"; exit 1) 23010 23011 mv -f "$cfgfile" "$ofile" || 23012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23013 chmod +x "$ofile" 23014 23015 ;; 23016 23017 esac 23018done # for ac_tag 23019 23020 23021as_fn_exit 0 23022_ACEOF 23023ac_clean_files=$ac_clean_files_save 23024 23025test $ac_write_fail = 0 || 23026 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23027 23028 23029# configure is writing to config.log, and then calls config.status. 23030# config.status does its own redirection, appending to config.log. 23031# Unfortunately, on DOS this fails, as config.log is still kept open 23032# by configure, so config.status won't be able to write to it; its 23033# output is simply discarded. So we exec the FD to /dev/null, 23034# effectively closing config.log, so it can be properly (re)opened and 23035# appended to by config.status. When coming back to configure, we 23036# need to make the FD available again. 23037if test "$no_create" != yes; then 23038 ac_cs_success=: 23039 ac_config_status_args= 23040 test "$silent" = yes && 23041 ac_config_status_args="$ac_config_status_args --quiet" 23042 exec 5>/dev/null 23043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23044 exec 5>>config.log 23045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23046 # would make configure fail if this is the last instruction. 23047 $ac_cs_success || as_fn_exit 1 23048fi 23049if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23051printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23052fi 23053 23054 23055