configure revision 1009a292
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libICE 1.1.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libice/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601as_awk_strverscmp=' 602 # Use only awk features that work with 7th edition Unix awk (1978). 603 # My, what an old awk you have, Mr. Solaris! 604 END { 605 while (length(v1) && length(v2)) { 606 # Set d1 to be the next thing to compare from v1, and likewise for d2. 607 # Normally this is a single character, but if v1 and v2 contain digits, 608 # compare them as integers and fractions as strverscmp does. 609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 610 # Split v1 and v2 into their leading digit string components d1 and d2, 611 # and advance v1 and v2 past the leading digit strings. 612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 616 if (d1 ~ /^0/) { 617 if (d2 ~ /^0/) { 618 # Compare two fractions. 619 while (d1 ~ /^0/ && d2 ~ /^0/) { 620 d1 = substr(d1, 2); len1-- 621 d2 = substr(d2, 2); len2-- 622 } 623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 624 # The two components differ in length, and the common prefix 625 # contains only leading zeros. Consider the longer to be less. 626 d1 = -len1 627 d2 = -len2 628 } else { 629 # Otherwise, compare as strings. 630 d1 = "x" d1 631 d2 = "x" d2 632 } 633 } else { 634 # A fraction is less than an integer. 635 exit 1 636 } 637 } else { 638 if (d2 ~ /^0/) { 639 # An integer is greater than a fraction. 640 exit 2 641 } else { 642 # Compare two integers. 643 d1 += 0 644 d2 += 0 645 } 646 } 647 } else { 648 # The normal case, without worrying about digits. 649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 651 } 652 if (d1 < d2) exit 1 653 if (d1 > d2) exit 2 654 } 655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 656 # which mishandles some comparisons of empty strings to integers. 657 if (length(v2)) exit 1 658 if (length(v1)) exit 2 659 } 660' 661 662test -n "$DJDIR" || exec 7<&0 </dev/null 663exec 6>&1 664 665# Name of the host. 666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 667# so uname gets run too. 668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 669 670# 671# Initializations. 672# 673ac_default_prefix=/usr/local 674ac_clean_files= 675ac_config_libobj_dir=. 676LIBOBJS= 677cross_compiling=no 678subdirs= 679MFLAGS= 680MAKEFLAGS= 681 682# Identity of this package. 683PACKAGE_NAME='libICE' 684PACKAGE_TARNAME='libICE' 685PACKAGE_VERSION='1.1.1' 686PACKAGE_STRING='libICE 1.1.1' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libice/-/issues' 688PACKAGE_URL='' 689 690ac_unique_file="Makefile.am" 691# Factoring default headers for most tests. 692ac_includes_default="\ 693#include <stddef.h> 694#ifdef HAVE_STDIO_H 695# include <stdio.h> 696#endif 697#ifdef HAVE_STDLIB_H 698# include <stdlib.h> 699#endif 700#ifdef HAVE_STRING_H 701# include <string.h> 702#endif 703#ifdef HAVE_INTTYPES_H 704# include <inttypes.h> 705#endif 706#ifdef HAVE_STDINT_H 707# include <stdint.h> 708#endif 709#ifdef HAVE_STRINGS_H 710# include <strings.h> 711#endif 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef HAVE_UNISTD_H 719# include <unistd.h> 720#endif" 721 722ac_header_c_list= 723ac_subst_vars='am__EXEEXT_FALSE 724am__EXEEXT_TRUE 725LTLIBOBJS 726LIBOBJS 727MAKE_LINT_LIB_FALSE 728MAKE_LINT_LIB_TRUE 729LINTLIB 730LINT_FALSE 731LINT_TRUE 732LINT_FLAGS 733LINT 734LIBBSD_LIBS 735LIBBSD_CFLAGS 736ICE_LIBS 737ICE_CFLAGS 738HAVE_STYLESHEETS_FALSE 739HAVE_STYLESHEETS_TRUE 740XSL_STYLESHEET 741STYLESHEET_SRCDIR 742XORG_SGML_PATH 743HAVE_XSLTPROC_FALSE 744HAVE_XSLTPROC_TRUE 745XSLTPROC 746HAVE_FOP_FALSE 747HAVE_FOP_TRUE 748FOP 749HAVE_XMLTO_FALSE 750HAVE_XMLTO_TRUE 751HAVE_XMLTO_TEXT_FALSE 752HAVE_XMLTO_TEXT_TRUE 753XMLTO 754ENABLE_SPECS_FALSE 755ENABLE_SPECS_TRUE 756ENABLE_DOCS_FALSE 757ENABLE_DOCS_TRUE 758MAN_SUBSTS 759XORG_MAN_PAGE 760ADMIN_MAN_DIR 761DRIVER_MAN_DIR 762MISC_MAN_DIR 763FILE_MAN_DIR 764LIB_MAN_DIR 765APP_MAN_DIR 766ADMIN_MAN_SUFFIX 767DRIVER_MAN_SUFFIX 768MISC_MAN_SUFFIX 769FILE_MAN_SUFFIX 770LIB_MAN_SUFFIX 771APP_MAN_SUFFIX 772INSTALL_CMD 773PKG_CONFIG_LIBDIR 774PKG_CONFIG_PATH 775PKG_CONFIG 776CHANGELOG_CMD 777STRICT_CFLAGS 778CWARNFLAGS 779BASE_CFLAGS 780LT_SYS_LIBRARY_PATH 781OTOOL64 782OTOOL 783LIPO 784NMEDIT 785DSYMUTIL 786MANIFEST_TOOL 787RANLIB 788ac_ct_AR 789AR 790DLLTOOL 791OBJDUMP 792FILECMD 793LN_S 794NM 795ac_ct_DUMPBIN 796DUMPBIN 797LD 798FGREP 799EGREP 800GREP 801SED 802host_os 803host_vendor 804host_cpu 805host 806build_os 807build_vendor 808build_cpu 809build 810LIBTOOL 811AM_BACKSLASH 812AM_DEFAULT_VERBOSITY 813AM_DEFAULT_V 814AM_V 815CSCOPE 816ETAGS 817CTAGS 818am__fastdepCC_FALSE 819am__fastdepCC_TRUE 820CCDEPMODE 821am__nodep 822AMDEPBACKSLASH 823AMDEP_FALSE 824AMDEP_TRUE 825am__include 826DEPDIR 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 850OBJEXT 851EXEEXT 852ac_ct_CC 853CPPFLAGS 854LDFLAGS 855CFLAGS 856CC 857target_alias 858host_alias 859build_alias 860LIBS 861ECHO_T 862ECHO_N 863ECHO_C 864DEFS 865mandir 866localedir 867libdir 868psdir 869pdfdir 870dvidir 871htmldir 872infodir 873docdir 874oldincludedir 875includedir 876runstatedir 877localstatedir 878sharedstatedir 879sysconfdir 880datadir 881datarootdir 882libexecdir 883sbindir 884bindir 885program_transform_name 886prefix 887exec_prefix 888PACKAGE_URL 889PACKAGE_BUGREPORT 890PACKAGE_STRING 891PACKAGE_VERSION 892PACKAGE_TARNAME 893PACKAGE_NAME 894PATH_SEPARATOR 895SHELL 896am__quote' 897ac_subst_files='' 898ac_user_opts=' 899enable_option_checking 900enable_dependency_tracking 901enable_silent_rules 902enable_shared 903enable_static 904with_pic 905enable_fast_install 906with_aix_soname 907with_gnu_ld 908with_sysroot 909enable_libtool_lock 910enable_selective_werror 911enable_strict_compilation 912enable_docs 913enable_specs 914with_xmlto 915with_fop 916with_xsltproc 917enable_largefile 918enable_unix_transport 919enable_tcp_transport 920enable_ipv6 921enable_local_transport 922with_lint 923enable_lint_library 924' 925 ac_precious_vars='build_alias 926host_alias 927target_alias 928CC 929CFLAGS 930LDFLAGS 931LIBS 932CPPFLAGS 933LT_SYS_LIBRARY_PATH 934PKG_CONFIG 935PKG_CONFIG_PATH 936PKG_CONFIG_LIBDIR 937XMLTO 938FOP 939XSLTPROC 940ICE_CFLAGS 941ICE_LIBS 942LIBBSD_CFLAGS 943LIBBSD_LIBS 944LINT 945LINT_FLAGS' 946 947 948# Initialize some variables set by options. 949ac_init_help= 950ac_init_version=false 951ac_unrecognized_opts= 952ac_unrecognized_sep= 953# The variables have the same names as the options, with 954# dashes changed to underlines. 955cache_file=/dev/null 956exec_prefix=NONE 957no_create= 958no_recursion= 959prefix=NONE 960program_prefix=NONE 961program_suffix=NONE 962program_transform_name=s,x,x, 963silent= 964site= 965srcdir= 966verbose= 967x_includes=NONE 968x_libraries=NONE 969 970# Installation directory options. 971# These are left unexpanded so users can "make install exec_prefix=/foo" 972# and all the variables that are supposed to be based on exec_prefix 973# by default will actually change. 974# Use braces instead of parens because sh, perl, etc. also accept them. 975# (The list follows the same order as the GNU Coding Standards.) 976bindir='${exec_prefix}/bin' 977sbindir='${exec_prefix}/sbin' 978libexecdir='${exec_prefix}/libexec' 979datarootdir='${prefix}/share' 980datadir='${datarootdir}' 981sysconfdir='${prefix}/etc' 982sharedstatedir='${prefix}/com' 983localstatedir='${prefix}/var' 984runstatedir='${localstatedir}/run' 985includedir='${prefix}/include' 986oldincludedir='/usr/include' 987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 988infodir='${datarootdir}/info' 989htmldir='${docdir}' 990dvidir='${docdir}' 991pdfdir='${docdir}' 992psdir='${docdir}' 993libdir='${exec_prefix}/lib' 994localedir='${datarootdir}/locale' 995mandir='${datarootdir}/man' 996 997ac_prev= 998ac_dashdash= 999for ac_option 1000do 1001 # If the previous option needs an argument, assign it. 1002 if test -n "$ac_prev"; then 1003 eval $ac_prev=\$ac_option 1004 ac_prev= 1005 continue 1006 fi 1007 1008 case $ac_option in 1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1010 *=) ac_optarg= ;; 1011 *) ac_optarg=yes ;; 1012 esac 1013 1014 case $ac_dashdash$ac_option in 1015 --) 1016 ac_dashdash=yes ;; 1017 1018 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1019 ac_prev=bindir ;; 1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1021 bindir=$ac_optarg ;; 1022 1023 -build | --build | --buil | --bui | --bu) 1024 ac_prev=build_alias ;; 1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1026 build_alias=$ac_optarg ;; 1027 1028 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1030 ac_prev=cache_file ;; 1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1033 cache_file=$ac_optarg ;; 1034 1035 --config-cache | -C) 1036 cache_file=config.cache ;; 1037 1038 -datadir | --datadir | --datadi | --datad) 1039 ac_prev=datadir ;; 1040 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1041 datadir=$ac_optarg ;; 1042 1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1044 | --dataroo | --dataro | --datar) 1045 ac_prev=datarootdir ;; 1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1048 datarootdir=$ac_optarg ;; 1049 1050 -disable-* | --disable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=no ;; 1065 1066 -docdir | --docdir | --docdi | --doc | --do) 1067 ac_prev=docdir ;; 1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1069 docdir=$ac_optarg ;; 1070 1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1072 ac_prev=dvidir ;; 1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1074 dvidir=$ac_optarg ;; 1075 1076 -enable-* | --enable-*) 1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1078 # Reject names that are not valid shell variable names. 1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1080 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1081 ac_useropt_orig=$ac_useropt 1082 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1083 case $ac_user_opts in 1084 *" 1085"enable_$ac_useropt" 1086"*) ;; 1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1088 ac_unrecognized_sep=', ';; 1089 esac 1090 eval enable_$ac_useropt=\$ac_optarg ;; 1091 1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1094 | --exec | --exe | --ex) 1095 ac_prev=exec_prefix ;; 1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1098 | --exec=* | --exe=* | --ex=*) 1099 exec_prefix=$ac_optarg ;; 1100 1101 -gas | --gas | --ga | --g) 1102 # Obsolete; use --with-gas. 1103 with_gas=yes ;; 1104 1105 -help | --help | --hel | --he | -h) 1106 ac_init_help=long ;; 1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1108 ac_init_help=recursive ;; 1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1110 ac_init_help=short ;; 1111 1112 -host | --host | --hos | --ho) 1113 ac_prev=host_alias ;; 1114 -host=* | --host=* | --hos=* | --ho=*) 1115 host_alias=$ac_optarg ;; 1116 1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1118 ac_prev=htmldir ;; 1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1120 | --ht=*) 1121 htmldir=$ac_optarg ;; 1122 1123 -includedir | --includedir | --includedi | --included | --include \ 1124 | --includ | --inclu | --incl | --inc) 1125 ac_prev=includedir ;; 1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1127 | --includ=* | --inclu=* | --incl=* | --inc=*) 1128 includedir=$ac_optarg ;; 1129 1130 -infodir | --infodir | --infodi | --infod | --info | --inf) 1131 ac_prev=infodir ;; 1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1133 infodir=$ac_optarg ;; 1134 1135 -libdir | --libdir | --libdi | --libd) 1136 ac_prev=libdir ;; 1137 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1138 libdir=$ac_optarg ;; 1139 1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1141 | --libexe | --libex | --libe) 1142 ac_prev=libexecdir ;; 1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1144 | --libexe=* | --libex=* | --libe=*) 1145 libexecdir=$ac_optarg ;; 1146 1147 -localedir | --localedir | --localedi | --localed | --locale) 1148 ac_prev=localedir ;; 1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1150 localedir=$ac_optarg ;; 1151 1152 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1153 | --localstate | --localstat | --localsta | --localst | --locals) 1154 ac_prev=localstatedir ;; 1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1157 localstatedir=$ac_optarg ;; 1158 1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1160 ac_prev=mandir ;; 1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1162 mandir=$ac_optarg ;; 1163 1164 -nfp | --nfp | --nf) 1165 # Obsolete; use --without-fp. 1166 with_fp=no ;; 1167 1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1169 | --no-cr | --no-c | -n) 1170 no_create=yes ;; 1171 1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1174 no_recursion=yes ;; 1175 1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1178 | --oldin | --oldi | --old | --ol | --o) 1179 ac_prev=oldincludedir ;; 1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1183 oldincludedir=$ac_optarg ;; 1184 1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1186 ac_prev=prefix ;; 1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1188 prefix=$ac_optarg ;; 1189 1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1191 | --program-pre | --program-pr | --program-p) 1192 ac_prev=program_prefix ;; 1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1195 program_prefix=$ac_optarg ;; 1196 1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1198 | --program-suf | --program-su | --program-s) 1199 ac_prev=program_suffix ;; 1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1202 program_suffix=$ac_optarg ;; 1203 1204 -program-transform-name | --program-transform-name \ 1205 | --program-transform-nam | --program-transform-na \ 1206 | --program-transform-n | --program-transform- \ 1207 | --program-transform | --program-transfor \ 1208 | --program-transfo | --program-transf \ 1209 | --program-trans | --program-tran \ 1210 | --progr-tra | --program-tr | --program-t) 1211 ac_prev=program_transform_name ;; 1212 -program-transform-name=* | --program-transform-name=* \ 1213 | --program-transform-nam=* | --program-transform-na=* \ 1214 | --program-transform-n=* | --program-transform-=* \ 1215 | --program-transform=* | --program-transfor=* \ 1216 | --program-transfo=* | --program-transf=* \ 1217 | --program-trans=* | --program-tran=* \ 1218 | --progr-tra=* | --program-tr=* | --program-t=*) 1219 program_transform_name=$ac_optarg ;; 1220 1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1222 ac_prev=pdfdir ;; 1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1224 pdfdir=$ac_optarg ;; 1225 1226 -psdir | --psdir | --psdi | --psd | --ps) 1227 ac_prev=psdir ;; 1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1229 psdir=$ac_optarg ;; 1230 1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1232 | -silent | --silent | --silen | --sile | --sil) 1233 silent=yes ;; 1234 1235 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1236 | --runstate | --runstat | --runsta | --runst | --runs \ 1237 | --run | --ru | --r) 1238 ac_prev=runstatedir ;; 1239 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1240 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1241 | --run=* | --ru=* | --r=*) 1242 runstatedir=$ac_optarg ;; 1243 1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1245 ac_prev=sbindir ;; 1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1247 | --sbi=* | --sb=*) 1248 sbindir=$ac_optarg ;; 1249 1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1252 | --sharedst | --shareds | --shared | --share | --shar \ 1253 | --sha | --sh) 1254 ac_prev=sharedstatedir ;; 1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1258 | --sha=* | --sh=*) 1259 sharedstatedir=$ac_optarg ;; 1260 1261 -site | --site | --sit) 1262 ac_prev=site ;; 1263 -site=* | --site=* | --sit=*) 1264 site=$ac_optarg ;; 1265 1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1267 ac_prev=srcdir ;; 1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1269 srcdir=$ac_optarg ;; 1270 1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1272 | --syscon | --sysco | --sysc | --sys | --sy) 1273 ac_prev=sysconfdir ;; 1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1276 sysconfdir=$ac_optarg ;; 1277 1278 -target | --target | --targe | --targ | --tar | --ta | --t) 1279 ac_prev=target_alias ;; 1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1281 target_alias=$ac_optarg ;; 1282 1283 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1284 verbose=yes ;; 1285 1286 -version | --version | --versio | --versi | --vers | -V) 1287 ac_init_version=: ;; 1288 1289 -with-* | --with-*) 1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1291 # Reject names that are not valid shell variable names. 1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1293 as_fn_error $? "invalid package name: \`$ac_useropt'" 1294 ac_useropt_orig=$ac_useropt 1295 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1296 case $ac_user_opts in 1297 *" 1298"with_$ac_useropt" 1299"*) ;; 1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1301 ac_unrecognized_sep=', ';; 1302 esac 1303 eval with_$ac_useropt=\$ac_optarg ;; 1304 1305 -without-* | --without-*) 1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1307 # Reject names that are not valid shell variable names. 1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1309 as_fn_error $? "invalid package name: \`$ac_useropt'" 1310 ac_useropt_orig=$ac_useropt 1311 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1312 case $ac_user_opts in 1313 *" 1314"with_$ac_useropt" 1315"*) ;; 1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1317 ac_unrecognized_sep=', ';; 1318 esac 1319 eval with_$ac_useropt=no ;; 1320 1321 --x) 1322 # Obsolete; use --with-x. 1323 with_x=yes ;; 1324 1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1326 | --x-incl | --x-inc | --x-in | --x-i) 1327 ac_prev=x_includes ;; 1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1330 x_includes=$ac_optarg ;; 1331 1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1334 ac_prev=x_libraries ;; 1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1337 x_libraries=$ac_optarg ;; 1338 1339 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1340Try \`$0 --help' for more information" 1341 ;; 1342 1343 *=*) 1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1345 # Reject names that are not valid shell variable names. 1346 case $ac_envvar in #( 1347 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1349 esac 1350 eval $ac_envvar=\$ac_optarg 1351 export $ac_envvar ;; 1352 1353 *) 1354 # FIXME: should be removed in autoconf 3.0. 1355 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1357 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1359 ;; 1360 1361 esac 1362done 1363 1364if test -n "$ac_prev"; then 1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1366 as_fn_error $? "missing argument to $ac_option" 1367fi 1368 1369if test -n "$ac_unrecognized_opts"; then 1370 case $enable_option_checking in 1371 no) ;; 1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1373 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1374 esac 1375fi 1376 1377# Check all directory arguments for consistency. 1378for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1379 datadir sysconfdir sharedstatedir localstatedir includedir \ 1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1381 libdir localedir mandir runstatedir 1382do 1383 eval ac_val=\$$ac_var 1384 # Remove trailing slashes. 1385 case $ac_val in 1386 */ ) 1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1388 eval $ac_var=\$ac_val;; 1389 esac 1390 # Be sure to have absolute directory names. 1391 case $ac_val in 1392 [\\/$]* | ?:[\\/]* ) continue;; 1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1394 esac 1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1396done 1397 1398# There might be people who depend on the old broken behavior: `$host' 1399# used to hold the argument of --host etc. 1400# FIXME: To remove some day. 1401build=$build_alias 1402host=$host_alias 1403target=$target_alias 1404 1405# FIXME: To remove some day. 1406if test "x$host_alias" != x; then 1407 if test "x$build_alias" = x; then 1408 cross_compiling=maybe 1409 elif test "x$build_alias" != "x$host_alias"; then 1410 cross_compiling=yes 1411 fi 1412fi 1413 1414ac_tool_prefix= 1415test -n "$host_alias" && ac_tool_prefix=$host_alias- 1416 1417test "$silent" = yes && exec 6>/dev/null 1418 1419 1420ac_pwd=`pwd` && test -n "$ac_pwd" && 1421ac_ls_di=`ls -di .` && 1422ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1423 as_fn_error $? "working directory cannot be determined" 1424test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1425 as_fn_error $? "pwd does not report name of working directory" 1426 1427 1428# Find the source files, if location was not specified. 1429if test -z "$srcdir"; then 1430 ac_srcdir_defaulted=yes 1431 # Try the directory containing this script, then the parent directory. 1432 ac_confdir=`$as_dirname -- "$as_myself" || 1433$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1434 X"$as_myself" : 'X\(//\)[^/]' \| \ 1435 X"$as_myself" : 'X\(//\)$' \| \ 1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1437printf "%s\n" X"$as_myself" | 1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1439 s//\1/ 1440 q 1441 } 1442 /^X\(\/\/\)[^/].*/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\/\)$/{ 1447 s//\1/ 1448 q 1449 } 1450 /^X\(\/\).*/{ 1451 s//\1/ 1452 q 1453 } 1454 s/.*/./; q'` 1455 srcdir=$ac_confdir 1456 if test ! -r "$srcdir/$ac_unique_file"; then 1457 srcdir=.. 1458 fi 1459else 1460 ac_srcdir_defaulted=no 1461fi 1462if test ! -r "$srcdir/$ac_unique_file"; then 1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1465fi 1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1467ac_abs_confdir=`( 1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1469 pwd)` 1470# When building in place, set srcdir=. 1471if test "$ac_abs_confdir" = "$ac_pwd"; then 1472 srcdir=. 1473fi 1474# Remove unnecessary trailing slashes from srcdir. 1475# Double slashes in file names in object file debugging info 1476# mess up M-x gdb in Emacs. 1477case $srcdir in 1478*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1479esac 1480for ac_var in $ac_precious_vars; do 1481 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1482 eval ac_env_${ac_var}_value=\$${ac_var} 1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1484 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1485done 1486 1487# 1488# Report the --help message. 1489# 1490if test "$ac_init_help" = "long"; then 1491 # Omit some internal or obsolete options to make the list less imposing. 1492 # This message is too long to be a string in the A/UX 3.1 sh. 1493 cat <<_ACEOF 1494\`configure' configures libICE 1.1.1 to adapt to many kinds of systems. 1495 1496Usage: $0 [OPTION]... [VAR=VALUE]... 1497 1498To assign environment variables (e.g., CC, CFLAGS...), specify them as 1499VAR=VALUE. See below for descriptions of some of the useful variables. 1500 1501Defaults for the options are specified in brackets. 1502 1503Configuration: 1504 -h, --help display this help and exit 1505 --help=short display options specific to this package 1506 --help=recursive display the short help of all the included packages 1507 -V, --version display version information and exit 1508 -q, --quiet, --silent do not print \`checking ...' messages 1509 --cache-file=FILE cache test results in FILE [disabled] 1510 -C, --config-cache alias for \`--cache-file=config.cache' 1511 -n, --no-create do not create output files 1512 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1513 1514Installation directories: 1515 --prefix=PREFIX install architecture-independent files in PREFIX 1516 [$ac_default_prefix] 1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1518 [PREFIX] 1519 1520By default, \`make install' will install all the files in 1521\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1522an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1523for instance \`--prefix=\$HOME'. 1524 1525For better control, use the options below. 1526 1527Fine tuning of the installation directories: 1528 --bindir=DIR user executables [EPREFIX/bin] 1529 --sbindir=DIR system admin executables [EPREFIX/sbin] 1530 --libexecdir=DIR program executables [EPREFIX/libexec] 1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1534 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1535 --libdir=DIR object code libraries [EPREFIX/lib] 1536 --includedir=DIR C header files [PREFIX/include] 1537 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1540 --infodir=DIR info documentation [DATAROOTDIR/info] 1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1542 --mandir=DIR man documentation [DATAROOTDIR/man] 1543 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE] 1544 --htmldir=DIR html documentation [DOCDIR] 1545 --dvidir=DIR dvi documentation [DOCDIR] 1546 --pdfdir=DIR pdf documentation [DOCDIR] 1547 --psdir=DIR ps documentation [DOCDIR] 1548_ACEOF 1549 1550 cat <<\_ACEOF 1551 1552Program names: 1553 --program-prefix=PREFIX prepend PREFIX to installed program names 1554 --program-suffix=SUFFIX append SUFFIX to installed program names 1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1556 1557System types: 1558 --build=BUILD configure for building on BUILD [guessed] 1559 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1560_ACEOF 1561fi 1562 1563if test -n "$ac_init_help"; then 1564 case $ac_init_help in 1565 short | recursive ) echo "Configuration of libICE 1.1.1:";; 1566 esac 1567 cat <<\_ACEOF 1568 1569Optional Features: 1570 --disable-option-checking ignore unrecognized --enable/--with options 1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1573 --enable-dependency-tracking 1574 do not reject slow dependency extractors 1575 --disable-dependency-tracking 1576 speeds up one-time build 1577 --enable-silent-rules less verbose build output (undo: "make V=1") 1578 --disable-silent-rules verbose build output (undo: "make V=0") 1579 --enable-shared[=PKGS] build shared libraries [default=yes] 1580 --enable-static[=PKGS] build static libraries [default=yes] 1581 --enable-fast-install[=PKGS] 1582 optimize for fast installation [default=yes] 1583 --disable-libtool-lock avoid locking (might break parallel builds) 1584 --disable-selective-werror 1585 Turn off selective compiler errors. (default: 1586 enabled) 1587 --enable-strict-compilation 1588 Enable all warnings from compiler and make them 1589 errors (default: disabled) 1590 --enable-docs Enable building the documentation (default: yes) 1591 --enable-specs Enable building the specs (default: yes) 1592 --disable-largefile omit support for large files 1593 --enable-unix-transport Enable UNIX domain socket transport 1594 --enable-tcp-transport Enable TCP socket transport 1595 --enable-ipv6 Enable IPv6 support 1596 --enable-local-transport 1597 Enable os-specific local transport 1598 --enable-lint-library Create lint library (default: disabled) 1599 1600Optional Packages: 1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1604 both] 1605 --with-aix-soname=aix|svr4|both 1606 shared library versioning (aka "SONAME") variant to 1607 provide on AIX, [default=aix]. 1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1609 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1610 compiler's sysroot if not specified). 1611 --with-xmlto Use xmlto to regenerate documentation (default: 1612 auto) 1613 --with-fop Use fop to regenerate documentation (default: auto) 1614 --with-xsltproc Use xsltproc for the transformation of XML documents 1615 (default: auto) 1616 --with-lint Use a lint-style source code checker (default: 1617 disabled) 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 LT_SYS_LIBRARY_PATH 1628 User-defined run-time library search path. 1629 PKG_CONFIG path to pkg-config utility 1630 PKG_CONFIG_PATH 1631 directories to add to pkg-config's search path 1632 PKG_CONFIG_LIBDIR 1633 path overriding pkg-config's built-in search path 1634 XMLTO Path to xmlto command 1635 FOP Path to fop command 1636 XSLTPROC Path to xsltproc command 1637 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config 1638 ICE_LIBS linker flags for ICE, overriding pkg-config 1639 LIBBSD_CFLAGS 1640 C compiler flags for LIBBSD, overriding pkg-config 1641 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1642 LINT Path to a lint-style command 1643 LINT_FLAGS Flags for the lint-style command 1644 1645Use these variables to override the choices made by `configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for configure.gnu first; this name is used for a wrapper for 1695 # Metaconfig's "Configure" on case-insensitive file systems. 1696 if test -f "$ac_srcdir/configure.gnu"; then 1697 echo && 1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1699 elif test -f "$ac_srcdir/configure"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure" --help=recursive 1702 else 1703 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1704 fi || ac_status=$? 1705 cd "$ac_pwd" || { ac_status=$?; break; } 1706 done 1707fi 1708 1709test -n "$ac_init_help" && exit $ac_status 1710if $ac_init_version; then 1711 cat <<\_ACEOF 1712libICE configure 1.1.1 1713generated by GNU Autoconf 2.71 1714 1715Copyright (C) 2021 Free Software Foundation, Inc. 1716This configure script is free software; the Free Software Foundation 1717gives unlimited permission to copy, distribute and modify it. 1718_ACEOF 1719 exit 1720fi 1721 1722## ------------------------ ## 1723## Autoconf initialization. ## 1724## ------------------------ ## 1725 1726# ac_fn_c_try_compile LINENO 1727# -------------------------- 1728# Try to compile conftest.$ac_ext, and return whether this succeeded. 1729ac_fn_c_try_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 rm -f conftest.$ac_objext conftest.beam 1733 if { { ac_try="$ac_compile" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739printf "%s\n" "$ac_try_echo"; } >&5 1740 (eval "$ac_compile") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { 1749 test -z "$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 } && test -s conftest.$ac_objext 1752then : 1753 ac_retval=0 1754else $as_nop 1755 printf "%s\n" "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_compile 1764 1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1766# ------------------------------------------------------- 1767# Tests whether HEADER exists and can be compiled using the include files in 1768# INCLUDES, setting the cache variable VAR accordingly. 1769ac_fn_c_check_header_compile () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773printf %s "checking for $2... " >&6; } 1774if eval test \${$3+y} 1775then : 1776 printf %s "(cached) " >&6 1777else $as_nop 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780$4 1781#include <$2> 1782_ACEOF 1783if ac_fn_c_try_compile "$LINENO" 1784then : 1785 eval "$3=yes" 1786else $as_nop 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1790fi 1791eval ac_res=\$$3 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793printf "%s\n" "$ac_res" >&6; } 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 1796} # ac_fn_c_check_header_compile 1797 1798# ac_fn_c_try_link LINENO 1799# ----------------------- 1800# Try to link conftest.$ac_ext, and return whether this succeeded. 1801ac_fn_c_try_link () 1802{ 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1805 if { { ac_try="$ac_link" 1806case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811printf "%s\n" "$ac_try_echo"; } >&5 1812 (eval "$ac_link") 2>conftest.err 1813 ac_status=$? 1814 if test -s conftest.err; then 1815 grep -v '^ *+' conftest.err >conftest.er1 1816 cat conftest.er1 >&5 1817 mv -f conftest.er1 conftest.err 1818 fi 1819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; } && { 1821 test -z "$ac_c_werror_flag" || 1822 test ! -s conftest.err 1823 } && test -s conftest$ac_exeext && { 1824 test "$cross_compiling" = yes || 1825 test -x conftest$ac_exeext 1826 } 1827then : 1828 ac_retval=0 1829else $as_nop 1830 printf "%s\n" "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1837 # interfere with the next link command; also delete a directory that is 1838 # left behind by Apple's compiler. We do this before executing the actions. 1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 as_fn_set_status $ac_retval 1842 1843} # ac_fn_c_try_link 1844 1845# ac_fn_c_check_func LINENO FUNC VAR 1846# ---------------------------------- 1847# Tests whether FUNC exists, setting the cache variable VAR accordingly 1848ac_fn_c_check_func () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852printf %s "checking for $2... " >&6; } 1853if eval test \${$3+y} 1854then : 1855 printf %s "(cached) " >&6 1856else $as_nop 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1861#define $2 innocuous_$2 1862 1863/* System header to define __stub macros and hopefully few prototypes, 1864 which can conflict with char $2 (void); below. */ 1865 1866#include <limits.h> 1867#undef $2 1868 1869/* Override any GCC internal prototype to avoid an error. 1870 Use char because int might match the return type of a GCC 1871 builtin and then its argument prototype would still apply. */ 1872#ifdef __cplusplus 1873extern "C" 1874#endif 1875char $2 (void); 1876/* The GNU C library defines this for functions which it implements 1877 to always fail with ENOSYS. Some functions are actually named 1878 something starting with __ and the normal name is an alias. */ 1879#if defined __stub_$2 || defined __stub___$2 1880choke me 1881#endif 1882 1883int 1884main (void) 1885{ 1886return $2 (); 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891if ac_fn_c_try_link "$LINENO" 1892then : 1893 eval "$3=yes" 1894else $as_nop 1895 eval "$3=no" 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1898 conftest$ac_exeext conftest.$ac_ext 1899fi 1900eval ac_res=\$$3 1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1902printf "%s\n" "$ac_res" >&6; } 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 1905} # ac_fn_c_check_func 1906 1907# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1908# ------------------------------------------------------------------ 1909# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1910# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1911ac_fn_check_decl () 1912{ 1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1914 as_decl_name=`echo $2|sed 's/ *(.*//'` 1915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1916printf %s "checking whether $as_decl_name is declared... " >&6; } 1917if eval test \${$3+y} 1918then : 1919 printf %s "(cached) " >&6 1920else $as_nop 1921 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1922 eval ac_save_FLAGS=\$$6 1923 as_fn_append $6 " $5" 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927int 1928main (void) 1929{ 1930#ifndef $as_decl_name 1931#ifdef __cplusplus 1932 (void) $as_decl_use; 1933#else 1934 (void) $as_decl_name; 1935#endif 1936#endif 1937 1938 ; 1939 return 0; 1940} 1941_ACEOF 1942if ac_fn_c_try_compile "$LINENO" 1943then : 1944 eval "$3=yes" 1945else $as_nop 1946 eval "$3=no" 1947fi 1948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1949 eval $6=\$ac_save_FLAGS 1950 1951fi 1952eval ac_res=\$$3 1953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954printf "%s\n" "$ac_res" >&6; } 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 1957} # ac_fn_check_decl 1958 1959# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1960# ---------------------------------------------------- 1961# Tries to find if the field MEMBER exists in type AGGR, after including 1962# INCLUDES, setting cache variable VAR accordingly. 1963ac_fn_c_check_member () 1964{ 1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1967printf %s "checking for $2.$3... " >&6; } 1968if eval test \${$4+y} 1969then : 1970 printf %s "(cached) " >&6 1971else $as_nop 1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973/* end confdefs.h. */ 1974$5 1975int 1976main (void) 1977{ 1978static $2 ac_aggr; 1979if (ac_aggr.$3) 1980return 0; 1981 ; 1982 return 0; 1983} 1984_ACEOF 1985if ac_fn_c_try_compile "$LINENO" 1986then : 1987 eval "$4=yes" 1988else $as_nop 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$5 1992int 1993main (void) 1994{ 1995static $2 ac_aggr; 1996if (sizeof ac_aggr.$3) 1997return 0; 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002if ac_fn_c_try_compile "$LINENO" 2003then : 2004 eval "$4=yes" 2005else $as_nop 2006 eval "$4=no" 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2011fi 2012eval ac_res=\$$4 2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2014printf "%s\n" "$ac_res" >&6; } 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 2017} # ac_fn_c_check_member 2018 2019# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2020# ------------------------------------------- 2021# Tests whether TYPE exists after having included INCLUDES, setting cache 2022# variable VAR accordingly. 2023ac_fn_c_check_type () 2024{ 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2027printf %s "checking for $2... " >&6; } 2028if eval test \${$3+y} 2029then : 2030 printf %s "(cached) " >&6 2031else $as_nop 2032 eval "$3=no" 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main (void) 2038{ 2039if (sizeof ($2)) 2040 return 0; 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO" 2046then : 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049$4 2050int 2051main (void) 2052{ 2053if (sizeof (($2))) 2054 return 0; 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO" 2060then : 2061 2062else $as_nop 2063 eval "$3=yes" 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2068fi 2069eval ac_res=\$$3 2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2071printf "%s\n" "$ac_res" >&6; } 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2073 2074} # ac_fn_c_check_type 2075ac_configure_args_raw= 2076for ac_arg 2077do 2078 case $ac_arg in 2079 *\'*) 2080 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2081 esac 2082 as_fn_append ac_configure_args_raw " '$ac_arg'" 2083done 2084 2085case $ac_configure_args_raw in 2086 *$as_nl*) 2087 ac_safe_unquote= ;; 2088 *) 2089 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2090 ac_unsafe_a="$ac_unsafe_z#~" 2091 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2092 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2093esac 2094 2095cat >config.log <<_ACEOF 2096This file contains any messages produced by compilers while 2097running configure, to aid debugging if configure makes a mistake. 2098 2099It was created by libICE $as_me 1.1.1, which was 2100generated by GNU Autoconf 2.71. Invocation command line was 2101 2102 $ $0$ac_configure_args_raw 2103 2104_ACEOF 2105exec 5>>config.log 2106{ 2107cat <<_ASUNAME 2108## --------- ## 2109## Platform. ## 2110## --------- ## 2111 2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2113uname -m = `(uname -m) 2>/dev/null || echo unknown` 2114uname -r = `(uname -r) 2>/dev/null || echo unknown` 2115uname -s = `(uname -s) 2>/dev/null || echo unknown` 2116uname -v = `(uname -v) 2>/dev/null || echo unknown` 2117 2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2119/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2120 2121/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2122/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2124/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2125/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2126/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2127/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2128 2129_ASUNAME 2130 2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH 2133do 2134 IFS=$as_save_IFS 2135 case $as_dir in #((( 2136 '') as_dir=./ ;; 2137 */) ;; 2138 *) as_dir=$as_dir/ ;; 2139 esac 2140 printf "%s\n" "PATH: $as_dir" 2141 done 2142IFS=$as_save_IFS 2143 2144} >&5 2145 2146cat >&5 <<_ACEOF 2147 2148 2149## ----------- ## 2150## Core tests. ## 2151## ----------- ## 2152 2153_ACEOF 2154 2155 2156# Keep a trace of the command line. 2157# Strip out --no-create and --no-recursion so they do not pile up. 2158# Strip out --silent because we don't want to record it for future runs. 2159# Also quote any args containing shell meta-characters. 2160# Make two passes to allow for proper duplicate-argument suppression. 2161ac_configure_args= 2162ac_configure_args0= 2163ac_configure_args1= 2164ac_must_keep_next=false 2165for ac_pass in 1 2 2166do 2167 for ac_arg 2168 do 2169 case $ac_arg in 2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2172 | -silent | --silent | --silen | --sile | --sil) 2173 continue ;; 2174 *\'*) 2175 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2176 esac 2177 case $ac_pass in 2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2179 2) 2180 as_fn_append ac_configure_args1 " '$ac_arg'" 2181 if test $ac_must_keep_next = true; then 2182 ac_must_keep_next=false # Got value, back to normal. 2183 else 2184 case $ac_arg in 2185 *=* | --config-cache | -C | -disable-* | --disable-* \ 2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2188 | -with-* | --with-* | -without-* | --without-* | --x) 2189 case "$ac_configure_args0 " in 2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2191 esac 2192 ;; 2193 -* ) ac_must_keep_next=true ;; 2194 esac 2195 fi 2196 as_fn_append ac_configure_args " '$ac_arg'" 2197 ;; 2198 esac 2199 done 2200done 2201{ ac_configure_args0=; unset ac_configure_args0;} 2202{ ac_configure_args1=; unset ac_configure_args1;} 2203 2204# When interrupted or exit'd, cleanup temporary files, and complete 2205# config.log. We remove comments because anyway the quotes in there 2206# would cause problems or look ugly. 2207# WARNING: Use '\'' to represent an apostrophe within the trap. 2208# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2209trap 'exit_status=$? 2210 # Sanitize IFS. 2211 IFS=" "" $as_nl" 2212 # Save into config.log some information that might help in debugging. 2213 { 2214 echo 2215 2216 printf "%s\n" "## ---------------- ## 2217## Cache variables. ## 2218## ---------------- ##" 2219 echo 2220 # The following way of writing the cache mishandles newlines in values, 2221( 2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in #( 2225 *${as_nl}*) 2226 case $ac_var in #( 2227 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2228printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2229 esac 2230 case $ac_var in #( 2231 _ | IFS | as_nl) ;; #( 2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2233 *) { eval $ac_var=; unset $ac_var;} ;; 2234 esac ;; 2235 esac 2236 done 2237 (set) 2>&1 | 2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2239 *${as_nl}ac_space=\ *) 2240 sed -n \ 2241 "s/'\''/'\''\\\\'\'''\''/g; 2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2243 ;; #( 2244 *) 2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2246 ;; 2247 esac | 2248 sort 2249) 2250 echo 2251 2252 printf "%s\n" "## ----------------- ## 2253## Output variables. ## 2254## ----------------- ##" 2255 echo 2256 for ac_var in $ac_subst_vars 2257 do 2258 eval ac_val=\$$ac_var 2259 case $ac_val in 2260 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2261 esac 2262 printf "%s\n" "$ac_var='\''$ac_val'\''" 2263 done | sort 2264 echo 2265 2266 if test -n "$ac_subst_files"; then 2267 printf "%s\n" "## ------------------- ## 2268## File substitutions. ## 2269## ------------------- ##" 2270 echo 2271 for ac_var in $ac_subst_files 2272 do 2273 eval ac_val=\$$ac_var 2274 case $ac_val in 2275 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2276 esac 2277 printf "%s\n" "$ac_var='\''$ac_val'\''" 2278 done | sort 2279 echo 2280 fi 2281 2282 if test -s confdefs.h; then 2283 printf "%s\n" "## ----------- ## 2284## confdefs.h. ## 2285## ----------- ##" 2286 echo 2287 cat confdefs.h 2288 echo 2289 fi 2290 test "$ac_signal" != 0 && 2291 printf "%s\n" "$as_me: caught signal $ac_signal" 2292 printf "%s\n" "$as_me: exit $exit_status" 2293 } >&5 2294 rm -f core *.core core.conftest.* && 2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2296 exit $exit_status 2297' 0 2298for ac_signal in 1 2 13 15; do 2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2300done 2301ac_signal=0 2302 2303# confdefs.h avoids OS command line length limits that DEFS can exceed. 2304rm -f -r conftest* confdefs.h 2305 2306printf "%s\n" "/* confdefs.h */" > confdefs.h 2307 2308# Predefined preprocessor variables. 2309 2310printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2311 2312printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2313 2314printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2315 2316printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2317 2318printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2319 2320printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2321 2322 2323# Let the site file select an alternate cache file if it wants to. 2324# Prefer an explicitly selected file to automatically selected ones. 2325if test -n "$CONFIG_SITE"; then 2326 ac_site_files="$CONFIG_SITE" 2327elif test "x$prefix" != xNONE; then 2328 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2329else 2330 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2331fi 2332 2333for ac_site_file in $ac_site_files 2334do 2335 case $ac_site_file in #( 2336 */*) : 2337 ;; #( 2338 *) : 2339 ac_site_file=./$ac_site_file ;; 2340esac 2341 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2343printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2344 sed 's/^/| /' "$ac_site_file" >&5 2345 . "$ac_site_file" \ 2346 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2347printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2348as_fn_error $? "failed to load site script $ac_site_file 2349See \`config.log' for more details" "$LINENO" 5; } 2350 fi 2351done 2352 2353if test -r "$cache_file"; then 2354 # Some versions of bash will fail to source /dev/null (special files 2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2358printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2359 case $cache_file in 2360 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2361 *) . "./$cache_file";; 2362 esac 2363 fi 2364else 2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2366printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2367 >$cache_file 2368fi 2369 2370as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2371# Test code for whether the C compiler supports C89 (global declarations) 2372ac_c_conftest_c89_globals=' 2373/* Does the compiler advertise C89 conformance? 2374 Do not test the value of __STDC__, because some compilers set it to 0 2375 while being otherwise adequately conformant. */ 2376#if !defined __STDC__ 2377# error "Compiler does not advertise C89 conformance" 2378#endif 2379 2380#include <stddef.h> 2381#include <stdarg.h> 2382struct stat; 2383/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2384struct buf { int x; }; 2385struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2386static char *e (char **p, int i) 2387{ 2388 return p[i]; 2389} 2390static char *f (char * (*g) (char **, int), char **p, ...) 2391{ 2392 char *s; 2393 va_list v; 2394 va_start (v,p); 2395 s = g (p, va_arg (v,int)); 2396 va_end (v); 2397 return s; 2398} 2399 2400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2401 function prototypes and stuff, but not \xHH hex character constants. 2402 These do not provoke an error unfortunately, instead are silently treated 2403 as an "x". The following induces an error, until -std is added to get 2404 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2405 array size at least. It is necessary to write \x00 == 0 to get something 2406 that is true only with -std. */ 2407int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2408 2409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2410 inside strings and character constants. */ 2411#define FOO(x) '\''x'\'' 2412int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2413 2414int test (int i, double x); 2415struct s1 {int (*f) (int a);}; 2416struct s2 {int (*f) (double a);}; 2417int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2418 int, int);' 2419 2420# Test code for whether the C compiler supports C89 (body of main). 2421ac_c_conftest_c89_main=' 2422ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2423' 2424 2425# Test code for whether the C compiler supports C99 (global declarations) 2426ac_c_conftest_c99_globals=' 2427// Does the compiler advertise C99 conformance? 2428#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2429# error "Compiler does not advertise C99 conformance" 2430#endif 2431 2432#include <stdbool.h> 2433extern int puts (const char *); 2434extern int printf (const char *, ...); 2435extern int dprintf (int, const char *, ...); 2436extern void *malloc (size_t); 2437extern void free (void *); 2438 2439// Check varargs macros. These examples are taken from C99 6.10.3.5. 2440// dprintf is used instead of fprintf to avoid needing to declare 2441// FILE and stderr. 2442#define debug(...) dprintf (2, __VA_ARGS__) 2443#define showlist(...) puts (#__VA_ARGS__) 2444#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2445static void 2446test_varargs_macros (void) 2447{ 2448 int x = 1234; 2449 int y = 5678; 2450 debug ("Flag"); 2451 debug ("X = %d\n", x); 2452 showlist (The first, second, and third items.); 2453 report (x>y, "x is %d but y is %d", x, y); 2454} 2455 2456// Check long long types. 2457#define BIG64 18446744073709551615ull 2458#define BIG32 4294967295ul 2459#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2460#if !BIG_OK 2461 #error "your preprocessor is broken" 2462#endif 2463#if BIG_OK 2464#else 2465 #error "your preprocessor is broken" 2466#endif 2467static long long int bignum = -9223372036854775807LL; 2468static unsigned long long int ubignum = BIG64; 2469 2470struct incomplete_array 2471{ 2472 int datasize; 2473 double data[]; 2474}; 2475 2476struct named_init { 2477 int number; 2478 const wchar_t *name; 2479 double average; 2480}; 2481 2482typedef const char *ccp; 2483 2484static inline int 2485test_restrict (ccp restrict text) 2486{ 2487 // See if C++-style comments work. 2488 // Iterate through items via the restricted pointer. 2489 // Also check for declarations in for loops. 2490 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2491 continue; 2492 return 0; 2493} 2494 2495// Check varargs and va_copy. 2496static bool 2497test_varargs (const char *format, ...) 2498{ 2499 va_list args; 2500 va_start (args, format); 2501 va_list args_copy; 2502 va_copy (args_copy, args); 2503 2504 const char *str = ""; 2505 int number = 0; 2506 float fnumber = 0; 2507 2508 while (*format) 2509 { 2510 switch (*format++) 2511 { 2512 case '\''s'\'': // string 2513 str = va_arg (args_copy, const char *); 2514 break; 2515 case '\''d'\'': // int 2516 number = va_arg (args_copy, int); 2517 break; 2518 case '\''f'\'': // float 2519 fnumber = va_arg (args_copy, double); 2520 break; 2521 default: 2522 break; 2523 } 2524 } 2525 va_end (args_copy); 2526 va_end (args); 2527 2528 return *str && number && fnumber; 2529} 2530' 2531 2532# Test code for whether the C compiler supports C99 (body of main). 2533ac_c_conftest_c99_main=' 2534 // Check bool. 2535 _Bool success = false; 2536 success |= (argc != 0); 2537 2538 // Check restrict. 2539 if (test_restrict ("String literal") == 0) 2540 success = true; 2541 char *restrict newvar = "Another string"; 2542 2543 // Check varargs. 2544 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2545 test_varargs_macros (); 2546 2547 // Check flexible array members. 2548 struct incomplete_array *ia = 2549 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2550 ia->datasize = 10; 2551 for (int i = 0; i < ia->datasize; ++i) 2552 ia->data[i] = i * 1.234; 2553 2554 // Check named initializers. 2555 struct named_init ni = { 2556 .number = 34, 2557 .name = L"Test wide string", 2558 .average = 543.34343, 2559 }; 2560 2561 ni.number = 58; 2562 2563 int dynamic_array[ni.number]; 2564 dynamic_array[0] = argv[0][0]; 2565 dynamic_array[ni.number - 1] = 543; 2566 2567 // work around unused variable warnings 2568 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2569 || dynamic_array[ni.number - 1] != 543); 2570' 2571 2572# Test code for whether the C compiler supports C11 (global declarations) 2573ac_c_conftest_c11_globals=' 2574// Does the compiler advertise C11 conformance? 2575#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2576# error "Compiler does not advertise C11 conformance" 2577#endif 2578 2579// Check _Alignas. 2580char _Alignas (double) aligned_as_double; 2581char _Alignas (0) no_special_alignment; 2582extern char aligned_as_int; 2583char _Alignas (0) _Alignas (int) aligned_as_int; 2584 2585// Check _Alignof. 2586enum 2587{ 2588 int_alignment = _Alignof (int), 2589 int_array_alignment = _Alignof (int[100]), 2590 char_alignment = _Alignof (char) 2591}; 2592_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2593 2594// Check _Noreturn. 2595int _Noreturn does_not_return (void) { for (;;) continue; } 2596 2597// Check _Static_assert. 2598struct test_static_assert 2599{ 2600 int x; 2601 _Static_assert (sizeof (int) <= sizeof (long int), 2602 "_Static_assert does not work in struct"); 2603 long int y; 2604}; 2605 2606// Check UTF-8 literals. 2607#define u8 syntax error! 2608char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2609 2610// Check duplicate typedefs. 2611typedef long *long_ptr; 2612typedef long int *long_ptr; 2613typedef long_ptr long_ptr; 2614 2615// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2616struct anonymous 2617{ 2618 union { 2619 struct { int i; int j; }; 2620 struct { int k; long int l; } w; 2621 }; 2622 int m; 2623} v1; 2624' 2625 2626# Test code for whether the C compiler supports C11 (body of main). 2627ac_c_conftest_c11_main=' 2628 _Static_assert ((offsetof (struct anonymous, i) 2629 == offsetof (struct anonymous, w.k)), 2630 "Anonymous union alignment botch"); 2631 v1.i = 2; 2632 v1.w.k = 5; 2633 ok |= v1.i != 5; 2634' 2635 2636# Test code for whether the C compiler supports C11 (complete). 2637ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2638${ac_c_conftest_c99_globals} 2639${ac_c_conftest_c11_globals} 2640 2641int 2642main (int argc, char **argv) 2643{ 2644 int ok = 0; 2645 ${ac_c_conftest_c89_main} 2646 ${ac_c_conftest_c99_main} 2647 ${ac_c_conftest_c11_main} 2648 return ok; 2649} 2650" 2651 2652# Test code for whether the C compiler supports C99 (complete). 2653ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2654${ac_c_conftest_c99_globals} 2655 2656int 2657main (int argc, char **argv) 2658{ 2659 int ok = 0; 2660 ${ac_c_conftest_c89_main} 2661 ${ac_c_conftest_c99_main} 2662 return ok; 2663} 2664" 2665 2666# Test code for whether the C compiler supports C89 (complete). 2667ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2668 2669int 2670main (int argc, char **argv) 2671{ 2672 int ok = 0; 2673 ${ac_c_conftest_c89_main} 2674 return ok; 2675} 2676" 2677 2678as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2679as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2680as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2681as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2682as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2683as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2684as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2685as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2686as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2687as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2688 2689# Auxiliary files required by this configure script. 2690ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2691 2692# Locations in which to look for auxiliary files. 2693ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2694 2695# Search for a directory containing all of the required auxiliary files, 2696# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2697# If we don't find one directory that contains all the files we need, 2698# we report the set of missing files from the *first* directory in 2699# $ac_aux_dir_candidates and give up. 2700ac_missing_aux_files="" 2701ac_first_candidate=: 2702printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704as_found=false 2705for as_dir in $ac_aux_dir_candidates 2706do 2707 IFS=$as_save_IFS 2708 case $as_dir in #((( 2709 '') as_dir=./ ;; 2710 */) ;; 2711 *) as_dir=$as_dir/ ;; 2712 esac 2713 as_found=: 2714 2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2716 ac_aux_dir_found=yes 2717 ac_install_sh= 2718 for ac_aux in $ac_aux_files 2719 do 2720 # As a special case, if "install-sh" is required, that requirement 2721 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2722 # and $ac_install_sh is set appropriately for whichever one is found. 2723 if test x"$ac_aux" = x"install-sh" 2724 then 2725 if test -f "${as_dir}install-sh"; then 2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2727 ac_install_sh="${as_dir}install-sh -c" 2728 elif test -f "${as_dir}install.sh"; then 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2730 ac_install_sh="${as_dir}install.sh -c" 2731 elif test -f "${as_dir}shtool"; then 2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2733 ac_install_sh="${as_dir}shtool install -c" 2734 else 2735 ac_aux_dir_found=no 2736 if $ac_first_candidate; then 2737 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2738 else 2739 break 2740 fi 2741 fi 2742 else 2743 if test -f "${as_dir}${ac_aux}"; then 2744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2745 else 2746 ac_aux_dir_found=no 2747 if $ac_first_candidate; then 2748 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2749 else 2750 break 2751 fi 2752 fi 2753 fi 2754 done 2755 if test "$ac_aux_dir_found" = yes; then 2756 ac_aux_dir="$as_dir" 2757 break 2758 fi 2759 ac_first_candidate=false 2760 2761 as_found=false 2762done 2763IFS=$as_save_IFS 2764if $as_found 2765then : 2766 2767else $as_nop 2768 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2769fi 2770 2771 2772# These three variables are undocumented and unsupported, 2773# and are intended to be withdrawn in a future Autoconf release. 2774# They can cause serious problems if a builder's source tree is in a directory 2775# whose full name contains unusual characters. 2776if test -f "${ac_aux_dir}config.guess"; then 2777 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2778fi 2779if test -f "${ac_aux_dir}config.sub"; then 2780 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2781fi 2782if test -f "$ac_aux_dir/configure"; then 2783 ac_configure="$SHELL ${ac_aux_dir}configure" 2784fi 2785 2786# Check that the precious variables saved in the cache have kept the same 2787# value. 2788ac_cache_corrupted=false 2789for ac_var in $ac_precious_vars; do 2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2791 eval ac_new_set=\$ac_env_${ac_var}_set 2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2793 eval ac_new_val=\$ac_env_${ac_var}_value 2794 case $ac_old_set,$ac_new_set in 2795 set,) 2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2797printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2798 ac_cache_corrupted=: ;; 2799 ,set) 2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2801printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2802 ac_cache_corrupted=: ;; 2803 ,);; 2804 *) 2805 if test "x$ac_old_val" != "x$ac_new_val"; then 2806 # differences in whitespace do not lead to failure. 2807 ac_old_val_w=`echo x $ac_old_val` 2808 ac_new_val_w=`echo x $ac_new_val` 2809 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2811printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2812 ac_cache_corrupted=: 2813 else 2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2815printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2816 eval $ac_var=\$ac_old_val 2817 fi 2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2819printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2821printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2822 fi;; 2823 esac 2824 # Pass precious variables to config.status. 2825 if test "$ac_new_set" = set; then 2826 case $ac_new_val in 2827 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2828 *) ac_arg=$ac_var=$ac_new_val ;; 2829 esac 2830 case " $ac_configure_args " in 2831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2832 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2833 esac 2834 fi 2835done 2836if $ac_cache_corrupted; then 2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2838printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2840printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2841 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2842 and start over" "$LINENO" 5 2843fi 2844## -------------------- ## 2845## Main body of script. ## 2846## -------------------- ## 2847 2848ac_ext=c 2849ac_cpp='$CPP $CPPFLAGS' 2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2852ac_compiler_gnu=$ac_cv_c_compiler_gnu 2853 2854 2855 2856ac_config_headers="$ac_config_headers config.h" 2857 2858 2859# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2860# Must be called before any macros that run the compiler (like 2861# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873# Expand $ac_aux_dir to an absolute path. 2874am_aux_dir=`cd "$ac_aux_dir" && pwd` 2875 2876ac_ext=c 2877ac_cpp='$CPP $CPPFLAGS' 2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2880ac_compiler_gnu=$ac_cv_c_compiler_gnu 2881if test -n "$ac_tool_prefix"; then 2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2883set dummy ${ac_tool_prefix}gcc; ac_word=$2 2884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885printf %s "checking for $ac_word... " >&6; } 2886if test ${ac_cv_prog_CC+y} 2887then : 2888 printf %s "(cached) " >&6 2889else $as_nop 2890 if test -n "$CC"; then 2891 ac_cv_prog_CC="$CC" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 case $as_dir in #((( 2898 '') as_dir=./ ;; 2899 */) ;; 2900 *) as_dir=$as_dir/ ;; 2901 esac 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2904 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909 done 2910IFS=$as_save_IFS 2911 2912fi 2913fi 2914CC=$ac_cv_prog_CC 2915if test -n "$CC"; then 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2917printf "%s\n" "$CC" >&6; } 2918else 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920printf "%s\n" "no" >&6; } 2921fi 2922 2923 2924fi 2925if test -z "$ac_cv_prog_CC"; then 2926 ac_ct_CC=$CC 2927 # Extract the first word of "gcc", so it can be a program name with args. 2928set dummy gcc; ac_word=$2 2929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930printf %s "checking for $ac_word... " >&6; } 2931if test ${ac_cv_prog_ac_ct_CC+y} 2932then : 2933 printf %s "(cached) " >&6 2934else $as_nop 2935 if test -n "$ac_ct_CC"; then 2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_ac_ct_CC="gcc" 2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959ac_ct_CC=$ac_cv_prog_ac_ct_CC 2960if test -n "$ac_ct_CC"; then 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2962printf "%s\n" "$ac_ct_CC" >&6; } 2963else 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965printf "%s\n" "no" >&6; } 2966fi 2967 2968 if test "x$ac_ct_CC" = x; then 2969 CC="" 2970 else 2971 case $cross_compiling:$ac_tool_warned in 2972yes:) 2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2975ac_tool_warned=yes ;; 2976esac 2977 CC=$ac_ct_CC 2978 fi 2979else 2980 CC="$ac_cv_prog_CC" 2981fi 2982 2983if test -z "$CC"; then 2984 if test -n "$ac_tool_prefix"; then 2985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2986set dummy ${ac_tool_prefix}cc; ac_word=$2 2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988printf %s "checking for $ac_word... " >&6; } 2989if test ${ac_cv_prog_CC+y} 2990then : 2991 printf %s "(cached) " >&6 2992else $as_nop 2993 if test -n "$CC"; then 2994 ac_cv_prog_CC="$CC" # Let the user override the test. 2995else 2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997for as_dir in $PATH 2998do 2999 IFS=$as_save_IFS 3000 case $as_dir in #((( 3001 '') as_dir=./ ;; 3002 */) ;; 3003 *) as_dir=$as_dir/ ;; 3004 esac 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3007 ac_cv_prog_CC="${ac_tool_prefix}cc" 3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017CC=$ac_cv_prog_CC 3018if test -n "$CC"; then 3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3020printf "%s\n" "$CC" >&6; } 3021else 3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023printf "%s\n" "no" >&6; } 3024fi 3025 3026 3027 fi 3028fi 3029if test -z "$CC"; then 3030 # Extract the first word of "cc", so it can be a program name with args. 3031set dummy cc; ac_word=$2 3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033printf %s "checking for $ac_word... " >&6; } 3034if test ${ac_cv_prog_CC+y} 3035then : 3036 printf %s "(cached) " >&6 3037else $as_nop 3038 if test -n "$CC"; then 3039 ac_cv_prog_CC="$CC" # Let the user override the test. 3040else 3041 ac_prog_rejected=no 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 case $as_dir in #((( 3047 '') as_dir=./ ;; 3048 */) ;; 3049 *) as_dir=$as_dir/ ;; 3050 esac 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3053 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3054 ac_prog_rejected=yes 3055 continue 3056 fi 3057 ac_cv_prog_CC="cc" 3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062 done 3063IFS=$as_save_IFS 3064 3065if test $ac_prog_rejected = yes; then 3066 # We found a bogon in the path, so make sure we never use it. 3067 set dummy $ac_cv_prog_CC 3068 shift 3069 if test $# != 0; then 3070 # We chose a different compiler from the bogus one. 3071 # However, it has the same basename, so the bogon will be chosen 3072 # first if we set CC to just the basename; use the full file name. 3073 shift 3074 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3075 fi 3076fi 3077fi 3078fi 3079CC=$ac_cv_prog_CC 3080if test -n "$CC"; then 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3082printf "%s\n" "$CC" >&6; } 3083else 3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085printf "%s\n" "no" >&6; } 3086fi 3087 3088 3089fi 3090if test -z "$CC"; then 3091 if test -n "$ac_tool_prefix"; then 3092 for ac_prog in cl.exe 3093 do 3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3095set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097printf %s "checking for $ac_word... " >&6; } 3098if test ${ac_cv_prog_CC+y} 3099then : 3100 printf %s "(cached) " >&6 3101else $as_nop 3102 if test -n "$CC"; then 3103 ac_cv_prog_CC="$CC" # Let the user override the test. 3104else 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 case $as_dir in #((( 3110 '') as_dir=./ ;; 3111 */) ;; 3112 *) as_dir=$as_dir/ ;; 3113 esac 3114 for ac_exec_ext in '' $ac_executable_extensions; do 3115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125fi 3126CC=$ac_cv_prog_CC 3127if test -n "$CC"; then 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3129printf "%s\n" "$CC" >&6; } 3130else 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132printf "%s\n" "no" >&6; } 3133fi 3134 3135 3136 test -n "$CC" && break 3137 done 3138fi 3139if test -z "$CC"; then 3140 ac_ct_CC=$CC 3141 for ac_prog in cl.exe 3142do 3143 # Extract the first word of "$ac_prog", so it can be a program name with args. 3144set dummy $ac_prog; ac_word=$2 3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146printf %s "checking for $ac_word... " >&6; } 3147if test ${ac_cv_prog_ac_ct_CC+y} 3148then : 3149 printf %s "(cached) " >&6 3150else $as_nop 3151 if test -n "$ac_ct_CC"; then 3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 case $as_dir in #((( 3159 '') as_dir=./ ;; 3160 */) ;; 3161 *) as_dir=$as_dir/ ;; 3162 esac 3163 for ac_exec_ext in '' $ac_executable_extensions; do 3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3165 ac_cv_prog_ac_ct_CC="$ac_prog" 3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3167 break 2 3168 fi 3169done 3170 done 3171IFS=$as_save_IFS 3172 3173fi 3174fi 3175ac_ct_CC=$ac_cv_prog_ac_ct_CC 3176if test -n "$ac_ct_CC"; then 3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3178printf "%s\n" "$ac_ct_CC" >&6; } 3179else 3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181printf "%s\n" "no" >&6; } 3182fi 3183 3184 3185 test -n "$ac_ct_CC" && break 3186done 3187 3188 if test "x$ac_ct_CC" = x; then 3189 CC="" 3190 else 3191 case $cross_compiling:$ac_tool_warned in 3192yes:) 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3194printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3195ac_tool_warned=yes ;; 3196esac 3197 CC=$ac_ct_CC 3198 fi 3199fi 3200 3201fi 3202if test -z "$CC"; then 3203 if test -n "$ac_tool_prefix"; then 3204 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3205set dummy ${ac_tool_prefix}clang; ac_word=$2 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207printf %s "checking for $ac_word... " >&6; } 3208if test ${ac_cv_prog_CC+y} 3209then : 3210 printf %s "(cached) " >&6 3211else $as_nop 3212 if test -n "$CC"; then 3213 ac_cv_prog_CC="$CC" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 case $as_dir in #((( 3220 '') as_dir=./ ;; 3221 */) ;; 3222 *) as_dir=$as_dir/ ;; 3223 esac 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}clang" 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239printf "%s\n" "$CC" >&6; } 3240else 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242printf "%s\n" "no" >&6; } 3243fi 3244 3245 3246fi 3247if test -z "$ac_cv_prog_CC"; then 3248 ac_ct_CC=$CC 3249 # Extract the first word of "clang", so it can be a program name with args. 3250set dummy clang; ac_word=$2 3251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252printf %s "checking for $ac_word... " >&6; } 3253if test ${ac_cv_prog_ac_ct_CC+y} 3254then : 3255 printf %s "(cached) " >&6 3256else $as_nop 3257 if test -n "$ac_ct_CC"; then 3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3259else 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 case $as_dir in #((( 3265 '') as_dir=./ ;; 3266 */) ;; 3267 *) as_dir=$as_dir/ ;; 3268 esac 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_CC="clang" 3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284printf "%s\n" "$ac_ct_CC" >&6; } 3285else 3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287printf "%s\n" "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_CC" = x; then 3291 CC="" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 CC=$ac_ct_CC 3300 fi 3301else 3302 CC="$ac_cv_prog_CC" 3303fi 3304 3305fi 3306 3307 3308test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3310as_fn_error $? "no acceptable C compiler found in \$PATH 3311See \`config.log' for more details" "$LINENO" 5; } 3312 3313# Provide some information about the compiler. 3314printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3315set X $ac_compile 3316ac_compiler=$2 3317for ac_option in --version -v -V -qversion -version; do 3318 { { ac_try="$ac_compiler $ac_option >&5" 3319case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322esac 3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3324printf "%s\n" "$ac_try_echo"; } >&5 3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3326 ac_status=$? 3327 if test -s conftest.err; then 3328 sed '10a\ 3329... rest of stderr output deleted ... 3330 10q' conftest.err >conftest.er1 3331 cat conftest.er1 >&5 3332 fi 3333 rm -f conftest.er1 conftest.err 3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335 test $ac_status = 0; } 3336done 3337 3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main (void) 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349ac_clean_files_save=$ac_clean_files 3350ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3351# Try to create an executable without -o first, disregard a.out. 3352# It will help us diagnose broken compilers, and finding out an intuition 3353# of exeext. 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3355printf %s "checking whether the C compiler works... " >&6; } 3356ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3357 3358# The possible output files: 3359ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3360 3361ac_rmfiles= 3362for ac_file in $ac_files 3363do 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3367 esac 3368done 3369rm -f $ac_rmfiles 3370 3371if { { ac_try="$ac_link_default" 3372case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377printf "%s\n" "$ac_try_echo"; } >&5 3378 (eval "$ac_link_default") 2>&5 3379 ac_status=$? 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; } 3382then : 3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3384# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3385# in a Makefile. We should not override ac_cv_exeext if it was cached, 3386# so that the user can short-circuit this test for compilers unknown to 3387# Autoconf. 3388for ac_file in $ac_files '' 3389do 3390 test -f "$ac_file" || continue 3391 case $ac_file in 3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3393 ;; 3394 [ab].out ) 3395 # We found the default executable, but exeext='' is most 3396 # certainly right. 3397 break;; 3398 *.* ) 3399 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3400 then :; else 3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3402 fi 3403 # We set ac_cv_exeext here because the later test for it is not 3404 # safe: cross compilers may not add the suffix if given an `-o' 3405 # argument, so we may need to know it at that point already. 3406 # Even if this section looks crufty: it has the advantage of 3407 # actually working. 3408 break;; 3409 * ) 3410 break;; 3411 esac 3412done 3413test "$ac_cv_exeext" = no && ac_cv_exeext= 3414 3415else $as_nop 3416 ac_file='' 3417fi 3418if test -z "$ac_file" 3419then : 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421printf "%s\n" "no" >&6; } 3422printf "%s\n" "$as_me: failed program was:" >&5 3423sed 's/^/| /' conftest.$ac_ext >&5 3424 3425{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3427as_fn_error 77 "C compiler cannot create executables 3428See \`config.log' for more details" "$LINENO" 5; } 3429else $as_nop 3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3431printf "%s\n" "yes" >&6; } 3432fi 3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3434printf %s "checking for C compiler default output file name... " >&6; } 3435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3436printf "%s\n" "$ac_file" >&6; } 3437ac_exeext=$ac_cv_exeext 3438 3439rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3440ac_clean_files=$ac_clean_files_save 3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3442printf %s "checking for suffix of executables... " >&6; } 3443if { { ac_try="$ac_link" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3449printf "%s\n" "$ac_try_echo"; } >&5 3450 (eval "$ac_link") 2>&5 3451 ac_status=$? 3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3453 test $ac_status = 0; } 3454then : 3455 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3456# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3457# work properly (i.e., refer to `conftest.exe'), while it won't with 3458# `rm'. 3459for ac_file in conftest.exe conftest conftest.*; do 3460 test -f "$ac_file" || continue 3461 case $ac_file in 3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3464 break;; 3465 * ) break;; 3466 esac 3467done 3468else $as_nop 3469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3471as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3472See \`config.log' for more details" "$LINENO" 5; } 3473fi 3474rm -f conftest conftest$ac_cv_exeext 3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3476printf "%s\n" "$ac_cv_exeext" >&6; } 3477 3478rm -f conftest.$ac_ext 3479EXEEXT=$ac_cv_exeext 3480ac_exeext=$EXEEXT 3481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3482/* end confdefs.h. */ 3483#include <stdio.h> 3484int 3485main (void) 3486{ 3487FILE *f = fopen ("conftest.out", "w"); 3488 return ferror (f) || fclose (f) != 0; 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494ac_clean_files="$ac_clean_files conftest.out" 3495# Check that the compiler produces executables we can run. If not, either 3496# the compiler is broken, or we cross compile. 3497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3498printf %s "checking whether we are cross compiling... " >&6; } 3499if test "$cross_compiling" != yes; then 3500 { { ac_try="$ac_link" 3501case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504esac 3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506printf "%s\n" "$ac_try_echo"; } >&5 3507 (eval "$ac_link") 2>&5 3508 ac_status=$? 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; } 3511 if { ac_try='./conftest$ac_cv_exeext' 3512 { { case "(($ac_try" in 3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *) ac_try_echo=$ac_try;; 3515esac 3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3517printf "%s\n" "$ac_try_echo"; } >&5 3518 (eval "$ac_try") 2>&5 3519 ac_status=$? 3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3521 test $ac_status = 0; }; }; then 3522 cross_compiling=no 3523 else 3524 if test "$cross_compiling" = maybe; then 3525 cross_compiling=yes 3526 else 3527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error 77 "cannot run C compiled programs. 3530If you meant to cross compile, use \`--host'. 3531See \`config.log' for more details" "$LINENO" 5; } 3532 fi 3533 fi 3534fi 3535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3536printf "%s\n" "$cross_compiling" >&6; } 3537 3538rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3539ac_clean_files=$ac_clean_files_save 3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3541printf %s "checking for suffix of object files... " >&6; } 3542if test ${ac_cv_objext+y} 3543then : 3544 printf %s "(cached) " >&6 3545else $as_nop 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548 3549int 3550main (void) 3551{ 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557rm -f conftest.o conftest.obj 3558if { { ac_try="$ac_compile" 3559case "(($ac_try" in 3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3561 *) ac_try_echo=$ac_try;; 3562esac 3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3564printf "%s\n" "$ac_try_echo"; } >&5 3565 (eval "$ac_compile") 2>&5 3566 ac_status=$? 3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3568 test $ac_status = 0; } 3569then : 3570 for ac_file in conftest.o conftest.obj conftest.*; do 3571 test -f "$ac_file" || continue; 3572 case $ac_file in 3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3575 break;; 3576 esac 3577done 3578else $as_nop 3579 printf "%s\n" "$as_me: failed program was:" >&5 3580sed 's/^/| /' conftest.$ac_ext >&5 3581 3582{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot compute suffix of object files: cannot compile 3585See \`config.log' for more details" "$LINENO" 5; } 3586fi 3587rm -f conftest.$ac_cv_objext conftest.$ac_ext 3588fi 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3590printf "%s\n" "$ac_cv_objext" >&6; } 3591OBJEXT=$ac_cv_objext 3592ac_objext=$OBJEXT 3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3594printf %s "checking whether the compiler supports GNU C... " >&6; } 3595if test ${ac_cv_c_compiler_gnu+y} 3596then : 3597 printf %s "(cached) " >&6 3598else $as_nop 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main (void) 3604{ 3605#ifndef __GNUC__ 3606 choke me 3607#endif 3608 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613if ac_fn_c_try_compile "$LINENO" 3614then : 3615 ac_compiler_gnu=yes 3616else $as_nop 3617 ac_compiler_gnu=no 3618fi 3619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3620ac_cv_c_compiler_gnu=$ac_compiler_gnu 3621 3622fi 3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3624printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626 3627if test $ac_compiler_gnu = yes; then 3628 GCC=yes 3629else 3630 GCC= 3631fi 3632ac_test_CFLAGS=${CFLAGS+y} 3633ac_save_CFLAGS=$CFLAGS 3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3635printf %s "checking whether $CC accepts -g... " >&6; } 3636if test ${ac_cv_prog_cc_g+y} 3637then : 3638 printf %s "(cached) " >&6 3639else $as_nop 3640 ac_save_c_werror_flag=$ac_c_werror_flag 3641 ac_c_werror_flag=yes 3642 ac_cv_prog_cc_g=no 3643 CFLAGS="-g" 3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3645/* end confdefs.h. */ 3646 3647int 3648main (void) 3649{ 3650 3651 ; 3652 return 0; 3653} 3654_ACEOF 3655if ac_fn_c_try_compile "$LINENO" 3656then : 3657 ac_cv_prog_cc_g=yes 3658else $as_nop 3659 CFLAGS="" 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main (void) 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671if ac_fn_c_try_compile "$LINENO" 3672then : 3673 3674else $as_nop 3675 ac_c_werror_flag=$ac_save_c_werror_flag 3676 CFLAGS="-g" 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679 3680int 3681main (void) 3682{ 3683 3684 ; 3685 return 0; 3686} 3687_ACEOF 3688if ac_fn_c_try_compile "$LINENO" 3689then : 3690 ac_cv_prog_cc_g=yes 3691fi 3692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3693fi 3694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3695fi 3696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3697 ac_c_werror_flag=$ac_save_c_werror_flag 3698fi 3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3700printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3701if test $ac_test_CFLAGS; then 3702 CFLAGS=$ac_save_CFLAGS 3703elif test $ac_cv_prog_cc_g = yes; then 3704 if test "$GCC" = yes; then 3705 CFLAGS="-g -O2" 3706 else 3707 CFLAGS="-g" 3708 fi 3709else 3710 if test "$GCC" = yes; then 3711 CFLAGS="-O2" 3712 else 3713 CFLAGS= 3714 fi 3715fi 3716ac_prog_cc_stdc=no 3717if test x$ac_prog_cc_stdc = xno 3718then : 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3720printf %s "checking for $CC option to enable C11 features... " >&6; } 3721if test ${ac_cv_prog_cc_c11+y} 3722then : 3723 printf %s "(cached) " >&6 3724else $as_nop 3725 ac_cv_prog_cc_c11=no 3726ac_save_CC=$CC 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729$ac_c_conftest_c11_program 3730_ACEOF 3731for ac_arg in '' -std=gnu11 3732do 3733 CC="$ac_save_CC $ac_arg" 3734 if ac_fn_c_try_compile "$LINENO" 3735then : 3736 ac_cv_prog_cc_c11=$ac_arg 3737fi 3738rm -f core conftest.err conftest.$ac_objext conftest.beam 3739 test "x$ac_cv_prog_cc_c11" != "xno" && break 3740done 3741rm -f conftest.$ac_ext 3742CC=$ac_save_CC 3743fi 3744 3745if test "x$ac_cv_prog_cc_c11" = xno 3746then : 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3748printf "%s\n" "unsupported" >&6; } 3749else $as_nop 3750 if test "x$ac_cv_prog_cc_c11" = x 3751then : 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753printf "%s\n" "none needed" >&6; } 3754else $as_nop 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3756printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3757 CC="$CC $ac_cv_prog_cc_c11" 3758fi 3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3760 ac_prog_cc_stdc=c11 3761fi 3762fi 3763if test x$ac_prog_cc_stdc = xno 3764then : 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3766printf %s "checking for $CC option to enable C99 features... " >&6; } 3767if test ${ac_cv_prog_cc_c99+y} 3768then : 3769 printf %s "(cached) " >&6 3770else $as_nop 3771 ac_cv_prog_cc_c99=no 3772ac_save_CC=$CC 3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775$ac_c_conftest_c99_program 3776_ACEOF 3777for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3778do 3779 CC="$ac_save_CC $ac_arg" 3780 if ac_fn_c_try_compile "$LINENO" 3781then : 3782 ac_cv_prog_cc_c99=$ac_arg 3783fi 3784rm -f core conftest.err conftest.$ac_objext conftest.beam 3785 test "x$ac_cv_prog_cc_c99" != "xno" && break 3786done 3787rm -f conftest.$ac_ext 3788CC=$ac_save_CC 3789fi 3790 3791if test "x$ac_cv_prog_cc_c99" = xno 3792then : 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3794printf "%s\n" "unsupported" >&6; } 3795else $as_nop 3796 if test "x$ac_cv_prog_cc_c99" = x 3797then : 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3799printf "%s\n" "none needed" >&6; } 3800else $as_nop 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3802printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3803 CC="$CC $ac_cv_prog_cc_c99" 3804fi 3805 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3806 ac_prog_cc_stdc=c99 3807fi 3808fi 3809if test x$ac_prog_cc_stdc = xno 3810then : 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3812printf %s "checking for $CC option to enable C89 features... " >&6; } 3813if test ${ac_cv_prog_cc_c89+y} 3814then : 3815 printf %s "(cached) " >&6 3816else $as_nop 3817 ac_cv_prog_cc_c89=no 3818ac_save_CC=$CC 3819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821$ac_c_conftest_c89_program 3822_ACEOF 3823for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3824do 3825 CC="$ac_save_CC $ac_arg" 3826 if ac_fn_c_try_compile "$LINENO" 3827then : 3828 ac_cv_prog_cc_c89=$ac_arg 3829fi 3830rm -f core conftest.err conftest.$ac_objext conftest.beam 3831 test "x$ac_cv_prog_cc_c89" != "xno" && break 3832done 3833rm -f conftest.$ac_ext 3834CC=$ac_save_CC 3835fi 3836 3837if test "x$ac_cv_prog_cc_c89" = xno 3838then : 3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3840printf "%s\n" "unsupported" >&6; } 3841else $as_nop 3842 if test "x$ac_cv_prog_cc_c89" = x 3843then : 3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3845printf "%s\n" "none needed" >&6; } 3846else $as_nop 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3848printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3849 CC="$CC $ac_cv_prog_cc_c89" 3850fi 3851 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3852 ac_prog_cc_stdc=c89 3853fi 3854fi 3855 3856ac_ext=c 3857ac_cpp='$CPP $CPPFLAGS' 3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3860ac_compiler_gnu=$ac_cv_c_compiler_gnu 3861 3862 3863 ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3869printf %s "checking whether $CC understands -c and -o together... " >&6; } 3870if test ${am_cv_prog_cc_c_o+y} 3871then : 3872 printf %s "(cached) " >&6 3873else $as_nop 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main (void) 3879{ 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885 # Make sure it works both with $CC and with simple cc. 3886 # Following AC_PROG_CC_C_O, we do the test twice because some 3887 # compilers refuse to overwrite an existing .o file with -o, 3888 # though they will create one. 3889 am_cv_prog_cc_c_o=yes 3890 for am_i in 1 2; do 3891 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3892 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3893 ac_status=$? 3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3895 (exit $ac_status); } \ 3896 && test -f conftest2.$ac_objext; then 3897 : OK 3898 else 3899 am_cv_prog_cc_c_o=no 3900 break 3901 fi 3902 done 3903 rm -f core conftest* 3904 unset am_i 3905fi 3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3907printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3908if test "$am_cv_prog_cc_c_o" != yes; then 3909 # Losing compiler, so override with the script. 3910 # FIXME: It is wrong to rewrite CC. 3911 # But if we don't then we get into trouble of one sort or another. 3912 # A longer-term fix would be to have automake use am__CC in this case, 3913 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3914 CC="$am_aux_dir/compile $CC" 3915fi 3916ac_ext=c 3917ac_cpp='$CPP $CPPFLAGS' 3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3920ac_compiler_gnu=$ac_cv_c_compiler_gnu 3921 3922 3923 3924ac_header= ac_cache= 3925for ac_item in $ac_header_c_list 3926do 3927 if test $ac_cache; then 3928 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3929 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3930 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3931 fi 3932 ac_header= ac_cache= 3933 elif test $ac_header; then 3934 ac_cache=$ac_item 3935 else 3936 ac_header=$ac_item 3937 fi 3938done 3939 3940 3941 3942 3943 3944 3945 3946 3947if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3948then : 3949 3950printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3951 3952fi 3953 3954 3955 3956 3957 3958 3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3960printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3961if test ${ac_cv_safe_to_define___extensions__+y} 3962then : 3963 printf %s "(cached) " >&6 3964else $as_nop 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968# define __EXTENSIONS__ 1 3969 $ac_includes_default 3970int 3971main (void) 3972{ 3973 3974 ; 3975 return 0; 3976} 3977_ACEOF 3978if ac_fn_c_try_compile "$LINENO" 3979then : 3980 ac_cv_safe_to_define___extensions__=yes 3981else $as_nop 3982 ac_cv_safe_to_define___extensions__=no 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3985fi 3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3987printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3988 3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3990printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3991if test ${ac_cv_should_define__xopen_source+y} 3992then : 3993 printf %s "(cached) " >&6 3994else $as_nop 3995 ac_cv_should_define__xopen_source=no 3996 if test $ac_cv_header_wchar_h = yes 3997then : 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001 #include <wchar.h> 4002 mbstate_t x; 4003int 4004main (void) 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO" 4012then : 4013 4014else $as_nop 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017 4018 #define _XOPEN_SOURCE 500 4019 #include <wchar.h> 4020 mbstate_t x; 4021int 4022main (void) 4023{ 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_compile "$LINENO" 4030then : 4031 ac_cv_should_define__xopen_source=yes 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4036fi 4037fi 4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4039printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4040 4041 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4042 4043 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4044 4045 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4046 4047 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4048 4049 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4050 4051 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4052 4053 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4054 4055 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4056 4057 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4058 4059 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4060 4061 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4062 4063 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4064 4065 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4066 4067 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4068 4069 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4070 4071 if test $ac_cv_header_minix_config_h = yes 4072then : 4073 MINIX=yes 4074 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4075 4076 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4077 4078 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4079 4080else $as_nop 4081 MINIX= 4082fi 4083 if test $ac_cv_safe_to_define___extensions__ = yes 4084then : 4085 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4086 4087fi 4088 if test $ac_cv_should_define__xopen_source = yes 4089then : 4090 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4091 4092fi 4093 4094 4095# Initialize Automake 4096am__api_version='1.16' 4097 4098 4099 # Find a good install program. We prefer a C program (faster), 4100# so one script is as good as another. But avoid the broken or 4101# incompatible versions: 4102# SysV /etc/install, /usr/sbin/install 4103# SunOS /usr/etc/install 4104# IRIX /sbin/install 4105# AIX /bin/install 4106# AmigaOS /C/install, which installs bootblocks on floppy discs 4107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4108# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4110# OS/2's system install, which has a completely different semantic 4111# ./install, which can be erroneously created by make from ./install.sh. 4112# Reject install programs that cannot install multiple files. 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4114printf %s "checking for a BSD-compatible install... " >&6; } 4115if test -z "$INSTALL"; then 4116if test ${ac_cv_path_install+y} 4117then : 4118 printf %s "(cached) " >&6 4119else $as_nop 4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4121for as_dir in $PATH 4122do 4123 IFS=$as_save_IFS 4124 case $as_dir in #((( 4125 '') as_dir=./ ;; 4126 */) ;; 4127 *) as_dir=$as_dir/ ;; 4128 esac 4129 # Account for fact that we put trailing slashes in our PATH walk. 4130case $as_dir in #(( 4131 ./ | /[cC]/* | \ 4132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4133 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4134 /usr/ucb/* ) ;; 4135 *) 4136 # OSF1 and SCO ODT 3.0 have their own names for install. 4137 # Don't use installbsd from OSF since it installs stuff as root 4138 # by default. 4139 for ac_prog in ginstall scoinst install; do 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4142 if test $ac_prog = install && 4143 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4144 # AIX install. It has an incompatible calling convention. 4145 : 4146 elif test $ac_prog = install && 4147 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4148 # program-specific install script used by HP pwplus--don't use. 4149 : 4150 else 4151 rm -rf conftest.one conftest.two conftest.dir 4152 echo one > conftest.one 4153 echo two > conftest.two 4154 mkdir conftest.dir 4155 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4156 test -s conftest.one && test -s conftest.two && 4157 test -s conftest.dir/conftest.one && 4158 test -s conftest.dir/conftest.two 4159 then 4160 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4161 break 3 4162 fi 4163 fi 4164 fi 4165 done 4166 done 4167 ;; 4168esac 4169 4170 done 4171IFS=$as_save_IFS 4172 4173rm -rf conftest.one conftest.two conftest.dir 4174 4175fi 4176 if test ${ac_cv_path_install+y}; then 4177 INSTALL=$ac_cv_path_install 4178 else 4179 # As a last resort, use the slow shell script. Don't cache a 4180 # value for INSTALL within a source directory, because that will 4181 # break other packages using the cache if that directory is 4182 # removed, or if the value is a relative name. 4183 INSTALL=$ac_install_sh 4184 fi 4185fi 4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4187printf "%s\n" "$INSTALL" >&6; } 4188 4189# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4190# It thinks the first close brace ends the variable substitution. 4191test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4192 4193test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4194 4195test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4196 4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4198printf %s "checking whether build environment is sane... " >&6; } 4199# Reject unsafe characters in $srcdir or the absolute working directory 4200# name. Accept space and tab only in the latter. 4201am_lf=' 4202' 4203case `pwd` in 4204 *[\\\"\#\$\&\'\`$am_lf]*) 4205 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4206esac 4207case $srcdir in 4208 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4209 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4210esac 4211 4212# Do 'set' in a subshell so we don't clobber the current shell's 4213# arguments. Must try -L first in case configure is actually a 4214# symlink; some systems play weird games with the mod time of symlinks 4215# (eg FreeBSD returns the mod time of the symlink's containing 4216# directory). 4217if ( 4218 am_has_slept=no 4219 for am_try in 1 2; do 4220 echo "timestamp, slept: $am_has_slept" > conftest.file 4221 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4222 if test "$*" = "X"; then 4223 # -L didn't work. 4224 set X `ls -t "$srcdir/configure" conftest.file` 4225 fi 4226 if test "$*" != "X $srcdir/configure conftest.file" \ 4227 && test "$*" != "X conftest.file $srcdir/configure"; then 4228 4229 # If neither matched, then we have a broken ls. This can happen 4230 # if, for instance, CONFIG_SHELL is bash and it inherits a 4231 # broken ls alias from the environment. This has actually 4232 # happened. Such a system could not be considered "sane". 4233 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4234 alias in your environment" "$LINENO" 5 4235 fi 4236 if test "$2" = conftest.file || test $am_try -eq 2; then 4237 break 4238 fi 4239 # Just in case. 4240 sleep 1 4241 am_has_slept=yes 4242 done 4243 test "$2" = conftest.file 4244 ) 4245then 4246 # Ok. 4247 : 4248else 4249 as_fn_error $? "newly created file is older than distributed files! 4250Check your system clock" "$LINENO" 5 4251fi 4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4253printf "%s\n" "yes" >&6; } 4254# If we didn't sleep, we still need to ensure time stamps of config.status and 4255# generated files are strictly newer. 4256am_sleep_pid= 4257if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4258 ( sleep 1 ) & 4259 am_sleep_pid=$! 4260fi 4261 4262rm -f conftest.file 4263 4264test "$program_prefix" != NONE && 4265 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4266# Use a double $ so make ignores it. 4267test "$program_suffix" != NONE && 4268 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4269# Double any \ or $. 4270# By default was `s,x,x', remove it if useless. 4271ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4272program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4273 4274 4275 if test x"${MISSING+set}" != xset; then 4276 MISSING="\${SHELL} '$am_aux_dir/missing'" 4277fi 4278# Use eval to expand $SHELL 4279if eval "$MISSING --is-lightweight"; then 4280 am_missing_run="$MISSING " 4281else 4282 am_missing_run= 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4284printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4285fi 4286 4287if test x"${install_sh+set}" != xset; then 4288 case $am_aux_dir in 4289 *\ * | *\ *) 4290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4291 *) 4292 install_sh="\${SHELL} $am_aux_dir/install-sh" 4293 esac 4294fi 4295 4296# Installed binaries are usually stripped using 'strip' when the user 4297# run "make install-strip". However 'strip' might not be the right 4298# tool to use in cross-compilation environments, therefore Automake 4299# will honor the 'STRIP' environment variable to overrule this program. 4300if test "$cross_compiling" != no; then 4301 if test -n "$ac_tool_prefix"; then 4302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4303set dummy ${ac_tool_prefix}strip; ac_word=$2 4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4305printf %s "checking for $ac_word... " >&6; } 4306if test ${ac_cv_prog_STRIP+y} 4307then : 4308 printf %s "(cached) " >&6 4309else $as_nop 4310 if test -n "$STRIP"; then 4311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4312else 4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4314for as_dir in $PATH 4315do 4316 IFS=$as_save_IFS 4317 case $as_dir in #((( 4318 '') as_dir=./ ;; 4319 */) ;; 4320 *) as_dir=$as_dir/ ;; 4321 esac 4322 for ac_exec_ext in '' $ac_executable_extensions; do 4323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4324 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4326 break 2 4327 fi 4328done 4329 done 4330IFS=$as_save_IFS 4331 4332fi 4333fi 4334STRIP=$ac_cv_prog_STRIP 4335if test -n "$STRIP"; then 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4337printf "%s\n" "$STRIP" >&6; } 4338else 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340printf "%s\n" "no" >&6; } 4341fi 4342 4343 4344fi 4345if test -z "$ac_cv_prog_STRIP"; then 4346 ac_ct_STRIP=$STRIP 4347 # Extract the first word of "strip", so it can be a program name with args. 4348set dummy strip; ac_word=$2 4349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4350printf %s "checking for $ac_word... " >&6; } 4351if test ${ac_cv_prog_ac_ct_STRIP+y} 4352then : 4353 printf %s "(cached) " >&6 4354else $as_nop 4355 if test -n "$ac_ct_STRIP"; then 4356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 case $as_dir in #((( 4363 '') as_dir=./ ;; 4364 */) ;; 4365 *) as_dir=$as_dir/ ;; 4366 esac 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4369 ac_cv_prog_ac_ct_STRIP="strip" 4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4380if test -n "$ac_ct_STRIP"; then 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4382printf "%s\n" "$ac_ct_STRIP" >&6; } 4383else 4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4385printf "%s\n" "no" >&6; } 4386fi 4387 4388 if test "x$ac_ct_STRIP" = x; then 4389 STRIP=":" 4390 else 4391 case $cross_compiling:$ac_tool_warned in 4392yes:) 4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4394printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4395ac_tool_warned=yes ;; 4396esac 4397 STRIP=$ac_ct_STRIP 4398 fi 4399else 4400 STRIP="$ac_cv_prog_STRIP" 4401fi 4402 4403fi 4404INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4405 4406 4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4408printf %s "checking for a race-free mkdir -p... " >&6; } 4409if test -z "$MKDIR_P"; then 4410 if test ${ac_cv_path_mkdir+y} 4411then : 4412 printf %s "(cached) " >&6 4413else $as_nop 4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4415for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4416do 4417 IFS=$as_save_IFS 4418 case $as_dir in #((( 4419 '') as_dir=./ ;; 4420 */) ;; 4421 *) as_dir=$as_dir/ ;; 4422 esac 4423 for ac_prog in mkdir gmkdir; do 4424 for ac_exec_ext in '' $ac_executable_extensions; do 4425 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4426 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4427 'mkdir ('*'coreutils) '* | \ 4428 'BusyBox '* | \ 4429 'mkdir (fileutils) '4.1*) 4430 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4431 break 3;; 4432 esac 4433 done 4434 done 4435 done 4436IFS=$as_save_IFS 4437 4438fi 4439 4440 test -d ./--version && rmdir ./--version 4441 if test ${ac_cv_path_mkdir+y}; then 4442 MKDIR_P="$ac_cv_path_mkdir -p" 4443 else 4444 # As a last resort, use the slow shell script. Don't cache a 4445 # value for MKDIR_P within a source directory, because that will 4446 # break other packages using the cache if that directory is 4447 # removed, or if the value is a relative name. 4448 MKDIR_P="$ac_install_sh -d" 4449 fi 4450fi 4451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4452printf "%s\n" "$MKDIR_P" >&6; } 4453 4454for ac_prog in gawk mawk nawk awk 4455do 4456 # Extract the first word of "$ac_prog", so it can be a program name with args. 4457set dummy $ac_prog; ac_word=$2 4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4459printf %s "checking for $ac_word... " >&6; } 4460if test ${ac_cv_prog_AWK+y} 4461then : 4462 printf %s "(cached) " >&6 4463else $as_nop 4464 if test -n "$AWK"; then 4465 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4466else 4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH 4469do 4470 IFS=$as_save_IFS 4471 case $as_dir in #((( 4472 '') as_dir=./ ;; 4473 */) ;; 4474 *) as_dir=$as_dir/ ;; 4475 esac 4476 for ac_exec_ext in '' $ac_executable_extensions; do 4477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4478 ac_cv_prog_AWK="$ac_prog" 4479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4480 break 2 4481 fi 4482done 4483 done 4484IFS=$as_save_IFS 4485 4486fi 4487fi 4488AWK=$ac_cv_prog_AWK 4489if test -n "$AWK"; then 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4491printf "%s\n" "$AWK" >&6; } 4492else 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494printf "%s\n" "no" >&6; } 4495fi 4496 4497 4498 test -n "$AWK" && break 4499done 4500 4501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4502printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4503set x ${MAKE-make} 4504ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4505if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4506then : 4507 printf %s "(cached) " >&6 4508else $as_nop 4509 cat >conftest.make <<\_ACEOF 4510SHELL = /bin/sh 4511all: 4512 @echo '@@@%%%=$(MAKE)=@@@%%%' 4513_ACEOF 4514# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4515case `${MAKE-make} -f conftest.make 2>/dev/null` in 4516 *@@@%%%=?*=@@@%%%*) 4517 eval ac_cv_prog_make_${ac_make}_set=yes;; 4518 *) 4519 eval ac_cv_prog_make_${ac_make}_set=no;; 4520esac 4521rm -f conftest.make 4522fi 4523if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4525printf "%s\n" "yes" >&6; } 4526 SET_MAKE= 4527else 4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529printf "%s\n" "no" >&6; } 4530 SET_MAKE="MAKE=${MAKE-make}" 4531fi 4532 4533rm -rf .tst 2>/dev/null 4534mkdir .tst 2>/dev/null 4535if test -d .tst; then 4536 am__leading_dot=. 4537else 4538 am__leading_dot=_ 4539fi 4540rmdir .tst 2>/dev/null 4541 4542DEPDIR="${am__leading_dot}deps" 4543 4544ac_config_commands="$ac_config_commands depfiles" 4545 4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4547printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4548cat > confinc.mk << 'END' 4549am__doit: 4550 @echo this is the am__doit target >confinc.out 4551.PHONY: am__doit 4552END 4553am__include="#" 4554am__quote= 4555# BSD make does it like this. 4556echo '.include "confinc.mk" # ignored' > confmf.BSD 4557# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4558echo 'include confinc.mk # ignored' > confmf.GNU 4559_am_result=no 4560for s in GNU BSD; do 4561 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4562 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); } 4566 case $?:`cat confinc.out 2>/dev/null` in #( 4567 '0:this is the am__doit target') : 4568 case $s in #( 4569 BSD) : 4570 am__include='.include' am__quote='"' ;; #( 4571 *) : 4572 am__include='include' am__quote='' ;; 4573esac ;; #( 4574 *) : 4575 ;; 4576esac 4577 if test "$am__include" != "#"; then 4578 _am_result="yes ($s style)" 4579 break 4580 fi 4581done 4582rm -f confinc.* confmf.* 4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4584printf "%s\n" "${_am_result}" >&6; } 4585 4586# Check whether --enable-dependency-tracking was given. 4587if test ${enable_dependency_tracking+y} 4588then : 4589 enableval=$enable_dependency_tracking; 4590fi 4591 4592if test "x$enable_dependency_tracking" != xno; then 4593 am_depcomp="$ac_aux_dir/depcomp" 4594 AMDEPBACKSLASH='\' 4595 am__nodep='_no' 4596fi 4597 if test "x$enable_dependency_tracking" != xno; then 4598 AMDEP_TRUE= 4599 AMDEP_FALSE='#' 4600else 4601 AMDEP_TRUE='#' 4602 AMDEP_FALSE= 4603fi 4604 4605 4606# Check whether --enable-silent-rules was given. 4607if test ${enable_silent_rules+y} 4608then : 4609 enableval=$enable_silent_rules; 4610fi 4611 4612case $enable_silent_rules in # ((( 4613 yes) AM_DEFAULT_VERBOSITY=0;; 4614 no) AM_DEFAULT_VERBOSITY=1;; 4615 *) AM_DEFAULT_VERBOSITY=1;; 4616esac 4617am_make=${MAKE-make} 4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4619printf %s "checking whether $am_make supports nested variables... " >&6; } 4620if test ${am_cv_make_support_nested_variables+y} 4621then : 4622 printf %s "(cached) " >&6 4623else $as_nop 4624 if printf "%s\n" 'TRUE=$(BAR$(V)) 4625BAR0=false 4626BAR1=true 4627V=1 4628am__doit: 4629 @$(TRUE) 4630.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4631 am_cv_make_support_nested_variables=yes 4632else 4633 am_cv_make_support_nested_variables=no 4634fi 4635fi 4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4637printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4638if test $am_cv_make_support_nested_variables = yes; then 4639 AM_V='$(V)' 4640 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4641else 4642 AM_V=$AM_DEFAULT_VERBOSITY 4643 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4644fi 4645AM_BACKSLASH='\' 4646 4647if test "`cd $srcdir && pwd`" != "`pwd`"; then 4648 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4649 # is not polluted with repeated "-I." 4650 am__isrc=' -I$(srcdir)' 4651 # test to see if srcdir already configured 4652 if test -f $srcdir/config.status; then 4653 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4654 fi 4655fi 4656 4657# test whether we have cygpath 4658if test -z "$CYGPATH_W"; then 4659 if (cygpath --version) >/dev/null 2>/dev/null; then 4660 CYGPATH_W='cygpath -w' 4661 else 4662 CYGPATH_W=echo 4663 fi 4664fi 4665 4666 4667# Define the identity of the package. 4668 PACKAGE='libICE' 4669 VERSION='1.1.1' 4670 4671 4672printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4673 4674 4675printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4676 4677# Some tools Automake needs. 4678 4679ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4680 4681 4682AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4683 4684 4685AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4686 4687 4688AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4689 4690 4691MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4692 4693# For better backward compatibility. To be removed once Automake 1.9.x 4694# dies out for good. For more background, see: 4695# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4696# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4697mkdir_p='$(MKDIR_P)' 4698 4699# We need awk for the "check" target (and possibly the TAP driver). The 4700# system "awk" is bad on some platforms. 4701# Always define AMTAR for backward compatibility. Yes, it's still used 4702# in the wild :-( We should find a proper way to deprecate it ... 4703AMTAR='$${TAR-tar}' 4704 4705 4706# We'll loop over all known methods to create a tar archive until one works. 4707_am_tools='gnutar pax cpio none' 4708 4709am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4710 4711 4712 4713 4714 4715depcc="$CC" am_compiler_list= 4716 4717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4718printf %s "checking dependency style of $depcc... " >&6; } 4719if test ${am_cv_CC_dependencies_compiler_type+y} 4720then : 4721 printf %s "(cached) " >&6 4722else $as_nop 4723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4724 # We make a subdir and do the tests there. Otherwise we can end up 4725 # making bogus files that we don't know about and never remove. For 4726 # instance it was reported that on HP-UX the gcc test will end up 4727 # making a dummy file named 'D' -- because '-MD' means "put the output 4728 # in D". 4729 rm -rf conftest.dir 4730 mkdir conftest.dir 4731 # Copy depcomp to subdir because otherwise we won't find it if we're 4732 # using a relative directory. 4733 cp "$am_depcomp" conftest.dir 4734 cd conftest.dir 4735 # We will build objects and dependencies in a subdirectory because 4736 # it helps to detect inapplicable dependency modes. For instance 4737 # both Tru64's cc and ICC support -MD to output dependencies as a 4738 # side effect of compilation, but ICC will put the dependencies in 4739 # the current directory while Tru64 will put them in the object 4740 # directory. 4741 mkdir sub 4742 4743 am_cv_CC_dependencies_compiler_type=none 4744 if test "$am_compiler_list" = ""; then 4745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4746 fi 4747 am__universal=false 4748 case " $depcc " in #( 4749 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4750 esac 4751 4752 for depmode in $am_compiler_list; do 4753 # Setup a source with many dependencies, because some compilers 4754 # like to wrap large dependency lists on column 80 (with \), and 4755 # we should not choose a depcomp mode which is confused by this. 4756 # 4757 # We need to recreate these files for each test, as the compiler may 4758 # overwrite some of them when testing with obscure command lines. 4759 # This happens at least with the AIX C compiler. 4760 : > sub/conftest.c 4761 for i in 1 2 3 4 5 6; do 4762 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4764 # Solaris 10 /bin/sh. 4765 echo '/* dummy */' > sub/conftst$i.h 4766 done 4767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4768 4769 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4770 # mode. It turns out that the SunPro C++ compiler does not properly 4771 # handle '-M -o', and we need to detect this. Also, some Intel 4772 # versions had trouble with output in subdirs. 4773 am__obj=sub/conftest.${OBJEXT-o} 4774 am__minus_obj="-o $am__obj" 4775 case $depmode in 4776 gcc) 4777 # This depmode causes a compiler race in universal mode. 4778 test "$am__universal" = false || continue 4779 ;; 4780 nosideeffect) 4781 # After this tag, mechanisms are not by side-effect, so they'll 4782 # only be used when explicitly requested. 4783 if test "x$enable_dependency_tracking" = xyes; then 4784 continue 4785 else 4786 break 4787 fi 4788 ;; 4789 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4790 # This compiler won't grok '-c -o', but also, the minuso test has 4791 # not run yet. These depmodes are late enough in the game, and 4792 # so weak that their functioning should not be impacted. 4793 am__obj=conftest.${OBJEXT-o} 4794 am__minus_obj= 4795 ;; 4796 none) break ;; 4797 esac 4798 if depmode=$depmode \ 4799 source=sub/conftest.c object=$am__obj \ 4800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4802 >/dev/null 2>conftest.err && 4803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4807 # icc doesn't choke on unknown options, it will just issue warnings 4808 # or remarks (even with -Werror). So we grep stderr for any message 4809 # that says an option was ignored or not supported. 4810 # When given -MP, icc 7.0 and 7.1 complain thusly: 4811 # icc: Command line warning: ignoring option '-M'; no argument required 4812 # The diagnosis changed in icc 8.0: 4813 # icc: Command line remark: option '-MP' not supported 4814 if (grep 'ignoring option' conftest.err || 4815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4816 am_cv_CC_dependencies_compiler_type=$depmode 4817 break 4818 fi 4819 fi 4820 done 4821 4822 cd .. 4823 rm -rf conftest.dir 4824else 4825 am_cv_CC_dependencies_compiler_type=none 4826fi 4827 4828fi 4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4830printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4831CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4832 4833 if 4834 test "x$enable_dependency_tracking" != xno \ 4835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4836 am__fastdepCC_TRUE= 4837 am__fastdepCC_FALSE='#' 4838else 4839 am__fastdepCC_TRUE='#' 4840 am__fastdepCC_FALSE= 4841fi 4842 4843 4844# Variables for tags utilities; see am/tags.am 4845if test -z "$CTAGS"; then 4846 CTAGS=ctags 4847fi 4848 4849if test -z "$ETAGS"; then 4850 ETAGS=etags 4851fi 4852 4853if test -z "$CSCOPE"; then 4854 CSCOPE=cscope 4855fi 4856 4857 4858 4859# POSIX will say in a future version that running "rm -f" with no argument 4860# is OK; and we want to be able to make that assumption in our Makefile 4861# recipes. So use an aggressive probe to check that the usage we want is 4862# actually supported "in the wild" to an acceptable degree. 4863# See automake bug#10828. 4864# To make any issue more visible, cause the running configure to be aborted 4865# by default if the 'rm' program in use doesn't match our expectations; the 4866# user can still override this though. 4867if rm -f && rm -fr && rm -rf; then : OK; else 4868 cat >&2 <<'END' 4869Oops! 4870 4871Your 'rm' program seems unable to run without file operands specified 4872on the command line, even when the '-f' option is present. This is contrary 4873to the behaviour of most rm programs out there, and not conforming with 4874the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4875 4876Please tell bug-automake@gnu.org about your system, including the value 4877of your $PATH and any error possibly output before this message. This 4878can help us improve future automake versions. 4879 4880END 4881 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4882 echo 'Configuration will proceed anyway, since you have set the' >&2 4883 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4884 echo >&2 4885 else 4886 cat >&2 <<'END' 4887Aborting the configuration process, to ensure you take notice of the issue. 4888 4889You can download and install GNU coreutils to get an 'rm' implementation 4890that behaves properly: <https://www.gnu.org/software/coreutils/>. 4891 4892If you want to complete the configuration process using your problematic 4893'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4894to "yes", and re-run configure. 4895 4896END 4897 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4898 fi 4899fi 4900 4901 4902# Initialize libtool 4903case `pwd` in 4904 *\ * | *\ *) 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4906printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4907esac 4908 4909 4910 4911macro_version='2.4.7' 4912macro_revision='2.4.7' 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927ltmain=$ac_aux_dir/ltmain.sh 4928 4929 4930 4931 # Make sure we can run config.sub. 4932$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4933 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4934 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4936printf %s "checking build system type... " >&6; } 4937if test ${ac_cv_build+y} 4938then : 4939 printf %s "(cached) " >&6 4940else $as_nop 4941 ac_build_alias=$build_alias 4942test "x$ac_build_alias" = x && 4943 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4944test "x$ac_build_alias" = x && 4945 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4946ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4947 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4948 4949fi 4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4951printf "%s\n" "$ac_cv_build" >&6; } 4952case $ac_cv_build in 4953*-*-*) ;; 4954*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4955esac 4956build=$ac_cv_build 4957ac_save_IFS=$IFS; IFS='-' 4958set x $ac_cv_build 4959shift 4960build_cpu=$1 4961build_vendor=$2 4962shift; shift 4963# Remember, the first character of IFS is used to create $*, 4964# except with old shells: 4965build_os=$* 4966IFS=$ac_save_IFS 4967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4968 4969 4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4971printf %s "checking host system type... " >&6; } 4972if test ${ac_cv_host+y} 4973then : 4974 printf %s "(cached) " >&6 4975else $as_nop 4976 if test "x$host_alias" = x; then 4977 ac_cv_host=$ac_cv_build 4978else 4979 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4980 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4981fi 4982 4983fi 4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4985printf "%s\n" "$ac_cv_host" >&6; } 4986case $ac_cv_host in 4987*-*-*) ;; 4988*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4989esac 4990host=$ac_cv_host 4991ac_save_IFS=$IFS; IFS='-' 4992set x $ac_cv_host 4993shift 4994host_cpu=$1 4995host_vendor=$2 4996shift; shift 4997# Remember, the first character of IFS is used to create $*, 4998# except with old shells: 4999host_os=$* 5000IFS=$ac_save_IFS 5001case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5002 5003 5004# Backslashify metacharacters that are still active within 5005# double-quoted strings. 5006sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5007 5008# Same as above, but do not quote variable references. 5009double_quote_subst='s/\(["`\\]\)/\\\1/g' 5010 5011# Sed substitution to delay expansion of an escaped shell variable in a 5012# double_quote_subst'ed string. 5013delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5014 5015# Sed substitution to delay expansion of an escaped single quote. 5016delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5017 5018# Sed substitution to avoid accidental globbing in evaled expressions 5019no_glob_subst='s/\*/\\\*/g' 5020 5021ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5022ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5023ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5024 5025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5026printf %s "checking how to print strings... " >&6; } 5027# Test print first, because it will be a builtin if present. 5028if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5029 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5030 ECHO='print -r --' 5031elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5032 ECHO='printf %s\n' 5033else 5034 # Use this function as a fallback that always works. 5035 func_fallback_echo () 5036 { 5037 eval 'cat <<_LTECHO_EOF 5038$1 5039_LTECHO_EOF' 5040 } 5041 ECHO='func_fallback_echo' 5042fi 5043 5044# func_echo_all arg... 5045# Invoke $ECHO with all args, space-separated. 5046func_echo_all () 5047{ 5048 $ECHO "" 5049} 5050 5051case $ECHO in 5052 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5053printf "%s\n" "printf" >&6; } ;; 5054 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5055printf "%s\n" "print -r" >&6; } ;; 5056 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5057printf "%s\n" "cat" >&6; } ;; 5058esac 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5074printf %s "checking for a sed that does not truncate output... " >&6; } 5075if test ${ac_cv_path_SED+y} 5076then : 5077 printf %s "(cached) " >&6 5078else $as_nop 5079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5080 for ac_i in 1 2 3 4 5 6 7; do 5081 ac_script="$ac_script$as_nl$ac_script" 5082 done 5083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5084 { ac_script=; unset ac_script;} 5085 if test -z "$SED"; then 5086 ac_path_SED_found=false 5087 # Loop through the user's path and test for each of PROGNAME-LIST 5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 case $as_dir in #((( 5093 '') as_dir=./ ;; 5094 */) ;; 5095 *) as_dir=$as_dir/ ;; 5096 esac 5097 for ac_prog in sed gsed 5098 do 5099 for ac_exec_ext in '' $ac_executable_extensions; do 5100 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5101 as_fn_executable_p "$ac_path_SED" || continue 5102# Check for GNU ac_path_SED and select it if it is found. 5103 # Check for GNU $ac_path_SED 5104case `"$ac_path_SED" --version 2>&1` in 5105*GNU*) 5106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5107*) 5108 ac_count=0 5109 printf %s 0123456789 >"conftest.in" 5110 while : 5111 do 5112 cat "conftest.in" "conftest.in" >"conftest.tmp" 5113 mv "conftest.tmp" "conftest.in" 5114 cp "conftest.in" "conftest.nl" 5115 printf "%s\n" '' >> "conftest.nl" 5116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5118 as_fn_arith $ac_count + 1 && ac_count=$as_val 5119 if test $ac_count -gt ${ac_path_SED_max-0}; then 5120 # Best one so far, save it but keep looking for a better one 5121 ac_cv_path_SED="$ac_path_SED" 5122 ac_path_SED_max=$ac_count 5123 fi 5124 # 10*(2^10) chars as input seems more than enough 5125 test $ac_count -gt 10 && break 5126 done 5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5128esac 5129 5130 $ac_path_SED_found && break 3 5131 done 5132 done 5133 done 5134IFS=$as_save_IFS 5135 if test -z "$ac_cv_path_SED"; then 5136 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5137 fi 5138else 5139 ac_cv_path_SED=$SED 5140fi 5141 5142fi 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5144printf "%s\n" "$ac_cv_path_SED" >&6; } 5145 SED="$ac_cv_path_SED" 5146 rm -f conftest.sed 5147 5148test -z "$SED" && SED=sed 5149Xsed="$SED -e 1s/^X//" 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5162printf %s "checking for grep that handles long lines and -e... " >&6; } 5163if test ${ac_cv_path_GREP+y} 5164then : 5165 printf %s "(cached) " >&6 5166else $as_nop 5167 if test -z "$GREP"; then 5168 ac_path_GREP_found=false 5169 # Loop through the user's path and test for each of PROGNAME-LIST 5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5172do 5173 IFS=$as_save_IFS 5174 case $as_dir in #((( 5175 '') as_dir=./ ;; 5176 */) ;; 5177 *) as_dir=$as_dir/ ;; 5178 esac 5179 for ac_prog in grep ggrep 5180 do 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5183 as_fn_executable_p "$ac_path_GREP" || continue 5184# Check for GNU ac_path_GREP and select it if it is found. 5185 # Check for GNU $ac_path_GREP 5186case `"$ac_path_GREP" --version 2>&1` in 5187*GNU*) 5188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5189*) 5190 ac_count=0 5191 printf %s 0123456789 >"conftest.in" 5192 while : 5193 do 5194 cat "conftest.in" "conftest.in" >"conftest.tmp" 5195 mv "conftest.tmp" "conftest.in" 5196 cp "conftest.in" "conftest.nl" 5197 printf "%s\n" 'GREP' >> "conftest.nl" 5198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5200 as_fn_arith $ac_count + 1 && ac_count=$as_val 5201 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5202 # Best one so far, save it but keep looking for a better one 5203 ac_cv_path_GREP="$ac_path_GREP" 5204 ac_path_GREP_max=$ac_count 5205 fi 5206 # 10*(2^10) chars as input seems more than enough 5207 test $ac_count -gt 10 && break 5208 done 5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5210esac 5211 5212 $ac_path_GREP_found && break 3 5213 done 5214 done 5215 done 5216IFS=$as_save_IFS 5217 if test -z "$ac_cv_path_GREP"; then 5218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5219 fi 5220else 5221 ac_cv_path_GREP=$GREP 5222fi 5223 5224fi 5225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5226printf "%s\n" "$ac_cv_path_GREP" >&6; } 5227 GREP="$ac_cv_path_GREP" 5228 5229 5230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5231printf %s "checking for egrep... " >&6; } 5232if test ${ac_cv_path_EGREP+y} 5233then : 5234 printf %s "(cached) " >&6 5235else $as_nop 5236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5237 then ac_cv_path_EGREP="$GREP -E" 5238 else 5239 if test -z "$EGREP"; then 5240 ac_path_EGREP_found=false 5241 # Loop through the user's path and test for each of PROGNAME-LIST 5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5244do 5245 IFS=$as_save_IFS 5246 case $as_dir in #((( 5247 '') as_dir=./ ;; 5248 */) ;; 5249 *) as_dir=$as_dir/ ;; 5250 esac 5251 for ac_prog in egrep 5252 do 5253 for ac_exec_ext in '' $ac_executable_extensions; do 5254 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5255 as_fn_executable_p "$ac_path_EGREP" || continue 5256# Check for GNU ac_path_EGREP and select it if it is found. 5257 # Check for GNU $ac_path_EGREP 5258case `"$ac_path_EGREP" --version 2>&1` in 5259*GNU*) 5260 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5261*) 5262 ac_count=0 5263 printf %s 0123456789 >"conftest.in" 5264 while : 5265 do 5266 cat "conftest.in" "conftest.in" >"conftest.tmp" 5267 mv "conftest.tmp" "conftest.in" 5268 cp "conftest.in" "conftest.nl" 5269 printf "%s\n" 'EGREP' >> "conftest.nl" 5270 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5272 as_fn_arith $ac_count + 1 && ac_count=$as_val 5273 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5274 # Best one so far, save it but keep looking for a better one 5275 ac_cv_path_EGREP="$ac_path_EGREP" 5276 ac_path_EGREP_max=$ac_count 5277 fi 5278 # 10*(2^10) chars as input seems more than enough 5279 test $ac_count -gt 10 && break 5280 done 5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5282esac 5283 5284 $ac_path_EGREP_found && break 3 5285 done 5286 done 5287 done 5288IFS=$as_save_IFS 5289 if test -z "$ac_cv_path_EGREP"; then 5290 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5291 fi 5292else 5293 ac_cv_path_EGREP=$EGREP 5294fi 5295 5296 fi 5297fi 5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5299printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5300 EGREP="$ac_cv_path_EGREP" 5301 5302 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5304printf %s "checking for fgrep... " >&6; } 5305if test ${ac_cv_path_FGREP+y} 5306then : 5307 printf %s "(cached) " >&6 5308else $as_nop 5309 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5310 then ac_cv_path_FGREP="$GREP -F" 5311 else 5312 if test -z "$FGREP"; then 5313 ac_path_FGREP_found=false 5314 # Loop through the user's path and test for each of PROGNAME-LIST 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5317do 5318 IFS=$as_save_IFS 5319 case $as_dir in #((( 5320 '') as_dir=./ ;; 5321 */) ;; 5322 *) as_dir=$as_dir/ ;; 5323 esac 5324 for ac_prog in fgrep 5325 do 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5328 as_fn_executable_p "$ac_path_FGREP" || continue 5329# Check for GNU ac_path_FGREP and select it if it is found. 5330 # Check for GNU $ac_path_FGREP 5331case `"$ac_path_FGREP" --version 2>&1` in 5332*GNU*) 5333 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5334*) 5335 ac_count=0 5336 printf %s 0123456789 >"conftest.in" 5337 while : 5338 do 5339 cat "conftest.in" "conftest.in" >"conftest.tmp" 5340 mv "conftest.tmp" "conftest.in" 5341 cp "conftest.in" "conftest.nl" 5342 printf "%s\n" 'FGREP' >> "conftest.nl" 5343 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5345 as_fn_arith $ac_count + 1 && ac_count=$as_val 5346 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5347 # Best one so far, save it but keep looking for a better one 5348 ac_cv_path_FGREP="$ac_path_FGREP" 5349 ac_path_FGREP_max=$ac_count 5350 fi 5351 # 10*(2^10) chars as input seems more than enough 5352 test $ac_count -gt 10 && break 5353 done 5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5355esac 5356 5357 $ac_path_FGREP_found && break 3 5358 done 5359 done 5360 done 5361IFS=$as_save_IFS 5362 if test -z "$ac_cv_path_FGREP"; then 5363 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5364 fi 5365else 5366 ac_cv_path_FGREP=$FGREP 5367fi 5368 5369 fi 5370fi 5371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5372printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5373 FGREP="$ac_cv_path_FGREP" 5374 5375 5376test -z "$GREP" && GREP=grep 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396# Check whether --with-gnu-ld was given. 5397if test ${with_gnu_ld+y} 5398then : 5399 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5400else $as_nop 5401 with_gnu_ld=no 5402fi 5403 5404ac_prog=ld 5405if test yes = "$GCC"; then 5406 # Check if gcc -print-prog-name=ld gives a path. 5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5408printf %s "checking for ld used by $CC... " >&6; } 5409 case $host in 5410 *-*-mingw*) 5411 # gcc leaves a trailing carriage return, which upsets mingw 5412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5413 *) 5414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5415 esac 5416 case $ac_prog in 5417 # Accept absolute paths. 5418 [\\/]* | ?:[\\/]*) 5419 re_direlt='/[^/][^/]*/\.\./' 5420 # Canonicalize the pathname of ld 5421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5424 done 5425 test -z "$LD" && LD=$ac_prog 5426 ;; 5427 "") 5428 # If it fails, then pretend we aren't using GCC. 5429 ac_prog=ld 5430 ;; 5431 *) 5432 # If it is relative, then search for the first ld in PATH. 5433 with_gnu_ld=unknown 5434 ;; 5435 esac 5436elif test yes = "$with_gnu_ld"; then 5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5438printf %s "checking for GNU ld... " >&6; } 5439else 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5441printf %s "checking for non-GNU ld... " >&6; } 5442fi 5443if test ${lt_cv_path_LD+y} 5444then : 5445 printf %s "(cached) " >&6 5446else $as_nop 5447 if test -z "$LD"; then 5448 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5449 for ac_dir in $PATH; do 5450 IFS=$lt_save_ifs 5451 test -z "$ac_dir" && ac_dir=. 5452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5453 lt_cv_path_LD=$ac_dir/$ac_prog 5454 # Check to see if the program is GNU ld. I'd rather use --version, 5455 # but apparently some variants of GNU ld only accept -v. 5456 # Break only if it was the GNU/non-GNU ld that we prefer. 5457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5458 *GNU* | *'with BFD'*) 5459 test no != "$with_gnu_ld" && break 5460 ;; 5461 *) 5462 test yes != "$with_gnu_ld" && break 5463 ;; 5464 esac 5465 fi 5466 done 5467 IFS=$lt_save_ifs 5468else 5469 lt_cv_path_LD=$LD # Let the user override the test with a path. 5470fi 5471fi 5472 5473LD=$lt_cv_path_LD 5474if test -n "$LD"; then 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5476printf "%s\n" "$LD" >&6; } 5477else 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479printf "%s\n" "no" >&6; } 5480fi 5481test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5483printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5484if test ${lt_cv_prog_gnu_ld+y} 5485then : 5486 printf %s "(cached) " >&6 5487else $as_nop 5488 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5489case `$LD -v 2>&1 </dev/null` in 5490*GNU* | *'with BFD'*) 5491 lt_cv_prog_gnu_ld=yes 5492 ;; 5493*) 5494 lt_cv_prog_gnu_ld=no 5495 ;; 5496esac 5497fi 5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5499printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5500with_gnu_ld=$lt_cv_prog_gnu_ld 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5511printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5512if test ${lt_cv_path_NM+y} 5513then : 5514 printf %s "(cached) " >&6 5515else $as_nop 5516 if test -n "$NM"; then 5517 # Let the user override the test. 5518 lt_cv_path_NM=$NM 5519else 5520 lt_nm_to_check=${ac_tool_prefix}nm 5521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5522 lt_nm_to_check="$lt_nm_to_check nm" 5523 fi 5524 for lt_tmp_nm in $lt_nm_to_check; do 5525 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5527 IFS=$lt_save_ifs 5528 test -z "$ac_dir" && ac_dir=. 5529 tmp_nm=$ac_dir/$lt_tmp_nm 5530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5531 # Check to see if the nm accepts a BSD-compat flag. 5532 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5533 # nm: unknown option "B" ignored 5534 # Tru64's nm complains that /dev/null is an invalid object file 5535 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5536 case $build_os in 5537 mingw*) lt_bad_file=conftest.nm/nofile ;; 5538 *) lt_bad_file=/dev/null ;; 5539 esac 5540 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5541 *$lt_bad_file* | *'Invalid file or object type'*) 5542 lt_cv_path_NM="$tmp_nm -B" 5543 break 2 5544 ;; 5545 *) 5546 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5547 */dev/null*) 5548 lt_cv_path_NM="$tmp_nm -p" 5549 break 2 5550 ;; 5551 *) 5552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5553 continue # so that we can try to find one that supports BSD flags 5554 ;; 5555 esac 5556 ;; 5557 esac 5558 fi 5559 done 5560 IFS=$lt_save_ifs 5561 done 5562 : ${lt_cv_path_NM=no} 5563fi 5564fi 5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5566printf "%s\n" "$lt_cv_path_NM" >&6; } 5567if test no != "$lt_cv_path_NM"; then 5568 NM=$lt_cv_path_NM 5569else 5570 # Didn't find any BSD compatible name lister, look for dumpbin. 5571 if test -n "$DUMPBIN"; then : 5572 # Let the user override the test. 5573 else 5574 if test -n "$ac_tool_prefix"; then 5575 for ac_prog in dumpbin "link -dump" 5576 do 5577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5578set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580printf %s "checking for $ac_word... " >&6; } 5581if test ${ac_cv_prog_DUMPBIN+y} 5582then : 5583 printf %s "(cached) " >&6 5584else $as_nop 5585 if test -n "$DUMPBIN"; then 5586 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5587else 5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5589for as_dir in $PATH 5590do 5591 IFS=$as_save_IFS 5592 case $as_dir in #((( 5593 '') as_dir=./ ;; 5594 */) ;; 5595 *) as_dir=$as_dir/ ;; 5596 esac 5597 for ac_exec_ext in '' $ac_executable_extensions; do 5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5599 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5601 break 2 5602 fi 5603done 5604 done 5605IFS=$as_save_IFS 5606 5607fi 5608fi 5609DUMPBIN=$ac_cv_prog_DUMPBIN 5610if test -n "$DUMPBIN"; then 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5612printf "%s\n" "$DUMPBIN" >&6; } 5613else 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5615printf "%s\n" "no" >&6; } 5616fi 5617 5618 5619 test -n "$DUMPBIN" && break 5620 done 5621fi 5622if test -z "$DUMPBIN"; then 5623 ac_ct_DUMPBIN=$DUMPBIN 5624 for ac_prog in dumpbin "link -dump" 5625do 5626 # Extract the first word of "$ac_prog", so it can be a program name with args. 5627set dummy $ac_prog; ac_word=$2 5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629printf %s "checking for $ac_word... " >&6; } 5630if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5631then : 5632 printf %s "(cached) " >&6 5633else $as_nop 5634 if test -n "$ac_ct_DUMPBIN"; then 5635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5636else 5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5638for as_dir in $PATH 5639do 5640 IFS=$as_save_IFS 5641 case $as_dir in #((( 5642 '') as_dir=./ ;; 5643 */) ;; 5644 *) as_dir=$as_dir/ ;; 5645 esac 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652done 5653 done 5654IFS=$as_save_IFS 5655 5656fi 5657fi 5658ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5659if test -n "$ac_ct_DUMPBIN"; then 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5661printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5662else 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664printf "%s\n" "no" >&6; } 5665fi 5666 5667 5668 test -n "$ac_ct_DUMPBIN" && break 5669done 5670 5671 if test "x$ac_ct_DUMPBIN" = x; then 5672 DUMPBIN=":" 5673 else 5674 case $cross_compiling:$ac_tool_warned in 5675yes:) 5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5678ac_tool_warned=yes ;; 5679esac 5680 DUMPBIN=$ac_ct_DUMPBIN 5681 fi 5682fi 5683 5684 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5685 *COFF*) 5686 DUMPBIN="$DUMPBIN -symbols -headers" 5687 ;; 5688 *) 5689 DUMPBIN=: 5690 ;; 5691 esac 5692 fi 5693 5694 if test : != "$DUMPBIN"; then 5695 NM=$DUMPBIN 5696 fi 5697fi 5698test -z "$NM" && NM=nm 5699 5700 5701 5702 5703 5704 5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5706printf %s "checking the name lister ($NM) interface... " >&6; } 5707if test ${lt_cv_nm_interface+y} 5708then : 5709 printf %s "(cached) " >&6 5710else $as_nop 5711 lt_cv_nm_interface="BSD nm" 5712 echo "int some_variable = 0;" > conftest.$ac_ext 5713 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5714 (eval "$ac_compile" 2>conftest.err) 5715 cat conftest.err >&5 5716 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5717 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5718 cat conftest.err >&5 5719 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5720 cat conftest.out >&5 5721 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5722 lt_cv_nm_interface="MS dumpbin" 5723 fi 5724 rm -f conftest* 5725fi 5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5727printf "%s\n" "$lt_cv_nm_interface" >&6; } 5728 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5730printf %s "checking whether ln -s works... " >&6; } 5731LN_S=$as_ln_s 5732if test "$LN_S" = "ln -s"; then 5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5734printf "%s\n" "yes" >&6; } 5735else 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5737printf "%s\n" "no, using $LN_S" >&6; } 5738fi 5739 5740# find the maximum length of command line arguments 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5742printf %s "checking the maximum length of command line arguments... " >&6; } 5743if test ${lt_cv_sys_max_cmd_len+y} 5744then : 5745 printf %s "(cached) " >&6 5746else $as_nop 5747 i=0 5748 teststring=ABCD 5749 5750 case $build_os in 5751 msdosdjgpp*) 5752 # On DJGPP, this test can blow up pretty badly due to problems in libc 5753 # (any single argument exceeding 2000 bytes causes a buffer overrun 5754 # during glob expansion). Even if it were fixed, the result of this 5755 # check would be larger than it should be. 5756 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5757 ;; 5758 5759 gnu*) 5760 # Under GNU Hurd, this test is not required because there is 5761 # no limit to the length of command line arguments. 5762 # Libtool will interpret -1 as no limit whatsoever 5763 lt_cv_sys_max_cmd_len=-1; 5764 ;; 5765 5766 cygwin* | mingw* | cegcc*) 5767 # On Win9x/ME, this test blows up -- it succeeds, but takes 5768 # about 5 minutes as the teststring grows exponentially. 5769 # Worse, since 9x/ME are not pre-emptively multitasking, 5770 # you end up with a "frozen" computer, even though with patience 5771 # the test eventually succeeds (with a max line length of 256k). 5772 # Instead, let's just punt: use the minimum linelength reported by 5773 # all of the supported platforms: 8192 (on NT/2K/XP). 5774 lt_cv_sys_max_cmd_len=8192; 5775 ;; 5776 5777 mint*) 5778 # On MiNT this can take a long time and run out of memory. 5779 lt_cv_sys_max_cmd_len=8192; 5780 ;; 5781 5782 mint*) 5783 # On MiNT this can take a long time and run out of memory. 5784 lt_cv_sys_max_cmd_len=8192; 5785 ;; 5786 5787 amigaos*) 5788 # On AmigaOS with pdksh, this test takes hours, literally. 5789 # So we just punt and use a minimum line length of 8192. 5790 lt_cv_sys_max_cmd_len=8192; 5791 ;; 5792 5793 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5794 # This has been around since 386BSD, at least. Likely further. 5795 if test -x /sbin/sysctl; then 5796 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5797 elif test -x /usr/sbin/sysctl; then 5798 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5799 else 5800 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5801 fi 5802 # And add a safety zone 5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5805 ;; 5806 5807 interix*) 5808 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5809 lt_cv_sys_max_cmd_len=196608 5810 ;; 5811 5812 os2*) 5813 # The test takes a long time on OS/2. 5814 lt_cv_sys_max_cmd_len=8192 5815 ;; 5816 5817 osf*) 5818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5820 # nice to cause kernel panics so lets avoid the loop below. 5821 # First set a reasonable default. 5822 lt_cv_sys_max_cmd_len=16384 5823 # 5824 if test -x /sbin/sysconfig; then 5825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5826 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5827 esac 5828 fi 5829 ;; 5830 sco3.2v5*) 5831 lt_cv_sys_max_cmd_len=102400 5832 ;; 5833 sysv5* | sco5v6* | sysv4.2uw2*) 5834 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5835 if test -n "$kargmax"; then 5836 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5837 else 5838 lt_cv_sys_max_cmd_len=32768 5839 fi 5840 ;; 5841 *) 5842 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5843 if test -n "$lt_cv_sys_max_cmd_len" && \ 5844 test undefined != "$lt_cv_sys_max_cmd_len"; then 5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5847 else 5848 # Make teststring a little bigger before we do anything with it. 5849 # a 1K string should be a reasonable start. 5850 for i in 1 2 3 4 5 6 7 8; do 5851 teststring=$teststring$teststring 5852 done 5853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5854 # If test is not a shell built-in, we'll probably end up computing a 5855 # maximum length that is only half of the actual maximum length, but 5856 # we can't tell. 5857 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5858 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5859 test 17 != "$i" # 1/2 MB should be enough 5860 do 5861 i=`expr $i + 1` 5862 teststring=$teststring$teststring 5863 done 5864 # Only check the string length outside the loop. 5865 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5866 teststring= 5867 # Add a significant safety factor because C++ compilers can tack on 5868 # massive amounts of additional arguments before passing them to the 5869 # linker. It appears as though 1/2 is a usable value. 5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5871 fi 5872 ;; 5873 esac 5874 5875fi 5876 5877if test -n "$lt_cv_sys_max_cmd_len"; then 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5879printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5880else 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5882printf "%s\n" "none" >&6; } 5883fi 5884max_cmd_len=$lt_cv_sys_max_cmd_len 5885 5886 5887 5888 5889 5890 5891: ${CP="cp -f"} 5892: ${MV="mv -f"} 5893: ${RM="rm -f"} 5894 5895if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5896 lt_unset=unset 5897else 5898 lt_unset=false 5899fi 5900 5901 5902 5903 5904 5905# test EBCDIC or ASCII 5906case `echo X|tr X '\101'` in 5907 A) # ASCII based system 5908 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5909 lt_SP2NL='tr \040 \012' 5910 lt_NL2SP='tr \015\012 \040\040' 5911 ;; 5912 *) # EBCDIC based system 5913 lt_SP2NL='tr \100 \n' 5914 lt_NL2SP='tr \r\n \100\100' 5915 ;; 5916esac 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5927printf %s "checking how to convert $build file names to $host format... " >&6; } 5928if test ${lt_cv_to_host_file_cmd+y} 5929then : 5930 printf %s "(cached) " >&6 5931else $as_nop 5932 case $host in 5933 *-*-mingw* ) 5934 case $build in 5935 *-*-mingw* ) # actually msys 5936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5937 ;; 5938 *-*-cygwin* ) 5939 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5940 ;; 5941 * ) # otherwise, assume *nix 5942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5943 ;; 5944 esac 5945 ;; 5946 *-*-cygwin* ) 5947 case $build in 5948 *-*-mingw* ) # actually msys 5949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5950 ;; 5951 *-*-cygwin* ) 5952 lt_cv_to_host_file_cmd=func_convert_file_noop 5953 ;; 5954 * ) # otherwise, assume *nix 5955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5956 ;; 5957 esac 5958 ;; 5959 * ) # unhandled hosts (and "normal" native builds) 5960 lt_cv_to_host_file_cmd=func_convert_file_noop 5961 ;; 5962esac 5963 5964fi 5965 5966to_host_file_cmd=$lt_cv_to_host_file_cmd 5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5968printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5969 5970 5971 5972 5973 5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5975printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5976if test ${lt_cv_to_tool_file_cmd+y} 5977then : 5978 printf %s "(cached) " >&6 5979else $as_nop 5980 #assume ordinary cross tools, or native build. 5981lt_cv_to_tool_file_cmd=func_convert_file_noop 5982case $host in 5983 *-*-mingw* ) 5984 case $build in 5985 *-*-mingw* ) # actually msys 5986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5987 ;; 5988 esac 5989 ;; 5990esac 5991 5992fi 5993 5994to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5996printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5997 5998 5999 6000 6001 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6003printf %s "checking for $LD option to reload object files... " >&6; } 6004if test ${lt_cv_ld_reload_flag+y} 6005then : 6006 printf %s "(cached) " >&6 6007else $as_nop 6008 lt_cv_ld_reload_flag='-r' 6009fi 6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6011printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6012reload_flag=$lt_cv_ld_reload_flag 6013case $reload_flag in 6014"" | " "*) ;; 6015*) reload_flag=" $reload_flag" ;; 6016esac 6017reload_cmds='$LD$reload_flag -o $output$reload_objs' 6018case $host_os in 6019 cygwin* | mingw* | pw32* | cegcc*) 6020 if test yes != "$GCC"; then 6021 reload_cmds=false 6022 fi 6023 ;; 6024 darwin*) 6025 if test yes = "$GCC"; then 6026 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6027 else 6028 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6029 fi 6030 ;; 6031esac 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041if test -n "$ac_tool_prefix"; then 6042 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6043set dummy ${ac_tool_prefix}file; ac_word=$2 6044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6045printf %s "checking for $ac_word... " >&6; } 6046if test ${ac_cv_prog_FILECMD+y} 6047then : 6048 printf %s "(cached) " >&6 6049else $as_nop 6050 if test -n "$FILECMD"; then 6051 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6052else 6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH 6055do 6056 IFS=$as_save_IFS 6057 case $as_dir in #((( 6058 '') as_dir=./ ;; 6059 */) ;; 6060 *) as_dir=$as_dir/ ;; 6061 esac 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069 done 6070IFS=$as_save_IFS 6071 6072fi 6073fi 6074FILECMD=$ac_cv_prog_FILECMD 6075if test -n "$FILECMD"; then 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6077printf "%s\n" "$FILECMD" >&6; } 6078else 6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080printf "%s\n" "no" >&6; } 6081fi 6082 6083 6084fi 6085if test -z "$ac_cv_prog_FILECMD"; then 6086 ac_ct_FILECMD=$FILECMD 6087 # Extract the first word of "file", so it can be a program name with args. 6088set dummy file; ac_word=$2 6089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090printf %s "checking for $ac_word... " >&6; } 6091if test ${ac_cv_prog_ac_ct_FILECMD+y} 6092then : 6093 printf %s "(cached) " >&6 6094else $as_nop 6095 if test -n "$ac_ct_FILECMD"; then 6096 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 case $as_dir in #((( 6103 '') as_dir=./ ;; 6104 */) ;; 6105 *) as_dir=$as_dir/ ;; 6106 esac 6107 for ac_exec_ext in '' $ac_executable_extensions; do 6108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6109 ac_cv_prog_ac_ct_FILECMD="file" 6110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6111 break 2 6112 fi 6113done 6114 done 6115IFS=$as_save_IFS 6116 6117fi 6118fi 6119ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6120if test -n "$ac_ct_FILECMD"; then 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6122printf "%s\n" "$ac_ct_FILECMD" >&6; } 6123else 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6125printf "%s\n" "no" >&6; } 6126fi 6127 6128 if test "x$ac_ct_FILECMD" = x; then 6129 FILECMD=":" 6130 else 6131 case $cross_compiling:$ac_tool_warned in 6132yes:) 6133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6134printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6135ac_tool_warned=yes ;; 6136esac 6137 FILECMD=$ac_ct_FILECMD 6138 fi 6139else 6140 FILECMD="$ac_cv_prog_FILECMD" 6141fi 6142 6143 6144 6145 6146 6147 6148 6149if test -n "$ac_tool_prefix"; then 6150 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6151set dummy ${ac_tool_prefix}objdump; ac_word=$2 6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6153printf %s "checking for $ac_word... " >&6; } 6154if test ${ac_cv_prog_OBJDUMP+y} 6155then : 6156 printf %s "(cached) " >&6 6157else $as_nop 6158 if test -n "$OBJDUMP"; then 6159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6160else 6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 case $as_dir in #((( 6166 '') as_dir=./ ;; 6167 */) ;; 6168 *) as_dir=$as_dir/ ;; 6169 esac 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177 done 6178IFS=$as_save_IFS 6179 6180fi 6181fi 6182OBJDUMP=$ac_cv_prog_OBJDUMP 6183if test -n "$OBJDUMP"; then 6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6185printf "%s\n" "$OBJDUMP" >&6; } 6186else 6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6188printf "%s\n" "no" >&6; } 6189fi 6190 6191 6192fi 6193if test -z "$ac_cv_prog_OBJDUMP"; then 6194 ac_ct_OBJDUMP=$OBJDUMP 6195 # Extract the first word of "objdump", so it can be a program name with args. 6196set dummy objdump; ac_word=$2 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198printf %s "checking for $ac_word... " >&6; } 6199if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6200then : 6201 printf %s "(cached) " >&6 6202else $as_nop 6203 if test -n "$ac_ct_OBJDUMP"; then 6204 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 case $as_dir in #((( 6211 '') as_dir=./ ;; 6212 */) ;; 6213 *) as_dir=$as_dir/ ;; 6214 esac 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6217 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221done 6222 done 6223IFS=$as_save_IFS 6224 6225fi 6226fi 6227ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6228if test -n "$ac_ct_OBJDUMP"; then 6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6230printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6231else 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233printf "%s\n" "no" >&6; } 6234fi 6235 6236 if test "x$ac_ct_OBJDUMP" = x; then 6237 OBJDUMP="false" 6238 else 6239 case $cross_compiling:$ac_tool_warned in 6240yes:) 6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6243ac_tool_warned=yes ;; 6244esac 6245 OBJDUMP=$ac_ct_OBJDUMP 6246 fi 6247else 6248 OBJDUMP="$ac_cv_prog_OBJDUMP" 6249fi 6250 6251test -z "$OBJDUMP" && OBJDUMP=objdump 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6262printf %s "checking how to recognize dependent libraries... " >&6; } 6263if test ${lt_cv_deplibs_check_method+y} 6264then : 6265 printf %s "(cached) " >&6 6266else $as_nop 6267 lt_cv_file_magic_cmd='$MAGIC_CMD' 6268lt_cv_file_magic_test_file= 6269lt_cv_deplibs_check_method='unknown' 6270# Need to set the preceding variable on all platforms that support 6271# interlibrary dependencies. 6272# 'none' -- dependencies not supported. 6273# 'unknown' -- same as none, but documents that we really don't know. 6274# 'pass_all' -- all dependencies passed with no checks. 6275# 'test_compile' -- check by making test program. 6276# 'file_magic [[regex]]' -- check by looking for files in library path 6277# that responds to the $file_magic_cmd with a given extended regex. 6278# If you have 'file' or equivalent on your system and you're not sure 6279# whether 'pass_all' will *always* work, you probably want this one. 6280 6281case $host_os in 6282aix[4-9]*) 6283 lt_cv_deplibs_check_method=pass_all 6284 ;; 6285 6286beos*) 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 6290bsdi[45]*) 6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6292 lt_cv_file_magic_cmd='$FILECMD -L' 6293 lt_cv_file_magic_test_file=/shlib/libc.so 6294 ;; 6295 6296cygwin*) 6297 # func_win32_libid is a shell function defined in ltmain.sh 6298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6299 lt_cv_file_magic_cmd='func_win32_libid' 6300 ;; 6301 6302mingw* | pw32*) 6303 # Base MSYS/MinGW do not provide the 'file' command needed by 6304 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6305 # unless we find 'file', for example because we are cross-compiling. 6306 if ( file / ) >/dev/null 2>&1; then 6307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6308 lt_cv_file_magic_cmd='func_win32_libid' 6309 else 6310 # Keep this pattern in sync with the one in func_win32_libid. 6311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6312 lt_cv_file_magic_cmd='$OBJDUMP -f' 6313 fi 6314 ;; 6315 6316cegcc*) 6317 # use the weaker test based on 'objdump'. See mingw*. 6318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6319 lt_cv_file_magic_cmd='$OBJDUMP -f' 6320 ;; 6321 6322darwin* | rhapsody*) 6323 lt_cv_deplibs_check_method=pass_all 6324 ;; 6325 6326freebsd* | dragonfly* | midnightbsd*) 6327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6328 case $host_cpu in 6329 i*86 ) 6330 # Not sure whether the presence of OpenBSD here was a mistake. 6331 # Let's accept both of them until this is cleared up. 6332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6333 lt_cv_file_magic_cmd=$FILECMD 6334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6335 ;; 6336 esac 6337 else 6338 lt_cv_deplibs_check_method=pass_all 6339 fi 6340 ;; 6341 6342haiku*) 6343 lt_cv_deplibs_check_method=pass_all 6344 ;; 6345 6346hpux10.20* | hpux11*) 6347 lt_cv_file_magic_cmd=$FILECMD 6348 case $host_cpu in 6349 ia64*) 6350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6351 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6352 ;; 6353 hppa*64*) 6354 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]' 6355 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6356 ;; 6357 *) 6358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6359 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6360 ;; 6361 esac 6362 ;; 6363 6364interix[3-9]*) 6365 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6367 ;; 6368 6369irix5* | irix6* | nonstopux*) 6370 case $LD in 6371 *-32|*"-32 ") libmagic=32-bit;; 6372 *-n32|*"-n32 ") libmagic=N32;; 6373 *-64|*"-64 ") libmagic=64-bit;; 6374 *) libmagic=never-match;; 6375 esac 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379# This must be glibc/ELF. 6380linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383 6384netbsd*) 6385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6387 else 6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6389 fi 6390 ;; 6391 6392newos6*) 6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6394 lt_cv_file_magic_cmd=$FILECMD 6395 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6396 ;; 6397 6398*nto* | *qnx*) 6399 lt_cv_deplibs_check_method=pass_all 6400 ;; 6401 6402openbsd* | bitrig*) 6403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6405 else 6406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6407 fi 6408 ;; 6409 6410osf3* | osf4* | osf5*) 6411 lt_cv_deplibs_check_method=pass_all 6412 ;; 6413 6414rdos*) 6415 lt_cv_deplibs_check_method=pass_all 6416 ;; 6417 6418solaris*) 6419 lt_cv_deplibs_check_method=pass_all 6420 ;; 6421 6422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6423 lt_cv_deplibs_check_method=pass_all 6424 ;; 6425 6426sysv4 | sysv4.3*) 6427 case $host_vendor in 6428 motorola) 6429 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]' 6430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6431 ;; 6432 ncr) 6433 lt_cv_deplibs_check_method=pass_all 6434 ;; 6435 sequent) 6436 lt_cv_file_magic_cmd='/bin/file' 6437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6438 ;; 6439 sni) 6440 lt_cv_file_magic_cmd='/bin/file' 6441 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6442 lt_cv_file_magic_test_file=/lib/libc.so 6443 ;; 6444 siemens) 6445 lt_cv_deplibs_check_method=pass_all 6446 ;; 6447 pc) 6448 lt_cv_deplibs_check_method=pass_all 6449 ;; 6450 esac 6451 ;; 6452 6453tpf*) 6454 lt_cv_deplibs_check_method=pass_all 6455 ;; 6456os2*) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459esac 6460 6461fi 6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6463printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6464 6465file_magic_glob= 6466want_nocaseglob=no 6467if test "$build" = "$host"; then 6468 case $host_os in 6469 mingw* | pw32*) 6470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6471 want_nocaseglob=yes 6472 else 6473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6474 fi 6475 ;; 6476 esac 6477fi 6478 6479file_magic_cmd=$lt_cv_file_magic_cmd 6480deplibs_check_method=$lt_cv_deplibs_check_method 6481test -z "$deplibs_check_method" && deplibs_check_method=unknown 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504if test -n "$ac_tool_prefix"; then 6505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6506set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508printf %s "checking for $ac_word... " >&6; } 6509if test ${ac_cv_prog_DLLTOOL+y} 6510then : 6511 printf %s "(cached) " >&6 6512else $as_nop 6513 if test -n "$DLLTOOL"; then 6514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6515else 6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517for as_dir in $PATH 6518do 6519 IFS=$as_save_IFS 6520 case $as_dir in #((( 6521 '') as_dir=./ ;; 6522 */) ;; 6523 *) as_dir=$as_dir/ ;; 6524 esac 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6527 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi 6536fi 6537DLLTOOL=$ac_cv_prog_DLLTOOL 6538if test -n "$DLLTOOL"; then 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6540printf "%s\n" "$DLLTOOL" >&6; } 6541else 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543printf "%s\n" "no" >&6; } 6544fi 6545 6546 6547fi 6548if test -z "$ac_cv_prog_DLLTOOL"; then 6549 ac_ct_DLLTOOL=$DLLTOOL 6550 # Extract the first word of "dlltool", so it can be a program name with args. 6551set dummy dlltool; ac_word=$2 6552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6553printf %s "checking for $ac_word... " >&6; } 6554if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6555then : 6556 printf %s "(cached) " >&6 6557else $as_nop 6558 if test -n "$ac_ct_DLLTOOL"; then 6559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 case $as_dir in #((( 6566 '') as_dir=./ ;; 6567 */) ;; 6568 *) as_dir=$as_dir/ ;; 6569 esac 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6572 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6574 break 2 6575 fi 6576done 6577 done 6578IFS=$as_save_IFS 6579 6580fi 6581fi 6582ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6583if test -n "$ac_ct_DLLTOOL"; then 6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6585printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6586else 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6588printf "%s\n" "no" >&6; } 6589fi 6590 6591 if test "x$ac_ct_DLLTOOL" = x; then 6592 DLLTOOL="false" 6593 else 6594 case $cross_compiling:$ac_tool_warned in 6595yes:) 6596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6597printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6598ac_tool_warned=yes ;; 6599esac 6600 DLLTOOL=$ac_ct_DLLTOOL 6601 fi 6602else 6603 DLLTOOL="$ac_cv_prog_DLLTOOL" 6604fi 6605 6606test -z "$DLLTOOL" && DLLTOOL=dlltool 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6618printf %s "checking how to associate runtime and link libraries... " >&6; } 6619if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6620then : 6621 printf %s "(cached) " >&6 6622else $as_nop 6623 lt_cv_sharedlib_from_linklib_cmd='unknown' 6624 6625case $host_os in 6626cygwin* | mingw* | pw32* | cegcc*) 6627 # two different shell functions defined in ltmain.sh; 6628 # decide which one to use based on capabilities of $DLLTOOL 6629 case `$DLLTOOL --help 2>&1` in 6630 *--identify-strict*) 6631 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6632 ;; 6633 *) 6634 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6635 ;; 6636 esac 6637 ;; 6638*) 6639 # fallback: assume linklib IS sharedlib 6640 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6641 ;; 6642esac 6643 6644fi 6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6646printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6647sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6648test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6649 6650 6651 6652 6653 6654 6655 6656if test -n "$ac_tool_prefix"; then 6657 for ac_prog in ar 6658 do 6659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6662printf %s "checking for $ac_word... " >&6; } 6663if test ${ac_cv_prog_AR+y} 6664then : 6665 printf %s "(cached) " >&6 6666else $as_nop 6667 if test -n "$AR"; then 6668 ac_cv_prog_AR="$AR" # Let the user override the test. 6669else 6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH 6672do 6673 IFS=$as_save_IFS 6674 case $as_dir in #((( 6675 '') as_dir=./ ;; 6676 */) ;; 6677 *) as_dir=$as_dir/ ;; 6678 esac 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6681 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686 done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691AR=$ac_cv_prog_AR 6692if test -n "$AR"; then 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6694printf "%s\n" "$AR" >&6; } 6695else 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697printf "%s\n" "no" >&6; } 6698fi 6699 6700 6701 test -n "$AR" && break 6702 done 6703fi 6704if test -z "$AR"; then 6705 ac_ct_AR=$AR 6706 for ac_prog in ar 6707do 6708 # Extract the first word of "$ac_prog", so it can be a program name with args. 6709set dummy $ac_prog; ac_word=$2 6710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711printf %s "checking for $ac_word... " >&6; } 6712if test ${ac_cv_prog_ac_ct_AR+y} 6713then : 6714 printf %s "(cached) " >&6 6715else $as_nop 6716 if test -n "$ac_ct_AR"; then 6717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6718else 6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720for as_dir in $PATH 6721do 6722 IFS=$as_save_IFS 6723 case $as_dir in #((( 6724 '') as_dir=./ ;; 6725 */) ;; 6726 *) as_dir=$as_dir/ ;; 6727 esac 6728 for ac_exec_ext in '' $ac_executable_extensions; do 6729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6730 ac_cv_prog_ac_ct_AR="$ac_prog" 6731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6732 break 2 6733 fi 6734done 6735 done 6736IFS=$as_save_IFS 6737 6738fi 6739fi 6740ac_ct_AR=$ac_cv_prog_ac_ct_AR 6741if test -n "$ac_ct_AR"; then 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6743printf "%s\n" "$ac_ct_AR" >&6; } 6744else 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746printf "%s\n" "no" >&6; } 6747fi 6748 6749 6750 test -n "$ac_ct_AR" && break 6751done 6752 6753 if test "x$ac_ct_AR" = x; then 6754 AR="false" 6755 else 6756 case $cross_compiling:$ac_tool_warned in 6757yes:) 6758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6760ac_tool_warned=yes ;; 6761esac 6762 AR=$ac_ct_AR 6763 fi 6764fi 6765 6766: ${AR=ar} 6767 6768 6769 6770 6771 6772 6773# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6774# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6775# higher priority because thats what people were doing historically (setting 6776# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6777# variable obsoleted/removed. 6778 6779test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6780lt_ar_flags=$AR_FLAGS 6781 6782 6783 6784 6785 6786 6787# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6788# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6789 6790 6791 6792 6793 6794 6795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6796printf %s "checking for archiver @FILE support... " >&6; } 6797if test ${lt_cv_ar_at_file+y} 6798then : 6799 printf %s "(cached) " >&6 6800else $as_nop 6801 lt_cv_ar_at_file=no 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804 6805int 6806main (void) 6807{ 6808 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_compile "$LINENO" 6814then : 6815 echo conftest.$ac_objext > conftest.lst 6816 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6818 (eval $lt_ar_try) 2>&5 6819 ac_status=$? 6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6821 test $ac_status = 0; } 6822 if test 0 -eq "$ac_status"; then 6823 # Ensure the archiver fails upon bogus file names. 6824 rm -f conftest.$ac_objext libconftest.a 6825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6826 (eval $lt_ar_try) 2>&5 6827 ac_status=$? 6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6829 test $ac_status = 0; } 6830 if test 0 -ne "$ac_status"; then 6831 lt_cv_ar_at_file=@ 6832 fi 6833 fi 6834 rm -f conftest.* libconftest.a 6835 6836fi 6837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6838 6839fi 6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6841printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6842 6843if test no = "$lt_cv_ar_at_file"; then 6844 archiver_list_spec= 6845else 6846 archiver_list_spec=$lt_cv_ar_at_file 6847fi 6848 6849 6850 6851 6852 6853 6854 6855if test -n "$ac_tool_prefix"; then 6856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6857set dummy ${ac_tool_prefix}strip; ac_word=$2 6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6859printf %s "checking for $ac_word... " >&6; } 6860if test ${ac_cv_prog_STRIP+y} 6861then : 6862 printf %s "(cached) " >&6 6863else $as_nop 6864 if test -n "$STRIP"; then 6865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 case $as_dir in #((( 6872 '') as_dir=./ ;; 6873 */) ;; 6874 *) as_dir=$as_dir/ ;; 6875 esac 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6878 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888STRIP=$ac_cv_prog_STRIP 6889if test -n "$STRIP"; then 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6891printf "%s\n" "$STRIP" >&6; } 6892else 6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894printf "%s\n" "no" >&6; } 6895fi 6896 6897 6898fi 6899if test -z "$ac_cv_prog_STRIP"; then 6900 ac_ct_STRIP=$STRIP 6901 # Extract the first word of "strip", so it can be a program name with args. 6902set dummy strip; ac_word=$2 6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904printf %s "checking for $ac_word... " >&6; } 6905if test ${ac_cv_prog_ac_ct_STRIP+y} 6906then : 6907 printf %s "(cached) " >&6 6908else $as_nop 6909 if test -n "$ac_ct_STRIP"; then 6910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6911else 6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6913for as_dir in $PATH 6914do 6915 IFS=$as_save_IFS 6916 case $as_dir in #((( 6917 '') as_dir=./ ;; 6918 */) ;; 6919 *) as_dir=$as_dir/ ;; 6920 esac 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_ac_ct_STRIP="strip" 6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6934if test -n "$ac_ct_STRIP"; then 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6936printf "%s\n" "$ac_ct_STRIP" >&6; } 6937else 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939printf "%s\n" "no" >&6; } 6940fi 6941 6942 if test "x$ac_ct_STRIP" = x; then 6943 STRIP=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946yes:) 6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949ac_tool_warned=yes ;; 6950esac 6951 STRIP=$ac_ct_STRIP 6952 fi 6953else 6954 STRIP="$ac_cv_prog_STRIP" 6955fi 6956 6957test -z "$STRIP" && STRIP=: 6958 6959 6960 6961 6962 6963 6964if test -n "$ac_tool_prefix"; then 6965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6966set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968printf %s "checking for $ac_word... " >&6; } 6969if test ${ac_cv_prog_RANLIB+y} 6970then : 6971 printf %s "(cached) " >&6 6972else $as_nop 6973 if test -n "$RANLIB"; then 6974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 case $as_dir in #((( 6981 '') as_dir=./ ;; 6982 */) ;; 6983 *) as_dir=$as_dir/ ;; 6984 esac 6985 for ac_exec_ext in '' $ac_executable_extensions; do 6986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6989 break 2 6990 fi 6991done 6992 done 6993IFS=$as_save_IFS 6994 6995fi 6996fi 6997RANLIB=$ac_cv_prog_RANLIB 6998if test -n "$RANLIB"; then 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7000printf "%s\n" "$RANLIB" >&6; } 7001else 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7003printf "%s\n" "no" >&6; } 7004fi 7005 7006 7007fi 7008if test -z "$ac_cv_prog_RANLIB"; then 7009 ac_ct_RANLIB=$RANLIB 7010 # Extract the first word of "ranlib", so it can be a program name with args. 7011set dummy ranlib; ac_word=$2 7012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7013printf %s "checking for $ac_word... " >&6; } 7014if test ${ac_cv_prog_ac_ct_RANLIB+y} 7015then : 7016 printf %s "(cached) " >&6 7017else $as_nop 7018 if test -n "$ac_ct_RANLIB"; then 7019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7020else 7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022for as_dir in $PATH 7023do 7024 IFS=$as_save_IFS 7025 case $as_dir in #((( 7026 '') as_dir=./ ;; 7027 */) ;; 7028 *) as_dir=$as_dir/ ;; 7029 esac 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7032 ac_cv_prog_ac_ct_RANLIB="ranlib" 7033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037 done 7038IFS=$as_save_IFS 7039 7040fi 7041fi 7042ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7043if test -n "$ac_ct_RANLIB"; then 7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7045printf "%s\n" "$ac_ct_RANLIB" >&6; } 7046else 7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048printf "%s\n" "no" >&6; } 7049fi 7050 7051 if test "x$ac_ct_RANLIB" = x; then 7052 RANLIB=":" 7053 else 7054 case $cross_compiling:$ac_tool_warned in 7055yes:) 7056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7057printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7058ac_tool_warned=yes ;; 7059esac 7060 RANLIB=$ac_ct_RANLIB 7061 fi 7062else 7063 RANLIB="$ac_cv_prog_RANLIB" 7064fi 7065 7066test -z "$RANLIB" && RANLIB=: 7067 7068 7069 7070 7071 7072 7073# Determine commands to create old-style static archives. 7074old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7075old_postinstall_cmds='chmod 644 $oldlib' 7076old_postuninstall_cmds= 7077 7078if test -n "$RANLIB"; then 7079 case $host_os in 7080 bitrig* | openbsd*) 7081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7082 ;; 7083 *) 7084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7085 ;; 7086 esac 7087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7088fi 7089 7090case $host_os in 7091 darwin*) 7092 lock_old_archive_extraction=yes ;; 7093 *) 7094 lock_old_archive_extraction=no ;; 7095esac 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135# If no C compiler was specified, use CC. 7136LTCC=${LTCC-"$CC"} 7137 7138# If no C compiler flags were specified, use CFLAGS. 7139LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7140 7141# Allow CC to be a program name with arguments. 7142compiler=$CC 7143 7144 7145# Check for command to grab the raw symbol name followed by C symbol from nm. 7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7147printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7148if test ${lt_cv_sys_global_symbol_pipe+y} 7149then : 7150 printf %s "(cached) " >&6 7151else $as_nop 7152 7153# These are sane defaults that work on at least a few old systems. 7154# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7155 7156# Character class describing NM global symbol codes. 7157symcode='[BCDEGRST]' 7158 7159# Regexp to match symbols that can be accessed directly from C. 7160sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7161 7162# Define system-specific variables. 7163case $host_os in 7164aix*) 7165 symcode='[BCDT]' 7166 ;; 7167cygwin* | mingw* | pw32* | cegcc*) 7168 symcode='[ABCDGISTW]' 7169 ;; 7170hpux*) 7171 if test ia64 = "$host_cpu"; then 7172 symcode='[ABCDEGRST]' 7173 fi 7174 ;; 7175irix* | nonstopux*) 7176 symcode='[BCDEGRST]' 7177 ;; 7178osf*) 7179 symcode='[BCDEGQRST]' 7180 ;; 7181solaris*) 7182 symcode='[BDRT]' 7183 ;; 7184sco3.2v5*) 7185 symcode='[DT]' 7186 ;; 7187sysv4.2uw2*) 7188 symcode='[DT]' 7189 ;; 7190sysv5* | sco5v6* | unixware* | OpenUNIX*) 7191 symcode='[ABDT]' 7192 ;; 7193sysv4) 7194 symcode='[DFNSTU]' 7195 ;; 7196esac 7197 7198# If we're using GNU nm, then use its standard symbol codes. 7199case `$NM -V 2>&1` in 7200*GNU* | *'with BFD'*) 7201 symcode='[ABCDGIRSTW]' ;; 7202esac 7203 7204if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7205 # Gets list of data symbols to import. 7206 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7207 # Adjust the below global symbol transforms to fixup imported variables. 7208 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7209 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7210 lt_c_name_lib_hook="\ 7211 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7212 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7213else 7214 # Disable hooks by default. 7215 lt_cv_sys_global_symbol_to_import= 7216 lt_cdecl_hook= 7217 lt_c_name_hook= 7218 lt_c_name_lib_hook= 7219fi 7220 7221# Transform an extracted symbol line into a proper C declaration. 7222# Some systems (esp. on ia64) link data and code symbols differently, 7223# so use this general approach. 7224lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7225$lt_cdecl_hook\ 7226" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7227" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7228 7229# Transform an extracted symbol line into symbol name and symbol address 7230lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7231$lt_c_name_hook\ 7232" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7233" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7234 7235# Transform an extracted symbol line into symbol name with lib prefix and 7236# symbol address. 7237lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7238$lt_c_name_lib_hook\ 7239" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7240" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7241" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7242 7243# Handle CRLF in mingw tool chain 7244opt_cr= 7245case $build_os in 7246mingw*) 7247 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7248 ;; 7249esac 7250 7251# Try without a prefix underscore, then with it. 7252for ac_symprfx in "" "_"; do 7253 7254 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7255 symxfrm="\\1 $ac_symprfx\\2 \\2" 7256 7257 # Write the raw and C identifiers. 7258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7259 # Fake it for dumpbin and say T for any non-static function, 7260 # D for any global variable and I for any imported variable. 7261 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7262 # which start with @ or ?. 7263 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7264" {last_section=section; section=\$ 3};"\ 7265" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7266" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7267" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7268" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7269" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7270" \$ 0!~/External *\|/{next};"\ 7271" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7272" {if(hide[section]) next};"\ 7273" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7274" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7275" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7276" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7277" ' prfx=^$ac_symprfx" 7278 else 7279 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7280 fi 7281 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7282 7283 # Check to see that the pipe works correctly. 7284 pipe_works=no 7285 7286 rm -f conftest* 7287 cat > conftest.$ac_ext <<_LT_EOF 7288#ifdef __cplusplus 7289extern "C" { 7290#endif 7291char nm_test_var; 7292void nm_test_func(void); 7293void nm_test_func(void){} 7294#ifdef __cplusplus 7295} 7296#endif 7297int main(){nm_test_var='a';nm_test_func();return(0);} 7298_LT_EOF 7299 7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7301 (eval $ac_compile) 2>&5 7302 ac_status=$? 7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; }; then 7305 # Now try to grab the symbols. 7306 nlist=conftest.nm 7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7308 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7309 ac_status=$? 7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7311 test $ac_status = 0; } && test -s "$nlist"; then 7312 # Try sorting and uniquifying the output. 7313 if sort "$nlist" | uniq > "$nlist"T; then 7314 mv -f "$nlist"T "$nlist" 7315 else 7316 rm -f "$nlist"T 7317 fi 7318 7319 # Make sure that we snagged all the symbols we need. 7320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7322 cat <<_LT_EOF > conftest.$ac_ext 7323/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7324#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7325/* DATA imports from DLLs on WIN32 can't be const, because runtime 7326 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7327# define LT_DLSYM_CONST 7328#elif defined __osf__ 7329/* This system does not cope well with relocations in const data. */ 7330# define LT_DLSYM_CONST 7331#else 7332# define LT_DLSYM_CONST const 7333#endif 7334 7335#ifdef __cplusplus 7336extern "C" { 7337#endif 7338 7339_LT_EOF 7340 # Now generate the symbol file. 7341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7342 7343 cat <<_LT_EOF >> conftest.$ac_ext 7344 7345/* The mapping between symbol names and symbols. */ 7346LT_DLSYM_CONST struct { 7347 const char *name; 7348 void *address; 7349} 7350lt__PROGRAM__LTX_preloaded_symbols[] = 7351{ 7352 { "@PROGRAM@", (void *) 0 }, 7353_LT_EOF 7354 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7355 cat <<\_LT_EOF >> conftest.$ac_ext 7356 {0, (void *) 0} 7357}; 7358 7359/* This works around a problem in FreeBSD linker */ 7360#ifdef FREEBSD_WORKAROUND 7361static const void *lt_preloaded_setup() { 7362 return lt__PROGRAM__LTX_preloaded_symbols; 7363} 7364#endif 7365 7366#ifdef __cplusplus 7367} 7368#endif 7369_LT_EOF 7370 # Now try linking the two files. 7371 mv conftest.$ac_objext conftstm.$ac_objext 7372 lt_globsym_save_LIBS=$LIBS 7373 lt_globsym_save_CFLAGS=$CFLAGS 7374 LIBS=conftstm.$ac_objext 7375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7377 (eval $ac_link) 2>&5 7378 ac_status=$? 7379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7380 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7381 pipe_works=yes 7382 fi 7383 LIBS=$lt_globsym_save_LIBS 7384 CFLAGS=$lt_globsym_save_CFLAGS 7385 else 7386 echo "cannot find nm_test_func in $nlist" >&5 7387 fi 7388 else 7389 echo "cannot find nm_test_var in $nlist" >&5 7390 fi 7391 else 7392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7393 fi 7394 else 7395 echo "$progname: failed program was:" >&5 7396 cat conftest.$ac_ext >&5 7397 fi 7398 rm -rf conftest* conftst* 7399 7400 # Do not use the global_symbol_pipe unless it works. 7401 if test yes = "$pipe_works"; then 7402 break 7403 else 7404 lt_cv_sys_global_symbol_pipe= 7405 fi 7406done 7407 7408fi 7409 7410if test -z "$lt_cv_sys_global_symbol_pipe"; then 7411 lt_cv_sys_global_symbol_to_cdecl= 7412fi 7413if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7415printf "%s\n" "failed" >&6; } 7416else 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7418printf "%s\n" "ok" >&6; } 7419fi 7420 7421# Response file support. 7422if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7423 nm_file_list_spec='@' 7424elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7425 nm_file_list_spec='@' 7426fi 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7465printf %s "checking for sysroot... " >&6; } 7466 7467# Check whether --with-sysroot was given. 7468if test ${with_sysroot+y} 7469then : 7470 withval=$with_sysroot; 7471else $as_nop 7472 with_sysroot=no 7473fi 7474 7475 7476lt_sysroot= 7477case $with_sysroot in #( 7478 yes) 7479 if test yes = "$GCC"; then 7480 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7481 fi 7482 ;; #( 7483 /*) 7484 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7485 ;; #( 7486 no|'') 7487 ;; #( 7488 *) 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7490printf "%s\n" "$with_sysroot" >&6; } 7491 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7492 ;; 7493esac 7494 7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7496printf "%s\n" "${lt_sysroot:-no}" >&6; } 7497 7498 7499 7500 7501 7502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7503printf %s "checking for a working dd... " >&6; } 7504if test ${ac_cv_path_lt_DD+y} 7505then : 7506 printf %s "(cached) " >&6 7507else $as_nop 7508 printf 0123456789abcdef0123456789abcdef >conftest.i 7509cat conftest.i conftest.i >conftest2.i 7510: ${lt_DD:=$DD} 7511if test -z "$lt_DD"; then 7512 ac_path_lt_DD_found=false 7513 # Loop through the user's path and test for each of PROGNAME-LIST 7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7515for as_dir in $PATH 7516do 7517 IFS=$as_save_IFS 7518 case $as_dir in #((( 7519 '') as_dir=./ ;; 7520 */) ;; 7521 *) as_dir=$as_dir/ ;; 7522 esac 7523 for ac_prog in dd 7524 do 7525 for ac_exec_ext in '' $ac_executable_extensions; do 7526 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7527 as_fn_executable_p "$ac_path_lt_DD" || continue 7528if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7529 cmp -s conftest.i conftest.out \ 7530 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7531fi 7532 $ac_path_lt_DD_found && break 3 7533 done 7534 done 7535 done 7536IFS=$as_save_IFS 7537 if test -z "$ac_cv_path_lt_DD"; then 7538 : 7539 fi 7540else 7541 ac_cv_path_lt_DD=$lt_DD 7542fi 7543 7544rm -f conftest.i conftest2.i conftest.out 7545fi 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7547printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7548 7549 7550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7551printf %s "checking how to truncate binary pipes... " >&6; } 7552if test ${lt_cv_truncate_bin+y} 7553then : 7554 printf %s "(cached) " >&6 7555else $as_nop 7556 printf 0123456789abcdef0123456789abcdef >conftest.i 7557cat conftest.i conftest.i >conftest2.i 7558lt_cv_truncate_bin= 7559if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7560 cmp -s conftest.i conftest.out \ 7561 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7562fi 7563rm -f conftest.i conftest2.i conftest.out 7564test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7565fi 7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7567printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7568 7569 7570 7571 7572 7573 7574 7575# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7576func_cc_basename () 7577{ 7578 for cc_temp in $*""; do 7579 case $cc_temp in 7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7582 \-*) ;; 7583 *) break;; 7584 esac 7585 done 7586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7587} 7588 7589# Check whether --enable-libtool-lock was given. 7590if test ${enable_libtool_lock+y} 7591then : 7592 enableval=$enable_libtool_lock; 7593fi 7594 7595test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7596 7597# Some flags need to be propagated to the compiler or linker for good 7598# libtool support. 7599case $host in 7600ia64-*-hpux*) 7601 # Find out what ABI is being produced by ac_compile, and set mode 7602 # options accordingly. 7603 echo 'int i;' > conftest.$ac_ext 7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7605 (eval $ac_compile) 2>&5 7606 ac_status=$? 7607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7608 test $ac_status = 0; }; then 7609 case `$FILECMD conftest.$ac_objext` in 7610 *ELF-32*) 7611 HPUX_IA64_MODE=32 7612 ;; 7613 *ELF-64*) 7614 HPUX_IA64_MODE=64 7615 ;; 7616 esac 7617 fi 7618 rm -rf conftest* 7619 ;; 7620*-*-irix6*) 7621 # Find out what ABI is being produced by ac_compile, and set linker 7622 # options accordingly. 7623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7625 (eval $ac_compile) 2>&5 7626 ac_status=$? 7627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7628 test $ac_status = 0; }; then 7629 if test yes = "$lt_cv_prog_gnu_ld"; then 7630 case `$FILECMD conftest.$ac_objext` in 7631 *32-bit*) 7632 LD="${LD-ld} -melf32bsmip" 7633 ;; 7634 *N32*) 7635 LD="${LD-ld} -melf32bmipn32" 7636 ;; 7637 *64-bit*) 7638 LD="${LD-ld} -melf64bmip" 7639 ;; 7640 esac 7641 else 7642 case `$FILECMD conftest.$ac_objext` in 7643 *32-bit*) 7644 LD="${LD-ld} -32" 7645 ;; 7646 *N32*) 7647 LD="${LD-ld} -n32" 7648 ;; 7649 *64-bit*) 7650 LD="${LD-ld} -64" 7651 ;; 7652 esac 7653 fi 7654 fi 7655 rm -rf conftest* 7656 ;; 7657 7658mips64*-*linux*) 7659 # Find out what ABI is being produced by ac_compile, and set linker 7660 # options accordingly. 7661 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7663 (eval $ac_compile) 2>&5 7664 ac_status=$? 7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7666 test $ac_status = 0; }; then 7667 emul=elf 7668 case `$FILECMD conftest.$ac_objext` in 7669 *32-bit*) 7670 emul="${emul}32" 7671 ;; 7672 *64-bit*) 7673 emul="${emul}64" 7674 ;; 7675 esac 7676 case `$FILECMD conftest.$ac_objext` in 7677 *MSB*) 7678 emul="${emul}btsmip" 7679 ;; 7680 *LSB*) 7681 emul="${emul}ltsmip" 7682 ;; 7683 esac 7684 case `$FILECMD conftest.$ac_objext` in 7685 *N32*) 7686 emul="${emul}n32" 7687 ;; 7688 esac 7689 LD="${LD-ld} -m $emul" 7690 fi 7691 rm -rf conftest* 7692 ;; 7693 7694x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7695s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7696 # Find out what ABI is being produced by ac_compile, and set linker 7697 # options accordingly. Note that the listed cases only cover the 7698 # situations where additional linker options are needed (such as when 7699 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7700 # vice versa); the common cases where no linker options are needed do 7701 # not appear in the list. 7702 echo 'int i;' > conftest.$ac_ext 7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7704 (eval $ac_compile) 2>&5 7705 ac_status=$? 7706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7707 test $ac_status = 0; }; then 7708 case `$FILECMD conftest.o` in 7709 *32-bit*) 7710 case $host in 7711 x86_64-*kfreebsd*-gnu) 7712 LD="${LD-ld} -m elf_i386_fbsd" 7713 ;; 7714 x86_64-*linux*) 7715 case `$FILECMD conftest.o` in 7716 *x86-64*) 7717 LD="${LD-ld} -m elf32_x86_64" 7718 ;; 7719 *) 7720 LD="${LD-ld} -m elf_i386" 7721 ;; 7722 esac 7723 ;; 7724 powerpc64le-*linux*) 7725 LD="${LD-ld} -m elf32lppclinux" 7726 ;; 7727 powerpc64-*linux*) 7728 LD="${LD-ld} -m elf32ppclinux" 7729 ;; 7730 s390x-*linux*) 7731 LD="${LD-ld} -m elf_s390" 7732 ;; 7733 sparc64-*linux*) 7734 LD="${LD-ld} -m elf32_sparc" 7735 ;; 7736 esac 7737 ;; 7738 *64-bit*) 7739 case $host in 7740 x86_64-*kfreebsd*-gnu) 7741 LD="${LD-ld} -m elf_x86_64_fbsd" 7742 ;; 7743 x86_64-*linux*) 7744 LD="${LD-ld} -m elf_x86_64" 7745 ;; 7746 powerpcle-*linux*|powerpc64le-*linux*) 7747 LD="${LD-ld} -m elf64lppc" 7748 ;; 7749 powerpc-*linux*|powerpc64-*linux*) 7750 LD="${LD-ld} -m elf64ppc" 7751 ;; 7752 s390*-*linux*|s390*-*tpf*) 7753 LD="${LD-ld} -m elf64_s390" 7754 ;; 7755 sparc*-*linux*) 7756 LD="${LD-ld} -m elf64_sparc" 7757 ;; 7758 esac 7759 ;; 7760 esac 7761 fi 7762 rm -rf conftest* 7763 ;; 7764 7765*-*-sco3.2v5*) 7766 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7767 SAVE_CFLAGS=$CFLAGS 7768 CFLAGS="$CFLAGS -belf" 7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7770printf %s "checking whether the C compiler needs -belf... " >&6; } 7771if test ${lt_cv_cc_needs_belf+y} 7772then : 7773 printf %s "(cached) " >&6 7774else $as_nop 7775 ac_ext=c 7776ac_cpp='$CPP $CPPFLAGS' 7777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7779ac_compiler_gnu=$ac_cv_c_compiler_gnu 7780 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783 7784int 7785main (void) 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO" 7793then : 7794 lt_cv_cc_needs_belf=yes 7795else $as_nop 7796 lt_cv_cc_needs_belf=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7799 conftest$ac_exeext conftest.$ac_ext 7800 ac_ext=c 7801ac_cpp='$CPP $CPPFLAGS' 7802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7804ac_compiler_gnu=$ac_cv_c_compiler_gnu 7805 7806fi 7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7808printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7809 if test yes != "$lt_cv_cc_needs_belf"; then 7810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7811 CFLAGS=$SAVE_CFLAGS 7812 fi 7813 ;; 7814*-*solaris*) 7815 # Find out what ABI is being produced by ac_compile, and set linker 7816 # options accordingly. 7817 echo 'int i;' > conftest.$ac_ext 7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7819 (eval $ac_compile) 2>&5 7820 ac_status=$? 7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7822 test $ac_status = 0; }; then 7823 case `$FILECMD conftest.o` in 7824 *64-bit*) 7825 case $lt_cv_prog_gnu_ld in 7826 yes*) 7827 case $host in 7828 i?86-*-solaris*|x86_64-*-solaris*) 7829 LD="${LD-ld} -m elf_x86_64" 7830 ;; 7831 sparc*-*-solaris*) 7832 LD="${LD-ld} -m elf64_sparc" 7833 ;; 7834 esac 7835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7837 LD=${LD-ld}_sol2 7838 fi 7839 ;; 7840 *) 7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7842 LD="${LD-ld} -64" 7843 fi 7844 ;; 7845 esac 7846 ;; 7847 esac 7848 fi 7849 rm -rf conftest* 7850 ;; 7851esac 7852 7853need_locks=$enable_libtool_lock 7854 7855if test -n "$ac_tool_prefix"; then 7856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7857set dummy ${ac_tool_prefix}mt; ac_word=$2 7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859printf %s "checking for $ac_word... " >&6; } 7860if test ${ac_cv_prog_MANIFEST_TOOL+y} 7861then : 7862 printf %s "(cached) " >&6 7863else $as_nop 7864 if test -n "$MANIFEST_TOOL"; then 7865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7866else 7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7868for as_dir in $PATH 7869do 7870 IFS=$as_save_IFS 7871 case $as_dir in #((( 7872 '') as_dir=./ ;; 7873 */) ;; 7874 *) as_dir=$as_dir/ ;; 7875 esac 7876 for ac_exec_ext in '' $ac_executable_extensions; do 7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7880 break 2 7881 fi 7882done 7883 done 7884IFS=$as_save_IFS 7885 7886fi 7887fi 7888MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7889if test -n "$MANIFEST_TOOL"; then 7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7891printf "%s\n" "$MANIFEST_TOOL" >&6; } 7892else 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7894printf "%s\n" "no" >&6; } 7895fi 7896 7897 7898fi 7899if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7900 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7901 # Extract the first word of "mt", so it can be a program name with args. 7902set dummy mt; ac_word=$2 7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904printf %s "checking for $ac_word... " >&6; } 7905if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7906then : 7907 printf %s "(cached) " >&6 7908else $as_nop 7909 if test -n "$ac_ct_MANIFEST_TOOL"; then 7910 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7911else 7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7913for as_dir in $PATH 7914do 7915 IFS=$as_save_IFS 7916 case $as_dir in #((( 7917 '') as_dir=./ ;; 7918 */) ;; 7919 *) as_dir=$as_dir/ ;; 7920 esac 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7923 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7925 break 2 7926 fi 7927done 7928 done 7929IFS=$as_save_IFS 7930 7931fi 7932fi 7933ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7934if test -n "$ac_ct_MANIFEST_TOOL"; then 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7936printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7937else 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939printf "%s\n" "no" >&6; } 7940fi 7941 7942 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7943 MANIFEST_TOOL=":" 7944 else 7945 case $cross_compiling:$ac_tool_warned in 7946yes:) 7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7949ac_tool_warned=yes ;; 7950esac 7951 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7952 fi 7953else 7954 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7955fi 7956 7957test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7959printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7960if test ${lt_cv_path_mainfest_tool+y} 7961then : 7962 printf %s "(cached) " >&6 7963else $as_nop 7964 lt_cv_path_mainfest_tool=no 7965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7967 cat conftest.err >&5 7968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7969 lt_cv_path_mainfest_tool=yes 7970 fi 7971 rm -f conftest* 7972fi 7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7974printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7975if test yes != "$lt_cv_path_mainfest_tool"; then 7976 MANIFEST_TOOL=: 7977fi 7978 7979 7980 7981 7982 7983 7984 case $host_os in 7985 rhapsody* | darwin*) 7986 if test -n "$ac_tool_prefix"; then 7987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7988set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7990printf %s "checking for $ac_word... " >&6; } 7991if test ${ac_cv_prog_DSYMUTIL+y} 7992then : 7993 printf %s "(cached) " >&6 7994else $as_nop 7995 if test -n "$DSYMUTIL"; then 7996 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7997else 7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999for as_dir in $PATH 8000do 8001 IFS=$as_save_IFS 8002 case $as_dir in #((( 8003 '') as_dir=./ ;; 8004 */) ;; 8005 *) as_dir=$as_dir/ ;; 8006 esac 8007 for ac_exec_ext in '' $ac_executable_extensions; do 8008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8011 break 2 8012 fi 8013done 8014 done 8015IFS=$as_save_IFS 8016 8017fi 8018fi 8019DSYMUTIL=$ac_cv_prog_DSYMUTIL 8020if test -n "$DSYMUTIL"; then 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8022printf "%s\n" "$DSYMUTIL" >&6; } 8023else 8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8025printf "%s\n" "no" >&6; } 8026fi 8027 8028 8029fi 8030if test -z "$ac_cv_prog_DSYMUTIL"; then 8031 ac_ct_DSYMUTIL=$DSYMUTIL 8032 # Extract the first word of "dsymutil", so it can be a program name with args. 8033set dummy dsymutil; ac_word=$2 8034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8035printf %s "checking for $ac_word... " >&6; } 8036if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8037then : 8038 printf %s "(cached) " >&6 8039else $as_nop 8040 if test -n "$ac_ct_DSYMUTIL"; then 8041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8042else 8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8044for as_dir in $PATH 8045do 8046 IFS=$as_save_IFS 8047 case $as_dir in #((( 8048 '') as_dir=./ ;; 8049 */) ;; 8050 *) as_dir=$as_dir/ ;; 8051 esac 8052 for ac_exec_ext in '' $ac_executable_extensions; do 8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8054 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8056 break 2 8057 fi 8058done 8059 done 8060IFS=$as_save_IFS 8061 8062fi 8063fi 8064ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8065if test -n "$ac_ct_DSYMUTIL"; then 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8067printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8068else 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8070printf "%s\n" "no" >&6; } 8071fi 8072 8073 if test "x$ac_ct_DSYMUTIL" = x; then 8074 DSYMUTIL=":" 8075 else 8076 case $cross_compiling:$ac_tool_warned in 8077yes:) 8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8080ac_tool_warned=yes ;; 8081esac 8082 DSYMUTIL=$ac_ct_DSYMUTIL 8083 fi 8084else 8085 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8086fi 8087 8088 if test -n "$ac_tool_prefix"; then 8089 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8090set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092printf %s "checking for $ac_word... " >&6; } 8093if test ${ac_cv_prog_NMEDIT+y} 8094then : 8095 printf %s "(cached) " >&6 8096else $as_nop 8097 if test -n "$NMEDIT"; then 8098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8099else 8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8101for as_dir in $PATH 8102do 8103 IFS=$as_save_IFS 8104 case $as_dir in #((( 8105 '') as_dir=./ ;; 8106 */) ;; 8107 *) as_dir=$as_dir/ ;; 8108 esac 8109 for ac_exec_ext in '' $ac_executable_extensions; do 8110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8113 break 2 8114 fi 8115done 8116 done 8117IFS=$as_save_IFS 8118 8119fi 8120fi 8121NMEDIT=$ac_cv_prog_NMEDIT 8122if test -n "$NMEDIT"; then 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8124printf "%s\n" "$NMEDIT" >&6; } 8125else 8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8127printf "%s\n" "no" >&6; } 8128fi 8129 8130 8131fi 8132if test -z "$ac_cv_prog_NMEDIT"; then 8133 ac_ct_NMEDIT=$NMEDIT 8134 # Extract the first word of "nmedit", so it can be a program name with args. 8135set dummy nmedit; ac_word=$2 8136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8137printf %s "checking for $ac_word... " >&6; } 8138if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8139then : 8140 printf %s "(cached) " >&6 8141else $as_nop 8142 if test -n "$ac_ct_NMEDIT"; then 8143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8144else 8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8146for as_dir in $PATH 8147do 8148 IFS=$as_save_IFS 8149 case $as_dir in #((( 8150 '') as_dir=./ ;; 8151 */) ;; 8152 *) as_dir=$as_dir/ ;; 8153 esac 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8156 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160done 8161 done 8162IFS=$as_save_IFS 8163 8164fi 8165fi 8166ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8167if test -n "$ac_ct_NMEDIT"; then 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8169printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8170else 8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172printf "%s\n" "no" >&6; } 8173fi 8174 8175 if test "x$ac_ct_NMEDIT" = x; then 8176 NMEDIT=":" 8177 else 8178 case $cross_compiling:$ac_tool_warned in 8179yes:) 8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8182ac_tool_warned=yes ;; 8183esac 8184 NMEDIT=$ac_ct_NMEDIT 8185 fi 8186else 8187 NMEDIT="$ac_cv_prog_NMEDIT" 8188fi 8189 8190 if test -n "$ac_tool_prefix"; then 8191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8192set dummy ${ac_tool_prefix}lipo; ac_word=$2 8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194printf %s "checking for $ac_word... " >&6; } 8195if test ${ac_cv_prog_LIPO+y} 8196then : 8197 printf %s "(cached) " >&6 8198else $as_nop 8199 if test -n "$LIPO"; then 8200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8201else 8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203for as_dir in $PATH 8204do 8205 IFS=$as_save_IFS 8206 case $as_dir in #((( 8207 '') as_dir=./ ;; 8208 */) ;; 8209 *) as_dir=$as_dir/ ;; 8210 esac 8211 for ac_exec_ext in '' $ac_executable_extensions; do 8212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8213 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8215 break 2 8216 fi 8217done 8218 done 8219IFS=$as_save_IFS 8220 8221fi 8222fi 8223LIPO=$ac_cv_prog_LIPO 8224if test -n "$LIPO"; then 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8226printf "%s\n" "$LIPO" >&6; } 8227else 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8229printf "%s\n" "no" >&6; } 8230fi 8231 8232 8233fi 8234if test -z "$ac_cv_prog_LIPO"; then 8235 ac_ct_LIPO=$LIPO 8236 # Extract the first word of "lipo", so it can be a program name with args. 8237set dummy lipo; ac_word=$2 8238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8239printf %s "checking for $ac_word... " >&6; } 8240if test ${ac_cv_prog_ac_ct_LIPO+y} 8241then : 8242 printf %s "(cached) " >&6 8243else $as_nop 8244 if test -n "$ac_ct_LIPO"; then 8245 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8246else 8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8248for as_dir in $PATH 8249do 8250 IFS=$as_save_IFS 8251 case $as_dir in #((( 8252 '') as_dir=./ ;; 8253 */) ;; 8254 *) as_dir=$as_dir/ ;; 8255 esac 8256 for ac_exec_ext in '' $ac_executable_extensions; do 8257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8258 ac_cv_prog_ac_ct_LIPO="lipo" 8259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8260 break 2 8261 fi 8262done 8263 done 8264IFS=$as_save_IFS 8265 8266fi 8267fi 8268ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8269if test -n "$ac_ct_LIPO"; then 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8271printf "%s\n" "$ac_ct_LIPO" >&6; } 8272else 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8274printf "%s\n" "no" >&6; } 8275fi 8276 8277 if test "x$ac_ct_LIPO" = x; then 8278 LIPO=":" 8279 else 8280 case $cross_compiling:$ac_tool_warned in 8281yes:) 8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8284ac_tool_warned=yes ;; 8285esac 8286 LIPO=$ac_ct_LIPO 8287 fi 8288else 8289 LIPO="$ac_cv_prog_LIPO" 8290fi 8291 8292 if test -n "$ac_tool_prefix"; then 8293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8294set dummy ${ac_tool_prefix}otool; ac_word=$2 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8296printf %s "checking for $ac_word... " >&6; } 8297if test ${ac_cv_prog_OTOOL+y} 8298then : 8299 printf %s "(cached) " >&6 8300else $as_nop 8301 if test -n "$OTOOL"; then 8302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8303else 8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8305for as_dir in $PATH 8306do 8307 IFS=$as_save_IFS 8308 case $as_dir in #((( 8309 '') as_dir=./ ;; 8310 */) ;; 8311 *) as_dir=$as_dir/ ;; 8312 esac 8313 for ac_exec_ext in '' $ac_executable_extensions; do 8314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8317 break 2 8318 fi 8319done 8320 done 8321IFS=$as_save_IFS 8322 8323fi 8324fi 8325OTOOL=$ac_cv_prog_OTOOL 8326if test -n "$OTOOL"; then 8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8328printf "%s\n" "$OTOOL" >&6; } 8329else 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8331printf "%s\n" "no" >&6; } 8332fi 8333 8334 8335fi 8336if test -z "$ac_cv_prog_OTOOL"; then 8337 ac_ct_OTOOL=$OTOOL 8338 # Extract the first word of "otool", so it can be a program name with args. 8339set dummy otool; ac_word=$2 8340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8341printf %s "checking for $ac_word... " >&6; } 8342if test ${ac_cv_prog_ac_ct_OTOOL+y} 8343then : 8344 printf %s "(cached) " >&6 8345else $as_nop 8346 if test -n "$ac_ct_OTOOL"; then 8347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8348else 8349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8350for as_dir in $PATH 8351do 8352 IFS=$as_save_IFS 8353 case $as_dir in #((( 8354 '') as_dir=./ ;; 8355 */) ;; 8356 *) as_dir=$as_dir/ ;; 8357 esac 8358 for ac_exec_ext in '' $ac_executable_extensions; do 8359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8360 ac_cv_prog_ac_ct_OTOOL="otool" 8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8362 break 2 8363 fi 8364done 8365 done 8366IFS=$as_save_IFS 8367 8368fi 8369fi 8370ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8371if test -n "$ac_ct_OTOOL"; then 8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8373printf "%s\n" "$ac_ct_OTOOL" >&6; } 8374else 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376printf "%s\n" "no" >&6; } 8377fi 8378 8379 if test "x$ac_ct_OTOOL" = x; then 8380 OTOOL=":" 8381 else 8382 case $cross_compiling:$ac_tool_warned in 8383yes:) 8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8385printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8386ac_tool_warned=yes ;; 8387esac 8388 OTOOL=$ac_ct_OTOOL 8389 fi 8390else 8391 OTOOL="$ac_cv_prog_OTOOL" 8392fi 8393 8394 if test -n "$ac_tool_prefix"; then 8395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8396set dummy ${ac_tool_prefix}otool64; ac_word=$2 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398printf %s "checking for $ac_word... " >&6; } 8399if test ${ac_cv_prog_OTOOL64+y} 8400then : 8401 printf %s "(cached) " >&6 8402else $as_nop 8403 if test -n "$OTOOL64"; then 8404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8405else 8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407for as_dir in $PATH 8408do 8409 IFS=$as_save_IFS 8410 case $as_dir in #((( 8411 '') as_dir=./ ;; 8412 */) ;; 8413 *) as_dir=$as_dir/ ;; 8414 esac 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi 8426fi 8427OTOOL64=$ac_cv_prog_OTOOL64 8428if test -n "$OTOOL64"; then 8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8430printf "%s\n" "$OTOOL64" >&6; } 8431else 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8433printf "%s\n" "no" >&6; } 8434fi 8435 8436 8437fi 8438if test -z "$ac_cv_prog_OTOOL64"; then 8439 ac_ct_OTOOL64=$OTOOL64 8440 # Extract the first word of "otool64", so it can be a program name with args. 8441set dummy otool64; ac_word=$2 8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8443printf %s "checking for $ac_word... " >&6; } 8444if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8445then : 8446 printf %s "(cached) " >&6 8447else $as_nop 8448 if test -n "$ac_ct_OTOOL64"; then 8449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8450else 8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8452for as_dir in $PATH 8453do 8454 IFS=$as_save_IFS 8455 case $as_dir in #((( 8456 '') as_dir=./ ;; 8457 */) ;; 8458 *) as_dir=$as_dir/ ;; 8459 esac 8460 for ac_exec_ext in '' $ac_executable_extensions; do 8461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8462 ac_cv_prog_ac_ct_OTOOL64="otool64" 8463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8464 break 2 8465 fi 8466done 8467 done 8468IFS=$as_save_IFS 8469 8470fi 8471fi 8472ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8473if test -n "$ac_ct_OTOOL64"; then 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8475printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8476else 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8478printf "%s\n" "no" >&6; } 8479fi 8480 8481 if test "x$ac_ct_OTOOL64" = x; then 8482 OTOOL64=":" 8483 else 8484 case $cross_compiling:$ac_tool_warned in 8485yes:) 8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8487printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8488ac_tool_warned=yes ;; 8489esac 8490 OTOOL64=$ac_ct_OTOOL64 8491 fi 8492else 8493 OTOOL64="$ac_cv_prog_OTOOL64" 8494fi 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8523printf %s "checking for -single_module linker flag... " >&6; } 8524if test ${lt_cv_apple_cc_single_mod+y} 8525then : 8526 printf %s "(cached) " >&6 8527else $as_nop 8528 lt_cv_apple_cc_single_mod=no 8529 if test -z "$LT_MULTI_MODULE"; then 8530 # By default we will add the -single_module flag. You can override 8531 # by either setting the environment variable LT_MULTI_MODULE 8532 # non-empty at configure time, or by adding -multi_module to the 8533 # link flags. 8534 rm -rf libconftest.dylib* 8535 echo "int foo(void){return 1;}" > conftest.c 8536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8537-dynamiclib -Wl,-single_module conftest.c" >&5 8538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8540 _lt_result=$? 8541 # If there is a non-empty error log, and "single_module" 8542 # appears in it, assume the flag caused a linker warning 8543 if test -s conftest.err && $GREP single_module conftest.err; then 8544 cat conftest.err >&5 8545 # Otherwise, if the output was created with a 0 exit code from 8546 # the compiler, it worked. 8547 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8548 lt_cv_apple_cc_single_mod=yes 8549 else 8550 cat conftest.err >&5 8551 fi 8552 rm -rf libconftest.dylib* 8553 rm -f conftest.* 8554 fi 8555fi 8556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8557printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8558 8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8560printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8561if test ${lt_cv_ld_exported_symbols_list+y} 8562then : 8563 printf %s "(cached) " >&6 8564else $as_nop 8565 lt_cv_ld_exported_symbols_list=no 8566 save_LDFLAGS=$LDFLAGS 8567 echo "_main" > conftest.sym 8568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570/* end confdefs.h. */ 8571 8572int 8573main (void) 8574{ 8575 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580if ac_fn_c_try_link "$LINENO" 8581then : 8582 lt_cv_ld_exported_symbols_list=yes 8583else $as_nop 8584 lt_cv_ld_exported_symbols_list=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8587 conftest$ac_exeext conftest.$ac_ext 8588 LDFLAGS=$save_LDFLAGS 8589 8590fi 8591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8592printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8593 8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8595printf %s "checking for -force_load linker flag... " >&6; } 8596if test ${lt_cv_ld_force_load+y} 8597then : 8598 printf %s "(cached) " >&6 8599else $as_nop 8600 lt_cv_ld_force_load=no 8601 cat > conftest.c << _LT_EOF 8602int forced_loaded() { return 2;} 8603_LT_EOF 8604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8606 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8607 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8608 echo "$RANLIB libconftest.a" >&5 8609 $RANLIB libconftest.a 2>&5 8610 cat > conftest.c << _LT_EOF 8611int main() { return 0;} 8612_LT_EOF 8613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8615 _lt_result=$? 8616 if test -s conftest.err && $GREP force_load conftest.err; then 8617 cat conftest.err >&5 8618 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8619 lt_cv_ld_force_load=yes 8620 else 8621 cat conftest.err >&5 8622 fi 8623 rm -f conftest.err libconftest.a conftest conftest.c 8624 rm -rf conftest.dSYM 8625 8626fi 8627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8628printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8629 case $host_os in 8630 rhapsody* | darwin1.[012]) 8631 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8632 darwin1.*) 8633 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8634 darwin*) 8635 case $MACOSX_DEPLOYMENT_TARGET,$host in 8636 10.[012],*|,*powerpc*-darwin[5-8]*) 8637 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8638 *) 8639 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8640 esac 8641 ;; 8642 esac 8643 if test yes = "$lt_cv_apple_cc_single_mod"; then 8644 _lt_dar_single_mod='$single_module' 8645 fi 8646 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8647 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8648 else 8649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8650 fi 8651 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8652 _lt_dsymutil='~$DSYMUTIL $lib || :' 8653 else 8654 _lt_dsymutil= 8655 fi 8656 ;; 8657 esac 8658 8659# func_munge_path_list VARIABLE PATH 8660# ----------------------------------- 8661# VARIABLE is name of variable containing _space_ separated list of 8662# directories to be munged by the contents of PATH, which is string 8663# having a format: 8664# "DIR[:DIR]:" 8665# string "DIR[ DIR]" will be prepended to VARIABLE 8666# ":DIR[:DIR]" 8667# string "DIR[ DIR]" will be appended to VARIABLE 8668# "DIRP[:DIRP]::[DIRA:]DIRA" 8669# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8670# "DIRA[ DIRA]" will be appended to VARIABLE 8671# "DIR[:DIR]" 8672# VARIABLE will be replaced by "DIR[ DIR]" 8673func_munge_path_list () 8674{ 8675 case x$2 in 8676 x) 8677 ;; 8678 *:) 8679 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8680 ;; 8681 x:*) 8682 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8683 ;; 8684 *::*) 8685 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8686 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8687 ;; 8688 *) 8689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8690 ;; 8691 esac 8692} 8693 8694ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8695" 8696if test "x$ac_cv_header_dlfcn_h" = xyes 8697then : 8698 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8699 8700fi 8701 8702 8703 8704 8705 8706# Set options 8707 8708 8709 8710 enable_dlopen=no 8711 8712 8713 enable_win32_dll=no 8714 8715 8716 # Check whether --enable-shared was given. 8717if test ${enable_shared+y} 8718then : 8719 enableval=$enable_shared; p=${PACKAGE-default} 8720 case $enableval in 8721 yes) enable_shared=yes ;; 8722 no) enable_shared=no ;; 8723 *) 8724 enable_shared=no 8725 # Look at the argument we got. We use all the common list separators. 8726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8727 for pkg in $enableval; do 8728 IFS=$lt_save_ifs 8729 if test "X$pkg" = "X$p"; then 8730 enable_shared=yes 8731 fi 8732 done 8733 IFS=$lt_save_ifs 8734 ;; 8735 esac 8736else $as_nop 8737 enable_shared=yes 8738fi 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 # Check whether --enable-static was given. 8749if test ${enable_static+y} 8750then : 8751 enableval=$enable_static; p=${PACKAGE-default} 8752 case $enableval in 8753 yes) enable_static=yes ;; 8754 no) enable_static=no ;; 8755 *) 8756 enable_static=no 8757 # Look at the argument we got. We use all the common list separators. 8758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8759 for pkg in $enableval; do 8760 IFS=$lt_save_ifs 8761 if test "X$pkg" = "X$p"; then 8762 enable_static=yes 8763 fi 8764 done 8765 IFS=$lt_save_ifs 8766 ;; 8767 esac 8768else $as_nop 8769 enable_static=yes 8770fi 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781# Check whether --with-pic was given. 8782if test ${with_pic+y} 8783then : 8784 withval=$with_pic; lt_p=${PACKAGE-default} 8785 case $withval in 8786 yes|no) pic_mode=$withval ;; 8787 *) 8788 pic_mode=default 8789 # Look at the argument we got. We use all the common list separators. 8790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8791 for lt_pkg in $withval; do 8792 IFS=$lt_save_ifs 8793 if test "X$lt_pkg" = "X$lt_p"; then 8794 pic_mode=yes 8795 fi 8796 done 8797 IFS=$lt_save_ifs 8798 ;; 8799 esac 8800else $as_nop 8801 pic_mode=default 8802fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 # Check whether --enable-fast-install was given. 8812if test ${enable_fast_install+y} 8813then : 8814 enableval=$enable_fast_install; p=${PACKAGE-default} 8815 case $enableval in 8816 yes) enable_fast_install=yes ;; 8817 no) enable_fast_install=no ;; 8818 *) 8819 enable_fast_install=no 8820 # Look at the argument we got. We use all the common list separators. 8821 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8822 for pkg in $enableval; do 8823 IFS=$lt_save_ifs 8824 if test "X$pkg" = "X$p"; then 8825 enable_fast_install=yes 8826 fi 8827 done 8828 IFS=$lt_save_ifs 8829 ;; 8830 esac 8831else $as_nop 8832 enable_fast_install=yes 8833fi 8834 8835 8836 8837 8838 8839 8840 8841 8842 shared_archive_member_spec= 8843case $host,$enable_shared in 8844power*-*-aix[5-9]*,yes) 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8846printf %s "checking which variant of shared library versioning to provide... " >&6; } 8847 8848# Check whether --with-aix-soname was given. 8849if test ${with_aix_soname+y} 8850then : 8851 withval=$with_aix_soname; case $withval in 8852 aix|svr4|both) 8853 ;; 8854 *) 8855 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8856 ;; 8857 esac 8858 lt_cv_with_aix_soname=$with_aix_soname 8859else $as_nop 8860 if test ${lt_cv_with_aix_soname+y} 8861then : 8862 printf %s "(cached) " >&6 8863else $as_nop 8864 lt_cv_with_aix_soname=aix 8865fi 8866 8867 with_aix_soname=$lt_cv_with_aix_soname 8868fi 8869 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8871printf "%s\n" "$with_aix_soname" >&6; } 8872 if test aix != "$with_aix_soname"; then 8873 # For the AIX way of multilib, we name the shared archive member 8874 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8875 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8876 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8877 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8878 if test 64 = "${OBJECT_MODE-32}"; then 8879 shared_archive_member_spec=shr_64 8880 else 8881 shared_archive_member_spec=shr 8882 fi 8883 fi 8884 ;; 8885*) 8886 with_aix_soname=aix 8887 ;; 8888esac 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899# This can be used to rebuild libtool when needed 8900LIBTOOL_DEPS=$ltmain 8901 8902# Always use our own libtool. 8903LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934test -z "$LN_S" && LN_S="ln -s" 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949if test -n "${ZSH_VERSION+set}"; then 8950 setopt NO_GLOB_SUBST 8951fi 8952 8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8954printf %s "checking for objdir... " >&6; } 8955if test ${lt_cv_objdir+y} 8956then : 8957 printf %s "(cached) " >&6 8958else $as_nop 8959 rm -f .libs 2>/dev/null 8960mkdir .libs 2>/dev/null 8961if test -d .libs; then 8962 lt_cv_objdir=.libs 8963else 8964 # MS-DOS does not allow filenames that begin with a dot. 8965 lt_cv_objdir=_libs 8966fi 8967rmdir .libs 2>/dev/null 8968fi 8969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8970printf "%s\n" "$lt_cv_objdir" >&6; } 8971objdir=$lt_cv_objdir 8972 8973 8974 8975 8976 8977printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8978 8979 8980 8981 8982case $host_os in 8983aix3*) 8984 # AIX sometimes has problems with the GCC collect2 program. For some 8985 # reason, if we set the COLLECT_NAMES environment variable, the problems 8986 # vanish in a puff of smoke. 8987 if test set != "${COLLECT_NAMES+set}"; then 8988 COLLECT_NAMES= 8989 export COLLECT_NAMES 8990 fi 8991 ;; 8992esac 8993 8994# Global variables: 8995ofile=libtool 8996can_build_shared=yes 8997 8998# All known linkers require a '.a' archive for static linking (except MSVC and 8999# ICC, which need '.lib'). 9000libext=a 9001 9002with_gnu_ld=$lt_cv_prog_gnu_ld 9003 9004old_CC=$CC 9005old_CFLAGS=$CFLAGS 9006 9007# Set sane defaults for various variables 9008test -z "$CC" && CC=cc 9009test -z "$LTCC" && LTCC=$CC 9010test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9011test -z "$LD" && LD=ld 9012test -z "$ac_objext" && ac_objext=o 9013 9014func_cc_basename $compiler 9015cc_basename=$func_cc_basename_result 9016 9017 9018# Only perform the check for file, if the check method requires it 9019test -z "$MAGIC_CMD" && MAGIC_CMD=file 9020case $deplibs_check_method in 9021file_magic*) 9022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9024printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9025if test ${lt_cv_path_MAGIC_CMD+y} 9026then : 9027 printf %s "(cached) " >&6 9028else $as_nop 9029 case $MAGIC_CMD in 9030[\\/*] | ?:[\\/]*) 9031 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9032 ;; 9033*) 9034 lt_save_MAGIC_CMD=$MAGIC_CMD 9035 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9037 for ac_dir in $ac_dummy; do 9038 IFS=$lt_save_ifs 9039 test -z "$ac_dir" && ac_dir=. 9040 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9041 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9042 if test -n "$file_magic_test_file"; then 9043 case $deplibs_check_method in 9044 "file_magic "*) 9045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9046 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9048 $EGREP "$file_magic_regex" > /dev/null; then 9049 : 9050 else 9051 cat <<_LT_EOF 1>&2 9052 9053*** Warning: the command libtool uses to detect shared libraries, 9054*** $file_magic_cmd, produces output that libtool cannot recognize. 9055*** The result is that libtool may fail to recognize shared libraries 9056*** as such. This will affect the creation of libtool libraries that 9057*** depend on shared libraries, but programs linked with such libtool 9058*** libraries will work regardless of this problem. Nevertheless, you 9059*** may want to report the problem to your system manager and/or to 9060*** bug-libtool@gnu.org 9061 9062_LT_EOF 9063 fi ;; 9064 esac 9065 fi 9066 break 9067 fi 9068 done 9069 IFS=$lt_save_ifs 9070 MAGIC_CMD=$lt_save_MAGIC_CMD 9071 ;; 9072esac 9073fi 9074 9075MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9076if test -n "$MAGIC_CMD"; then 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9078printf "%s\n" "$MAGIC_CMD" >&6; } 9079else 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9081printf "%s\n" "no" >&6; } 9082fi 9083 9084 9085 9086 9087 9088if test -z "$lt_cv_path_MAGIC_CMD"; then 9089 if test -n "$ac_tool_prefix"; then 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9091printf %s "checking for file... " >&6; } 9092if test ${lt_cv_path_MAGIC_CMD+y} 9093then : 9094 printf %s "(cached) " >&6 9095else $as_nop 9096 case $MAGIC_CMD in 9097[\\/*] | ?:[\\/]*) 9098 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9099 ;; 9100*) 9101 lt_save_MAGIC_CMD=$MAGIC_CMD 9102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9104 for ac_dir in $ac_dummy; do 9105 IFS=$lt_save_ifs 9106 test -z "$ac_dir" && ac_dir=. 9107 if test -f "$ac_dir/file"; then 9108 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9109 if test -n "$file_magic_test_file"; then 9110 case $deplibs_check_method in 9111 "file_magic "*) 9112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9115 $EGREP "$file_magic_regex" > /dev/null; then 9116 : 9117 else 9118 cat <<_LT_EOF 1>&2 9119 9120*** Warning: the command libtool uses to detect shared libraries, 9121*** $file_magic_cmd, produces output that libtool cannot recognize. 9122*** The result is that libtool may fail to recognize shared libraries 9123*** as such. This will affect the creation of libtool libraries that 9124*** depend on shared libraries, but programs linked with such libtool 9125*** libraries will work regardless of this problem. Nevertheless, you 9126*** may want to report the problem to your system manager and/or to 9127*** bug-libtool@gnu.org 9128 9129_LT_EOF 9130 fi ;; 9131 esac 9132 fi 9133 break 9134 fi 9135 done 9136 IFS=$lt_save_ifs 9137 MAGIC_CMD=$lt_save_MAGIC_CMD 9138 ;; 9139esac 9140fi 9141 9142MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9143if test -n "$MAGIC_CMD"; then 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9145printf "%s\n" "$MAGIC_CMD" >&6; } 9146else 9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9148printf "%s\n" "no" >&6; } 9149fi 9150 9151 9152 else 9153 MAGIC_CMD=: 9154 fi 9155fi 9156 9157 fi 9158 ;; 9159esac 9160 9161# Use C for the default configuration in the libtool script 9162 9163lt_save_CC=$CC 9164ac_ext=c 9165ac_cpp='$CPP $CPPFLAGS' 9166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9168ac_compiler_gnu=$ac_cv_c_compiler_gnu 9169 9170 9171# Source file extension for C test sources. 9172ac_ext=c 9173 9174# Object file extension for compiled C test sources. 9175objext=o 9176objext=$objext 9177 9178# Code to be used in simple compile tests 9179lt_simple_compile_test_code="int some_variable = 0;" 9180 9181# Code to be used in simple link tests 9182lt_simple_link_test_code='int main(){return(0);}' 9183 9184 9185 9186 9187 9188 9189 9190# If no C compiler was specified, use CC. 9191LTCC=${LTCC-"$CC"} 9192 9193# If no C compiler flags were specified, use CFLAGS. 9194LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9195 9196# Allow CC to be a program name with arguments. 9197compiler=$CC 9198 9199# Save the default compiler, since it gets overwritten when the other 9200# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9201compiler_DEFAULT=$CC 9202 9203# save warnings/boilerplate of simple test code 9204ac_outfile=conftest.$ac_objext 9205echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9206eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9207_lt_compiler_boilerplate=`cat conftest.err` 9208$RM conftest* 9209 9210ac_outfile=conftest.$ac_objext 9211echo "$lt_simple_link_test_code" >conftest.$ac_ext 9212eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9213_lt_linker_boilerplate=`cat conftest.err` 9214$RM -r conftest* 9215 9216 9217if test -n "$compiler"; then 9218 9219lt_prog_compiler_no_builtin_flag= 9220 9221if test yes = "$GCC"; then 9222 case $cc_basename in 9223 nvcc*) 9224 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9225 *) 9226 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9227 esac 9228 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9230printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9231if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9232then : 9233 printf %s "(cached) " >&6 9234else $as_nop 9235 lt_cv_prog_compiler_rtti_exceptions=no 9236 ac_outfile=conftest.$ac_objext 9237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9238 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9239 # Insert the option either (1) after the last *FLAGS variable, or 9240 # (2) before a word containing "conftest.", or (3) at the end. 9241 # Note that $ac_compile itself does not contain backslashes and begins 9242 # with a dollar sign (not a hyphen), so the echo should work correctly. 9243 # The option is referenced via a variable to avoid confusing sed. 9244 lt_compile=`echo "$ac_compile" | $SED \ 9245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9247 -e 's:$: $lt_compiler_flag:'` 9248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9249 (eval "$lt_compile" 2>conftest.err) 9250 ac_status=$? 9251 cat conftest.err >&5 9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9253 if (exit $ac_status) && test -s "$ac_outfile"; then 9254 # The compiler can only warn and ignore the option if not recognized 9255 # So say no if there are warnings other than the usual output. 9256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9259 lt_cv_prog_compiler_rtti_exceptions=yes 9260 fi 9261 fi 9262 $RM conftest* 9263 9264fi 9265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9266printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9267 9268if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9270else 9271 : 9272fi 9273 9274fi 9275 9276 9277 9278 9279 9280 9281 lt_prog_compiler_wl= 9282lt_prog_compiler_pic= 9283lt_prog_compiler_static= 9284 9285 9286 if test yes = "$GCC"; then 9287 lt_prog_compiler_wl='-Wl,' 9288 lt_prog_compiler_static='-static' 9289 9290 case $host_os in 9291 aix*) 9292 # All AIX code is PIC. 9293 if test ia64 = "$host_cpu"; then 9294 # AIX 5 now supports IA64 processor 9295 lt_prog_compiler_static='-Bstatic' 9296 fi 9297 lt_prog_compiler_pic='-fPIC' 9298 ;; 9299 9300 amigaos*) 9301 case $host_cpu in 9302 powerpc) 9303 # see comment about AmigaOS4 .so support 9304 lt_prog_compiler_pic='-fPIC' 9305 ;; 9306 m68k) 9307 # FIXME: we need at least 68020 code to build shared libraries, but 9308 # adding the '-m68020' flag to GCC prevents building anything better, 9309 # like '-m68040'. 9310 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9311 ;; 9312 esac 9313 ;; 9314 9315 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9316 # PIC is the default for these OSes. 9317 ;; 9318 9319 mingw* | cygwin* | pw32* | os2* | cegcc*) 9320 # This hack is so that the source file can tell whether it is being 9321 # built for inclusion in a dll (and should export symbols for example). 9322 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9323 # (--disable-auto-import) libraries 9324 lt_prog_compiler_pic='-DDLL_EXPORT' 9325 case $host_os in 9326 os2*) 9327 lt_prog_compiler_static='$wl-static' 9328 ;; 9329 esac 9330 ;; 9331 9332 darwin* | rhapsody*) 9333 # PIC is the default on this platform 9334 # Common symbols not allowed in MH_DYLIB files 9335 lt_prog_compiler_pic='-fno-common' 9336 ;; 9337 9338 haiku*) 9339 # PIC is the default for Haiku. 9340 # The "-static" flag exists, but is broken. 9341 lt_prog_compiler_static= 9342 ;; 9343 9344 hpux*) 9345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9347 # sets the default TLS model and affects inlining. 9348 case $host_cpu in 9349 hppa*64*) 9350 # +Z the default 9351 ;; 9352 *) 9353 lt_prog_compiler_pic='-fPIC' 9354 ;; 9355 esac 9356 ;; 9357 9358 interix[3-9]*) 9359 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9360 # Instead, we relocate shared libraries at runtime. 9361 ;; 9362 9363 msdosdjgpp*) 9364 # Just because we use GCC doesn't mean we suddenly get shared libraries 9365 # on systems that don't support them. 9366 lt_prog_compiler_can_build_shared=no 9367 enable_shared=no 9368 ;; 9369 9370 *nto* | *qnx*) 9371 # QNX uses GNU C++, but need to define -shared option too, otherwise 9372 # it will coredump. 9373 lt_prog_compiler_pic='-fPIC -shared' 9374 ;; 9375 9376 sysv4*MP*) 9377 if test -d /usr/nec; then 9378 lt_prog_compiler_pic=-Kconform_pic 9379 fi 9380 ;; 9381 9382 *) 9383 lt_prog_compiler_pic='-fPIC' 9384 ;; 9385 esac 9386 9387 case $cc_basename in 9388 nvcc*) # Cuda Compiler Driver 2.2 9389 lt_prog_compiler_wl='-Xlinker ' 9390 if test -n "$lt_prog_compiler_pic"; then 9391 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9392 fi 9393 ;; 9394 esac 9395 else 9396 # PORTME Check for flag to pass linker flags through the system compiler. 9397 case $host_os in 9398 aix*) 9399 lt_prog_compiler_wl='-Wl,' 9400 if test ia64 = "$host_cpu"; then 9401 # AIX 5 now supports IA64 processor 9402 lt_prog_compiler_static='-Bstatic' 9403 else 9404 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9405 fi 9406 ;; 9407 9408 darwin* | rhapsody*) 9409 # PIC is the default on this platform 9410 # Common symbols not allowed in MH_DYLIB files 9411 lt_prog_compiler_pic='-fno-common' 9412 case $cc_basename in 9413 nagfor*) 9414 # NAG Fortran compiler 9415 lt_prog_compiler_wl='-Wl,-Wl,,' 9416 lt_prog_compiler_pic='-PIC' 9417 lt_prog_compiler_static='-Bstatic' 9418 ;; 9419 esac 9420 ;; 9421 9422 mingw* | cygwin* | pw32* | os2* | cegcc*) 9423 # This hack is so that the source file can tell whether it is being 9424 # built for inclusion in a dll (and should export symbols for example). 9425 lt_prog_compiler_pic='-DDLL_EXPORT' 9426 case $host_os in 9427 os2*) 9428 lt_prog_compiler_static='$wl-static' 9429 ;; 9430 esac 9431 ;; 9432 9433 hpux9* | hpux10* | hpux11*) 9434 lt_prog_compiler_wl='-Wl,' 9435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9436 # not for PA HP-UX. 9437 case $host_cpu in 9438 hppa*64*|ia64*) 9439 # +Z the default 9440 ;; 9441 *) 9442 lt_prog_compiler_pic='+Z' 9443 ;; 9444 esac 9445 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9446 lt_prog_compiler_static='$wl-a ${wl}archive' 9447 ;; 9448 9449 irix5* | irix6* | nonstopux*) 9450 lt_prog_compiler_wl='-Wl,' 9451 # PIC (with -KPIC) is the default. 9452 lt_prog_compiler_static='-non_shared' 9453 ;; 9454 9455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9456 case $cc_basename in 9457 # old Intel for x86_64, which still supported -KPIC. 9458 ecc*) 9459 lt_prog_compiler_wl='-Wl,' 9460 lt_prog_compiler_pic='-KPIC' 9461 lt_prog_compiler_static='-static' 9462 ;; 9463 # icc used to be incompatible with GCC. 9464 # ICC 10 doesn't accept -KPIC any more. 9465 icc* | ifort*) 9466 lt_prog_compiler_wl='-Wl,' 9467 lt_prog_compiler_pic='-fPIC' 9468 lt_prog_compiler_static='-static' 9469 ;; 9470 # Lahey Fortran 8.1. 9471 lf95*) 9472 lt_prog_compiler_wl='-Wl,' 9473 lt_prog_compiler_pic='--shared' 9474 lt_prog_compiler_static='--static' 9475 ;; 9476 nagfor*) 9477 # NAG Fortran compiler 9478 lt_prog_compiler_wl='-Wl,-Wl,,' 9479 lt_prog_compiler_pic='-PIC' 9480 lt_prog_compiler_static='-Bstatic' 9481 ;; 9482 tcc*) 9483 # Fabrice Bellard et al's Tiny C Compiler 9484 lt_prog_compiler_wl='-Wl,' 9485 lt_prog_compiler_pic='-fPIC' 9486 lt_prog_compiler_static='-static' 9487 ;; 9488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9489 # Portland Group compilers (*not* the Pentium gcc compiler, 9490 # which looks to be a dead project) 9491 lt_prog_compiler_wl='-Wl,' 9492 lt_prog_compiler_pic='-fpic' 9493 lt_prog_compiler_static='-Bstatic' 9494 ;; 9495 ccc*) 9496 lt_prog_compiler_wl='-Wl,' 9497 # All Alpha code is PIC. 9498 lt_prog_compiler_static='-non_shared' 9499 ;; 9500 xl* | bgxl* | bgf* | mpixl*) 9501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9502 lt_prog_compiler_wl='-Wl,' 9503 lt_prog_compiler_pic='-qpic' 9504 lt_prog_compiler_static='-qstaticlink' 9505 ;; 9506 *) 9507 case `$CC -V 2>&1 | $SED 5q` in 9508 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9509 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9510 lt_prog_compiler_pic='-KPIC' 9511 lt_prog_compiler_static='-Bstatic' 9512 lt_prog_compiler_wl='' 9513 ;; 9514 *Sun\ F* | *Sun*Fortran*) 9515 lt_prog_compiler_pic='-KPIC' 9516 lt_prog_compiler_static='-Bstatic' 9517 lt_prog_compiler_wl='-Qoption ld ' 9518 ;; 9519 *Sun\ C*) 9520 # Sun C 5.9 9521 lt_prog_compiler_pic='-KPIC' 9522 lt_prog_compiler_static='-Bstatic' 9523 lt_prog_compiler_wl='-Wl,' 9524 ;; 9525 *Intel*\ [CF]*Compiler*) 9526 lt_prog_compiler_wl='-Wl,' 9527 lt_prog_compiler_pic='-fPIC' 9528 lt_prog_compiler_static='-static' 9529 ;; 9530 *Portland\ Group*) 9531 lt_prog_compiler_wl='-Wl,' 9532 lt_prog_compiler_pic='-fpic' 9533 lt_prog_compiler_static='-Bstatic' 9534 ;; 9535 esac 9536 ;; 9537 esac 9538 ;; 9539 9540 newsos6) 9541 lt_prog_compiler_pic='-KPIC' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 9545 *nto* | *qnx*) 9546 # QNX uses GNU C++, but need to define -shared option too, otherwise 9547 # it will coredump. 9548 lt_prog_compiler_pic='-fPIC -shared' 9549 ;; 9550 9551 osf3* | osf4* | osf5*) 9552 lt_prog_compiler_wl='-Wl,' 9553 # All OSF/1 code is PIC. 9554 lt_prog_compiler_static='-non_shared' 9555 ;; 9556 9557 rdos*) 9558 lt_prog_compiler_static='-non_shared' 9559 ;; 9560 9561 solaris*) 9562 lt_prog_compiler_pic='-KPIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 case $cc_basename in 9565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9566 lt_prog_compiler_wl='-Qoption ld ';; 9567 *) 9568 lt_prog_compiler_wl='-Wl,';; 9569 esac 9570 ;; 9571 9572 sunos4*) 9573 lt_prog_compiler_wl='-Qoption ld ' 9574 lt_prog_compiler_pic='-PIC' 9575 lt_prog_compiler_static='-Bstatic' 9576 ;; 9577 9578 sysv4 | sysv4.2uw2* | sysv4.3*) 9579 lt_prog_compiler_wl='-Wl,' 9580 lt_prog_compiler_pic='-KPIC' 9581 lt_prog_compiler_static='-Bstatic' 9582 ;; 9583 9584 sysv4*MP*) 9585 if test -d /usr/nec; then 9586 lt_prog_compiler_pic='-Kconform_pic' 9587 lt_prog_compiler_static='-Bstatic' 9588 fi 9589 ;; 9590 9591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9592 lt_prog_compiler_wl='-Wl,' 9593 lt_prog_compiler_pic='-KPIC' 9594 lt_prog_compiler_static='-Bstatic' 9595 ;; 9596 9597 unicos*) 9598 lt_prog_compiler_wl='-Wl,' 9599 lt_prog_compiler_can_build_shared=no 9600 ;; 9601 9602 uts4*) 9603 lt_prog_compiler_pic='-pic' 9604 lt_prog_compiler_static='-Bstatic' 9605 ;; 9606 9607 *) 9608 lt_prog_compiler_can_build_shared=no 9609 ;; 9610 esac 9611 fi 9612 9613case $host_os in 9614 # For platforms that do not support PIC, -DPIC is meaningless: 9615 *djgpp*) 9616 lt_prog_compiler_pic= 9617 ;; 9618 *) 9619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9620 ;; 9621esac 9622 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9624printf %s "checking for $compiler option to produce PIC... " >&6; } 9625if test ${lt_cv_prog_compiler_pic+y} 9626then : 9627 printf %s "(cached) " >&6 9628else $as_nop 9629 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9630fi 9631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9632printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9633lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9634 9635# 9636# Check to make sure the PIC flag actually works. 9637# 9638if test -n "$lt_prog_compiler_pic"; then 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9640printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9641if test ${lt_cv_prog_compiler_pic_works+y} 9642then : 9643 printf %s "(cached) " >&6 9644else $as_nop 9645 lt_cv_prog_compiler_pic_works=no 9646 ac_outfile=conftest.$ac_objext 9647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9649 # Insert the option either (1) after the last *FLAGS variable, or 9650 # (2) before a word containing "conftest.", or (3) at the end. 9651 # Note that $ac_compile itself does not contain backslashes and begins 9652 # with a dollar sign (not a hyphen), so the echo should work correctly. 9653 # The option is referenced via a variable to avoid confusing sed. 9654 lt_compile=`echo "$ac_compile" | $SED \ 9655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9657 -e 's:$: $lt_compiler_flag:'` 9658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9659 (eval "$lt_compile" 2>conftest.err) 9660 ac_status=$? 9661 cat conftest.err >&5 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 if (exit $ac_status) && test -s "$ac_outfile"; then 9664 # The compiler can only warn and ignore the option if not recognized 9665 # So say no if there are warnings other than the usual output. 9666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9669 lt_cv_prog_compiler_pic_works=yes 9670 fi 9671 fi 9672 $RM conftest* 9673 9674fi 9675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9676printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9677 9678if test yes = "$lt_cv_prog_compiler_pic_works"; then 9679 case $lt_prog_compiler_pic in 9680 "" | " "*) ;; 9681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9682 esac 9683else 9684 lt_prog_compiler_pic= 9685 lt_prog_compiler_can_build_shared=no 9686fi 9687 9688fi 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700# 9701# Check to make sure the static flag actually works. 9702# 9703wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9705printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9706if test ${lt_cv_prog_compiler_static_works+y} 9707then : 9708 printf %s "(cached) " >&6 9709else $as_nop 9710 lt_cv_prog_compiler_static_works=no 9711 save_LDFLAGS=$LDFLAGS 9712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9713 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9715 # The linker can only warn and ignore the option if not recognized 9716 # So say no if there are warnings 9717 if test -s conftest.err; then 9718 # Append any errors to the config.log. 9719 cat conftest.err 1>&5 9720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9722 if diff conftest.exp conftest.er2 >/dev/null; then 9723 lt_cv_prog_compiler_static_works=yes 9724 fi 9725 else 9726 lt_cv_prog_compiler_static_works=yes 9727 fi 9728 fi 9729 $RM -r conftest* 9730 LDFLAGS=$save_LDFLAGS 9731 9732fi 9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9734printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9735 9736if test yes = "$lt_cv_prog_compiler_static_works"; then 9737 : 9738else 9739 lt_prog_compiler_static= 9740fi 9741 9742 9743 9744 9745 9746 9747 9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9749printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9750if test ${lt_cv_prog_compiler_c_o+y} 9751then : 9752 printf %s "(cached) " >&6 9753else $as_nop 9754 lt_cv_prog_compiler_c_o=no 9755 $RM -r conftest 2>/dev/null 9756 mkdir conftest 9757 cd conftest 9758 mkdir out 9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9760 9761 lt_compiler_flag="-o out/conftest2.$ac_objext" 9762 # Insert the option either (1) after the last *FLAGS variable, or 9763 # (2) before a word containing "conftest.", or (3) at the end. 9764 # Note that $ac_compile itself does not contain backslashes and begins 9765 # with a dollar sign (not a hyphen), so the echo should work correctly. 9766 lt_compile=`echo "$ac_compile" | $SED \ 9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9769 -e 's:$: $lt_compiler_flag:'` 9770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9771 (eval "$lt_compile" 2>out/conftest.err) 9772 ac_status=$? 9773 cat out/conftest.err >&5 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9776 then 9777 # The compiler can only warn and ignore the option if not recognized 9778 # So say no if there are warnings 9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9782 lt_cv_prog_compiler_c_o=yes 9783 fi 9784 fi 9785 chmod u+w . 2>&5 9786 $RM conftest* 9787 # SGI C++ compiler will create directory out/ii_files/ for 9788 # template instantiation 9789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9790 $RM out/* && rmdir out 9791 cd .. 9792 $RM -r conftest 9793 $RM conftest* 9794 9795fi 9796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9797printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9798 9799 9800 9801 9802 9803 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9805printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9806if test ${lt_cv_prog_compiler_c_o+y} 9807then : 9808 printf %s "(cached) " >&6 9809else $as_nop 9810 lt_cv_prog_compiler_c_o=no 9811 $RM -r conftest 2>/dev/null 9812 mkdir conftest 9813 cd conftest 9814 mkdir out 9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9816 9817 lt_compiler_flag="-o out/conftest2.$ac_objext" 9818 # Insert the option either (1) after the last *FLAGS variable, or 9819 # (2) before a word containing "conftest.", or (3) at the end. 9820 # Note that $ac_compile itself does not contain backslashes and begins 9821 # with a dollar sign (not a hyphen), so the echo should work correctly. 9822 lt_compile=`echo "$ac_compile" | $SED \ 9823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9825 -e 's:$: $lt_compiler_flag:'` 9826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9827 (eval "$lt_compile" 2>out/conftest.err) 9828 ac_status=$? 9829 cat out/conftest.err >&5 9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9831 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9832 then 9833 # The compiler can only warn and ignore the option if not recognized 9834 # So say no if there are warnings 9835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9838 lt_cv_prog_compiler_c_o=yes 9839 fi 9840 fi 9841 chmod u+w . 2>&5 9842 $RM conftest* 9843 # SGI C++ compiler will create directory out/ii_files/ for 9844 # template instantiation 9845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9846 $RM out/* && rmdir out 9847 cd .. 9848 $RM -r conftest 9849 $RM conftest* 9850 9851fi 9852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9853printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9854 9855 9856 9857 9858hard_links=nottested 9859if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9860 # do not overwrite the value of need_locks provided by the user 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9862printf %s "checking if we can lock with hard links... " >&6; } 9863 hard_links=yes 9864 $RM conftest* 9865 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9866 touch conftest.a 9867 ln conftest.a conftest.b 2>&5 || hard_links=no 9868 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9870printf "%s\n" "$hard_links" >&6; } 9871 if test no = "$hard_links"; then 9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9873printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9874 need_locks=warn 9875 fi 9876else 9877 need_locks=no 9878fi 9879 9880 9881 9882 9883 9884 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9886printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9887 9888 runpath_var= 9889 allow_undefined_flag= 9890 always_export_symbols=no 9891 archive_cmds= 9892 archive_expsym_cmds= 9893 compiler_needs_object=no 9894 enable_shared_with_static_runtimes=no 9895 export_dynamic_flag_spec= 9896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9897 hardcode_automatic=no 9898 hardcode_direct=no 9899 hardcode_direct_absolute=no 9900 hardcode_libdir_flag_spec= 9901 hardcode_libdir_separator= 9902 hardcode_minus_L=no 9903 hardcode_shlibpath_var=unsupported 9904 inherit_rpath=no 9905 link_all_deplibs=unknown 9906 module_cmds= 9907 module_expsym_cmds= 9908 old_archive_from_new_cmds= 9909 old_archive_from_expsyms_cmds= 9910 thread_safe_flag_spec= 9911 whole_archive_flag_spec= 9912 # include_expsyms should be a list of space-separated symbols to be *always* 9913 # included in the symbol list 9914 include_expsyms= 9915 # exclude_expsyms can be an extended regexp of symbols to exclude 9916 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9917 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9918 # as well as any symbol that contains 'd'. 9919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9921 # platforms (ab)use it in PIC code, but their linkers get confused if 9922 # the symbol is explicitly referenced. Since portable code cannot 9923 # rely on this symbol name, it's probably fine to never include it in 9924 # preloaded symbol tables. 9925 # Exclude shared library initialization/finalization symbols. 9926 extract_expsyms_cmds= 9927 9928 case $host_os in 9929 cygwin* | mingw* | pw32* | cegcc*) 9930 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9931 # When not using gcc, we currently assume that we are using 9932 # Microsoft Visual C++ or Intel C++ Compiler. 9933 if test yes != "$GCC"; then 9934 with_gnu_ld=no 9935 fi 9936 ;; 9937 interix*) 9938 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9939 with_gnu_ld=yes 9940 ;; 9941 openbsd* | bitrig*) 9942 with_gnu_ld=no 9943 ;; 9944 esac 9945 9946 ld_shlibs=yes 9947 9948 # On some targets, GNU ld is compatible enough with the native linker 9949 # that we're better off using the native interface for both. 9950 lt_use_gnu_ld_interface=no 9951 if test yes = "$with_gnu_ld"; then 9952 case $host_os in 9953 aix*) 9954 # The AIX port of GNU ld has always aspired to compatibility 9955 # with the native linker. However, as the warning in the GNU ld 9956 # block says, versions before 2.19.5* couldn't really create working 9957 # shared libraries, regardless of the interface used. 9958 case `$LD -v 2>&1` in 9959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9961 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9962 *) 9963 lt_use_gnu_ld_interface=yes 9964 ;; 9965 esac 9966 ;; 9967 *) 9968 lt_use_gnu_ld_interface=yes 9969 ;; 9970 esac 9971 fi 9972 9973 if test yes = "$lt_use_gnu_ld_interface"; then 9974 # If archive_cmds runs LD, not CC, wlarc should be empty 9975 wlarc='$wl' 9976 9977 # Set some defaults for GNU ld with shared library support. These 9978 # are reset later if shared libraries are not supported. Putting them 9979 # here allows them to be overridden if necessary. 9980 runpath_var=LD_RUN_PATH 9981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9982 export_dynamic_flag_spec='$wl--export-dynamic' 9983 # ancient GNU ld didn't support --whole-archive et. al. 9984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9985 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9986 else 9987 whole_archive_flag_spec= 9988 fi 9989 supports_anon_versioning=no 9990 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9991 *GNU\ gold*) supports_anon_versioning=yes ;; 9992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9995 *\ 2.11.*) ;; # other 2.11 versions 9996 *) supports_anon_versioning=yes ;; 9997 esac 9998 9999 # See if GNU ld supports shared libraries. 10000 case $host_os in 10001 aix[3-9]*) 10002 # On AIX/PPC, the GNU linker is very broken 10003 if test ia64 != "$host_cpu"; then 10004 ld_shlibs=no 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: the GNU linker, at least up to release 2.19, is reported 10008*** to be unable to reliably create shared libraries on AIX. 10009*** Therefore, libtool is disabling shared libraries support. If you 10010*** really care for shared libraries, you may want to install binutils 10011*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10012*** You will then need to restart the configuration process. 10013 10014_LT_EOF 10015 fi 10016 ;; 10017 10018 amigaos*) 10019 case $host_cpu in 10020 powerpc) 10021 # see comment about AmigaOS4 .so support 10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10023 archive_expsym_cmds='' 10024 ;; 10025 m68k) 10026 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)' 10027 hardcode_libdir_flag_spec='-L$libdir' 10028 hardcode_minus_L=yes 10029 ;; 10030 esac 10031 ;; 10032 10033 beos*) 10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10035 allow_undefined_flag=unsupported 10036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10037 # support --undefined. This deserves some investigation. FIXME 10038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10039 else 10040 ld_shlibs=no 10041 fi 10042 ;; 10043 10044 cygwin* | mingw* | pw32* | cegcc*) 10045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10046 # as there is no search path for DLLs. 10047 hardcode_libdir_flag_spec='-L$libdir' 10048 export_dynamic_flag_spec='$wl--export-all-symbols' 10049 allow_undefined_flag=unsupported 10050 always_export_symbols=no 10051 enable_shared_with_static_runtimes=yes 10052 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' 10053 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10054 10055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10057 # If the export-symbols file already is a .def file, use it as 10058 # is; otherwise, prepend EXPORTS... 10059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10060 cp $export_symbols $output_objdir/$soname.def; 10061 else 10062 echo EXPORTS > $output_objdir/$soname.def; 10063 cat $export_symbols >> $output_objdir/$soname.def; 10064 fi~ 10065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10066 else 10067 ld_shlibs=no 10068 fi 10069 ;; 10070 10071 haiku*) 10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10073 link_all_deplibs=yes 10074 ;; 10075 10076 os2*) 10077 hardcode_libdir_flag_spec='-L$libdir' 10078 hardcode_minus_L=yes 10079 allow_undefined_flag=unsupported 10080 shrext_cmds=.dll 10081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10084 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10087 emximp -o $lib $output_objdir/$libname.def' 10088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10091 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10092 prefix_cmds="$SED"~ 10093 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10094 prefix_cmds="$prefix_cmds -e 1d"; 10095 fi~ 10096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10099 emximp -o $lib $output_objdir/$libname.def' 10100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10101 enable_shared_with_static_runtimes=yes 10102 file_list_spec='@' 10103 ;; 10104 10105 interix[3-9]*) 10106 hardcode_direct=no 10107 hardcode_shlibpath_var=no 10108 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10109 export_dynamic_flag_spec='$wl-E' 10110 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10111 # Instead, shared libraries are loaded at an image base (0x10000000 by 10112 # default) and relocated if they conflict, which is a slow very memory 10113 # consuming and fragmenting process. To avoid this, we pick a random, 10114 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10115 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10117 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' 10118 ;; 10119 10120 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10121 tmp_diet=no 10122 if test linux-dietlibc = "$host_os"; then 10123 case $cc_basename in 10124 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10125 esac 10126 fi 10127 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10128 && test no = "$tmp_diet" 10129 then 10130 tmp_addflag=' $pic_flag' 10131 tmp_sharedflag='-shared' 10132 case $cc_basename,$host_cpu in 10133 pgcc*) # Portland Group C compiler 10134 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' 10135 tmp_addflag=' $pic_flag' 10136 ;; 10137 pgf77* | pgf90* | pgf95* | pgfortran*) 10138 # Portland Group f77 and f90 compilers 10139 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' 10140 tmp_addflag=' $pic_flag -Mnomain' ;; 10141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10142 tmp_addflag=' -i_dynamic' ;; 10143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10144 tmp_addflag=' -i_dynamic -nofor_main' ;; 10145 ifc* | ifort*) # Intel Fortran compiler 10146 tmp_addflag=' -nofor_main' ;; 10147 lf95*) # Lahey Fortran 8.1 10148 whole_archive_flag_spec= 10149 tmp_sharedflag='--shared' ;; 10150 nagfor*) # NAGFOR 5.3 10151 tmp_sharedflag='-Wl,-shared' ;; 10152 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10153 tmp_sharedflag='-qmkshrobj' 10154 tmp_addflag= ;; 10155 nvcc*) # Cuda Compiler Driver 2.2 10156 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' 10157 compiler_needs_object=yes 10158 ;; 10159 esac 10160 case `$CC -V 2>&1 | $SED 5q` in 10161 *Sun\ C*) # Sun C 5.9 10162 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' 10163 compiler_needs_object=yes 10164 tmp_sharedflag='-G' ;; 10165 *Sun\ F*) # Sun Fortran 8.3 10166 tmp_sharedflag='-G' ;; 10167 esac 10168 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10169 10170 if test yes = "$supports_anon_versioning"; then 10171 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10172 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10173 echo "local: *; };" >> $output_objdir/$libname.ver~ 10174 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10175 fi 10176 10177 case $cc_basename in 10178 tcc*) 10179 export_dynamic_flag_spec='-rdynamic' 10180 ;; 10181 xlf* | bgf* | bgxlf* | mpixlf*) 10182 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10183 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10184 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10185 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10186 if test yes = "$supports_anon_versioning"; then 10187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10188 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10189 echo "local: *; };" >> $output_objdir/$libname.ver~ 10190 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10191 fi 10192 ;; 10193 esac 10194 else 10195 ld_shlibs=no 10196 fi 10197 ;; 10198 10199 netbsd*) 10200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10201 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10202 wlarc= 10203 else 10204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10205 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10206 fi 10207 ;; 10208 10209 solaris*) 10210 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10211 ld_shlibs=no 10212 cat <<_LT_EOF 1>&2 10213 10214*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10215*** create shared libraries on Solaris systems. Therefore, libtool 10216*** is disabling shared libraries support. We urge you to upgrade GNU 10217*** binutils to release 2.9.1 or newer. Another option is to modify 10218*** your PATH or compiler configuration so that the native linker is 10219*** used, and then restart. 10220 10221_LT_EOF 10222 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10224 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10225 else 10226 ld_shlibs=no 10227 fi 10228 ;; 10229 10230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10231 case `$LD -v 2>&1` in 10232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10233 ld_shlibs=no 10234 cat <<_LT_EOF 1>&2 10235 10236*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10237*** reliably create shared libraries on SCO systems. Therefore, libtool 10238*** is disabling shared libraries support. We urge you to upgrade GNU 10239*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10240*** your PATH or compiler configuration so that the native linker is 10241*** used, and then restart. 10242 10243_LT_EOF 10244 ;; 10245 *) 10246 # For security reasons, it is highly recommended that you always 10247 # use absolute paths for naming shared libraries, and exclude the 10248 # DT_RUNPATH tag from executables and libraries. But doing so 10249 # requires that you compile everything twice, which is a pain. 10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10254 else 10255 ld_shlibs=no 10256 fi 10257 ;; 10258 esac 10259 ;; 10260 10261 sunos4*) 10262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10263 wlarc= 10264 hardcode_direct=yes 10265 hardcode_shlibpath_var=no 10266 ;; 10267 10268 *) 10269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10271 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10272 else 10273 ld_shlibs=no 10274 fi 10275 ;; 10276 esac 10277 10278 if test no = "$ld_shlibs"; then 10279 runpath_var= 10280 hardcode_libdir_flag_spec= 10281 export_dynamic_flag_spec= 10282 whole_archive_flag_spec= 10283 fi 10284 else 10285 # PORTME fill in a description of your system's linker (not GNU ld) 10286 case $host_os in 10287 aix3*) 10288 allow_undefined_flag=unsupported 10289 always_export_symbols=yes 10290 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' 10291 # Note: this linker hardcodes the directories in LIBPATH if there 10292 # are no directories specified by -L. 10293 hardcode_minus_L=yes 10294 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10295 # Neither direct hardcoding nor static linking is supported with a 10296 # broken collect2. 10297 hardcode_direct=unsupported 10298 fi 10299 ;; 10300 10301 aix[4-9]*) 10302 if test ia64 = "$host_cpu"; then 10303 # On IA64, the linker does run time linking by default, so we don't 10304 # have to do anything special. 10305 aix_use_runtimelinking=no 10306 exp_sym_flag='-Bexport' 10307 no_entry_flag= 10308 else 10309 # If we're using GNU nm, then we don't want the "-C" option. 10310 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10311 # Without the "-l" option, or with the "-B" option, AIX nm treats 10312 # weak defined symbols like other global defined symbols, whereas 10313 # GNU nm marks them as "W". 10314 # While the 'weak' keyword is ignored in the Export File, we need 10315 # it in the Import File for the 'aix-soname' feature, so we have 10316 # to replace the "-B" option with "-P" for AIX nm. 10317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10318 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' 10319 else 10320 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' 10321 fi 10322 aix_use_runtimelinking=no 10323 10324 # Test if we are trying to use run time linking or normal 10325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10326 # have runtime linking enabled, and use it for executables. 10327 # For shared libraries, we enable/disable runtime linking 10328 # depending on the kind of the shared library created - 10329 # when "with_aix_soname,aix_use_runtimelinking" is: 10330 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10331 # "aix,yes" lib.so shared, rtl:yes, for executables 10332 # lib.a static archive 10333 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10334 # lib.a(lib.so.V) shared, rtl:no, for executables 10335 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10336 # lib.a(lib.so.V) shared, rtl:no 10337 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10338 # lib.a static archive 10339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10340 for ld_flag in $LDFLAGS; do 10341 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10342 aix_use_runtimelinking=yes 10343 break 10344 fi 10345 done 10346 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10347 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10348 # so we don't have lib.a shared libs to link our executables. 10349 # We have to force runtime linking in this case. 10350 aix_use_runtimelinking=yes 10351 LDFLAGS="$LDFLAGS -Wl,-brtl" 10352 fi 10353 ;; 10354 esac 10355 10356 exp_sym_flag='-bexport' 10357 no_entry_flag='-bnoentry' 10358 fi 10359 10360 # When large executables or shared objects are built, AIX ld can 10361 # have problems creating the table of contents. If linking a library 10362 # or program results in "error TOC overflow" add -mminimal-toc to 10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10365 10366 archive_cmds='' 10367 hardcode_direct=yes 10368 hardcode_direct_absolute=yes 10369 hardcode_libdir_separator=':' 10370 link_all_deplibs=yes 10371 file_list_spec='$wl-f,' 10372 case $with_aix_soname,$aix_use_runtimelinking in 10373 aix,*) ;; # traditional, no import file 10374 svr4,* | *,yes) # use import file 10375 # The Import File defines what to hardcode. 10376 hardcode_direct=no 10377 hardcode_direct_absolute=no 10378 ;; 10379 esac 10380 10381 if test yes = "$GCC"; then 10382 case $host_os in aix4.[012]|aix4.[012].*) 10383 # We only want to do this on AIX 4.2 and lower, the check 10384 # below for broken collect2 doesn't work under 4.3+ 10385 collect2name=`$CC -print-prog-name=collect2` 10386 if test -f "$collect2name" && 10387 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10388 then 10389 # We have reworked collect2 10390 : 10391 else 10392 # We have old collect2 10393 hardcode_direct=unsupported 10394 # It fails to find uninstalled libraries when the uninstalled 10395 # path is not listed in the libpath. Setting hardcode_minus_L 10396 # to unsupported forces relinking 10397 hardcode_minus_L=yes 10398 hardcode_libdir_flag_spec='-L$libdir' 10399 hardcode_libdir_separator= 10400 fi 10401 ;; 10402 esac 10403 shared_flag='-shared' 10404 if test yes = "$aix_use_runtimelinking"; then 10405 shared_flag="$shared_flag "'$wl-G' 10406 fi 10407 # Need to ensure runtime linking is disabled for the traditional 10408 # shared library, or the linker may eventually find shared libraries 10409 # /with/ Import File - we do not want to mix them. 10410 shared_flag_aix='-shared' 10411 shared_flag_svr4='-shared $wl-G' 10412 else 10413 # not using gcc 10414 if test ia64 = "$host_cpu"; then 10415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10416 # chokes on -Wl,-G. The following line is correct: 10417 shared_flag='-G' 10418 else 10419 if test yes = "$aix_use_runtimelinking"; then 10420 shared_flag='$wl-G' 10421 else 10422 shared_flag='$wl-bM:SRE' 10423 fi 10424 shared_flag_aix='$wl-bM:SRE' 10425 shared_flag_svr4='$wl-G' 10426 fi 10427 fi 10428 10429 export_dynamic_flag_spec='$wl-bexpall' 10430 # It seems that -bexpall does not export symbols beginning with 10431 # underscore (_), so it is better to generate a list of symbols to export. 10432 always_export_symbols=yes 10433 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10434 # Warning - without using the other runtime loading flags (-brtl), 10435 # -berok will link without error, but may produce a broken library. 10436 allow_undefined_flag='-berok' 10437 # Determine the default libpath from the value encoded in an 10438 # empty executable. 10439 if test set = "${lt_cv_aix_libpath+set}"; then 10440 aix_libpath=$lt_cv_aix_libpath 10441else 10442 if test ${lt_cv_aix_libpath_+y} 10443then : 10444 printf %s "(cached) " >&6 10445else $as_nop 10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447/* end confdefs.h. */ 10448 10449int 10450main (void) 10451{ 10452 10453 ; 10454 return 0; 10455} 10456_ACEOF 10457if ac_fn_c_try_link "$LINENO" 10458then : 10459 10460 lt_aix_libpath_sed=' 10461 /Import File Strings/,/^$/ { 10462 /^0/ { 10463 s/^0 *\([^ ]*\) *$/\1/ 10464 p 10465 } 10466 }' 10467 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10468 # Check for a 64-bit object if we didn't find anything. 10469 if test -z "$lt_cv_aix_libpath_"; then 10470 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10471 fi 10472fi 10473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10474 conftest$ac_exeext conftest.$ac_ext 10475 if test -z "$lt_cv_aix_libpath_"; then 10476 lt_cv_aix_libpath_=/usr/lib:/lib 10477 fi 10478 10479fi 10480 10481 aix_libpath=$lt_cv_aix_libpath_ 10482fi 10483 10484 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10485 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 10486 else 10487 if test ia64 = "$host_cpu"; then 10488 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10489 allow_undefined_flag="-z nodefs" 10490 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" 10491 else 10492 # Determine the default libpath from the value encoded in an 10493 # empty executable. 10494 if test set = "${lt_cv_aix_libpath+set}"; then 10495 aix_libpath=$lt_cv_aix_libpath 10496else 10497 if test ${lt_cv_aix_libpath_+y} 10498then : 10499 printf %s "(cached) " >&6 10500else $as_nop 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503 10504int 10505main (void) 10506{ 10507 10508 ; 10509 return 0; 10510} 10511_ACEOF 10512if ac_fn_c_try_link "$LINENO" 10513then : 10514 10515 lt_aix_libpath_sed=' 10516 /Import File Strings/,/^$/ { 10517 /^0/ { 10518 s/^0 *\([^ ]*\) *$/\1/ 10519 p 10520 } 10521 }' 10522 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10523 # Check for a 64-bit object if we didn't find anything. 10524 if test -z "$lt_cv_aix_libpath_"; then 10525 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10526 fi 10527fi 10528rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10529 conftest$ac_exeext conftest.$ac_ext 10530 if test -z "$lt_cv_aix_libpath_"; then 10531 lt_cv_aix_libpath_=/usr/lib:/lib 10532 fi 10533 10534fi 10535 10536 aix_libpath=$lt_cv_aix_libpath_ 10537fi 10538 10539 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10540 # Warning - without using the other run time loading flags, 10541 # -berok will link without error, but may produce a broken library. 10542 no_undefined_flag=' $wl-bernotok' 10543 allow_undefined_flag=' $wl-berok' 10544 if test yes = "$with_gnu_ld"; then 10545 # We only use this code for GNU lds that support --whole-archive. 10546 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10547 else 10548 # Exported symbols can be pulled into shared objects from archives 10549 whole_archive_flag_spec='$convenience' 10550 fi 10551 archive_cmds_need_lc=yes 10552 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10553 # -brtl affects multiple linker settings, -berok does not and is overridden later 10554 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10555 if test svr4 != "$with_aix_soname"; then 10556 # This is similar to how AIX traditionally builds its shared libraries. 10557 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' 10558 fi 10559 if test aix != "$with_aix_soname"; then 10560 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' 10561 else 10562 # used by -dlpreopen to get the symbols 10563 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10564 fi 10565 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10566 fi 10567 fi 10568 ;; 10569 10570 amigaos*) 10571 case $host_cpu in 10572 powerpc) 10573 # see comment about AmigaOS4 .so support 10574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10575 archive_expsym_cmds='' 10576 ;; 10577 m68k) 10578 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)' 10579 hardcode_libdir_flag_spec='-L$libdir' 10580 hardcode_minus_L=yes 10581 ;; 10582 esac 10583 ;; 10584 10585 bsdi[45]*) 10586 export_dynamic_flag_spec=-rdynamic 10587 ;; 10588 10589 cygwin* | mingw* | pw32* | cegcc*) 10590 # When not using gcc, we currently assume that we are using 10591 # Microsoft Visual C++ or Intel C++ Compiler. 10592 # hardcode_libdir_flag_spec is actually meaningless, as there is 10593 # no search path for DLLs. 10594 case $cc_basename in 10595 cl* | icl*) 10596 # Native MSVC or ICC 10597 hardcode_libdir_flag_spec=' ' 10598 allow_undefined_flag=unsupported 10599 always_export_symbols=yes 10600 file_list_spec='@' 10601 # Tell ltmain to make .lib files, not .a files. 10602 libext=lib 10603 # Tell ltmain to make .dll files, not .so files. 10604 shrext_cmds=.dll 10605 # FIXME: Setting linknames here is a bad hack. 10606 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10608 cp "$export_symbols" "$output_objdir/$soname.def"; 10609 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10610 else 10611 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10612 fi~ 10613 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10614 linknames=' 10615 # The linker will not automatically build a static lib if we build a DLL. 10616 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10617 enable_shared_with_static_runtimes=yes 10618 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10620 # Don't use ranlib 10621 old_postinstall_cmds='chmod 644 $oldlib' 10622 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10623 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10624 case $lt_outputfile in 10625 *.exe|*.EXE) ;; 10626 *) 10627 lt_outputfile=$lt_outputfile.exe 10628 lt_tool_outputfile=$lt_tool_outputfile.exe 10629 ;; 10630 esac~ 10631 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10632 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10633 $RM "$lt_outputfile.manifest"; 10634 fi' 10635 ;; 10636 *) 10637 # Assume MSVC and ICC wrapper 10638 hardcode_libdir_flag_spec=' ' 10639 allow_undefined_flag=unsupported 10640 # Tell ltmain to make .lib files, not .a files. 10641 libext=lib 10642 # Tell ltmain to make .dll files, not .so files. 10643 shrext_cmds=.dll 10644 # FIXME: Setting linknames here is a bad hack. 10645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10646 # The linker will automatically build a .lib file if we build a DLL. 10647 old_archive_from_new_cmds='true' 10648 # FIXME: Should let the user specify the lib program. 10649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10650 enable_shared_with_static_runtimes=yes 10651 ;; 10652 esac 10653 ;; 10654 10655 darwin* | rhapsody*) 10656 10657 10658 archive_cmds_need_lc=no 10659 hardcode_direct=no 10660 hardcode_automatic=yes 10661 hardcode_shlibpath_var=unsupported 10662 if test yes = "$lt_cv_ld_force_load"; then 10663 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\"`' 10664 10665 else 10666 whole_archive_flag_spec='' 10667 fi 10668 link_all_deplibs=yes 10669 allow_undefined_flag=$_lt_dar_allow_undefined 10670 case $cc_basename in 10671 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10672 *) _lt_dar_can_shared=$GCC ;; 10673 esac 10674 if test yes = "$_lt_dar_can_shared"; then 10675 output_verbose_link_cmd=func_echo_all 10676 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10677 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10678 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" 10679 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" 10680 10681 else 10682 ld_shlibs=no 10683 fi 10684 10685 ;; 10686 10687 dgux*) 10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10689 hardcode_libdir_flag_spec='-L$libdir' 10690 hardcode_shlibpath_var=no 10691 ;; 10692 10693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10694 # support. Future versions do this automatically, but an explicit c++rt0.o 10695 # does not break anything, and helps significantly (at the cost of a little 10696 # extra space). 10697 freebsd2.2*) 10698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10699 hardcode_libdir_flag_spec='-R$libdir' 10700 hardcode_direct=yes 10701 hardcode_shlibpath_var=no 10702 ;; 10703 10704 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10705 freebsd2.*) 10706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10707 hardcode_direct=yes 10708 hardcode_minus_L=yes 10709 hardcode_shlibpath_var=no 10710 ;; 10711 10712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10713 freebsd* | dragonfly* | midnightbsd*) 10714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10715 hardcode_libdir_flag_spec='-R$libdir' 10716 hardcode_direct=yes 10717 hardcode_shlibpath_var=no 10718 ;; 10719 10720 hpux9*) 10721 if test yes = "$GCC"; then 10722 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' 10723 else 10724 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' 10725 fi 10726 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10727 hardcode_libdir_separator=: 10728 hardcode_direct=yes 10729 10730 # hardcode_minus_L: Not really in the search PATH, 10731 # but as the default location of the library. 10732 hardcode_minus_L=yes 10733 export_dynamic_flag_spec='$wl-E' 10734 ;; 10735 10736 hpux10*) 10737 if test yes,no = "$GCC,$with_gnu_ld"; then 10738 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10739 else 10740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10741 fi 10742 if test no = "$with_gnu_ld"; then 10743 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10744 hardcode_libdir_separator=: 10745 hardcode_direct=yes 10746 hardcode_direct_absolute=yes 10747 export_dynamic_flag_spec='$wl-E' 10748 # hardcode_minus_L: Not really in the search PATH, 10749 # but as the default location of the library. 10750 hardcode_minus_L=yes 10751 fi 10752 ;; 10753 10754 hpux11*) 10755 if test yes,no = "$GCC,$with_gnu_ld"; then 10756 case $host_cpu in 10757 hppa*64*) 10758 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10759 ;; 10760 ia64*) 10761 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10762 ;; 10763 *) 10764 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10765 ;; 10766 esac 10767 else 10768 case $host_cpu in 10769 hppa*64*) 10770 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 ;; 10772 ia64*) 10773 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10774 ;; 10775 *) 10776 10777 # Older versions of the 11.00 compiler do not understand -b yet 10778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10780printf %s "checking if $CC understands -b... " >&6; } 10781if test ${lt_cv_prog_compiler__b+y} 10782then : 10783 printf %s "(cached) " >&6 10784else $as_nop 10785 lt_cv_prog_compiler__b=no 10786 save_LDFLAGS=$LDFLAGS 10787 LDFLAGS="$LDFLAGS -b" 10788 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10790 # The linker can only warn and ignore the option if not recognized 10791 # So say no if there are warnings 10792 if test -s conftest.err; then 10793 # Append any errors to the config.log. 10794 cat conftest.err 1>&5 10795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10797 if diff conftest.exp conftest.er2 >/dev/null; then 10798 lt_cv_prog_compiler__b=yes 10799 fi 10800 else 10801 lt_cv_prog_compiler__b=yes 10802 fi 10803 fi 10804 $RM -r conftest* 10805 LDFLAGS=$save_LDFLAGS 10806 10807fi 10808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10809printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10810 10811if test yes = "$lt_cv_prog_compiler__b"; then 10812 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10813else 10814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10815fi 10816 10817 ;; 10818 esac 10819 fi 10820 if test no = "$with_gnu_ld"; then 10821 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10822 hardcode_libdir_separator=: 10823 10824 case $host_cpu in 10825 hppa*64*|ia64*) 10826 hardcode_direct=no 10827 hardcode_shlibpath_var=no 10828 ;; 10829 *) 10830 hardcode_direct=yes 10831 hardcode_direct_absolute=yes 10832 export_dynamic_flag_spec='$wl-E' 10833 10834 # hardcode_minus_L: Not really in the search PATH, 10835 # but as the default location of the library. 10836 hardcode_minus_L=yes 10837 ;; 10838 esac 10839 fi 10840 ;; 10841 10842 irix5* | irix6* | nonstopux*) 10843 if test yes = "$GCC"; then 10844 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' 10845 # Try to use the -exported_symbol ld option, if it does not 10846 # work, assume that -exports_file does not work either and 10847 # implicitly export all symbols. 10848 # This should be the same for all languages, so no per-tag cache variable. 10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10850printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10851if test ${lt_cv_irix_exported_symbol+y} 10852then : 10853 printf %s "(cached) " >&6 10854else $as_nop 10855 save_LDFLAGS=$LDFLAGS 10856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859int foo (void) { return 0; } 10860_ACEOF 10861if ac_fn_c_try_link "$LINENO" 10862then : 10863 lt_cv_irix_exported_symbol=yes 10864else $as_nop 10865 lt_cv_irix_exported_symbol=no 10866fi 10867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10868 conftest$ac_exeext conftest.$ac_ext 10869 LDFLAGS=$save_LDFLAGS 10870fi 10871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10872printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10873 if test yes = "$lt_cv_irix_exported_symbol"; then 10874 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' 10875 fi 10876 else 10877 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' 10878 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' 10879 fi 10880 archive_cmds_need_lc='no' 10881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10882 hardcode_libdir_separator=: 10883 inherit_rpath=yes 10884 link_all_deplibs=yes 10885 ;; 10886 10887 linux*) 10888 case $cc_basename in 10889 tcc*) 10890 # Fabrice Bellard et al's Tiny C Compiler 10891 ld_shlibs=yes 10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10893 ;; 10894 esac 10895 ;; 10896 10897 netbsd*) 10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10900 else 10901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10902 fi 10903 hardcode_libdir_flag_spec='-R$libdir' 10904 hardcode_direct=yes 10905 hardcode_shlibpath_var=no 10906 ;; 10907 10908 newsos6) 10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10910 hardcode_direct=yes 10911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10912 hardcode_libdir_separator=: 10913 hardcode_shlibpath_var=no 10914 ;; 10915 10916 *nto* | *qnx*) 10917 ;; 10918 10919 openbsd* | bitrig*) 10920 if test -f /usr/libexec/ld.so; then 10921 hardcode_direct=yes 10922 hardcode_shlibpath_var=no 10923 hardcode_direct_absolute=yes 10924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10927 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10928 export_dynamic_flag_spec='$wl-E' 10929 else 10930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10931 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10932 fi 10933 else 10934 ld_shlibs=no 10935 fi 10936 ;; 10937 10938 os2*) 10939 hardcode_libdir_flag_spec='-L$libdir' 10940 hardcode_minus_L=yes 10941 allow_undefined_flag=unsupported 10942 shrext_cmds=.dll 10943 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10946 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10947 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10948 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10949 emximp -o $lib $output_objdir/$libname.def' 10950 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10953 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10954 prefix_cmds="$SED"~ 10955 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10956 prefix_cmds="$prefix_cmds -e 1d"; 10957 fi~ 10958 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10959 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10961 emximp -o $lib $output_objdir/$libname.def' 10962 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10963 enable_shared_with_static_runtimes=yes 10964 file_list_spec='@' 10965 ;; 10966 10967 osf3*) 10968 if test yes = "$GCC"; then 10969 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10970 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' 10971 else 10972 allow_undefined_flag=' -expect_unresolved \*' 10973 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' 10974 fi 10975 archive_cmds_need_lc='no' 10976 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10977 hardcode_libdir_separator=: 10978 ;; 10979 10980 osf4* | osf5*) # as osf3* with the addition of -msym flag 10981 if test yes = "$GCC"; then 10982 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10983 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' 10984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10985 else 10986 allow_undefined_flag=' -expect_unresolved \*' 10987 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' 10988 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~ 10989 $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' 10990 10991 # Both c and cxx compiler support -rpath directly 10992 hardcode_libdir_flag_spec='-rpath $libdir' 10993 fi 10994 archive_cmds_need_lc='no' 10995 hardcode_libdir_separator=: 10996 ;; 10997 10998 solaris*) 10999 no_undefined_flag=' -z defs' 11000 if test yes = "$GCC"; then 11001 wlarc='$wl' 11002 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11004 $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' 11005 else 11006 case `$CC -V 2>&1` in 11007 *"Compilers 5.0"*) 11008 wlarc='' 11009 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11011 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11012 ;; 11013 *) 11014 wlarc='$wl' 11015 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11017 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11018 ;; 11019 esac 11020 fi 11021 hardcode_libdir_flag_spec='-R$libdir' 11022 hardcode_shlibpath_var=no 11023 case $host_os in 11024 solaris2.[0-5] | solaris2.[0-5].*) ;; 11025 *) 11026 # The compiler driver will combine and reorder linker options, 11027 # but understands '-z linker_flag'. GCC discards it without '$wl', 11028 # but is careful enough not to reorder. 11029 # Supported since Solaris 2.6 (maybe 2.5.1?) 11030 if test yes = "$GCC"; then 11031 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11032 else 11033 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11034 fi 11035 ;; 11036 esac 11037 link_all_deplibs=yes 11038 ;; 11039 11040 sunos4*) 11041 if test sequent = "$host_vendor"; then 11042 # Use $CC to link under sequent, because it throws in some extra .o 11043 # files that make .init and .fini sections work. 11044 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11045 else 11046 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11047 fi 11048 hardcode_libdir_flag_spec='-L$libdir' 11049 hardcode_direct=yes 11050 hardcode_minus_L=yes 11051 hardcode_shlibpath_var=no 11052 ;; 11053 11054 sysv4) 11055 case $host_vendor in 11056 sni) 11057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11058 hardcode_direct=yes # is this really true??? 11059 ;; 11060 siemens) 11061 ## LD is ld it makes a PLAMLIB 11062 ## CC just makes a GrossModule. 11063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11064 reload_cmds='$CC -r -o $output$reload_objs' 11065 hardcode_direct=no 11066 ;; 11067 motorola) 11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11069 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11070 ;; 11071 esac 11072 runpath_var='LD_RUN_PATH' 11073 hardcode_shlibpath_var=no 11074 ;; 11075 11076 sysv4.3*) 11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11078 hardcode_shlibpath_var=no 11079 export_dynamic_flag_spec='-Bexport' 11080 ;; 11081 11082 sysv4*MP*) 11083 if test -d /usr/nec; then 11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11085 hardcode_shlibpath_var=no 11086 runpath_var=LD_RUN_PATH 11087 hardcode_runpath_var=yes 11088 ld_shlibs=yes 11089 fi 11090 ;; 11091 11092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11093 no_undefined_flag='$wl-z,text' 11094 archive_cmds_need_lc=no 11095 hardcode_shlibpath_var=no 11096 runpath_var='LD_RUN_PATH' 11097 11098 if test yes = "$GCC"; then 11099 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11100 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11101 else 11102 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11103 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11104 fi 11105 ;; 11106 11107 sysv5* | sco3.2v5* | sco5v6*) 11108 # Note: We CANNOT use -z defs as we might desire, because we do not 11109 # link with -lc, and that would cause any symbols used from libc to 11110 # always be unresolved, which means just about no library would 11111 # ever link correctly. If we're not using GNU ld we use -z text 11112 # though, which does catch some bad symbols but isn't as heavy-handed 11113 # as -z defs. 11114 no_undefined_flag='$wl-z,text' 11115 allow_undefined_flag='$wl-z,nodefs' 11116 archive_cmds_need_lc=no 11117 hardcode_shlibpath_var=no 11118 hardcode_libdir_flag_spec='$wl-R,$libdir' 11119 hardcode_libdir_separator=':' 11120 link_all_deplibs=yes 11121 export_dynamic_flag_spec='$wl-Bexport' 11122 runpath_var='LD_RUN_PATH' 11123 11124 if test yes = "$GCC"; then 11125 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11126 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11127 else 11128 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11129 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11130 fi 11131 ;; 11132 11133 uts4*) 11134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11135 hardcode_libdir_flag_spec='-L$libdir' 11136 hardcode_shlibpath_var=no 11137 ;; 11138 11139 *) 11140 ld_shlibs=no 11141 ;; 11142 esac 11143 11144 if test sni = "$host_vendor"; then 11145 case $host in 11146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11147 export_dynamic_flag_spec='$wl-Blargedynsym' 11148 ;; 11149 esac 11150 fi 11151 fi 11152 11153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11154printf "%s\n" "$ld_shlibs" >&6; } 11155test no = "$ld_shlibs" && can_build_shared=no 11156 11157with_gnu_ld=$with_gnu_ld 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173# 11174# Do we need to explicitly link libc? 11175# 11176case "x$archive_cmds_need_lc" in 11177x|xyes) 11178 # Assume -lc should be added 11179 archive_cmds_need_lc=yes 11180 11181 if test yes,yes = "$GCC,$enable_shared"; then 11182 case $archive_cmds in 11183 *'~'*) 11184 # FIXME: we may have to deal with multi-command sequences. 11185 ;; 11186 '$CC '*) 11187 # Test whether the compiler implicitly links with -lc since on some 11188 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11189 # to ld, don't add -lc before -lgcc. 11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11191printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11192if test ${lt_cv_archive_cmds_need_lc+y} 11193then : 11194 printf %s "(cached) " >&6 11195else $as_nop 11196 $RM conftest* 11197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11198 11199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11200 (eval $ac_compile) 2>&5 11201 ac_status=$? 11202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11203 test $ac_status = 0; } 2>conftest.err; then 11204 soname=conftest 11205 lib=conftest 11206 libobjs=conftest.$ac_objext 11207 deplibs= 11208 wl=$lt_prog_compiler_wl 11209 pic_flag=$lt_prog_compiler_pic 11210 compiler_flags=-v 11211 linker_flags=-v 11212 verstring= 11213 output_objdir=. 11214 libname=conftest 11215 lt_save_allow_undefined_flag=$allow_undefined_flag 11216 allow_undefined_flag= 11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11218 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11219 ac_status=$? 11220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11221 test $ac_status = 0; } 11222 then 11223 lt_cv_archive_cmds_need_lc=no 11224 else 11225 lt_cv_archive_cmds_need_lc=yes 11226 fi 11227 allow_undefined_flag=$lt_save_allow_undefined_flag 11228 else 11229 cat conftest.err 1>&5 11230 fi 11231 $RM conftest* 11232 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$versuffix$shared_ext $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 .bundle || 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 # Handle Gentoo/FreeBSD as it was Linux 11775 case $host_vendor in 11776 gentoo) 11777 version_type=linux ;; 11778 *) 11779 version_type=freebsd-$objformat ;; 11780 esac 11781 11782 case $version_type in 11783 freebsd-elf*) 11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11785 soname_spec='$libname$release$shared_ext$major' 11786 need_version=no 11787 need_lib_prefix=no 11788 ;; 11789 freebsd-*) 11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11791 need_version=yes 11792 ;; 11793 linux) 11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11795 soname_spec='${libname}${release}${shared_ext}$major' 11796 need_lib_prefix=no 11797 need_version=no 11798 ;; 11799 esac 11800 shlibpath_var=LD_LIBRARY_PATH 11801 case $host_os in 11802 freebsd2.*) 11803 shlibpath_overrides_runpath=yes 11804 ;; 11805 freebsd3.[01]* | freebsdelf3.[01]*) 11806 shlibpath_overrides_runpath=yes 11807 hardcode_into_libs=yes 11808 ;; 11809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11811 shlibpath_overrides_runpath=no 11812 hardcode_into_libs=yes 11813 ;; 11814 *) # from 4.6 on, and DragonFly 11815 shlibpath_overrides_runpath=yes 11816 hardcode_into_libs=yes 11817 ;; 11818 esac 11819 ;; 11820 11821haiku*) 11822 version_type=linux # correct to gnu/linux during the next big refactor 11823 need_lib_prefix=no 11824 need_version=no 11825 dynamic_linker="$host_os runtime_loader" 11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11827 soname_spec='$libname$release$shared_ext$major' 11828 shlibpath_var=LIBRARY_PATH 11829 shlibpath_overrides_runpath=no 11830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11831 hardcode_into_libs=yes 11832 ;; 11833 11834hpux9* | hpux10* | hpux11*) 11835 # Give a soname corresponding to the major version so that dld.sl refuses to 11836 # link against other versions. 11837 version_type=sunos 11838 need_lib_prefix=no 11839 need_version=no 11840 case $host_cpu in 11841 ia64*) 11842 shrext_cmds='.so' 11843 hardcode_into_libs=yes 11844 dynamic_linker="$host_os dld.so" 11845 shlibpath_var=LD_LIBRARY_PATH 11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11848 soname_spec='$libname$release$shared_ext$major' 11849 if test 32 = "$HPUX_IA64_MODE"; then 11850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11851 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11852 else 11853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11854 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11855 fi 11856 ;; 11857 hppa*64*) 11858 shrext_cmds='.sl' 11859 hardcode_into_libs=yes 11860 dynamic_linker="$host_os dld.sl" 11861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11864 soname_spec='$libname$release$shared_ext$major' 11865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11867 ;; 11868 *) 11869 shrext_cmds='.sl' 11870 dynamic_linker="$host_os dld.sl" 11871 shlibpath_var=SHLIB_PATH 11872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11874 soname_spec='$libname$release$shared_ext$major' 11875 ;; 11876 esac 11877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11878 postinstall_cmds='chmod 555 $lib' 11879 # or fails outright, so override atomically: 11880 install_override_mode=555 11881 ;; 11882 11883interix[3-9]*) 11884 version_type=linux # correct to gnu/linux during the next big refactor 11885 need_lib_prefix=no 11886 need_version=no 11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11888 soname_spec='$libname$release$shared_ext$major' 11889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 shlibpath_overrides_runpath=no 11892 hardcode_into_libs=yes 11893 ;; 11894 11895irix5* | irix6* | nonstopux*) 11896 case $host_os in 11897 nonstopux*) version_type=nonstopux ;; 11898 *) 11899 if test yes = "$lt_cv_prog_gnu_ld"; then 11900 version_type=linux # correct to gnu/linux during the next big refactor 11901 else 11902 version_type=irix 11903 fi ;; 11904 esac 11905 need_lib_prefix=no 11906 need_version=no 11907 soname_spec='$libname$release$shared_ext$major' 11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11909 case $host_os in 11910 irix5* | nonstopux*) 11911 libsuff= shlibsuff= 11912 ;; 11913 *) 11914 case $LD in # libtool.m4 will add one of these switches to LD 11915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11916 libsuff= shlibsuff= libmagic=32-bit;; 11917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11918 libsuff=32 shlibsuff=N32 libmagic=N32;; 11919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11920 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11921 *) libsuff= shlibsuff= libmagic=never-match;; 11922 esac 11923 ;; 11924 esac 11925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11926 shlibpath_overrides_runpath=no 11927 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11928 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11929 hardcode_into_libs=yes 11930 ;; 11931 11932# No shared lib support for Linux oldld, aout, or coff. 11933linux*oldld* | linux*aout* | linux*coff*) 11934 dynamic_linker=no 11935 ;; 11936 11937linux*android*) 11938 version_type=none # Android doesn't support versioned libraries. 11939 need_lib_prefix=no 11940 need_version=no 11941 library_names_spec='$libname$release$shared_ext' 11942 soname_spec='$libname$release$shared_ext' 11943 finish_cmds= 11944 shlibpath_var=LD_LIBRARY_PATH 11945 shlibpath_overrides_runpath=yes 11946 11947 # This implies no fast_install, which is unacceptable. 11948 # Some rework will be needed to allow for fast_install 11949 # before this can be enabled. 11950 hardcode_into_libs=yes 11951 11952 dynamic_linker='Android linker' 11953 # Don't embed -rpath directories since the linker doesn't support them. 11954 hardcode_libdir_flag_spec='-L$libdir' 11955 ;; 11956 11957# This must be glibc/ELF. 11958linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11959 version_type=linux # correct to gnu/linux during the next big refactor 11960 need_lib_prefix=no 11961 need_version=no 11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11963 soname_spec='$libname$release$shared_ext$major' 11964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11965 shlibpath_var=LD_LIBRARY_PATH 11966 shlibpath_overrides_runpath=no 11967 11968 # Some binutils ld are patched to set DT_RUNPATH 11969 if test ${lt_cv_shlibpath_overrides_runpath+y} 11970then : 11971 printf %s "(cached) " >&6 11972else $as_nop 11973 lt_cv_shlibpath_overrides_runpath=no 11974 save_LDFLAGS=$LDFLAGS 11975 save_libdir=$libdir 11976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980 11981int 11982main (void) 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_link "$LINENO" 11990then : 11991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11992then : 11993 lt_cv_shlibpath_overrides_runpath=yes 11994fi 11995fi 11996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11997 conftest$ac_exeext conftest.$ac_ext 11998 LDFLAGS=$save_LDFLAGS 11999 libdir=$save_libdir 12000 12001fi 12002 12003 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12004 12005 # This implies no fast_install, which is unacceptable. 12006 # Some rework will be needed to allow for fast_install 12007 # before this can be enabled. 12008 hardcode_into_libs=yes 12009 12010 # Ideally, we could use ldconfig to report *all* directores which are 12011 # searched for libraries, however this is still not possible. Aside from not 12012 # being certain /sbin/ldconfig is available, command 12013 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12014 # even though it is searched at run-time. Try to do the best guess by 12015 # appending ld.so.conf contents (and includes) to the search path. 12016 if test -f /etc/ld.so.conf; then 12017 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' ' '` 12018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12019 fi 12020 12021 # We used to test for /lib/ld.so.1 and disable shared libraries on 12022 # powerpc, because MkLinux only supported shared libraries with the 12023 # GNU dynamic linker. Since this was broken with cross compilers, 12024 # most powerpc-linux boxes support dynamic linking these days and 12025 # people can always --disable-shared, the test was removed, and we 12026 # assume the GNU/Linux dynamic linker is in use. 12027 dynamic_linker='GNU/Linux ld.so' 12028 ;; 12029 12030netbsd*) 12031 version_type=sunos 12032 need_lib_prefix=no 12033 need_version=no 12034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12037 dynamic_linker='NetBSD (a.out) ld.so' 12038 else 12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12040 soname_spec='$libname$release$shared_ext$major' 12041 dynamic_linker='NetBSD ld.elf_so' 12042 fi 12043 shlibpath_var=LD_LIBRARY_PATH 12044 shlibpath_overrides_runpath=yes 12045 hardcode_into_libs=yes 12046 ;; 12047 12048newsos6) 12049 version_type=linux # correct to gnu/linux during the next big refactor 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 shlibpath_var=LD_LIBRARY_PATH 12052 shlibpath_overrides_runpath=yes 12053 ;; 12054 12055*nto* | *qnx*) 12056 version_type=qnx 12057 need_lib_prefix=no 12058 need_version=no 12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12060 soname_spec='$libname$release$shared_ext$major' 12061 shlibpath_var=LD_LIBRARY_PATH 12062 shlibpath_overrides_runpath=no 12063 hardcode_into_libs=yes 12064 dynamic_linker='ldqnx.so' 12065 ;; 12066 12067openbsd* | bitrig*) 12068 version_type=sunos 12069 sys_lib_dlsearch_path_spec=/usr/lib 12070 need_lib_prefix=no 12071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12072 need_version=no 12073 else 12074 need_version=yes 12075 fi 12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12078 shlibpath_var=LD_LIBRARY_PATH 12079 shlibpath_overrides_runpath=yes 12080 ;; 12081 12082os2*) 12083 libname_spec='$name' 12084 version_type=windows 12085 shrext_cmds=.dll 12086 need_version=no 12087 need_lib_prefix=no 12088 # OS/2 can only load a DLL with a base name of 8 characters or less. 12089 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12090 v=$($ECHO $release$versuffix | tr -d .-); 12091 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12092 $ECHO $n$v`$shared_ext' 12093 library_names_spec='${libname}_dll.$libext' 12094 dynamic_linker='OS/2 ld.exe' 12095 shlibpath_var=BEGINLIBPATH 12096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12098 postinstall_cmds='base_file=`basename \$file`~ 12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12100 dldir=$destdir/`dirname \$dlpath`~ 12101 test -d \$dldir || mkdir -p \$dldir~ 12102 $install_prog $dir/$dlname \$dldir/$dlname~ 12103 chmod a+x \$dldir/$dlname~ 12104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12106 fi' 12107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12108 dlpath=$dir/\$dldll~ 12109 $RM \$dlpath' 12110 ;; 12111 12112osf3* | osf4* | osf5*) 12113 version_type=osf 12114 need_lib_prefix=no 12115 need_version=no 12116 soname_spec='$libname$release$shared_ext$major' 12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12118 shlibpath_var=LD_LIBRARY_PATH 12119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12121 ;; 12122 12123rdos*) 12124 dynamic_linker=no 12125 ;; 12126 12127solaris*) 12128 version_type=linux # correct to gnu/linux during the next big refactor 12129 need_lib_prefix=no 12130 need_version=no 12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12132 soname_spec='$libname$release$shared_ext$major' 12133 shlibpath_var=LD_LIBRARY_PATH 12134 shlibpath_overrides_runpath=yes 12135 hardcode_into_libs=yes 12136 # ldd complains unless libraries are executable 12137 postinstall_cmds='chmod +x $lib' 12138 ;; 12139 12140sunos4*) 12141 version_type=sunos 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 shlibpath_overrides_runpath=yes 12146 if test yes = "$with_gnu_ld"; then 12147 need_lib_prefix=no 12148 fi 12149 need_version=yes 12150 ;; 12151 12152sysv4 | sysv4.3*) 12153 version_type=linux # correct to gnu/linux during the next big refactor 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 soname_spec='$libname$release$shared_ext$major' 12156 shlibpath_var=LD_LIBRARY_PATH 12157 case $host_vendor in 12158 sni) 12159 shlibpath_overrides_runpath=no 12160 need_lib_prefix=no 12161 runpath_var=LD_RUN_PATH 12162 ;; 12163 siemens) 12164 need_lib_prefix=no 12165 ;; 12166 motorola) 12167 need_lib_prefix=no 12168 need_version=no 12169 shlibpath_overrides_runpath=no 12170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12171 ;; 12172 esac 12173 ;; 12174 12175sysv4*MP*) 12176 if test -d /usr/nec; then 12177 version_type=linux # correct to gnu/linux during the next big refactor 12178 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12179 soname_spec='$libname$shared_ext.$major' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 fi 12182 ;; 12183 12184sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12185 version_type=sco 12186 need_lib_prefix=no 12187 need_version=no 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12189 soname_spec='$libname$release$shared_ext$major' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 shlibpath_overrides_runpath=yes 12192 hardcode_into_libs=yes 12193 if test yes = "$with_gnu_ld"; then 12194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12195 else 12196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12197 case $host_os in 12198 sco3.2v5*) 12199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12200 ;; 12201 esac 12202 fi 12203 sys_lib_dlsearch_path_spec='/usr/lib' 12204 ;; 12205 12206tpf*) 12207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12208 version_type=linux # correct to gnu/linux during the next big refactor 12209 need_lib_prefix=no 12210 need_version=no 12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12212 shlibpath_var=LD_LIBRARY_PATH 12213 shlibpath_overrides_runpath=no 12214 hardcode_into_libs=yes 12215 ;; 12216 12217uts4*) 12218 version_type=linux # correct to gnu/linux during the next big refactor 12219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12220 soname_spec='$libname$release$shared_ext$major' 12221 shlibpath_var=LD_LIBRARY_PATH 12222 ;; 12223 12224*) 12225 dynamic_linker=no 12226 ;; 12227esac 12228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12229printf "%s\n" "$dynamic_linker" >&6; } 12230test no = "$dynamic_linker" && can_build_shared=no 12231 12232variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12233if test yes = "$GCC"; then 12234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12235fi 12236 12237if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12238 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12239fi 12240 12241if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12242 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12243fi 12244 12245# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12246configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12247 12248# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12249func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12250 12251# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12252configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12351printf %s "checking how to hardcode library paths into programs... " >&6; } 12352hardcode_action= 12353if test -n "$hardcode_libdir_flag_spec" || 12354 test -n "$runpath_var" || 12355 test yes = "$hardcode_automatic"; then 12356 12357 # We can hardcode non-existent directories. 12358 if test no != "$hardcode_direct" && 12359 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12360 # have to relink, otherwise we might link with an installed library 12361 # when we should be linking with a yet-to-be-installed one 12362 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12363 test no != "$hardcode_minus_L"; then 12364 # Linking always hardcodes the temporary library directory. 12365 hardcode_action=relink 12366 else 12367 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12368 hardcode_action=immediate 12369 fi 12370else 12371 # We cannot hardcode anything, or else we can only hardcode existing 12372 # directories. 12373 hardcode_action=unsupported 12374fi 12375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12376printf "%s\n" "$hardcode_action" >&6; } 12377 12378if test relink = "$hardcode_action" || 12379 test yes = "$inherit_rpath"; then 12380 # Fast installation is not supported 12381 enable_fast_install=no 12382elif test yes = "$shlibpath_overrides_runpath" || 12383 test no = "$enable_shared"; then 12384 # Fast installation is not necessary 12385 enable_fast_install=needless 12386fi 12387 12388 12389 12390 12391 12392 12393 if test yes != "$enable_dlopen"; then 12394 enable_dlopen=unknown 12395 enable_dlopen_self=unknown 12396 enable_dlopen_self_static=unknown 12397else 12398 lt_cv_dlopen=no 12399 lt_cv_dlopen_libs= 12400 12401 case $host_os in 12402 beos*) 12403 lt_cv_dlopen=load_add_on 12404 lt_cv_dlopen_libs= 12405 lt_cv_dlopen_self=yes 12406 ;; 12407 12408 mingw* | pw32* | cegcc*) 12409 lt_cv_dlopen=LoadLibrary 12410 lt_cv_dlopen_libs= 12411 ;; 12412 12413 cygwin*) 12414 lt_cv_dlopen=dlopen 12415 lt_cv_dlopen_libs= 12416 ;; 12417 12418 darwin*) 12419 # if libdl is installed we need to link against it 12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12421printf %s "checking for dlopen in -ldl... " >&6; } 12422if test ${ac_cv_lib_dl_dlopen+y} 12423then : 12424 printf %s "(cached) " >&6 12425else $as_nop 12426 ac_check_lib_save_LIBS=$LIBS 12427LIBS="-ldl $LIBS" 12428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429/* end confdefs.h. */ 12430 12431/* Override any GCC internal prototype to avoid an error. 12432 Use char because int might match the return type of a GCC 12433 builtin and then its argument prototype would still apply. 12434 The 'extern "C"' is for builds by C++ compilers; 12435 although this is not generally supported in C code supporting it here 12436 has little cost and some practical benefit (sr 110532). */ 12437#ifdef __cplusplus 12438extern "C" 12439#endif 12440char dlopen (void); 12441int 12442main (void) 12443{ 12444return dlopen (); 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449if ac_fn_c_try_link "$LINENO" 12450then : 12451 ac_cv_lib_dl_dlopen=yes 12452else $as_nop 12453 ac_cv_lib_dl_dlopen=no 12454fi 12455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12456 conftest$ac_exeext conftest.$ac_ext 12457LIBS=$ac_check_lib_save_LIBS 12458fi 12459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12460printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12461if test "x$ac_cv_lib_dl_dlopen" = xyes 12462then : 12463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12464else $as_nop 12465 12466 lt_cv_dlopen=dyld 12467 lt_cv_dlopen_libs= 12468 lt_cv_dlopen_self=yes 12469 12470fi 12471 12472 ;; 12473 12474 tpf*) 12475 # Don't try to run any link tests for TPF. We know it's impossible 12476 # because TPF is a cross-compiler, and we know how we open DSOs. 12477 lt_cv_dlopen=dlopen 12478 lt_cv_dlopen_libs= 12479 lt_cv_dlopen_self=no 12480 ;; 12481 12482 *) 12483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12484if test "x$ac_cv_func_shl_load" = xyes 12485then : 12486 lt_cv_dlopen=shl_load 12487else $as_nop 12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12489printf %s "checking for shl_load in -ldld... " >&6; } 12490if test ${ac_cv_lib_dld_shl_load+y} 12491then : 12492 printf %s "(cached) " >&6 12493else $as_nop 12494 ac_check_lib_save_LIBS=$LIBS 12495LIBS="-ldld $LIBS" 12496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498 12499/* Override any GCC internal prototype to avoid an error. 12500 Use char because int might match the return type of a GCC 12501 builtin and then its argument prototype would still apply. 12502 The 'extern "C"' is for builds by C++ compilers; 12503 although this is not generally supported in C code supporting it here 12504 has little cost and some practical benefit (sr 110532). */ 12505#ifdef __cplusplus 12506extern "C" 12507#endif 12508char shl_load (void); 12509int 12510main (void) 12511{ 12512return shl_load (); 12513 ; 12514 return 0; 12515} 12516_ACEOF 12517if ac_fn_c_try_link "$LINENO" 12518then : 12519 ac_cv_lib_dld_shl_load=yes 12520else $as_nop 12521 ac_cv_lib_dld_shl_load=no 12522fi 12523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12524 conftest$ac_exeext conftest.$ac_ext 12525LIBS=$ac_check_lib_save_LIBS 12526fi 12527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12528printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12529if test "x$ac_cv_lib_dld_shl_load" = xyes 12530then : 12531 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12532else $as_nop 12533 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12534if test "x$ac_cv_func_dlopen" = xyes 12535then : 12536 lt_cv_dlopen=dlopen 12537else $as_nop 12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12539printf %s "checking for dlopen in -ldl... " >&6; } 12540if test ${ac_cv_lib_dl_dlopen+y} 12541then : 12542 printf %s "(cached) " >&6 12543else $as_nop 12544 ac_check_lib_save_LIBS=$LIBS 12545LIBS="-ldl $LIBS" 12546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12547/* end confdefs.h. */ 12548 12549/* Override any GCC internal prototype to avoid an error. 12550 Use char because int might match the return type of a GCC 12551 builtin and then its argument prototype would still apply. 12552 The 'extern "C"' is for builds by C++ compilers; 12553 although this is not generally supported in C code supporting it here 12554 has little cost and some practical benefit (sr 110532). */ 12555#ifdef __cplusplus 12556extern "C" 12557#endif 12558char dlopen (void); 12559int 12560main (void) 12561{ 12562return dlopen (); 12563 ; 12564 return 0; 12565} 12566_ACEOF 12567if ac_fn_c_try_link "$LINENO" 12568then : 12569 ac_cv_lib_dl_dlopen=yes 12570else $as_nop 12571 ac_cv_lib_dl_dlopen=no 12572fi 12573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12574 conftest$ac_exeext conftest.$ac_ext 12575LIBS=$ac_check_lib_save_LIBS 12576fi 12577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12578printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12579if test "x$ac_cv_lib_dl_dlopen" = xyes 12580then : 12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12582else $as_nop 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12584printf %s "checking for dlopen in -lsvld... " >&6; } 12585if test ${ac_cv_lib_svld_dlopen+y} 12586then : 12587 printf %s "(cached) " >&6 12588else $as_nop 12589 ac_check_lib_save_LIBS=$LIBS 12590LIBS="-lsvld $LIBS" 12591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593 12594/* Override any GCC internal prototype to avoid an error. 12595 Use char because int might match the return type of a GCC 12596 builtin and then its argument prototype would still apply. 12597 The 'extern "C"' is for builds by C++ compilers; 12598 although this is not generally supported in C code supporting it here 12599 has little cost and some practical benefit (sr 110532). */ 12600#ifdef __cplusplus 12601extern "C" 12602#endif 12603char dlopen (void); 12604int 12605main (void) 12606{ 12607return dlopen (); 12608 ; 12609 return 0; 12610} 12611_ACEOF 12612if ac_fn_c_try_link "$LINENO" 12613then : 12614 ac_cv_lib_svld_dlopen=yes 12615else $as_nop 12616 ac_cv_lib_svld_dlopen=no 12617fi 12618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12619 conftest$ac_exeext conftest.$ac_ext 12620LIBS=$ac_check_lib_save_LIBS 12621fi 12622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12623printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12624if test "x$ac_cv_lib_svld_dlopen" = xyes 12625then : 12626 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12627else $as_nop 12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12629printf %s "checking for dld_link in -ldld... " >&6; } 12630if test ${ac_cv_lib_dld_dld_link+y} 12631then : 12632 printf %s "(cached) " >&6 12633else $as_nop 12634 ac_check_lib_save_LIBS=$LIBS 12635LIBS="-ldld $LIBS" 12636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12637/* end confdefs.h. */ 12638 12639/* Override any GCC internal prototype to avoid an error. 12640 Use char because int might match the return type of a GCC 12641 builtin and then its argument prototype would still apply. 12642 The 'extern "C"' is for builds by C++ compilers; 12643 although this is not generally supported in C code supporting it here 12644 has little cost and some practical benefit (sr 110532). */ 12645#ifdef __cplusplus 12646extern "C" 12647#endif 12648char dld_link (void); 12649int 12650main (void) 12651{ 12652return dld_link (); 12653 ; 12654 return 0; 12655} 12656_ACEOF 12657if ac_fn_c_try_link "$LINENO" 12658then : 12659 ac_cv_lib_dld_dld_link=yes 12660else $as_nop 12661 ac_cv_lib_dld_dld_link=no 12662fi 12663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12664 conftest$ac_exeext conftest.$ac_ext 12665LIBS=$ac_check_lib_save_LIBS 12666fi 12667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12668printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12669if test "x$ac_cv_lib_dld_dld_link" = xyes 12670then : 12671 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12672fi 12673 12674 12675fi 12676 12677 12678fi 12679 12680 12681fi 12682 12683 12684fi 12685 12686 12687fi 12688 12689 ;; 12690 esac 12691 12692 if test no = "$lt_cv_dlopen"; then 12693 enable_dlopen=no 12694 else 12695 enable_dlopen=yes 12696 fi 12697 12698 case $lt_cv_dlopen in 12699 dlopen) 12700 save_CPPFLAGS=$CPPFLAGS 12701 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12702 12703 save_LDFLAGS=$LDFLAGS 12704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12705 12706 save_LIBS=$LIBS 12707 LIBS="$lt_cv_dlopen_libs $LIBS" 12708 12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12710printf %s "checking whether a program can dlopen itself... " >&6; } 12711if test ${lt_cv_dlopen_self+y} 12712then : 12713 printf %s "(cached) " >&6 12714else $as_nop 12715 if test yes = "$cross_compiling"; then : 12716 lt_cv_dlopen_self=cross 12717else 12718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12719 lt_status=$lt_dlunknown 12720 cat > conftest.$ac_ext <<_LT_EOF 12721#line $LINENO "configure" 12722#include "confdefs.h" 12723 12724#if HAVE_DLFCN_H 12725#include <dlfcn.h> 12726#endif 12727 12728#include <stdio.h> 12729 12730#ifdef RTLD_GLOBAL 12731# define LT_DLGLOBAL RTLD_GLOBAL 12732#else 12733# ifdef DL_GLOBAL 12734# define LT_DLGLOBAL DL_GLOBAL 12735# else 12736# define LT_DLGLOBAL 0 12737# endif 12738#endif 12739 12740/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12741 find out it does not work in some platform. */ 12742#ifndef LT_DLLAZY_OR_NOW 12743# ifdef RTLD_LAZY 12744# define LT_DLLAZY_OR_NOW RTLD_LAZY 12745# else 12746# ifdef DL_LAZY 12747# define LT_DLLAZY_OR_NOW DL_LAZY 12748# else 12749# ifdef RTLD_NOW 12750# define LT_DLLAZY_OR_NOW RTLD_NOW 12751# else 12752# ifdef DL_NOW 12753# define LT_DLLAZY_OR_NOW DL_NOW 12754# else 12755# define LT_DLLAZY_OR_NOW 0 12756# endif 12757# endif 12758# endif 12759# endif 12760#endif 12761 12762/* When -fvisibility=hidden is used, assume the code has been annotated 12763 correspondingly for the symbols needed. */ 12764#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12765int fnord () __attribute__((visibility("default"))); 12766#endif 12767 12768int fnord () { return 42; } 12769int main () 12770{ 12771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12772 int status = $lt_dlunknown; 12773 12774 if (self) 12775 { 12776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12777 else 12778 { 12779 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12780 else puts (dlerror ()); 12781 } 12782 /* dlclose (self); */ 12783 } 12784 else 12785 puts (dlerror ()); 12786 12787 return status; 12788} 12789_LT_EOF 12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12791 (eval $ac_link) 2>&5 12792 ac_status=$? 12793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12794 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12795 (./conftest; exit; ) >&5 2>/dev/null 12796 lt_status=$? 12797 case x$lt_status in 12798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12800 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12801 esac 12802 else : 12803 # compilation failed 12804 lt_cv_dlopen_self=no 12805 fi 12806fi 12807rm -fr conftest* 12808 12809 12810fi 12811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12812printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12813 12814 if test yes = "$lt_cv_dlopen_self"; then 12815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12817printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12818if test ${lt_cv_dlopen_self_static+y} 12819then : 12820 printf %s "(cached) " >&6 12821else $as_nop 12822 if test yes = "$cross_compiling"; then : 12823 lt_cv_dlopen_self_static=cross 12824else 12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12826 lt_status=$lt_dlunknown 12827 cat > conftest.$ac_ext <<_LT_EOF 12828#line $LINENO "configure" 12829#include "confdefs.h" 12830 12831#if HAVE_DLFCN_H 12832#include <dlfcn.h> 12833#endif 12834 12835#include <stdio.h> 12836 12837#ifdef RTLD_GLOBAL 12838# define LT_DLGLOBAL RTLD_GLOBAL 12839#else 12840# ifdef DL_GLOBAL 12841# define LT_DLGLOBAL DL_GLOBAL 12842# else 12843# define LT_DLGLOBAL 0 12844# endif 12845#endif 12846 12847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12848 find out it does not work in some platform. */ 12849#ifndef LT_DLLAZY_OR_NOW 12850# ifdef RTLD_LAZY 12851# define LT_DLLAZY_OR_NOW RTLD_LAZY 12852# else 12853# ifdef DL_LAZY 12854# define LT_DLLAZY_OR_NOW DL_LAZY 12855# else 12856# ifdef RTLD_NOW 12857# define LT_DLLAZY_OR_NOW RTLD_NOW 12858# else 12859# ifdef DL_NOW 12860# define LT_DLLAZY_OR_NOW DL_NOW 12861# else 12862# define LT_DLLAZY_OR_NOW 0 12863# endif 12864# endif 12865# endif 12866# endif 12867#endif 12868 12869/* When -fvisibility=hidden is used, assume the code has been annotated 12870 correspondingly for the symbols needed. */ 12871#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12872int fnord () __attribute__((visibility("default"))); 12873#endif 12874 12875int fnord () { return 42; } 12876int main () 12877{ 12878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12879 int status = $lt_dlunknown; 12880 12881 if (self) 12882 { 12883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12884 else 12885 { 12886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12887 else puts (dlerror ()); 12888 } 12889 /* dlclose (self); */ 12890 } 12891 else 12892 puts (dlerror ()); 12893 12894 return status; 12895} 12896_LT_EOF 12897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12898 (eval $ac_link) 2>&5 12899 ac_status=$? 12900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12901 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12902 (./conftest; exit; ) >&5 2>/dev/null 12903 lt_status=$? 12904 case x$lt_status in 12905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12907 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12908 esac 12909 else : 12910 # compilation failed 12911 lt_cv_dlopen_self_static=no 12912 fi 12913fi 12914rm -fr conftest* 12915 12916 12917fi 12918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12919printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12920 fi 12921 12922 CPPFLAGS=$save_CPPFLAGS 12923 LDFLAGS=$save_LDFLAGS 12924 LIBS=$save_LIBS 12925 ;; 12926 esac 12927 12928 case $lt_cv_dlopen_self in 12929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12930 *) enable_dlopen_self=unknown ;; 12931 esac 12932 12933 case $lt_cv_dlopen_self_static in 12934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12935 *) enable_dlopen_self_static=unknown ;; 12936 esac 12937fi 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955striplib= 12956old_striplib= 12957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12958printf %s "checking whether stripping libraries is possible... " >&6; } 12959if test -z "$STRIP"; then 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12961printf "%s\n" "no" >&6; } 12962else 12963 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12964 old_striplib="$STRIP --strip-debug" 12965 striplib="$STRIP --strip-unneeded" 12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12967printf "%s\n" "yes" >&6; } 12968 else 12969 case $host_os in 12970 darwin*) 12971 # FIXME - insert some real tests, host_os isn't really good enough 12972 striplib="$STRIP -x" 12973 old_striplib="$STRIP -S" 12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12975printf "%s\n" "yes" >&6; } 12976 ;; 12977 freebsd*) 12978 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12979 old_striplib="$STRIP --strip-debug" 12980 striplib="$STRIP --strip-unneeded" 12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12982printf "%s\n" "yes" >&6; } 12983 else 12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12985printf "%s\n" "no" >&6; } 12986 fi 12987 ;; 12988 *) 12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12990printf "%s\n" "no" >&6; } 12991 ;; 12992 esac 12993 fi 12994fi 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 # Report what library types will actually be built 13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13009printf %s "checking if libtool supports shared libraries... " >&6; } 13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13011printf "%s\n" "$can_build_shared" >&6; } 13012 13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13014printf %s "checking whether to build shared libraries... " >&6; } 13015 test no = "$can_build_shared" && enable_shared=no 13016 13017 # On AIX, shared libraries and static libraries use the same namespace, and 13018 # are all built from PIC. 13019 case $host_os in 13020 aix3*) 13021 test yes = "$enable_shared" && enable_static=no 13022 if test -n "$RANLIB"; then 13023 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13024 postinstall_cmds='$RANLIB $lib' 13025 fi 13026 ;; 13027 13028 aix[4-9]*) 13029 if test ia64 != "$host_cpu"; then 13030 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13031 yes,aix,yes) ;; # shared object as lib.so file only 13032 yes,svr4,*) ;; # shared object as lib.so archive member only 13033 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13034 esac 13035 fi 13036 ;; 13037 esac 13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13039printf "%s\n" "$enable_shared" >&6; } 13040 13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13042printf %s "checking whether to build static libraries... " >&6; } 13043 # Make sure either enable_shared or enable_static is yes. 13044 test yes = "$enable_shared" || enable_static=yes 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13046printf "%s\n" "$enable_static" >&6; } 13047 13048 13049 13050 13051fi 13052ac_ext=c 13053ac_cpp='$CPP $CPPFLAGS' 13054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13056ac_compiler_gnu=$ac_cv_c_compiler_gnu 13057 13058CC=$lt_save_CC 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 ac_config_commands="$ac_config_commands libtool" 13075 13076 13077 13078 13079# Only expand once: 13080 13081 13082 13083# Require xorg-macros minimum of 1.12 for DocBook external references 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13097printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13098if test ${ac_cv_c_undeclared_builtin_options+y} 13099then : 13100 printf %s "(cached) " >&6 13101else $as_nop 13102 ac_save_CFLAGS=$CFLAGS 13103 ac_cv_c_undeclared_builtin_options='cannot detect' 13104 for ac_arg in '' -fno-builtin; do 13105 CFLAGS="$ac_save_CFLAGS $ac_arg" 13106 # This test program should *not* compile successfully. 13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13108/* end confdefs.h. */ 13109 13110int 13111main (void) 13112{ 13113(void) strchr; 13114 ; 13115 return 0; 13116} 13117_ACEOF 13118if ac_fn_c_try_compile "$LINENO" 13119then : 13120 13121else $as_nop 13122 # This test program should compile successfully. 13123 # No library function is consistently available on 13124 # freestanding implementations, so test against a dummy 13125 # declaration. Include always-available headers on the 13126 # off chance that they somehow elicit warnings. 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129#include <float.h> 13130#include <limits.h> 13131#include <stdarg.h> 13132#include <stddef.h> 13133extern void ac_decl (int, char *); 13134 13135int 13136main (void) 13137{ 13138(void) ac_decl (0, (char *) 0); 13139 (void) ac_decl; 13140 13141 ; 13142 return 0; 13143} 13144_ACEOF 13145if ac_fn_c_try_compile "$LINENO" 13146then : 13147 if test x"$ac_arg" = x 13148then : 13149 ac_cv_c_undeclared_builtin_options='none needed' 13150else $as_nop 13151 ac_cv_c_undeclared_builtin_options=$ac_arg 13152fi 13153 break 13154fi 13155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13156fi 13157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13158 done 13159 CFLAGS=$ac_save_CFLAGS 13160 13161fi 13162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13163printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13164 case $ac_cv_c_undeclared_builtin_options in #( 13165 'cannot detect') : 13166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13168as_fn_error $? "cannot make $CC report undeclared builtins 13169See \`config.log' for more details" "$LINENO" 5; } ;; #( 13170 'none needed') : 13171 ac_c_undeclared_builtin_options='' ;; #( 13172 *) : 13173 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13174esac 13175 13176 13177 13178 13179 13180ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13181if test "x$ac_cv_have_decl___clang__" = xyes 13182then : 13183 CLANGCC="yes" 13184else $as_nop 13185 CLANGCC="no" 13186fi 13187ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13188if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13189then : 13190 INTELCC="yes" 13191else $as_nop 13192 INTELCC="no" 13193fi 13194ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13195if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13196then : 13197 SUNCC="yes" 13198else $as_nop 13199 SUNCC="no" 13200fi 13201 13202 13203 13204 13205 13206 13207 13208 13209if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13210 if test -n "$ac_tool_prefix"; then 13211 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13212set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13214printf %s "checking for $ac_word... " >&6; } 13215if test ${ac_cv_path_PKG_CONFIG+y} 13216then : 13217 printf %s "(cached) " >&6 13218else $as_nop 13219 case $PKG_CONFIG in 13220 [\\/]* | ?:[\\/]*) 13221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13222 ;; 13223 *) 13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13225for as_dir in $PATH 13226do 13227 IFS=$as_save_IFS 13228 case $as_dir in #((( 13229 '') as_dir=./ ;; 13230 */) ;; 13231 *) as_dir=$as_dir/ ;; 13232 esac 13233 for ac_exec_ext in '' $ac_executable_extensions; do 13234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13235 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13237 break 2 13238 fi 13239done 13240 done 13241IFS=$as_save_IFS 13242 13243 ;; 13244esac 13245fi 13246PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13247if test -n "$PKG_CONFIG"; then 13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13249printf "%s\n" "$PKG_CONFIG" >&6; } 13250else 13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13252printf "%s\n" "no" >&6; } 13253fi 13254 13255 13256fi 13257if test -z "$ac_cv_path_PKG_CONFIG"; then 13258 ac_pt_PKG_CONFIG=$PKG_CONFIG 13259 # Extract the first word of "pkg-config", so it can be a program name with args. 13260set dummy pkg-config; ac_word=$2 13261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13262printf %s "checking for $ac_word... " >&6; } 13263if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13264then : 13265 printf %s "(cached) " >&6 13266else $as_nop 13267 case $ac_pt_PKG_CONFIG in 13268 [\\/]* | ?:[\\/]*) 13269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13270 ;; 13271 *) 13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13273for as_dir in $PATH 13274do 13275 IFS=$as_save_IFS 13276 case $as_dir in #((( 13277 '') as_dir=./ ;; 13278 */) ;; 13279 *) as_dir=$as_dir/ ;; 13280 esac 13281 for ac_exec_ext in '' $ac_executable_extensions; do 13282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13283 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13285 break 2 13286 fi 13287done 13288 done 13289IFS=$as_save_IFS 13290 13291 ;; 13292esac 13293fi 13294ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13295if test -n "$ac_pt_PKG_CONFIG"; then 13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13297printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13298else 13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13300printf "%s\n" "no" >&6; } 13301fi 13302 13303 if test "x$ac_pt_PKG_CONFIG" = x; then 13304 PKG_CONFIG="" 13305 else 13306 case $cross_compiling:$ac_tool_warned in 13307yes:) 13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13310ac_tool_warned=yes ;; 13311esac 13312 PKG_CONFIG=$ac_pt_PKG_CONFIG 13313 fi 13314else 13315 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13316fi 13317 13318fi 13319if test -n "$PKG_CONFIG"; then 13320 _pkg_min_version=0.9.0 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13322printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13323 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13325printf "%s\n" "yes" >&6; } 13326 else 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13328printf "%s\n" "no" >&6; } 13329 PKG_CONFIG="" 13330 fi 13331fi 13332 13333 13334 13335 13336 13337# Check whether --enable-selective-werror was given. 13338if test ${enable_selective_werror+y} 13339then : 13340 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13341else $as_nop 13342 SELECTIVE_WERROR=yes 13343fi 13344 13345 13346 13347 13348 13349# -v is too short to test reliably with XORG_TESTSET_CFLAG 13350if test "x$SUNCC" = "xyes"; then 13351 BASE_CFLAGS="-v" 13352else 13353 BASE_CFLAGS="" 13354fi 13355 13356# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370xorg_testset_save_CFLAGS="$CFLAGS" 13371 13372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13376if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13377then : 13378 printf %s "(cached) " >&6 13379else $as_nop 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382int i; 13383_ACEOF 13384if ac_fn_c_try_compile "$LINENO" 13385then : 13386 xorg_cv_cc_flag_unknown_warning_option=yes 13387else $as_nop 13388 xorg_cv_cc_flag_unknown_warning_option=no 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13391fi 13392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13395 CFLAGS="$xorg_testset_save_CFLAGS" 13396fi 13397 13398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13401 fi 13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13406then : 13407 printf %s "(cached) " >&6 13408else $as_nop 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411int i; 13412_ACEOF 13413if ac_fn_c_try_compile "$LINENO" 13414then : 13415 xorg_cv_cc_flag_unused_command_line_argument=yes 13416else $as_nop 13417 xorg_cv_cc_flag_unused_command_line_argument=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13420fi 13421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427found="no" 13428 13429 if test $found = "no" ; then 13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13432 fi 13433 13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13436 fi 13437 13438 CFLAGS="$CFLAGS -Wall" 13439 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13441printf %s "checking if $CC supports -Wall... " >&6; } 13442 cacheid=xorg_cv_cc_flag__Wall 13443 if eval test \${$cacheid+y} 13444then : 13445 printf %s "(cached) " >&6 13446else $as_nop 13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13448/* end confdefs.h. */ 13449int i; 13450int 13451main (void) 13452{ 13453 13454 ; 13455 return 0; 13456} 13457_ACEOF 13458if ac_fn_c_try_link "$LINENO" 13459then : 13460 eval $cacheid=yes 13461else $as_nop 13462 eval $cacheid=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13465 conftest$ac_exeext conftest.$ac_ext 13466fi 13467 13468 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470 13471 eval supported=\$$cacheid 13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13473printf "%s\n" "$supported" >&6; } 13474 if test "$supported" = "yes" ; then 13475 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13476 found="yes" 13477 fi 13478 fi 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494xorg_testset_save_CFLAGS="$CFLAGS" 13495 13496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13501then : 13502 printf %s "(cached) " >&6 13503else $as_nop 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506int i; 13507_ACEOF 13508if ac_fn_c_try_compile "$LINENO" 13509then : 13510 xorg_cv_cc_flag_unknown_warning_option=yes 13511else $as_nop 13512 xorg_cv_cc_flag_unknown_warning_option=no 13513fi 13514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13515fi 13516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13519 CFLAGS="$xorg_testset_save_CFLAGS" 13520fi 13521 13522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13525 fi 13526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13530then : 13531 printf %s "(cached) " >&6 13532else $as_nop 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534/* end confdefs.h. */ 13535int i; 13536_ACEOF 13537if ac_fn_c_try_compile "$LINENO" 13538then : 13539 xorg_cv_cc_flag_unused_command_line_argument=yes 13540else $as_nop 13541 xorg_cv_cc_flag_unused_command_line_argument=no 13542fi 13543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13544fi 13545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13548 CFLAGS="$xorg_testset_save_CFLAGS" 13549fi 13550 13551found="no" 13552 13553 if test $found = "no" ; then 13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13556 fi 13557 13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13560 fi 13561 13562 CFLAGS="$CFLAGS -Wpointer-arith" 13563 13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13565printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13566 cacheid=xorg_cv_cc_flag__Wpointer_arith 13567 if eval test \${$cacheid+y} 13568then : 13569 printf %s "(cached) " >&6 13570else $as_nop 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main (void) 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO" 13583then : 13584 eval $cacheid=yes 13585else $as_nop 13586 eval $cacheid=no 13587fi 13588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13589 conftest$ac_exeext conftest.$ac_ext 13590fi 13591 13592 13593 CFLAGS="$xorg_testset_save_CFLAGS" 13594 13595 eval supported=\$$cacheid 13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13597printf "%s\n" "$supported" >&6; } 13598 if test "$supported" = "yes" ; then 13599 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13600 found="yes" 13601 fi 13602 fi 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618xorg_testset_save_CFLAGS="$CFLAGS" 13619 13620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13625then : 13626 printf %s "(cached) " >&6 13627else $as_nop 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13629/* end confdefs.h. */ 13630int i; 13631_ACEOF 13632if ac_fn_c_try_compile "$LINENO" 13633then : 13634 xorg_cv_cc_flag_unknown_warning_option=yes 13635else $as_nop 13636 xorg_cv_cc_flag_unknown_warning_option=no 13637fi 13638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13639fi 13640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13643 CFLAGS="$xorg_testset_save_CFLAGS" 13644fi 13645 13646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 fi 13650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13653if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13654then : 13655 printf %s "(cached) " >&6 13656else $as_nop 13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13658/* end confdefs.h. */ 13659int i; 13660_ACEOF 13661if ac_fn_c_try_compile "$LINENO" 13662then : 13663 xorg_cv_cc_flag_unused_command_line_argument=yes 13664else $as_nop 13665 xorg_cv_cc_flag_unused_command_line_argument=no 13666fi 13667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13668fi 13669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13672 CFLAGS="$xorg_testset_save_CFLAGS" 13673fi 13674 13675found="no" 13676 13677 if test $found = "no" ; then 13678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13680 fi 13681 13682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13684 fi 13685 13686 CFLAGS="$CFLAGS -Wmissing-declarations" 13687 13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13689printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13690 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13691 if eval test \${$cacheid+y} 13692then : 13693 printf %s "(cached) " >&6 13694else $as_nop 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696/* end confdefs.h. */ 13697int i; 13698int 13699main (void) 13700{ 13701 13702 ; 13703 return 0; 13704} 13705_ACEOF 13706if ac_fn_c_try_link "$LINENO" 13707then : 13708 eval $cacheid=yes 13709else $as_nop 13710 eval $cacheid=no 13711fi 13712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13713 conftest$ac_exeext conftest.$ac_ext 13714fi 13715 13716 13717 CFLAGS="$xorg_testset_save_CFLAGS" 13718 13719 eval supported=\$$cacheid 13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13721printf "%s\n" "$supported" >&6; } 13722 if test "$supported" = "yes" ; then 13723 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13724 found="yes" 13725 fi 13726 fi 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742xorg_testset_save_CFLAGS="$CFLAGS" 13743 13744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13749then : 13750 printf %s "(cached) " >&6 13751else $as_nop 13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13753/* end confdefs.h. */ 13754int i; 13755_ACEOF 13756if ac_fn_c_try_compile "$LINENO" 13757then : 13758 xorg_cv_cc_flag_unknown_warning_option=yes 13759else $as_nop 13760 xorg_cv_cc_flag_unknown_warning_option=no 13761fi 13762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13763fi 13764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13767 CFLAGS="$xorg_testset_save_CFLAGS" 13768fi 13769 13770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 fi 13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13778then : 13779 printf %s "(cached) " >&6 13780else $as_nop 13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13782/* end confdefs.h. */ 13783int i; 13784_ACEOF 13785if ac_fn_c_try_compile "$LINENO" 13786then : 13787 xorg_cv_cc_flag_unused_command_line_argument=yes 13788else $as_nop 13789 xorg_cv_cc_flag_unused_command_line_argument=no 13790fi 13791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13792fi 13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13796 CFLAGS="$xorg_testset_save_CFLAGS" 13797fi 13798 13799found="no" 13800 13801 if test $found = "no" ; then 13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13804 fi 13805 13806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13808 fi 13809 13810 CFLAGS="$CFLAGS -Wformat=2" 13811 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13813printf %s "checking if $CC supports -Wformat=2... " >&6; } 13814 cacheid=xorg_cv_cc_flag__Wformat_2 13815 if eval test \${$cacheid+y} 13816then : 13817 printf %s "(cached) " >&6 13818else $as_nop 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820/* end confdefs.h. */ 13821int i; 13822int 13823main (void) 13824{ 13825 13826 ; 13827 return 0; 13828} 13829_ACEOF 13830if ac_fn_c_try_link "$LINENO" 13831then : 13832 eval $cacheid=yes 13833else $as_nop 13834 eval $cacheid=no 13835fi 13836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13837 conftest$ac_exeext conftest.$ac_ext 13838fi 13839 13840 13841 CFLAGS="$xorg_testset_save_CFLAGS" 13842 13843 eval supported=\$$cacheid 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13845printf "%s\n" "$supported" >&6; } 13846 if test "$supported" = "yes" ; then 13847 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13848 found="yes" 13849 fi 13850 fi 13851 13852 if test $found = "no" ; then 13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13855 fi 13856 13857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13859 fi 13860 13861 CFLAGS="$CFLAGS -Wformat" 13862 13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13864printf %s "checking if $CC supports -Wformat... " >&6; } 13865 cacheid=xorg_cv_cc_flag__Wformat 13866 if eval test \${$cacheid+y} 13867then : 13868 printf %s "(cached) " >&6 13869else $as_nop 13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13871/* end confdefs.h. */ 13872int i; 13873int 13874main (void) 13875{ 13876 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881if ac_fn_c_try_link "$LINENO" 13882then : 13883 eval $cacheid=yes 13884else $as_nop 13885 eval $cacheid=no 13886fi 13887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13888 conftest$ac_exeext conftest.$ac_ext 13889fi 13890 13891 13892 CFLAGS="$xorg_testset_save_CFLAGS" 13893 13894 eval supported=\$$cacheid 13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13896printf "%s\n" "$supported" >&6; } 13897 if test "$supported" = "yes" ; then 13898 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13899 found="yes" 13900 fi 13901 fi 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919xorg_testset_save_CFLAGS="$CFLAGS" 13920 13921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13926then : 13927 printf %s "(cached) " >&6 13928else $as_nop 13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930/* end confdefs.h. */ 13931int i; 13932_ACEOF 13933if ac_fn_c_try_compile "$LINENO" 13934then : 13935 xorg_cv_cc_flag_unknown_warning_option=yes 13936else $as_nop 13937 xorg_cv_cc_flag_unknown_warning_option=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13940fi 13941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13944 CFLAGS="$xorg_testset_save_CFLAGS" 13945fi 13946 13947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13950 fi 13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13955then : 13956 printf %s "(cached) " >&6 13957else $as_nop 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13959/* end confdefs.h. */ 13960int i; 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO" 13963then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else $as_nop 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13969fi 13970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Wstrict-prototypes" 13988 13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13990printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13991 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13992 if eval test \${$cacheid+y} 13993then : 13994 printf %s "(cached) " >&6 13995else $as_nop 13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998int i; 13999int 14000main (void) 14001{ 14002 14003 ; 14004 return 0; 14005} 14006_ACEOF 14007if ac_fn_c_try_link "$LINENO" 14008then : 14009 eval $cacheid=yes 14010else $as_nop 14011 eval $cacheid=no 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14014 conftest$ac_exeext conftest.$ac_ext 14015fi 14016 14017 14018 CFLAGS="$xorg_testset_save_CFLAGS" 14019 14020 eval supported=\$$cacheid 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14022printf "%s\n" "$supported" >&6; } 14023 if test "$supported" = "yes" ; then 14024 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14025 found="yes" 14026 fi 14027 fi 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043xorg_testset_save_CFLAGS="$CFLAGS" 14044 14045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14050then : 14051 printf %s "(cached) " >&6 14052else $as_nop 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055int i; 14056_ACEOF 14057if ac_fn_c_try_compile "$LINENO" 14058then : 14059 xorg_cv_cc_flag_unknown_warning_option=yes 14060else $as_nop 14061 xorg_cv_cc_flag_unknown_warning_option=no 14062fi 14063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14064fi 14065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14068 CFLAGS="$xorg_testset_save_CFLAGS" 14069fi 14070 14071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14074 fi 14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14078if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14079then : 14080 printf %s "(cached) " >&6 14081else $as_nop 14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14083/* end confdefs.h. */ 14084int i; 14085_ACEOF 14086if ac_fn_c_try_compile "$LINENO" 14087then : 14088 xorg_cv_cc_flag_unused_command_line_argument=yes 14089else $as_nop 14090 xorg_cv_cc_flag_unused_command_line_argument=no 14091fi 14092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14093fi 14094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14097 CFLAGS="$xorg_testset_save_CFLAGS" 14098fi 14099 14100found="no" 14101 14102 if test $found = "no" ; then 14103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14105 fi 14106 14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14109 fi 14110 14111 CFLAGS="$CFLAGS -Wmissing-prototypes" 14112 14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14114printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14115 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14116 if eval test \${$cacheid+y} 14117then : 14118 printf %s "(cached) " >&6 14119else $as_nop 14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14121/* end confdefs.h. */ 14122int i; 14123int 14124main (void) 14125{ 14126 14127 ; 14128 return 0; 14129} 14130_ACEOF 14131if ac_fn_c_try_link "$LINENO" 14132then : 14133 eval $cacheid=yes 14134else $as_nop 14135 eval $cacheid=no 14136fi 14137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14138 conftest$ac_exeext conftest.$ac_ext 14139fi 14140 14141 14142 CFLAGS="$xorg_testset_save_CFLAGS" 14143 14144 eval supported=\$$cacheid 14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14146printf "%s\n" "$supported" >&6; } 14147 if test "$supported" = "yes" ; then 14148 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14149 found="yes" 14150 fi 14151 fi 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167xorg_testset_save_CFLAGS="$CFLAGS" 14168 14169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14173if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14174then : 14175 printf %s "(cached) " >&6 14176else $as_nop 14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179int i; 14180_ACEOF 14181if ac_fn_c_try_compile "$LINENO" 14182then : 14183 xorg_cv_cc_flag_unknown_warning_option=yes 14184else $as_nop 14185 xorg_cv_cc_flag_unknown_warning_option=no 14186fi 14187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14188fi 14189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14192 CFLAGS="$xorg_testset_save_CFLAGS" 14193fi 14194 14195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14198 fi 14199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14202if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14203then : 14204 printf %s "(cached) " >&6 14205else $as_nop 14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14207/* end confdefs.h. */ 14208int i; 14209_ACEOF 14210if ac_fn_c_try_compile "$LINENO" 14211then : 14212 xorg_cv_cc_flag_unused_command_line_argument=yes 14213else $as_nop 14214 xorg_cv_cc_flag_unused_command_line_argument=no 14215fi 14216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14217fi 14218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14219printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14221 CFLAGS="$xorg_testset_save_CFLAGS" 14222fi 14223 14224found="no" 14225 14226 if test $found = "no" ; then 14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14229 fi 14230 14231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14233 fi 14234 14235 CFLAGS="$CFLAGS -Wnested-externs" 14236 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14238printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14239 cacheid=xorg_cv_cc_flag__Wnested_externs 14240 if eval test \${$cacheid+y} 14241then : 14242 printf %s "(cached) " >&6 14243else $as_nop 14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14245/* end confdefs.h. */ 14246int i; 14247int 14248main (void) 14249{ 14250 14251 ; 14252 return 0; 14253} 14254_ACEOF 14255if ac_fn_c_try_link "$LINENO" 14256then : 14257 eval $cacheid=yes 14258else $as_nop 14259 eval $cacheid=no 14260fi 14261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14262 conftest$ac_exeext conftest.$ac_ext 14263fi 14264 14265 14266 CFLAGS="$xorg_testset_save_CFLAGS" 14267 14268 eval supported=\$$cacheid 14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14270printf "%s\n" "$supported" >&6; } 14271 if test "$supported" = "yes" ; then 14272 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14273 found="yes" 14274 fi 14275 fi 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291xorg_testset_save_CFLAGS="$CFLAGS" 14292 14293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14297if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14298then : 14299 printf %s "(cached) " >&6 14300else $as_nop 14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14302/* end confdefs.h. */ 14303int i; 14304_ACEOF 14305if ac_fn_c_try_compile "$LINENO" 14306then : 14307 xorg_cv_cc_flag_unknown_warning_option=yes 14308else $as_nop 14309 xorg_cv_cc_flag_unknown_warning_option=no 14310fi 14311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14312fi 14313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14314printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14316 CFLAGS="$xorg_testset_save_CFLAGS" 14317fi 14318 14319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 fi 14323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14325printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14326if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14327then : 14328 printf %s "(cached) " >&6 14329else $as_nop 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331/* end confdefs.h. */ 14332int i; 14333_ACEOF 14334if ac_fn_c_try_compile "$LINENO" 14335then : 14336 xorg_cv_cc_flag_unused_command_line_argument=yes 14337else $as_nop 14338 xorg_cv_cc_flag_unused_command_line_argument=no 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14341fi 14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346fi 14347 14348found="no" 14349 14350 if test $found = "no" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14357 fi 14358 14359 CFLAGS="$CFLAGS -Wbad-function-cast" 14360 14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14362printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14363 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14364 if eval test \${$cacheid+y} 14365then : 14366 printf %s "(cached) " >&6 14367else $as_nop 14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14369/* end confdefs.h. */ 14370int i; 14371int 14372main (void) 14373{ 14374 14375 ; 14376 return 0; 14377} 14378_ACEOF 14379if ac_fn_c_try_link "$LINENO" 14380then : 14381 eval $cacheid=yes 14382else $as_nop 14383 eval $cacheid=no 14384fi 14385rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14386 conftest$ac_exeext conftest.$ac_ext 14387fi 14388 14389 14390 CFLAGS="$xorg_testset_save_CFLAGS" 14391 14392 eval supported=\$$cacheid 14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14394printf "%s\n" "$supported" >&6; } 14395 if test "$supported" = "yes" ; then 14396 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14397 found="yes" 14398 fi 14399 fi 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415xorg_testset_save_CFLAGS="$CFLAGS" 14416 14417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14421if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14422then : 14423 printf %s "(cached) " >&6 14424else $as_nop 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427int i; 14428_ACEOF 14429if ac_fn_c_try_compile "$LINENO" 14430then : 14431 xorg_cv_cc_flag_unknown_warning_option=yes 14432else $as_nop 14433 xorg_cv_cc_flag_unknown_warning_option=no 14434fi 14435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14436fi 14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14438printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14440 CFLAGS="$xorg_testset_save_CFLAGS" 14441fi 14442 14443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14446 fi 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14449printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14450if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14451then : 14452 printf %s "(cached) " >&6 14453else $as_nop 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456int i; 14457_ACEOF 14458if ac_fn_c_try_compile "$LINENO" 14459then : 14460 xorg_cv_cc_flag_unused_command_line_argument=yes 14461else $as_nop 14462 xorg_cv_cc_flag_unused_command_line_argument=no 14463fi 14464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14465fi 14466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14467printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14469 CFLAGS="$xorg_testset_save_CFLAGS" 14470fi 14471 14472found="no" 14473 14474 if test $found = "no" ; then 14475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14477 fi 14478 14479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14481 fi 14482 14483 CFLAGS="$CFLAGS -Wold-style-definition" 14484 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14486printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14487 cacheid=xorg_cv_cc_flag__Wold_style_definition 14488 if eval test \${$cacheid+y} 14489then : 14490 printf %s "(cached) " >&6 14491else $as_nop 14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14493/* end confdefs.h. */ 14494int i; 14495int 14496main (void) 14497{ 14498 14499 ; 14500 return 0; 14501} 14502_ACEOF 14503if ac_fn_c_try_link "$LINENO" 14504then : 14505 eval $cacheid=yes 14506else $as_nop 14507 eval $cacheid=no 14508fi 14509rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14510 conftest$ac_exeext conftest.$ac_ext 14511fi 14512 14513 14514 CFLAGS="$xorg_testset_save_CFLAGS" 14515 14516 eval supported=\$$cacheid 14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14518printf "%s\n" "$supported" >&6; } 14519 if test "$supported" = "yes" ; then 14520 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14521 found="yes" 14522 fi 14523 fi 14524 14525 if test $found = "no" ; then 14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14528 fi 14529 14530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14532 fi 14533 14534 CFLAGS="$CFLAGS -fd" 14535 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14537printf %s "checking if $CC supports -fd... " >&6; } 14538 cacheid=xorg_cv_cc_flag__fd 14539 if eval test \${$cacheid+y} 14540then : 14541 printf %s "(cached) " >&6 14542else $as_nop 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545int i; 14546int 14547main (void) 14548{ 14549 14550 ; 14551 return 0; 14552} 14553_ACEOF 14554if ac_fn_c_try_link "$LINENO" 14555then : 14556 eval $cacheid=yes 14557else $as_nop 14558 eval $cacheid=no 14559fi 14560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14561 conftest$ac_exeext conftest.$ac_ext 14562fi 14563 14564 14565 CFLAGS="$xorg_testset_save_CFLAGS" 14566 14567 eval supported=\$$cacheid 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14569printf "%s\n" "$supported" >&6; } 14570 if test "$supported" = "yes" ; then 14571 BASE_CFLAGS="$BASE_CFLAGS -fd" 14572 found="yes" 14573 fi 14574 fi 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590xorg_testset_save_CFLAGS="$CFLAGS" 14591 14592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14597then : 14598 printf %s "(cached) " >&6 14599else $as_nop 14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14601/* end confdefs.h. */ 14602int i; 14603_ACEOF 14604if ac_fn_c_try_compile "$LINENO" 14605then : 14606 xorg_cv_cc_flag_unknown_warning_option=yes 14607else $as_nop 14608 xorg_cv_cc_flag_unknown_warning_option=no 14609fi 14610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14611fi 14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616fi 14617 14618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14626then : 14627 printf %s "(cached) " >&6 14628else $as_nop 14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630/* end confdefs.h. */ 14631int i; 14632_ACEOF 14633if ac_fn_c_try_compile "$LINENO" 14634then : 14635 xorg_cv_cc_flag_unused_command_line_argument=yes 14636else $as_nop 14637 xorg_cv_cc_flag_unused_command_line_argument=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14640fi 14641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645fi 14646 14647found="no" 14648 14649 if test $found = "no" ; then 14650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14652 fi 14653 14654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14656 fi 14657 14658 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14659 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14661printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14662 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14663 if eval test \${$cacheid+y} 14664then : 14665 printf %s "(cached) " >&6 14666else $as_nop 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668/* end confdefs.h. */ 14669int i; 14670int 14671main (void) 14672{ 14673 14674 ; 14675 return 0; 14676} 14677_ACEOF 14678if ac_fn_c_try_link "$LINENO" 14679then : 14680 eval $cacheid=yes 14681else $as_nop 14682 eval $cacheid=no 14683fi 14684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14685 conftest$ac_exeext conftest.$ac_ext 14686fi 14687 14688 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690 14691 eval supported=\$$cacheid 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14693printf "%s\n" "$supported" >&6; } 14694 if test "$supported" = "yes" ; then 14695 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14696 found="yes" 14697 fi 14698 fi 14699 14700 14701 14702 14703 14704# This chunk adds additional warnings that could catch undesired effects. 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718xorg_testset_save_CFLAGS="$CFLAGS" 14719 14720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14725then : 14726 printf %s "(cached) " >&6 14727else $as_nop 14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14729/* end confdefs.h. */ 14730int i; 14731_ACEOF 14732if ac_fn_c_try_compile "$LINENO" 14733then : 14734 xorg_cv_cc_flag_unknown_warning_option=yes 14735else $as_nop 14736 xorg_cv_cc_flag_unknown_warning_option=no 14737fi 14738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14739fi 14740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14743 CFLAGS="$xorg_testset_save_CFLAGS" 14744fi 14745 14746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 fi 14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14753if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14754then : 14755 printf %s "(cached) " >&6 14756else $as_nop 14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759int i; 14760_ACEOF 14761if ac_fn_c_try_compile "$LINENO" 14762then : 14763 xorg_cv_cc_flag_unused_command_line_argument=yes 14764else $as_nop 14765 xorg_cv_cc_flag_unused_command_line_argument=no 14766fi 14767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14768fi 14769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14772 CFLAGS="$xorg_testset_save_CFLAGS" 14773fi 14774 14775found="no" 14776 14777 if test $found = "no" ; then 14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14780 fi 14781 14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14784 fi 14785 14786 CFLAGS="$CFLAGS -Wunused" 14787 14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14789printf %s "checking if $CC supports -Wunused... " >&6; } 14790 cacheid=xorg_cv_cc_flag__Wunused 14791 if eval test \${$cacheid+y} 14792then : 14793 printf %s "(cached) " >&6 14794else $as_nop 14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14796/* end confdefs.h. */ 14797int i; 14798int 14799main (void) 14800{ 14801 14802 ; 14803 return 0; 14804} 14805_ACEOF 14806if ac_fn_c_try_link "$LINENO" 14807then : 14808 eval $cacheid=yes 14809else $as_nop 14810 eval $cacheid=no 14811fi 14812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14813 conftest$ac_exeext conftest.$ac_ext 14814fi 14815 14816 14817 CFLAGS="$xorg_testset_save_CFLAGS" 14818 14819 eval supported=\$$cacheid 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14821printf "%s\n" "$supported" >&6; } 14822 if test "$supported" = "yes" ; then 14823 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14824 found="yes" 14825 fi 14826 fi 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842xorg_testset_save_CFLAGS="$CFLAGS" 14843 14844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14849then : 14850 printf %s "(cached) " >&6 14851else $as_nop 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855_ACEOF 14856if ac_fn_c_try_compile "$LINENO" 14857then : 14858 xorg_cv_cc_flag_unknown_warning_option=yes 14859else $as_nop 14860 xorg_cv_cc_flag_unknown_warning_option=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14863fi 14864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14867 CFLAGS="$xorg_testset_save_CFLAGS" 14868fi 14869 14870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14873 fi 14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14877if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14878then : 14879 printf %s "(cached) " >&6 14880else $as_nop 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883int i; 14884_ACEOF 14885if ac_fn_c_try_compile "$LINENO" 14886then : 14887 xorg_cv_cc_flag_unused_command_line_argument=yes 14888else $as_nop 14889 xorg_cv_cc_flag_unused_command_line_argument=no 14890fi 14891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14892fi 14893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14896 CFLAGS="$xorg_testset_save_CFLAGS" 14897fi 14898 14899found="no" 14900 14901 if test $found = "no" ; then 14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 fi 14905 14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14908 fi 14909 14910 CFLAGS="$CFLAGS -Wuninitialized" 14911 14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14913printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14914 cacheid=xorg_cv_cc_flag__Wuninitialized 14915 if eval test \${$cacheid+y} 14916then : 14917 printf %s "(cached) " >&6 14918else $as_nop 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921int i; 14922int 14923main (void) 14924{ 14925 14926 ; 14927 return 0; 14928} 14929_ACEOF 14930if ac_fn_c_try_link "$LINENO" 14931then : 14932 eval $cacheid=yes 14933else $as_nop 14934 eval $cacheid=no 14935fi 14936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14937 conftest$ac_exeext conftest.$ac_ext 14938fi 14939 14940 14941 CFLAGS="$xorg_testset_save_CFLAGS" 14942 14943 eval supported=\$$cacheid 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14945printf "%s\n" "$supported" >&6; } 14946 if test "$supported" = "yes" ; then 14947 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14948 found="yes" 14949 fi 14950 fi 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966xorg_testset_save_CFLAGS="$CFLAGS" 14967 14968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14973then : 14974 printf %s "(cached) " >&6 14975else $as_nop 14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978int i; 14979_ACEOF 14980if ac_fn_c_try_compile "$LINENO" 14981then : 14982 xorg_cv_cc_flag_unknown_warning_option=yes 14983else $as_nop 14984 xorg_cv_cc_flag_unknown_warning_option=no 14985fi 14986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14987fi 14988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14991 CFLAGS="$xorg_testset_save_CFLAGS" 14992fi 14993 14994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 fi 14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15002then : 15003 printf %s "(cached) " >&6 15004else $as_nop 15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007int i; 15008_ACEOF 15009if ac_fn_c_try_compile "$LINENO" 15010then : 15011 xorg_cv_cc_flag_unused_command_line_argument=yes 15012else $as_nop 15013 xorg_cv_cc_flag_unused_command_line_argument=no 15014fi 15015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15016fi 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021fi 15022 15023found="no" 15024 15025 if test $found = "no" ; then 15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15028 fi 15029 15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15032 fi 15033 15034 CFLAGS="$CFLAGS -Wshadow" 15035 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15037printf %s "checking if $CC supports -Wshadow... " >&6; } 15038 cacheid=xorg_cv_cc_flag__Wshadow 15039 if eval test \${$cacheid+y} 15040then : 15041 printf %s "(cached) " >&6 15042else $as_nop 15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15044/* end confdefs.h. */ 15045int i; 15046int 15047main (void) 15048{ 15049 15050 ; 15051 return 0; 15052} 15053_ACEOF 15054if ac_fn_c_try_link "$LINENO" 15055then : 15056 eval $cacheid=yes 15057else $as_nop 15058 eval $cacheid=no 15059fi 15060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15061 conftest$ac_exeext conftest.$ac_ext 15062fi 15063 15064 15065 CFLAGS="$xorg_testset_save_CFLAGS" 15066 15067 eval supported=\$$cacheid 15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15069printf "%s\n" "$supported" >&6; } 15070 if test "$supported" = "yes" ; then 15071 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15072 found="yes" 15073 fi 15074 fi 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090xorg_testset_save_CFLAGS="$CFLAGS" 15091 15092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15097then : 15098 printf %s "(cached) " >&6 15099else $as_nop 15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15101/* end confdefs.h. */ 15102int i; 15103_ACEOF 15104if ac_fn_c_try_compile "$LINENO" 15105then : 15106 xorg_cv_cc_flag_unknown_warning_option=yes 15107else $as_nop 15108 xorg_cv_cc_flag_unknown_warning_option=no 15109fi 15110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15111fi 15112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15115 CFLAGS="$xorg_testset_save_CFLAGS" 15116fi 15117 15118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15121 fi 15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15126then : 15127 printf %s "(cached) " >&6 15128else $as_nop 15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131int i; 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO" 15134then : 15135 xorg_cv_cc_flag_unused_command_line_argument=yes 15136else $as_nop 15137 xorg_cv_cc_flag_unused_command_line_argument=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15140fi 15141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147found="no" 15148 15149 if test $found = "no" ; then 15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15152 fi 15153 15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15156 fi 15157 15158 CFLAGS="$CFLAGS -Wmissing-noreturn" 15159 15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15161printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15162 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15163 if eval test \${$cacheid+y} 15164then : 15165 printf %s "(cached) " >&6 15166else $as_nop 15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169int i; 15170int 15171main (void) 15172{ 15173 15174 ; 15175 return 0; 15176} 15177_ACEOF 15178if ac_fn_c_try_link "$LINENO" 15179then : 15180 eval $cacheid=yes 15181else $as_nop 15182 eval $cacheid=no 15183fi 15184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15185 conftest$ac_exeext conftest.$ac_ext 15186fi 15187 15188 15189 CFLAGS="$xorg_testset_save_CFLAGS" 15190 15191 eval supported=\$$cacheid 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15193printf "%s\n" "$supported" >&6; } 15194 if test "$supported" = "yes" ; then 15195 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15196 found="yes" 15197 fi 15198 fi 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214xorg_testset_save_CFLAGS="$CFLAGS" 15215 15216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15221then : 15222 printf %s "(cached) " >&6 15223else $as_nop 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226int i; 15227_ACEOF 15228if ac_fn_c_try_compile "$LINENO" 15229then : 15230 xorg_cv_cc_flag_unknown_warning_option=yes 15231else $as_nop 15232 xorg_cv_cc_flag_unknown_warning_option=no 15233fi 15234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15235fi 15236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15239 CFLAGS="$xorg_testset_save_CFLAGS" 15240fi 15241 15242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15245 fi 15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15249if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15250then : 15251 printf %s "(cached) " >&6 15252else $as_nop 15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15254/* end confdefs.h. */ 15255int i; 15256_ACEOF 15257if ac_fn_c_try_compile "$LINENO" 15258then : 15259 xorg_cv_cc_flag_unused_command_line_argument=yes 15260else $as_nop 15261 xorg_cv_cc_flag_unused_command_line_argument=no 15262fi 15263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15264fi 15265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15268 CFLAGS="$xorg_testset_save_CFLAGS" 15269fi 15270 15271found="no" 15272 15273 if test $found = "no" ; then 15274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15276 fi 15277 15278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15280 fi 15281 15282 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15283 15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15285printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15286 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15287 if eval test \${$cacheid+y} 15288then : 15289 printf %s "(cached) " >&6 15290else $as_nop 15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15292/* end confdefs.h. */ 15293int i; 15294int 15295main (void) 15296{ 15297 15298 ; 15299 return 0; 15300} 15301_ACEOF 15302if ac_fn_c_try_link "$LINENO" 15303then : 15304 eval $cacheid=yes 15305else $as_nop 15306 eval $cacheid=no 15307fi 15308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15309 conftest$ac_exeext conftest.$ac_ext 15310fi 15311 15312 15313 CFLAGS="$xorg_testset_save_CFLAGS" 15314 15315 eval supported=\$$cacheid 15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15317printf "%s\n" "$supported" >&6; } 15318 if test "$supported" = "yes" ; then 15319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15320 found="yes" 15321 fi 15322 fi 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338xorg_testset_save_CFLAGS="$CFLAGS" 15339 15340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15344if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15345then : 15346 printf %s "(cached) " >&6 15347else $as_nop 15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15349/* end confdefs.h. */ 15350int i; 15351_ACEOF 15352if ac_fn_c_try_compile "$LINENO" 15353then : 15354 xorg_cv_cc_flag_unknown_warning_option=yes 15355else $as_nop 15356 xorg_cv_cc_flag_unknown_warning_option=no 15357fi 15358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15359fi 15360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15363 CFLAGS="$xorg_testset_save_CFLAGS" 15364fi 15365 15366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15369 fi 15370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15373if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15374then : 15375 printf %s "(cached) " >&6 15376else $as_nop 15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15378/* end confdefs.h. */ 15379int i; 15380_ACEOF 15381if ac_fn_c_try_compile "$LINENO" 15382then : 15383 xorg_cv_cc_flag_unused_command_line_argument=yes 15384else $as_nop 15385 xorg_cv_cc_flag_unused_command_line_argument=no 15386fi 15387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15388fi 15389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15392 CFLAGS="$xorg_testset_save_CFLAGS" 15393fi 15394 15395found="no" 15396 15397 if test $found = "no" ; then 15398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15400 fi 15401 15402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15404 fi 15405 15406 CFLAGS="$CFLAGS -Wredundant-decls" 15407 15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15409printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15410 cacheid=xorg_cv_cc_flag__Wredundant_decls 15411 if eval test \${$cacheid+y} 15412then : 15413 printf %s "(cached) " >&6 15414else $as_nop 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418int 15419main (void) 15420{ 15421 15422 ; 15423 return 0; 15424} 15425_ACEOF 15426if ac_fn_c_try_link "$LINENO" 15427then : 15428 eval $cacheid=yes 15429else $as_nop 15430 eval $cacheid=no 15431fi 15432rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15433 conftest$ac_exeext conftest.$ac_ext 15434fi 15435 15436 15437 CFLAGS="$xorg_testset_save_CFLAGS" 15438 15439 eval supported=\$$cacheid 15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15441printf "%s\n" "$supported" >&6; } 15442 if test "$supported" = "yes" ; then 15443 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15444 found="yes" 15445 fi 15446 fi 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462xorg_testset_save_CFLAGS="$CFLAGS" 15463 15464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15469then : 15470 printf %s "(cached) " >&6 15471else $as_nop 15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15473/* end confdefs.h. */ 15474int i; 15475_ACEOF 15476if ac_fn_c_try_compile "$LINENO" 15477then : 15478 xorg_cv_cc_flag_unknown_warning_option=yes 15479else $as_nop 15480 xorg_cv_cc_flag_unknown_warning_option=no 15481fi 15482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15483fi 15484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15487 CFLAGS="$xorg_testset_save_CFLAGS" 15488fi 15489 15490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15493 fi 15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15497if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15498then : 15499 printf %s "(cached) " >&6 15500else $as_nop 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502/* end confdefs.h. */ 15503int i; 15504_ACEOF 15505if ac_fn_c_try_compile "$LINENO" 15506then : 15507 xorg_cv_cc_flag_unused_command_line_argument=yes 15508else $as_nop 15509 xorg_cv_cc_flag_unused_command_line_argument=no 15510fi 15511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15512fi 15513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15516 CFLAGS="$xorg_testset_save_CFLAGS" 15517fi 15518 15519found="no" 15520 15521 if test $found = "no" ; then 15522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15524 fi 15525 15526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15528 fi 15529 15530 CFLAGS="$CFLAGS -Wlogical-op" 15531 15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15533printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15534 cacheid=xorg_cv_cc_flag__Wlogical_op 15535 if eval test \${$cacheid+y} 15536then : 15537 printf %s "(cached) " >&6 15538else $as_nop 15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541int i; 15542int 15543main (void) 15544{ 15545 15546 ; 15547 return 0; 15548} 15549_ACEOF 15550if ac_fn_c_try_link "$LINENO" 15551then : 15552 eval $cacheid=yes 15553else $as_nop 15554 eval $cacheid=no 15555fi 15556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15557 conftest$ac_exeext conftest.$ac_ext 15558fi 15559 15560 15561 CFLAGS="$xorg_testset_save_CFLAGS" 15562 15563 eval supported=\$$cacheid 15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15565printf "%s\n" "$supported" >&6; } 15566 if test "$supported" = "yes" ; then 15567 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15568 found="yes" 15569 fi 15570 fi 15571 15572 15573 15574# These are currently disabled because they are noisy. They will be enabled 15575# in the future once the codebase is sufficiently modernized to silence 15576# them. For now, I don't want them to drown out the other warnings. 15577# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15578# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15579# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15580 15581# Turn some warnings into errors, so we don't accidently get successful builds 15582# when there are problems that should be fixed. 15583 15584if test "x$SELECTIVE_WERROR" = "xyes" ; then 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598xorg_testset_save_CFLAGS="$CFLAGS" 15599 15600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15605then : 15606 printf %s "(cached) " >&6 15607else $as_nop 15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15609/* end confdefs.h. */ 15610int i; 15611_ACEOF 15612if ac_fn_c_try_compile "$LINENO" 15613then : 15614 xorg_cv_cc_flag_unknown_warning_option=yes 15615else $as_nop 15616 xorg_cv_cc_flag_unknown_warning_option=no 15617fi 15618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15619fi 15620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15623 CFLAGS="$xorg_testset_save_CFLAGS" 15624fi 15625 15626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15629 fi 15630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15633if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15634then : 15635 printf %s "(cached) " >&6 15636else $as_nop 15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15638/* end confdefs.h. */ 15639int i; 15640_ACEOF 15641if ac_fn_c_try_compile "$LINENO" 15642then : 15643 xorg_cv_cc_flag_unused_command_line_argument=yes 15644else $as_nop 15645 xorg_cv_cc_flag_unused_command_line_argument=no 15646fi 15647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15648fi 15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15652 CFLAGS="$xorg_testset_save_CFLAGS" 15653fi 15654 15655found="no" 15656 15657 if test $found = "no" ; then 15658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15660 fi 15661 15662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15664 fi 15665 15666 CFLAGS="$CFLAGS -Werror=implicit" 15667 15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15669printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15670 cacheid=xorg_cv_cc_flag__Werror_implicit 15671 if eval test \${$cacheid+y} 15672then : 15673 printf %s "(cached) " >&6 15674else $as_nop 15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15676/* end confdefs.h. */ 15677int i; 15678int 15679main (void) 15680{ 15681 15682 ; 15683 return 0; 15684} 15685_ACEOF 15686if ac_fn_c_try_link "$LINENO" 15687then : 15688 eval $cacheid=yes 15689else $as_nop 15690 eval $cacheid=no 15691fi 15692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15693 conftest$ac_exeext conftest.$ac_ext 15694fi 15695 15696 15697 CFLAGS="$xorg_testset_save_CFLAGS" 15698 15699 eval supported=\$$cacheid 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15701printf "%s\n" "$supported" >&6; } 15702 if test "$supported" = "yes" ; then 15703 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15704 found="yes" 15705 fi 15706 fi 15707 15708 if test $found = "no" ; then 15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 fi 15712 15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15715 fi 15716 15717 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15718 15719 { 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 15720printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15721 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15722 if eval test \${$cacheid+y} 15723then : 15724 printf %s "(cached) " >&6 15725else $as_nop 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729int 15730main (void) 15731{ 15732 15733 ; 15734 return 0; 15735} 15736_ACEOF 15737if ac_fn_c_try_link "$LINENO" 15738then : 15739 eval $cacheid=yes 15740else $as_nop 15741 eval $cacheid=no 15742fi 15743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15744 conftest$ac_exeext conftest.$ac_ext 15745fi 15746 15747 15748 CFLAGS="$xorg_testset_save_CFLAGS" 15749 15750 eval supported=\$$cacheid 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15752printf "%s\n" "$supported" >&6; } 15753 if test "$supported" = "yes" ; then 15754 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15755 found="yes" 15756 fi 15757 fi 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773xorg_testset_save_CFLAGS="$CFLAGS" 15774 15775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15780then : 15781 printf %s "(cached) " >&6 15782else $as_nop 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15784/* end confdefs.h. */ 15785int i; 15786_ACEOF 15787if ac_fn_c_try_compile "$LINENO" 15788then : 15789 xorg_cv_cc_flag_unknown_warning_option=yes 15790else $as_nop 15791 xorg_cv_cc_flag_unknown_warning_option=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15794fi 15795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799fi 15800 15801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15809then : 15810 printf %s "(cached) " >&6 15811else $as_nop 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813/* end confdefs.h. */ 15814int i; 15815_ACEOF 15816if ac_fn_c_try_compile "$LINENO" 15817then : 15818 xorg_cv_cc_flag_unused_command_line_argument=yes 15819else $as_nop 15820 xorg_cv_cc_flag_unused_command_line_argument=no 15821fi 15822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15823fi 15824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15827 CFLAGS="$xorg_testset_save_CFLAGS" 15828fi 15829 15830found="no" 15831 15832 if test $found = "no" ; then 15833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15835 fi 15836 15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15839 fi 15840 15841 CFLAGS="$CFLAGS -Werror=nonnull" 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15844printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15845 cacheid=xorg_cv_cc_flag__Werror_nonnull 15846 if eval test \${$cacheid+y} 15847then : 15848 printf %s "(cached) " >&6 15849else $as_nop 15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15851/* end confdefs.h. */ 15852int i; 15853int 15854main (void) 15855{ 15856 15857 ; 15858 return 0; 15859} 15860_ACEOF 15861if ac_fn_c_try_link "$LINENO" 15862then : 15863 eval $cacheid=yes 15864else $as_nop 15865 eval $cacheid=no 15866fi 15867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15868 conftest$ac_exeext conftest.$ac_ext 15869fi 15870 15871 15872 CFLAGS="$xorg_testset_save_CFLAGS" 15873 15874 eval supported=\$$cacheid 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15876printf "%s\n" "$supported" >&6; } 15877 if test "$supported" = "yes" ; then 15878 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15879 found="yes" 15880 fi 15881 fi 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897xorg_testset_save_CFLAGS="$CFLAGS" 15898 15899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15904then : 15905 printf %s "(cached) " >&6 15906else $as_nop 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909int i; 15910_ACEOF 15911if ac_fn_c_try_compile "$LINENO" 15912then : 15913 xorg_cv_cc_flag_unknown_warning_option=yes 15914else $as_nop 15915 xorg_cv_cc_flag_unknown_warning_option=no 15916fi 15917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15918fi 15919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15922 CFLAGS="$xorg_testset_save_CFLAGS" 15923fi 15924 15925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15928 fi 15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15933then : 15934 printf %s "(cached) " >&6 15935else $as_nop 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937/* end confdefs.h. */ 15938int i; 15939_ACEOF 15940if ac_fn_c_try_compile "$LINENO" 15941then : 15942 xorg_cv_cc_flag_unused_command_line_argument=yes 15943else $as_nop 15944 xorg_cv_cc_flag_unused_command_line_argument=no 15945fi 15946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15947fi 15948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15951 CFLAGS="$xorg_testset_save_CFLAGS" 15952fi 15953 15954found="no" 15955 15956 if test $found = "no" ; then 15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15959 fi 15960 15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15963 fi 15964 15965 CFLAGS="$CFLAGS -Werror=init-self" 15966 15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15968printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15969 cacheid=xorg_cv_cc_flag__Werror_init_self 15970 if eval test \${$cacheid+y} 15971then : 15972 printf %s "(cached) " >&6 15973else $as_nop 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976int i; 15977int 15978main (void) 15979{ 15980 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO" 15986then : 15987 eval $cacheid=yes 15988else $as_nop 15989 eval $cacheid=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15992 conftest$ac_exeext conftest.$ac_ext 15993fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000printf "%s\n" "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16028then : 16029 printf %s "(cached) " >&6 16030else $as_nop 16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032/* end confdefs.h. */ 16033int i; 16034_ACEOF 16035if ac_fn_c_try_compile "$LINENO" 16036then : 16037 xorg_cv_cc_flag_unknown_warning_option=yes 16038else $as_nop 16039 xorg_cv_cc_flag_unknown_warning_option=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16042fi 16043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047fi 16048 16049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16052 fi 16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16057then : 16058 printf %s "(cached) " >&6 16059else $as_nop 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062int i; 16063_ACEOF 16064if ac_fn_c_try_compile "$LINENO" 16065then : 16066 xorg_cv_cc_flag_unused_command_line_argument=yes 16067else $as_nop 16068 xorg_cv_cc_flag_unused_command_line_argument=no 16069fi 16070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16071fi 16072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16075 CFLAGS="$xorg_testset_save_CFLAGS" 16076fi 16077 16078found="no" 16079 16080 if test $found = "no" ; then 16081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16083 fi 16084 16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16087 fi 16088 16089 CFLAGS="$CFLAGS -Werror=main" 16090 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16092printf %s "checking if $CC supports -Werror=main... " >&6; } 16093 cacheid=xorg_cv_cc_flag__Werror_main 16094 if eval test \${$cacheid+y} 16095then : 16096 printf %s "(cached) " >&6 16097else $as_nop 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100int i; 16101int 16102main (void) 16103{ 16104 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO" 16110then : 16111 eval $cacheid=yes 16112else $as_nop 16113 eval $cacheid=no 16114fi 16115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16116 conftest$ac_exeext conftest.$ac_ext 16117fi 16118 16119 16120 CFLAGS="$xorg_testset_save_CFLAGS" 16121 16122 eval supported=\$$cacheid 16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16124printf "%s\n" "$supported" >&6; } 16125 if test "$supported" = "yes" ; then 16126 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16127 found="yes" 16128 fi 16129 fi 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145xorg_testset_save_CFLAGS="$CFLAGS" 16146 16147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16152then : 16153 printf %s "(cached) " >&6 16154else $as_nop 16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156/* end confdefs.h. */ 16157int i; 16158_ACEOF 16159if ac_fn_c_try_compile "$LINENO" 16160then : 16161 xorg_cv_cc_flag_unknown_warning_option=yes 16162else $as_nop 16163 xorg_cv_cc_flag_unknown_warning_option=no 16164fi 16165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16166fi 16167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16170 CFLAGS="$xorg_testset_save_CFLAGS" 16171fi 16172 16173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16181then : 16182 printf %s "(cached) " >&6 16183else $as_nop 16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16185/* end confdefs.h. */ 16186int i; 16187_ACEOF 16188if ac_fn_c_try_compile "$LINENO" 16189then : 16190 xorg_cv_cc_flag_unused_command_line_argument=yes 16191else $as_nop 16192 xorg_cv_cc_flag_unused_command_line_argument=no 16193fi 16194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16195fi 16196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16199 CFLAGS="$xorg_testset_save_CFLAGS" 16200fi 16201 16202found="no" 16203 16204 if test $found = "no" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16211 fi 16212 16213 CFLAGS="$CFLAGS -Werror=missing-braces" 16214 16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16216printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16217 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16218 if eval test \${$cacheid+y} 16219then : 16220 printf %s "(cached) " >&6 16221else $as_nop 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223/* end confdefs.h. */ 16224int i; 16225int 16226main (void) 16227{ 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_link "$LINENO" 16234then : 16235 eval $cacheid=yes 16236else $as_nop 16237 eval $cacheid=no 16238fi 16239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16240 conftest$ac_exeext conftest.$ac_ext 16241fi 16242 16243 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245 16246 eval supported=\$$cacheid 16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16248printf "%s\n" "$supported" >&6; } 16249 if test "$supported" = "yes" ; then 16250 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16251 found="yes" 16252 fi 16253 fi 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269xorg_testset_save_CFLAGS="$CFLAGS" 16270 16271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16276then : 16277 printf %s "(cached) " >&6 16278else $as_nop 16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280/* end confdefs.h. */ 16281int i; 16282_ACEOF 16283if ac_fn_c_try_compile "$LINENO" 16284then : 16285 xorg_cv_cc_flag_unknown_warning_option=yes 16286else $as_nop 16287 xorg_cv_cc_flag_unknown_warning_option=no 16288fi 16289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16290fi 16291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16294 CFLAGS="$xorg_testset_save_CFLAGS" 16295fi 16296 16297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16300 fi 16301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16305then : 16306 printf %s "(cached) " >&6 16307else $as_nop 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310int i; 16311_ACEOF 16312if ac_fn_c_try_compile "$LINENO" 16313then : 16314 xorg_cv_cc_flag_unused_command_line_argument=yes 16315else $as_nop 16316 xorg_cv_cc_flag_unused_command_line_argument=no 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16319fi 16320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16323 CFLAGS="$xorg_testset_save_CFLAGS" 16324fi 16325 16326found="no" 16327 16328 if test $found = "no" ; then 16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16331 fi 16332 16333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16335 fi 16336 16337 CFLAGS="$CFLAGS -Werror=sequence-point" 16338 16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16340printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16341 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16342 if eval test \${$cacheid+y} 16343then : 16344 printf %s "(cached) " >&6 16345else $as_nop 16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16347/* end confdefs.h. */ 16348int i; 16349int 16350main (void) 16351{ 16352 16353 ; 16354 return 0; 16355} 16356_ACEOF 16357if ac_fn_c_try_link "$LINENO" 16358then : 16359 eval $cacheid=yes 16360else $as_nop 16361 eval $cacheid=no 16362fi 16363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16364 conftest$ac_exeext conftest.$ac_ext 16365fi 16366 16367 16368 CFLAGS="$xorg_testset_save_CFLAGS" 16369 16370 eval supported=\$$cacheid 16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16372printf "%s\n" "$supported" >&6; } 16373 if test "$supported" = "yes" ; then 16374 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16375 found="yes" 16376 fi 16377 fi 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393xorg_testset_save_CFLAGS="$CFLAGS" 16394 16395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16400then : 16401 printf %s "(cached) " >&6 16402else $as_nop 16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404/* end confdefs.h. */ 16405int i; 16406_ACEOF 16407if ac_fn_c_try_compile "$LINENO" 16408then : 16409 xorg_cv_cc_flag_unknown_warning_option=yes 16410else $as_nop 16411 xorg_cv_cc_flag_unknown_warning_option=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16414fi 16415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419fi 16420 16421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16428if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16429then : 16430 printf %s "(cached) " >&6 16431else $as_nop 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434int i; 16435_ACEOF 16436if ac_fn_c_try_compile "$LINENO" 16437then : 16438 xorg_cv_cc_flag_unused_command_line_argument=yes 16439else $as_nop 16440 xorg_cv_cc_flag_unused_command_line_argument=no 16441fi 16442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16443fi 16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448fi 16449 16450found="no" 16451 16452 if test $found = "no" ; then 16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16455 fi 16456 16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16459 fi 16460 16461 CFLAGS="$CFLAGS -Werror=return-type" 16462 16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16464printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16465 cacheid=xorg_cv_cc_flag__Werror_return_type 16466 if eval test \${$cacheid+y} 16467then : 16468 printf %s "(cached) " >&6 16469else $as_nop 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472int i; 16473int 16474main (void) 16475{ 16476 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481if ac_fn_c_try_link "$LINENO" 16482then : 16483 eval $cacheid=yes 16484else $as_nop 16485 eval $cacheid=no 16486fi 16487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16488 conftest$ac_exeext conftest.$ac_ext 16489fi 16490 16491 16492 CFLAGS="$xorg_testset_save_CFLAGS" 16493 16494 eval supported=\$$cacheid 16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16496printf "%s\n" "$supported" >&6; } 16497 if test "$supported" = "yes" ; then 16498 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16499 found="yes" 16500 fi 16501 fi 16502 16503 if test $found = "no" ; then 16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16506 fi 16507 16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16510 fi 16511 16512 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16513 16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16515printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16516 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16517 if eval test \${$cacheid+y} 16518then : 16519 printf %s "(cached) " >&6 16520else $as_nop 16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16522/* end confdefs.h. */ 16523int i; 16524int 16525main (void) 16526{ 16527 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532if ac_fn_c_try_link "$LINENO" 16533then : 16534 eval $cacheid=yes 16535else $as_nop 16536 eval $cacheid=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16539 conftest$ac_exeext conftest.$ac_ext 16540fi 16541 16542 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544 16545 eval supported=\$$cacheid 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16547printf "%s\n" "$supported" >&6; } 16548 if test "$supported" = "yes" ; then 16549 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16550 found="yes" 16551 fi 16552 fi 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568xorg_testset_save_CFLAGS="$CFLAGS" 16569 16570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16575then : 16576 printf %s "(cached) " >&6 16577else $as_nop 16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16579/* end confdefs.h. */ 16580int i; 16581_ACEOF 16582if ac_fn_c_try_compile "$LINENO" 16583then : 16584 xorg_cv_cc_flag_unknown_warning_option=yes 16585else $as_nop 16586 xorg_cv_cc_flag_unknown_warning_option=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16589fi 16590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594fi 16595 16596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16599 fi 16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16604then : 16605 printf %s "(cached) " >&6 16606else $as_nop 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609int i; 16610_ACEOF 16611if ac_fn_c_try_compile "$LINENO" 16612then : 16613 xorg_cv_cc_flag_unused_command_line_argument=yes 16614else $as_nop 16615 xorg_cv_cc_flag_unused_command_line_argument=no 16616fi 16617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16618fi 16619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16622 CFLAGS="$xorg_testset_save_CFLAGS" 16623fi 16624 16625found="no" 16626 16627 if test $found = "no" ; then 16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16630 fi 16631 16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16634 fi 16635 16636 CFLAGS="$CFLAGS -Werror=trigraphs" 16637 16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16639printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16640 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16641 if eval test \${$cacheid+y} 16642then : 16643 printf %s "(cached) " >&6 16644else $as_nop 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646/* end confdefs.h. */ 16647int i; 16648int 16649main (void) 16650{ 16651 16652 ; 16653 return 0; 16654} 16655_ACEOF 16656if ac_fn_c_try_link "$LINENO" 16657then : 16658 eval $cacheid=yes 16659else $as_nop 16660 eval $cacheid=no 16661fi 16662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16663 conftest$ac_exeext conftest.$ac_ext 16664fi 16665 16666 16667 CFLAGS="$xorg_testset_save_CFLAGS" 16668 16669 eval supported=\$$cacheid 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16671printf "%s\n" "$supported" >&6; } 16672 if test "$supported" = "yes" ; then 16673 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16674 found="yes" 16675 fi 16676 fi 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692xorg_testset_save_CFLAGS="$CFLAGS" 16693 16694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16699then : 16700 printf %s "(cached) " >&6 16701else $as_nop 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703/* end confdefs.h. */ 16704int i; 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO" 16707then : 16708 xorg_cv_cc_flag_unknown_warning_option=yes 16709else $as_nop 16710 xorg_cv_cc_flag_unknown_warning_option=no 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16713fi 16714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16717 CFLAGS="$xorg_testset_save_CFLAGS" 16718fi 16719 16720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16723 fi 16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16728then : 16729 printf %s "(cached) " >&6 16730else $as_nop 16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16732/* end confdefs.h. */ 16733int i; 16734_ACEOF 16735if ac_fn_c_try_compile "$LINENO" 16736then : 16737 xorg_cv_cc_flag_unused_command_line_argument=yes 16738else $as_nop 16739 xorg_cv_cc_flag_unused_command_line_argument=no 16740fi 16741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16742fi 16743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16746 CFLAGS="$xorg_testset_save_CFLAGS" 16747fi 16748 16749found="no" 16750 16751 if test $found = "no" ; then 16752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16754 fi 16755 16756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16758 fi 16759 16760 CFLAGS="$CFLAGS -Werror=array-bounds" 16761 16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16763printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16764 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16765 if eval test \${$cacheid+y} 16766then : 16767 printf %s "(cached) " >&6 16768else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771int i; 16772int 16773main (void) 16774{ 16775 16776 ; 16777 return 0; 16778} 16779_ACEOF 16780if ac_fn_c_try_link "$LINENO" 16781then : 16782 eval $cacheid=yes 16783else $as_nop 16784 eval $cacheid=no 16785fi 16786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16787 conftest$ac_exeext conftest.$ac_ext 16788fi 16789 16790 16791 CFLAGS="$xorg_testset_save_CFLAGS" 16792 16793 eval supported=\$$cacheid 16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16795printf "%s\n" "$supported" >&6; } 16796 if test "$supported" = "yes" ; then 16797 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16798 found="yes" 16799 fi 16800 fi 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816xorg_testset_save_CFLAGS="$CFLAGS" 16817 16818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16822if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16823then : 16824 printf %s "(cached) " >&6 16825else $as_nop 16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16827/* end confdefs.h. */ 16828int i; 16829_ACEOF 16830if ac_fn_c_try_compile "$LINENO" 16831then : 16832 xorg_cv_cc_flag_unknown_warning_option=yes 16833else $as_nop 16834 xorg_cv_cc_flag_unknown_warning_option=no 16835fi 16836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16837fi 16838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16841 CFLAGS="$xorg_testset_save_CFLAGS" 16842fi 16843 16844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16847 fi 16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16851if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16852then : 16853 printf %s "(cached) " >&6 16854else $as_nop 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857int i; 16858_ACEOF 16859if ac_fn_c_try_compile "$LINENO" 16860then : 16861 xorg_cv_cc_flag_unused_command_line_argument=yes 16862else $as_nop 16863 xorg_cv_cc_flag_unused_command_line_argument=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16866fi 16867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873found="no" 16874 16875 if test $found = "no" ; then 16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16878 fi 16879 16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16882 fi 16883 16884 CFLAGS="$CFLAGS -Werror=write-strings" 16885 16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16887printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16888 cacheid=xorg_cv_cc_flag__Werror_write_strings 16889 if eval test \${$cacheid+y} 16890then : 16891 printf %s "(cached) " >&6 16892else $as_nop 16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894/* end confdefs.h. */ 16895int i; 16896int 16897main (void) 16898{ 16899 16900 ; 16901 return 0; 16902} 16903_ACEOF 16904if ac_fn_c_try_link "$LINENO" 16905then : 16906 eval $cacheid=yes 16907else $as_nop 16908 eval $cacheid=no 16909fi 16910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16911 conftest$ac_exeext conftest.$ac_ext 16912fi 16913 16914 16915 CFLAGS="$xorg_testset_save_CFLAGS" 16916 16917 eval supported=\$$cacheid 16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16919printf "%s\n" "$supported" >&6; } 16920 if test "$supported" = "yes" ; then 16921 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16922 found="yes" 16923 fi 16924 fi 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940xorg_testset_save_CFLAGS="$CFLAGS" 16941 16942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16947then : 16948 printf %s "(cached) " >&6 16949else $as_nop 16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16951/* end confdefs.h. */ 16952int i; 16953_ACEOF 16954if ac_fn_c_try_compile "$LINENO" 16955then : 16956 xorg_cv_cc_flag_unknown_warning_option=yes 16957else $as_nop 16958 xorg_cv_cc_flag_unknown_warning_option=no 16959fi 16960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16961fi 16962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16965 CFLAGS="$xorg_testset_save_CFLAGS" 16966fi 16967 16968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16971 fi 16972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16976then : 16977 printf %s "(cached) " >&6 16978else $as_nop 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO" 16984then : 16985 xorg_cv_cc_flag_unused_command_line_argument=yes 16986else $as_nop 16987 xorg_cv_cc_flag_unused_command_line_argument=no 16988fi 16989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16990fi 16991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16994 CFLAGS="$xorg_testset_save_CFLAGS" 16995fi 16996 16997found="no" 16998 16999 if test $found = "no" ; then 17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17002 fi 17003 17004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17006 fi 17007 17008 CFLAGS="$CFLAGS -Werror=address" 17009 17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17011printf %s "checking if $CC supports -Werror=address... " >&6; } 17012 cacheid=xorg_cv_cc_flag__Werror_address 17013 if eval test \${$cacheid+y} 17014then : 17015 printf %s "(cached) " >&6 17016else $as_nop 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019int i; 17020int 17021main (void) 17022{ 17023 17024 ; 17025 return 0; 17026} 17027_ACEOF 17028if ac_fn_c_try_link "$LINENO" 17029then : 17030 eval $cacheid=yes 17031else $as_nop 17032 eval $cacheid=no 17033fi 17034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17035 conftest$ac_exeext conftest.$ac_ext 17036fi 17037 17038 17039 CFLAGS="$xorg_testset_save_CFLAGS" 17040 17041 eval supported=\$$cacheid 17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17043printf "%s\n" "$supported" >&6; } 17044 if test "$supported" = "yes" ; then 17045 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17046 found="yes" 17047 fi 17048 fi 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064xorg_testset_save_CFLAGS="$CFLAGS" 17065 17066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17071then : 17072 printf %s "(cached) " >&6 17073else $as_nop 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075/* end confdefs.h. */ 17076int i; 17077_ACEOF 17078if ac_fn_c_try_compile "$LINENO" 17079then : 17080 xorg_cv_cc_flag_unknown_warning_option=yes 17081else $as_nop 17082 xorg_cv_cc_flag_unknown_warning_option=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17085fi 17086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090fi 17091 17092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17095 fi 17096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17099if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17100then : 17101 printf %s "(cached) " >&6 17102else $as_nop 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104/* end confdefs.h. */ 17105int i; 17106_ACEOF 17107if ac_fn_c_try_compile "$LINENO" 17108then : 17109 xorg_cv_cc_flag_unused_command_line_argument=yes 17110else $as_nop 17111 xorg_cv_cc_flag_unused_command_line_argument=no 17112fi 17113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17114fi 17115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17118 CFLAGS="$xorg_testset_save_CFLAGS" 17119fi 17120 17121found="no" 17122 17123 if test $found = "no" ; then 17124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17126 fi 17127 17128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17130 fi 17131 17132 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17133 17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17135printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17136 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17137 if eval test \${$cacheid+y} 17138then : 17139 printf %s "(cached) " >&6 17140else $as_nop 17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17142/* end confdefs.h. */ 17143int i; 17144int 17145main (void) 17146{ 17147 17148 ; 17149 return 0; 17150} 17151_ACEOF 17152if ac_fn_c_try_link "$LINENO" 17153then : 17154 eval $cacheid=yes 17155else $as_nop 17156 eval $cacheid=no 17157fi 17158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17159 conftest$ac_exeext conftest.$ac_ext 17160fi 17161 17162 17163 CFLAGS="$xorg_testset_save_CFLAGS" 17164 17165 eval supported=\$$cacheid 17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17167printf "%s\n" "$supported" >&6; } 17168 if test "$supported" = "yes" ; then 17169 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17170 found="yes" 17171 fi 17172 fi 17173 17174 if test $found = "no" ; then 17175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17177 fi 17178 17179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17181 fi 17182 17183 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17184 17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17186printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17187 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17188 if eval test \${$cacheid+y} 17189then : 17190 printf %s "(cached) " >&6 17191else $as_nop 17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17193/* end confdefs.h. */ 17194int i; 17195int 17196main (void) 17197{ 17198 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203if ac_fn_c_try_link "$LINENO" 17204then : 17205 eval $cacheid=yes 17206else $as_nop 17207 eval $cacheid=no 17208fi 17209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17210 conftest$ac_exeext conftest.$ac_ext 17211fi 17212 17213 17214 CFLAGS="$xorg_testset_save_CFLAGS" 17215 17216 eval supported=\$$cacheid 17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17218printf "%s\n" "$supported" >&6; } 17219 if test "$supported" = "yes" ; then 17220 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17221 found="yes" 17222 fi 17223 fi 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239xorg_testset_save_CFLAGS="$CFLAGS" 17240 17241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17245if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17246then : 17247 printf %s "(cached) " >&6 17248else $as_nop 17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17250/* end confdefs.h. */ 17251int i; 17252_ACEOF 17253if ac_fn_c_try_compile "$LINENO" 17254then : 17255 xorg_cv_cc_flag_unknown_warning_option=yes 17256else $as_nop 17257 xorg_cv_cc_flag_unknown_warning_option=no 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17260fi 17261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17262printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17264 CFLAGS="$xorg_testset_save_CFLAGS" 17265fi 17266 17267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17270 fi 17271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17273printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17274if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17275then : 17276 printf %s "(cached) " >&6 17277else $as_nop 17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280int i; 17281_ACEOF 17282if ac_fn_c_try_compile "$LINENO" 17283then : 17284 xorg_cv_cc_flag_unused_command_line_argument=yes 17285else $as_nop 17286 xorg_cv_cc_flag_unused_command_line_argument=no 17287fi 17288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17289fi 17290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294fi 17295 17296found="no" 17297 17298 if test $found = "no" ; then 17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17301 fi 17302 17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17305 fi 17306 17307 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17308 17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17310printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17311 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17312 if eval test \${$cacheid+y} 17313then : 17314 printf %s "(cached) " >&6 17315else $as_nop 17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17317/* end confdefs.h. */ 17318int i; 17319int 17320main (void) 17321{ 17322 17323 ; 17324 return 0; 17325} 17326_ACEOF 17327if ac_fn_c_try_link "$LINENO" 17328then : 17329 eval $cacheid=yes 17330else $as_nop 17331 eval $cacheid=no 17332fi 17333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17334 conftest$ac_exeext conftest.$ac_ext 17335fi 17336 17337 17338 CFLAGS="$xorg_testset_save_CFLAGS" 17339 17340 eval supported=\$$cacheid 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17342printf "%s\n" "$supported" >&6; } 17343 if test "$supported" = "yes" ; then 17344 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17345 found="yes" 17346 fi 17347 fi 17348 17349 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17350else 17351{ 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 17352printf "%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;} 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366xorg_testset_save_CFLAGS="$CFLAGS" 17367 17368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17373then : 17374 printf %s "(cached) " >&6 17375else $as_nop 17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17377/* end confdefs.h. */ 17378int i; 17379_ACEOF 17380if ac_fn_c_try_compile "$LINENO" 17381then : 17382 xorg_cv_cc_flag_unknown_warning_option=yes 17383else $as_nop 17384 xorg_cv_cc_flag_unknown_warning_option=no 17385fi 17386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17387fi 17388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17391 CFLAGS="$xorg_testset_save_CFLAGS" 17392fi 17393 17394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 fi 17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17402then : 17403 printf %s "(cached) " >&6 17404else $as_nop 17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17406/* end confdefs.h. */ 17407int i; 17408_ACEOF 17409if ac_fn_c_try_compile "$LINENO" 17410then : 17411 xorg_cv_cc_flag_unused_command_line_argument=yes 17412else $as_nop 17413 xorg_cv_cc_flag_unused_command_line_argument=no 17414fi 17415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17416fi 17417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17420 CFLAGS="$xorg_testset_save_CFLAGS" 17421fi 17422 17423found="no" 17424 17425 if test $found = "no" ; then 17426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17428 fi 17429 17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17432 fi 17433 17434 CFLAGS="$CFLAGS -Wimplicit" 17435 17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17437printf %s "checking if $CC supports -Wimplicit... " >&6; } 17438 cacheid=xorg_cv_cc_flag__Wimplicit 17439 if eval test \${$cacheid+y} 17440then : 17441 printf %s "(cached) " >&6 17442else $as_nop 17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17444/* end confdefs.h. */ 17445int i; 17446int 17447main (void) 17448{ 17449 17450 ; 17451 return 0; 17452} 17453_ACEOF 17454if ac_fn_c_try_link "$LINENO" 17455then : 17456 eval $cacheid=yes 17457else $as_nop 17458 eval $cacheid=no 17459fi 17460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17461 conftest$ac_exeext conftest.$ac_ext 17462fi 17463 17464 17465 CFLAGS="$xorg_testset_save_CFLAGS" 17466 17467 eval supported=\$$cacheid 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17469printf "%s\n" "$supported" >&6; } 17470 if test "$supported" = "yes" ; then 17471 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17472 found="yes" 17473 fi 17474 fi 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490xorg_testset_save_CFLAGS="$CFLAGS" 17491 17492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17496if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17497then : 17498 printf %s "(cached) " >&6 17499else $as_nop 17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17501/* end confdefs.h. */ 17502int i; 17503_ACEOF 17504if ac_fn_c_try_compile "$LINENO" 17505then : 17506 xorg_cv_cc_flag_unknown_warning_option=yes 17507else $as_nop 17508 xorg_cv_cc_flag_unknown_warning_option=no 17509fi 17510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17511fi 17512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17515 CFLAGS="$xorg_testset_save_CFLAGS" 17516fi 17517 17518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17521 fi 17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17526then : 17527 printf %s "(cached) " >&6 17528else $as_nop 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531int i; 17532_ACEOF 17533if ac_fn_c_try_compile "$LINENO" 17534then : 17535 xorg_cv_cc_flag_unused_command_line_argument=yes 17536else $as_nop 17537 xorg_cv_cc_flag_unused_command_line_argument=no 17538fi 17539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17540fi 17541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17544 CFLAGS="$xorg_testset_save_CFLAGS" 17545fi 17546 17547found="no" 17548 17549 if test $found = "no" ; then 17550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17552 fi 17553 17554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17556 fi 17557 17558 CFLAGS="$CFLAGS -Wnonnull" 17559 17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17561printf %s "checking if $CC supports -Wnonnull... " >&6; } 17562 cacheid=xorg_cv_cc_flag__Wnonnull 17563 if eval test \${$cacheid+y} 17564then : 17565 printf %s "(cached) " >&6 17566else $as_nop 17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569int i; 17570int 17571main (void) 17572{ 17573 17574 ; 17575 return 0; 17576} 17577_ACEOF 17578if ac_fn_c_try_link "$LINENO" 17579then : 17580 eval $cacheid=yes 17581else $as_nop 17582 eval $cacheid=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17585 conftest$ac_exeext conftest.$ac_ext 17586fi 17587 17588 17589 CFLAGS="$xorg_testset_save_CFLAGS" 17590 17591 eval supported=\$$cacheid 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17593printf "%s\n" "$supported" >&6; } 17594 if test "$supported" = "yes" ; then 17595 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17596 found="yes" 17597 fi 17598 fi 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614xorg_testset_save_CFLAGS="$CFLAGS" 17615 17616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17621then : 17622 printf %s "(cached) " >&6 17623else $as_nop 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO" 17629then : 17630 xorg_cv_cc_flag_unknown_warning_option=yes 17631else $as_nop 17632 xorg_cv_cc_flag_unknown_warning_option=no 17633fi 17634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17635fi 17636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17639 CFLAGS="$xorg_testset_save_CFLAGS" 17640fi 17641 17642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17645 fi 17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17650then : 17651 printf %s "(cached) " >&6 17652else $as_nop 17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17654/* end confdefs.h. */ 17655int i; 17656_ACEOF 17657if ac_fn_c_try_compile "$LINENO" 17658then : 17659 xorg_cv_cc_flag_unused_command_line_argument=yes 17660else $as_nop 17661 xorg_cv_cc_flag_unused_command_line_argument=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17664fi 17665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17668 CFLAGS="$xorg_testset_save_CFLAGS" 17669fi 17670 17671found="no" 17672 17673 if test $found = "no" ; then 17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17676 fi 17677 17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17680 fi 17681 17682 CFLAGS="$CFLAGS -Winit-self" 17683 17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17685printf %s "checking if $CC supports -Winit-self... " >&6; } 17686 cacheid=xorg_cv_cc_flag__Winit_self 17687 if eval test \${$cacheid+y} 17688then : 17689 printf %s "(cached) " >&6 17690else $as_nop 17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692/* end confdefs.h. */ 17693int i; 17694int 17695main (void) 17696{ 17697 17698 ; 17699 return 0; 17700} 17701_ACEOF 17702if ac_fn_c_try_link "$LINENO" 17703then : 17704 eval $cacheid=yes 17705else $as_nop 17706 eval $cacheid=no 17707fi 17708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17709 conftest$ac_exeext conftest.$ac_ext 17710fi 17711 17712 17713 CFLAGS="$xorg_testset_save_CFLAGS" 17714 17715 eval supported=\$$cacheid 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17717printf "%s\n" "$supported" >&6; } 17718 if test "$supported" = "yes" ; then 17719 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17720 found="yes" 17721 fi 17722 fi 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738xorg_testset_save_CFLAGS="$CFLAGS" 17739 17740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17744if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17745then : 17746 printf %s "(cached) " >&6 17747else $as_nop 17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17749/* end confdefs.h. */ 17750int i; 17751_ACEOF 17752if ac_fn_c_try_compile "$LINENO" 17753then : 17754 xorg_cv_cc_flag_unknown_warning_option=yes 17755else $as_nop 17756 xorg_cv_cc_flag_unknown_warning_option=no 17757fi 17758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17759fi 17760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17763 CFLAGS="$xorg_testset_save_CFLAGS" 17764fi 17765 17766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17769 fi 17770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17774then : 17775 printf %s "(cached) " >&6 17776else $as_nop 17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17778/* end confdefs.h. */ 17779int i; 17780_ACEOF 17781if ac_fn_c_try_compile "$LINENO" 17782then : 17783 xorg_cv_cc_flag_unused_command_line_argument=yes 17784else $as_nop 17785 xorg_cv_cc_flag_unused_command_line_argument=no 17786fi 17787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17788fi 17789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17792 CFLAGS="$xorg_testset_save_CFLAGS" 17793fi 17794 17795found="no" 17796 17797 if test $found = "no" ; then 17798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17800 fi 17801 17802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17804 fi 17805 17806 CFLAGS="$CFLAGS -Wmain" 17807 17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17809printf %s "checking if $CC supports -Wmain... " >&6; } 17810 cacheid=xorg_cv_cc_flag__Wmain 17811 if eval test \${$cacheid+y} 17812then : 17813 printf %s "(cached) " >&6 17814else $as_nop 17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17816/* end confdefs.h. */ 17817int i; 17818int 17819main (void) 17820{ 17821 17822 ; 17823 return 0; 17824} 17825_ACEOF 17826if ac_fn_c_try_link "$LINENO" 17827then : 17828 eval $cacheid=yes 17829else $as_nop 17830 eval $cacheid=no 17831fi 17832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17833 conftest$ac_exeext conftest.$ac_ext 17834fi 17835 17836 17837 CFLAGS="$xorg_testset_save_CFLAGS" 17838 17839 eval supported=\$$cacheid 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17841printf "%s\n" "$supported" >&6; } 17842 if test "$supported" = "yes" ; then 17843 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17844 found="yes" 17845 fi 17846 fi 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862xorg_testset_save_CFLAGS="$CFLAGS" 17863 17864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17868if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17869then : 17870 printf %s "(cached) " >&6 17871else $as_nop 17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874int i; 17875_ACEOF 17876if ac_fn_c_try_compile "$LINENO" 17877then : 17878 xorg_cv_cc_flag_unknown_warning_option=yes 17879else $as_nop 17880 xorg_cv_cc_flag_unknown_warning_option=no 17881fi 17882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17883fi 17884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17887 CFLAGS="$xorg_testset_save_CFLAGS" 17888fi 17889 17890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17893 fi 17894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17898then : 17899 printf %s "(cached) " >&6 17900else $as_nop 17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17902/* end confdefs.h. */ 17903int i; 17904_ACEOF 17905if ac_fn_c_try_compile "$LINENO" 17906then : 17907 xorg_cv_cc_flag_unused_command_line_argument=yes 17908else $as_nop 17909 xorg_cv_cc_flag_unused_command_line_argument=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17912fi 17913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917fi 17918 17919found="no" 17920 17921 if test $found = "no" ; then 17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17924 fi 17925 17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17928 fi 17929 17930 CFLAGS="$CFLAGS -Wmissing-braces" 17931 17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17933printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17934 cacheid=xorg_cv_cc_flag__Wmissing_braces 17935 if eval test \${$cacheid+y} 17936then : 17937 printf %s "(cached) " >&6 17938else $as_nop 17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17940/* end confdefs.h. */ 17941int i; 17942int 17943main (void) 17944{ 17945 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_link "$LINENO" 17951then : 17952 eval $cacheid=yes 17953else $as_nop 17954 eval $cacheid=no 17955fi 17956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17957 conftest$ac_exeext conftest.$ac_ext 17958fi 17959 17960 17961 CFLAGS="$xorg_testset_save_CFLAGS" 17962 17963 eval supported=\$$cacheid 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17965printf "%s\n" "$supported" >&6; } 17966 if test "$supported" = "yes" ; then 17967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17968 found="yes" 17969 fi 17970 fi 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986xorg_testset_save_CFLAGS="$CFLAGS" 17987 17988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17992if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17993then : 17994 printf %s "(cached) " >&6 17995else $as_nop 17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17997/* end confdefs.h. */ 17998int i; 17999_ACEOF 18000if ac_fn_c_try_compile "$LINENO" 18001then : 18002 xorg_cv_cc_flag_unknown_warning_option=yes 18003else $as_nop 18004 xorg_cv_cc_flag_unknown_warning_option=no 18005fi 18006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18007fi 18008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18011 CFLAGS="$xorg_testset_save_CFLAGS" 18012fi 18013 18014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18021if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18022then : 18023 printf %s "(cached) " >&6 18024else $as_nop 18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18026/* end confdefs.h. */ 18027int i; 18028_ACEOF 18029if ac_fn_c_try_compile "$LINENO" 18030then : 18031 xorg_cv_cc_flag_unused_command_line_argument=yes 18032else $as_nop 18033 xorg_cv_cc_flag_unused_command_line_argument=no 18034fi 18035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18036fi 18037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18040 CFLAGS="$xorg_testset_save_CFLAGS" 18041fi 18042 18043found="no" 18044 18045 if test $found = "no" ; then 18046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18048 fi 18049 18050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18052 fi 18053 18054 CFLAGS="$CFLAGS -Wsequence-point" 18055 18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18057printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18058 cacheid=xorg_cv_cc_flag__Wsequence_point 18059 if eval test \${$cacheid+y} 18060then : 18061 printf %s "(cached) " >&6 18062else $as_nop 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065int i; 18066int 18067main (void) 18068{ 18069 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074if ac_fn_c_try_link "$LINENO" 18075then : 18076 eval $cacheid=yes 18077else $as_nop 18078 eval $cacheid=no 18079fi 18080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18081 conftest$ac_exeext conftest.$ac_ext 18082fi 18083 18084 18085 CFLAGS="$xorg_testset_save_CFLAGS" 18086 18087 eval supported=\$$cacheid 18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18089printf "%s\n" "$supported" >&6; } 18090 if test "$supported" = "yes" ; then 18091 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18092 found="yes" 18093 fi 18094 fi 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110xorg_testset_save_CFLAGS="$CFLAGS" 18111 18112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18115printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18116if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18117then : 18118 printf %s "(cached) " >&6 18119else $as_nop 18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122int i; 18123_ACEOF 18124if ac_fn_c_try_compile "$LINENO" 18125then : 18126 xorg_cv_cc_flag_unknown_warning_option=yes 18127else $as_nop 18128 xorg_cv_cc_flag_unknown_warning_option=no 18129fi 18130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18131fi 18132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18135 CFLAGS="$xorg_testset_save_CFLAGS" 18136fi 18137 18138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18141 fi 18142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18145if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18146then : 18147 printf %s "(cached) " >&6 18148else $as_nop 18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18150/* end confdefs.h. */ 18151int i; 18152_ACEOF 18153if ac_fn_c_try_compile "$LINENO" 18154then : 18155 xorg_cv_cc_flag_unused_command_line_argument=yes 18156else $as_nop 18157 xorg_cv_cc_flag_unused_command_line_argument=no 18158fi 18159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18160fi 18161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18164 CFLAGS="$xorg_testset_save_CFLAGS" 18165fi 18166 18167found="no" 18168 18169 if test $found = "no" ; then 18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18172 fi 18173 18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18176 fi 18177 18178 CFLAGS="$CFLAGS -Wreturn-type" 18179 18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18181printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18182 cacheid=xorg_cv_cc_flag__Wreturn_type 18183 if eval test \${$cacheid+y} 18184then : 18185 printf %s "(cached) " >&6 18186else $as_nop 18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18188/* end confdefs.h. */ 18189int i; 18190int 18191main (void) 18192{ 18193 18194 ; 18195 return 0; 18196} 18197_ACEOF 18198if ac_fn_c_try_link "$LINENO" 18199then : 18200 eval $cacheid=yes 18201else $as_nop 18202 eval $cacheid=no 18203fi 18204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18205 conftest$ac_exeext conftest.$ac_ext 18206fi 18207 18208 18209 CFLAGS="$xorg_testset_save_CFLAGS" 18210 18211 eval supported=\$$cacheid 18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18213printf "%s\n" "$supported" >&6; } 18214 if test "$supported" = "yes" ; then 18215 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18216 found="yes" 18217 fi 18218 fi 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234xorg_testset_save_CFLAGS="$CFLAGS" 18235 18236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18241then : 18242 printf %s "(cached) " >&6 18243else $as_nop 18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18245/* end confdefs.h. */ 18246int i; 18247_ACEOF 18248if ac_fn_c_try_compile "$LINENO" 18249then : 18250 xorg_cv_cc_flag_unknown_warning_option=yes 18251else $as_nop 18252 xorg_cv_cc_flag_unknown_warning_option=no 18253fi 18254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18255fi 18256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18259 CFLAGS="$xorg_testset_save_CFLAGS" 18260fi 18261 18262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18270then : 18271 printf %s "(cached) " >&6 18272else $as_nop 18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18274/* end confdefs.h. */ 18275int i; 18276_ACEOF 18277if ac_fn_c_try_compile "$LINENO" 18278then : 18279 xorg_cv_cc_flag_unused_command_line_argument=yes 18280else $as_nop 18281 xorg_cv_cc_flag_unused_command_line_argument=no 18282fi 18283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18284fi 18285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18288 CFLAGS="$xorg_testset_save_CFLAGS" 18289fi 18290 18291found="no" 18292 18293 if test $found = "no" ; then 18294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18296 fi 18297 18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18300 fi 18301 18302 CFLAGS="$CFLAGS -Wtrigraphs" 18303 18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18305printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18306 cacheid=xorg_cv_cc_flag__Wtrigraphs 18307 if eval test \${$cacheid+y} 18308then : 18309 printf %s "(cached) " >&6 18310else $as_nop 18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313int i; 18314int 18315main (void) 18316{ 18317 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322if ac_fn_c_try_link "$LINENO" 18323then : 18324 eval $cacheid=yes 18325else $as_nop 18326 eval $cacheid=no 18327fi 18328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18329 conftest$ac_exeext conftest.$ac_ext 18330fi 18331 18332 18333 CFLAGS="$xorg_testset_save_CFLAGS" 18334 18335 eval supported=\$$cacheid 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18337printf "%s\n" "$supported" >&6; } 18338 if test "$supported" = "yes" ; then 18339 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18340 found="yes" 18341 fi 18342 fi 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358xorg_testset_save_CFLAGS="$CFLAGS" 18359 18360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18365then : 18366 printf %s "(cached) " >&6 18367else $as_nop 18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18369/* end confdefs.h. */ 18370int i; 18371_ACEOF 18372if ac_fn_c_try_compile "$LINENO" 18373then : 18374 xorg_cv_cc_flag_unknown_warning_option=yes 18375else $as_nop 18376 xorg_cv_cc_flag_unknown_warning_option=no 18377fi 18378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18379fi 18380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384fi 18385 18386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18393if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18394then : 18395 printf %s "(cached) " >&6 18396else $as_nop 18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398/* end confdefs.h. */ 18399int i; 18400_ACEOF 18401if ac_fn_c_try_compile "$LINENO" 18402then : 18403 xorg_cv_cc_flag_unused_command_line_argument=yes 18404else $as_nop 18405 xorg_cv_cc_flag_unused_command_line_argument=no 18406fi 18407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18408fi 18409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18412 CFLAGS="$xorg_testset_save_CFLAGS" 18413fi 18414 18415found="no" 18416 18417 if test $found = "no" ; then 18418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18420 fi 18421 18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18424 fi 18425 18426 CFLAGS="$CFLAGS -Warray-bounds" 18427 18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18429printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18430 cacheid=xorg_cv_cc_flag__Warray_bounds 18431 if eval test \${$cacheid+y} 18432then : 18433 printf %s "(cached) " >&6 18434else $as_nop 18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18436/* end confdefs.h. */ 18437int i; 18438int 18439main (void) 18440{ 18441 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446if ac_fn_c_try_link "$LINENO" 18447then : 18448 eval $cacheid=yes 18449else $as_nop 18450 eval $cacheid=no 18451fi 18452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18453 conftest$ac_exeext conftest.$ac_ext 18454fi 18455 18456 18457 CFLAGS="$xorg_testset_save_CFLAGS" 18458 18459 eval supported=\$$cacheid 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18461printf "%s\n" "$supported" >&6; } 18462 if test "$supported" = "yes" ; then 18463 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18464 found="yes" 18465 fi 18466 fi 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482xorg_testset_save_CFLAGS="$CFLAGS" 18483 18484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18489then : 18490 printf %s "(cached) " >&6 18491else $as_nop 18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493/* end confdefs.h. */ 18494int i; 18495_ACEOF 18496if ac_fn_c_try_compile "$LINENO" 18497then : 18498 xorg_cv_cc_flag_unknown_warning_option=yes 18499else $as_nop 18500 xorg_cv_cc_flag_unknown_warning_option=no 18501fi 18502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 $as_nop 18521 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 $as_nop 18529 xorg_cv_cc_flag_unused_command_line_argument=no 18530fi 18531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18532fi 18533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18536 CFLAGS="$xorg_testset_save_CFLAGS" 18537fi 18538 18539found="no" 18540 18541 if test $found = "no" ; then 18542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18544 fi 18545 18546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18548 fi 18549 18550 CFLAGS="$CFLAGS -Wwrite-strings" 18551 18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18553printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18554 cacheid=xorg_cv_cc_flag__Wwrite_strings 18555 if eval test \${$cacheid+y} 18556then : 18557 printf %s "(cached) " >&6 18558else $as_nop 18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18560/* end confdefs.h. */ 18561int i; 18562int 18563main (void) 18564{ 18565 18566 ; 18567 return 0; 18568} 18569_ACEOF 18570if ac_fn_c_try_link "$LINENO" 18571then : 18572 eval $cacheid=yes 18573else $as_nop 18574 eval $cacheid=no 18575fi 18576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18577 conftest$ac_exeext conftest.$ac_ext 18578fi 18579 18580 18581 CFLAGS="$xorg_testset_save_CFLAGS" 18582 18583 eval supported=\$$cacheid 18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18585printf "%s\n" "$supported" >&6; } 18586 if test "$supported" = "yes" ; then 18587 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18588 found="yes" 18589 fi 18590 fi 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606xorg_testset_save_CFLAGS="$CFLAGS" 18607 18608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18613then : 18614 printf %s "(cached) " >&6 18615else $as_nop 18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18617/* end confdefs.h. */ 18618int i; 18619_ACEOF 18620if ac_fn_c_try_compile "$LINENO" 18621then : 18622 xorg_cv_cc_flag_unknown_warning_option=yes 18623else $as_nop 18624 xorg_cv_cc_flag_unknown_warning_option=no 18625fi 18626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18627fi 18628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18631 CFLAGS="$xorg_testset_save_CFLAGS" 18632fi 18633 18634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18637 fi 18638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18641if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18642then : 18643 printf %s "(cached) " >&6 18644else $as_nop 18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646/* end confdefs.h. */ 18647int i; 18648_ACEOF 18649if ac_fn_c_try_compile "$LINENO" 18650then : 18651 xorg_cv_cc_flag_unused_command_line_argument=yes 18652else $as_nop 18653 xorg_cv_cc_flag_unused_command_line_argument=no 18654fi 18655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18656fi 18657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18658printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18660 CFLAGS="$xorg_testset_save_CFLAGS" 18661fi 18662 18663found="no" 18664 18665 if test $found = "no" ; then 18666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18668 fi 18669 18670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18672 fi 18673 18674 CFLAGS="$CFLAGS -Waddress" 18675 18676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18677printf %s "checking if $CC supports -Waddress... " >&6; } 18678 cacheid=xorg_cv_cc_flag__Waddress 18679 if eval test \${$cacheid+y} 18680then : 18681 printf %s "(cached) " >&6 18682else $as_nop 18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18684/* end confdefs.h. */ 18685int i; 18686int 18687main (void) 18688{ 18689 18690 ; 18691 return 0; 18692} 18693_ACEOF 18694if ac_fn_c_try_link "$LINENO" 18695then : 18696 eval $cacheid=yes 18697else $as_nop 18698 eval $cacheid=no 18699fi 18700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18701 conftest$ac_exeext conftest.$ac_ext 18702fi 18703 18704 18705 CFLAGS="$xorg_testset_save_CFLAGS" 18706 18707 eval supported=\$$cacheid 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18709printf "%s\n" "$supported" >&6; } 18710 if test "$supported" = "yes" ; then 18711 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18712 found="yes" 18713 fi 18714 fi 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730xorg_testset_save_CFLAGS="$CFLAGS" 18731 18732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18737then : 18738 printf %s "(cached) " >&6 18739else $as_nop 18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18741/* end confdefs.h. */ 18742int i; 18743_ACEOF 18744if ac_fn_c_try_compile "$LINENO" 18745then : 18746 xorg_cv_cc_flag_unknown_warning_option=yes 18747else $as_nop 18748 xorg_cv_cc_flag_unknown_warning_option=no 18749fi 18750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18751fi 18752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18753printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18755 CFLAGS="$xorg_testset_save_CFLAGS" 18756fi 18757 18758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18761 fi 18762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18764printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18765if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18766then : 18767 printf %s "(cached) " >&6 18768else $as_nop 18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18770/* end confdefs.h. */ 18771int i; 18772_ACEOF 18773if ac_fn_c_try_compile "$LINENO" 18774then : 18775 xorg_cv_cc_flag_unused_command_line_argument=yes 18776else $as_nop 18777 xorg_cv_cc_flag_unused_command_line_argument=no 18778fi 18779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18780fi 18781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18784 CFLAGS="$xorg_testset_save_CFLAGS" 18785fi 18786 18787found="no" 18788 18789 if test $found = "no" ; then 18790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18792 fi 18793 18794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18796 fi 18797 18798 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18799 18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18801printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18802 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18803 if eval test \${$cacheid+y} 18804then : 18805 printf %s "(cached) " >&6 18806else $as_nop 18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18808/* end confdefs.h. */ 18809int i; 18810int 18811main (void) 18812{ 18813 18814 ; 18815 return 0; 18816} 18817_ACEOF 18818if ac_fn_c_try_link "$LINENO" 18819then : 18820 eval $cacheid=yes 18821else $as_nop 18822 eval $cacheid=no 18823fi 18824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18825 conftest$ac_exeext conftest.$ac_ext 18826fi 18827 18828 18829 CFLAGS="$xorg_testset_save_CFLAGS" 18830 18831 eval supported=\$$cacheid 18832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18833printf "%s\n" "$supported" >&6; } 18834 if test "$supported" = "yes" ; then 18835 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18836 found="yes" 18837 fi 18838 fi 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854xorg_testset_save_CFLAGS="$CFLAGS" 18855 18856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18861then : 18862 printf %s "(cached) " >&6 18863else $as_nop 18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18865/* end confdefs.h. */ 18866int i; 18867_ACEOF 18868if ac_fn_c_try_compile "$LINENO" 18869then : 18870 xorg_cv_cc_flag_unknown_warning_option=yes 18871else $as_nop 18872 xorg_cv_cc_flag_unknown_warning_option=no 18873fi 18874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18875fi 18876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18877printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18879 CFLAGS="$xorg_testset_save_CFLAGS" 18880fi 18881 18882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18885 fi 18886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18888printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18889if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18890then : 18891 printf %s "(cached) " >&6 18892else $as_nop 18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18894/* end confdefs.h. */ 18895int i; 18896_ACEOF 18897if ac_fn_c_try_compile "$LINENO" 18898then : 18899 xorg_cv_cc_flag_unused_command_line_argument=yes 18900else $as_nop 18901 xorg_cv_cc_flag_unused_command_line_argument=no 18902fi 18903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18904fi 18905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18906printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18908 CFLAGS="$xorg_testset_save_CFLAGS" 18909fi 18910 18911found="no" 18912 18913 if test $found = "no" ; then 18914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18916 fi 18917 18918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18920 fi 18921 18922 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18923 18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18925printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18926 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18927 if eval test \${$cacheid+y} 18928then : 18929 printf %s "(cached) " >&6 18930else $as_nop 18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18932/* end confdefs.h. */ 18933int i; 18934int 18935main (void) 18936{ 18937 18938 ; 18939 return 0; 18940} 18941_ACEOF 18942if ac_fn_c_try_link "$LINENO" 18943then : 18944 eval $cacheid=yes 18945else $as_nop 18946 eval $cacheid=no 18947fi 18948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18949 conftest$ac_exeext conftest.$ac_ext 18950fi 18951 18952 18953 CFLAGS="$xorg_testset_save_CFLAGS" 18954 18955 eval supported=\$$cacheid 18956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18957printf "%s\n" "$supported" >&6; } 18958 if test "$supported" = "yes" ; then 18959 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18960 found="yes" 18961 fi 18962 fi 18963 18964 18965fi 18966 18967 18968 18969 18970 18971 18972 18973 CWARNFLAGS="$BASE_CFLAGS" 18974 if test "x$GCC" = xyes ; then 18975 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18976 fi 18977 18978 18979 18980 18981 18982 18983 18984 18985# Check whether --enable-strict-compilation was given. 18986if test ${enable_strict_compilation+y} 18987then : 18988 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18989else $as_nop 18990 STRICT_COMPILE=no 18991fi 18992 18993 18994 18995 18996 18997 18998STRICT_CFLAGS="" 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012xorg_testset_save_CFLAGS="$CFLAGS" 19013 19014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19019then : 19020 printf %s "(cached) " >&6 19021else $as_nop 19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19023/* end confdefs.h. */ 19024int i; 19025_ACEOF 19026if ac_fn_c_try_compile "$LINENO" 19027then : 19028 xorg_cv_cc_flag_unknown_warning_option=yes 19029else $as_nop 19030 xorg_cv_cc_flag_unknown_warning_option=no 19031fi 19032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19033fi 19034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038fi 19039 19040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19043 fi 19044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19047if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19048then : 19049 printf %s "(cached) " >&6 19050else $as_nop 19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19052/* end confdefs.h. */ 19053int i; 19054_ACEOF 19055if ac_fn_c_try_compile "$LINENO" 19056then : 19057 xorg_cv_cc_flag_unused_command_line_argument=yes 19058else $as_nop 19059 xorg_cv_cc_flag_unused_command_line_argument=no 19060fi 19061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19062fi 19063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19066 CFLAGS="$xorg_testset_save_CFLAGS" 19067fi 19068 19069found="no" 19070 19071 if test $found = "no" ; then 19072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19074 fi 19075 19076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19078 fi 19079 19080 CFLAGS="$CFLAGS -pedantic" 19081 19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19083printf %s "checking if $CC supports -pedantic... " >&6; } 19084 cacheid=xorg_cv_cc_flag__pedantic 19085 if eval test \${$cacheid+y} 19086then : 19087 printf %s "(cached) " >&6 19088else $as_nop 19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19090/* end confdefs.h. */ 19091int i; 19092int 19093main (void) 19094{ 19095 19096 ; 19097 return 0; 19098} 19099_ACEOF 19100if ac_fn_c_try_link "$LINENO" 19101then : 19102 eval $cacheid=yes 19103else $as_nop 19104 eval $cacheid=no 19105fi 19106rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19107 conftest$ac_exeext conftest.$ac_ext 19108fi 19109 19110 19111 CFLAGS="$xorg_testset_save_CFLAGS" 19112 19113 eval supported=\$$cacheid 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19115printf "%s\n" "$supported" >&6; } 19116 if test "$supported" = "yes" ; then 19117 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19118 found="yes" 19119 fi 19120 fi 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136xorg_testset_save_CFLAGS="$CFLAGS" 19137 19138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19142if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19143then : 19144 printf %s "(cached) " >&6 19145else $as_nop 19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19147/* end confdefs.h. */ 19148int i; 19149_ACEOF 19150if ac_fn_c_try_compile "$LINENO" 19151then : 19152 xorg_cv_cc_flag_unknown_warning_option=yes 19153else $as_nop 19154 xorg_cv_cc_flag_unknown_warning_option=no 19155fi 19156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19157fi 19158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19161 CFLAGS="$xorg_testset_save_CFLAGS" 19162fi 19163 19164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19167 fi 19168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19171if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19172then : 19173 printf %s "(cached) " >&6 19174else $as_nop 19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19176/* end confdefs.h. */ 19177int i; 19178_ACEOF 19179if ac_fn_c_try_compile "$LINENO" 19180then : 19181 xorg_cv_cc_flag_unused_command_line_argument=yes 19182else $as_nop 19183 xorg_cv_cc_flag_unused_command_line_argument=no 19184fi 19185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19186fi 19187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19190 CFLAGS="$xorg_testset_save_CFLAGS" 19191fi 19192 19193found="no" 19194 19195 if test $found = "no" ; then 19196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19198 fi 19199 19200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19202 fi 19203 19204 CFLAGS="$CFLAGS -Werror" 19205 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19207printf %s "checking if $CC supports -Werror... " >&6; } 19208 cacheid=xorg_cv_cc_flag__Werror 19209 if eval test \${$cacheid+y} 19210then : 19211 printf %s "(cached) " >&6 19212else $as_nop 19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19214/* end confdefs.h. */ 19215int i; 19216int 19217main (void) 19218{ 19219 19220 ; 19221 return 0; 19222} 19223_ACEOF 19224if ac_fn_c_try_link "$LINENO" 19225then : 19226 eval $cacheid=yes 19227else $as_nop 19228 eval $cacheid=no 19229fi 19230rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19231 conftest$ac_exeext conftest.$ac_ext 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 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19242 found="yes" 19243 fi 19244 fi 19245 19246 if test $found = "no" ; then 19247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19249 fi 19250 19251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19253 fi 19254 19255 CFLAGS="$CFLAGS -errwarn" 19256 19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19258printf %s "checking if $CC supports -errwarn... " >&6; } 19259 cacheid=xorg_cv_cc_flag__errwarn 19260 if eval test \${$cacheid+y} 19261then : 19262 printf %s "(cached) " >&6 19263else $as_nop 19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19265/* end confdefs.h. */ 19266int i; 19267int 19268main (void) 19269{ 19270 19271 ; 19272 return 0; 19273} 19274_ACEOF 19275if ac_fn_c_try_link "$LINENO" 19276then : 19277 eval $cacheid=yes 19278else $as_nop 19279 eval $cacheid=no 19280fi 19281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19282 conftest$ac_exeext conftest.$ac_ext 19283fi 19284 19285 19286 CFLAGS="$xorg_testset_save_CFLAGS" 19287 19288 eval supported=\$$cacheid 19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19290printf "%s\n" "$supported" >&6; } 19291 if test "$supported" = "yes" ; then 19292 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19293 found="yes" 19294 fi 19295 fi 19296 19297 19298 19299# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19300# activate it with -Werror, so we add it here explicitly. 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314xorg_testset_save_CFLAGS="$CFLAGS" 19315 19316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19320if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19321then : 19322 printf %s "(cached) " >&6 19323else $as_nop 19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19325/* end confdefs.h. */ 19326int i; 19327_ACEOF 19328if ac_fn_c_try_compile "$LINENO" 19329then : 19330 xorg_cv_cc_flag_unknown_warning_option=yes 19331else $as_nop 19332 xorg_cv_cc_flag_unknown_warning_option=no 19333fi 19334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19335fi 19336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19339 CFLAGS="$xorg_testset_save_CFLAGS" 19340fi 19341 19342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19345 fi 19346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19349if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19350then : 19351 printf %s "(cached) " >&6 19352else $as_nop 19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19354/* end confdefs.h. */ 19355int i; 19356_ACEOF 19357if ac_fn_c_try_compile "$LINENO" 19358then : 19359 xorg_cv_cc_flag_unused_command_line_argument=yes 19360else $as_nop 19361 xorg_cv_cc_flag_unused_command_line_argument=no 19362fi 19363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19364fi 19365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19368 CFLAGS="$xorg_testset_save_CFLAGS" 19369fi 19370 19371found="no" 19372 19373 if test $found = "no" ; then 19374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19376 fi 19377 19378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19380 fi 19381 19382 CFLAGS="$CFLAGS -Werror=attributes" 19383 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19385printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19386 cacheid=xorg_cv_cc_flag__Werror_attributes 19387 if eval test \${$cacheid+y} 19388then : 19389 printf %s "(cached) " >&6 19390else $as_nop 19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19392/* end confdefs.h. */ 19393int i; 19394int 19395main (void) 19396{ 19397 19398 ; 19399 return 0; 19400} 19401_ACEOF 19402if ac_fn_c_try_link "$LINENO" 19403then : 19404 eval $cacheid=yes 19405else $as_nop 19406 eval $cacheid=no 19407fi 19408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19409 conftest$ac_exeext conftest.$ac_ext 19410fi 19411 19412 19413 CFLAGS="$xorg_testset_save_CFLAGS" 19414 19415 eval supported=\$$cacheid 19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19417printf "%s\n" "$supported" >&6; } 19418 if test "$supported" = "yes" ; then 19419 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19420 found="yes" 19421 fi 19422 fi 19423 19424 19425 19426if test "x$STRICT_COMPILE" = "xyes"; then 19427 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19428 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19429fi 19430 19431 19432 19433 19434 19435 19436cat >>confdefs.h <<_ACEOF 19437#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19438_ACEOF 19439 19440 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19441 if test "x$PVM" = "x"; then 19442 PVM="0" 19443 fi 19444 19445printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19446 19447 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19448 if test "x$PVP" = "x"; then 19449 PVP="0" 19450 fi 19451 19452printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19453 19454 19455 19456CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19457mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19458|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19459touch \$(top_srcdir)/ChangeLog; \ 19460echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19461 19462 19463 19464 19465macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19466INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19467mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19468|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19469touch \$(top_srcdir)/INSTALL; \ 19470echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19471 19472 19473 19474 19475 19476 19477case $host_os in 19478 solaris*) 19479 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19480 # check for a man page file found in later versions that use 19481 # traditional section numbers instead 19482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19483printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19484if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19485then : 19486 printf %s "(cached) " >&6 19487else $as_nop 19488 test "$cross_compiling" = yes && 19489 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19490if test -r "/usr/share/man/man7/attributes.7"; then 19491 ac_cv_file__usr_share_man_man7_attributes_7=yes 19492else 19493 ac_cv_file__usr_share_man_man7_attributes_7=no 19494fi 19495fi 19496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19497printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19498if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19499then : 19500 SYSV_MAN_SECTIONS=false 19501else $as_nop 19502 SYSV_MAN_SECTIONS=true 19503fi 19504 19505 ;; 19506 *) SYSV_MAN_SECTIONS=false ;; 19507esac 19508 19509if test x$APP_MAN_SUFFIX = x ; then 19510 APP_MAN_SUFFIX=1 19511fi 19512if test x$APP_MAN_DIR = x ; then 19513 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19514fi 19515 19516if test x$LIB_MAN_SUFFIX = x ; then 19517 LIB_MAN_SUFFIX=3 19518fi 19519if test x$LIB_MAN_DIR = x ; then 19520 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19521fi 19522 19523if test x$FILE_MAN_SUFFIX = x ; then 19524 case $SYSV_MAN_SECTIONS in 19525 true) FILE_MAN_SUFFIX=4 ;; 19526 *) FILE_MAN_SUFFIX=5 ;; 19527 esac 19528fi 19529if test x$FILE_MAN_DIR = x ; then 19530 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19531fi 19532 19533if test x$MISC_MAN_SUFFIX = x ; then 19534 case $SYSV_MAN_SECTIONS in 19535 true) MISC_MAN_SUFFIX=5 ;; 19536 *) MISC_MAN_SUFFIX=7 ;; 19537 esac 19538fi 19539if test x$MISC_MAN_DIR = x ; then 19540 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19541fi 19542 19543if test x$DRIVER_MAN_SUFFIX = x ; then 19544 case $SYSV_MAN_SECTIONS in 19545 true) DRIVER_MAN_SUFFIX=7 ;; 19546 *) DRIVER_MAN_SUFFIX=4 ;; 19547 esac 19548fi 19549if test x$DRIVER_MAN_DIR = x ; then 19550 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19551fi 19552 19553if test x$ADMIN_MAN_SUFFIX = x ; then 19554 case $SYSV_MAN_SECTIONS in 19555 true) ADMIN_MAN_SUFFIX=1m ;; 19556 *) ADMIN_MAN_SUFFIX=8 ;; 19557 esac 19558fi 19559if test x$ADMIN_MAN_DIR = x ; then 19560 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19561fi 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577XORG_MAN_PAGE="X Version 11" 19578 19579MAN_SUBSTS="\ 19580 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19581 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19582 -e 's|__xservername__|Xorg|g' \ 19583 -e 's|__xconfigfile__|xorg.conf|g' \ 19584 -e 's|__projectroot__|\$(prefix)|g' \ 19585 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19586 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19587 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19588 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19589 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19590 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19591 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19592 19593 19594 19595# Check whether --enable-silent-rules was given. 19596if test ${enable_silent_rules+y} 19597then : 19598 enableval=$enable_silent_rules; 19599fi 19600 19601case $enable_silent_rules in # ((( 19602 yes) AM_DEFAULT_VERBOSITY=0;; 19603 no) AM_DEFAULT_VERBOSITY=1;; 19604 *) AM_DEFAULT_VERBOSITY=0;; 19605esac 19606am_make=${MAKE-make} 19607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19608printf %s "checking whether $am_make supports nested variables... " >&6; } 19609if test ${am_cv_make_support_nested_variables+y} 19610then : 19611 printf %s "(cached) " >&6 19612else $as_nop 19613 if printf "%s\n" 'TRUE=$(BAR$(V)) 19614BAR0=false 19615BAR1=true 19616V=1 19617am__doit: 19618 @$(TRUE) 19619.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19620 am_cv_make_support_nested_variables=yes 19621else 19622 am_cv_make_support_nested_variables=no 19623fi 19624fi 19625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19626printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19627if test $am_cv_make_support_nested_variables = yes; then 19628 AM_V='$(V)' 19629 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19630else 19631 AM_V=$AM_DEFAULT_VERBOSITY 19632 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19633fi 19634AM_BACKSLASH='\' 19635 19636 19637 19638 19639# Check whether --enable-docs was given. 19640if test ${enable_docs+y} 19641then : 19642 enableval=$enable_docs; build_docs=$enableval 19643else $as_nop 19644 build_docs=yes 19645fi 19646 19647 19648 if test x$build_docs = xyes; then 19649 ENABLE_DOCS_TRUE= 19650 ENABLE_DOCS_FALSE='#' 19651else 19652 ENABLE_DOCS_TRUE='#' 19653 ENABLE_DOCS_FALSE= 19654fi 19655 19656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 19657printf %s "checking whether to build documentation... " >&6; } 19658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 19659printf "%s\n" "$build_docs" >&6; } 19660 19661 19662 19663# Check whether --enable-specs was given. 19664if test ${enable_specs+y} 19665then : 19666 enableval=$enable_specs; build_specs=$enableval 19667else $as_nop 19668 build_specs=yes 19669fi 19670 19671 19672 if test x$build_specs = xyes; then 19673 ENABLE_SPECS_TRUE= 19674 ENABLE_SPECS_FALSE='#' 19675else 19676 ENABLE_SPECS_TRUE='#' 19677 ENABLE_SPECS_FALSE= 19678fi 19679 19680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19681printf %s "checking whether to build functional specifications... " >&6; } 19682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19683printf "%s\n" "$build_specs" >&6; } 19684 19685 19686 19687 19688 19689# Check whether --with-xmlto was given. 19690if test ${with_xmlto+y} 19691then : 19692 withval=$with_xmlto; use_xmlto=$withval 19693else $as_nop 19694 use_xmlto=auto 19695fi 19696 19697 19698 19699if test "x$use_xmlto" = x"auto"; then 19700 # Extract the first word of "xmlto", so it can be a program name with args. 19701set dummy xmlto; ac_word=$2 19702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19703printf %s "checking for $ac_word... " >&6; } 19704if test ${ac_cv_path_XMLTO+y} 19705then : 19706 printf %s "(cached) " >&6 19707else $as_nop 19708 case $XMLTO in 19709 [\\/]* | ?:[\\/]*) 19710 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19711 ;; 19712 *) 19713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19714for as_dir in $PATH 19715do 19716 IFS=$as_save_IFS 19717 case $as_dir in #((( 19718 '') as_dir=./ ;; 19719 */) ;; 19720 *) as_dir=$as_dir/ ;; 19721 esac 19722 for ac_exec_ext in '' $ac_executable_extensions; do 19723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19724 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19726 break 2 19727 fi 19728done 19729 done 19730IFS=$as_save_IFS 19731 19732 ;; 19733esac 19734fi 19735XMLTO=$ac_cv_path_XMLTO 19736if test -n "$XMLTO"; then 19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19738printf "%s\n" "$XMLTO" >&6; } 19739else 19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19741printf "%s\n" "no" >&6; } 19742fi 19743 19744 19745 if test "x$XMLTO" = "x"; then 19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19747printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19748 have_xmlto=no 19749 else 19750 have_xmlto=yes 19751 fi 19752elif test "x$use_xmlto" = x"yes" ; then 19753 # Extract the first word of "xmlto", so it can be a program name with args. 19754set dummy xmlto; ac_word=$2 19755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19756printf %s "checking for $ac_word... " >&6; } 19757if test ${ac_cv_path_XMLTO+y} 19758then : 19759 printf %s "(cached) " >&6 19760else $as_nop 19761 case $XMLTO in 19762 [\\/]* | ?:[\\/]*) 19763 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19764 ;; 19765 *) 19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19767for as_dir in $PATH 19768do 19769 IFS=$as_save_IFS 19770 case $as_dir in #((( 19771 '') as_dir=./ ;; 19772 */) ;; 19773 *) as_dir=$as_dir/ ;; 19774 esac 19775 for ac_exec_ext in '' $ac_executable_extensions; do 19776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19777 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19779 break 2 19780 fi 19781done 19782 done 19783IFS=$as_save_IFS 19784 19785 ;; 19786esac 19787fi 19788XMLTO=$ac_cv_path_XMLTO 19789if test -n "$XMLTO"; then 19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19791printf "%s\n" "$XMLTO" >&6; } 19792else 19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19794printf "%s\n" "no" >&6; } 19795fi 19796 19797 19798 if test "x$XMLTO" = "x"; then 19799 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19800 fi 19801 have_xmlto=yes 19802elif test "x$use_xmlto" = x"no" ; then 19803 if test "x$XMLTO" != "x"; then 19804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19805printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19806 fi 19807 have_xmlto=no 19808else 19809 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19810fi 19811 19812# Test for a minimum version of xmlto, if provided. 19813if test "$have_xmlto" = yes; then 19814 # scrape the xmlto version 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19816printf %s "checking the xmlto version... " >&6; } 19817 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19819printf "%s\n" "$xmlto_version" >&6; } 19820 as_arg_v1=$xmlto_version 19821as_arg_v2=0.0.22 19822awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19823case $? in #( 19824 1) : 19825 if test "x$use_xmlto" = xauto; then 19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19827printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19828 have_xmlto=no 19829 else 19830 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19831 fi ;; #( 19832 0) : 19833 ;; #( 19834 2) : 19835 ;; #( 19836 *) : 19837 ;; 19838esac 19839fi 19840 19841# Test for the ability of xmlto to generate a text target 19842# 19843# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19844# following test for empty XML docbook files. 19845# For compatibility reasons use the following empty XML docbook file and if 19846# it fails try it again with a non-empty XML file. 19847have_xmlto_text=no 19848cat > conftest.xml << "EOF" 19849EOF 19850if test "$have_xmlto" = yes 19851then : 19852 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19853then : 19854 have_xmlto_text=yes 19855else $as_nop 19856 # Try it again with a non-empty XML file. 19857 cat > conftest.xml << "EOF" 19858<x></x> 19859EOF 19860 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19861then : 19862 have_xmlto_text=yes 19863else $as_nop 19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19865printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19866fi 19867fi 19868fi 19869rm -f conftest.xml 19870 if test $have_xmlto_text = yes; then 19871 HAVE_XMLTO_TEXT_TRUE= 19872 HAVE_XMLTO_TEXT_FALSE='#' 19873else 19874 HAVE_XMLTO_TEXT_TRUE='#' 19875 HAVE_XMLTO_TEXT_FALSE= 19876fi 19877 19878 if test "$have_xmlto" = yes; then 19879 HAVE_XMLTO_TRUE= 19880 HAVE_XMLTO_FALSE='#' 19881else 19882 HAVE_XMLTO_TRUE='#' 19883 HAVE_XMLTO_FALSE= 19884fi 19885 19886 19887 19888 19889 19890 19891# Check whether --with-fop was given. 19892if test ${with_fop+y} 19893then : 19894 withval=$with_fop; use_fop=$withval 19895else $as_nop 19896 use_fop=auto 19897fi 19898 19899 19900 19901if test "x$use_fop" = x"auto"; then 19902 # Extract the first word of "fop", so it can be a program name with args. 19903set dummy fop; ac_word=$2 19904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19905printf %s "checking for $ac_word... " >&6; } 19906if test ${ac_cv_path_FOP+y} 19907then : 19908 printf %s "(cached) " >&6 19909else $as_nop 19910 case $FOP in 19911 [\\/]* | ?:[\\/]*) 19912 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19913 ;; 19914 *) 19915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19916for as_dir in $PATH 19917do 19918 IFS=$as_save_IFS 19919 case $as_dir in #((( 19920 '') as_dir=./ ;; 19921 */) ;; 19922 *) as_dir=$as_dir/ ;; 19923 esac 19924 for ac_exec_ext in '' $ac_executable_extensions; do 19925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19926 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19928 break 2 19929 fi 19930done 19931 done 19932IFS=$as_save_IFS 19933 19934 ;; 19935esac 19936fi 19937FOP=$ac_cv_path_FOP 19938if test -n "$FOP"; then 19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19940printf "%s\n" "$FOP" >&6; } 19941else 19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19943printf "%s\n" "no" >&6; } 19944fi 19945 19946 19947 if test "x$FOP" = "x"; then 19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19949printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19950 have_fop=no 19951 else 19952 have_fop=yes 19953 fi 19954elif test "x$use_fop" = x"yes" ; then 19955 # Extract the first word of "fop", so it can be a program name with args. 19956set dummy fop; ac_word=$2 19957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19958printf %s "checking for $ac_word... " >&6; } 19959if test ${ac_cv_path_FOP+y} 19960then : 19961 printf %s "(cached) " >&6 19962else $as_nop 19963 case $FOP in 19964 [\\/]* | ?:[\\/]*) 19965 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19966 ;; 19967 *) 19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19969for as_dir in $PATH 19970do 19971 IFS=$as_save_IFS 19972 case $as_dir in #((( 19973 '') as_dir=./ ;; 19974 */) ;; 19975 *) as_dir=$as_dir/ ;; 19976 esac 19977 for ac_exec_ext in '' $ac_executable_extensions; do 19978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19979 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19981 break 2 19982 fi 19983done 19984 done 19985IFS=$as_save_IFS 19986 19987 ;; 19988esac 19989fi 19990FOP=$ac_cv_path_FOP 19991if test -n "$FOP"; then 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19993printf "%s\n" "$FOP" >&6; } 19994else 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19996printf "%s\n" "no" >&6; } 19997fi 19998 19999 20000 if test "x$FOP" = "x"; then 20001 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20002 fi 20003 have_fop=yes 20004elif test "x$use_fop" = x"no" ; then 20005 if test "x$FOP" != "x"; then 20006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20007printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20008 fi 20009 have_fop=no 20010else 20011 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20012fi 20013 20014# Test for a minimum version of fop, if provided. 20015 20016 if test "$have_fop" = yes; then 20017 HAVE_FOP_TRUE= 20018 HAVE_FOP_FALSE='#' 20019else 20020 HAVE_FOP_TRUE='#' 20021 HAVE_FOP_FALSE= 20022fi 20023 20024 20025 20026 20027# Preserves the interface, should it be implemented later 20028 20029 20030 20031# Check whether --with-xsltproc was given. 20032if test ${with_xsltproc+y} 20033then : 20034 withval=$with_xsltproc; use_xsltproc=$withval 20035else $as_nop 20036 use_xsltproc=auto 20037fi 20038 20039 20040 20041if test "x$use_xsltproc" = x"auto"; then 20042 # Extract the first word of "xsltproc", so it can be a program name with args. 20043set dummy xsltproc; ac_word=$2 20044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20045printf %s "checking for $ac_word... " >&6; } 20046if test ${ac_cv_path_XSLTPROC+y} 20047then : 20048 printf %s "(cached) " >&6 20049else $as_nop 20050 case $XSLTPROC in 20051 [\\/]* | ?:[\\/]*) 20052 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20053 ;; 20054 *) 20055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20056for as_dir in $PATH 20057do 20058 IFS=$as_save_IFS 20059 case $as_dir in #((( 20060 '') as_dir=./ ;; 20061 */) ;; 20062 *) as_dir=$as_dir/ ;; 20063 esac 20064 for ac_exec_ext in '' $ac_executable_extensions; do 20065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20066 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20068 break 2 20069 fi 20070done 20071 done 20072IFS=$as_save_IFS 20073 20074 ;; 20075esac 20076fi 20077XSLTPROC=$ac_cv_path_XSLTPROC 20078if test -n "$XSLTPROC"; then 20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20080printf "%s\n" "$XSLTPROC" >&6; } 20081else 20082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20083printf "%s\n" "no" >&6; } 20084fi 20085 20086 20087 if test "x$XSLTPROC" = "x"; then 20088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20089printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20090 have_xsltproc=no 20091 else 20092 have_xsltproc=yes 20093 fi 20094elif test "x$use_xsltproc" = x"yes" ; then 20095 # Extract the first word of "xsltproc", so it can be a program name with args. 20096set dummy xsltproc; ac_word=$2 20097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20098printf %s "checking for $ac_word... " >&6; } 20099if test ${ac_cv_path_XSLTPROC+y} 20100then : 20101 printf %s "(cached) " >&6 20102else $as_nop 20103 case $XSLTPROC in 20104 [\\/]* | ?:[\\/]*) 20105 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20106 ;; 20107 *) 20108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20109for as_dir in $PATH 20110do 20111 IFS=$as_save_IFS 20112 case $as_dir in #((( 20113 '') as_dir=./ ;; 20114 */) ;; 20115 *) as_dir=$as_dir/ ;; 20116 esac 20117 for ac_exec_ext in '' $ac_executable_extensions; do 20118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20119 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20121 break 2 20122 fi 20123done 20124 done 20125IFS=$as_save_IFS 20126 20127 ;; 20128esac 20129fi 20130XSLTPROC=$ac_cv_path_XSLTPROC 20131if test -n "$XSLTPROC"; then 20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20133printf "%s\n" "$XSLTPROC" >&6; } 20134else 20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20136printf "%s\n" "no" >&6; } 20137fi 20138 20139 20140 if test "x$XSLTPROC" = "x"; then 20141 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20142 fi 20143 have_xsltproc=yes 20144elif test "x$use_xsltproc" = x"no" ; then 20145 if test "x$XSLTPROC" != "x"; then 20146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20147printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20148 fi 20149 have_xsltproc=no 20150else 20151 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20152fi 20153 20154 if test "$have_xsltproc" = yes; then 20155 HAVE_XSLTPROC_TRUE= 20156 HAVE_XSLTPROC_FALSE='#' 20157else 20158 HAVE_XSLTPROC_TRUE='#' 20159 HAVE_XSLTPROC_FALSE= 20160fi 20161 20162 20163 20164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 20165printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 20166XORG_SGML_PATH= 20167if test -n "$PKG_CONFIG" && \ 20168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 20169 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 20170 ac_status=$? 20171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20172 test $ac_status = 0; }; then 20173 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20174else 20175 : 20176 20177fi 20178 20179# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20180# the path and the name of the doc stylesheet 20181if test "x$XORG_SGML_PATH" != "x" ; then 20182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20183printf "%s\n" "$XORG_SGML_PATH" >&6; } 20184 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20185 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20186else 20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20188printf "%s\n" "no" >&6; } 20189fi 20190 20191 20192 20193 20194 if test "x$XSL_STYLESHEET" != "x"; then 20195 HAVE_STYLESHEETS_TRUE= 20196 HAVE_STYLESHEETS_FALSE='#' 20197else 20198 HAVE_STYLESHEETS_TRUE='#' 20199 HAVE_STYLESHEETS_FALSE= 20200fi 20201 20202 20203 20204# Obtain compiler/linker options for dependencies 20205 20206pkg_failed=no 20207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5 20208printf %s "checking for ICE... " >&6; } 20209 20210if test -n "$ICE_CFLAGS"; then 20211 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS" 20212 elif test -n "$PKG_CONFIG"; then 20213 if test -n "$PKG_CONFIG" && \ 20214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5 20215 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5 20216 ac_status=$? 20217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20218 test $ac_status = 0; }; then 20219 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 xtrans" 2>/dev/null` 20220 test "x$?" != "x0" && pkg_failed=yes 20221else 20222 pkg_failed=yes 20223fi 20224 else 20225 pkg_failed=untried 20226fi 20227if test -n "$ICE_LIBS"; then 20228 pkg_cv_ICE_LIBS="$ICE_LIBS" 20229 elif test -n "$PKG_CONFIG"; then 20230 if test -n "$PKG_CONFIG" && \ 20231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5 20232 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5 20233 ac_status=$? 20234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20235 test $ac_status = 0; }; then 20236 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 xtrans" 2>/dev/null` 20237 test "x$?" != "x0" && pkg_failed=yes 20238else 20239 pkg_failed=yes 20240fi 20241 else 20242 pkg_failed=untried 20243fi 20244 20245 20246 20247if test $pkg_failed = yes; then 20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20249printf "%s\n" "no" >&6; } 20250 20251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20252 _pkg_short_errors_supported=yes 20253else 20254 _pkg_short_errors_supported=no 20255fi 20256 if test $_pkg_short_errors_supported = yes; then 20257 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1` 20258 else 20259 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1` 20260 fi 20261 # Put the nasty error message in config.log where it belongs 20262 echo "$ICE_PKG_ERRORS" >&5 20263 20264 as_fn_error $? "Package requirements (xproto >= 7.0.25 xtrans) were not met: 20265 20266$ICE_PKG_ERRORS 20267 20268Consider adjusting the PKG_CONFIG_PATH environment variable if you 20269installed software in a non-standard prefix. 20270 20271Alternatively, you may set the environment variables ICE_CFLAGS 20272and ICE_LIBS to avoid the need to call pkg-config. 20273See the pkg-config man page for more details." "$LINENO" 5 20274elif test $pkg_failed = untried; then 20275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20276printf "%s\n" "no" >&6; } 20277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20278printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20279as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20280is in your PATH or set the PKG_CONFIG environment variable to the full 20281path to pkg-config. 20282 20283Alternatively, you may set the environment variables ICE_CFLAGS 20284and ICE_LIBS to avoid the need to call pkg-config. 20285See the pkg-config man page for more details. 20286 20287To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20288See \`config.log' for more details" "$LINENO" 5; } 20289else 20290 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS 20291 ICE_LIBS=$pkg_cv_ICE_LIBS 20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20293printf "%s\n" "yes" >&6; } 20294 20295fi 20296 20297# Checks for typedefs, structures, and compiler characteristics. 20298# Check whether --enable-largefile was given. 20299if test ${enable_largefile+y} 20300then : 20301 enableval=$enable_largefile; 20302fi 20303 20304if test "$enable_largefile" != no; then 20305 20306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 20307printf %s "checking for special C compiler options needed for large files... " >&6; } 20308if test ${ac_cv_sys_largefile_CC+y} 20309then : 20310 printf %s "(cached) " >&6 20311else $as_nop 20312 ac_cv_sys_largefile_CC=no 20313 if test "$GCC" != yes; then 20314 ac_save_CC=$CC 20315 while :; do 20316 # IRIX 6.2 and later do not support large files by default, 20317 # so use the C compiler's -n32 option if that helps. 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319/* end confdefs.h. */ 20320#include <sys/types.h> 20321 /* Check that off_t can represent 2**63 - 1 correctly. 20322 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20323 since some C++ compilers masquerading as C compilers 20324 incorrectly reject 9223372036854775807. */ 20325#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20327 && LARGE_OFF_T % 2147483647 == 1) 20328 ? 1 : -1]; 20329int 20330main (void) 20331{ 20332 20333 ; 20334 return 0; 20335} 20336_ACEOF 20337 if ac_fn_c_try_compile "$LINENO" 20338then : 20339 break 20340fi 20341rm -f core conftest.err conftest.$ac_objext conftest.beam 20342 CC="$CC -n32" 20343 if ac_fn_c_try_compile "$LINENO" 20344then : 20345 ac_cv_sys_largefile_CC=' -n32'; break 20346fi 20347rm -f core conftest.err conftest.$ac_objext conftest.beam 20348 break 20349 done 20350 CC=$ac_save_CC 20351 rm -f conftest.$ac_ext 20352 fi 20353fi 20354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 20355printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 20356 if test "$ac_cv_sys_largefile_CC" != no; then 20357 CC=$CC$ac_cv_sys_largefile_CC 20358 fi 20359 20360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 20361printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 20362if test ${ac_cv_sys_file_offset_bits+y} 20363then : 20364 printf %s "(cached) " >&6 20365else $as_nop 20366 while :; do 20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20368/* end confdefs.h. */ 20369#include <sys/types.h> 20370 /* Check that off_t can represent 2**63 - 1 correctly. 20371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20372 since some C++ compilers masquerading as C compilers 20373 incorrectly reject 9223372036854775807. */ 20374#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20376 && LARGE_OFF_T % 2147483647 == 1) 20377 ? 1 : -1]; 20378int 20379main (void) 20380{ 20381 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386if ac_fn_c_try_compile "$LINENO" 20387then : 20388 ac_cv_sys_file_offset_bits=no; break 20389fi 20390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20392/* end confdefs.h. */ 20393#define _FILE_OFFSET_BITS 64 20394#include <sys/types.h> 20395 /* Check that off_t can represent 2**63 - 1 correctly. 20396 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20397 since some C++ compilers masquerading as C compilers 20398 incorrectly reject 9223372036854775807. */ 20399#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20401 && LARGE_OFF_T % 2147483647 == 1) 20402 ? 1 : -1]; 20403int 20404main (void) 20405{ 20406 20407 ; 20408 return 0; 20409} 20410_ACEOF 20411if ac_fn_c_try_compile "$LINENO" 20412then : 20413 ac_cv_sys_file_offset_bits=64; break 20414fi 20415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20416 ac_cv_sys_file_offset_bits=unknown 20417 break 20418done 20419fi 20420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 20421printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 20422case $ac_cv_sys_file_offset_bits in #( 20423 no | unknown) ;; 20424 *) 20425printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 20426;; 20427esac 20428rm -rf conftest* 20429 if test $ac_cv_sys_file_offset_bits = unknown; then 20430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 20431printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 20432if test ${ac_cv_sys_large_files+y} 20433then : 20434 printf %s "(cached) " >&6 20435else $as_nop 20436 while :; do 20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20438/* end confdefs.h. */ 20439#include <sys/types.h> 20440 /* Check that off_t can represent 2**63 - 1 correctly. 20441 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20442 since some C++ compilers masquerading as C compilers 20443 incorrectly reject 9223372036854775807. */ 20444#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20446 && LARGE_OFF_T % 2147483647 == 1) 20447 ? 1 : -1]; 20448int 20449main (void) 20450{ 20451 20452 ; 20453 return 0; 20454} 20455_ACEOF 20456if ac_fn_c_try_compile "$LINENO" 20457then : 20458 ac_cv_sys_large_files=no; break 20459fi 20460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20462/* end confdefs.h. */ 20463#define _LARGE_FILES 1 20464#include <sys/types.h> 20465 /* Check that off_t can represent 2**63 - 1 correctly. 20466 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20467 since some C++ compilers masquerading as C compilers 20468 incorrectly reject 9223372036854775807. */ 20469#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20471 && LARGE_OFF_T % 2147483647 == 1) 20472 ? 1 : -1]; 20473int 20474main (void) 20475{ 20476 20477 ; 20478 return 0; 20479} 20480_ACEOF 20481if ac_fn_c_try_compile "$LINENO" 20482then : 20483 ac_cv_sys_large_files=1; break 20484fi 20485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20486 ac_cv_sys_large_files=unknown 20487 break 20488done 20489fi 20490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 20491printf "%s\n" "$ac_cv_sys_large_files" >&6; } 20492case $ac_cv_sys_large_files in #( 20493 no | unknown) ;; 20494 *) 20495printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 20496;; 20497esac 20498rm -rf conftest* 20499 fi 20500fi 20501 20502 20503# Checks for non-standard functions and fallback to libbsd if we can 20504# We only check for arc4random_buf, because if we have that, we don't 20505# need/use getentropy. 20506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20507/* end confdefs.h. */ 20508 20509/* Override any GCC internal prototype to avoid an error. 20510 Use char because int might match the return type of a GCC 20511 builtin and then its argument prototype would still apply. 20512 The 'extern "C"' is for builds by C++ compilers; 20513 although this is not generally supported in C code supporting it here 20514 has little cost and some practical benefit (sr 110532). */ 20515#ifdef __cplusplus 20516extern "C" 20517#endif 20518char arc4random_buf (void); 20519int 20520main (void) 20521{ 20522return arc4random_buf (); 20523 ; 20524 return 0; 20525} 20526_ACEOF 20527if ac_fn_c_try_link "$LINENO" 20528then : 20529 TRY_LIBBSD="no" 20530else $as_nop 20531 TRY_LIBBSD="yes" 20532fi 20533rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20534 conftest$ac_exeext conftest.$ac_ext 20535if test "x$TRY_LIBBSD" = "xyes" 20536then : 20537 20538pkg_failed=no 20539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 20540printf %s "checking for LIBBSD... " >&6; } 20541 20542if test -n "$LIBBSD_CFLAGS"; then 20543 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 20544 elif test -n "$PKG_CONFIG"; then 20545 if test -n "$PKG_CONFIG" && \ 20546 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20547 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20548 ac_status=$? 20549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20550 test $ac_status = 0; }; then 20551 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 20552 test "x$?" != "x0" && pkg_failed=yes 20553else 20554 pkg_failed=yes 20555fi 20556 else 20557 pkg_failed=untried 20558fi 20559if test -n "$LIBBSD_LIBS"; then 20560 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 20561 elif test -n "$PKG_CONFIG"; then 20562 if test -n "$PKG_CONFIG" && \ 20563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20564 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20565 ac_status=$? 20566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20567 test $ac_status = 0; }; then 20568 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 20569 test "x$?" != "x0" && pkg_failed=yes 20570else 20571 pkg_failed=yes 20572fi 20573 else 20574 pkg_failed=untried 20575fi 20576 20577 20578 20579if test $pkg_failed = yes; then 20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20581printf "%s\n" "no" >&6; } 20582 20583if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20584 _pkg_short_errors_supported=yes 20585else 20586 _pkg_short_errors_supported=no 20587fi 20588 if test $_pkg_short_errors_supported = yes; then 20589 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20590 else 20591 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20592 fi 20593 # Put the nasty error message in config.log where it belongs 20594 echo "$LIBBSD_PKG_ERRORS" >&5 20595 20596 : 20597elif test $pkg_failed = untried; then 20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20599printf "%s\n" "no" >&6; } 20600 : 20601else 20602 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 20603 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 20604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20605printf "%s\n" "yes" >&6; } 20606 20607 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 20608 LIBS="$LIBS $LIBBSD_LIBS" 20609 20610fi 20611fi 20612 20613# Checks for library functions. 20614ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 20615if test "x$ac_cv_func_asprintf" = xyes 20616then : 20617 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 20618 20619fi 20620ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 20621if test "x$ac_cv_func_arc4random_buf" = xyes 20622then : 20623 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 20624 20625fi 20626ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 20627if test "x$ac_cv_func_getentropy" = xyes 20628then : 20629 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 20630 20631fi 20632 20633 20634# Transport selection macro from xtrans.m4 20635 20636 20637 case $host_os in 20638 mingw*) unixdef="no" ;; 20639 *) unixdef="yes" ;; 20640 esac 20641 # Check whether --enable-unix-transport was given. 20642if test ${enable_unix_transport+y} 20643then : 20644 enableval=$enable_unix_transport; UNIXCONN=$enableval 20645else $as_nop 20646 UNIXCONN=$unixdef 20647fi 20648 20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 20650printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 20651 if test "$UNIXCONN" = "yes"; then 20652 20653printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 20654 20655 fi 20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 20657printf "%s\n" "$UNIXCONN" >&6; } 20658 # Check whether --enable-tcp-transport was given. 20659if test ${enable_tcp_transport+y} 20660then : 20661 enableval=$enable_tcp_transport; TCPCONN=$enableval 20662else $as_nop 20663 TCPCONN=yes 20664fi 20665 20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 20667printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 20669printf "%s\n" "$TCPCONN" >&6; } 20670 if test "$TCPCONN" = "yes"; then 20671 20672printf "%s\n" "#define TCPCONN 1" >>confdefs.h 20673 20674 20675 # SVR4 hides these in libraries other than libc 20676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20677printf %s "checking for library containing socket... " >&6; } 20678if test ${ac_cv_search_socket+y} 20679then : 20680 printf %s "(cached) " >&6 20681else $as_nop 20682 ac_func_search_save_LIBS=$LIBS 20683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20684/* end confdefs.h. */ 20685 20686/* Override any GCC internal prototype to avoid an error. 20687 Use char because int might match the return type of a GCC 20688 builtin and then its argument prototype would still apply. 20689 The 'extern "C"' is for builds by C++ compilers; 20690 although this is not generally supported in C code supporting it here 20691 has little cost and some practical benefit (sr 110532). */ 20692#ifdef __cplusplus 20693extern "C" 20694#endif 20695char socket (void); 20696int 20697main (void) 20698{ 20699return socket (); 20700 ; 20701 return 0; 20702} 20703_ACEOF 20704for ac_lib in '' socket 20705do 20706 if test -z "$ac_lib"; then 20707 ac_res="none required" 20708 else 20709 ac_res=-l$ac_lib 20710 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20711 fi 20712 if ac_fn_c_try_link "$LINENO" 20713then : 20714 ac_cv_search_socket=$ac_res 20715fi 20716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20717 conftest$ac_exeext 20718 if test ${ac_cv_search_socket+y} 20719then : 20720 break 20721fi 20722done 20723if test ${ac_cv_search_socket+y} 20724then : 20725 20726else $as_nop 20727 ac_cv_search_socket=no 20728fi 20729rm conftest.$ac_ext 20730LIBS=$ac_func_search_save_LIBS 20731fi 20732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20733printf "%s\n" "$ac_cv_search_socket" >&6; } 20734ac_res=$ac_cv_search_socket 20735if test "$ac_res" != no 20736then : 20737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20738 20739fi 20740 20741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20742printf %s "checking for library containing gethostbyname... " >&6; } 20743if test ${ac_cv_search_gethostbyname+y} 20744then : 20745 printf %s "(cached) " >&6 20746else $as_nop 20747 ac_func_search_save_LIBS=$LIBS 20748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20749/* end confdefs.h. */ 20750 20751/* Override any GCC internal prototype to avoid an error. 20752 Use char because int might match the return type of a GCC 20753 builtin and then its argument prototype would still apply. 20754 The 'extern "C"' is for builds by C++ compilers; 20755 although this is not generally supported in C code supporting it here 20756 has little cost and some practical benefit (sr 110532). */ 20757#ifdef __cplusplus 20758extern "C" 20759#endif 20760char gethostbyname (void); 20761int 20762main (void) 20763{ 20764return gethostbyname (); 20765 ; 20766 return 0; 20767} 20768_ACEOF 20769for ac_lib in '' nsl 20770do 20771 if test -z "$ac_lib"; then 20772 ac_res="none required" 20773 else 20774 ac_res=-l$ac_lib 20775 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20776 fi 20777 if ac_fn_c_try_link "$LINENO" 20778then : 20779 ac_cv_search_gethostbyname=$ac_res 20780fi 20781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20782 conftest$ac_exeext 20783 if test ${ac_cv_search_gethostbyname+y} 20784then : 20785 break 20786fi 20787done 20788if test ${ac_cv_search_gethostbyname+y} 20789then : 20790 20791else $as_nop 20792 ac_cv_search_gethostbyname=no 20793fi 20794rm conftest.$ac_ext 20795LIBS=$ac_func_search_save_LIBS 20796fi 20797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20798printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 20799ac_res=$ac_cv_search_gethostbyname 20800if test "$ac_res" != no 20801then : 20802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20803 20804fi 20805 20806 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 20807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20808printf %s "checking for main in -lws2_32... " >&6; } 20809if test ${ac_cv_lib_ws2_32_main+y} 20810then : 20811 printf %s "(cached) " >&6 20812else $as_nop 20813 ac_check_lib_save_LIBS=$LIBS 20814LIBS="-lws2_32 $LIBS" 20815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20816/* end confdefs.h. */ 20817 20818 20819int 20820main (void) 20821{ 20822return main (); 20823 ; 20824 return 0; 20825} 20826_ACEOF 20827if ac_fn_c_try_link "$LINENO" 20828then : 20829 ac_cv_lib_ws2_32_main=yes 20830else $as_nop 20831 ac_cv_lib_ws2_32_main=no 20832fi 20833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20834 conftest$ac_exeext conftest.$ac_ext 20835LIBS=$ac_check_lib_save_LIBS 20836fi 20837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20838printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 20839if test "x$ac_cv_lib_ws2_32_main" = xyes 20840then : 20841 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 20842 20843 LIBS="-lws2_32 $LIBS" 20844 20845fi 20846 20847 fi 20848 20849 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20850 # Check whether --enable-ipv6 was given. 20851if test ${enable_ipv6+y} 20852then : 20853 enableval=$enable_ipv6; IPV6CONN=$enableval 20854else $as_nop 20855 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20856if test "x$ac_cv_func_getaddrinfo" = xyes 20857then : 20858 IPV6CONN=yes 20859else $as_nop 20860 IPV6CONN=no 20861fi 20862 20863fi 20864 20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 20866printf %s "checking if IPv6 support should be built... " >&6; } 20867 if test "$IPV6CONN" = "yes"; then 20868 20869printf "%s\n" "#define IPv6 1" >>confdefs.h 20870 20871 fi 20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 20873printf "%s\n" "$IPV6CONN" >&6; } 20874 20875 # 4.3BSD-Reno added a new member to struct sockaddr_in 20876 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 20877#include <sys/types.h> 20878#include <sys/socket.h> 20879#include <netinet/in.h> 20880 20881" 20882if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 20883then : 20884 20885printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 20886 20887fi 20888 20889 20890 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 20891 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 20892$ac_includes_default 20893#include <sys/socket.h> 20894" 20895if test "x$ac_cv_type_socklen_t" = xyes 20896then : 20897 20898printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 20899 20900 20901fi 20902 20903 20904 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 20905 # _XOPEN_SOURCE to get it (such as on Solaris) 20906 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20907$ac_includes_default 20908#include <sys/socket.h> 20909 20910" 20911if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20912then : 20913 20914fi 20915 20916 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20917 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20918 unset ac_cv_member_struct_msghdr_msg_control 20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20920printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20921 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20922#define _XOPEN_SOURCE 600 20923$ac_includes_default 20924#include <sys/socket.h> 20925 20926" 20927if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20928then : 20929 20930printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 20931 20932 20933fi 20934 20935 fi 20936 # If that didn't work, fall back to XPG5/UNIX98 with C89 20937 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20938 unset ac_cv_member_struct_msghdr_msg_control 20939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20940printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20941 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20942#define _XOPEN_SOURCE 500 20943$ac_includes_default 20944#include <sys/socket.h> 20945 20946" 20947if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20948then : 20949 20950printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 20951 20952 20953fi 20954 20955 fi 20956 20957 20958 20959 fi 20960 case $host_os in 20961 solaris*|sco*|sysv4*) localdef="yes" ;; 20962 *) localdef="no" ;; 20963 esac 20964 # Check whether --enable-local-transport was given. 20965if test ${enable_local_transport+y} 20966then : 20967 enableval=$enable_local_transport; LOCALCONN=$enableval 20968else $as_nop 20969 LOCALCONN=$localdef 20970fi 20971 20972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 20973printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 20974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 20975printf "%s\n" "$LOCALCONN" >&6; } 20976 if test "$LOCALCONN" = "yes"; then 20977 20978printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 20979 20980 fi 20981 20982 # Other functions Xtrans may need 20983 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 20984if test "x$ac_cv_func_strcasecmp" = xyes 20985then : 20986 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 20987 20988fi 20989ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20990if test "x$ac_cv_func_strlcpy" = xyes 20991then : 20992 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20993 20994fi 20995 20996 20997 20998 20999printf "%s\n" "#define ICE_t 1" >>confdefs.h 21000 21001 21002printf "%s\n" "#define TRANS_CLIENT 1" >>confdefs.h 21003 21004 21005printf "%s\n" "#define TRANS_SERVER 1" >>confdefs.h 21006 21007 21008# Allow checking code with lint, sparse, etc. 21009 21010 21011 21012 21013 21014# Check whether --with-lint was given. 21015if test ${with_lint+y} 21016then : 21017 withval=$with_lint; use_lint=$withval 21018else $as_nop 21019 use_lint=no 21020fi 21021 21022 21023# Obtain platform specific info like program name and options 21024# The lint program on FreeBSD and NetBSD is different from the one on Solaris 21025case $host_os in 21026 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21027 lint_name=splint 21028 lint_options="-badflag" 21029 ;; 21030 *freebsd* | *netbsd*) 21031 lint_name=lint 21032 lint_options="-u -b" 21033 ;; 21034 *solaris*) 21035 lint_name=lint 21036 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21037 ;; 21038esac 21039 21040# Test for the presence of the program (either guessed by the code or spelled out by the user) 21041if test "x$use_lint" = x"yes" ; then 21042 # Extract the first word of "$lint_name", so it can be a program name with args. 21043set dummy $lint_name; ac_word=$2 21044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21045printf %s "checking for $ac_word... " >&6; } 21046if test ${ac_cv_path_LINT+y} 21047then : 21048 printf %s "(cached) " >&6 21049else $as_nop 21050 case $LINT in 21051 [\\/]* | ?:[\\/]*) 21052 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21053 ;; 21054 *) 21055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21056for as_dir in $PATH 21057do 21058 IFS=$as_save_IFS 21059 case $as_dir in #((( 21060 '') as_dir=./ ;; 21061 */) ;; 21062 *) as_dir=$as_dir/ ;; 21063 esac 21064 for ac_exec_ext in '' $ac_executable_extensions; do 21065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21066 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 21067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21068 break 2 21069 fi 21070done 21071 done 21072IFS=$as_save_IFS 21073 21074 ;; 21075esac 21076fi 21077LINT=$ac_cv_path_LINT 21078if test -n "$LINT"; then 21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21080printf "%s\n" "$LINT" >&6; } 21081else 21082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21083printf "%s\n" "no" >&6; } 21084fi 21085 21086 21087 if test "x$LINT" = "x"; then 21088 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21089 fi 21090elif test "x$use_lint" = x"no" ; then 21091 if test "x$LINT" != "x"; then 21092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21093printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21094 fi 21095else 21096 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21097fi 21098 21099# User supplied flags override default flags 21100if test "x$LINT_FLAGS" != "x"; then 21101 lint_options=$LINT_FLAGS 21102fi 21103 21104LINT_FLAGS=$lint_options 21105 21106 if test "x$LINT" != x; then 21107 LINT_TRUE= 21108 LINT_FALSE='#' 21109else 21110 LINT_TRUE='#' 21111 LINT_FALSE= 21112fi 21113 21114 21115 21116 21117 21118# Check whether --enable-lint-library was given. 21119if test ${enable_lint_library+y} 21120then : 21121 enableval=$enable_lint_library; make_lint_lib=$enableval 21122else $as_nop 21123 make_lint_lib=no 21124fi 21125 21126 21127if test "x$make_lint_lib" = x"yes" ; then 21128 LINTLIB=llib-lICE.ln 21129 if test "x$LINT" = "x"; then 21130 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 21131 fi 21132elif test "x$make_lint_lib" != x"no" ; then 21133 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 21134fi 21135 21136 21137 if test x$make_lint_lib != xno; then 21138 MAKE_LINT_LIB_TRUE= 21139 MAKE_LINT_LIB_FALSE='#' 21140else 21141 MAKE_LINT_LIB_TRUE='#' 21142 MAKE_LINT_LIB_FALSE= 21143fi 21144 21145 21146 21147LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}" 21148 21149ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc" 21150 21151cat >confcache <<\_ACEOF 21152# This file is a shell script that caches the results of configure 21153# tests run on this system so they can be shared between configure 21154# scripts and configure runs, see configure's option --config-cache. 21155# It is not useful on other systems. If it contains results you don't 21156# want to keep, you may remove or edit it. 21157# 21158# config.status only pays attention to the cache file if you give it 21159# the --recheck option to rerun configure. 21160# 21161# `ac_cv_env_foo' variables (set or unset) will be overridden when 21162# loading this file, other *unset* `ac_cv_foo' will be assigned the 21163# following values. 21164 21165_ACEOF 21166 21167# The following way of writing the cache mishandles newlines in values, 21168# but we know of no workaround that is simple, portable, and efficient. 21169# So, we kill variables containing newlines. 21170# Ultrix sh set writes to stderr and can't be redirected directly, 21171# and sets the high bit in the cache file unless we assign to the vars. 21172( 21173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21174 eval ac_val=\$$ac_var 21175 case $ac_val in #( 21176 *${as_nl}*) 21177 case $ac_var in #( 21178 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21179printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21180 esac 21181 case $ac_var in #( 21182 _ | IFS | as_nl) ;; #( 21183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21184 *) { eval $ac_var=; unset $ac_var;} ;; 21185 esac ;; 21186 esac 21187 done 21188 21189 (set) 2>&1 | 21190 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21191 *${as_nl}ac_space=\ *) 21192 # `set' does not quote correctly, so add quotes: double-quote 21193 # substitution turns \\\\ into \\, and sed turns \\ into \. 21194 sed -n \ 21195 "s/'/'\\\\''/g; 21196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21197 ;; #( 21198 *) 21199 # `set' quotes correctly as required by POSIX, so do not add quotes. 21200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21201 ;; 21202 esac | 21203 sort 21204) | 21205 sed ' 21206 /^ac_cv_env_/b end 21207 t clear 21208 :clear 21209 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21210 t end 21211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21212 :end' >>confcache 21213if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21214 if test -w "$cache_file"; then 21215 if test "x$cache_file" != "x/dev/null"; then 21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21217printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21218 if test ! -f "$cache_file" || test -h "$cache_file"; then 21219 cat confcache >"$cache_file" 21220 else 21221 case $cache_file in #( 21222 */* | ?:*) 21223 mv -f confcache "$cache_file"$$ && 21224 mv -f "$cache_file"$$ "$cache_file" ;; #( 21225 *) 21226 mv -f confcache "$cache_file" ;; 21227 esac 21228 fi 21229 fi 21230 else 21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21232printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21233 fi 21234fi 21235rm -f confcache 21236 21237test "x$prefix" = xNONE && prefix=$ac_default_prefix 21238# Let make expand exec_prefix. 21239test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21240 21241DEFS=-DHAVE_CONFIG_H 21242 21243ac_libobjs= 21244ac_ltlibobjs= 21245U= 21246for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21247 # 1. Remove the extension, and $U if already installed. 21248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21249 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21251 # will be set to the directory where LIBOBJS objects are built. 21252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21254done 21255LIBOBJS=$ac_libobjs 21256 21257LTLIBOBJS=$ac_ltlibobjs 21258 21259 21260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21261printf %s "checking that generated files are newer than configure... " >&6; } 21262 if test -n "$am_sleep_pid"; then 21263 # Hide warnings about reused PIDs. 21264 wait $am_sleep_pid 2>/dev/null 21265 fi 21266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21267printf "%s\n" "done" >&6; } 21268if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21269 as_fn_error $? "conditional \"AMDEP\" was never defined. 21270Usually this means the macro was only invoked conditionally." "$LINENO" 5 21271fi 21272if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21274Usually this means the macro was only invoked conditionally." "$LINENO" 5 21275fi 21276 if test -n "$EXEEXT"; then 21277 am__EXEEXT_TRUE= 21278 am__EXEEXT_FALSE='#' 21279else 21280 am__EXEEXT_TRUE='#' 21281 am__EXEEXT_FALSE= 21282fi 21283 21284if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 21285 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 21286Usually this means the macro was only invoked conditionally." "$LINENO" 5 21287fi 21288if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21289 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21290Usually this means the macro was only invoked conditionally." "$LINENO" 5 21291fi 21292if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21293 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21294Usually this means the macro was only invoked conditionally." "$LINENO" 5 21295fi 21296if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21297 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21298Usually this means the macro was only invoked conditionally." "$LINENO" 5 21299fi 21300if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21301 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21302Usually this means the macro was only invoked conditionally." "$LINENO" 5 21303fi 21304if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21305 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21306Usually this means the macro was only invoked conditionally." "$LINENO" 5 21307fi 21308if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21309 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21310Usually this means the macro was only invoked conditionally." "$LINENO" 5 21311fi 21312if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21313 as_fn_error $? "conditional \"LINT\" was never defined. 21314Usually this means the macro was only invoked conditionally." "$LINENO" 5 21315fi 21316if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21317 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21318Usually this means the macro was only invoked conditionally." "$LINENO" 5 21319fi 21320 21321: "${CONFIG_STATUS=./config.status}" 21322ac_write_fail=0 21323ac_clean_files_save=$ac_clean_files 21324ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21326printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21327as_write_fail=0 21328cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21329#! $SHELL 21330# Generated by $as_me. 21331# Run this file to recreate the current configuration. 21332# Compiler output produced by configure, useful for debugging 21333# configure, is in config.log if it exists. 21334 21335debug=false 21336ac_cs_recheck=false 21337ac_cs_silent=false 21338 21339SHELL=\${CONFIG_SHELL-$SHELL} 21340export SHELL 21341_ASEOF 21342cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21343## -------------------- ## 21344## M4sh Initialization. ## 21345## -------------------- ## 21346 21347# Be more Bourne compatible 21348DUALCASE=1; export DUALCASE # for MKS sh 21349as_nop=: 21350if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21351then : 21352 emulate sh 21353 NULLCMD=: 21354 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21355 # is contrary to our usage. Disable this feature. 21356 alias -g '${1+"$@"}'='"$@"' 21357 setopt NO_GLOB_SUBST 21358else $as_nop 21359 case `(set -o) 2>/dev/null` in #( 21360 *posix*) : 21361 set -o posix ;; #( 21362 *) : 21363 ;; 21364esac 21365fi 21366 21367 21368 21369# Reset variables that may have inherited troublesome values from 21370# the environment. 21371 21372# IFS needs to be set, to space, tab, and newline, in precisely that order. 21373# (If _AS_PATH_WALK were called with IFS unset, it would have the 21374# side effect of setting IFS to empty, thus disabling word splitting.) 21375# Quoting is to prevent editors from complaining about space-tab. 21376as_nl=' 21377' 21378export as_nl 21379IFS=" "" $as_nl" 21380 21381PS1='$ ' 21382PS2='> ' 21383PS4='+ ' 21384 21385# Ensure predictable behavior from utilities with locale-dependent output. 21386LC_ALL=C 21387export LC_ALL 21388LANGUAGE=C 21389export LANGUAGE 21390 21391# We cannot yet rely on "unset" to work, but we need these variables 21392# to be unset--not just set to an empty or harmless value--now, to 21393# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21394# also avoids known problems related to "unset" and subshell syntax 21395# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21396for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21397do eval test \${$as_var+y} \ 21398 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21399done 21400 21401# Ensure that fds 0, 1, and 2 are open. 21402if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21403if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21404if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21405 21406# The user is always right. 21407if ${PATH_SEPARATOR+false} :; then 21408 PATH_SEPARATOR=: 21409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21411 PATH_SEPARATOR=';' 21412 } 21413fi 21414 21415 21416# Find who we are. Look in the path if we contain no directory separator. 21417as_myself= 21418case $0 in #(( 21419 *[\\/]* ) as_myself=$0 ;; 21420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21421for as_dir in $PATH 21422do 21423 IFS=$as_save_IFS 21424 case $as_dir in #((( 21425 '') as_dir=./ ;; 21426 */) ;; 21427 *) as_dir=$as_dir/ ;; 21428 esac 21429 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21430 done 21431IFS=$as_save_IFS 21432 21433 ;; 21434esac 21435# We did not find ourselves, most probably we were run as `sh COMMAND' 21436# in which case we are not to be found in the path. 21437if test "x$as_myself" = x; then 21438 as_myself=$0 21439fi 21440if test ! -f "$as_myself"; then 21441 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21442 exit 1 21443fi 21444 21445 21446 21447# as_fn_error STATUS ERROR [LINENO LOG_FD] 21448# ---------------------------------------- 21449# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21450# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21451# script with STATUS, using 1 if that was 0. 21452as_fn_error () 21453{ 21454 as_status=$1; test $as_status -eq 0 && as_status=1 21455 if test "$4"; then 21456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21458 fi 21459 printf "%s\n" "$as_me: error: $2" >&2 21460 as_fn_exit $as_status 21461} # as_fn_error 21462 21463 21464 21465# as_fn_set_status STATUS 21466# ----------------------- 21467# Set $? to STATUS, without forking. 21468as_fn_set_status () 21469{ 21470 return $1 21471} # as_fn_set_status 21472 21473# as_fn_exit STATUS 21474# ----------------- 21475# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21476as_fn_exit () 21477{ 21478 set +e 21479 as_fn_set_status $1 21480 exit $1 21481} # as_fn_exit 21482 21483# as_fn_unset VAR 21484# --------------- 21485# Portably unset VAR. 21486as_fn_unset () 21487{ 21488 { eval $1=; unset $1;} 21489} 21490as_unset=as_fn_unset 21491 21492# as_fn_append VAR VALUE 21493# ---------------------- 21494# Append the text in VALUE to the end of the definition contained in VAR. Take 21495# advantage of any shell optimizations that allow amortized linear growth over 21496# repeated appends, instead of the typical quadratic growth present in naive 21497# implementations. 21498if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21499then : 21500 eval 'as_fn_append () 21501 { 21502 eval $1+=\$2 21503 }' 21504else $as_nop 21505 as_fn_append () 21506 { 21507 eval $1=\$$1\$2 21508 } 21509fi # as_fn_append 21510 21511# as_fn_arith ARG... 21512# ------------------ 21513# Perform arithmetic evaluation on the ARGs, and store the result in the 21514# global $as_val. Take advantage of shells that can avoid forks. The arguments 21515# must be portable across $(()) and expr. 21516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21517then : 21518 eval 'as_fn_arith () 21519 { 21520 as_val=$(( $* )) 21521 }' 21522else $as_nop 21523 as_fn_arith () 21524 { 21525 as_val=`expr "$@" || test $? -eq 1` 21526 } 21527fi # as_fn_arith 21528 21529 21530if expr a : '\(a\)' >/dev/null 2>&1 && 21531 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21532 as_expr=expr 21533else 21534 as_expr=false 21535fi 21536 21537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21538 as_basename=basename 21539else 21540 as_basename=false 21541fi 21542 21543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21544 as_dirname=dirname 21545else 21546 as_dirname=false 21547fi 21548 21549as_me=`$as_basename -- "$0" || 21550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21551 X"$0" : 'X\(//\)$' \| \ 21552 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21553printf "%s\n" X/"$0" | 21554 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21555 s//\1/ 21556 q 21557 } 21558 /^X\/\(\/\/\)$/{ 21559 s//\1/ 21560 q 21561 } 21562 /^X\/\(\/\).*/{ 21563 s//\1/ 21564 q 21565 } 21566 s/.*/./; q'` 21567 21568# Avoid depending upon Character Ranges. 21569as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21571as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21572as_cr_digits='0123456789' 21573as_cr_alnum=$as_cr_Letters$as_cr_digits 21574 21575 21576# Determine whether it's possible to make 'echo' print without a newline. 21577# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21578# for compatibility with existing Makefiles. 21579ECHO_C= ECHO_N= ECHO_T= 21580case `echo -n x` in #((((( 21581-n*) 21582 case `echo 'xy\c'` in 21583 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21584 xy) ECHO_C='\c';; 21585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21586 ECHO_T=' ';; 21587 esac;; 21588*) 21589 ECHO_N='-n';; 21590esac 21591 21592# For backward compatibility with old third-party macros, we provide 21593# the shell variables $as_echo and $as_echo_n. New code should use 21594# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21595as_echo='printf %s\n' 21596as_echo_n='printf %s' 21597 21598rm -f conf$$ conf$$.exe conf$$.file 21599if test -d conf$$.dir; then 21600 rm -f conf$$.dir/conf$$.file 21601else 21602 rm -f conf$$.dir 21603 mkdir conf$$.dir 2>/dev/null 21604fi 21605if (echo >conf$$.file) 2>/dev/null; then 21606 if ln -s conf$$.file conf$$ 2>/dev/null; then 21607 as_ln_s='ln -s' 21608 # ... but there are two gotchas: 21609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21611 # In both cases, we have to default to `cp -pR'. 21612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21613 as_ln_s='cp -pR' 21614 elif ln conf$$.file conf$$ 2>/dev/null; then 21615 as_ln_s=ln 21616 else 21617 as_ln_s='cp -pR' 21618 fi 21619else 21620 as_ln_s='cp -pR' 21621fi 21622rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21623rmdir conf$$.dir 2>/dev/null 21624 21625 21626# as_fn_mkdir_p 21627# ------------- 21628# Create "$as_dir" as a directory, including parents if necessary. 21629as_fn_mkdir_p () 21630{ 21631 21632 case $as_dir in #( 21633 -*) as_dir=./$as_dir;; 21634 esac 21635 test -d "$as_dir" || eval $as_mkdir_p || { 21636 as_dirs= 21637 while :; do 21638 case $as_dir in #( 21639 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21640 *) as_qdir=$as_dir;; 21641 esac 21642 as_dirs="'$as_qdir' $as_dirs" 21643 as_dir=`$as_dirname -- "$as_dir" || 21644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21645 X"$as_dir" : 'X\(//\)[^/]' \| \ 21646 X"$as_dir" : 'X\(//\)$' \| \ 21647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21648printf "%s\n" X"$as_dir" | 21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21650 s//\1/ 21651 q 21652 } 21653 /^X\(\/\/\)[^/].*/{ 21654 s//\1/ 21655 q 21656 } 21657 /^X\(\/\/\)$/{ 21658 s//\1/ 21659 q 21660 } 21661 /^X\(\/\).*/{ 21662 s//\1/ 21663 q 21664 } 21665 s/.*/./; q'` 21666 test -d "$as_dir" && break 21667 done 21668 test -z "$as_dirs" || eval "mkdir $as_dirs" 21669 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21670 21671 21672} # as_fn_mkdir_p 21673if mkdir -p . 2>/dev/null; then 21674 as_mkdir_p='mkdir -p "$as_dir"' 21675else 21676 test -d ./-p && rmdir ./-p 21677 as_mkdir_p=false 21678fi 21679 21680 21681# as_fn_executable_p FILE 21682# ----------------------- 21683# Test if FILE is an executable regular file. 21684as_fn_executable_p () 21685{ 21686 test -f "$1" && test -x "$1" 21687} # as_fn_executable_p 21688as_test_x='test -x' 21689as_executable_p=as_fn_executable_p 21690 21691# Sed expression to map a string onto a valid CPP name. 21692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21693 21694# Sed expression to map a string onto a valid variable name. 21695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21696 21697 21698exec 6>&1 21699## ----------------------------------- ## 21700## Main body of $CONFIG_STATUS script. ## 21701## ----------------------------------- ## 21702_ASEOF 21703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21704 21705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21706# Save the log message, to keep $0 and so on meaningful, and to 21707# report actual input values of CONFIG_FILES etc. instead of their 21708# values after options handling. 21709ac_log=" 21710This file was extended by libICE $as_me 1.1.1, which was 21711generated by GNU Autoconf 2.71. Invocation command line was 21712 21713 CONFIG_FILES = $CONFIG_FILES 21714 CONFIG_HEADERS = $CONFIG_HEADERS 21715 CONFIG_LINKS = $CONFIG_LINKS 21716 CONFIG_COMMANDS = $CONFIG_COMMANDS 21717 $ $0 $@ 21718 21719on `(hostname || uname -n) 2>/dev/null | sed 1q` 21720" 21721 21722_ACEOF 21723 21724case $ac_config_files in *" 21725"*) set x $ac_config_files; shift; ac_config_files=$*;; 21726esac 21727 21728case $ac_config_headers in *" 21729"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21730esac 21731 21732 21733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21734# Files that config.status was made for. 21735config_files="$ac_config_files" 21736config_headers="$ac_config_headers" 21737config_commands="$ac_config_commands" 21738 21739_ACEOF 21740 21741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21742ac_cs_usage="\ 21743\`$as_me' instantiates files and other configuration actions 21744from templates according to the current configuration. Unless the files 21745and actions are specified as TAGs, all are instantiated by default. 21746 21747Usage: $0 [OPTION]... [TAG]... 21748 21749 -h, --help print this help, then exit 21750 -V, --version print version number and configuration settings, then exit 21751 --config print configuration, then exit 21752 -q, --quiet, --silent 21753 do not print progress messages 21754 -d, --debug don't remove temporary files 21755 --recheck update $as_me by reconfiguring in the same conditions 21756 --file=FILE[:TEMPLATE] 21757 instantiate the configuration file FILE 21758 --header=FILE[:TEMPLATE] 21759 instantiate the configuration header FILE 21760 21761Configuration files: 21762$config_files 21763 21764Configuration headers: 21765$config_headers 21766 21767Configuration commands: 21768$config_commands 21769 21770Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>." 21771 21772_ACEOF 21773ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21774ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21776ac_cs_config='$ac_cs_config_escaped' 21777ac_cs_version="\\ 21778libICE config.status 1.1.1 21779configured by $0, generated by GNU Autoconf 2.71, 21780 with options \\"\$ac_cs_config\\" 21781 21782Copyright (C) 2021 Free Software Foundation, Inc. 21783This config.status script is free software; the Free Software Foundation 21784gives unlimited permission to copy, distribute and modify it." 21785 21786ac_pwd='$ac_pwd' 21787srcdir='$srcdir' 21788INSTALL='$INSTALL' 21789MKDIR_P='$MKDIR_P' 21790AWK='$AWK' 21791test -n "\$AWK" || AWK=awk 21792_ACEOF 21793 21794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21795# The default lists apply if the user does not specify any file. 21796ac_need_defaults=: 21797while test $# != 0 21798do 21799 case $1 in 21800 --*=?*) 21801 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21803 ac_shift=: 21804 ;; 21805 --*=) 21806 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21807 ac_optarg= 21808 ac_shift=: 21809 ;; 21810 *) 21811 ac_option=$1 21812 ac_optarg=$2 21813 ac_shift=shift 21814 ;; 21815 esac 21816 21817 case $ac_option in 21818 # Handling of the options. 21819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21820 ac_cs_recheck=: ;; 21821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21822 printf "%s\n" "$ac_cs_version"; exit ;; 21823 --config | --confi | --conf | --con | --co | --c ) 21824 printf "%s\n" "$ac_cs_config"; exit ;; 21825 --debug | --debu | --deb | --de | --d | -d ) 21826 debug=: ;; 21827 --file | --fil | --fi | --f ) 21828 $ac_shift 21829 case $ac_optarg in 21830 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21831 '') as_fn_error $? "missing file argument" ;; 21832 esac 21833 as_fn_append CONFIG_FILES " '$ac_optarg'" 21834 ac_need_defaults=false;; 21835 --header | --heade | --head | --hea ) 21836 $ac_shift 21837 case $ac_optarg in 21838 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21839 esac 21840 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21841 ac_need_defaults=false;; 21842 --he | --h) 21843 # Conflict between --help and --header 21844 as_fn_error $? "ambiguous option: \`$1' 21845Try \`$0 --help' for more information.";; 21846 --help | --hel | -h ) 21847 printf "%s\n" "$ac_cs_usage"; exit ;; 21848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21849 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21850 ac_cs_silent=: ;; 21851 21852 # This is an error. 21853 -*) as_fn_error $? "unrecognized option: \`$1' 21854Try \`$0 --help' for more information." ;; 21855 21856 *) as_fn_append ac_config_targets " $1" 21857 ac_need_defaults=false ;; 21858 21859 esac 21860 shift 21861done 21862 21863ac_configure_extra_args= 21864 21865if $ac_cs_silent; then 21866 exec 6>/dev/null 21867 ac_configure_extra_args="$ac_configure_extra_args --silent" 21868fi 21869 21870_ACEOF 21871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21872if \$ac_cs_recheck; then 21873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21874 shift 21875 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21876 CONFIG_SHELL='$SHELL' 21877 export CONFIG_SHELL 21878 exec "\$@" 21879fi 21880 21881_ACEOF 21882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21883exec 5>>config.log 21884{ 21885 echo 21886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21887## Running $as_me. ## 21888_ASBOX 21889 printf "%s\n" "$ac_log" 21890} >&5 21891 21892_ACEOF 21893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21894# 21895# INIT-COMMANDS 21896# 21897AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21898 21899 21900# The HP-UX ksh and POSIX shell print the target directory to stdout 21901# if CDPATH is set. 21902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21903 21904sed_quote_subst='$sed_quote_subst' 21905double_quote_subst='$double_quote_subst' 21906delay_variable_subst='$delay_variable_subst' 21907macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21908macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21909enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21910enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21911pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21912enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21913shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21914SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21915ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21916PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21917host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21918host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21919host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21920build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21921build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21922build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21923SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21924Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21925GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21926EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21927FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21928LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21929NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21930LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21931max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21932ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21933exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21934lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21935lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21936lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21937lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21938lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21939reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21940reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21941FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21942OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21943deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21944file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21945file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21946want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21947DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21948sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21949AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21950lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21951AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21952archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21953STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21954RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21955old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21956old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21957old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21958lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21959CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21960CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21961compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21962GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21963lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21964lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21965lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21966lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21967lt_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"`' 21968lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21969nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21970lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21971lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21972objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21973MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21974lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21975lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21976lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21977lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21978lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21979need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21980MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21981DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21982NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21983LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21984OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21985OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21986libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21987shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21988extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21989archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21990enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21991export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21992whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21993compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21994old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21995old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21996archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21997archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21998module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21999module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22000with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22001allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22002no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22003hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22004hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22005hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22006hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22007hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22008hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22009hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22010inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22011link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22012always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22013export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22014exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22015include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22016prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22017postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22018file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22019variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22020need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22021need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22022version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22023runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22024shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22025shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22026libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22027library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22028soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22029install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22030postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22031postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22032finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22033finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22034hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22035sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22036configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22037configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22038hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22039enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22040enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22041enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22042old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22043striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22044 22045LTCC='$LTCC' 22046LTCFLAGS='$LTCFLAGS' 22047compiler='$compiler_DEFAULT' 22048 22049# A function that is used when there is no print builtin or printf. 22050func_fallback_echo () 22051{ 22052 eval 'cat <<_LTECHO_EOF 22053\$1 22054_LTECHO_EOF' 22055} 22056 22057# Quote evaled strings. 22058for var in SHELL \ 22059ECHO \ 22060PATH_SEPARATOR \ 22061SED \ 22062GREP \ 22063EGREP \ 22064FGREP \ 22065LD \ 22066NM \ 22067LN_S \ 22068lt_SP2NL \ 22069lt_NL2SP \ 22070reload_flag \ 22071FILECMD \ 22072OBJDUMP \ 22073deplibs_check_method \ 22074file_magic_cmd \ 22075file_magic_glob \ 22076want_nocaseglob \ 22077DLLTOOL \ 22078sharedlib_from_linklib_cmd \ 22079AR \ 22080archiver_list_spec \ 22081STRIP \ 22082RANLIB \ 22083CC \ 22084CFLAGS \ 22085compiler \ 22086lt_cv_sys_global_symbol_pipe \ 22087lt_cv_sys_global_symbol_to_cdecl \ 22088lt_cv_sys_global_symbol_to_import \ 22089lt_cv_sys_global_symbol_to_c_name_address \ 22090lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22091lt_cv_nm_interface \ 22092nm_file_list_spec \ 22093lt_cv_truncate_bin \ 22094lt_prog_compiler_no_builtin_flag \ 22095lt_prog_compiler_pic \ 22096lt_prog_compiler_wl \ 22097lt_prog_compiler_static \ 22098lt_cv_prog_compiler_c_o \ 22099need_locks \ 22100MANIFEST_TOOL \ 22101DSYMUTIL \ 22102NMEDIT \ 22103LIPO \ 22104OTOOL \ 22105OTOOL64 \ 22106shrext_cmds \ 22107export_dynamic_flag_spec \ 22108whole_archive_flag_spec \ 22109compiler_needs_object \ 22110with_gnu_ld \ 22111allow_undefined_flag \ 22112no_undefined_flag \ 22113hardcode_libdir_flag_spec \ 22114hardcode_libdir_separator \ 22115exclude_expsyms \ 22116include_expsyms \ 22117file_list_spec \ 22118variables_saved_for_relink \ 22119libname_spec \ 22120library_names_spec \ 22121soname_spec \ 22122install_override_mode \ 22123finish_eval \ 22124old_striplib \ 22125striplib; do 22126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22127 *[\\\\\\\`\\"\\\$]*) 22128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22129 ;; 22130 *) 22131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22132 ;; 22133 esac 22134done 22135 22136# Double-quote double-evaled strings. 22137for var in reload_cmds \ 22138old_postinstall_cmds \ 22139old_postuninstall_cmds \ 22140old_archive_cmds \ 22141extract_expsyms_cmds \ 22142old_archive_from_new_cmds \ 22143old_archive_from_expsyms_cmds \ 22144archive_cmds \ 22145archive_expsym_cmds \ 22146module_cmds \ 22147module_expsym_cmds \ 22148export_symbols_cmds \ 22149prelink_cmds \ 22150postlink_cmds \ 22151postinstall_cmds \ 22152postuninstall_cmds \ 22153finish_cmds \ 22154sys_lib_search_path_spec \ 22155configure_time_dlsearch_path \ 22156configure_time_lt_sys_library_path; do 22157 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22158 *[\\\\\\\`\\"\\\$]*) 22159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22160 ;; 22161 *) 22162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22163 ;; 22164 esac 22165done 22166 22167ac_aux_dir='$ac_aux_dir' 22168 22169# See if we are running on zsh, and set the options that allow our 22170# commands through without removal of \ escapes INIT. 22171if test -n "\${ZSH_VERSION+set}"; then 22172 setopt NO_GLOB_SUBST 22173fi 22174 22175 22176 PACKAGE='$PACKAGE' 22177 VERSION='$VERSION' 22178 RM='$RM' 22179 ofile='$ofile' 22180 22181 22182 22183 22184_ACEOF 22185 22186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22187 22188# Handling of arguments. 22189for ac_config_target in $ac_config_targets 22190do 22191 case $ac_config_target in 22192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22196 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22197 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22198 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22199 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;; 22200 22201 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22202 esac 22203done 22204 22205 22206# If the user did not use the arguments to specify the items to instantiate, 22207# then the envvar interface is used. Set only those that are not. 22208# We use the long form for the default assignment because of an extremely 22209# bizarre bug on SunOS 4.1.3. 22210if $ac_need_defaults; then 22211 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22212 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22213 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22214fi 22215 22216# Have a temporary directory for convenience. Make it in the build tree 22217# simply because there is no reason against having it here, and in addition, 22218# creating and moving files from /tmp can sometimes cause problems. 22219# Hook for its removal unless debugging. 22220# Note that there is a small window in which the directory will not be cleaned: 22221# after its creation but before its name has been assigned to `$tmp'. 22222$debug || 22223{ 22224 tmp= ac_tmp= 22225 trap 'exit_status=$? 22226 : "${ac_tmp:=$tmp}" 22227 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22228' 0 22229 trap 'as_fn_exit 1' 1 2 13 15 22230} 22231# Create a (secure) tmp directory for tmp files. 22232 22233{ 22234 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22235 test -d "$tmp" 22236} || 22237{ 22238 tmp=./conf$$-$RANDOM 22239 (umask 077 && mkdir "$tmp") 22240} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22241ac_tmp=$tmp 22242 22243# Set up the scripts for CONFIG_FILES section. 22244# No need to generate them if there are no CONFIG_FILES. 22245# This happens for instance with `./config.status config.h'. 22246if test -n "$CONFIG_FILES"; then 22247 22248 22249ac_cr=`echo X | tr X '\015'` 22250# On cygwin, bash can eat \r inside `` if the user requested igncr. 22251# But we know of no other shell where ac_cr would be empty at this 22252# point, so we can use a bashism as a fallback. 22253if test "x$ac_cr" = x; then 22254 eval ac_cr=\$\'\\r\' 22255fi 22256ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22257if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22258 ac_cs_awk_cr='\\r' 22259else 22260 ac_cs_awk_cr=$ac_cr 22261fi 22262 22263echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22264_ACEOF 22265 22266 22267{ 22268 echo "cat >conf$$subs.awk <<_ACEOF" && 22269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22270 echo "_ACEOF" 22271} >conf$$subs.sh || 22272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22273ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22274ac_delim='%!_!# ' 22275for ac_last_try in false false false false false :; do 22276 . ./conf$$subs.sh || 22277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22278 22279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22280 if test $ac_delim_n = $ac_delim_num; then 22281 break 22282 elif $ac_last_try; then 22283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22284 else 22285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22286 fi 22287done 22288rm -f conf$$subs.sh 22289 22290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22291cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22292_ACEOF 22293sed -n ' 22294h 22295s/^/S["/; s/!.*/"]=/ 22296p 22297g 22298s/^[^!]*!// 22299:repl 22300t repl 22301s/'"$ac_delim"'$// 22302t delim 22303:nl 22304h 22305s/\(.\{148\}\)..*/\1/ 22306t more1 22307s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22308p 22309n 22310b repl 22311:more1 22312s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22313p 22314g 22315s/.\{148\}// 22316t nl 22317:delim 22318h 22319s/\(.\{148\}\)..*/\1/ 22320t more2 22321s/["\\]/\\&/g; s/^/"/; s/$/"/ 22322p 22323b 22324:more2 22325s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22326p 22327g 22328s/.\{148\}// 22329t delim 22330' <conf$$subs.awk | sed ' 22331/^[^""]/{ 22332 N 22333 s/\n// 22334} 22335' >>$CONFIG_STATUS || ac_write_fail=1 22336rm -f conf$$subs.awk 22337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22338_ACAWK 22339cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22340 for (key in S) S_is_set[key] = 1 22341 FS = "" 22342 22343} 22344{ 22345 line = $ 0 22346 nfields = split(line, field, "@") 22347 substed = 0 22348 len = length(field[1]) 22349 for (i = 2; i < nfields; i++) { 22350 key = field[i] 22351 keylen = length(key) 22352 if (S_is_set[key]) { 22353 value = S[key] 22354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22355 len += length(value) + length(field[++i]) 22356 substed = 1 22357 } else 22358 len += 1 + keylen 22359 } 22360 22361 print line 22362} 22363 22364_ACAWK 22365_ACEOF 22366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22369else 22370 cat 22371fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22373_ACEOF 22374 22375# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22376# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22377# trailing colons and then remove the whole line if VPATH becomes empty 22378# (actually we leave an empty line to preserve line numbers). 22379if test "x$srcdir" = x.; then 22380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22381h 22382s/// 22383s/^/:/ 22384s/[ ]*$/:/ 22385s/:\$(srcdir):/:/g 22386s/:\${srcdir}:/:/g 22387s/:@srcdir@:/:/g 22388s/^:*// 22389s/:*$// 22390x 22391s/\(=[ ]*\).*/\1/ 22392G 22393s/\n// 22394s/^[^=]*=[ ]*$// 22395}' 22396fi 22397 22398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22399fi # test -n "$CONFIG_FILES" 22400 22401# Set up the scripts for CONFIG_HEADERS section. 22402# No need to generate them if there are no CONFIG_HEADERS. 22403# This happens for instance with `./config.status Makefile'. 22404if test -n "$CONFIG_HEADERS"; then 22405cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22406BEGIN { 22407_ACEOF 22408 22409# Transform confdefs.h into an awk script `defines.awk', embedded as 22410# here-document in config.status, that substitutes the proper values into 22411# config.h.in to produce config.h. 22412 22413# Create a delimiter string that does not exist in confdefs.h, to ease 22414# handling of long lines. 22415ac_delim='%!_!# ' 22416for ac_last_try in false false :; do 22417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22418 if test -z "$ac_tt"; then 22419 break 22420 elif $ac_last_try; then 22421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22422 else 22423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22424 fi 22425done 22426 22427# For the awk script, D is an array of macro values keyed by name, 22428# likewise P contains macro parameters if any. Preserve backslash 22429# newline sequences. 22430 22431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22432sed -n ' 22433s/.\{148\}/&'"$ac_delim"'/g 22434t rset 22435:rset 22436s/^[ ]*#[ ]*define[ ][ ]*/ / 22437t def 22438d 22439:def 22440s/\\$// 22441t bsnl 22442s/["\\]/\\&/g 22443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22444D["\1"]=" \3"/p 22445s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22446d 22447:bsnl 22448s/["\\]/\\&/g 22449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22450D["\1"]=" \3\\\\\\n"\\/p 22451t cont 22452s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22453t cont 22454d 22455:cont 22456n 22457s/.\{148\}/&'"$ac_delim"'/g 22458t clear 22459:clear 22460s/\\$// 22461t bsnlc 22462s/["\\]/\\&/g; s/^/"/; s/$/"/p 22463d 22464:bsnlc 22465s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22466b cont 22467' <confdefs.h | sed ' 22468s/'"$ac_delim"'/"\\\ 22469"/g' >>$CONFIG_STATUS || ac_write_fail=1 22470 22471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22472 for (key in D) D_is_set[key] = 1 22473 FS = "" 22474} 22475/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22476 line = \$ 0 22477 split(line, arg, " ") 22478 if (arg[1] == "#") { 22479 defundef = arg[2] 22480 mac1 = arg[3] 22481 } else { 22482 defundef = substr(arg[1], 2) 22483 mac1 = arg[2] 22484 } 22485 split(mac1, mac2, "(") #) 22486 macro = mac2[1] 22487 prefix = substr(line, 1, index(line, defundef) - 1) 22488 if (D_is_set[macro]) { 22489 # Preserve the white space surrounding the "#". 22490 print prefix "define", macro P[macro] D[macro] 22491 next 22492 } else { 22493 # Replace #undef with comments. This is necessary, for example, 22494 # in the case of _POSIX_SOURCE, which is predefined and required 22495 # on some systems where configure will not decide to define it. 22496 if (defundef == "undef") { 22497 print "/*", prefix defundef, macro, "*/" 22498 next 22499 } 22500 } 22501} 22502{ print } 22503_ACAWK 22504_ACEOF 22505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22507fi # test -n "$CONFIG_HEADERS" 22508 22509 22510eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22511shift 22512for ac_tag 22513do 22514 case $ac_tag in 22515 :[FHLC]) ac_mode=$ac_tag; continue;; 22516 esac 22517 case $ac_mode$ac_tag in 22518 :[FHL]*:*);; 22519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22520 :[FH]-) ac_tag=-:-;; 22521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22522 esac 22523 ac_save_IFS=$IFS 22524 IFS=: 22525 set x $ac_tag 22526 IFS=$ac_save_IFS 22527 shift 22528 ac_file=$1 22529 shift 22530 22531 case $ac_mode in 22532 :L) ac_source=$1;; 22533 :[FH]) 22534 ac_file_inputs= 22535 for ac_f 22536 do 22537 case $ac_f in 22538 -) ac_f="$ac_tmp/stdin";; 22539 *) # Look for the file first in the build tree, then in the source tree 22540 # (if the path is not absolute). The absolute path cannot be DOS-style, 22541 # because $ac_f cannot contain `:'. 22542 test -f "$ac_f" || 22543 case $ac_f in 22544 [\\/$]*) false;; 22545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22546 esac || 22547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22548 esac 22549 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22550 as_fn_append ac_file_inputs " '$ac_f'" 22551 done 22552 22553 # Let's still pretend it is `configure' which instantiates (i.e., don't 22554 # use $as_me), people would be surprised to read: 22555 # /* config.h. Generated by config.status. */ 22556 configure_input='Generated from '` 22557 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22558 `' by configure.' 22559 if test x"$ac_file" != x-; then 22560 configure_input="$ac_file. $configure_input" 22561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22562printf "%s\n" "$as_me: creating $ac_file" >&6;} 22563 fi 22564 # Neutralize special characters interpreted by sed in replacement strings. 22565 case $configure_input in #( 22566 *\&* | *\|* | *\\* ) 22567 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22568 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22569 *) ac_sed_conf_input=$configure_input;; 22570 esac 22571 22572 case $ac_tag in 22573 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22575 esac 22576 ;; 22577 esac 22578 22579 ac_dir=`$as_dirname -- "$ac_file" || 22580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22581 X"$ac_file" : 'X\(//\)[^/]' \| \ 22582 X"$ac_file" : 'X\(//\)$' \| \ 22583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22584printf "%s\n" X"$ac_file" | 22585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22586 s//\1/ 22587 q 22588 } 22589 /^X\(\/\/\)[^/].*/{ 22590 s//\1/ 22591 q 22592 } 22593 /^X\(\/\/\)$/{ 22594 s//\1/ 22595 q 22596 } 22597 /^X\(\/\).*/{ 22598 s//\1/ 22599 q 22600 } 22601 s/.*/./; q'` 22602 as_dir="$ac_dir"; as_fn_mkdir_p 22603 ac_builddir=. 22604 22605case "$ac_dir" in 22606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22607*) 22608 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22609 # A ".." for each directory in $ac_dir_suffix. 22610 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22611 case $ac_top_builddir_sub in 22612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22614 esac ;; 22615esac 22616ac_abs_top_builddir=$ac_pwd 22617ac_abs_builddir=$ac_pwd$ac_dir_suffix 22618# for backward compatibility: 22619ac_top_builddir=$ac_top_build_prefix 22620 22621case $srcdir in 22622 .) # We are building in place. 22623 ac_srcdir=. 22624 ac_top_srcdir=$ac_top_builddir_sub 22625 ac_abs_top_srcdir=$ac_pwd ;; 22626 [\\/]* | ?:[\\/]* ) # Absolute name. 22627 ac_srcdir=$srcdir$ac_dir_suffix; 22628 ac_top_srcdir=$srcdir 22629 ac_abs_top_srcdir=$srcdir ;; 22630 *) # Relative name. 22631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22632 ac_top_srcdir=$ac_top_build_prefix$srcdir 22633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22634esac 22635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22636 22637 22638 case $ac_mode in 22639 :F) 22640 # 22641 # CONFIG_FILE 22642 # 22643 22644 case $INSTALL in 22645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22647 esac 22648 ac_MKDIR_P=$MKDIR_P 22649 case $MKDIR_P in 22650 [\\/$]* | ?:[\\/]* ) ;; 22651 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22652 esac 22653_ACEOF 22654 22655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22656# If the template does not know about datarootdir, expand it. 22657# FIXME: This hack should be removed a few years after 2.60. 22658ac_datarootdir_hack=; ac_datarootdir_seen= 22659ac_sed_dataroot=' 22660/datarootdir/ { 22661 p 22662 q 22663} 22664/@datadir@/p 22665/@docdir@/p 22666/@infodir@/p 22667/@localedir@/p 22668/@mandir@/p' 22669case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22670*datarootdir*) ac_datarootdir_seen=yes;; 22671*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22673printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22674_ACEOF 22675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22676 ac_datarootdir_hack=' 22677 s&@datadir@&$datadir&g 22678 s&@docdir@&$docdir&g 22679 s&@infodir@&$infodir&g 22680 s&@localedir@&$localedir&g 22681 s&@mandir@&$mandir&g 22682 s&\\\${datarootdir}&$datarootdir&g' ;; 22683esac 22684_ACEOF 22685 22686# Neutralize VPATH when `$srcdir' = `.'. 22687# Shell code in configure.ac might set extrasub. 22688# FIXME: do we really want to maintain this feature? 22689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22690ac_sed_extra="$ac_vpsub 22691$extrasub 22692_ACEOF 22693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22694:t 22695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22696s|@configure_input@|$ac_sed_conf_input|;t t 22697s&@top_builddir@&$ac_top_builddir_sub&;t t 22698s&@top_build_prefix@&$ac_top_build_prefix&;t t 22699s&@srcdir@&$ac_srcdir&;t t 22700s&@abs_srcdir@&$ac_abs_srcdir&;t t 22701s&@top_srcdir@&$ac_top_srcdir&;t t 22702s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22703s&@builddir@&$ac_builddir&;t t 22704s&@abs_builddir@&$ac_abs_builddir&;t t 22705s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22706s&@INSTALL@&$ac_INSTALL&;t t 22707s&@MKDIR_P@&$ac_MKDIR_P&;t t 22708$ac_datarootdir_hack 22709" 22710eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22711 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22712 22713test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22714 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22715 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22716 "$ac_tmp/out"`; test -z "$ac_out"; } && 22717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22718which seems to be undefined. Please make sure it is defined" >&5 22719printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22720which seems to be undefined. Please make sure it is defined" >&2;} 22721 22722 rm -f "$ac_tmp/stdin" 22723 case $ac_file in 22724 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22725 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22726 esac \ 22727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22728 ;; 22729 :H) 22730 # 22731 # CONFIG_HEADER 22732 # 22733 if test x"$ac_file" != x-; then 22734 { 22735 printf "%s\n" "/* $configure_input */" >&1 \ 22736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22737 } >"$ac_tmp/config.h" \ 22738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22739 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22741printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22742 else 22743 rm -f "$ac_file" 22744 mv "$ac_tmp/config.h" "$ac_file" \ 22745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22746 fi 22747 else 22748 printf "%s\n" "/* $configure_input */" >&1 \ 22749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22750 || as_fn_error $? "could not create -" "$LINENO" 5 22751 fi 22752# Compute "$ac_file"'s index in $config_headers. 22753_am_arg="$ac_file" 22754_am_stamp_count=1 22755for _am_header in $config_headers :; do 22756 case $_am_header in 22757 $_am_arg | $_am_arg:* ) 22758 break ;; 22759 * ) 22760 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22761 esac 22762done 22763echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22764$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22765 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22766 X"$_am_arg" : 'X\(//\)$' \| \ 22767 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22768printf "%s\n" X"$_am_arg" | 22769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22770 s//\1/ 22771 q 22772 } 22773 /^X\(\/\/\)[^/].*/{ 22774 s//\1/ 22775 q 22776 } 22777 /^X\(\/\/\)$/{ 22778 s//\1/ 22779 q 22780 } 22781 /^X\(\/\).*/{ 22782 s//\1/ 22783 q 22784 } 22785 s/.*/./; q'`/stamp-h$_am_stamp_count 22786 ;; 22787 22788 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22789printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22790 ;; 22791 esac 22792 22793 22794 case $ac_file$ac_mode in 22795 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22796 # Older Autoconf quotes --file arguments for eval, but not when files 22797 # are listed without --file. Let's play safe and only enable the eval 22798 # if we detect the quoting. 22799 # TODO: see whether this extra hack can be removed once we start 22800 # requiring Autoconf 2.70 or later. 22801 case $CONFIG_FILES in #( 22802 *\'*) : 22803 eval set x "$CONFIG_FILES" ;; #( 22804 *) : 22805 set x $CONFIG_FILES ;; #( 22806 *) : 22807 ;; 22808esac 22809 shift 22810 # Used to flag and report bootstrapping failures. 22811 am_rc=0 22812 for am_mf 22813 do 22814 # Strip MF so we end up with the name of the file. 22815 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22816 # Check whether this is an Automake generated Makefile which includes 22817 # dependency-tracking related rules and includes. 22818 # Grep'ing the whole file directly is not great: AIX grep has a line 22819 # limit of 2048, but all sed's we know have understand at least 4000. 22820 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22821 || continue 22822 am_dirpart=`$as_dirname -- "$am_mf" || 22823$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22824 X"$am_mf" : 'X\(//\)[^/]' \| \ 22825 X"$am_mf" : 'X\(//\)$' \| \ 22826 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22827printf "%s\n" X"$am_mf" | 22828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22829 s//\1/ 22830 q 22831 } 22832 /^X\(\/\/\)[^/].*/{ 22833 s//\1/ 22834 q 22835 } 22836 /^X\(\/\/\)$/{ 22837 s//\1/ 22838 q 22839 } 22840 /^X\(\/\).*/{ 22841 s//\1/ 22842 q 22843 } 22844 s/.*/./; q'` 22845 am_filepart=`$as_basename -- "$am_mf" || 22846$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22847 X"$am_mf" : 'X\(//\)$' \| \ 22848 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22849printf "%s\n" X/"$am_mf" | 22850 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22851 s//\1/ 22852 q 22853 } 22854 /^X\/\(\/\/\)$/{ 22855 s//\1/ 22856 q 22857 } 22858 /^X\/\(\/\).*/{ 22859 s//\1/ 22860 q 22861 } 22862 s/.*/./; q'` 22863 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22864 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22865 | $MAKE -f - am--depfiles" >&5 22866 (cd "$am_dirpart" \ 22867 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22868 | $MAKE -f - am--depfiles) >&5 2>&5 22869 ac_status=$? 22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22871 (exit $ac_status); } || am_rc=$? 22872 done 22873 if test $am_rc -ne 0; then 22874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22875printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22876as_fn_error $? "Something went wrong bootstrapping makefile fragments 22877 for automatic dependency tracking. If GNU make was not used, consider 22878 re-running the configure script with MAKE=\"gmake\" (or whatever is 22879 necessary). You can also try re-running configure with the 22880 '--disable-dependency-tracking' option to at least be able to build 22881 the package (albeit without support for automatic dependency tracking). 22882See \`config.log' for more details" "$LINENO" 5; } 22883 fi 22884 { am_dirpart=; unset am_dirpart;} 22885 { am_filepart=; unset am_filepart;} 22886 { am_mf=; unset am_mf;} 22887 { am_rc=; unset am_rc;} 22888 rm -f conftest-deps.mk 22889} 22890 ;; 22891 "libtool":C) 22892 22893 # See if we are running on zsh, and set the options that allow our 22894 # commands through without removal of \ escapes. 22895 if test -n "${ZSH_VERSION+set}"; then 22896 setopt NO_GLOB_SUBST 22897 fi 22898 22899 cfgfile=${ofile}T 22900 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22901 $RM "$cfgfile" 22902 22903 cat <<_LT_EOF >> "$cfgfile" 22904#! $SHELL 22905# Generated automatically by $as_me ($PACKAGE) $VERSION 22906# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22907# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22908 22909# Provide generalized library-building support services. 22910# Written by Gordon Matzigkeit, 1996 22911 22912# Copyright (C) 2014 Free Software Foundation, Inc. 22913# This is free software; see the source for copying conditions. There is NO 22914# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22915 22916# GNU Libtool is free software; you can redistribute it and/or modify 22917# it under the terms of the GNU General Public License as published by 22918# the Free Software Foundation; either version 2 of of the License, or 22919# (at your option) any later version. 22920# 22921# As a special exception to the GNU General Public License, if you 22922# distribute this file as part of a program or library that is built 22923# using GNU Libtool, you may include this file under the same 22924# distribution terms that you use for the rest of that program. 22925# 22926# GNU Libtool is distributed in the hope that it will be useful, but 22927# WITHOUT ANY WARRANTY; without even the implied warranty of 22928# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22929# GNU General Public License for more details. 22930# 22931# You should have received a copy of the GNU General Public License 22932# along with this program. If not, see <http://www.gnu.org/licenses/>. 22933 22934 22935# The names of the tagged configurations supported by this script. 22936available_tags='' 22937 22938# Configured defaults for sys_lib_dlsearch_path munging. 22939: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22940 22941# ### BEGIN LIBTOOL CONFIG 22942 22943# Which release of libtool.m4 was used? 22944macro_version=$macro_version 22945macro_revision=$macro_revision 22946 22947# Whether or not to build shared libraries. 22948build_libtool_libs=$enable_shared 22949 22950# Whether or not to build static libraries. 22951build_old_libs=$enable_static 22952 22953# What type of objects to build. 22954pic_mode=$pic_mode 22955 22956# Whether or not to optimize for fast installation. 22957fast_install=$enable_fast_install 22958 22959# Shared archive member basename,for filename based shared library versioning on AIX. 22960shared_archive_member_spec=$shared_archive_member_spec 22961 22962# Shell to use when invoking shell scripts. 22963SHELL=$lt_SHELL 22964 22965# An echo program that protects backslashes. 22966ECHO=$lt_ECHO 22967 22968# The PATH separator for the build system. 22969PATH_SEPARATOR=$lt_PATH_SEPARATOR 22970 22971# The host system. 22972host_alias=$host_alias 22973host=$host 22974host_os=$host_os 22975 22976# The build system. 22977build_alias=$build_alias 22978build=$build 22979build_os=$build_os 22980 22981# A sed program that does not truncate output. 22982SED=$lt_SED 22983 22984# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22985Xsed="\$SED -e 1s/^X//" 22986 22987# A grep program that handles long lines. 22988GREP=$lt_GREP 22989 22990# An ERE matcher. 22991EGREP=$lt_EGREP 22992 22993# A literal string matcher. 22994FGREP=$lt_FGREP 22995 22996# A BSD- or MS-compatible name lister. 22997NM=$lt_NM 22998 22999# Whether we need soft or hard links. 23000LN_S=$lt_LN_S 23001 23002# What is the maximum length of a command? 23003max_cmd_len=$max_cmd_len 23004 23005# Object file suffix (normally "o"). 23006objext=$ac_objext 23007 23008# Executable file suffix (normally ""). 23009exeext=$exeext 23010 23011# whether the shell understands "unset". 23012lt_unset=$lt_unset 23013 23014# turn spaces into newlines. 23015SP2NL=$lt_lt_SP2NL 23016 23017# turn newlines into spaces. 23018NL2SP=$lt_lt_NL2SP 23019 23020# convert \$build file names to \$host format. 23021to_host_file_cmd=$lt_cv_to_host_file_cmd 23022 23023# convert \$build files to toolchain format. 23024to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23025 23026# A file(cmd) program that detects file types. 23027FILECMD=$lt_FILECMD 23028 23029# An object symbol dumper. 23030OBJDUMP=$lt_OBJDUMP 23031 23032# Method to check whether dependent libraries are shared objects. 23033deplibs_check_method=$lt_deplibs_check_method 23034 23035# Command to use when deplibs_check_method = "file_magic". 23036file_magic_cmd=$lt_file_magic_cmd 23037 23038# How to find potential files when deplibs_check_method = "file_magic". 23039file_magic_glob=$lt_file_magic_glob 23040 23041# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23042want_nocaseglob=$lt_want_nocaseglob 23043 23044# DLL creation program. 23045DLLTOOL=$lt_DLLTOOL 23046 23047# Command to associate shared and link libraries. 23048sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23049 23050# The archiver. 23051AR=$lt_AR 23052 23053# Flags to create an archive (by configure). 23054lt_ar_flags=$lt_ar_flags 23055 23056# Flags to create an archive. 23057AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23058 23059# How to feed a file listing to the archiver. 23060archiver_list_spec=$lt_archiver_list_spec 23061 23062# A symbol stripping program. 23063STRIP=$lt_STRIP 23064 23065# Commands used to install an old-style archive. 23066RANLIB=$lt_RANLIB 23067old_postinstall_cmds=$lt_old_postinstall_cmds 23068old_postuninstall_cmds=$lt_old_postuninstall_cmds 23069 23070# Whether to use a lock for old archive extraction. 23071lock_old_archive_extraction=$lock_old_archive_extraction 23072 23073# A C compiler. 23074LTCC=$lt_CC 23075 23076# LTCC compiler flags. 23077LTCFLAGS=$lt_CFLAGS 23078 23079# Take the output of nm and produce a listing of raw symbols and C names. 23080global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23081 23082# Transform the output of nm in a proper C declaration. 23083global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23084 23085# Transform the output of nm into a list of symbols to manually relocate. 23086global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23087 23088# Transform the output of nm in a C name address pair. 23089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23090 23091# Transform the output of nm in a C name address pair when lib prefix is needed. 23092global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23093 23094# The name lister interface. 23095nm_interface=$lt_lt_cv_nm_interface 23096 23097# Specify filename containing input files for \$NM. 23098nm_file_list_spec=$lt_nm_file_list_spec 23099 23100# The root where to search for dependent libraries,and where our libraries should be installed. 23101lt_sysroot=$lt_sysroot 23102 23103# Command to truncate a binary pipe. 23104lt_truncate_bin=$lt_lt_cv_truncate_bin 23105 23106# The name of the directory that contains temporary libtool files. 23107objdir=$objdir 23108 23109# Used to examine libraries when file_magic_cmd begins with "file". 23110MAGIC_CMD=$MAGIC_CMD 23111 23112# Must we lock files when doing compilation? 23113need_locks=$lt_need_locks 23114 23115# Manifest tool. 23116MANIFEST_TOOL=$lt_MANIFEST_TOOL 23117 23118# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23119DSYMUTIL=$lt_DSYMUTIL 23120 23121# Tool to change global to local symbols on Mac OS X. 23122NMEDIT=$lt_NMEDIT 23123 23124# Tool to manipulate fat objects and archives on Mac OS X. 23125LIPO=$lt_LIPO 23126 23127# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23128OTOOL=$lt_OTOOL 23129 23130# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23131OTOOL64=$lt_OTOOL64 23132 23133# Old archive suffix (normally "a"). 23134libext=$libext 23135 23136# Shared library suffix (normally ".so"). 23137shrext_cmds=$lt_shrext_cmds 23138 23139# The commands to extract the exported symbol list from a shared archive. 23140extract_expsyms_cmds=$lt_extract_expsyms_cmds 23141 23142# Variables whose values should be saved in libtool wrapper scripts and 23143# restored at link time. 23144variables_saved_for_relink=$lt_variables_saved_for_relink 23145 23146# Do we need the "lib" prefix for modules? 23147need_lib_prefix=$need_lib_prefix 23148 23149# Do we need a version for libraries? 23150need_version=$need_version 23151 23152# Library versioning type. 23153version_type=$version_type 23154 23155# Shared library runtime path variable. 23156runpath_var=$runpath_var 23157 23158# Shared library path variable. 23159shlibpath_var=$shlibpath_var 23160 23161# Is shlibpath searched before the hard-coded library search path? 23162shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23163 23164# Format of library name prefix. 23165libname_spec=$lt_libname_spec 23166 23167# List of archive names. First name is the real one, the rest are links. 23168# The last name is the one that the linker finds with -lNAME 23169library_names_spec=$lt_library_names_spec 23170 23171# The coded name of the library, if different from the real name. 23172soname_spec=$lt_soname_spec 23173 23174# Permission mode override for installation of shared libraries. 23175install_override_mode=$lt_install_override_mode 23176 23177# Command to use after installation of a shared archive. 23178postinstall_cmds=$lt_postinstall_cmds 23179 23180# Command to use after uninstallation of a shared archive. 23181postuninstall_cmds=$lt_postuninstall_cmds 23182 23183# Commands used to finish a libtool library installation in a directory. 23184finish_cmds=$lt_finish_cmds 23185 23186# As "finish_cmds", except a single script fragment to be evaled but 23187# not shown. 23188finish_eval=$lt_finish_eval 23189 23190# Whether we should hardcode library paths into libraries. 23191hardcode_into_libs=$hardcode_into_libs 23192 23193# Compile-time system search path for libraries. 23194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23195 23196# Detected run-time system search path for libraries. 23197sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23198 23199# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23200configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23201 23202# Whether dlopen is supported. 23203dlopen_support=$enable_dlopen 23204 23205# Whether dlopen of programs is supported. 23206dlopen_self=$enable_dlopen_self 23207 23208# Whether dlopen of statically linked programs is supported. 23209dlopen_self_static=$enable_dlopen_self_static 23210 23211# Commands to strip libraries. 23212old_striplib=$lt_old_striplib 23213striplib=$lt_striplib 23214 23215 23216# The linker used to build libraries. 23217LD=$lt_LD 23218 23219# How to create reloadable object files. 23220reload_flag=$lt_reload_flag 23221reload_cmds=$lt_reload_cmds 23222 23223# Commands used to build an old-style archive. 23224old_archive_cmds=$lt_old_archive_cmds 23225 23226# A language specific compiler. 23227CC=$lt_compiler 23228 23229# Is the compiler the GNU compiler? 23230with_gcc=$GCC 23231 23232# Compiler flag to turn off builtin functions. 23233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23234 23235# Additional compiler flags for building library objects. 23236pic_flag=$lt_lt_prog_compiler_pic 23237 23238# How to pass a linker flag through the compiler. 23239wl=$lt_lt_prog_compiler_wl 23240 23241# Compiler flag to prevent dynamic linking. 23242link_static_flag=$lt_lt_prog_compiler_static 23243 23244# Does compiler simultaneously support -c and -o options? 23245compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23246 23247# Whether or not to add -lc for building shared libraries. 23248build_libtool_need_lc=$archive_cmds_need_lc 23249 23250# Whether or not to disallow shared libs when runtime libs are static. 23251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23252 23253# Compiler flag to allow reflexive dlopens. 23254export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23255 23256# Compiler flag to generate shared objects directly from archives. 23257whole_archive_flag_spec=$lt_whole_archive_flag_spec 23258 23259# Whether the compiler copes with passing no objects directly. 23260compiler_needs_object=$lt_compiler_needs_object 23261 23262# Create an old-style archive from a shared archive. 23263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23264 23265# Create a temporary old-style archive to link instead of a shared archive. 23266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23267 23268# Commands used to build a shared archive. 23269archive_cmds=$lt_archive_cmds 23270archive_expsym_cmds=$lt_archive_expsym_cmds 23271 23272# Commands used to build a loadable module if different from building 23273# a shared archive. 23274module_cmds=$lt_module_cmds 23275module_expsym_cmds=$lt_module_expsym_cmds 23276 23277# Whether we are building with GNU ld or not. 23278with_gnu_ld=$lt_with_gnu_ld 23279 23280# Flag that allows shared libraries with undefined symbols to be built. 23281allow_undefined_flag=$lt_allow_undefined_flag 23282 23283# Flag that enforces no undefined symbols. 23284no_undefined_flag=$lt_no_undefined_flag 23285 23286# Flag to hardcode \$libdir into a binary during linking. 23287# This must work even if \$libdir does not exist 23288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23289 23290# Whether we need a single "-rpath" flag with a separated argument. 23291hardcode_libdir_separator=$lt_hardcode_libdir_separator 23292 23293# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23294# DIR into the resulting binary. 23295hardcode_direct=$hardcode_direct 23296 23297# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23298# DIR into the resulting binary and the resulting library dependency is 23299# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23300# library is relocated. 23301hardcode_direct_absolute=$hardcode_direct_absolute 23302 23303# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23304# into the resulting binary. 23305hardcode_minus_L=$hardcode_minus_L 23306 23307# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23308# into the resulting binary. 23309hardcode_shlibpath_var=$hardcode_shlibpath_var 23310 23311# Set to "yes" if building a shared library automatically hardcodes DIR 23312# into the library and all subsequent libraries and executables linked 23313# against it. 23314hardcode_automatic=$hardcode_automatic 23315 23316# Set to yes if linker adds runtime paths of dependent libraries 23317# to runtime path list. 23318inherit_rpath=$inherit_rpath 23319 23320# Whether libtool must link a program against all its dependency libraries. 23321link_all_deplibs=$link_all_deplibs 23322 23323# Set to "yes" if exported symbols are required. 23324always_export_symbols=$always_export_symbols 23325 23326# The commands to list exported symbols. 23327export_symbols_cmds=$lt_export_symbols_cmds 23328 23329# Symbols that should not be listed in the preloaded symbols. 23330exclude_expsyms=$lt_exclude_expsyms 23331 23332# Symbols that must always be exported. 23333include_expsyms=$lt_include_expsyms 23334 23335# Commands necessary for linking programs (against libraries) with templates. 23336prelink_cmds=$lt_prelink_cmds 23337 23338# Commands necessary for finishing linking programs. 23339postlink_cmds=$lt_postlink_cmds 23340 23341# Specify filename containing input files. 23342file_list_spec=$lt_file_list_spec 23343 23344# How to hardcode a shared library path into an executable. 23345hardcode_action=$hardcode_action 23346 23347# ### END LIBTOOL CONFIG 23348 23349_LT_EOF 23350 23351 cat <<'_LT_EOF' >> "$cfgfile" 23352 23353# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23354 23355# func_munge_path_list VARIABLE PATH 23356# ----------------------------------- 23357# VARIABLE is name of variable containing _space_ separated list of 23358# directories to be munged by the contents of PATH, which is string 23359# having a format: 23360# "DIR[:DIR]:" 23361# string "DIR[ DIR]" will be prepended to VARIABLE 23362# ":DIR[:DIR]" 23363# string "DIR[ DIR]" will be appended to VARIABLE 23364# "DIRP[:DIRP]::[DIRA:]DIRA" 23365# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23366# "DIRA[ DIRA]" will be appended to VARIABLE 23367# "DIR[:DIR]" 23368# VARIABLE will be replaced by "DIR[ DIR]" 23369func_munge_path_list () 23370{ 23371 case x$2 in 23372 x) 23373 ;; 23374 *:) 23375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23376 ;; 23377 x:*) 23378 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23379 ;; 23380 *::*) 23381 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23382 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23383 ;; 23384 *) 23385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23386 ;; 23387 esac 23388} 23389 23390 23391# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23392func_cc_basename () 23393{ 23394 for cc_temp in $*""; do 23395 case $cc_temp in 23396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23398 \-*) ;; 23399 *) break;; 23400 esac 23401 done 23402 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23403} 23404 23405 23406# ### END FUNCTIONS SHARED WITH CONFIGURE 23407 23408_LT_EOF 23409 23410 case $host_os in 23411 aix3*) 23412 cat <<\_LT_EOF >> "$cfgfile" 23413# AIX sometimes has problems with the GCC collect2 program. For some 23414# reason, if we set the COLLECT_NAMES environment variable, the problems 23415# vanish in a puff of smoke. 23416if test set != "${COLLECT_NAMES+set}"; then 23417 COLLECT_NAMES= 23418 export COLLECT_NAMES 23419fi 23420_LT_EOF 23421 ;; 23422 esac 23423 23424 23425 23426ltmain=$ac_aux_dir/ltmain.sh 23427 23428 23429 # We use sed instead of cat because bash on DJGPP gets confused if 23430 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23431 # text mode, it properly converts lines to CR/LF. This bash problem 23432 # is reportedly fixed, but why not run on old versions too? 23433 $SED '$q' "$ltmain" >> "$cfgfile" \ 23434 || (rm -f "$cfgfile"; exit 1) 23435 23436 mv -f "$cfgfile" "$ofile" || 23437 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23438 chmod +x "$ofile" 23439 23440 ;; 23441 23442 esac 23443done # for ac_tag 23444 23445 23446as_fn_exit 0 23447_ACEOF 23448ac_clean_files=$ac_clean_files_save 23449 23450test $ac_write_fail = 0 || 23451 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23452 23453 23454# configure is writing to config.log, and then calls config.status. 23455# config.status does its own redirection, appending to config.log. 23456# Unfortunately, on DOS this fails, as config.log is still kept open 23457# by configure, so config.status won't be able to write to it; its 23458# output is simply discarded. So we exec the FD to /dev/null, 23459# effectively closing config.log, so it can be properly (re)opened and 23460# appended to by config.status. When coming back to configure, we 23461# need to make the FD available again. 23462if test "$no_create" != yes; then 23463 ac_cs_success=: 23464 ac_config_status_args= 23465 test "$silent" = yes && 23466 ac_config_status_args="$ac_config_status_args --quiet" 23467 exec 5>/dev/null 23468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23469 exec 5>>config.log 23470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23471 # would make configure fail if this is the last instruction. 23472 $ac_cs_success || as_fn_exit 1 23473fi 23474if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23476printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23477fi 23478 23479 23480