configure revision 15885c33
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libX11 1.8.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/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/libx11/-/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='libX11' 684PACKAGE_TARNAME='libX11' 685PACKAGE_VERSION='1.8.6' 686PACKAGE_STRING='libX11 1.8.6' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/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_func_c_list= 724ac_subst_vars='am__EXEEXT_FALSE 725am__EXEEXT_TRUE 726LTLIBOBJS 727XTMALLOC_ZERO_CFLAGS 728XMALLOC_ZERO_CFLAGS 729MALLOC_ZERO_CFLAGS 730XERRORDB 731XKEYSYMDB 732locales 733X11_LOCALEDIR 734XLOCALEDIR 735X11_LOCALELIBDIR 736XLOCALELIBDIR 737X11_LOCALEDATADIR 738XLOCALEDATADIR 739X11_LIBS 740X11_CFLAGS 741X11_LIBDIR 742X11_DATADIR 743MAKE_LINT_LIB_FALSE 744MAKE_LINT_LIB_TRUE 745LINTLIB 746LINT_FALSE 747LINT_TRUE 748LINT_FLAGS 749LINT 750XKBPROTO_REQUIRES 751XKB_FALSE 752XKB_TRUE 753BIGFONT_LIBS 754BIGFONT_CFLAGS 755XLOCALE_FALSE 756XLOCALE_TRUE 757XCMS_FALSE 758XCMS_TRUE 759KEYSYMDEFS 760USE_THREAD_LIBS 761XTHREAD_CFLAGS 762XTHREADLIB 763LAUNCHD 764OS2_FALSE 765OS2_TRUE 766WCHAR32 767LIBOBJS 768XLIB_LOADABLE_I18N_FALSE 769XLIB_LOADABLE_I18N_TRUE 770I18N_MODULE_LIBS 771X11_EXTRA_DEPS 772EXEEXT_FOR_BUILD 773LDFLAGS_FOR_BUILD 774CFLAGS_FOR_BUILD 775CPPFLAGS_FOR_BUILD 776CC_FOR_BUILD 777HAVE_PERL_FALSE 778HAVE_PERL_TRUE 779PERL 780TRADITIONALCPPFLAGS 781RAWCPPFLAGS 782RAWCPP 783CPP 784HAVE_STYLESHEETS_FALSE 785HAVE_STYLESHEETS_TRUE 786XSL_STYLESHEET 787STYLESHEET_SRCDIR 788XORG_SGML_PATH 789HAVE_XSLTPROC_FALSE 790HAVE_XSLTPROC_TRUE 791XSLTPROC 792HAVE_FOP_FALSE 793HAVE_FOP_TRUE 794FOP 795HAVE_XMLTO_FALSE 796HAVE_XMLTO_TRUE 797HAVE_XMLTO_TEXT_FALSE 798HAVE_XMLTO_TEXT_TRUE 799XMLTO 800ENABLE_SPECS_FALSE 801ENABLE_SPECS_TRUE 802MAN_SUBSTS 803XORG_MAN_PAGE 804ADMIN_MAN_DIR 805DRIVER_MAN_DIR 806MISC_MAN_DIR 807FILE_MAN_DIR 808LIB_MAN_DIR 809APP_MAN_DIR 810ADMIN_MAN_SUFFIX 811DRIVER_MAN_SUFFIX 812MISC_MAN_SUFFIX 813FILE_MAN_SUFFIX 814LIB_MAN_SUFFIX 815APP_MAN_SUFFIX 816INSTALL_CMD 817PKG_CONFIG_LIBDIR 818PKG_CONFIG_PATH 819PKG_CONFIG 820CHANGELOG_CMD 821STRICT_CFLAGS 822CWARNFLAGS 823BASE_CFLAGS 824LT_SYS_LIBRARY_PATH 825OTOOL64 826OTOOL 827LIPO 828NMEDIT 829DSYMUTIL 830MANIFEST_TOOL 831RANLIB 832ac_ct_AR 833AR 834DLLTOOL 835OBJDUMP 836FILECMD 837LN_S 838NM 839ac_ct_DUMPBIN 840DUMPBIN 841LD 842FGREP 843EGREP 844GREP 845SED 846LIBTOOL 847AM_BACKSLASH 848AM_DEFAULT_VERBOSITY 849AM_DEFAULT_V 850AM_V 851CSCOPE 852ETAGS 853CTAGS 854am__fastdepCC_FALSE 855am__fastdepCC_TRUE 856CCDEPMODE 857am__nodep 858AMDEPBACKSLASH 859AMDEP_FALSE 860AMDEP_TRUE 861am__include 862DEPDIR 863am__untar 864am__tar 865AMTAR 866am__leading_dot 867SET_MAKE 868AWK 869mkdir_p 870MKDIR_P 871INSTALL_STRIP_PROGRAM 872STRIP 873install_sh 874MAKEINFO 875AUTOHEADER 876AUTOMAKE 877AUTOCONF 878ACLOCAL 879VERSION 880PACKAGE 881CYGPATH_W 882am__isrc 883INSTALL_DATA 884INSTALL_SCRIPT 885INSTALL_PROGRAM 886OBJEXT 887EXEEXT 888ac_ct_CC 889CPPFLAGS 890LDFLAGS 891CFLAGS 892CC 893host_os 894host_vendor 895host_cpu 896host 897build_os 898build_vendor 899build_cpu 900build 901target_alias 902host_alias 903build_alias 904LIBS 905ECHO_T 906ECHO_N 907ECHO_C 908DEFS 909mandir 910localedir 911libdir 912psdir 913pdfdir 914dvidir 915htmldir 916infodir 917docdir 918oldincludedir 919includedir 920runstatedir 921localstatedir 922sharedstatedir 923sysconfdir 924datadir 925datarootdir 926libexecdir 927sbindir 928bindir 929program_transform_name 930prefix 931exec_prefix 932PACKAGE_URL 933PACKAGE_BUGREPORT 934PACKAGE_STRING 935PACKAGE_VERSION 936PACKAGE_TARNAME 937PACKAGE_NAME 938PATH_SEPARATOR 939SHELL 940am__quote' 941ac_subst_files='' 942ac_user_opts=' 943enable_option_checking 944enable_dependency_tracking 945enable_silent_rules 946enable_shared 947enable_static 948with_pic 949enable_fast_install 950with_aix_soname 951with_gnu_ld 952with_sysroot 953enable_libtool_lock 954enable_largefile 955enable_selective_werror 956enable_strict_compilation 957enable_specs 958with_xmlto 959with_fop 960with_xsltproc 961with_perl 962enable_unix_transport 963enable_tcp_transport 964enable_ipv6 965enable_local_transport 966enable_loadable_i18n 967enable_loadable_xcursor 968enable_thread_safety_constructor 969with_launchd 970enable_xthreads 971with_keysymdefdir 972enable_xcms 973enable_xlocale 974enable_xlocaledir 975enable_xf86bigfont 976enable_xkb 977enable_composecache 978with_lint 979enable_lint_library 980with_locale_lib_dir 981enable_malloc0returnsnull 982' 983 ac_precious_vars='build_alias 984host_alias 985target_alias 986CC 987CFLAGS 988LDFLAGS 989LIBS 990CPPFLAGS 991LT_SYS_LIBRARY_PATH 992PKG_CONFIG 993PKG_CONFIG_PATH 994PKG_CONFIG_LIBDIR 995XMLTO 996FOP 997XSLTPROC 998CPP 999PERL 1000BIGFONT_CFLAGS 1001BIGFONT_LIBS 1002LINT 1003LINT_FLAGS 1004X11_CFLAGS 1005X11_LIBS' 1006 1007 1008# Initialize some variables set by options. 1009ac_init_help= 1010ac_init_version=false 1011ac_unrecognized_opts= 1012ac_unrecognized_sep= 1013# The variables have the same names as the options, with 1014# dashes changed to underlines. 1015cache_file=/dev/null 1016exec_prefix=NONE 1017no_create= 1018no_recursion= 1019prefix=NONE 1020program_prefix=NONE 1021program_suffix=NONE 1022program_transform_name=s,x,x, 1023silent= 1024site= 1025srcdir= 1026verbose= 1027x_includes=NONE 1028x_libraries=NONE 1029 1030# Installation directory options. 1031# These are left unexpanded so users can "make install exec_prefix=/foo" 1032# and all the variables that are supposed to be based on exec_prefix 1033# by default will actually change. 1034# Use braces instead of parens because sh, perl, etc. also accept them. 1035# (The list follows the same order as the GNU Coding Standards.) 1036bindir='${exec_prefix}/bin' 1037sbindir='${exec_prefix}/sbin' 1038libexecdir='${exec_prefix}/libexec' 1039datarootdir='${prefix}/share' 1040datadir='${datarootdir}' 1041sysconfdir='${prefix}/etc' 1042sharedstatedir='${prefix}/com' 1043localstatedir='${prefix}/var' 1044runstatedir='${localstatedir}/run' 1045includedir='${prefix}/include' 1046oldincludedir='/usr/include' 1047docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1048infodir='${datarootdir}/info' 1049htmldir='${docdir}' 1050dvidir='${docdir}' 1051pdfdir='${docdir}' 1052psdir='${docdir}' 1053libdir='${exec_prefix}/lib' 1054localedir='${datarootdir}/locale' 1055mandir='${datarootdir}/man' 1056 1057ac_prev= 1058ac_dashdash= 1059for ac_option 1060do 1061 # If the previous option needs an argument, assign it. 1062 if test -n "$ac_prev"; then 1063 eval $ac_prev=\$ac_option 1064 ac_prev= 1065 continue 1066 fi 1067 1068 case $ac_option in 1069 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1070 *=) ac_optarg= ;; 1071 *) ac_optarg=yes ;; 1072 esac 1073 1074 case $ac_dashdash$ac_option in 1075 --) 1076 ac_dashdash=yes ;; 1077 1078 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1079 ac_prev=bindir ;; 1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1081 bindir=$ac_optarg ;; 1082 1083 -build | --build | --buil | --bui | --bu) 1084 ac_prev=build_alias ;; 1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1086 build_alias=$ac_optarg ;; 1087 1088 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1090 ac_prev=cache_file ;; 1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1093 cache_file=$ac_optarg ;; 1094 1095 --config-cache | -C) 1096 cache_file=config.cache ;; 1097 1098 -datadir | --datadir | --datadi | --datad) 1099 ac_prev=datadir ;; 1100 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1101 datadir=$ac_optarg ;; 1102 1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1104 | --dataroo | --dataro | --datar) 1105 ac_prev=datarootdir ;; 1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1108 datarootdir=$ac_optarg ;; 1109 1110 -disable-* | --disable-*) 1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1112 # Reject names that are not valid shell variable names. 1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"enable_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval enable_$ac_useropt=no ;; 1125 1126 -docdir | --docdir | --docdi | --doc | --do) 1127 ac_prev=docdir ;; 1128 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1129 docdir=$ac_optarg ;; 1130 1131 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1132 ac_prev=dvidir ;; 1133 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1134 dvidir=$ac_optarg ;; 1135 1136 -enable-* | --enable-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"enable_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval enable_$ac_useropt=\$ac_optarg ;; 1151 1152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1154 | --exec | --exe | --ex) 1155 ac_prev=exec_prefix ;; 1156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1158 | --exec=* | --exe=* | --ex=*) 1159 exec_prefix=$ac_optarg ;; 1160 1161 -gas | --gas | --ga | --g) 1162 # Obsolete; use --with-gas. 1163 with_gas=yes ;; 1164 1165 -help | --help | --hel | --he | -h) 1166 ac_init_help=long ;; 1167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1168 ac_init_help=recursive ;; 1169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1170 ac_init_help=short ;; 1171 1172 -host | --host | --hos | --ho) 1173 ac_prev=host_alias ;; 1174 -host=* | --host=* | --hos=* | --ho=*) 1175 host_alias=$ac_optarg ;; 1176 1177 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1178 ac_prev=htmldir ;; 1179 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1180 | --ht=*) 1181 htmldir=$ac_optarg ;; 1182 1183 -includedir | --includedir | --includedi | --included | --include \ 1184 | --includ | --inclu | --incl | --inc) 1185 ac_prev=includedir ;; 1186 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1187 | --includ=* | --inclu=* | --incl=* | --inc=*) 1188 includedir=$ac_optarg ;; 1189 1190 -infodir | --infodir | --infodi | --infod | --info | --inf) 1191 ac_prev=infodir ;; 1192 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1193 infodir=$ac_optarg ;; 1194 1195 -libdir | --libdir | --libdi | --libd) 1196 ac_prev=libdir ;; 1197 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1198 libdir=$ac_optarg ;; 1199 1200 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1201 | --libexe | --libex | --libe) 1202 ac_prev=libexecdir ;; 1203 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1204 | --libexe=* | --libex=* | --libe=*) 1205 libexecdir=$ac_optarg ;; 1206 1207 -localedir | --localedir | --localedi | --localed | --locale) 1208 ac_prev=localedir ;; 1209 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1210 localedir=$ac_optarg ;; 1211 1212 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1213 | --localstate | --localstat | --localsta | --localst | --locals) 1214 ac_prev=localstatedir ;; 1215 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1216 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1217 localstatedir=$ac_optarg ;; 1218 1219 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1220 ac_prev=mandir ;; 1221 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1222 mandir=$ac_optarg ;; 1223 1224 -nfp | --nfp | --nf) 1225 # Obsolete; use --without-fp. 1226 with_fp=no ;; 1227 1228 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1229 | --no-cr | --no-c | -n) 1230 no_create=yes ;; 1231 1232 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1233 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1234 no_recursion=yes ;; 1235 1236 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1237 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1238 | --oldin | --oldi | --old | --ol | --o) 1239 ac_prev=oldincludedir ;; 1240 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1241 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1242 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1243 oldincludedir=$ac_optarg ;; 1244 1245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1246 ac_prev=prefix ;; 1247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1248 prefix=$ac_optarg ;; 1249 1250 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1251 | --program-pre | --program-pr | --program-p) 1252 ac_prev=program_prefix ;; 1253 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1254 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1255 program_prefix=$ac_optarg ;; 1256 1257 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1258 | --program-suf | --program-su | --program-s) 1259 ac_prev=program_suffix ;; 1260 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1261 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1262 program_suffix=$ac_optarg ;; 1263 1264 -program-transform-name | --program-transform-name \ 1265 | --program-transform-nam | --program-transform-na \ 1266 | --program-transform-n | --program-transform- \ 1267 | --program-transform | --program-transfor \ 1268 | --program-transfo | --program-transf \ 1269 | --program-trans | --program-tran \ 1270 | --progr-tra | --program-tr | --program-t) 1271 ac_prev=program_transform_name ;; 1272 -program-transform-name=* | --program-transform-name=* \ 1273 | --program-transform-nam=* | --program-transform-na=* \ 1274 | --program-transform-n=* | --program-transform-=* \ 1275 | --program-transform=* | --program-transfor=* \ 1276 | --program-transfo=* | --program-transf=* \ 1277 | --program-trans=* | --program-tran=* \ 1278 | --progr-tra=* | --program-tr=* | --program-t=*) 1279 program_transform_name=$ac_optarg ;; 1280 1281 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1282 ac_prev=pdfdir ;; 1283 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1284 pdfdir=$ac_optarg ;; 1285 1286 -psdir | --psdir | --psdi | --psd | --ps) 1287 ac_prev=psdir ;; 1288 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1289 psdir=$ac_optarg ;; 1290 1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1292 | -silent | --silent | --silen | --sile | --sil) 1293 silent=yes ;; 1294 1295 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1296 | --runstate | --runstat | --runsta | --runst | --runs \ 1297 | --run | --ru | --r) 1298 ac_prev=runstatedir ;; 1299 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1300 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1301 | --run=* | --ru=* | --r=*) 1302 runstatedir=$ac_optarg ;; 1303 1304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1305 ac_prev=sbindir ;; 1306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1307 | --sbi=* | --sb=*) 1308 sbindir=$ac_optarg ;; 1309 1310 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1312 | --sharedst | --shareds | --shared | --share | --shar \ 1313 | --sha | --sh) 1314 ac_prev=sharedstatedir ;; 1315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1318 | --sha=* | --sh=*) 1319 sharedstatedir=$ac_optarg ;; 1320 1321 -site | --site | --sit) 1322 ac_prev=site ;; 1323 -site=* | --site=* | --sit=*) 1324 site=$ac_optarg ;; 1325 1326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1327 ac_prev=srcdir ;; 1328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1329 srcdir=$ac_optarg ;; 1330 1331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1332 | --syscon | --sysco | --sysc | --sys | --sy) 1333 ac_prev=sysconfdir ;; 1334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1336 sysconfdir=$ac_optarg ;; 1337 1338 -target | --target | --targe | --targ | --tar | --ta | --t) 1339 ac_prev=target_alias ;; 1340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1341 target_alias=$ac_optarg ;; 1342 1343 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1344 verbose=yes ;; 1345 1346 -version | --version | --versio | --versi | --vers | -V) 1347 ac_init_version=: ;; 1348 1349 -with-* | --with-*) 1350 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1351 # Reject names that are not valid shell variable names. 1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1353 as_fn_error $? "invalid package name: \`$ac_useropt'" 1354 ac_useropt_orig=$ac_useropt 1355 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1356 case $ac_user_opts in 1357 *" 1358"with_$ac_useropt" 1359"*) ;; 1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1361 ac_unrecognized_sep=', ';; 1362 esac 1363 eval with_$ac_useropt=\$ac_optarg ;; 1364 1365 -without-* | --without-*) 1366 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1367 # Reject names that are not valid shell variable names. 1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1369 as_fn_error $? "invalid package name: \`$ac_useropt'" 1370 ac_useropt_orig=$ac_useropt 1371 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1372 case $ac_user_opts in 1373 *" 1374"with_$ac_useropt" 1375"*) ;; 1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1377 ac_unrecognized_sep=', ';; 1378 esac 1379 eval with_$ac_useropt=no ;; 1380 1381 --x) 1382 # Obsolete; use --with-x. 1383 with_x=yes ;; 1384 1385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1386 | --x-incl | --x-inc | --x-in | --x-i) 1387 ac_prev=x_includes ;; 1388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1390 x_includes=$ac_optarg ;; 1391 1392 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1394 ac_prev=x_libraries ;; 1395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1397 x_libraries=$ac_optarg ;; 1398 1399 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1400Try \`$0 --help' for more information" 1401 ;; 1402 1403 *=*) 1404 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1405 # Reject names that are not valid shell variable names. 1406 case $ac_envvar in #( 1407 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1408 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1409 esac 1410 eval $ac_envvar=\$ac_optarg 1411 export $ac_envvar ;; 1412 1413 *) 1414 # FIXME: should be removed in autoconf 3.0. 1415 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1416 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1417 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1418 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1419 ;; 1420 1421 esac 1422done 1423 1424if test -n "$ac_prev"; then 1425 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1426 as_fn_error $? "missing argument to $ac_option" 1427fi 1428 1429if test -n "$ac_unrecognized_opts"; then 1430 case $enable_option_checking in 1431 no) ;; 1432 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1433 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1434 esac 1435fi 1436 1437# Check all directory arguments for consistency. 1438for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1439 datadir sysconfdir sharedstatedir localstatedir includedir \ 1440 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1441 libdir localedir mandir runstatedir 1442do 1443 eval ac_val=\$$ac_var 1444 # Remove trailing slashes. 1445 case $ac_val in 1446 */ ) 1447 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1448 eval $ac_var=\$ac_val;; 1449 esac 1450 # Be sure to have absolute directory names. 1451 case $ac_val in 1452 [\\/$]* | ?:[\\/]* ) continue;; 1453 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1454 esac 1455 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1456done 1457 1458# There might be people who depend on the old broken behavior: `$host' 1459# used to hold the argument of --host etc. 1460# FIXME: To remove some day. 1461build=$build_alias 1462host=$host_alias 1463target=$target_alias 1464 1465# FIXME: To remove some day. 1466if test "x$host_alias" != x; then 1467 if test "x$build_alias" = x; then 1468 cross_compiling=maybe 1469 elif test "x$build_alias" != "x$host_alias"; then 1470 cross_compiling=yes 1471 fi 1472fi 1473 1474ac_tool_prefix= 1475test -n "$host_alias" && ac_tool_prefix=$host_alias- 1476 1477test "$silent" = yes && exec 6>/dev/null 1478 1479 1480ac_pwd=`pwd` && test -n "$ac_pwd" && 1481ac_ls_di=`ls -di .` && 1482ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1483 as_fn_error $? "working directory cannot be determined" 1484test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1485 as_fn_error $? "pwd does not report name of working directory" 1486 1487 1488# Find the source files, if location was not specified. 1489if test -z "$srcdir"; then 1490 ac_srcdir_defaulted=yes 1491 # Try the directory containing this script, then the parent directory. 1492 ac_confdir=`$as_dirname -- "$as_myself" || 1493$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1494 X"$as_myself" : 'X\(//\)[^/]' \| \ 1495 X"$as_myself" : 'X\(//\)$' \| \ 1496 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1497printf "%s\n" X"$as_myself" | 1498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1499 s//\1/ 1500 q 1501 } 1502 /^X\(\/\/\)[^/].*/{ 1503 s//\1/ 1504 q 1505 } 1506 /^X\(\/\/\)$/{ 1507 s//\1/ 1508 q 1509 } 1510 /^X\(\/\).*/{ 1511 s//\1/ 1512 q 1513 } 1514 s/.*/./; q'` 1515 srcdir=$ac_confdir 1516 if test ! -r "$srcdir/$ac_unique_file"; then 1517 srcdir=.. 1518 fi 1519else 1520 ac_srcdir_defaulted=no 1521fi 1522if test ! -r "$srcdir/$ac_unique_file"; then 1523 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1524 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1525fi 1526ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1527ac_abs_confdir=`( 1528 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1529 pwd)` 1530# When building in place, set srcdir=. 1531if test "$ac_abs_confdir" = "$ac_pwd"; then 1532 srcdir=. 1533fi 1534# Remove unnecessary trailing slashes from srcdir. 1535# Double slashes in file names in object file debugging info 1536# mess up M-x gdb in Emacs. 1537case $srcdir in 1538*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1539esac 1540for ac_var in $ac_precious_vars; do 1541 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1542 eval ac_env_${ac_var}_value=\$${ac_var} 1543 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1544 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1545done 1546 1547# 1548# Report the --help message. 1549# 1550if test "$ac_init_help" = "long"; then 1551 # Omit some internal or obsolete options to make the list less imposing. 1552 # This message is too long to be a string in the A/UX 3.1 sh. 1553 cat <<_ACEOF 1554\`configure' configures libX11 1.8.6 to adapt to many kinds of systems. 1555 1556Usage: $0 [OPTION]... [VAR=VALUE]... 1557 1558To assign environment variables (e.g., CC, CFLAGS...), specify them as 1559VAR=VALUE. See below for descriptions of some of the useful variables. 1560 1561Defaults for the options are specified in brackets. 1562 1563Configuration: 1564 -h, --help display this help and exit 1565 --help=short display options specific to this package 1566 --help=recursive display the short help of all the included packages 1567 -V, --version display version information and exit 1568 -q, --quiet, --silent do not print \`checking ...' messages 1569 --cache-file=FILE cache test results in FILE [disabled] 1570 -C, --config-cache alias for \`--cache-file=config.cache' 1571 -n, --no-create do not create output files 1572 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1573 1574Installation directories: 1575 --prefix=PREFIX install architecture-independent files in PREFIX 1576 [$ac_default_prefix] 1577 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1578 [PREFIX] 1579 1580By default, \`make install' will install all the files in 1581\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1582an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1583for instance \`--prefix=\$HOME'. 1584 1585For better control, use the options below. 1586 1587Fine tuning of the installation directories: 1588 --bindir=DIR user executables [EPREFIX/bin] 1589 --sbindir=DIR system admin executables [EPREFIX/sbin] 1590 --libexecdir=DIR program executables [EPREFIX/libexec] 1591 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1592 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1593 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1594 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1595 --libdir=DIR object code libraries [EPREFIX/lib] 1596 --includedir=DIR C header files [PREFIX/include] 1597 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1600 --infodir=DIR info documentation [DATAROOTDIR/info] 1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1602 --mandir=DIR man documentation [DATAROOTDIR/man] 1603 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1604 --htmldir=DIR html documentation [DOCDIR] 1605 --dvidir=DIR dvi documentation [DOCDIR] 1606 --pdfdir=DIR pdf documentation [DOCDIR] 1607 --psdir=DIR ps documentation [DOCDIR] 1608_ACEOF 1609 1610 cat <<\_ACEOF 1611 1612Program names: 1613 --program-prefix=PREFIX prepend PREFIX to installed program names 1614 --program-suffix=SUFFIX append SUFFIX to installed program names 1615 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1616 1617System types: 1618 --build=BUILD configure for building on BUILD [guessed] 1619 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1620_ACEOF 1621fi 1622 1623if test -n "$ac_init_help"; then 1624 case $ac_init_help in 1625 short | recursive ) echo "Configuration of libX11 1.8.6:";; 1626 esac 1627 cat <<\_ACEOF 1628 1629Optional Features: 1630 --disable-option-checking ignore unrecognized --enable/--with options 1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1633 --enable-dependency-tracking 1634 do not reject slow dependency extractors 1635 --disable-dependency-tracking 1636 speeds up one-time build 1637 --enable-silent-rules less verbose build output (undo: "make V=1") 1638 --disable-silent-rules verbose build output (undo: "make V=0") 1639 --enable-shared[=PKGS] build shared libraries [default=yes] 1640 --enable-static[=PKGS] build static libraries [default=yes] 1641 --enable-fast-install[=PKGS] 1642 optimize for fast installation [default=yes] 1643 --disable-libtool-lock avoid locking (might break parallel builds) 1644 --disable-largefile omit support for large files 1645 --disable-selective-werror 1646 Turn off selective compiler errors. (default: 1647 enabled) 1648 --enable-strict-compilation 1649 Enable all warnings from compiler and make them 1650 errors (default: disabled) 1651 --enable-specs Enable building the specs (default: yes) 1652 --enable-unix-transport Enable UNIX domain socket transport 1653 --enable-tcp-transport Enable TCP socket transport 1654 --enable-ipv6 Enable IPv6 support 1655 --enable-local-transport 1656 Enable os-specific local transport 1657 --enable-loadable-i18n Controls loadable i18n module support 1658 --disable-loadable-xcursor 1659 Controls loadable xcursor library support 1660 --disable-thread-safety-constructor 1661 Controls mandatory thread safety support 1662 --disable-xthreads Disable Xlib support for Multithreading 1663 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1664 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1665 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1666 --disable-xf86bigfont Disable XF86BigFont extension support 1667 --disable-xkb Disable XKB support *EXPERIMENTAL* 1668 --disable-composecache Disable compose table cache support 1669 --enable-lint-library Create lint library (default: disabled) 1670 --enable-malloc0returnsnull 1671 malloc(0) returns NULL (default: auto) 1672 1673Optional Packages: 1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1677 both] 1678 --with-aix-soname=aix|svr4|both 1679 shared library versioning (aka "SONAME") variant to 1680 provide on AIX, [default=aix]. 1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1682 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1683 compiler's sysroot if not specified). 1684 --with-xmlto Use xmlto to regenerate documentation (default: 1685 auto) 1686 --with-fop Use fop to regenerate documentation (default: no) 1687 --with-xsltproc Use xsltproc for the transformation of XML documents 1688 (default: auto) 1689 --with-perl Use perl for extracting information from files 1690 (default: auto) 1691 --with-launchd Build with support for Apple's launchd (default: 1692 auto) 1693 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1694 include dir) 1695 --with-lint Use a lint-style source code checker (default: 1696 disabled) 1697 --with-locale-lib-dir=DIR 1698 Directory where locale libraries files are installed 1699 (default: $libdir/X11/locale) 1700 1701Some influential environment variables: 1702 CC C compiler command 1703 CFLAGS C compiler flags 1704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1705 nonstandard directory <lib dir> 1706 LIBS libraries to pass to the linker, e.g. -l<library> 1707 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1708 you have headers in a nonstandard directory <include dir> 1709 LT_SYS_LIBRARY_PATH 1710 User-defined run-time library search path. 1711 PKG_CONFIG path to pkg-config utility 1712 PKG_CONFIG_PATH 1713 directories to add to pkg-config's search path 1714 PKG_CONFIG_LIBDIR 1715 path overriding pkg-config's built-in search path 1716 XMLTO Path to xmlto command 1717 FOP Path to fop command 1718 XSLTPROC Path to xsltproc command 1719 CPP C preprocessor 1720 PERL Path to perl command 1721 BIGFONT_CFLAGS 1722 C compiler flags for BIGFONT, overriding pkg-config 1723 BIGFONT_LIBS 1724 linker flags for BIGFONT, overriding pkg-config 1725 LINT Path to a lint-style command 1726 LINT_FLAGS Flags for the lint-style command 1727 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1728 X11_LIBS linker flags for X11, overriding pkg-config 1729 1730Use these variables to override the choices made by `configure' or to help 1731it to find libraries and programs with nonstandard names/locations. 1732 1733Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>. 1734_ACEOF 1735ac_status=$? 1736fi 1737 1738if test "$ac_init_help" = "recursive"; then 1739 # If there are subdirs, report their specific --help. 1740 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1741 test -d "$ac_dir" || 1742 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1743 continue 1744 ac_builddir=. 1745 1746case "$ac_dir" in 1747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1748*) 1749 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1750 # A ".." for each directory in $ac_dir_suffix. 1751 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1752 case $ac_top_builddir_sub in 1753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1755 esac ;; 1756esac 1757ac_abs_top_builddir=$ac_pwd 1758ac_abs_builddir=$ac_pwd$ac_dir_suffix 1759# for backward compatibility: 1760ac_top_builddir=$ac_top_build_prefix 1761 1762case $srcdir in 1763 .) # We are building in place. 1764 ac_srcdir=. 1765 ac_top_srcdir=$ac_top_builddir_sub 1766 ac_abs_top_srcdir=$ac_pwd ;; 1767 [\\/]* | ?:[\\/]* ) # Absolute name. 1768 ac_srcdir=$srcdir$ac_dir_suffix; 1769 ac_top_srcdir=$srcdir 1770 ac_abs_top_srcdir=$srcdir ;; 1771 *) # Relative name. 1772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1773 ac_top_srcdir=$ac_top_build_prefix$srcdir 1774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1775esac 1776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1777 1778 cd "$ac_dir" || { ac_status=$?; continue; } 1779 # Check for configure.gnu first; this name is used for a wrapper for 1780 # Metaconfig's "Configure" on case-insensitive file systems. 1781 if test -f "$ac_srcdir/configure.gnu"; then 1782 echo && 1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1784 elif test -f "$ac_srcdir/configure"; then 1785 echo && 1786 $SHELL "$ac_srcdir/configure" --help=recursive 1787 else 1788 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1789 fi || ac_status=$? 1790 cd "$ac_pwd" || { ac_status=$?; break; } 1791 done 1792fi 1793 1794test -n "$ac_init_help" && exit $ac_status 1795if $ac_init_version; then 1796 cat <<\_ACEOF 1797libX11 configure 1.8.6 1798generated by GNU Autoconf 2.71 1799 1800Copyright (C) 2021 Free Software Foundation, Inc. 1801This configure script is free software; the Free Software Foundation 1802gives unlimited permission to copy, distribute and modify it. 1803_ACEOF 1804 exit 1805fi 1806 1807## ------------------------ ## 1808## Autoconf initialization. ## 1809## ------------------------ ## 1810 1811# ac_fn_c_try_compile LINENO 1812# -------------------------- 1813# Try to compile conftest.$ac_ext, and return whether this succeeded. 1814ac_fn_c_try_compile () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 rm -f conftest.$ac_objext conftest.beam 1818 if { { ac_try="$ac_compile" 1819case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822esac 1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824printf "%s\n" "$ac_try_echo"; } >&5 1825 (eval "$ac_compile") 2>conftest.err 1826 ac_status=$? 1827 if test -s conftest.err; then 1828 grep -v '^ *+' conftest.err >conftest.er1 1829 cat conftest.er1 >&5 1830 mv -f conftest.er1 conftest.err 1831 fi 1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { 1834 test -z "$ac_c_werror_flag" || 1835 test ! -s conftest.err 1836 } && test -s conftest.$ac_objext 1837then : 1838 ac_retval=0 1839else $as_nop 1840 printf "%s\n" "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 as_fn_set_status $ac_retval 1847 1848} # ac_fn_c_try_compile 1849 1850# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1851# ------------------------------------------------------- 1852# Tests whether HEADER exists and can be compiled using the include files in 1853# INCLUDES, setting the cache variable VAR accordingly. 1854ac_fn_c_check_header_compile () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1858printf %s "checking for $2... " >&6; } 1859if eval test \${$3+y} 1860then : 1861 printf %s "(cached) " >&6 1862else $as_nop 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865$4 1866#include <$2> 1867_ACEOF 1868if ac_fn_c_try_compile "$LINENO" 1869then : 1870 eval "$3=yes" 1871else $as_nop 1872 eval "$3=no" 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878printf "%s\n" "$ac_res" >&6; } 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 1881} # ac_fn_c_check_header_compile 1882 1883# ac_fn_c_try_link LINENO 1884# ----------------------- 1885# Try to link conftest.$ac_ext, and return whether this succeeded. 1886ac_fn_c_try_link () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1890 if { { ac_try="$ac_link" 1891case "(($ac_try" in 1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1893 *) ac_try_echo=$ac_try;; 1894esac 1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1896printf "%s\n" "$ac_try_echo"; } >&5 1897 (eval "$ac_link") 2>conftest.err 1898 ac_status=$? 1899 if test -s conftest.err; then 1900 grep -v '^ *+' conftest.err >conftest.er1 1901 cat conftest.er1 >&5 1902 mv -f conftest.er1 conftest.err 1903 fi 1904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; } && { 1906 test -z "$ac_c_werror_flag" || 1907 test ! -s conftest.err 1908 } && test -s conftest$ac_exeext && { 1909 test "$cross_compiling" = yes || 1910 test -x conftest$ac_exeext 1911 } 1912then : 1913 ac_retval=0 1914else $as_nop 1915 printf "%s\n" "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=1 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_c_try_link 1929 1930# ac_fn_c_check_func LINENO FUNC VAR 1931# ---------------------------------- 1932# Tests whether FUNC exists, setting the cache variable VAR accordingly 1933ac_fn_c_check_func () 1934{ 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937printf %s "checking for $2... " >&6; } 1938if eval test \${$3+y} 1939then : 1940 printf %s "(cached) " >&6 1941else $as_nop 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1946#define $2 innocuous_$2 1947 1948/* System header to define __stub macros and hopefully few prototypes, 1949 which can conflict with char $2 (); below. */ 1950 1951#include <limits.h> 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main (void) 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO" 1977then : 1978 eval "$3=yes" 1979else $as_nop 1980 eval "$3=no" 1981fi 1982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1983 conftest$ac_exeext conftest.$ac_ext 1984fi 1985eval ac_res=\$$3 1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987printf "%s\n" "$ac_res" >&6; } 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 1990} # ac_fn_c_check_func 1991 1992# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1993# ------------------------------------------------------------------ 1994# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1995# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1996ac_fn_check_decl () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 as_decl_name=`echo $2|sed 's/ *(.*//'` 2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2001printf %s "checking whether $as_decl_name is declared... " >&6; } 2002if eval test \${$3+y} 2003then : 2004 printf %s "(cached) " >&6 2005else $as_nop 2006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2007 eval ac_save_FLAGS=\$$6 2008 as_fn_append $6 " $5" 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main (void) 2014{ 2015#ifndef $as_decl_name 2016#ifdef __cplusplus 2017 (void) $as_decl_use; 2018#else 2019 (void) $as_decl_name; 2020#endif 2021#endif 2022 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO" 2028then : 2029 eval "$3=yes" 2030else $as_nop 2031 eval "$3=no" 2032fi 2033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2034 eval $6=\$ac_save_FLAGS 2035 2036fi 2037eval ac_res=\$$3 2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2039printf "%s\n" "$ac_res" >&6; } 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_check_decl 2043 2044# ac_fn_c_try_cpp LINENO 2045# ---------------------- 2046# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2047ac_fn_c_try_cpp () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 if { { ac_try="$ac_cpp conftest.$ac_ext" 2051case "(($ac_try" in 2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2053 *) ac_try_echo=$ac_try;; 2054esac 2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2056printf "%s\n" "$ac_try_echo"; } >&5 2057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2058 ac_status=$? 2059 if test -s conftest.err; then 2060 grep -v '^ *+' conftest.err >conftest.er1 2061 cat conftest.er1 >&5 2062 mv -f conftest.er1 conftest.err 2063 fi 2064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2065 test $ac_status = 0; } > conftest.i && { 2066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2067 test ! -s conftest.err 2068 } 2069then : 2070 ac_retval=0 2071else $as_nop 2072 printf "%s\n" "$as_me: failed program was:" >&5 2073sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_retval=1 2076fi 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 as_fn_set_status $ac_retval 2079 2080} # ac_fn_c_try_cpp 2081 2082# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2083# ---------------------------------------------------- 2084# Tries to find if the field MEMBER exists in type AGGR, after including 2085# INCLUDES, setting cache variable VAR accordingly. 2086ac_fn_c_check_member () 2087{ 2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2090printf %s "checking for $2.$3... " >&6; } 2091if eval test \${$4+y} 2092then : 2093 printf %s "(cached) " >&6 2094else $as_nop 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$5 2098int 2099main (void) 2100{ 2101static $2 ac_aggr; 2102if (ac_aggr.$3) 2103return 0; 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO" 2109then : 2110 eval "$4=yes" 2111else $as_nop 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$5 2115int 2116main (void) 2117{ 2118static $2 ac_aggr; 2119if (sizeof ac_aggr.$3) 2120return 0; 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO" 2126then : 2127 eval "$4=yes" 2128else $as_nop 2129 eval "$4=no" 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2132fi 2133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2134fi 2135eval ac_res=\$$4 2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2137printf "%s\n" "$ac_res" >&6; } 2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2139 2140} # ac_fn_c_check_member 2141 2142# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2143# ------------------------------------------- 2144# Tests whether TYPE exists after having included INCLUDES, setting cache 2145# variable VAR accordingly. 2146ac_fn_c_check_type () 2147{ 2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2150printf %s "checking for $2... " >&6; } 2151if eval test \${$3+y} 2152then : 2153 printf %s "(cached) " >&6 2154else $as_nop 2155 eval "$3=no" 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main (void) 2161{ 2162if (sizeof ($2)) 2163 return 0; 2164 ; 2165 return 0; 2166} 2167_ACEOF 2168if ac_fn_c_try_compile "$LINENO" 2169then : 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main (void) 2175{ 2176if (sizeof (($2))) 2177 return 0; 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO" 2183then : 2184 2185else $as_nop 2186 eval "$3=yes" 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2191fi 2192eval ac_res=\$$3 2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2194printf "%s\n" "$ac_res" >&6; } 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 2197} # ac_fn_c_check_type 2198 2199# ac_fn_c_try_run LINENO 2200# ---------------------- 2201# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2202# executables *can* be run. 2203ac_fn_c_try_run () 2204{ 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 if { { ac_try="$ac_link" 2207case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210esac 2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212printf "%s\n" "$ac_try_echo"; } >&5 2213 (eval "$ac_link") 2>&5 2214 ac_status=$? 2215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2216 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2217 { { case "(($ac_try" in 2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2219 *) ac_try_echo=$ac_try;; 2220esac 2221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2222printf "%s\n" "$ac_try_echo"; } >&5 2223 (eval "$ac_try") 2>&5 2224 ac_status=$? 2225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; }; } 2227then : 2228 ac_retval=0 2229else $as_nop 2230 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2231 printf "%s\n" "$as_me: failed program was:" >&5 2232sed 's/^/| /' conftest.$ac_ext >&5 2233 2234 ac_retval=$ac_status 2235fi 2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 as_fn_set_status $ac_retval 2239 2240} # ac_fn_c_try_run 2241ac_configure_args_raw= 2242for ac_arg 2243do 2244 case $ac_arg in 2245 *\'*) 2246 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2247 esac 2248 as_fn_append ac_configure_args_raw " '$ac_arg'" 2249done 2250 2251case $ac_configure_args_raw in 2252 *$as_nl*) 2253 ac_safe_unquote= ;; 2254 *) 2255 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2256 ac_unsafe_a="$ac_unsafe_z#~" 2257 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2258 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2259esac 2260 2261cat >config.log <<_ACEOF 2262This file contains any messages produced by compilers while 2263running configure, to aid debugging if configure makes a mistake. 2264 2265It was created by libX11 $as_me 1.8.6, which was 2266generated by GNU Autoconf 2.71. Invocation command line was 2267 2268 $ $0$ac_configure_args_raw 2269 2270_ACEOF 2271exec 5>>config.log 2272{ 2273cat <<_ASUNAME 2274## --------- ## 2275## Platform. ## 2276## --------- ## 2277 2278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2279uname -m = `(uname -m) 2>/dev/null || echo unknown` 2280uname -r = `(uname -r) 2>/dev/null || echo unknown` 2281uname -s = `(uname -s) 2>/dev/null || echo unknown` 2282uname -v = `(uname -v) 2>/dev/null || echo unknown` 2283 2284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2285/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2286 2287/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2288/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2290/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2291/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2292/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2293/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2294 2295_ASUNAME 2296 2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298for as_dir in $PATH 2299do 2300 IFS=$as_save_IFS 2301 case $as_dir in #((( 2302 '') as_dir=./ ;; 2303 */) ;; 2304 *) as_dir=$as_dir/ ;; 2305 esac 2306 printf "%s\n" "PATH: $as_dir" 2307 done 2308IFS=$as_save_IFS 2309 2310} >&5 2311 2312cat >&5 <<_ACEOF 2313 2314 2315## ----------- ## 2316## Core tests. ## 2317## ----------- ## 2318 2319_ACEOF 2320 2321 2322# Keep a trace of the command line. 2323# Strip out --no-create and --no-recursion so they do not pile up. 2324# Strip out --silent because we don't want to record it for future runs. 2325# Also quote any args containing shell meta-characters. 2326# Make two passes to allow for proper duplicate-argument suppression. 2327ac_configure_args= 2328ac_configure_args0= 2329ac_configure_args1= 2330ac_must_keep_next=false 2331for ac_pass in 1 2 2332do 2333 for ac_arg 2334 do 2335 case $ac_arg in 2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2338 | -silent | --silent | --silen | --sile | --sil) 2339 continue ;; 2340 *\'*) 2341 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 esac 2343 case $ac_pass in 2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2345 2) 2346 as_fn_append ac_configure_args1 " '$ac_arg'" 2347 if test $ac_must_keep_next = true; then 2348 ac_must_keep_next=false # Got value, back to normal. 2349 else 2350 case $ac_arg in 2351 *=* | --config-cache | -C | -disable-* | --disable-* \ 2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2354 | -with-* | --with-* | -without-* | --without-* | --x) 2355 case "$ac_configure_args0 " in 2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2357 esac 2358 ;; 2359 -* ) ac_must_keep_next=true ;; 2360 esac 2361 fi 2362 as_fn_append ac_configure_args " '$ac_arg'" 2363 ;; 2364 esac 2365 done 2366done 2367{ ac_configure_args0=; unset ac_configure_args0;} 2368{ ac_configure_args1=; unset ac_configure_args1;} 2369 2370# When interrupted or exit'd, cleanup temporary files, and complete 2371# config.log. We remove comments because anyway the quotes in there 2372# would cause problems or look ugly. 2373# WARNING: Use '\'' to represent an apostrophe within the trap. 2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2375trap 'exit_status=$? 2376 # Sanitize IFS. 2377 IFS=" "" $as_nl" 2378 # Save into config.log some information that might help in debugging. 2379 { 2380 echo 2381 2382 printf "%s\n" "## ---------------- ## 2383## Cache variables. ## 2384## ---------------- ##" 2385 echo 2386 # The following way of writing the cache mishandles newlines in values, 2387( 2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2389 eval ac_val=\$$ac_var 2390 case $ac_val in #( 2391 *${as_nl}*) 2392 case $ac_var in #( 2393 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2394printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2395 esac 2396 case $ac_var in #( 2397 _ | IFS | as_nl) ;; #( 2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2399 *) { eval $ac_var=; unset $ac_var;} ;; 2400 esac ;; 2401 esac 2402 done 2403 (set) 2>&1 | 2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2405 *${as_nl}ac_space=\ *) 2406 sed -n \ 2407 "s/'\''/'\''\\\\'\'''\''/g; 2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2409 ;; #( 2410 *) 2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2412 ;; 2413 esac | 2414 sort 2415) 2416 echo 2417 2418 printf "%s\n" "## ----------------- ## 2419## Output variables. ## 2420## ----------------- ##" 2421 echo 2422 for ac_var in $ac_subst_vars 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 printf "%s\n" "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 2432 if test -n "$ac_subst_files"; then 2433 printf "%s\n" "## ------------------- ## 2434## File substitutions. ## 2435## ------------------- ##" 2436 echo 2437 for ac_var in $ac_subst_files 2438 do 2439 eval ac_val=\$$ac_var 2440 case $ac_val in 2441 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2442 esac 2443 printf "%s\n" "$ac_var='\''$ac_val'\''" 2444 done | sort 2445 echo 2446 fi 2447 2448 if test -s confdefs.h; then 2449 printf "%s\n" "## ----------- ## 2450## confdefs.h. ## 2451## ----------- ##" 2452 echo 2453 cat confdefs.h 2454 echo 2455 fi 2456 test "$ac_signal" != 0 && 2457 printf "%s\n" "$as_me: caught signal $ac_signal" 2458 printf "%s\n" "$as_me: exit $exit_status" 2459 } >&5 2460 rm -f core *.core core.conftest.* && 2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2462 exit $exit_status 2463' 0 2464for ac_signal in 1 2 13 15; do 2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2466done 2467ac_signal=0 2468 2469# confdefs.h avoids OS command line length limits that DEFS can exceed. 2470rm -f -r conftest* confdefs.h 2471 2472printf "%s\n" "/* confdefs.h */" > confdefs.h 2473 2474# Predefined preprocessor variables. 2475 2476printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2477 2478printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2479 2480printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2481 2482printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2483 2484printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2485 2486printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2487 2488 2489# Let the site file select an alternate cache file if it wants to. 2490# Prefer an explicitly selected file to automatically selected ones. 2491if test -n "$CONFIG_SITE"; then 2492 ac_site_files="$CONFIG_SITE" 2493elif test "x$prefix" != xNONE; then 2494 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2495else 2496 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2497fi 2498 2499for ac_site_file in $ac_site_files 2500do 2501 case $ac_site_file in #( 2502 */*) : 2503 ;; #( 2504 *) : 2505 ac_site_file=./$ac_site_file ;; 2506esac 2507 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2509printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2510 sed 's/^/| /' "$ac_site_file" >&5 2511 . "$ac_site_file" \ 2512 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2514as_fn_error $? "failed to load site script $ac_site_file 2515See \`config.log' for more details" "$LINENO" 5; } 2516 fi 2517done 2518 2519if test -r "$cache_file"; then 2520 # Some versions of bash will fail to source /dev/null (special files 2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2524printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2525 case $cache_file in 2526 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2527 *) . "./$cache_file";; 2528 esac 2529 fi 2530else 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2532printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2533 >$cache_file 2534fi 2535 2536as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2537# Test code for whether the C compiler supports C89 (global declarations) 2538ac_c_conftest_c89_globals=' 2539/* Does the compiler advertise C89 conformance? 2540 Do not test the value of __STDC__, because some compilers set it to 0 2541 while being otherwise adequately conformant. */ 2542#if !defined __STDC__ 2543# error "Compiler does not advertise C89 conformance" 2544#endif 2545 2546#include <stddef.h> 2547#include <stdarg.h> 2548struct stat; 2549/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2550struct buf { int x; }; 2551struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2552static char *e (p, i) 2553 char **p; 2554 int i; 2555{ 2556 return p[i]; 2557} 2558static char *f (char * (*g) (char **, int), char **p, ...) 2559{ 2560 char *s; 2561 va_list v; 2562 va_start (v,p); 2563 s = g (p, va_arg (v,int)); 2564 va_end (v); 2565 return s; 2566} 2567 2568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2569 function prototypes and stuff, but not \xHH hex character constants. 2570 These do not provoke an error unfortunately, instead are silently treated 2571 as an "x". The following induces an error, until -std is added to get 2572 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2573 array size at least. It is necessary to write \x00 == 0 to get something 2574 that is true only with -std. */ 2575int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2576 2577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2578 inside strings and character constants. */ 2579#define FOO(x) '\''x'\'' 2580int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2581 2582int test (int i, double x); 2583struct s1 {int (*f) (int a);}; 2584struct s2 {int (*f) (double a);}; 2585int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2586 int, int);' 2587 2588# Test code for whether the C compiler supports C89 (body of main). 2589ac_c_conftest_c89_main=' 2590ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2591' 2592 2593# Test code for whether the C compiler supports C99 (global declarations) 2594ac_c_conftest_c99_globals=' 2595// Does the compiler advertise C99 conformance? 2596#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2597# error "Compiler does not advertise C99 conformance" 2598#endif 2599 2600#include <stdbool.h> 2601extern int puts (const char *); 2602extern int printf (const char *, ...); 2603extern int dprintf (int, const char *, ...); 2604extern void *malloc (size_t); 2605 2606// Check varargs macros. These examples are taken from C99 6.10.3.5. 2607// dprintf is used instead of fprintf to avoid needing to declare 2608// FILE and stderr. 2609#define debug(...) dprintf (2, __VA_ARGS__) 2610#define showlist(...) puts (#__VA_ARGS__) 2611#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2612static void 2613test_varargs_macros (void) 2614{ 2615 int x = 1234; 2616 int y = 5678; 2617 debug ("Flag"); 2618 debug ("X = %d\n", x); 2619 showlist (The first, second, and third items.); 2620 report (x>y, "x is %d but y is %d", x, y); 2621} 2622 2623// Check long long types. 2624#define BIG64 18446744073709551615ull 2625#define BIG32 4294967295ul 2626#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2627#if !BIG_OK 2628 #error "your preprocessor is broken" 2629#endif 2630#if BIG_OK 2631#else 2632 #error "your preprocessor is broken" 2633#endif 2634static long long int bignum = -9223372036854775807LL; 2635static unsigned long long int ubignum = BIG64; 2636 2637struct incomplete_array 2638{ 2639 int datasize; 2640 double data[]; 2641}; 2642 2643struct named_init { 2644 int number; 2645 const wchar_t *name; 2646 double average; 2647}; 2648 2649typedef const char *ccp; 2650 2651static inline int 2652test_restrict (ccp restrict text) 2653{ 2654 // See if C++-style comments work. 2655 // Iterate through items via the restricted pointer. 2656 // Also check for declarations in for loops. 2657 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2658 continue; 2659 return 0; 2660} 2661 2662// Check varargs and va_copy. 2663static bool 2664test_varargs (const char *format, ...) 2665{ 2666 va_list args; 2667 va_start (args, format); 2668 va_list args_copy; 2669 va_copy (args_copy, args); 2670 2671 const char *str = ""; 2672 int number = 0; 2673 float fnumber = 0; 2674 2675 while (*format) 2676 { 2677 switch (*format++) 2678 { 2679 case '\''s'\'': // string 2680 str = va_arg (args_copy, const char *); 2681 break; 2682 case '\''d'\'': // int 2683 number = va_arg (args_copy, int); 2684 break; 2685 case '\''f'\'': // float 2686 fnumber = va_arg (args_copy, double); 2687 break; 2688 default: 2689 break; 2690 } 2691 } 2692 va_end (args_copy); 2693 va_end (args); 2694 2695 return *str && number && fnumber; 2696} 2697' 2698 2699# Test code for whether the C compiler supports C99 (body of main). 2700ac_c_conftest_c99_main=' 2701 // Check bool. 2702 _Bool success = false; 2703 success |= (argc != 0); 2704 2705 // Check restrict. 2706 if (test_restrict ("String literal") == 0) 2707 success = true; 2708 char *restrict newvar = "Another string"; 2709 2710 // Check varargs. 2711 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2712 test_varargs_macros (); 2713 2714 // Check flexible array members. 2715 struct incomplete_array *ia = 2716 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2717 ia->datasize = 10; 2718 for (int i = 0; i < ia->datasize; ++i) 2719 ia->data[i] = i * 1.234; 2720 2721 // Check named initializers. 2722 struct named_init ni = { 2723 .number = 34, 2724 .name = L"Test wide string", 2725 .average = 543.34343, 2726 }; 2727 2728 ni.number = 58; 2729 2730 int dynamic_array[ni.number]; 2731 dynamic_array[0] = argv[0][0]; 2732 dynamic_array[ni.number - 1] = 543; 2733 2734 // work around unused variable warnings 2735 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2736 || dynamic_array[ni.number - 1] != 543); 2737' 2738 2739# Test code for whether the C compiler supports C11 (global declarations) 2740ac_c_conftest_c11_globals=' 2741// Does the compiler advertise C11 conformance? 2742#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2743# error "Compiler does not advertise C11 conformance" 2744#endif 2745 2746// Check _Alignas. 2747char _Alignas (double) aligned_as_double; 2748char _Alignas (0) no_special_alignment; 2749extern char aligned_as_int; 2750char _Alignas (0) _Alignas (int) aligned_as_int; 2751 2752// Check _Alignof. 2753enum 2754{ 2755 int_alignment = _Alignof (int), 2756 int_array_alignment = _Alignof (int[100]), 2757 char_alignment = _Alignof (char) 2758}; 2759_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2760 2761// Check _Noreturn. 2762int _Noreturn does_not_return (void) { for (;;) continue; } 2763 2764// Check _Static_assert. 2765struct test_static_assert 2766{ 2767 int x; 2768 _Static_assert (sizeof (int) <= sizeof (long int), 2769 "_Static_assert does not work in struct"); 2770 long int y; 2771}; 2772 2773// Check UTF-8 literals. 2774#define u8 syntax error! 2775char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2776 2777// Check duplicate typedefs. 2778typedef long *long_ptr; 2779typedef long int *long_ptr; 2780typedef long_ptr long_ptr; 2781 2782// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2783struct anonymous 2784{ 2785 union { 2786 struct { int i; int j; }; 2787 struct { int k; long int l; } w; 2788 }; 2789 int m; 2790} v1; 2791' 2792 2793# Test code for whether the C compiler supports C11 (body of main). 2794ac_c_conftest_c11_main=' 2795 _Static_assert ((offsetof (struct anonymous, i) 2796 == offsetof (struct anonymous, w.k)), 2797 "Anonymous union alignment botch"); 2798 v1.i = 2; 2799 v1.w.k = 5; 2800 ok |= v1.i != 5; 2801' 2802 2803# Test code for whether the C compiler supports C11 (complete). 2804ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2805${ac_c_conftest_c99_globals} 2806${ac_c_conftest_c11_globals} 2807 2808int 2809main (int argc, char **argv) 2810{ 2811 int ok = 0; 2812 ${ac_c_conftest_c89_main} 2813 ${ac_c_conftest_c99_main} 2814 ${ac_c_conftest_c11_main} 2815 return ok; 2816} 2817" 2818 2819# Test code for whether the C compiler supports C99 (complete). 2820ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2821${ac_c_conftest_c99_globals} 2822 2823int 2824main (int argc, char **argv) 2825{ 2826 int ok = 0; 2827 ${ac_c_conftest_c89_main} 2828 ${ac_c_conftest_c99_main} 2829 return ok; 2830} 2831" 2832 2833# Test code for whether the C compiler supports C89 (complete). 2834ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2835 2836int 2837main (int argc, char **argv) 2838{ 2839 int ok = 0; 2840 ${ac_c_conftest_c89_main} 2841 return ok; 2842} 2843" 2844 2845as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2846as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2847as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2848as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2849as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2850as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2851as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2852as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2853as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2854as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2855as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2856as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2857 2858# Auxiliary files required by this configure script. 2859ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub" 2860 2861# Locations in which to look for auxiliary files. 2862ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2863 2864# Search for a directory containing all of the required auxiliary files, 2865# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2866# If we don't find one directory that contains all the files we need, 2867# we report the set of missing files from the *first* directory in 2868# $ac_aux_dir_candidates and give up. 2869ac_missing_aux_files="" 2870ac_first_candidate=: 2871printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873as_found=false 2874for as_dir in $ac_aux_dir_candidates 2875do 2876 IFS=$as_save_IFS 2877 case $as_dir in #((( 2878 '') as_dir=./ ;; 2879 */) ;; 2880 *) as_dir=$as_dir/ ;; 2881 esac 2882 as_found=: 2883 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2885 ac_aux_dir_found=yes 2886 ac_install_sh= 2887 for ac_aux in $ac_aux_files 2888 do 2889 # As a special case, if "install-sh" is required, that requirement 2890 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2891 # and $ac_install_sh is set appropriately for whichever one is found. 2892 if test x"$ac_aux" = x"install-sh" 2893 then 2894 if test -f "${as_dir}install-sh"; then 2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2896 ac_install_sh="${as_dir}install-sh -c" 2897 elif test -f "${as_dir}install.sh"; then 2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2899 ac_install_sh="${as_dir}install.sh -c" 2900 elif test -f "${as_dir}shtool"; then 2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2902 ac_install_sh="${as_dir}shtool install -c" 2903 else 2904 ac_aux_dir_found=no 2905 if $ac_first_candidate; then 2906 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2907 else 2908 break 2909 fi 2910 fi 2911 else 2912 if test -f "${as_dir}${ac_aux}"; then 2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2914 else 2915 ac_aux_dir_found=no 2916 if $ac_first_candidate; then 2917 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2918 else 2919 break 2920 fi 2921 fi 2922 fi 2923 done 2924 if test "$ac_aux_dir_found" = yes; then 2925 ac_aux_dir="$as_dir" 2926 break 2927 fi 2928 ac_first_candidate=false 2929 2930 as_found=false 2931done 2932IFS=$as_save_IFS 2933if $as_found 2934then : 2935 2936else $as_nop 2937 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2938fi 2939 2940 2941# These three variables are undocumented and unsupported, 2942# and are intended to be withdrawn in a future Autoconf release. 2943# They can cause serious problems if a builder's source tree is in a directory 2944# whose full name contains unusual characters. 2945if test -f "${ac_aux_dir}config.guess"; then 2946 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2947fi 2948if test -f "${ac_aux_dir}config.sub"; then 2949 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2950fi 2951if test -f "$ac_aux_dir/configure"; then 2952 ac_configure="$SHELL ${ac_aux_dir}configure" 2953fi 2954 2955# Check that the precious variables saved in the cache have kept the same 2956# value. 2957ac_cache_corrupted=false 2958for ac_var in $ac_precious_vars; do 2959 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2960 eval ac_new_set=\$ac_env_${ac_var}_set 2961 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2962 eval ac_new_val=\$ac_env_${ac_var}_value 2963 case $ac_old_set,$ac_new_set in 2964 set,) 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2966printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2967 ac_cache_corrupted=: ;; 2968 ,set) 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2970printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2971 ac_cache_corrupted=: ;; 2972 ,);; 2973 *) 2974 if test "x$ac_old_val" != "x$ac_new_val"; then 2975 # differences in whitespace do not lead to failure. 2976 ac_old_val_w=`echo x $ac_old_val` 2977 ac_new_val_w=`echo x $ac_new_val` 2978 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2980printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2981 ac_cache_corrupted=: 2982 else 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2984printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2985 eval $ac_var=\$ac_old_val 2986 fi 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2988printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2990printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2991 fi;; 2992 esac 2993 # Pass precious variables to config.status. 2994 if test "$ac_new_set" = set; then 2995 case $ac_new_val in 2996 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2997 *) ac_arg=$ac_var=$ac_new_val ;; 2998 esac 2999 case " $ac_configure_args " in 3000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3001 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3002 esac 3003 fi 3004done 3005if $ac_cache_corrupted; then 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3009printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3010 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3011 and start over" "$LINENO" 5 3012fi 3013## -------------------- ## 3014## Main body of script. ## 3015## -------------------- ## 3016 3017ac_ext=c 3018ac_cpp='$CPP $CPPFLAGS' 3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3021ac_compiler_gnu=$ac_cv_c_compiler_gnu 3022 3023 3024 3025ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 3026 3027 3028 3029 3030 3031 # Make sure we can run config.sub. 3032$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3033 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3034 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3036printf %s "checking build system type... " >&6; } 3037if test ${ac_cv_build+y} 3038then : 3039 printf %s "(cached) " >&6 3040else $as_nop 3041 ac_build_alias=$build_alias 3042test "x$ac_build_alias" = x && 3043 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3044test "x$ac_build_alias" = x && 3045 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3046ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3047 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3048 3049fi 3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3051printf "%s\n" "$ac_cv_build" >&6; } 3052case $ac_cv_build in 3053*-*-*) ;; 3054*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3055esac 3056build=$ac_cv_build 3057ac_save_IFS=$IFS; IFS='-' 3058set x $ac_cv_build 3059shift 3060build_cpu=$1 3061build_vendor=$2 3062shift; shift 3063# Remember, the first character of IFS is used to create $*, 3064# except with old shells: 3065build_os=$* 3066IFS=$ac_save_IFS 3067case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3068 3069 3070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3071printf %s "checking host system type... " >&6; } 3072if test ${ac_cv_host+y} 3073then : 3074 printf %s "(cached) " >&6 3075else $as_nop 3076 if test "x$host_alias" = x; then 3077 ac_cv_host=$ac_cv_build 3078else 3079 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3080 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3081fi 3082 3083fi 3084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3085printf "%s\n" "$ac_cv_host" >&6; } 3086case $ac_cv_host in 3087*-*-*) ;; 3088*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3089esac 3090host=$ac_cv_host 3091ac_save_IFS=$IFS; IFS='-' 3092set x $ac_cv_host 3093shift 3094host_cpu=$1 3095host_vendor=$2 3096shift; shift 3097# Remember, the first character of IFS is used to create $*, 3098# except with old shells: 3099host_os=$* 3100IFS=$ac_save_IFS 3101case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3102 3103 3104# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3105# Must be called before any macros that run the compiler (like LT_INIT) 3106# to avoid autoconf errors. 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117# Expand $ac_aux_dir to an absolute path. 3118am_aux_dir=`cd "$ac_aux_dir" && pwd` 3119 3120ac_ext=c 3121ac_cpp='$CPP $CPPFLAGS' 3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3124ac_compiler_gnu=$ac_cv_c_compiler_gnu 3125if test -n "$ac_tool_prefix"; then 3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3127set dummy ${ac_tool_prefix}gcc; ac_word=$2 3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129printf %s "checking for $ac_word... " >&6; } 3130if test ${ac_cv_prog_CC+y} 3131then : 3132 printf %s "(cached) " >&6 3133else $as_nop 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 case $as_dir in #((( 3142 '') as_dir=./ ;; 3143 */) ;; 3144 *) as_dir=$as_dir/ ;; 3145 esac 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3148 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152done 3153 done 3154IFS=$as_save_IFS 3155 3156fi 3157fi 3158CC=$ac_cv_prog_CC 3159if test -n "$CC"; then 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3161printf "%s\n" "$CC" >&6; } 3162else 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164printf "%s\n" "no" >&6; } 3165fi 3166 3167 3168fi 3169if test -z "$ac_cv_prog_CC"; then 3170 ac_ct_CC=$CC 3171 # Extract the first word of "gcc", so it can be a program name with args. 3172set dummy gcc; ac_word=$2 3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174printf %s "checking for $ac_word... " >&6; } 3175if test ${ac_cv_prog_ac_ct_CC+y} 3176then : 3177 printf %s "(cached) " >&6 3178else $as_nop 3179 if test -n "$ac_ct_CC"; then 3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 case $as_dir in #((( 3187 '') as_dir=./ ;; 3188 */) ;; 3189 *) as_dir=$as_dir/ ;; 3190 esac 3191 for ac_exec_ext in '' $ac_executable_extensions; do 3192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3193 ac_cv_prog_ac_ct_CC="gcc" 3194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3195 break 2 3196 fi 3197done 3198 done 3199IFS=$as_save_IFS 3200 3201fi 3202fi 3203ac_ct_CC=$ac_cv_prog_ac_ct_CC 3204if test -n "$ac_ct_CC"; then 3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3206printf "%s\n" "$ac_ct_CC" >&6; } 3207else 3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209printf "%s\n" "no" >&6; } 3210fi 3211 3212 if test "x$ac_ct_CC" = x; then 3213 CC="" 3214 else 3215 case $cross_compiling:$ac_tool_warned in 3216yes:) 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3219ac_tool_warned=yes ;; 3220esac 3221 CC=$ac_ct_CC 3222 fi 3223else 3224 CC="$ac_cv_prog_CC" 3225fi 3226 3227if test -z "$CC"; then 3228 if test -n "$ac_tool_prefix"; then 3229 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3230set dummy ${ac_tool_prefix}cc; ac_word=$2 3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3232printf %s "checking for $ac_word... " >&6; } 3233if test ${ac_cv_prog_CC+y} 3234then : 3235 printf %s "(cached) " >&6 3236else $as_nop 3237 if test -n "$CC"; then 3238 ac_cv_prog_CC="$CC" # Let the user override the test. 3239else 3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3241for as_dir in $PATH 3242do 3243 IFS=$as_save_IFS 3244 case $as_dir in #((( 3245 '') as_dir=./ ;; 3246 */) ;; 3247 *) as_dir=$as_dir/ ;; 3248 esac 3249 for ac_exec_ext in '' $ac_executable_extensions; do 3250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3251 ac_cv_prog_CC="${ac_tool_prefix}cc" 3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3253 break 2 3254 fi 3255done 3256 done 3257IFS=$as_save_IFS 3258 3259fi 3260fi 3261CC=$ac_cv_prog_CC 3262if test -n "$CC"; then 3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3264printf "%s\n" "$CC" >&6; } 3265else 3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267printf "%s\n" "no" >&6; } 3268fi 3269 3270 3271 fi 3272fi 3273if test -z "$CC"; then 3274 # Extract the first word of "cc", so it can be a program name with args. 3275set dummy cc; ac_word=$2 3276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277printf %s "checking for $ac_word... " >&6; } 3278if test ${ac_cv_prog_CC+y} 3279then : 3280 printf %s "(cached) " >&6 3281else $as_nop 3282 if test -n "$CC"; then 3283 ac_cv_prog_CC="$CC" # Let the user override the test. 3284else 3285 ac_prog_rejected=no 3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287for as_dir in $PATH 3288do 3289 IFS=$as_save_IFS 3290 case $as_dir in #((( 3291 '') as_dir=./ ;; 3292 */) ;; 3293 *) as_dir=$as_dir/ ;; 3294 esac 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3297 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3298 ac_prog_rejected=yes 3299 continue 3300 fi 3301 ac_cv_prog_CC="cc" 3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309if test $ac_prog_rejected = yes; then 3310 # We found a bogon in the path, so make sure we never use it. 3311 set dummy $ac_cv_prog_CC 3312 shift 3313 if test $# != 0; then 3314 # We chose a different compiler from the bogus one. 3315 # However, it has the same basename, so the bogon will be chosen 3316 # first if we set CC to just the basename; use the full file name. 3317 shift 3318 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3319 fi 3320fi 3321fi 3322fi 3323CC=$ac_cv_prog_CC 3324if test -n "$CC"; then 3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3326printf "%s\n" "$CC" >&6; } 3327else 3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3329printf "%s\n" "no" >&6; } 3330fi 3331 3332 3333fi 3334if test -z "$CC"; then 3335 if test -n "$ac_tool_prefix"; then 3336 for ac_prog in cl.exe 3337 do 3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341printf %s "checking for $ac_word... " >&6; } 3342if test ${ac_cv_prog_CC+y} 3343then : 3344 printf %s "(cached) " >&6 3345else $as_nop 3346 if test -n "$CC"; then 3347 ac_cv_prog_CC="$CC" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 case $as_dir in #((( 3354 '') as_dir=./ ;; 3355 */) ;; 3356 *) as_dir=$as_dir/ ;; 3357 esac 3358 for ac_exec_ext in '' $ac_executable_extensions; do 3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3362 break 2 3363 fi 3364done 3365 done 3366IFS=$as_save_IFS 3367 3368fi 3369fi 3370CC=$ac_cv_prog_CC 3371if test -n "$CC"; then 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3373printf "%s\n" "$CC" >&6; } 3374else 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376printf "%s\n" "no" >&6; } 3377fi 3378 3379 3380 test -n "$CC" && break 3381 done 3382fi 3383if test -z "$CC"; then 3384 ac_ct_CC=$CC 3385 for ac_prog in cl.exe 3386do 3387 # Extract the first word of "$ac_prog", so it can be a program name with args. 3388set dummy $ac_prog; ac_word=$2 3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390printf %s "checking for $ac_word... " >&6; } 3391if test ${ac_cv_prog_ac_ct_CC+y} 3392then : 3393 printf %s "(cached) " >&6 3394else $as_nop 3395 if test -n "$ac_ct_CC"; then 3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3397else 3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3399for as_dir in $PATH 3400do 3401 IFS=$as_save_IFS 3402 case $as_dir in #((( 3403 '') as_dir=./ ;; 3404 */) ;; 3405 *) as_dir=$as_dir/ ;; 3406 esac 3407 for ac_exec_ext in '' $ac_executable_extensions; do 3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3409 ac_cv_prog_ac_ct_CC="$ac_prog" 3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418fi 3419ac_ct_CC=$ac_cv_prog_ac_ct_CC 3420if test -n "$ac_ct_CC"; then 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3422printf "%s\n" "$ac_ct_CC" >&6; } 3423else 3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425printf "%s\n" "no" >&6; } 3426fi 3427 3428 3429 test -n "$ac_ct_CC" && break 3430done 3431 3432 if test "x$ac_ct_CC" = x; then 3433 CC="" 3434 else 3435 case $cross_compiling:$ac_tool_warned in 3436yes:) 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3439ac_tool_warned=yes ;; 3440esac 3441 CC=$ac_ct_CC 3442 fi 3443fi 3444 3445fi 3446if test -z "$CC"; then 3447 if test -n "$ac_tool_prefix"; then 3448 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3449set dummy ${ac_tool_prefix}clang; ac_word=$2 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451printf %s "checking for $ac_word... " >&6; } 3452if test ${ac_cv_prog_CC+y} 3453then : 3454 printf %s "(cached) " >&6 3455else $as_nop 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 case $as_dir in #((( 3464 '') as_dir=./ ;; 3465 */) ;; 3466 *) as_dir=$as_dir/ ;; 3467 esac 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_CC="${ac_tool_prefix}clang" 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480CC=$ac_cv_prog_CC 3481if test -n "$CC"; then 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483printf "%s\n" "$CC" >&6; } 3484else 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486printf "%s\n" "no" >&6; } 3487fi 3488 3489 3490fi 3491if test -z "$ac_cv_prog_CC"; then 3492 ac_ct_CC=$CC 3493 # Extract the first word of "clang", so it can be a program name with args. 3494set dummy clang; ac_word=$2 3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496printf %s "checking for $ac_word... " >&6; } 3497if test ${ac_cv_prog_ac_ct_CC+y} 3498then : 3499 printf %s "(cached) " >&6 3500else $as_nop 3501 if test -n "$ac_ct_CC"; then 3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 case $as_dir in #((( 3509 '') as_dir=./ ;; 3510 */) ;; 3511 *) as_dir=$as_dir/ ;; 3512 esac 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3515 ac_cv_prog_ac_ct_CC="clang" 3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525ac_ct_CC=$ac_cv_prog_ac_ct_CC 3526if test -n "$ac_ct_CC"; then 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3528printf "%s\n" "$ac_ct_CC" >&6; } 3529else 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531printf "%s\n" "no" >&6; } 3532fi 3533 3534 if test "x$ac_ct_CC" = x; then 3535 CC="" 3536 else 3537 case $cross_compiling:$ac_tool_warned in 3538yes:) 3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3540printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3541ac_tool_warned=yes ;; 3542esac 3543 CC=$ac_ct_CC 3544 fi 3545else 3546 CC="$ac_cv_prog_CC" 3547fi 3548 3549fi 3550 3551 3552test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3554as_fn_error $? "no acceptable C compiler found in \$PATH 3555See \`config.log' for more details" "$LINENO" 5; } 3556 3557# Provide some information about the compiler. 3558printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3559set X $ac_compile 3560ac_compiler=$2 3561for ac_option in --version -v -V -qversion -version; do 3562 { { ac_try="$ac_compiler $ac_option >&5" 3563case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3568printf "%s\n" "$ac_try_echo"; } >&5 3569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3570 ac_status=$? 3571 if test -s conftest.err; then 3572 sed '10a\ 3573... rest of stderr output deleted ... 3574 10q' conftest.err >conftest.er1 3575 cat conftest.er1 >&5 3576 fi 3577 rm -f conftest.er1 conftest.err 3578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3579 test $ac_status = 0; } 3580done 3581 3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3583/* end confdefs.h. */ 3584 3585int 3586main (void) 3587{ 3588 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593ac_clean_files_save=$ac_clean_files 3594ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3595# Try to create an executable without -o first, disregard a.out. 3596# It will help us diagnose broken compilers, and finding out an intuition 3597# of exeext. 3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3599printf %s "checking whether the C compiler works... " >&6; } 3600ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3601 3602# The possible output files: 3603ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3604 3605ac_rmfiles= 3606for ac_file in $ac_files 3607do 3608 case $ac_file in 3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3610 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3611 esac 3612done 3613rm -f $ac_rmfiles 3614 3615if { { ac_try="$ac_link_default" 3616case "(($ac_try" in 3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3618 *) ac_try_echo=$ac_try;; 3619esac 3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3621printf "%s\n" "$ac_try_echo"; } >&5 3622 (eval "$ac_link_default") 2>&5 3623 ac_status=$? 3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3625 test $ac_status = 0; } 3626then : 3627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3629# in a Makefile. We should not override ac_cv_exeext if it was cached, 3630# so that the user can short-circuit this test for compilers unknown to 3631# Autoconf. 3632for ac_file in $ac_files '' 3633do 3634 test -f "$ac_file" || continue 3635 case $ac_file in 3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3637 ;; 3638 [ab].out ) 3639 # We found the default executable, but exeext='' is most 3640 # certainly right. 3641 break;; 3642 *.* ) 3643 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3644 then :; else 3645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3646 fi 3647 # We set ac_cv_exeext here because the later test for it is not 3648 # safe: cross compilers may not add the suffix if given an `-o' 3649 # argument, so we may need to know it at that point already. 3650 # Even if this section looks crufty: it has the advantage of 3651 # actually working. 3652 break;; 3653 * ) 3654 break;; 3655 esac 3656done 3657test "$ac_cv_exeext" = no && ac_cv_exeext= 3658 3659else $as_nop 3660 ac_file='' 3661fi 3662if test -z "$ac_file" 3663then : 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665printf "%s\n" "no" >&6; } 3666printf "%s\n" "$as_me: failed program was:" >&5 3667sed 's/^/| /' conftest.$ac_ext >&5 3668 3669{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3670printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3671as_fn_error 77 "C compiler cannot create executables 3672See \`config.log' for more details" "$LINENO" 5; } 3673else $as_nop 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675printf "%s\n" "yes" >&6; } 3676fi 3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3678printf %s "checking for C compiler default output file name... " >&6; } 3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3680printf "%s\n" "$ac_file" >&6; } 3681ac_exeext=$ac_cv_exeext 3682 3683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3684ac_clean_files=$ac_clean_files_save 3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3686printf %s "checking for suffix of executables... " >&6; } 3687if { { ac_try="$ac_link" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693printf "%s\n" "$ac_try_echo"; } >&5 3694 (eval "$ac_link") 2>&5 3695 ac_status=$? 3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; } 3698then : 3699 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3700# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3701# work properly (i.e., refer to `conftest.exe'), while it won't with 3702# `rm'. 3703for ac_file in conftest.exe conftest conftest.*; do 3704 test -f "$ac_file" || continue 3705 case $ac_file in 3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3708 break;; 3709 * ) break;; 3710 esac 3711done 3712else $as_nop 3713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3714printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3715as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3716See \`config.log' for more details" "$LINENO" 5; } 3717fi 3718rm -f conftest conftest$ac_cv_exeext 3719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3720printf "%s\n" "$ac_cv_exeext" >&6; } 3721 3722rm -f conftest.$ac_ext 3723EXEEXT=$ac_cv_exeext 3724ac_exeext=$EXEEXT 3725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727#include <stdio.h> 3728int 3729main (void) 3730{ 3731FILE *f = fopen ("conftest.out", "w"); 3732 return ferror (f) || fclose (f) != 0; 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738ac_clean_files="$ac_clean_files conftest.out" 3739# Check that the compiler produces executables we can run. If not, either 3740# the compiler is broken, or we cross compile. 3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3742printf %s "checking whether we are cross compiling... " >&6; } 3743if test "$cross_compiling" != yes; then 3744 { { ac_try="$ac_link" 3745case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3750printf "%s\n" "$ac_try_echo"; } >&5 3751 (eval "$ac_link") 2>&5 3752 ac_status=$? 3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3754 test $ac_status = 0; } 3755 if { ac_try='./conftest$ac_cv_exeext' 3756 { { case "(($ac_try" in 3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3758 *) ac_try_echo=$ac_try;; 3759esac 3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3761printf "%s\n" "$ac_try_echo"; } >&5 3762 (eval "$ac_try") 2>&5 3763 ac_status=$? 3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3765 test $ac_status = 0; }; }; then 3766 cross_compiling=no 3767 else 3768 if test "$cross_compiling" = maybe; then 3769 cross_compiling=yes 3770 else 3771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3772printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3773as_fn_error 77 "cannot run C compiled programs. 3774If you meant to cross compile, use \`--host'. 3775See \`config.log' for more details" "$LINENO" 5; } 3776 fi 3777 fi 3778fi 3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3780printf "%s\n" "$cross_compiling" >&6; } 3781 3782rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3783ac_clean_files=$ac_clean_files_save 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3785printf %s "checking for suffix of object files... " >&6; } 3786if test ${ac_cv_objext+y} 3787then : 3788 printf %s "(cached) " >&6 3789else $as_nop 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792 3793int 3794main (void) 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801rm -f conftest.o conftest.obj 3802if { { ac_try="$ac_compile" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808printf "%s\n" "$ac_try_echo"; } >&5 3809 (eval "$ac_compile") 2>&5 3810 ac_status=$? 3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; } 3813then : 3814 for ac_file in conftest.o conftest.obj conftest.*; do 3815 test -f "$ac_file" || continue; 3816 case $ac_file in 3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3819 break;; 3820 esac 3821done 3822else $as_nop 3823 printf "%s\n" "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3828as_fn_error $? "cannot compute suffix of object files: cannot compile 3829See \`config.log' for more details" "$LINENO" 5; } 3830fi 3831rm -f conftest.$ac_cv_objext conftest.$ac_ext 3832fi 3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3834printf "%s\n" "$ac_cv_objext" >&6; } 3835OBJEXT=$ac_cv_objext 3836ac_objext=$OBJEXT 3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3838printf %s "checking whether the compiler supports GNU C... " >&6; } 3839if test ${ac_cv_c_compiler_gnu+y} 3840then : 3841 printf %s "(cached) " >&6 3842else $as_nop 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main (void) 3848{ 3849#ifndef __GNUC__ 3850 choke me 3851#endif 3852 3853 ; 3854 return 0; 3855} 3856_ACEOF 3857if ac_fn_c_try_compile "$LINENO" 3858then : 3859 ac_compiler_gnu=yes 3860else $as_nop 3861 ac_compiler_gnu=no 3862fi 3863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3864ac_cv_c_compiler_gnu=$ac_compiler_gnu 3865 3866fi 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3868printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3869ac_compiler_gnu=$ac_cv_c_compiler_gnu 3870 3871if test $ac_compiler_gnu = yes; then 3872 GCC=yes 3873else 3874 GCC= 3875fi 3876ac_test_CFLAGS=${CFLAGS+y} 3877ac_save_CFLAGS=$CFLAGS 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3879printf %s "checking whether $CC accepts -g... " >&6; } 3880if test ${ac_cv_prog_cc_g+y} 3881then : 3882 printf %s "(cached) " >&6 3883else $as_nop 3884 ac_save_c_werror_flag=$ac_c_werror_flag 3885 ac_c_werror_flag=yes 3886 ac_cv_prog_cc_g=no 3887 CFLAGS="-g" 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889/* end confdefs.h. */ 3890 3891int 3892main (void) 3893{ 3894 3895 ; 3896 return 0; 3897} 3898_ACEOF 3899if ac_fn_c_try_compile "$LINENO" 3900then : 3901 ac_cv_prog_cc_g=yes 3902else $as_nop 3903 CFLAGS="" 3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906 3907int 3908main (void) 3909{ 3910 3911 ; 3912 return 0; 3913} 3914_ACEOF 3915if ac_fn_c_try_compile "$LINENO" 3916then : 3917 3918else $as_nop 3919 ac_c_werror_flag=$ac_save_c_werror_flag 3920 CFLAGS="-g" 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main (void) 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932if ac_fn_c_try_compile "$LINENO" 3933then : 3934 ac_cv_prog_cc_g=yes 3935fi 3936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3941 ac_c_werror_flag=$ac_save_c_werror_flag 3942fi 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3944printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3945if test $ac_test_CFLAGS; then 3946 CFLAGS=$ac_save_CFLAGS 3947elif test $ac_cv_prog_cc_g = yes; then 3948 if test "$GCC" = yes; then 3949 CFLAGS="-g -O2" 3950 else 3951 CFLAGS="-g" 3952 fi 3953else 3954 if test "$GCC" = yes; then 3955 CFLAGS="-O2" 3956 else 3957 CFLAGS= 3958 fi 3959fi 3960ac_prog_cc_stdc=no 3961if test x$ac_prog_cc_stdc = xno 3962then : 3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3964printf %s "checking for $CC option to enable C11 features... " >&6; } 3965if test ${ac_cv_prog_cc_c11+y} 3966then : 3967 printf %s "(cached) " >&6 3968else $as_nop 3969 ac_cv_prog_cc_c11=no 3970ac_save_CC=$CC 3971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973$ac_c_conftest_c11_program 3974_ACEOF 3975for ac_arg in '' -std=gnu11 3976do 3977 CC="$ac_save_CC $ac_arg" 3978 if ac_fn_c_try_compile "$LINENO" 3979then : 3980 ac_cv_prog_cc_c11=$ac_arg 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.beam 3983 test "x$ac_cv_prog_cc_c11" != "xno" && break 3984done 3985rm -f conftest.$ac_ext 3986CC=$ac_save_CC 3987fi 3988 3989if test "x$ac_cv_prog_cc_c11" = xno 3990then : 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3992printf "%s\n" "unsupported" >&6; } 3993else $as_nop 3994 if test "x$ac_cv_prog_cc_c11" = x 3995then : 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3997printf "%s\n" "none needed" >&6; } 3998else $as_nop 3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4000printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4001 CC="$CC $ac_cv_prog_cc_c11" 4002fi 4003 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4004 ac_prog_cc_stdc=c11 4005fi 4006fi 4007if test x$ac_prog_cc_stdc = xno 4008then : 4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4010printf %s "checking for $CC option to enable C99 features... " >&6; } 4011if test ${ac_cv_prog_cc_c99+y} 4012then : 4013 printf %s "(cached) " >&6 4014else $as_nop 4015 ac_cv_prog_cc_c99=no 4016ac_save_CC=$CC 4017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019$ac_c_conftest_c99_program 4020_ACEOF 4021for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4022do 4023 CC="$ac_save_CC $ac_arg" 4024 if ac_fn_c_try_compile "$LINENO" 4025then : 4026 ac_cv_prog_cc_c99=$ac_arg 4027fi 4028rm -f core conftest.err conftest.$ac_objext conftest.beam 4029 test "x$ac_cv_prog_cc_c99" != "xno" && break 4030done 4031rm -f conftest.$ac_ext 4032CC=$ac_save_CC 4033fi 4034 4035if test "x$ac_cv_prog_cc_c99" = xno 4036then : 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4038printf "%s\n" "unsupported" >&6; } 4039else $as_nop 4040 if test "x$ac_cv_prog_cc_c99" = x 4041then : 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4043printf "%s\n" "none needed" >&6; } 4044else $as_nop 4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4046printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4047 CC="$CC $ac_cv_prog_cc_c99" 4048fi 4049 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4050 ac_prog_cc_stdc=c99 4051fi 4052fi 4053if test x$ac_prog_cc_stdc = xno 4054then : 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4056printf %s "checking for $CC option to enable C89 features... " >&6; } 4057if test ${ac_cv_prog_cc_c89+y} 4058then : 4059 printf %s "(cached) " >&6 4060else $as_nop 4061 ac_cv_prog_cc_c89=no 4062ac_save_CC=$CC 4063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065$ac_c_conftest_c89_program 4066_ACEOF 4067for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4068do 4069 CC="$ac_save_CC $ac_arg" 4070 if ac_fn_c_try_compile "$LINENO" 4071then : 4072 ac_cv_prog_cc_c89=$ac_arg 4073fi 4074rm -f core conftest.err conftest.$ac_objext conftest.beam 4075 test "x$ac_cv_prog_cc_c89" != "xno" && break 4076done 4077rm -f conftest.$ac_ext 4078CC=$ac_save_CC 4079fi 4080 4081if test "x$ac_cv_prog_cc_c89" = xno 4082then : 4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4084printf "%s\n" "unsupported" >&6; } 4085else $as_nop 4086 if test "x$ac_cv_prog_cc_c89" = x 4087then : 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4089printf "%s\n" "none needed" >&6; } 4090else $as_nop 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4092printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4093 CC="$CC $ac_cv_prog_cc_c89" 4094fi 4095 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4096 ac_prog_cc_stdc=c89 4097fi 4098fi 4099 4100ac_ext=c 4101ac_cpp='$CPP $CPPFLAGS' 4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4104ac_compiler_gnu=$ac_cv_c_compiler_gnu 4105 4106 4107 ac_ext=c 4108ac_cpp='$CPP $CPPFLAGS' 4109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4111ac_compiler_gnu=$ac_cv_c_compiler_gnu 4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4113printf %s "checking whether $CC understands -c and -o together... " >&6; } 4114if test ${am_cv_prog_cc_c_o+y} 4115then : 4116 printf %s "(cached) " >&6 4117else $as_nop 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120 4121int 4122main (void) 4123{ 4124 4125 ; 4126 return 0; 4127} 4128_ACEOF 4129 # Make sure it works both with $CC and with simple cc. 4130 # Following AC_PROG_CC_C_O, we do the test twice because some 4131 # compilers refuse to overwrite an existing .o file with -o, 4132 # though they will create one. 4133 am_cv_prog_cc_c_o=yes 4134 for am_i in 1 2; do 4135 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4136 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4137 ac_status=$? 4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); } \ 4140 && test -f conftest2.$ac_objext; then 4141 : OK 4142 else 4143 am_cv_prog_cc_c_o=no 4144 break 4145 fi 4146 done 4147 rm -f core conftest* 4148 unset am_i 4149fi 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4151printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4152if test "$am_cv_prog_cc_c_o" != yes; then 4153 # Losing compiler, so override with the script. 4154 # FIXME: It is wrong to rewrite CC. 4155 # But if we don't then we get into trouble of one sort or another. 4156 # A longer-term fix would be to have automake use am__CC in this case, 4157 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4158 CC="$am_aux_dir/compile $CC" 4159fi 4160ac_ext=c 4161ac_cpp='$CPP $CPPFLAGS' 4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4164ac_compiler_gnu=$ac_cv_c_compiler_gnu 4165 4166 4167 4168ac_header= ac_cache= 4169for ac_item in $ac_header_c_list 4170do 4171 if test $ac_cache; then 4172 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4173 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4174 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4175 fi 4176 ac_header= ac_cache= 4177 elif test $ac_header; then 4178 ac_cache=$ac_item 4179 else 4180 ac_header=$ac_item 4181 fi 4182done 4183 4184 4185 4186 4187 4188 4189 4190 4191if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4192then : 4193 4194printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4195 4196fi 4197 4198 4199 4200 4201 4202 4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4204printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4205if test ${ac_cv_safe_to_define___extensions__+y} 4206then : 4207 printf %s "(cached) " >&6 4208else $as_nop 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211 4212# define __EXTENSIONS__ 1 4213 $ac_includes_default 4214int 4215main (void) 4216{ 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222if ac_fn_c_try_compile "$LINENO" 4223then : 4224 ac_cv_safe_to_define___extensions__=yes 4225else $as_nop 4226 ac_cv_safe_to_define___extensions__=no 4227fi 4228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4229fi 4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4231printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4232 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4234printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4235if test ${ac_cv_should_define__xopen_source+y} 4236then : 4237 printf %s "(cached) " >&6 4238else $as_nop 4239 ac_cv_should_define__xopen_source=no 4240 if test $ac_cv_header_wchar_h = yes 4241then : 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244 4245 #include <wchar.h> 4246 mbstate_t x; 4247int 4248main (void) 4249{ 4250 4251 ; 4252 return 0; 4253} 4254_ACEOF 4255if ac_fn_c_try_compile "$LINENO" 4256then : 4257 4258else $as_nop 4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261 4262 #define _XOPEN_SOURCE 500 4263 #include <wchar.h> 4264 mbstate_t x; 4265int 4266main (void) 4267{ 4268 4269 ; 4270 return 0; 4271} 4272_ACEOF 4273if ac_fn_c_try_compile "$LINENO" 4274then : 4275 ac_cv_should_define__xopen_source=yes 4276fi 4277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4278fi 4279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4280fi 4281fi 4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4283printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4284 4285 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4286 4287 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4288 4289 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4290 4291 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4292 4293 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4294 4295 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4296 4297 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4298 4299 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4300 4301 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4302 4303 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4304 4305 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4306 4307 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4308 4309 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4310 4311 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4312 4313 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4314 4315 if test $ac_cv_header_minix_config_h = yes 4316then : 4317 MINIX=yes 4318 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4319 4320 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4321 4322 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4323 4324else $as_nop 4325 MINIX= 4326fi 4327 if test $ac_cv_safe_to_define___extensions__ = yes 4328then : 4329 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4330 4331fi 4332 if test $ac_cv_should_define__xopen_source = yes 4333then : 4334 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4335 4336fi 4337 4338 4339# Initialize Automake 4340am__api_version='1.16' 4341 4342 4343 # Find a good install program. We prefer a C program (faster), 4344# so one script is as good as another. But avoid the broken or 4345# incompatible versions: 4346# SysV /etc/install, /usr/sbin/install 4347# SunOS /usr/etc/install 4348# IRIX /sbin/install 4349# AIX /bin/install 4350# AmigaOS /C/install, which installs bootblocks on floppy discs 4351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4352# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4354# OS/2's system install, which has a completely different semantic 4355# ./install, which can be erroneously created by make from ./install.sh. 4356# Reject install programs that cannot install multiple files. 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4358printf %s "checking for a BSD-compatible install... " >&6; } 4359if test -z "$INSTALL"; then 4360if test ${ac_cv_path_install+y} 4361then : 4362 printf %s "(cached) " >&6 4363else $as_nop 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 case $as_dir in #((( 4369 '') as_dir=./ ;; 4370 */) ;; 4371 *) as_dir=$as_dir/ ;; 4372 esac 4373 # Account for fact that we put trailing slashes in our PATH walk. 4374case $as_dir in #(( 4375 ./ | /[cC]/* | \ 4376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4378 /usr/ucb/* ) ;; 4379 *) 4380 # OSF1 and SCO ODT 3.0 have their own names for install. 4381 # Don't use installbsd from OSF since it installs stuff as root 4382 # by default. 4383 for ac_prog in ginstall scoinst install; do 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4386 if test $ac_prog = install && 4387 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4388 # AIX install. It has an incompatible calling convention. 4389 : 4390 elif test $ac_prog = install && 4391 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4392 # program-specific install script used by HP pwplus--don't use. 4393 : 4394 else 4395 rm -rf conftest.one conftest.two conftest.dir 4396 echo one > conftest.one 4397 echo two > conftest.two 4398 mkdir conftest.dir 4399 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4400 test -s conftest.one && test -s conftest.two && 4401 test -s conftest.dir/conftest.one && 4402 test -s conftest.dir/conftest.two 4403 then 4404 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4405 break 3 4406 fi 4407 fi 4408 fi 4409 done 4410 done 4411 ;; 4412esac 4413 4414 done 4415IFS=$as_save_IFS 4416 4417rm -rf conftest.one conftest.two conftest.dir 4418 4419fi 4420 if test ${ac_cv_path_install+y}; then 4421 INSTALL=$ac_cv_path_install 4422 else 4423 # As a last resort, use the slow shell script. Don't cache a 4424 # value for INSTALL within a source directory, because that will 4425 # break other packages using the cache if that directory is 4426 # removed, or if the value is a relative name. 4427 INSTALL=$ac_install_sh 4428 fi 4429fi 4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4431printf "%s\n" "$INSTALL" >&6; } 4432 4433# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4434# It thinks the first close brace ends the variable substitution. 4435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4436 4437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4438 4439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4440 4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4442printf %s "checking whether build environment is sane... " >&6; } 4443# Reject unsafe characters in $srcdir or the absolute working directory 4444# name. Accept space and tab only in the latter. 4445am_lf=' 4446' 4447case `pwd` in 4448 *[\\\"\#\$\&\'\`$am_lf]*) 4449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4450esac 4451case $srcdir in 4452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4453 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4454esac 4455 4456# Do 'set' in a subshell so we don't clobber the current shell's 4457# arguments. Must try -L first in case configure is actually a 4458# symlink; some systems play weird games with the mod time of symlinks 4459# (eg FreeBSD returns the mod time of the symlink's containing 4460# directory). 4461if ( 4462 am_has_slept=no 4463 for am_try in 1 2; do 4464 echo "timestamp, slept: $am_has_slept" > conftest.file 4465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4466 if test "$*" = "X"; then 4467 # -L didn't work. 4468 set X `ls -t "$srcdir/configure" conftest.file` 4469 fi 4470 if test "$*" != "X $srcdir/configure conftest.file" \ 4471 && test "$*" != "X conftest.file $srcdir/configure"; then 4472 4473 # If neither matched, then we have a broken ls. This can happen 4474 # if, for instance, CONFIG_SHELL is bash and it inherits a 4475 # broken ls alias from the environment. This has actually 4476 # happened. Such a system could not be considered "sane". 4477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4478 alias in your environment" "$LINENO" 5 4479 fi 4480 if test "$2" = conftest.file || test $am_try -eq 2; then 4481 break 4482 fi 4483 # Just in case. 4484 sleep 1 4485 am_has_slept=yes 4486 done 4487 test "$2" = conftest.file 4488 ) 4489then 4490 # Ok. 4491 : 4492else 4493 as_fn_error $? "newly created file is older than distributed files! 4494Check your system clock" "$LINENO" 5 4495fi 4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4497printf "%s\n" "yes" >&6; } 4498# If we didn't sleep, we still need to ensure time stamps of config.status and 4499# generated files are strictly newer. 4500am_sleep_pid= 4501if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4502 ( sleep 1 ) & 4503 am_sleep_pid=$! 4504fi 4505 4506rm -f conftest.file 4507 4508test "$program_prefix" != NONE && 4509 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4510# Use a double $ so make ignores it. 4511test "$program_suffix" != NONE && 4512 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4513# Double any \ or $. 4514# By default was `s,x,x', remove it if useless. 4515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4516program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4517 4518 4519 if test x"${MISSING+set}" != xset; then 4520 MISSING="\${SHELL} '$am_aux_dir/missing'" 4521fi 4522# Use eval to expand $SHELL 4523if eval "$MISSING --is-lightweight"; then 4524 am_missing_run="$MISSING " 4525else 4526 am_missing_run= 4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4528printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4529fi 4530 4531if test x"${install_sh+set}" != xset; then 4532 case $am_aux_dir in 4533 *\ * | *\ *) 4534 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4535 *) 4536 install_sh="\${SHELL} $am_aux_dir/install-sh" 4537 esac 4538fi 4539 4540# Installed binaries are usually stripped using 'strip' when the user 4541# run "make install-strip". However 'strip' might not be the right 4542# tool to use in cross-compilation environments, therefore Automake 4543# will honor the 'STRIP' environment variable to overrule this program. 4544if test "$cross_compiling" != no; then 4545 if test -n "$ac_tool_prefix"; then 4546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4547set dummy ${ac_tool_prefix}strip; ac_word=$2 4548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549printf %s "checking for $ac_word... " >&6; } 4550if test ${ac_cv_prog_STRIP+y} 4551then : 4552 printf %s "(cached) " >&6 4553else $as_nop 4554 if test -n "$STRIP"; then 4555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4556else 4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558for as_dir in $PATH 4559do 4560 IFS=$as_save_IFS 4561 case $as_dir in #((( 4562 '') as_dir=./ ;; 4563 */) ;; 4564 *) as_dir=$as_dir/ ;; 4565 esac 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4568 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573 done 4574IFS=$as_save_IFS 4575 4576fi 4577fi 4578STRIP=$ac_cv_prog_STRIP 4579if test -n "$STRIP"; then 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4581printf "%s\n" "$STRIP" >&6; } 4582else 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4584printf "%s\n" "no" >&6; } 4585fi 4586 4587 4588fi 4589if test -z "$ac_cv_prog_STRIP"; then 4590 ac_ct_STRIP=$STRIP 4591 # Extract the first word of "strip", so it can be a program name with args. 4592set dummy strip; ac_word=$2 4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4594printf %s "checking for $ac_word... " >&6; } 4595if test ${ac_cv_prog_ac_ct_STRIP+y} 4596then : 4597 printf %s "(cached) " >&6 4598else $as_nop 4599 if test -n "$ac_ct_STRIP"; then 4600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4601else 4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH 4604do 4605 IFS=$as_save_IFS 4606 case $as_dir in #((( 4607 '') as_dir=./ ;; 4608 */) ;; 4609 *) as_dir=$as_dir/ ;; 4610 esac 4611 for ac_exec_ext in '' $ac_executable_extensions; do 4612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4613 ac_cv_prog_ac_ct_STRIP="strip" 4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4615 break 2 4616 fi 4617done 4618 done 4619IFS=$as_save_IFS 4620 4621fi 4622fi 4623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4624if test -n "$ac_ct_STRIP"; then 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4626printf "%s\n" "$ac_ct_STRIP" >&6; } 4627else 4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629printf "%s\n" "no" >&6; } 4630fi 4631 4632 if test "x$ac_ct_STRIP" = x; then 4633 STRIP=":" 4634 else 4635 case $cross_compiling:$ac_tool_warned in 4636yes:) 4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4638printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4639ac_tool_warned=yes ;; 4640esac 4641 STRIP=$ac_ct_STRIP 4642 fi 4643else 4644 STRIP="$ac_cv_prog_STRIP" 4645fi 4646 4647fi 4648INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4649 4650 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4652printf %s "checking for a race-free mkdir -p... " >&6; } 4653if test -z "$MKDIR_P"; then 4654 if test ${ac_cv_path_mkdir+y} 4655then : 4656 printf %s "(cached) " >&6 4657else $as_nop 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4660do 4661 IFS=$as_save_IFS 4662 case $as_dir in #((( 4663 '') as_dir=./ ;; 4664 */) ;; 4665 *) as_dir=$as_dir/ ;; 4666 esac 4667 for ac_prog in mkdir gmkdir; do 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4670 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4671 'mkdir ('*'coreutils) '* | \ 4672 'BusyBox '* | \ 4673 'mkdir (fileutils) '4.1*) 4674 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4675 break 3;; 4676 esac 4677 done 4678 done 4679 done 4680IFS=$as_save_IFS 4681 4682fi 4683 4684 test -d ./--version && rmdir ./--version 4685 if test ${ac_cv_path_mkdir+y}; then 4686 MKDIR_P="$ac_cv_path_mkdir -p" 4687 else 4688 # As a last resort, use the slow shell script. Don't cache a 4689 # value for MKDIR_P within a source directory, because that will 4690 # break other packages using the cache if that directory is 4691 # removed, or if the value is a relative name. 4692 MKDIR_P="$ac_install_sh -d" 4693 fi 4694fi 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4696printf "%s\n" "$MKDIR_P" >&6; } 4697 4698for ac_prog in gawk mawk nawk awk 4699do 4700 # Extract the first word of "$ac_prog", so it can be a program name with args. 4701set dummy $ac_prog; ac_word=$2 4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4703printf %s "checking for $ac_word... " >&6; } 4704if test ${ac_cv_prog_AWK+y} 4705then : 4706 printf %s "(cached) " >&6 4707else $as_nop 4708 if test -n "$AWK"; then 4709 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4710else 4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4712for as_dir in $PATH 4713do 4714 IFS=$as_save_IFS 4715 case $as_dir in #((( 4716 '') as_dir=./ ;; 4717 */) ;; 4718 *) as_dir=$as_dir/ ;; 4719 esac 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4722 ac_cv_prog_AWK="$ac_prog" 4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726done 4727 done 4728IFS=$as_save_IFS 4729 4730fi 4731fi 4732AWK=$ac_cv_prog_AWK 4733if test -n "$AWK"; then 4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4735printf "%s\n" "$AWK" >&6; } 4736else 4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4738printf "%s\n" "no" >&6; } 4739fi 4740 4741 4742 test -n "$AWK" && break 4743done 4744 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4746printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4747set x ${MAKE-make} 4748ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4749if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4750then : 4751 printf %s "(cached) " >&6 4752else $as_nop 4753 cat >conftest.make <<\_ACEOF 4754SHELL = /bin/sh 4755all: 4756 @echo '@@@%%%=$(MAKE)=@@@%%%' 4757_ACEOF 4758# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4759case `${MAKE-make} -f conftest.make 2>/dev/null` in 4760 *@@@%%%=?*=@@@%%%*) 4761 eval ac_cv_prog_make_${ac_make}_set=yes;; 4762 *) 4763 eval ac_cv_prog_make_${ac_make}_set=no;; 4764esac 4765rm -f conftest.make 4766fi 4767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4769printf "%s\n" "yes" >&6; } 4770 SET_MAKE= 4771else 4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4773printf "%s\n" "no" >&6; } 4774 SET_MAKE="MAKE=${MAKE-make}" 4775fi 4776 4777rm -rf .tst 2>/dev/null 4778mkdir .tst 2>/dev/null 4779if test -d .tst; then 4780 am__leading_dot=. 4781else 4782 am__leading_dot=_ 4783fi 4784rmdir .tst 2>/dev/null 4785 4786DEPDIR="${am__leading_dot}deps" 4787 4788ac_config_commands="$ac_config_commands depfiles" 4789 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4791printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4792cat > confinc.mk << 'END' 4793am__doit: 4794 @echo this is the am__doit target >confinc.out 4795.PHONY: am__doit 4796END 4797am__include="#" 4798am__quote= 4799# BSD make does it like this. 4800echo '.include "confinc.mk" # ignored' > confmf.BSD 4801# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4802echo 'include confinc.mk # ignored' > confmf.GNU 4803_am_result=no 4804for s in GNU BSD; do 4805 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4806 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); } 4810 case $?:`cat confinc.out 2>/dev/null` in #( 4811 '0:this is the am__doit target') : 4812 case $s in #( 4813 BSD) : 4814 am__include='.include' am__quote='"' ;; #( 4815 *) : 4816 am__include='include' am__quote='' ;; 4817esac ;; #( 4818 *) : 4819 ;; 4820esac 4821 if test "$am__include" != "#"; then 4822 _am_result="yes ($s style)" 4823 break 4824 fi 4825done 4826rm -f confinc.* confmf.* 4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4828printf "%s\n" "${_am_result}" >&6; } 4829 4830# Check whether --enable-dependency-tracking was given. 4831if test ${enable_dependency_tracking+y} 4832then : 4833 enableval=$enable_dependency_tracking; 4834fi 4835 4836if test "x$enable_dependency_tracking" != xno; then 4837 am_depcomp="$ac_aux_dir/depcomp" 4838 AMDEPBACKSLASH='\' 4839 am__nodep='_no' 4840fi 4841 if test "x$enable_dependency_tracking" != xno; then 4842 AMDEP_TRUE= 4843 AMDEP_FALSE='#' 4844else 4845 AMDEP_TRUE='#' 4846 AMDEP_FALSE= 4847fi 4848 4849 4850# Check whether --enable-silent-rules was given. 4851if test ${enable_silent_rules+y} 4852then : 4853 enableval=$enable_silent_rules; 4854fi 4855 4856case $enable_silent_rules in # ((( 4857 yes) AM_DEFAULT_VERBOSITY=0;; 4858 no) AM_DEFAULT_VERBOSITY=1;; 4859 *) AM_DEFAULT_VERBOSITY=1;; 4860esac 4861am_make=${MAKE-make} 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4863printf %s "checking whether $am_make supports nested variables... " >&6; } 4864if test ${am_cv_make_support_nested_variables+y} 4865then : 4866 printf %s "(cached) " >&6 4867else $as_nop 4868 if printf "%s\n" 'TRUE=$(BAR$(V)) 4869BAR0=false 4870BAR1=true 4871V=1 4872am__doit: 4873 @$(TRUE) 4874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4875 am_cv_make_support_nested_variables=yes 4876else 4877 am_cv_make_support_nested_variables=no 4878fi 4879fi 4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4881printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4882if test $am_cv_make_support_nested_variables = yes; then 4883 AM_V='$(V)' 4884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4885else 4886 AM_V=$AM_DEFAULT_VERBOSITY 4887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4888fi 4889AM_BACKSLASH='\' 4890 4891if test "`cd $srcdir && pwd`" != "`pwd`"; then 4892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4893 # is not polluted with repeated "-I." 4894 am__isrc=' -I$(srcdir)' 4895 # test to see if srcdir already configured 4896 if test -f $srcdir/config.status; then 4897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4898 fi 4899fi 4900 4901# test whether we have cygpath 4902if test -z "$CYGPATH_W"; then 4903 if (cygpath --version) >/dev/null 2>/dev/null; then 4904 CYGPATH_W='cygpath -w' 4905 else 4906 CYGPATH_W=echo 4907 fi 4908fi 4909 4910 4911# Define the identity of the package. 4912 PACKAGE='libX11' 4913 VERSION='1.8.6' 4914 4915 4916printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4917 4918 4919printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4920 4921# Some tools Automake needs. 4922 4923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4924 4925 4926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4927 4928 4929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4930 4931 4932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4933 4934 4935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4936 4937# For better backward compatibility. To be removed once Automake 1.9.x 4938# dies out for good. For more background, see: 4939# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4940# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4941mkdir_p='$(MKDIR_P)' 4942 4943# We need awk for the "check" target (and possibly the TAP driver). The 4944# system "awk" is bad on some platforms. 4945# Always define AMTAR for backward compatibility. Yes, it's still used 4946# in the wild :-( We should find a proper way to deprecate it ... 4947AMTAR='$${TAR-tar}' 4948 4949 4950# We'll loop over all known methods to create a tar archive until one works. 4951_am_tools='gnutar pax cpio none' 4952 4953am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4954 4955 4956 4957 4958 4959depcc="$CC" am_compiler_list= 4960 4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4962printf %s "checking dependency style of $depcc... " >&6; } 4963if test ${am_cv_CC_dependencies_compiler_type+y} 4964then : 4965 printf %s "(cached) " >&6 4966else $as_nop 4967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4968 # We make a subdir and do the tests there. Otherwise we can end up 4969 # making bogus files that we don't know about and never remove. For 4970 # instance it was reported that on HP-UX the gcc test will end up 4971 # making a dummy file named 'D' -- because '-MD' means "put the output 4972 # in D". 4973 rm -rf conftest.dir 4974 mkdir conftest.dir 4975 # Copy depcomp to subdir because otherwise we won't find it if we're 4976 # using a relative directory. 4977 cp "$am_depcomp" conftest.dir 4978 cd conftest.dir 4979 # We will build objects and dependencies in a subdirectory because 4980 # it helps to detect inapplicable dependency modes. For instance 4981 # both Tru64's cc and ICC support -MD to output dependencies as a 4982 # side effect of compilation, but ICC will put the dependencies in 4983 # the current directory while Tru64 will put them in the object 4984 # directory. 4985 mkdir sub 4986 4987 am_cv_CC_dependencies_compiler_type=none 4988 if test "$am_compiler_list" = ""; then 4989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4990 fi 4991 am__universal=false 4992 case " $depcc " in #( 4993 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4994 esac 4995 4996 for depmode in $am_compiler_list; do 4997 # Setup a source with many dependencies, because some compilers 4998 # like to wrap large dependency lists on column 80 (with \), and 4999 # we should not choose a depcomp mode which is confused by this. 5000 # 5001 # We need to recreate these files for each test, as the compiler may 5002 # overwrite some of them when testing with obscure command lines. 5003 # This happens at least with the AIX C compiler. 5004 : > sub/conftest.c 5005 for i in 1 2 3 4 5 6; do 5006 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5008 # Solaris 10 /bin/sh. 5009 echo '/* dummy */' > sub/conftst$i.h 5010 done 5011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5012 5013 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5014 # mode. It turns out that the SunPro C++ compiler does not properly 5015 # handle '-M -o', and we need to detect this. Also, some Intel 5016 # versions had trouble with output in subdirs. 5017 am__obj=sub/conftest.${OBJEXT-o} 5018 am__minus_obj="-o $am__obj" 5019 case $depmode in 5020 gcc) 5021 # This depmode causes a compiler race in universal mode. 5022 test "$am__universal" = false || continue 5023 ;; 5024 nosideeffect) 5025 # After this tag, mechanisms are not by side-effect, so they'll 5026 # only be used when explicitly requested. 5027 if test "x$enable_dependency_tracking" = xyes; then 5028 continue 5029 else 5030 break 5031 fi 5032 ;; 5033 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5034 # This compiler won't grok '-c -o', but also, the minuso test has 5035 # not run yet. These depmodes are late enough in the game, and 5036 # so weak that their functioning should not be impacted. 5037 am__obj=conftest.${OBJEXT-o} 5038 am__minus_obj= 5039 ;; 5040 none) break ;; 5041 esac 5042 if depmode=$depmode \ 5043 source=sub/conftest.c object=$am__obj \ 5044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5046 >/dev/null 2>conftest.err && 5047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5051 # icc doesn't choke on unknown options, it will just issue warnings 5052 # or remarks (even with -Werror). So we grep stderr for any message 5053 # that says an option was ignored or not supported. 5054 # When given -MP, icc 7.0 and 7.1 complain thusly: 5055 # icc: Command line warning: ignoring option '-M'; no argument required 5056 # The diagnosis changed in icc 8.0: 5057 # icc: Command line remark: option '-MP' not supported 5058 if (grep 'ignoring option' conftest.err || 5059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5060 am_cv_CC_dependencies_compiler_type=$depmode 5061 break 5062 fi 5063 fi 5064 done 5065 5066 cd .. 5067 rm -rf conftest.dir 5068else 5069 am_cv_CC_dependencies_compiler_type=none 5070fi 5071 5072fi 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5074printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5076 5077 if 5078 test "x$enable_dependency_tracking" != xno \ 5079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5080 am__fastdepCC_TRUE= 5081 am__fastdepCC_FALSE='#' 5082else 5083 am__fastdepCC_TRUE='#' 5084 am__fastdepCC_FALSE= 5085fi 5086 5087 5088# Variables for tags utilities; see am/tags.am 5089if test -z "$CTAGS"; then 5090 CTAGS=ctags 5091fi 5092 5093if test -z "$ETAGS"; then 5094 ETAGS=etags 5095fi 5096 5097if test -z "$CSCOPE"; then 5098 CSCOPE=cscope 5099fi 5100 5101 5102 5103# POSIX will say in a future version that running "rm -f" with no argument 5104# is OK; and we want to be able to make that assumption in our Makefile 5105# recipes. So use an aggressive probe to check that the usage we want is 5106# actually supported "in the wild" to an acceptable degree. 5107# See automake bug#10828. 5108# To make any issue more visible, cause the running configure to be aborted 5109# by default if the 'rm' program in use doesn't match our expectations; the 5110# user can still override this though. 5111if rm -f && rm -fr && rm -rf; then : OK; else 5112 cat >&2 <<'END' 5113Oops! 5114 5115Your 'rm' program seems unable to run without file operands specified 5116on the command line, even when the '-f' option is present. This is contrary 5117to the behaviour of most rm programs out there, and not conforming with 5118the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5119 5120Please tell bug-automake@gnu.org about your system, including the value 5121of your $PATH and any error possibly output before this message. This 5122can help us improve future automake versions. 5123 5124END 5125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5126 echo 'Configuration will proceed anyway, since you have set the' >&2 5127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5128 echo >&2 5129 else 5130 cat >&2 <<'END' 5131Aborting the configuration process, to ensure you take notice of the issue. 5132 5133You can download and install GNU coreutils to get an 'rm' implementation 5134that behaves properly: <https://www.gnu.org/software/coreutils/>. 5135 5136If you want to complete the configuration process using your problematic 5137'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5138to "yes", and re-run configure. 5139 5140END 5141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5142 fi 5143fi 5144 5145 5146# Initialize libtool 5147case `pwd` in 5148 *\ * | *\ *) 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5150printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5151esac 5152 5153 5154 5155macro_version='2.4.7' 5156macro_revision='2.4.7' 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171ltmain=$ac_aux_dir/ltmain.sh 5172 5173# Backslashify metacharacters that are still active within 5174# double-quoted strings. 5175sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5176 5177# Same as above, but do not quote variable references. 5178double_quote_subst='s/\(["`\\]\)/\\\1/g' 5179 5180# Sed substitution to delay expansion of an escaped shell variable in a 5181# double_quote_subst'ed string. 5182delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5183 5184# Sed substitution to delay expansion of an escaped single quote. 5185delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5186 5187# Sed substitution to avoid accidental globbing in evaled expressions 5188no_glob_subst='s/\*/\\\*/g' 5189 5190ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5191ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5192ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5193 5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5195printf %s "checking how to print strings... " >&6; } 5196# Test print first, because it will be a builtin if present. 5197if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5199 ECHO='print -r --' 5200elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5201 ECHO='printf %s\n' 5202else 5203 # Use this function as a fallback that always works. 5204 func_fallback_echo () 5205 { 5206 eval 'cat <<_LTECHO_EOF 5207$1 5208_LTECHO_EOF' 5209 } 5210 ECHO='func_fallback_echo' 5211fi 5212 5213# func_echo_all arg... 5214# Invoke $ECHO with all args, space-separated. 5215func_echo_all () 5216{ 5217 $ECHO "" 5218} 5219 5220case $ECHO in 5221 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5222printf "%s\n" "printf" >&6; } ;; 5223 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5224printf "%s\n" "print -r" >&6; } ;; 5225 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5226printf "%s\n" "cat" >&6; } ;; 5227esac 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5243printf %s "checking for a sed that does not truncate output... " >&6; } 5244if test ${ac_cv_path_SED+y} 5245then : 5246 printf %s "(cached) " >&6 5247else $as_nop 5248 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5249 for ac_i in 1 2 3 4 5 6 7; do 5250 ac_script="$ac_script$as_nl$ac_script" 5251 done 5252 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5253 { ac_script=; unset ac_script;} 5254 if test -z "$SED"; then 5255 ac_path_SED_found=false 5256 # Loop through the user's path and test for each of PROGNAME-LIST 5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 case $as_dir in #((( 5262 '') as_dir=./ ;; 5263 */) ;; 5264 *) as_dir=$as_dir/ ;; 5265 esac 5266 for ac_prog in sed gsed 5267 do 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5270 as_fn_executable_p "$ac_path_SED" || continue 5271# Check for GNU ac_path_SED and select it if it is found. 5272 # Check for GNU $ac_path_SED 5273case `"$ac_path_SED" --version 2>&1` in 5274*GNU*) 5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5276*) 5277 ac_count=0 5278 printf %s 0123456789 >"conftest.in" 5279 while : 5280 do 5281 cat "conftest.in" "conftest.in" >"conftest.tmp" 5282 mv "conftest.tmp" "conftest.in" 5283 cp "conftest.in" "conftest.nl" 5284 printf "%s\n" '' >> "conftest.nl" 5285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5287 as_fn_arith $ac_count + 1 && ac_count=$as_val 5288 if test $ac_count -gt ${ac_path_SED_max-0}; then 5289 # Best one so far, save it but keep looking for a better one 5290 ac_cv_path_SED="$ac_path_SED" 5291 ac_path_SED_max=$ac_count 5292 fi 5293 # 10*(2^10) chars as input seems more than enough 5294 test $ac_count -gt 10 && break 5295 done 5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5297esac 5298 5299 $ac_path_SED_found && break 3 5300 done 5301 done 5302 done 5303IFS=$as_save_IFS 5304 if test -z "$ac_cv_path_SED"; then 5305 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5306 fi 5307else 5308 ac_cv_path_SED=$SED 5309fi 5310 5311fi 5312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5313printf "%s\n" "$ac_cv_path_SED" >&6; } 5314 SED="$ac_cv_path_SED" 5315 rm -f conftest.sed 5316 5317test -z "$SED" && SED=sed 5318Xsed="$SED -e 1s/^X//" 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5331printf %s "checking for grep that handles long lines and -e... " >&6; } 5332if test ${ac_cv_path_GREP+y} 5333then : 5334 printf %s "(cached) " >&6 5335else $as_nop 5336 if test -z "$GREP"; then 5337 ac_path_GREP_found=false 5338 # Loop through the user's path and test for each of PROGNAME-LIST 5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5341do 5342 IFS=$as_save_IFS 5343 case $as_dir in #((( 5344 '') as_dir=./ ;; 5345 */) ;; 5346 *) as_dir=$as_dir/ ;; 5347 esac 5348 for ac_prog in grep ggrep 5349 do 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5352 as_fn_executable_p "$ac_path_GREP" || continue 5353# Check for GNU ac_path_GREP and select it if it is found. 5354 # Check for GNU $ac_path_GREP 5355case `"$ac_path_GREP" --version 2>&1` in 5356*GNU*) 5357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5358*) 5359 ac_count=0 5360 printf %s 0123456789 >"conftest.in" 5361 while : 5362 do 5363 cat "conftest.in" "conftest.in" >"conftest.tmp" 5364 mv "conftest.tmp" "conftest.in" 5365 cp "conftest.in" "conftest.nl" 5366 printf "%s\n" 'GREP' >> "conftest.nl" 5367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5369 as_fn_arith $ac_count + 1 && ac_count=$as_val 5370 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5371 # Best one so far, save it but keep looking for a better one 5372 ac_cv_path_GREP="$ac_path_GREP" 5373 ac_path_GREP_max=$ac_count 5374 fi 5375 # 10*(2^10) chars as input seems more than enough 5376 test $ac_count -gt 10 && break 5377 done 5378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5379esac 5380 5381 $ac_path_GREP_found && break 3 5382 done 5383 done 5384 done 5385IFS=$as_save_IFS 5386 if test -z "$ac_cv_path_GREP"; then 5387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5388 fi 5389else 5390 ac_cv_path_GREP=$GREP 5391fi 5392 5393fi 5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5395printf "%s\n" "$ac_cv_path_GREP" >&6; } 5396 GREP="$ac_cv_path_GREP" 5397 5398 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5400printf %s "checking for egrep... " >&6; } 5401if test ${ac_cv_path_EGREP+y} 5402then : 5403 printf %s "(cached) " >&6 5404else $as_nop 5405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5406 then ac_cv_path_EGREP="$GREP -E" 5407 else 5408 if test -z "$EGREP"; then 5409 ac_path_EGREP_found=false 5410 # Loop through the user's path and test for each of PROGNAME-LIST 5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5413do 5414 IFS=$as_save_IFS 5415 case $as_dir in #((( 5416 '') as_dir=./ ;; 5417 */) ;; 5418 *) as_dir=$as_dir/ ;; 5419 esac 5420 for ac_prog in egrep 5421 do 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5424 as_fn_executable_p "$ac_path_EGREP" || continue 5425# Check for GNU ac_path_EGREP and select it if it is found. 5426 # Check for GNU $ac_path_EGREP 5427case `"$ac_path_EGREP" --version 2>&1` in 5428*GNU*) 5429 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5430*) 5431 ac_count=0 5432 printf %s 0123456789 >"conftest.in" 5433 while : 5434 do 5435 cat "conftest.in" "conftest.in" >"conftest.tmp" 5436 mv "conftest.tmp" "conftest.in" 5437 cp "conftest.in" "conftest.nl" 5438 printf "%s\n" 'EGREP' >> "conftest.nl" 5439 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5441 as_fn_arith $ac_count + 1 && ac_count=$as_val 5442 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5443 # Best one so far, save it but keep looking for a better one 5444 ac_cv_path_EGREP="$ac_path_EGREP" 5445 ac_path_EGREP_max=$ac_count 5446 fi 5447 # 10*(2^10) chars as input seems more than enough 5448 test $ac_count -gt 10 && break 5449 done 5450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5451esac 5452 5453 $ac_path_EGREP_found && break 3 5454 done 5455 done 5456 done 5457IFS=$as_save_IFS 5458 if test -z "$ac_cv_path_EGREP"; then 5459 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5460 fi 5461else 5462 ac_cv_path_EGREP=$EGREP 5463fi 5464 5465 fi 5466fi 5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5468printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5469 EGREP="$ac_cv_path_EGREP" 5470 5471 5472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5473printf %s "checking for fgrep... " >&6; } 5474if test ${ac_cv_path_FGREP+y} 5475then : 5476 printf %s "(cached) " >&6 5477else $as_nop 5478 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5479 then ac_cv_path_FGREP="$GREP -F" 5480 else 5481 if test -z "$FGREP"; then 5482 ac_path_FGREP_found=false 5483 # Loop through the user's path and test for each of PROGNAME-LIST 5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5486do 5487 IFS=$as_save_IFS 5488 case $as_dir in #((( 5489 '') as_dir=./ ;; 5490 */) ;; 5491 *) as_dir=$as_dir/ ;; 5492 esac 5493 for ac_prog in fgrep 5494 do 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5497 as_fn_executable_p "$ac_path_FGREP" || continue 5498# Check for GNU ac_path_FGREP and select it if it is found. 5499 # Check for GNU $ac_path_FGREP 5500case `"$ac_path_FGREP" --version 2>&1` in 5501*GNU*) 5502 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5503*) 5504 ac_count=0 5505 printf %s 0123456789 >"conftest.in" 5506 while : 5507 do 5508 cat "conftest.in" "conftest.in" >"conftest.tmp" 5509 mv "conftest.tmp" "conftest.in" 5510 cp "conftest.in" "conftest.nl" 5511 printf "%s\n" 'FGREP' >> "conftest.nl" 5512 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5514 as_fn_arith $ac_count + 1 && ac_count=$as_val 5515 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5516 # Best one so far, save it but keep looking for a better one 5517 ac_cv_path_FGREP="$ac_path_FGREP" 5518 ac_path_FGREP_max=$ac_count 5519 fi 5520 # 10*(2^10) chars as input seems more than enough 5521 test $ac_count -gt 10 && break 5522 done 5523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5524esac 5525 5526 $ac_path_FGREP_found && break 3 5527 done 5528 done 5529 done 5530IFS=$as_save_IFS 5531 if test -z "$ac_cv_path_FGREP"; then 5532 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5533 fi 5534else 5535 ac_cv_path_FGREP=$FGREP 5536fi 5537 5538 fi 5539fi 5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5541printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5542 FGREP="$ac_cv_path_FGREP" 5543 5544 5545test -z "$GREP" && GREP=grep 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565# Check whether --with-gnu-ld was given. 5566if test ${with_gnu_ld+y} 5567then : 5568 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5569else $as_nop 5570 with_gnu_ld=no 5571fi 5572 5573ac_prog=ld 5574if test yes = "$GCC"; then 5575 # Check if gcc -print-prog-name=ld gives a path. 5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5577printf %s "checking for ld used by $CC... " >&6; } 5578 case $host in 5579 *-*-mingw*) 5580 # gcc leaves a trailing carriage return, which upsets mingw 5581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5582 *) 5583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5584 esac 5585 case $ac_prog in 5586 # Accept absolute paths. 5587 [\\/]* | ?:[\\/]*) 5588 re_direlt='/[^/][^/]*/\.\./' 5589 # Canonicalize the pathname of ld 5590 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5591 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5592 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5593 done 5594 test -z "$LD" && LD=$ac_prog 5595 ;; 5596 "") 5597 # If it fails, then pretend we aren't using GCC. 5598 ac_prog=ld 5599 ;; 5600 *) 5601 # If it is relative, then search for the first ld in PATH. 5602 with_gnu_ld=unknown 5603 ;; 5604 esac 5605elif test yes = "$with_gnu_ld"; then 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5607printf %s "checking for GNU ld... " >&6; } 5608else 5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5610printf %s "checking for non-GNU ld... " >&6; } 5611fi 5612if test ${lt_cv_path_LD+y} 5613then : 5614 printf %s "(cached) " >&6 5615else $as_nop 5616 if test -z "$LD"; then 5617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5618 for ac_dir in $PATH; do 5619 IFS=$lt_save_ifs 5620 test -z "$ac_dir" && ac_dir=. 5621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5622 lt_cv_path_LD=$ac_dir/$ac_prog 5623 # Check to see if the program is GNU ld. I'd rather use --version, 5624 # but apparently some variants of GNU ld only accept -v. 5625 # Break only if it was the GNU/non-GNU ld that we prefer. 5626 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5627 *GNU* | *'with BFD'*) 5628 test no != "$with_gnu_ld" && break 5629 ;; 5630 *) 5631 test yes != "$with_gnu_ld" && break 5632 ;; 5633 esac 5634 fi 5635 done 5636 IFS=$lt_save_ifs 5637else 5638 lt_cv_path_LD=$LD # Let the user override the test with a path. 5639fi 5640fi 5641 5642LD=$lt_cv_path_LD 5643if test -n "$LD"; then 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5645printf "%s\n" "$LD" >&6; } 5646else 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5648printf "%s\n" "no" >&6; } 5649fi 5650test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5652printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5653if test ${lt_cv_prog_gnu_ld+y} 5654then : 5655 printf %s "(cached) " >&6 5656else $as_nop 5657 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5658case `$LD -v 2>&1 </dev/null` in 5659*GNU* | *'with BFD'*) 5660 lt_cv_prog_gnu_ld=yes 5661 ;; 5662*) 5663 lt_cv_prog_gnu_ld=no 5664 ;; 5665esac 5666fi 5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5668printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5669with_gnu_ld=$lt_cv_prog_gnu_ld 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5680printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5681if test ${lt_cv_path_NM+y} 5682then : 5683 printf %s "(cached) " >&6 5684else $as_nop 5685 if test -n "$NM"; then 5686 # Let the user override the test. 5687 lt_cv_path_NM=$NM 5688else 5689 lt_nm_to_check=${ac_tool_prefix}nm 5690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5691 lt_nm_to_check="$lt_nm_to_check nm" 5692 fi 5693 for lt_tmp_nm in $lt_nm_to_check; do 5694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5696 IFS=$lt_save_ifs 5697 test -z "$ac_dir" && ac_dir=. 5698 tmp_nm=$ac_dir/$lt_tmp_nm 5699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5700 # Check to see if the nm accepts a BSD-compat flag. 5701 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5702 # nm: unknown option "B" ignored 5703 # Tru64's nm complains that /dev/null is an invalid object file 5704 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5705 case $build_os in 5706 mingw*) lt_bad_file=conftest.nm/nofile ;; 5707 *) lt_bad_file=/dev/null ;; 5708 esac 5709 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5710 *$lt_bad_file* | *'Invalid file or object type'*) 5711 lt_cv_path_NM="$tmp_nm -B" 5712 break 2 5713 ;; 5714 *) 5715 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5716 */dev/null*) 5717 lt_cv_path_NM="$tmp_nm -p" 5718 break 2 5719 ;; 5720 *) 5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5722 continue # so that we can try to find one that supports BSD flags 5723 ;; 5724 esac 5725 ;; 5726 esac 5727 fi 5728 done 5729 IFS=$lt_save_ifs 5730 done 5731 : ${lt_cv_path_NM=no} 5732fi 5733fi 5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5735printf "%s\n" "$lt_cv_path_NM" >&6; } 5736if test no != "$lt_cv_path_NM"; then 5737 NM=$lt_cv_path_NM 5738else 5739 # Didn't find any BSD compatible name lister, look for dumpbin. 5740 if test -n "$DUMPBIN"; then : 5741 # Let the user override the test. 5742 else 5743 if test -n "$ac_tool_prefix"; then 5744 for ac_prog in dumpbin "link -dump" 5745 do 5746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5747set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5749printf %s "checking for $ac_word... " >&6; } 5750if test ${ac_cv_prog_DUMPBIN+y} 5751then : 5752 printf %s "(cached) " >&6 5753else $as_nop 5754 if test -n "$DUMPBIN"; then 5755 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5756else 5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 case $as_dir in #((( 5762 '') as_dir=./ ;; 5763 */) ;; 5764 *) as_dir=$as_dir/ ;; 5765 esac 5766 for ac_exec_ext in '' $ac_executable_extensions; do 5767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5768 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5770 break 2 5771 fi 5772done 5773 done 5774IFS=$as_save_IFS 5775 5776fi 5777fi 5778DUMPBIN=$ac_cv_prog_DUMPBIN 5779if test -n "$DUMPBIN"; then 5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5781printf "%s\n" "$DUMPBIN" >&6; } 5782else 5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5784printf "%s\n" "no" >&6; } 5785fi 5786 5787 5788 test -n "$DUMPBIN" && break 5789 done 5790fi 5791if test -z "$DUMPBIN"; then 5792 ac_ct_DUMPBIN=$DUMPBIN 5793 for ac_prog in dumpbin "link -dump" 5794do 5795 # Extract the first word of "$ac_prog", so it can be a program name with args. 5796set dummy $ac_prog; ac_word=$2 5797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798printf %s "checking for $ac_word... " >&6; } 5799if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5800then : 5801 printf %s "(cached) " >&6 5802else $as_nop 5803 if test -n "$ac_ct_DUMPBIN"; then 5804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5805else 5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5807for as_dir in $PATH 5808do 5809 IFS=$as_save_IFS 5810 case $as_dir in #((( 5811 '') as_dir=./ ;; 5812 */) ;; 5813 *) as_dir=$as_dir/ ;; 5814 esac 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5817 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821done 5822 done 5823IFS=$as_save_IFS 5824 5825fi 5826fi 5827ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5828if test -n "$ac_ct_DUMPBIN"; then 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5830printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5831else 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5833printf "%s\n" "no" >&6; } 5834fi 5835 5836 5837 test -n "$ac_ct_DUMPBIN" && break 5838done 5839 5840 if test "x$ac_ct_DUMPBIN" = x; then 5841 DUMPBIN=":" 5842 else 5843 case $cross_compiling:$ac_tool_warned in 5844yes:) 5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5846printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5847ac_tool_warned=yes ;; 5848esac 5849 DUMPBIN=$ac_ct_DUMPBIN 5850 fi 5851fi 5852 5853 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5854 *COFF*) 5855 DUMPBIN="$DUMPBIN -symbols -headers" 5856 ;; 5857 *) 5858 DUMPBIN=: 5859 ;; 5860 esac 5861 fi 5862 5863 if test : != "$DUMPBIN"; then 5864 NM=$DUMPBIN 5865 fi 5866fi 5867test -z "$NM" && NM=nm 5868 5869 5870 5871 5872 5873 5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5875printf %s "checking the name lister ($NM) interface... " >&6; } 5876if test ${lt_cv_nm_interface+y} 5877then : 5878 printf %s "(cached) " >&6 5879else $as_nop 5880 lt_cv_nm_interface="BSD nm" 5881 echo "int some_variable = 0;" > conftest.$ac_ext 5882 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5883 (eval "$ac_compile" 2>conftest.err) 5884 cat conftest.err >&5 5885 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5886 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5887 cat conftest.err >&5 5888 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5889 cat conftest.out >&5 5890 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5891 lt_cv_nm_interface="MS dumpbin" 5892 fi 5893 rm -f conftest* 5894fi 5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5896printf "%s\n" "$lt_cv_nm_interface" >&6; } 5897 5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5899printf %s "checking whether ln -s works... " >&6; } 5900LN_S=$as_ln_s 5901if test "$LN_S" = "ln -s"; then 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5903printf "%s\n" "yes" >&6; } 5904else 5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5906printf "%s\n" "no, using $LN_S" >&6; } 5907fi 5908 5909# find the maximum length of command line arguments 5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5911printf %s "checking the maximum length of command line arguments... " >&6; } 5912if test ${lt_cv_sys_max_cmd_len+y} 5913then : 5914 printf %s "(cached) " >&6 5915else $as_nop 5916 i=0 5917 teststring=ABCD 5918 5919 case $build_os in 5920 msdosdjgpp*) 5921 # On DJGPP, this test can blow up pretty badly due to problems in libc 5922 # (any single argument exceeding 2000 bytes causes a buffer overrun 5923 # during glob expansion). Even if it were fixed, the result of this 5924 # check would be larger than it should be. 5925 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5926 ;; 5927 5928 gnu*) 5929 # Under GNU Hurd, this test is not required because there is 5930 # no limit to the length of command line arguments. 5931 # Libtool will interpret -1 as no limit whatsoever 5932 lt_cv_sys_max_cmd_len=-1; 5933 ;; 5934 5935 cygwin* | mingw* | cegcc*) 5936 # On Win9x/ME, this test blows up -- it succeeds, but takes 5937 # about 5 minutes as the teststring grows exponentially. 5938 # Worse, since 9x/ME are not pre-emptively multitasking, 5939 # you end up with a "frozen" computer, even though with patience 5940 # the test eventually succeeds (with a max line length of 256k). 5941 # Instead, let's just punt: use the minimum linelength reported by 5942 # all of the supported platforms: 8192 (on NT/2K/XP). 5943 lt_cv_sys_max_cmd_len=8192; 5944 ;; 5945 5946 mint*) 5947 # On MiNT this can take a long time and run out of memory. 5948 lt_cv_sys_max_cmd_len=8192; 5949 ;; 5950 5951 amigaos*) 5952 # On AmigaOS with pdksh, this test takes hours, literally. 5953 # So we just punt and use a minimum line length of 8192. 5954 lt_cv_sys_max_cmd_len=8192; 5955 ;; 5956 5957 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5958 # This has been around since 386BSD, at least. Likely further. 5959 if test -x /sbin/sysctl; then 5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5961 elif test -x /usr/sbin/sysctl; then 5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5963 else 5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5965 fi 5966 # And add a safety zone 5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5969 ;; 5970 5971 interix*) 5972 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5973 lt_cv_sys_max_cmd_len=196608 5974 ;; 5975 5976 os2*) 5977 # The test takes a long time on OS/2. 5978 lt_cv_sys_max_cmd_len=8192 5979 ;; 5980 5981 osf*) 5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5984 # nice to cause kernel panics so lets avoid the loop below. 5985 # First set a reasonable default. 5986 lt_cv_sys_max_cmd_len=16384 5987 # 5988 if test -x /sbin/sysconfig; then 5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5990 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5991 esac 5992 fi 5993 ;; 5994 sco3.2v5*) 5995 lt_cv_sys_max_cmd_len=102400 5996 ;; 5997 sysv5* | sco5v6* | sysv4.2uw2*) 5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5999 if test -n "$kargmax"; then 6000 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6001 else 6002 lt_cv_sys_max_cmd_len=32768 6003 fi 6004 ;; 6005 *) 6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6007 if test -n "$lt_cv_sys_max_cmd_len" && \ 6008 test undefined != "$lt_cv_sys_max_cmd_len"; then 6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6011 else 6012 # Make teststring a little bigger before we do anything with it. 6013 # a 1K string should be a reasonable start. 6014 for i in 1 2 3 4 5 6 7 8; do 6015 teststring=$teststring$teststring 6016 done 6017 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6018 # If test is not a shell built-in, we'll probably end up computing a 6019 # maximum length that is only half of the actual maximum length, but 6020 # we can't tell. 6021 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6022 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6023 test 17 != "$i" # 1/2 MB should be enough 6024 do 6025 i=`expr $i + 1` 6026 teststring=$teststring$teststring 6027 done 6028 # Only check the string length outside the loop. 6029 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6030 teststring= 6031 # Add a significant safety factor because C++ compilers can tack on 6032 # massive amounts of additional arguments before passing them to the 6033 # linker. It appears as though 1/2 is a usable value. 6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6035 fi 6036 ;; 6037 esac 6038 6039fi 6040 6041if test -n "$lt_cv_sys_max_cmd_len"; then 6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6043printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6044else 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6046printf "%s\n" "none" >&6; } 6047fi 6048max_cmd_len=$lt_cv_sys_max_cmd_len 6049 6050 6051 6052 6053 6054 6055: ${CP="cp -f"} 6056: ${MV="mv -f"} 6057: ${RM="rm -f"} 6058 6059if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6060 lt_unset=unset 6061else 6062 lt_unset=false 6063fi 6064 6065 6066 6067 6068 6069# test EBCDIC or ASCII 6070case `echo X|tr X '\101'` in 6071 A) # ASCII based system 6072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6073 lt_SP2NL='tr \040 \012' 6074 lt_NL2SP='tr \015\012 \040\040' 6075 ;; 6076 *) # EBCDIC based system 6077 lt_SP2NL='tr \100 \n' 6078 lt_NL2SP='tr \r\n \100\100' 6079 ;; 6080esac 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6091printf %s "checking how to convert $build file names to $host format... " >&6; } 6092if test ${lt_cv_to_host_file_cmd+y} 6093then : 6094 printf %s "(cached) " >&6 6095else $as_nop 6096 case $host in 6097 *-*-mingw* ) 6098 case $build in 6099 *-*-mingw* ) # actually msys 6100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6101 ;; 6102 *-*-cygwin* ) 6103 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6104 ;; 6105 * ) # otherwise, assume *nix 6106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6107 ;; 6108 esac 6109 ;; 6110 *-*-cygwin* ) 6111 case $build in 6112 *-*-mingw* ) # actually msys 6113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6114 ;; 6115 *-*-cygwin* ) 6116 lt_cv_to_host_file_cmd=func_convert_file_noop 6117 ;; 6118 * ) # otherwise, assume *nix 6119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6120 ;; 6121 esac 6122 ;; 6123 * ) # unhandled hosts (and "normal" native builds) 6124 lt_cv_to_host_file_cmd=func_convert_file_noop 6125 ;; 6126esac 6127 6128fi 6129 6130to_host_file_cmd=$lt_cv_to_host_file_cmd 6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6132printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6133 6134 6135 6136 6137 6138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6139printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6140if test ${lt_cv_to_tool_file_cmd+y} 6141then : 6142 printf %s "(cached) " >&6 6143else $as_nop 6144 #assume ordinary cross tools, or native build. 6145lt_cv_to_tool_file_cmd=func_convert_file_noop 6146case $host in 6147 *-*-mingw* ) 6148 case $build in 6149 *-*-mingw* ) # actually msys 6150 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6151 ;; 6152 esac 6153 ;; 6154esac 6155 6156fi 6157 6158to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6160printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6161 6162 6163 6164 6165 6166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6167printf %s "checking for $LD option to reload object files... " >&6; } 6168if test ${lt_cv_ld_reload_flag+y} 6169then : 6170 printf %s "(cached) " >&6 6171else $as_nop 6172 lt_cv_ld_reload_flag='-r' 6173fi 6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6175printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6176reload_flag=$lt_cv_ld_reload_flag 6177case $reload_flag in 6178"" | " "*) ;; 6179*) reload_flag=" $reload_flag" ;; 6180esac 6181reload_cmds='$LD$reload_flag -o $output$reload_objs' 6182case $host_os in 6183 cygwin* | mingw* | pw32* | cegcc*) 6184 if test yes != "$GCC"; then 6185 reload_cmds=false 6186 fi 6187 ;; 6188 darwin*) 6189 if test yes = "$GCC"; then 6190 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6191 else 6192 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6193 fi 6194 ;; 6195esac 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205if test -n "$ac_tool_prefix"; then 6206 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6207set dummy ${ac_tool_prefix}file; ac_word=$2 6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6209printf %s "checking for $ac_word... " >&6; } 6210if test ${ac_cv_prog_FILECMD+y} 6211then : 6212 printf %s "(cached) " >&6 6213else $as_nop 6214 if test -n "$FILECMD"; then 6215 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6216else 6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6218for as_dir in $PATH 6219do 6220 IFS=$as_save_IFS 6221 case $as_dir in #((( 6222 '') as_dir=./ ;; 6223 */) ;; 6224 *) as_dir=$as_dir/ ;; 6225 esac 6226 for ac_exec_ext in '' $ac_executable_extensions; do 6227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6228 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6230 break 2 6231 fi 6232done 6233 done 6234IFS=$as_save_IFS 6235 6236fi 6237fi 6238FILECMD=$ac_cv_prog_FILECMD 6239if test -n "$FILECMD"; then 6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6241printf "%s\n" "$FILECMD" >&6; } 6242else 6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244printf "%s\n" "no" >&6; } 6245fi 6246 6247 6248fi 6249if test -z "$ac_cv_prog_FILECMD"; then 6250 ac_ct_FILECMD=$FILECMD 6251 # Extract the first word of "file", so it can be a program name with args. 6252set dummy file; ac_word=$2 6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6254printf %s "checking for $ac_word... " >&6; } 6255if test ${ac_cv_prog_ac_ct_FILECMD+y} 6256then : 6257 printf %s "(cached) " >&6 6258else $as_nop 6259 if test -n "$ac_ct_FILECMD"; then 6260 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6261else 6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6263for as_dir in $PATH 6264do 6265 IFS=$as_save_IFS 6266 case $as_dir in #((( 6267 '') as_dir=./ ;; 6268 */) ;; 6269 *) as_dir=$as_dir/ ;; 6270 esac 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6273 ac_cv_prog_ac_ct_FILECMD="file" 6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277done 6278 done 6279IFS=$as_save_IFS 6280 6281fi 6282fi 6283ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6284if test -n "$ac_ct_FILECMD"; then 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6286printf "%s\n" "$ac_ct_FILECMD" >&6; } 6287else 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6289printf "%s\n" "no" >&6; } 6290fi 6291 6292 if test "x$ac_ct_FILECMD" = x; then 6293 FILECMD=":" 6294 else 6295 case $cross_compiling:$ac_tool_warned in 6296yes:) 6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6299ac_tool_warned=yes ;; 6300esac 6301 FILECMD=$ac_ct_FILECMD 6302 fi 6303else 6304 FILECMD="$ac_cv_prog_FILECMD" 6305fi 6306 6307 6308 6309 6310 6311 6312 6313if test -n "$ac_tool_prefix"; then 6314 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6315set dummy ${ac_tool_prefix}objdump; ac_word=$2 6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6317printf %s "checking for $ac_word... " >&6; } 6318if test ${ac_cv_prog_OBJDUMP+y} 6319then : 6320 printf %s "(cached) " >&6 6321else $as_nop 6322 if test -n "$OBJDUMP"; then 6323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6324else 6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326for as_dir in $PATH 6327do 6328 IFS=$as_save_IFS 6329 case $as_dir in #((( 6330 '') as_dir=./ ;; 6331 */) ;; 6332 *) as_dir=$as_dir/ ;; 6333 esac 6334 for ac_exec_ext in '' $ac_executable_extensions; do 6335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6336 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6338 break 2 6339 fi 6340done 6341 done 6342IFS=$as_save_IFS 6343 6344fi 6345fi 6346OBJDUMP=$ac_cv_prog_OBJDUMP 6347if test -n "$OBJDUMP"; then 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6349printf "%s\n" "$OBJDUMP" >&6; } 6350else 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6352printf "%s\n" "no" >&6; } 6353fi 6354 6355 6356fi 6357if test -z "$ac_cv_prog_OBJDUMP"; then 6358 ac_ct_OBJDUMP=$OBJDUMP 6359 # Extract the first word of "objdump", so it can be a program name with args. 6360set dummy objdump; ac_word=$2 6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362printf %s "checking for $ac_word... " >&6; } 6363if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6364then : 6365 printf %s "(cached) " >&6 6366else $as_nop 6367 if test -n "$ac_ct_OBJDUMP"; then 6368 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 case $as_dir in #((( 6375 '') as_dir=./ ;; 6376 */) ;; 6377 *) as_dir=$as_dir/ ;; 6378 esac 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6381 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6392if test -n "$ac_ct_OBJDUMP"; then 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6394printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6395else 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397printf "%s\n" "no" >&6; } 6398fi 6399 6400 if test "x$ac_ct_OBJDUMP" = x; then 6401 OBJDUMP="false" 6402 else 6403 case $cross_compiling:$ac_tool_warned in 6404yes:) 6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6406printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6407ac_tool_warned=yes ;; 6408esac 6409 OBJDUMP=$ac_ct_OBJDUMP 6410 fi 6411else 6412 OBJDUMP="$ac_cv_prog_OBJDUMP" 6413fi 6414 6415test -z "$OBJDUMP" && OBJDUMP=objdump 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6426printf %s "checking how to recognize dependent libraries... " >&6; } 6427if test ${lt_cv_deplibs_check_method+y} 6428then : 6429 printf %s "(cached) " >&6 6430else $as_nop 6431 lt_cv_file_magic_cmd='$MAGIC_CMD' 6432lt_cv_file_magic_test_file= 6433lt_cv_deplibs_check_method='unknown' 6434# Need to set the preceding variable on all platforms that support 6435# interlibrary dependencies. 6436# 'none' -- dependencies not supported. 6437# 'unknown' -- same as none, but documents that we really don't know. 6438# 'pass_all' -- all dependencies passed with no checks. 6439# 'test_compile' -- check by making test program. 6440# 'file_magic [[regex]]' -- check by looking for files in library path 6441# that responds to the $file_magic_cmd with a given extended regex. 6442# If you have 'file' or equivalent on your system and you're not sure 6443# whether 'pass_all' will *always* work, you probably want this one. 6444 6445case $host_os in 6446aix[4-9]*) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450beos*) 6451 lt_cv_deplibs_check_method=pass_all 6452 ;; 6453 6454bsdi[45]*) 6455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6456 lt_cv_file_magic_cmd='$FILECMD -L' 6457 lt_cv_file_magic_test_file=/shlib/libc.so 6458 ;; 6459 6460cygwin*) 6461 # func_win32_libid is a shell function defined in ltmain.sh 6462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6463 lt_cv_file_magic_cmd='func_win32_libid' 6464 ;; 6465 6466mingw* | pw32*) 6467 # Base MSYS/MinGW do not provide the 'file' command needed by 6468 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6469 # unless we find 'file', for example because we are cross-compiling. 6470 if ( file / ) >/dev/null 2>&1; then 6471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6472 lt_cv_file_magic_cmd='func_win32_libid' 6473 else 6474 # Keep this pattern in sync with the one in func_win32_libid. 6475 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6476 lt_cv_file_magic_cmd='$OBJDUMP -f' 6477 fi 6478 ;; 6479 6480cegcc*) 6481 # use the weaker test based on 'objdump'. See mingw*. 6482 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6483 lt_cv_file_magic_cmd='$OBJDUMP -f' 6484 ;; 6485 6486darwin* | rhapsody*) 6487 lt_cv_deplibs_check_method=pass_all 6488 ;; 6489 6490freebsd* | dragonfly* | midnightbsd*) 6491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6492 case $host_cpu in 6493 i*86 ) 6494 # Not sure whether the presence of OpenBSD here was a mistake. 6495 # Let's accept both of them until this is cleared up. 6496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6497 lt_cv_file_magic_cmd=$FILECMD 6498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6499 ;; 6500 esac 6501 else 6502 lt_cv_deplibs_check_method=pass_all 6503 fi 6504 ;; 6505 6506haiku*) 6507 lt_cv_deplibs_check_method=pass_all 6508 ;; 6509 6510hpux10.20* | hpux11*) 6511 lt_cv_file_magic_cmd=$FILECMD 6512 case $host_cpu in 6513 ia64*) 6514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6516 ;; 6517 hppa*64*) 6518 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]' 6519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6520 ;; 6521 *) 6522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6523 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6524 ;; 6525 esac 6526 ;; 6527 6528interix[3-9]*) 6529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6531 ;; 6532 6533irix5* | irix6* | nonstopux*) 6534 case $LD in 6535 *-32|*"-32 ") libmagic=32-bit;; 6536 *-n32|*"-n32 ") libmagic=N32;; 6537 *-64|*"-64 ") libmagic=64-bit;; 6538 *) libmagic=never-match;; 6539 esac 6540 lt_cv_deplibs_check_method=pass_all 6541 ;; 6542 6543# This must be glibc/ELF. 6544linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6545 lt_cv_deplibs_check_method=pass_all 6546 ;; 6547 6548netbsd*) 6549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6551 else 6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6553 fi 6554 ;; 6555 6556newos6*) 6557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6558 lt_cv_file_magic_cmd=$FILECMD 6559 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6560 ;; 6561 6562*nto* | *qnx*) 6563 lt_cv_deplibs_check_method=pass_all 6564 ;; 6565 6566openbsd* | bitrig*) 6567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6569 else 6570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6571 fi 6572 ;; 6573 6574osf3* | osf4* | osf5*) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578rdos*) 6579 lt_cv_deplibs_check_method=pass_all 6580 ;; 6581 6582solaris*) 6583 lt_cv_deplibs_check_method=pass_all 6584 ;; 6585 6586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6587 lt_cv_deplibs_check_method=pass_all 6588 ;; 6589 6590sysv4 | sysv4.3*) 6591 case $host_vendor in 6592 motorola) 6593 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]' 6594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6595 ;; 6596 ncr) 6597 lt_cv_deplibs_check_method=pass_all 6598 ;; 6599 sequent) 6600 lt_cv_file_magic_cmd='/bin/file' 6601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6602 ;; 6603 sni) 6604 lt_cv_file_magic_cmd='/bin/file' 6605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6606 lt_cv_file_magic_test_file=/lib/libc.so 6607 ;; 6608 siemens) 6609 lt_cv_deplibs_check_method=pass_all 6610 ;; 6611 pc) 6612 lt_cv_deplibs_check_method=pass_all 6613 ;; 6614 esac 6615 ;; 6616 6617tpf*) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620os2*) 6621 lt_cv_deplibs_check_method=pass_all 6622 ;; 6623esac 6624 6625fi 6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6627printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6628 6629file_magic_glob= 6630want_nocaseglob=no 6631if test "$build" = "$host"; then 6632 case $host_os in 6633 mingw* | pw32*) 6634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6635 want_nocaseglob=yes 6636 else 6637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6638 fi 6639 ;; 6640 esac 6641fi 6642 6643file_magic_cmd=$lt_cv_file_magic_cmd 6644deplibs_check_method=$lt_cv_deplibs_check_method 6645test -z "$deplibs_check_method" && deplibs_check_method=unknown 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668if test -n "$ac_tool_prefix"; then 6669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6670set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6672printf %s "checking for $ac_word... " >&6; } 6673if test ${ac_cv_prog_DLLTOOL+y} 6674then : 6675 printf %s "(cached) " >&6 6676else $as_nop 6677 if test -n "$DLLTOOL"; then 6678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 case $as_dir in #((( 6685 '') as_dir=./ ;; 6686 */) ;; 6687 *) as_dir=$as_dir/ ;; 6688 esac 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6693 break 2 6694 fi 6695done 6696 done 6697IFS=$as_save_IFS 6698 6699fi 6700fi 6701DLLTOOL=$ac_cv_prog_DLLTOOL 6702if test -n "$DLLTOOL"; then 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6704printf "%s\n" "$DLLTOOL" >&6; } 6705else 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6707printf "%s\n" "no" >&6; } 6708fi 6709 6710 6711fi 6712if test -z "$ac_cv_prog_DLLTOOL"; then 6713 ac_ct_DLLTOOL=$DLLTOOL 6714 # Extract the first word of "dlltool", so it can be a program name with args. 6715set dummy dlltool; ac_word=$2 6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6717printf %s "checking for $ac_word... " >&6; } 6718if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6719then : 6720 printf %s "(cached) " >&6 6721else $as_nop 6722 if test -n "$ac_ct_DLLTOOL"; then 6723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6724else 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6726for as_dir in $PATH 6727do 6728 IFS=$as_save_IFS 6729 case $as_dir in #((( 6730 '') as_dir=./ ;; 6731 */) ;; 6732 *) as_dir=$as_dir/ ;; 6733 esac 6734 for ac_exec_ext in '' $ac_executable_extensions; do 6735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6736 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6738 break 2 6739 fi 6740done 6741 done 6742IFS=$as_save_IFS 6743 6744fi 6745fi 6746ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6747if test -n "$ac_ct_DLLTOOL"; then 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6749printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6750else 6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6752printf "%s\n" "no" >&6; } 6753fi 6754 6755 if test "x$ac_ct_DLLTOOL" = x; then 6756 DLLTOOL="false" 6757 else 6758 case $cross_compiling:$ac_tool_warned in 6759yes:) 6760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6761printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6762ac_tool_warned=yes ;; 6763esac 6764 DLLTOOL=$ac_ct_DLLTOOL 6765 fi 6766else 6767 DLLTOOL="$ac_cv_prog_DLLTOOL" 6768fi 6769 6770test -z "$DLLTOOL" && DLLTOOL=dlltool 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6782printf %s "checking how to associate runtime and link libraries... " >&6; } 6783if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6784then : 6785 printf %s "(cached) " >&6 6786else $as_nop 6787 lt_cv_sharedlib_from_linklib_cmd='unknown' 6788 6789case $host_os in 6790cygwin* | mingw* | pw32* | cegcc*) 6791 # two different shell functions defined in ltmain.sh; 6792 # decide which one to use based on capabilities of $DLLTOOL 6793 case `$DLLTOOL --help 2>&1` in 6794 *--identify-strict*) 6795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6796 ;; 6797 *) 6798 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6799 ;; 6800 esac 6801 ;; 6802*) 6803 # fallback: assume linklib IS sharedlib 6804 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6805 ;; 6806esac 6807 6808fi 6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6810printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6811sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6812test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6813 6814 6815 6816 6817 6818 6819 6820if test -n "$ac_tool_prefix"; then 6821 for ac_prog in ar 6822 do 6823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6824set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6826printf %s "checking for $ac_word... " >&6; } 6827if test ${ac_cv_prog_AR+y} 6828then : 6829 printf %s "(cached) " >&6 6830else $as_nop 6831 if test -n "$AR"; then 6832 ac_cv_prog_AR="$AR" # Let the user override the test. 6833else 6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6835for as_dir in $PATH 6836do 6837 IFS=$as_save_IFS 6838 case $as_dir in #((( 6839 '') as_dir=./ ;; 6840 */) ;; 6841 *) as_dir=$as_dir/ ;; 6842 esac 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6845 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6847 break 2 6848 fi 6849done 6850 done 6851IFS=$as_save_IFS 6852 6853fi 6854fi 6855AR=$ac_cv_prog_AR 6856if test -n "$AR"; then 6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6858printf "%s\n" "$AR" >&6; } 6859else 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6861printf "%s\n" "no" >&6; } 6862fi 6863 6864 6865 test -n "$AR" && break 6866 done 6867fi 6868if test -z "$AR"; then 6869 ac_ct_AR=$AR 6870 for ac_prog in ar 6871do 6872 # Extract the first word of "$ac_prog", so it can be a program name with args. 6873set dummy $ac_prog; ac_word=$2 6874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6875printf %s "checking for $ac_word... " >&6; } 6876if test ${ac_cv_prog_ac_ct_AR+y} 6877then : 6878 printf %s "(cached) " >&6 6879else $as_nop 6880 if test -n "$ac_ct_AR"; then 6881 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 case $as_dir in #((( 6888 '') as_dir=./ ;; 6889 */) ;; 6890 *) as_dir=$as_dir/ ;; 6891 esac 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6894 ac_cv_prog_ac_ct_AR="$ac_prog" 6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898done 6899 done 6900IFS=$as_save_IFS 6901 6902fi 6903fi 6904ac_ct_AR=$ac_cv_prog_ac_ct_AR 6905if test -n "$ac_ct_AR"; then 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6907printf "%s\n" "$ac_ct_AR" >&6; } 6908else 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6910printf "%s\n" "no" >&6; } 6911fi 6912 6913 6914 test -n "$ac_ct_AR" && break 6915done 6916 6917 if test "x$ac_ct_AR" = x; then 6918 AR="false" 6919 else 6920 case $cross_compiling:$ac_tool_warned in 6921yes:) 6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6924ac_tool_warned=yes ;; 6925esac 6926 AR=$ac_ct_AR 6927 fi 6928fi 6929 6930: ${AR=ar} 6931 6932 6933 6934 6935 6936 6937# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6938# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6939# higher priority because thats what people were doing historically (setting 6940# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6941# variable obsoleted/removed. 6942 6943test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6944lt_ar_flags=$AR_FLAGS 6945 6946 6947 6948 6949 6950 6951# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6952# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6953 6954 6955 6956 6957 6958 6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6960printf %s "checking for archiver @FILE support... " >&6; } 6961if test ${lt_cv_ar_at_file+y} 6962then : 6963 printf %s "(cached) " >&6 6964else $as_nop 6965 lt_cv_ar_at_file=no 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968 6969int 6970main (void) 6971{ 6972 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO" 6978then : 6979 echo conftest.$ac_objext > conftest.lst 6980 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6982 (eval $lt_ar_try) 2>&5 6983 ac_status=$? 6984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6985 test $ac_status = 0; } 6986 if test 0 -eq "$ac_status"; then 6987 # Ensure the archiver fails upon bogus file names. 6988 rm -f conftest.$ac_objext libconftest.a 6989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6990 (eval $lt_ar_try) 2>&5 6991 ac_status=$? 6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6993 test $ac_status = 0; } 6994 if test 0 -ne "$ac_status"; then 6995 lt_cv_ar_at_file=@ 6996 fi 6997 fi 6998 rm -f conftest.* libconftest.a 6999 7000fi 7001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7002 7003fi 7004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7005printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7006 7007if test no = "$lt_cv_ar_at_file"; then 7008 archiver_list_spec= 7009else 7010 archiver_list_spec=$lt_cv_ar_at_file 7011fi 7012 7013 7014 7015 7016 7017 7018 7019if test -n "$ac_tool_prefix"; then 7020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7021set dummy ${ac_tool_prefix}strip; ac_word=$2 7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023printf %s "checking for $ac_word... " >&6; } 7024if test ${ac_cv_prog_STRIP+y} 7025then : 7026 printf %s "(cached) " >&6 7027else $as_nop 7028 if test -n "$STRIP"; then 7029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7030else 7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032for as_dir in $PATH 7033do 7034 IFS=$as_save_IFS 7035 case $as_dir in #((( 7036 '') as_dir=./ ;; 7037 */) ;; 7038 *) as_dir=$as_dir/ ;; 7039 esac 7040 for ac_exec_ext in '' $ac_executable_extensions; do 7041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7042 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7044 break 2 7045 fi 7046done 7047 done 7048IFS=$as_save_IFS 7049 7050fi 7051fi 7052STRIP=$ac_cv_prog_STRIP 7053if test -n "$STRIP"; then 7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7055printf "%s\n" "$STRIP" >&6; } 7056else 7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058printf "%s\n" "no" >&6; } 7059fi 7060 7061 7062fi 7063if test -z "$ac_cv_prog_STRIP"; then 7064 ac_ct_STRIP=$STRIP 7065 # Extract the first word of "strip", so it can be a program name with args. 7066set dummy strip; ac_word=$2 7067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7068printf %s "checking for $ac_word... " >&6; } 7069if test ${ac_cv_prog_ac_ct_STRIP+y} 7070then : 7071 printf %s "(cached) " >&6 7072else $as_nop 7073 if test -n "$ac_ct_STRIP"; then 7074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 case $as_dir in #((( 7081 '') as_dir=./ ;; 7082 */) ;; 7083 *) as_dir=$as_dir/ ;; 7084 esac 7085 for ac_exec_ext in '' $ac_executable_extensions; do 7086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7087 ac_cv_prog_ac_ct_STRIP="strip" 7088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7089 break 2 7090 fi 7091done 7092 done 7093IFS=$as_save_IFS 7094 7095fi 7096fi 7097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7098if test -n "$ac_ct_STRIP"; then 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7100printf "%s\n" "$ac_ct_STRIP" >&6; } 7101else 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7103printf "%s\n" "no" >&6; } 7104fi 7105 7106 if test "x$ac_ct_STRIP" = x; then 7107 STRIP=":" 7108 else 7109 case $cross_compiling:$ac_tool_warned in 7110yes:) 7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7113ac_tool_warned=yes ;; 7114esac 7115 STRIP=$ac_ct_STRIP 7116 fi 7117else 7118 STRIP="$ac_cv_prog_STRIP" 7119fi 7120 7121test -z "$STRIP" && STRIP=: 7122 7123 7124 7125 7126 7127 7128if test -n "$ac_tool_prefix"; then 7129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7130set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132printf %s "checking for $ac_word... " >&6; } 7133if test ${ac_cv_prog_RANLIB+y} 7134then : 7135 printf %s "(cached) " >&6 7136else $as_nop 7137 if test -n "$RANLIB"; then 7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7139else 7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 7143 IFS=$as_save_IFS 7144 case $as_dir in #((( 7145 '') as_dir=./ ;; 7146 */) ;; 7147 *) as_dir=$as_dir/ ;; 7148 esac 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159fi 7160fi 7161RANLIB=$ac_cv_prog_RANLIB 7162if test -n "$RANLIB"; then 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7164printf "%s\n" "$RANLIB" >&6; } 7165else 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167printf "%s\n" "no" >&6; } 7168fi 7169 7170 7171fi 7172if test -z "$ac_cv_prog_RANLIB"; then 7173 ac_ct_RANLIB=$RANLIB 7174 # Extract the first word of "ranlib", so it can be a program name with args. 7175set dummy ranlib; ac_word=$2 7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7177printf %s "checking for $ac_word... " >&6; } 7178if test ${ac_cv_prog_ac_ct_RANLIB+y} 7179then : 7180 printf %s "(cached) " >&6 7181else $as_nop 7182 if test -n "$ac_ct_RANLIB"; then 7183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7184else 7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7186for as_dir in $PATH 7187do 7188 IFS=$as_save_IFS 7189 case $as_dir in #((( 7190 '') as_dir=./ ;; 7191 */) ;; 7192 *) as_dir=$as_dir/ ;; 7193 esac 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7196 ac_cv_prog_ac_ct_RANLIB="ranlib" 7197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200done 7201 done 7202IFS=$as_save_IFS 7203 7204fi 7205fi 7206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7207if test -n "$ac_ct_RANLIB"; then 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7209printf "%s\n" "$ac_ct_RANLIB" >&6; } 7210else 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212printf "%s\n" "no" >&6; } 7213fi 7214 7215 if test "x$ac_ct_RANLIB" = x; then 7216 RANLIB=":" 7217 else 7218 case $cross_compiling:$ac_tool_warned in 7219yes:) 7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7221printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7222ac_tool_warned=yes ;; 7223esac 7224 RANLIB=$ac_ct_RANLIB 7225 fi 7226else 7227 RANLIB="$ac_cv_prog_RANLIB" 7228fi 7229 7230test -z "$RANLIB" && RANLIB=: 7231 7232 7233 7234 7235 7236 7237# Determine commands to create old-style static archives. 7238old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7239old_postinstall_cmds='chmod 644 $oldlib' 7240old_postuninstall_cmds= 7241 7242if test -n "$RANLIB"; then 7243 case $host_os in 7244 bitrig* | openbsd*) 7245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7246 ;; 7247 *) 7248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7249 ;; 7250 esac 7251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7252fi 7253 7254case $host_os in 7255 darwin*) 7256 lock_old_archive_extraction=yes ;; 7257 *) 7258 lock_old_archive_extraction=no ;; 7259esac 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299# If no C compiler was specified, use CC. 7300LTCC=${LTCC-"$CC"} 7301 7302# If no C compiler flags were specified, use CFLAGS. 7303LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7304 7305# Allow CC to be a program name with arguments. 7306compiler=$CC 7307 7308 7309# Check for command to grab the raw symbol name followed by C symbol from nm. 7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7311printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7312if test ${lt_cv_sys_global_symbol_pipe+y} 7313then : 7314 printf %s "(cached) " >&6 7315else $as_nop 7316 7317# These are sane defaults that work on at least a few old systems. 7318# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7319 7320# Character class describing NM global symbol codes. 7321symcode='[BCDEGRST]' 7322 7323# Regexp to match symbols that can be accessed directly from C. 7324sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7325 7326# Define system-specific variables. 7327case $host_os in 7328aix*) 7329 symcode='[BCDT]' 7330 ;; 7331cygwin* | mingw* | pw32* | cegcc*) 7332 symcode='[ABCDGISTW]' 7333 ;; 7334hpux*) 7335 if test ia64 = "$host_cpu"; then 7336 symcode='[ABCDEGRST]' 7337 fi 7338 ;; 7339irix* | nonstopux*) 7340 symcode='[BCDEGRST]' 7341 ;; 7342osf*) 7343 symcode='[BCDEGQRST]' 7344 ;; 7345solaris*) 7346 symcode='[BDRT]' 7347 ;; 7348sco3.2v5*) 7349 symcode='[DT]' 7350 ;; 7351sysv4.2uw2*) 7352 symcode='[DT]' 7353 ;; 7354sysv5* | sco5v6* | unixware* | OpenUNIX*) 7355 symcode='[ABDT]' 7356 ;; 7357sysv4) 7358 symcode='[DFNSTU]' 7359 ;; 7360esac 7361 7362# If we're using GNU nm, then use its standard symbol codes. 7363case `$NM -V 2>&1` in 7364*GNU* | *'with BFD'*) 7365 symcode='[ABCDGIRSTW]' ;; 7366esac 7367 7368if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7369 # Gets list of data symbols to import. 7370 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7371 # Adjust the below global symbol transforms to fixup imported variables. 7372 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7373 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7374 lt_c_name_lib_hook="\ 7375 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7376 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7377else 7378 # Disable hooks by default. 7379 lt_cv_sys_global_symbol_to_import= 7380 lt_cdecl_hook= 7381 lt_c_name_hook= 7382 lt_c_name_lib_hook= 7383fi 7384 7385# Transform an extracted symbol line into a proper C declaration. 7386# Some systems (esp. on ia64) link data and code symbols differently, 7387# so use this general approach. 7388lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7389$lt_cdecl_hook\ 7390" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7391" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7392 7393# Transform an extracted symbol line into symbol name and symbol address 7394lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7395$lt_c_name_hook\ 7396" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7397" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7398 7399# Transform an extracted symbol line into symbol name with lib prefix and 7400# symbol address. 7401lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7402$lt_c_name_lib_hook\ 7403" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7404" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7405" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7406 7407# Handle CRLF in mingw tool chain 7408opt_cr= 7409case $build_os in 7410mingw*) 7411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7412 ;; 7413esac 7414 7415# Try without a prefix underscore, then with it. 7416for ac_symprfx in "" "_"; do 7417 7418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7419 symxfrm="\\1 $ac_symprfx\\2 \\2" 7420 7421 # Write the raw and C identifiers. 7422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7423 # Fake it for dumpbin and say T for any non-static function, 7424 # D for any global variable and I for any imported variable. 7425 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7426 # which start with @ or ?. 7427 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7428" {last_section=section; section=\$ 3};"\ 7429" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7430" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7431" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7432" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7433" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7434" \$ 0!~/External *\|/{next};"\ 7435" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7436" {if(hide[section]) next};"\ 7437" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7438" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7439" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7440" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7441" ' prfx=^$ac_symprfx" 7442 else 7443 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7444 fi 7445 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7446 7447 # Check to see that the pipe works correctly. 7448 pipe_works=no 7449 7450 rm -f conftest* 7451 cat > conftest.$ac_ext <<_LT_EOF 7452#ifdef __cplusplus 7453extern "C" { 7454#endif 7455char nm_test_var; 7456void nm_test_func(void); 7457void nm_test_func(void){} 7458#ifdef __cplusplus 7459} 7460#endif 7461int main(){nm_test_var='a';nm_test_func();return(0);} 7462_LT_EOF 7463 7464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7465 (eval $ac_compile) 2>&5 7466 ac_status=$? 7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7468 test $ac_status = 0; }; then 7469 # Now try to grab the symbols. 7470 nlist=conftest.nm 7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7472 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7473 ac_status=$? 7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7475 test $ac_status = 0; } && test -s "$nlist"; then 7476 # Try sorting and uniquifying the output. 7477 if sort "$nlist" | uniq > "$nlist"T; then 7478 mv -f "$nlist"T "$nlist" 7479 else 7480 rm -f "$nlist"T 7481 fi 7482 7483 # Make sure that we snagged all the symbols we need. 7484 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7485 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7486 cat <<_LT_EOF > conftest.$ac_ext 7487/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7488#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7489/* DATA imports from DLLs on WIN32 can't be const, because runtime 7490 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7491# define LT_DLSYM_CONST 7492#elif defined __osf__ 7493/* This system does not cope well with relocations in const data. */ 7494# define LT_DLSYM_CONST 7495#else 7496# define LT_DLSYM_CONST const 7497#endif 7498 7499#ifdef __cplusplus 7500extern "C" { 7501#endif 7502 7503_LT_EOF 7504 # Now generate the symbol file. 7505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7506 7507 cat <<_LT_EOF >> conftest.$ac_ext 7508 7509/* The mapping between symbol names and symbols. */ 7510LT_DLSYM_CONST struct { 7511 const char *name; 7512 void *address; 7513} 7514lt__PROGRAM__LTX_preloaded_symbols[] = 7515{ 7516 { "@PROGRAM@", (void *) 0 }, 7517_LT_EOF 7518 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7519 cat <<\_LT_EOF >> conftest.$ac_ext 7520 {0, (void *) 0} 7521}; 7522 7523/* This works around a problem in FreeBSD linker */ 7524#ifdef FREEBSD_WORKAROUND 7525static const void *lt_preloaded_setup() { 7526 return lt__PROGRAM__LTX_preloaded_symbols; 7527} 7528#endif 7529 7530#ifdef __cplusplus 7531} 7532#endif 7533_LT_EOF 7534 # Now try linking the two files. 7535 mv conftest.$ac_objext conftstm.$ac_objext 7536 lt_globsym_save_LIBS=$LIBS 7537 lt_globsym_save_CFLAGS=$CFLAGS 7538 LIBS=conftstm.$ac_objext 7539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7541 (eval $ac_link) 2>&5 7542 ac_status=$? 7543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7544 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7545 pipe_works=yes 7546 fi 7547 LIBS=$lt_globsym_save_LIBS 7548 CFLAGS=$lt_globsym_save_CFLAGS 7549 else 7550 echo "cannot find nm_test_func in $nlist" >&5 7551 fi 7552 else 7553 echo "cannot find nm_test_var in $nlist" >&5 7554 fi 7555 else 7556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7557 fi 7558 else 7559 echo "$progname: failed program was:" >&5 7560 cat conftest.$ac_ext >&5 7561 fi 7562 rm -rf conftest* conftst* 7563 7564 # Do not use the global_symbol_pipe unless it works. 7565 if test yes = "$pipe_works"; then 7566 break 7567 else 7568 lt_cv_sys_global_symbol_pipe= 7569 fi 7570done 7571 7572fi 7573 7574if test -z "$lt_cv_sys_global_symbol_pipe"; then 7575 lt_cv_sys_global_symbol_to_cdecl= 7576fi 7577if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7579printf "%s\n" "failed" >&6; } 7580else 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7582printf "%s\n" "ok" >&6; } 7583fi 7584 7585# Response file support. 7586if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7587 nm_file_list_spec='@' 7588elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7589 nm_file_list_spec='@' 7590fi 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7629printf %s "checking for sysroot... " >&6; } 7630 7631# Check whether --with-sysroot was given. 7632if test ${with_sysroot+y} 7633then : 7634 withval=$with_sysroot; 7635else $as_nop 7636 with_sysroot=no 7637fi 7638 7639 7640lt_sysroot= 7641case $with_sysroot in #( 7642 yes) 7643 if test yes = "$GCC"; then 7644 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7645 fi 7646 ;; #( 7647 /*) 7648 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7649 ;; #( 7650 no|'') 7651 ;; #( 7652 *) 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7654printf "%s\n" "$with_sysroot" >&6; } 7655 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7656 ;; 7657esac 7658 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7660printf "%s\n" "${lt_sysroot:-no}" >&6; } 7661 7662 7663 7664 7665 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7667printf %s "checking for a working dd... " >&6; } 7668if test ${ac_cv_path_lt_DD+y} 7669then : 7670 printf %s "(cached) " >&6 7671else $as_nop 7672 printf 0123456789abcdef0123456789abcdef >conftest.i 7673cat conftest.i conftest.i >conftest2.i 7674: ${lt_DD:=$DD} 7675if test -z "$lt_DD"; then 7676 ac_path_lt_DD_found=false 7677 # Loop through the user's path and test for each of PROGNAME-LIST 7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7679for as_dir in $PATH 7680do 7681 IFS=$as_save_IFS 7682 case $as_dir in #((( 7683 '') as_dir=./ ;; 7684 */) ;; 7685 *) as_dir=$as_dir/ ;; 7686 esac 7687 for ac_prog in dd 7688 do 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7691 as_fn_executable_p "$ac_path_lt_DD" || continue 7692if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7693 cmp -s conftest.i conftest.out \ 7694 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7695fi 7696 $ac_path_lt_DD_found && break 3 7697 done 7698 done 7699 done 7700IFS=$as_save_IFS 7701 if test -z "$ac_cv_path_lt_DD"; then 7702 : 7703 fi 7704else 7705 ac_cv_path_lt_DD=$lt_DD 7706fi 7707 7708rm -f conftest.i conftest2.i conftest.out 7709fi 7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7711printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7712 7713 7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7715printf %s "checking how to truncate binary pipes... " >&6; } 7716if test ${lt_cv_truncate_bin+y} 7717then : 7718 printf %s "(cached) " >&6 7719else $as_nop 7720 printf 0123456789abcdef0123456789abcdef >conftest.i 7721cat conftest.i conftest.i >conftest2.i 7722lt_cv_truncate_bin= 7723if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7724 cmp -s conftest.i conftest.out \ 7725 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7726fi 7727rm -f conftest.i conftest2.i conftest.out 7728test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7729fi 7730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7731printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7732 7733 7734 7735 7736 7737 7738 7739# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7740func_cc_basename () 7741{ 7742 for cc_temp in $*""; do 7743 case $cc_temp in 7744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7746 \-*) ;; 7747 *) break;; 7748 esac 7749 done 7750 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7751} 7752 7753# Check whether --enable-libtool-lock was given. 7754if test ${enable_libtool_lock+y} 7755then : 7756 enableval=$enable_libtool_lock; 7757fi 7758 7759test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7760 7761# Some flags need to be propagated to the compiler or linker for good 7762# libtool support. 7763case $host in 7764ia64-*-hpux*) 7765 # Find out what ABI is being produced by ac_compile, and set mode 7766 # options accordingly. 7767 echo 'int i;' > conftest.$ac_ext 7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7769 (eval $ac_compile) 2>&5 7770 ac_status=$? 7771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7772 test $ac_status = 0; }; then 7773 case `$FILECMD conftest.$ac_objext` in 7774 *ELF-32*) 7775 HPUX_IA64_MODE=32 7776 ;; 7777 *ELF-64*) 7778 HPUX_IA64_MODE=64 7779 ;; 7780 esac 7781 fi 7782 rm -rf conftest* 7783 ;; 7784*-*-irix6*) 7785 # Find out what ABI is being produced by ac_compile, and set linker 7786 # options accordingly. 7787 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7789 (eval $ac_compile) 2>&5 7790 ac_status=$? 7791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7792 test $ac_status = 0; }; then 7793 if test yes = "$lt_cv_prog_gnu_ld"; then 7794 case `$FILECMD conftest.$ac_objext` in 7795 *32-bit*) 7796 LD="${LD-ld} -melf32bsmip" 7797 ;; 7798 *N32*) 7799 LD="${LD-ld} -melf32bmipn32" 7800 ;; 7801 *64-bit*) 7802 LD="${LD-ld} -melf64bmip" 7803 ;; 7804 esac 7805 else 7806 case `$FILECMD conftest.$ac_objext` in 7807 *32-bit*) 7808 LD="${LD-ld} -32" 7809 ;; 7810 *N32*) 7811 LD="${LD-ld} -n32" 7812 ;; 7813 *64-bit*) 7814 LD="${LD-ld} -64" 7815 ;; 7816 esac 7817 fi 7818 fi 7819 rm -rf conftest* 7820 ;; 7821 7822mips64*-*linux*) 7823 # Find out what ABI is being produced by ac_compile, and set linker 7824 # options accordingly. 7825 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7827 (eval $ac_compile) 2>&5 7828 ac_status=$? 7829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7830 test $ac_status = 0; }; then 7831 emul=elf 7832 case `$FILECMD conftest.$ac_objext` in 7833 *32-bit*) 7834 emul="${emul}32" 7835 ;; 7836 *64-bit*) 7837 emul="${emul}64" 7838 ;; 7839 esac 7840 case `$FILECMD conftest.$ac_objext` in 7841 *MSB*) 7842 emul="${emul}btsmip" 7843 ;; 7844 *LSB*) 7845 emul="${emul}ltsmip" 7846 ;; 7847 esac 7848 case `$FILECMD conftest.$ac_objext` in 7849 *N32*) 7850 emul="${emul}n32" 7851 ;; 7852 esac 7853 LD="${LD-ld} -m $emul" 7854 fi 7855 rm -rf conftest* 7856 ;; 7857 7858x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7859s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7860 # Find out what ABI is being produced by ac_compile, and set linker 7861 # options accordingly. Note that the listed cases only cover the 7862 # situations where additional linker options are needed (such as when 7863 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7864 # vice versa); the common cases where no linker options are needed do 7865 # not appear in the list. 7866 echo 'int i;' > conftest.$ac_ext 7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7868 (eval $ac_compile) 2>&5 7869 ac_status=$? 7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7871 test $ac_status = 0; }; then 7872 case `$FILECMD conftest.o` in 7873 *32-bit*) 7874 case $host in 7875 x86_64-*kfreebsd*-gnu) 7876 LD="${LD-ld} -m elf_i386_fbsd" 7877 ;; 7878 x86_64-*linux*) 7879 case `$FILECMD conftest.o` in 7880 *x86-64*) 7881 LD="${LD-ld} -m elf32_x86_64" 7882 ;; 7883 *) 7884 LD="${LD-ld} -m elf_i386" 7885 ;; 7886 esac 7887 ;; 7888 powerpc64le-*linux*) 7889 LD="${LD-ld} -m elf32lppclinux" 7890 ;; 7891 powerpc64-*linux*) 7892 LD="${LD-ld} -m elf32ppclinux" 7893 ;; 7894 s390x-*linux*) 7895 LD="${LD-ld} -m elf_s390" 7896 ;; 7897 sparc64-*linux*) 7898 LD="${LD-ld} -m elf32_sparc" 7899 ;; 7900 esac 7901 ;; 7902 *64-bit*) 7903 case $host in 7904 x86_64-*kfreebsd*-gnu) 7905 LD="${LD-ld} -m elf_x86_64_fbsd" 7906 ;; 7907 x86_64-*linux*) 7908 LD="${LD-ld} -m elf_x86_64" 7909 ;; 7910 powerpcle-*linux*) 7911 LD="${LD-ld} -m elf64lppc" 7912 ;; 7913 powerpc-*linux*) 7914 LD="${LD-ld} -m elf64ppc" 7915 ;; 7916 s390*-*linux*|s390*-*tpf*) 7917 LD="${LD-ld} -m elf64_s390" 7918 ;; 7919 sparc*-*linux*) 7920 LD="${LD-ld} -m elf64_sparc" 7921 ;; 7922 esac 7923 ;; 7924 esac 7925 fi 7926 rm -rf conftest* 7927 ;; 7928 7929*-*-sco3.2v5*) 7930 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7931 SAVE_CFLAGS=$CFLAGS 7932 CFLAGS="$CFLAGS -belf" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7934printf %s "checking whether the C compiler needs -belf... " >&6; } 7935if test ${lt_cv_cc_needs_belf+y} 7936then : 7937 printf %s "(cached) " >&6 7938else $as_nop 7939 ac_ext=c 7940ac_cpp='$CPP $CPPFLAGS' 7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7943ac_compiler_gnu=$ac_cv_c_compiler_gnu 7944 7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7946/* end confdefs.h. */ 7947 7948int 7949main (void) 7950{ 7951 7952 ; 7953 return 0; 7954} 7955_ACEOF 7956if ac_fn_c_try_link "$LINENO" 7957then : 7958 lt_cv_cc_needs_belf=yes 7959else $as_nop 7960 lt_cv_cc_needs_belf=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7963 conftest$ac_exeext conftest.$ac_ext 7964 ac_ext=c 7965ac_cpp='$CPP $CPPFLAGS' 7966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7968ac_compiler_gnu=$ac_cv_c_compiler_gnu 7969 7970fi 7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7972printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7973 if test yes != "$lt_cv_cc_needs_belf"; then 7974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7975 CFLAGS=$SAVE_CFLAGS 7976 fi 7977 ;; 7978*-*solaris*) 7979 # Find out what ABI is being produced by ac_compile, and set linker 7980 # options accordingly. 7981 echo 'int i;' > conftest.$ac_ext 7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7983 (eval $ac_compile) 2>&5 7984 ac_status=$? 7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7986 test $ac_status = 0; }; then 7987 case `$FILECMD conftest.o` in 7988 *64-bit*) 7989 case $lt_cv_prog_gnu_ld in 7990 yes*) 7991 case $host in 7992 i?86-*-solaris*|x86_64-*-solaris*) 7993 LD="${LD-ld} -m elf_x86_64" 7994 ;; 7995 sparc*-*-solaris*) 7996 LD="${LD-ld} -m elf64_sparc" 7997 ;; 7998 esac 7999 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8000 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8001 LD=${LD-ld}_sol2 8002 fi 8003 ;; 8004 *) 8005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8006 LD="${LD-ld} -64" 8007 fi 8008 ;; 8009 esac 8010 ;; 8011 esac 8012 fi 8013 rm -rf conftest* 8014 ;; 8015esac 8016 8017need_locks=$enable_libtool_lock 8018 8019if test -n "$ac_tool_prefix"; then 8020 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8021set dummy ${ac_tool_prefix}mt; ac_word=$2 8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8023printf %s "checking for $ac_word... " >&6; } 8024if test ${ac_cv_prog_MANIFEST_TOOL+y} 8025then : 8026 printf %s "(cached) " >&6 8027else $as_nop 8028 if test -n "$MANIFEST_TOOL"; then 8029 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8030else 8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8032for as_dir in $PATH 8033do 8034 IFS=$as_save_IFS 8035 case $as_dir in #((( 8036 '') as_dir=./ ;; 8037 */) ;; 8038 *) as_dir=$as_dir/ ;; 8039 esac 8040 for ac_exec_ext in '' $ac_executable_extensions; do 8041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8042 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8044 break 2 8045 fi 8046done 8047 done 8048IFS=$as_save_IFS 8049 8050fi 8051fi 8052MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8053if test -n "$MANIFEST_TOOL"; then 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8055printf "%s\n" "$MANIFEST_TOOL" >&6; } 8056else 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058printf "%s\n" "no" >&6; } 8059fi 8060 8061 8062fi 8063if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8064 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8065 # Extract the first word of "mt", so it can be a program name with args. 8066set dummy mt; ac_word=$2 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8068printf %s "checking for $ac_word... " >&6; } 8069if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8070then : 8071 printf %s "(cached) " >&6 8072else $as_nop 8073 if test -n "$ac_ct_MANIFEST_TOOL"; then 8074 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8075else 8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8077for as_dir in $PATH 8078do 8079 IFS=$as_save_IFS 8080 case $as_dir in #((( 8081 '') as_dir=./ ;; 8082 */) ;; 8083 *) as_dir=$as_dir/ ;; 8084 esac 8085 for ac_exec_ext in '' $ac_executable_extensions; do 8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8087 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8089 break 2 8090 fi 8091done 8092 done 8093IFS=$as_save_IFS 8094 8095fi 8096fi 8097ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8098if test -n "$ac_ct_MANIFEST_TOOL"; then 8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8100printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8101else 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103printf "%s\n" "no" >&6; } 8104fi 8105 8106 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8107 MANIFEST_TOOL=":" 8108 else 8109 case $cross_compiling:$ac_tool_warned in 8110yes:) 8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8113ac_tool_warned=yes ;; 8114esac 8115 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8116 fi 8117else 8118 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8119fi 8120 8121test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8123printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8124if test ${lt_cv_path_mainfest_tool+y} 8125then : 8126 printf %s "(cached) " >&6 8127else $as_nop 8128 lt_cv_path_mainfest_tool=no 8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8131 cat conftest.err >&5 8132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8133 lt_cv_path_mainfest_tool=yes 8134 fi 8135 rm -f conftest* 8136fi 8137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8138printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8139if test yes != "$lt_cv_path_mainfest_tool"; then 8140 MANIFEST_TOOL=: 8141fi 8142 8143 8144 8145 8146 8147 8148 case $host_os in 8149 rhapsody* | darwin*) 8150 if test -n "$ac_tool_prefix"; then 8151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8154printf %s "checking for $ac_word... " >&6; } 8155if test ${ac_cv_prog_DSYMUTIL+y} 8156then : 8157 printf %s "(cached) " >&6 8158else $as_nop 8159 if test -n "$DSYMUTIL"; then 8160 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8161else 8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8163for as_dir in $PATH 8164do 8165 IFS=$as_save_IFS 8166 case $as_dir in #((( 8167 '') as_dir=./ ;; 8168 */) ;; 8169 *) as_dir=$as_dir/ ;; 8170 esac 8171 for ac_exec_ext in '' $ac_executable_extensions; do 8172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8173 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8175 break 2 8176 fi 8177done 8178 done 8179IFS=$as_save_IFS 8180 8181fi 8182fi 8183DSYMUTIL=$ac_cv_prog_DSYMUTIL 8184if test -n "$DSYMUTIL"; then 8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8186printf "%s\n" "$DSYMUTIL" >&6; } 8187else 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8189printf "%s\n" "no" >&6; } 8190fi 8191 8192 8193fi 8194if test -z "$ac_cv_prog_DSYMUTIL"; then 8195 ac_ct_DSYMUTIL=$DSYMUTIL 8196 # Extract the first word of "dsymutil", so it can be a program name with args. 8197set dummy dsymutil; ac_word=$2 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8199printf %s "checking for $ac_word... " >&6; } 8200if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8201then : 8202 printf %s "(cached) " >&6 8203else $as_nop 8204 if test -n "$ac_ct_DSYMUTIL"; then 8205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8206else 8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8208for as_dir in $PATH 8209do 8210 IFS=$as_save_IFS 8211 case $as_dir in #((( 8212 '') as_dir=./ ;; 8213 */) ;; 8214 *) as_dir=$as_dir/ ;; 8215 esac 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8229if test -n "$ac_ct_DSYMUTIL"; then 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8231printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8232else 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234printf "%s\n" "no" >&6; } 8235fi 8236 8237 if test "x$ac_ct_DSYMUTIL" = x; then 8238 DSYMUTIL=":" 8239 else 8240 case $cross_compiling:$ac_tool_warned in 8241yes:) 8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8244ac_tool_warned=yes ;; 8245esac 8246 DSYMUTIL=$ac_ct_DSYMUTIL 8247 fi 8248else 8249 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8250fi 8251 8252 if test -n "$ac_tool_prefix"; then 8253 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8254set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8256printf %s "checking for $ac_word... " >&6; } 8257if test ${ac_cv_prog_NMEDIT+y} 8258then : 8259 printf %s "(cached) " >&6 8260else $as_nop 8261 if test -n "$NMEDIT"; then 8262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8263else 8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8265for as_dir in $PATH 8266do 8267 IFS=$as_save_IFS 8268 case $as_dir in #((( 8269 '') as_dir=./ ;; 8270 */) ;; 8271 *) as_dir=$as_dir/ ;; 8272 esac 8273 for ac_exec_ext in '' $ac_executable_extensions; do 8274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8277 break 2 8278 fi 8279done 8280 done 8281IFS=$as_save_IFS 8282 8283fi 8284fi 8285NMEDIT=$ac_cv_prog_NMEDIT 8286if test -n "$NMEDIT"; then 8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8288printf "%s\n" "$NMEDIT" >&6; } 8289else 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8291printf "%s\n" "no" >&6; } 8292fi 8293 8294 8295fi 8296if test -z "$ac_cv_prog_NMEDIT"; then 8297 ac_ct_NMEDIT=$NMEDIT 8298 # Extract the first word of "nmedit", so it can be a program name with args. 8299set dummy nmedit; ac_word=$2 8300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8301printf %s "checking for $ac_word... " >&6; } 8302if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8303then : 8304 printf %s "(cached) " >&6 8305else $as_nop 8306 if test -n "$ac_ct_NMEDIT"; then 8307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8308else 8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8310for as_dir in $PATH 8311do 8312 IFS=$as_save_IFS 8313 case $as_dir in #((( 8314 '') as_dir=./ ;; 8315 */) ;; 8316 *) as_dir=$as_dir/ ;; 8317 esac 8318 for ac_exec_ext in '' $ac_executable_extensions; do 8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8320 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8322 break 2 8323 fi 8324done 8325 done 8326IFS=$as_save_IFS 8327 8328fi 8329fi 8330ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8331if test -n "$ac_ct_NMEDIT"; then 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8333printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8334else 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8336printf "%s\n" "no" >&6; } 8337fi 8338 8339 if test "x$ac_ct_NMEDIT" = x; then 8340 NMEDIT=":" 8341 else 8342 case $cross_compiling:$ac_tool_warned in 8343yes:) 8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8345printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8346ac_tool_warned=yes ;; 8347esac 8348 NMEDIT=$ac_ct_NMEDIT 8349 fi 8350else 8351 NMEDIT="$ac_cv_prog_NMEDIT" 8352fi 8353 8354 if test -n "$ac_tool_prefix"; then 8355 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8356set dummy ${ac_tool_prefix}lipo; ac_word=$2 8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8358printf %s "checking for $ac_word... " >&6; } 8359if test ${ac_cv_prog_LIPO+y} 8360then : 8361 printf %s "(cached) " >&6 8362else $as_nop 8363 if test -n "$LIPO"; then 8364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8365else 8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8367for as_dir in $PATH 8368do 8369 IFS=$as_save_IFS 8370 case $as_dir in #((( 8371 '') as_dir=./ ;; 8372 */) ;; 8373 *) as_dir=$as_dir/ ;; 8374 esac 8375 for ac_exec_ext in '' $ac_executable_extensions; do 8376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8377 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8379 break 2 8380 fi 8381done 8382 done 8383IFS=$as_save_IFS 8384 8385fi 8386fi 8387LIPO=$ac_cv_prog_LIPO 8388if test -n "$LIPO"; then 8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8390printf "%s\n" "$LIPO" >&6; } 8391else 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8393printf "%s\n" "no" >&6; } 8394fi 8395 8396 8397fi 8398if test -z "$ac_cv_prog_LIPO"; then 8399 ac_ct_LIPO=$LIPO 8400 # Extract the first word of "lipo", so it can be a program name with args. 8401set dummy lipo; ac_word=$2 8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8403printf %s "checking for $ac_word... " >&6; } 8404if test ${ac_cv_prog_ac_ct_LIPO+y} 8405then : 8406 printf %s "(cached) " >&6 8407else $as_nop 8408 if test -n "$ac_ct_LIPO"; then 8409 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8410else 8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8412for as_dir in $PATH 8413do 8414 IFS=$as_save_IFS 8415 case $as_dir in #((( 8416 '') as_dir=./ ;; 8417 */) ;; 8418 *) as_dir=$as_dir/ ;; 8419 esac 8420 for ac_exec_ext in '' $ac_executable_extensions; do 8421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8422 ac_cv_prog_ac_ct_LIPO="lipo" 8423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8424 break 2 8425 fi 8426done 8427 done 8428IFS=$as_save_IFS 8429 8430fi 8431fi 8432ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8433if test -n "$ac_ct_LIPO"; then 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8435printf "%s\n" "$ac_ct_LIPO" >&6; } 8436else 8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8438printf "%s\n" "no" >&6; } 8439fi 8440 8441 if test "x$ac_ct_LIPO" = x; then 8442 LIPO=":" 8443 else 8444 case $cross_compiling:$ac_tool_warned in 8445yes:) 8446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8447printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8448ac_tool_warned=yes ;; 8449esac 8450 LIPO=$ac_ct_LIPO 8451 fi 8452else 8453 LIPO="$ac_cv_prog_LIPO" 8454fi 8455 8456 if test -n "$ac_tool_prefix"; then 8457 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8458set dummy ${ac_tool_prefix}otool; ac_word=$2 8459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8460printf %s "checking for $ac_word... " >&6; } 8461if test ${ac_cv_prog_OTOOL+y} 8462then : 8463 printf %s "(cached) " >&6 8464else $as_nop 8465 if test -n "$OTOOL"; then 8466 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8467else 8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8469for as_dir in $PATH 8470do 8471 IFS=$as_save_IFS 8472 case $as_dir in #((( 8473 '') as_dir=./ ;; 8474 */) ;; 8475 *) as_dir=$as_dir/ ;; 8476 esac 8477 for ac_exec_ext in '' $ac_executable_extensions; do 8478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8479 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8481 break 2 8482 fi 8483done 8484 done 8485IFS=$as_save_IFS 8486 8487fi 8488fi 8489OTOOL=$ac_cv_prog_OTOOL 8490if test -n "$OTOOL"; then 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8492printf "%s\n" "$OTOOL" >&6; } 8493else 8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8495printf "%s\n" "no" >&6; } 8496fi 8497 8498 8499fi 8500if test -z "$ac_cv_prog_OTOOL"; then 8501 ac_ct_OTOOL=$OTOOL 8502 # Extract the first word of "otool", so it can be a program name with args. 8503set dummy otool; ac_word=$2 8504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8505printf %s "checking for $ac_word... " >&6; } 8506if test ${ac_cv_prog_ac_ct_OTOOL+y} 8507then : 8508 printf %s "(cached) " >&6 8509else $as_nop 8510 if test -n "$ac_ct_OTOOL"; then 8511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8512else 8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8514for as_dir in $PATH 8515do 8516 IFS=$as_save_IFS 8517 case $as_dir in #((( 8518 '') as_dir=./ ;; 8519 */) ;; 8520 *) as_dir=$as_dir/ ;; 8521 esac 8522 for ac_exec_ext in '' $ac_executable_extensions; do 8523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8524 ac_cv_prog_ac_ct_OTOOL="otool" 8525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8526 break 2 8527 fi 8528done 8529 done 8530IFS=$as_save_IFS 8531 8532fi 8533fi 8534ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8535if test -n "$ac_ct_OTOOL"; then 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8537printf "%s\n" "$ac_ct_OTOOL" >&6; } 8538else 8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8540printf "%s\n" "no" >&6; } 8541fi 8542 8543 if test "x$ac_ct_OTOOL" = x; then 8544 OTOOL=":" 8545 else 8546 case $cross_compiling:$ac_tool_warned in 8547yes:) 8548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8549printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8550ac_tool_warned=yes ;; 8551esac 8552 OTOOL=$ac_ct_OTOOL 8553 fi 8554else 8555 OTOOL="$ac_cv_prog_OTOOL" 8556fi 8557 8558 if test -n "$ac_tool_prefix"; then 8559 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8560set dummy ${ac_tool_prefix}otool64; ac_word=$2 8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8562printf %s "checking for $ac_word... " >&6; } 8563if test ${ac_cv_prog_OTOOL64+y} 8564then : 8565 printf %s "(cached) " >&6 8566else $as_nop 8567 if test -n "$OTOOL64"; then 8568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8569else 8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571for as_dir in $PATH 8572do 8573 IFS=$as_save_IFS 8574 case $as_dir in #((( 8575 '') as_dir=./ ;; 8576 */) ;; 8577 *) as_dir=$as_dir/ ;; 8578 esac 8579 for ac_exec_ext in '' $ac_executable_extensions; do 8580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8581 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8583 break 2 8584 fi 8585done 8586 done 8587IFS=$as_save_IFS 8588 8589fi 8590fi 8591OTOOL64=$ac_cv_prog_OTOOL64 8592if test -n "$OTOOL64"; then 8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8594printf "%s\n" "$OTOOL64" >&6; } 8595else 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597printf "%s\n" "no" >&6; } 8598fi 8599 8600 8601fi 8602if test -z "$ac_cv_prog_OTOOL64"; then 8603 ac_ct_OTOOL64=$OTOOL64 8604 # Extract the first word of "otool64", so it can be a program name with args. 8605set dummy otool64; ac_word=$2 8606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8607printf %s "checking for $ac_word... " >&6; } 8608if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8609then : 8610 printf %s "(cached) " >&6 8611else $as_nop 8612 if test -n "$ac_ct_OTOOL64"; then 8613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8614else 8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8616for as_dir in $PATH 8617do 8618 IFS=$as_save_IFS 8619 case $as_dir in #((( 8620 '') as_dir=./ ;; 8621 */) ;; 8622 *) as_dir=$as_dir/ ;; 8623 esac 8624 for ac_exec_ext in '' $ac_executable_extensions; do 8625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8626 ac_cv_prog_ac_ct_OTOOL64="otool64" 8627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8628 break 2 8629 fi 8630done 8631 done 8632IFS=$as_save_IFS 8633 8634fi 8635fi 8636ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8637if test -n "$ac_ct_OTOOL64"; then 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8639printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8640else 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8642printf "%s\n" "no" >&6; } 8643fi 8644 8645 if test "x$ac_ct_OTOOL64" = x; then 8646 OTOOL64=":" 8647 else 8648 case $cross_compiling:$ac_tool_warned in 8649yes:) 8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8651printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8652ac_tool_warned=yes ;; 8653esac 8654 OTOOL64=$ac_ct_OTOOL64 8655 fi 8656else 8657 OTOOL64="$ac_cv_prog_OTOOL64" 8658fi 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8687printf %s "checking for -single_module linker flag... " >&6; } 8688if test ${lt_cv_apple_cc_single_mod+y} 8689then : 8690 printf %s "(cached) " >&6 8691else $as_nop 8692 lt_cv_apple_cc_single_mod=no 8693 if test -z "$LT_MULTI_MODULE"; then 8694 # By default we will add the -single_module flag. You can override 8695 # by either setting the environment variable LT_MULTI_MODULE 8696 # non-empty at configure time, or by adding -multi_module to the 8697 # link flags. 8698 rm -rf libconftest.dylib* 8699 echo "int foo(void){return 1;}" > conftest.c 8700 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8701-dynamiclib -Wl,-single_module conftest.c" >&5 8702 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8703 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8704 _lt_result=$? 8705 # If there is a non-empty error log, and "single_module" 8706 # appears in it, assume the flag caused a linker warning 8707 if test -s conftest.err && $GREP single_module conftest.err; then 8708 cat conftest.err >&5 8709 # Otherwise, if the output was created with a 0 exit code from 8710 # the compiler, it worked. 8711 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8712 lt_cv_apple_cc_single_mod=yes 8713 else 8714 cat conftest.err >&5 8715 fi 8716 rm -rf libconftest.dylib* 8717 rm -f conftest.* 8718 fi 8719fi 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8721printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8722 8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8724printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8725if test ${lt_cv_ld_exported_symbols_list+y} 8726then : 8727 printf %s "(cached) " >&6 8728else $as_nop 8729 lt_cv_ld_exported_symbols_list=no 8730 save_LDFLAGS=$LDFLAGS 8731 echo "_main" > conftest.sym 8732 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735 8736int 8737main (void) 8738{ 8739 8740 ; 8741 return 0; 8742} 8743_ACEOF 8744if ac_fn_c_try_link "$LINENO" 8745then : 8746 lt_cv_ld_exported_symbols_list=yes 8747else $as_nop 8748 lt_cv_ld_exported_symbols_list=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8751 conftest$ac_exeext conftest.$ac_ext 8752 LDFLAGS=$save_LDFLAGS 8753 8754fi 8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8756printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8757 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8759printf %s "checking for -force_load linker flag... " >&6; } 8760if test ${lt_cv_ld_force_load+y} 8761then : 8762 printf %s "(cached) " >&6 8763else $as_nop 8764 lt_cv_ld_force_load=no 8765 cat > conftest.c << _LT_EOF 8766int forced_loaded() { return 2;} 8767_LT_EOF 8768 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8769 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8770 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8771 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8772 echo "$RANLIB libconftest.a" >&5 8773 $RANLIB libconftest.a 2>&5 8774 cat > conftest.c << _LT_EOF 8775int main() { return 0;} 8776_LT_EOF 8777 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8778 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8779 _lt_result=$? 8780 if test -s conftest.err && $GREP force_load conftest.err; then 8781 cat conftest.err >&5 8782 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8783 lt_cv_ld_force_load=yes 8784 else 8785 cat conftest.err >&5 8786 fi 8787 rm -f conftest.err libconftest.a conftest conftest.c 8788 rm -rf conftest.dSYM 8789 8790fi 8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8792printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8793 case $host_os in 8794 rhapsody* | darwin1.[012]) 8795 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8796 darwin1.*) 8797 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8798 darwin*) 8799 case $MACOSX_DEPLOYMENT_TARGET,$host in 8800 10.[012],*|,*powerpc*-darwin[5-8]*) 8801 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8802 *) 8803 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8804 esac 8805 ;; 8806 esac 8807 if test yes = "$lt_cv_apple_cc_single_mod"; then 8808 _lt_dar_single_mod='$single_module' 8809 fi 8810 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8811 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8812 else 8813 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8814 fi 8815 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8816 _lt_dsymutil='~$DSYMUTIL $lib || :' 8817 else 8818 _lt_dsymutil= 8819 fi 8820 ;; 8821 esac 8822 8823# func_munge_path_list VARIABLE PATH 8824# ----------------------------------- 8825# VARIABLE is name of variable containing _space_ separated list of 8826# directories to be munged by the contents of PATH, which is string 8827# having a format: 8828# "DIR[:DIR]:" 8829# string "DIR[ DIR]" will be prepended to VARIABLE 8830# ":DIR[:DIR]" 8831# string "DIR[ DIR]" will be appended to VARIABLE 8832# "DIRP[:DIRP]::[DIRA:]DIRA" 8833# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8834# "DIRA[ DIRA]" will be appended to VARIABLE 8835# "DIR[:DIR]" 8836# VARIABLE will be replaced by "DIR[ DIR]" 8837func_munge_path_list () 8838{ 8839 case x$2 in 8840 x) 8841 ;; 8842 *:) 8843 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8844 ;; 8845 x:*) 8846 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8847 ;; 8848 *::*) 8849 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8850 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8851 ;; 8852 *) 8853 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8854 ;; 8855 esac 8856} 8857 8858ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8859" 8860if test "x$ac_cv_header_dlfcn_h" = xyes 8861then : 8862 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8863 8864fi 8865 8866 8867 8868 8869 8870# Set options 8871 8872 8873 8874 enable_dlopen=no 8875 8876 8877 enable_win32_dll=no 8878 8879 8880 # Check whether --enable-shared was given. 8881if test ${enable_shared+y} 8882then : 8883 enableval=$enable_shared; p=${PACKAGE-default} 8884 case $enableval in 8885 yes) enable_shared=yes ;; 8886 no) enable_shared=no ;; 8887 *) 8888 enable_shared=no 8889 # Look at the argument we got. We use all the common list separators. 8890 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8891 for pkg in $enableval; do 8892 IFS=$lt_save_ifs 8893 if test "X$pkg" = "X$p"; then 8894 enable_shared=yes 8895 fi 8896 done 8897 IFS=$lt_save_ifs 8898 ;; 8899 esac 8900else $as_nop 8901 enable_shared=yes 8902fi 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 # Check whether --enable-static was given. 8913if test ${enable_static+y} 8914then : 8915 enableval=$enable_static; p=${PACKAGE-default} 8916 case $enableval in 8917 yes) enable_static=yes ;; 8918 no) enable_static=no ;; 8919 *) 8920 enable_static=no 8921 # Look at the argument we got. We use all the common list separators. 8922 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8923 for pkg in $enableval; do 8924 IFS=$lt_save_ifs 8925 if test "X$pkg" = "X$p"; then 8926 enable_static=yes 8927 fi 8928 done 8929 IFS=$lt_save_ifs 8930 ;; 8931 esac 8932else $as_nop 8933 enable_static=yes 8934fi 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945# Check whether --with-pic was given. 8946if test ${with_pic+y} 8947then : 8948 withval=$with_pic; lt_p=${PACKAGE-default} 8949 case $withval in 8950 yes|no) pic_mode=$withval ;; 8951 *) 8952 pic_mode=default 8953 # Look at the argument we got. We use all the common list separators. 8954 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8955 for lt_pkg in $withval; do 8956 IFS=$lt_save_ifs 8957 if test "X$lt_pkg" = "X$lt_p"; then 8958 pic_mode=yes 8959 fi 8960 done 8961 IFS=$lt_save_ifs 8962 ;; 8963 esac 8964else $as_nop 8965 pic_mode=default 8966fi 8967 8968 8969 8970 8971 8972 8973 8974 8975 # Check whether --enable-fast-install was given. 8976if test ${enable_fast_install+y} 8977then : 8978 enableval=$enable_fast_install; p=${PACKAGE-default} 8979 case $enableval in 8980 yes) enable_fast_install=yes ;; 8981 no) enable_fast_install=no ;; 8982 *) 8983 enable_fast_install=no 8984 # Look at the argument we got. We use all the common list separators. 8985 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8986 for pkg in $enableval; do 8987 IFS=$lt_save_ifs 8988 if test "X$pkg" = "X$p"; then 8989 enable_fast_install=yes 8990 fi 8991 done 8992 IFS=$lt_save_ifs 8993 ;; 8994 esac 8995else $as_nop 8996 enable_fast_install=yes 8997fi 8998 8999 9000 9001 9002 9003 9004 9005 9006 shared_archive_member_spec= 9007case $host,$enable_shared in 9008power*-*-aix[5-9]*,yes) 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9010printf %s "checking which variant of shared library versioning to provide... " >&6; } 9011 9012# Check whether --with-aix-soname was given. 9013if test ${with_aix_soname+y} 9014then : 9015 withval=$with_aix_soname; case $withval in 9016 aix|svr4|both) 9017 ;; 9018 *) 9019 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9020 ;; 9021 esac 9022 lt_cv_with_aix_soname=$with_aix_soname 9023else $as_nop 9024 if test ${lt_cv_with_aix_soname+y} 9025then : 9026 printf %s "(cached) " >&6 9027else $as_nop 9028 lt_cv_with_aix_soname=aix 9029fi 9030 9031 with_aix_soname=$lt_cv_with_aix_soname 9032fi 9033 9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9035printf "%s\n" "$with_aix_soname" >&6; } 9036 if test aix != "$with_aix_soname"; then 9037 # For the AIX way of multilib, we name the shared archive member 9038 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9039 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9040 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9041 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9042 if test 64 = "${OBJECT_MODE-32}"; then 9043 shared_archive_member_spec=shr_64 9044 else 9045 shared_archive_member_spec=shr 9046 fi 9047 fi 9048 ;; 9049*) 9050 with_aix_soname=aix 9051 ;; 9052esac 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063# This can be used to rebuild libtool when needed 9064LIBTOOL_DEPS=$ltmain 9065 9066# Always use our own libtool. 9067LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098test -z "$LN_S" && LN_S="ln -s" 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113if test -n "${ZSH_VERSION+set}"; then 9114 setopt NO_GLOB_SUBST 9115fi 9116 9117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9118printf %s "checking for objdir... " >&6; } 9119if test ${lt_cv_objdir+y} 9120then : 9121 printf %s "(cached) " >&6 9122else $as_nop 9123 rm -f .libs 2>/dev/null 9124mkdir .libs 2>/dev/null 9125if test -d .libs; then 9126 lt_cv_objdir=.libs 9127else 9128 # MS-DOS does not allow filenames that begin with a dot. 9129 lt_cv_objdir=_libs 9130fi 9131rmdir .libs 2>/dev/null 9132fi 9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9134printf "%s\n" "$lt_cv_objdir" >&6; } 9135objdir=$lt_cv_objdir 9136 9137 9138 9139 9140 9141printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9142 9143 9144 9145 9146case $host_os in 9147aix3*) 9148 # AIX sometimes has problems with the GCC collect2 program. For some 9149 # reason, if we set the COLLECT_NAMES environment variable, the problems 9150 # vanish in a puff of smoke. 9151 if test set != "${COLLECT_NAMES+set}"; then 9152 COLLECT_NAMES= 9153 export COLLECT_NAMES 9154 fi 9155 ;; 9156esac 9157 9158# Global variables: 9159ofile=libtool 9160can_build_shared=yes 9161 9162# All known linkers require a '.a' archive for static linking (except MSVC and 9163# ICC, which need '.lib'). 9164libext=a 9165 9166with_gnu_ld=$lt_cv_prog_gnu_ld 9167 9168old_CC=$CC 9169old_CFLAGS=$CFLAGS 9170 9171# Set sane defaults for various variables 9172test -z "$CC" && CC=cc 9173test -z "$LTCC" && LTCC=$CC 9174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9175test -z "$LD" && LD=ld 9176test -z "$ac_objext" && ac_objext=o 9177 9178func_cc_basename $compiler 9179cc_basename=$func_cc_basename_result 9180 9181 9182# Only perform the check for file, if the check method requires it 9183test -z "$MAGIC_CMD" && MAGIC_CMD=file 9184case $deplibs_check_method in 9185file_magic*) 9186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9188printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9189if test ${lt_cv_path_MAGIC_CMD+y} 9190then : 9191 printf %s "(cached) " >&6 9192else $as_nop 9193 case $MAGIC_CMD in 9194[\\/*] | ?:[\\/]*) 9195 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9196 ;; 9197*) 9198 lt_save_MAGIC_CMD=$MAGIC_CMD 9199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9201 for ac_dir in $ac_dummy; do 9202 IFS=$lt_save_ifs 9203 test -z "$ac_dir" && ac_dir=. 9204 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9205 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9206 if test -n "$file_magic_test_file"; then 9207 case $deplibs_check_method in 9208 "file_magic "*) 9209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9212 $EGREP "$file_magic_regex" > /dev/null; then 9213 : 9214 else 9215 cat <<_LT_EOF 1>&2 9216 9217*** Warning: the command libtool uses to detect shared libraries, 9218*** $file_magic_cmd, produces output that libtool cannot recognize. 9219*** The result is that libtool may fail to recognize shared libraries 9220*** as such. This will affect the creation of libtool libraries that 9221*** depend on shared libraries, but programs linked with such libtool 9222*** libraries will work regardless of this problem. Nevertheless, you 9223*** may want to report the problem to your system manager and/or to 9224*** bug-libtool@gnu.org 9225 9226_LT_EOF 9227 fi ;; 9228 esac 9229 fi 9230 break 9231 fi 9232 done 9233 IFS=$lt_save_ifs 9234 MAGIC_CMD=$lt_save_MAGIC_CMD 9235 ;; 9236esac 9237fi 9238 9239MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9240if test -n "$MAGIC_CMD"; then 9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9242printf "%s\n" "$MAGIC_CMD" >&6; } 9243else 9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9245printf "%s\n" "no" >&6; } 9246fi 9247 9248 9249 9250 9251 9252if test -z "$lt_cv_path_MAGIC_CMD"; then 9253 if test -n "$ac_tool_prefix"; then 9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9255printf %s "checking for file... " >&6; } 9256if test ${lt_cv_path_MAGIC_CMD+y} 9257then : 9258 printf %s "(cached) " >&6 9259else $as_nop 9260 case $MAGIC_CMD in 9261[\\/*] | ?:[\\/]*) 9262 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9263 ;; 9264*) 9265 lt_save_MAGIC_CMD=$MAGIC_CMD 9266 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9268 for ac_dir in $ac_dummy; do 9269 IFS=$lt_save_ifs 9270 test -z "$ac_dir" && ac_dir=. 9271 if test -f "$ac_dir/file"; then 9272 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9273 if test -n "$file_magic_test_file"; then 9274 case $deplibs_check_method in 9275 "file_magic "*) 9276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9277 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9279 $EGREP "$file_magic_regex" > /dev/null; then 9280 : 9281 else 9282 cat <<_LT_EOF 1>&2 9283 9284*** Warning: the command libtool uses to detect shared libraries, 9285*** $file_magic_cmd, produces output that libtool cannot recognize. 9286*** The result is that libtool may fail to recognize shared libraries 9287*** as such. This will affect the creation of libtool libraries that 9288*** depend on shared libraries, but programs linked with such libtool 9289*** libraries will work regardless of this problem. Nevertheless, you 9290*** may want to report the problem to your system manager and/or to 9291*** bug-libtool@gnu.org 9292 9293_LT_EOF 9294 fi ;; 9295 esac 9296 fi 9297 break 9298 fi 9299 done 9300 IFS=$lt_save_ifs 9301 MAGIC_CMD=$lt_save_MAGIC_CMD 9302 ;; 9303esac 9304fi 9305 9306MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9307if test -n "$MAGIC_CMD"; then 9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9309printf "%s\n" "$MAGIC_CMD" >&6; } 9310else 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9312printf "%s\n" "no" >&6; } 9313fi 9314 9315 9316 else 9317 MAGIC_CMD=: 9318 fi 9319fi 9320 9321 fi 9322 ;; 9323esac 9324 9325# Use C for the default configuration in the libtool script 9326 9327lt_save_CC=$CC 9328ac_ext=c 9329ac_cpp='$CPP $CPPFLAGS' 9330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9332ac_compiler_gnu=$ac_cv_c_compiler_gnu 9333 9334 9335# Source file extension for C test sources. 9336ac_ext=c 9337 9338# Object file extension for compiled C test sources. 9339objext=o 9340objext=$objext 9341 9342# Code to be used in simple compile tests 9343lt_simple_compile_test_code="int some_variable = 0;" 9344 9345# Code to be used in simple link tests 9346lt_simple_link_test_code='int main(){return(0);}' 9347 9348 9349 9350 9351 9352 9353 9354# If no C compiler was specified, use CC. 9355LTCC=${LTCC-"$CC"} 9356 9357# If no C compiler flags were specified, use CFLAGS. 9358LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9359 9360# Allow CC to be a program name with arguments. 9361compiler=$CC 9362 9363# Save the default compiler, since it gets overwritten when the other 9364# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9365compiler_DEFAULT=$CC 9366 9367# save warnings/boilerplate of simple test code 9368ac_outfile=conftest.$ac_objext 9369echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9371_lt_compiler_boilerplate=`cat conftest.err` 9372$RM conftest* 9373 9374ac_outfile=conftest.$ac_objext 9375echo "$lt_simple_link_test_code" >conftest.$ac_ext 9376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9377_lt_linker_boilerplate=`cat conftest.err` 9378$RM -r conftest* 9379 9380 9381## CAVEAT EMPTOR: 9382## There is no encapsulation within the following macros, do not change 9383## the running order or otherwise move them around unless you know exactly 9384## what you are doing... 9385if test -n "$compiler"; then 9386 9387lt_prog_compiler_no_builtin_flag= 9388 9389if test yes = "$GCC"; then 9390 case $cc_basename in 9391 nvcc*) 9392 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9393 *) 9394 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9395 esac 9396 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9398printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9399if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9400then : 9401 printf %s "(cached) " >&6 9402else $as_nop 9403 lt_cv_prog_compiler_rtti_exceptions=no 9404 ac_outfile=conftest.$ac_objext 9405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9406 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9407 # Insert the option either (1) after the last *FLAGS variable, or 9408 # (2) before a word containing "conftest.", or (3) at the end. 9409 # Note that $ac_compile itself does not contain backslashes and begins 9410 # with a dollar sign (not a hyphen), so the echo should work correctly. 9411 # The option is referenced via a variable to avoid confusing sed. 9412 lt_compile=`echo "$ac_compile" | $SED \ 9413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9415 -e 's:$: $lt_compiler_flag:'` 9416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9417 (eval "$lt_compile" 2>conftest.err) 9418 ac_status=$? 9419 cat conftest.err >&5 9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9421 if (exit $ac_status) && test -s "$ac_outfile"; then 9422 # The compiler can only warn and ignore the option if not recognized 9423 # So say no if there are warnings other than the usual output. 9424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9427 lt_cv_prog_compiler_rtti_exceptions=yes 9428 fi 9429 fi 9430 $RM conftest* 9431 9432fi 9433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9434printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9435 9436if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9437 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9438else 9439 : 9440fi 9441 9442fi 9443 9444 9445 9446 9447 9448 9449 lt_prog_compiler_wl= 9450lt_prog_compiler_pic= 9451lt_prog_compiler_static= 9452 9453 9454 if test yes = "$GCC"; then 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_static='-static' 9457 9458 case $host_os in 9459 aix*) 9460 # All AIX code is PIC. 9461 if test ia64 = "$host_cpu"; then 9462 # AIX 5 now supports IA64 processor 9463 lt_prog_compiler_static='-Bstatic' 9464 fi 9465 lt_prog_compiler_pic='-fPIC' 9466 ;; 9467 9468 amigaos*) 9469 case $host_cpu in 9470 powerpc) 9471 # see comment about AmigaOS4 .so support 9472 lt_prog_compiler_pic='-fPIC' 9473 ;; 9474 m68k) 9475 # FIXME: we need at least 68020 code to build shared libraries, but 9476 # adding the '-m68020' flag to GCC prevents building anything better, 9477 # like '-m68040'. 9478 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9479 ;; 9480 esac 9481 ;; 9482 9483 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9484 # PIC is the default for these OSes. 9485 ;; 9486 9487 mingw* | cygwin* | pw32* | os2* | cegcc*) 9488 # This hack is so that the source file can tell whether it is being 9489 # built for inclusion in a dll (and should export symbols for example). 9490 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9491 # (--disable-auto-import) libraries 9492 lt_prog_compiler_pic='-DDLL_EXPORT' 9493 case $host_os in 9494 os2*) 9495 lt_prog_compiler_static='$wl-static' 9496 ;; 9497 esac 9498 ;; 9499 9500 darwin* | rhapsody*) 9501 # PIC is the default on this platform 9502 # Common symbols not allowed in MH_DYLIB files 9503 lt_prog_compiler_pic='-fno-common' 9504 ;; 9505 9506 haiku*) 9507 # PIC is the default for Haiku. 9508 # The "-static" flag exists, but is broken. 9509 lt_prog_compiler_static= 9510 ;; 9511 9512 hpux*) 9513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9515 # sets the default TLS model and affects inlining. 9516 case $host_cpu in 9517 hppa*64*) 9518 # +Z the default 9519 ;; 9520 *) 9521 lt_prog_compiler_pic='-fPIC' 9522 ;; 9523 esac 9524 ;; 9525 9526 interix[3-9]*) 9527 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9528 # Instead, we relocate shared libraries at runtime. 9529 ;; 9530 9531 msdosdjgpp*) 9532 # Just because we use GCC doesn't mean we suddenly get shared libraries 9533 # on systems that don't support them. 9534 lt_prog_compiler_can_build_shared=no 9535 enable_shared=no 9536 ;; 9537 9538 *nto* | *qnx*) 9539 # QNX uses GNU C++, but need to define -shared option too, otherwise 9540 # it will coredump. 9541 lt_prog_compiler_pic='-fPIC -shared' 9542 ;; 9543 9544 sysv4*MP*) 9545 if test -d /usr/nec; then 9546 lt_prog_compiler_pic=-Kconform_pic 9547 fi 9548 ;; 9549 9550 *) 9551 lt_prog_compiler_pic='-fPIC' 9552 ;; 9553 esac 9554 9555 case $cc_basename in 9556 nvcc*) # Cuda Compiler Driver 2.2 9557 lt_prog_compiler_wl='-Xlinker ' 9558 if test -n "$lt_prog_compiler_pic"; then 9559 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9560 fi 9561 ;; 9562 esac 9563 else 9564 # PORTME Check for flag to pass linker flags through the system compiler. 9565 case $host_os in 9566 aix*) 9567 lt_prog_compiler_wl='-Wl,' 9568 if test ia64 = "$host_cpu"; then 9569 # AIX 5 now supports IA64 processor 9570 lt_prog_compiler_static='-Bstatic' 9571 else 9572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9573 fi 9574 ;; 9575 9576 darwin* | rhapsody*) 9577 # PIC is the default on this platform 9578 # Common symbols not allowed in MH_DYLIB files 9579 lt_prog_compiler_pic='-fno-common' 9580 case $cc_basename in 9581 nagfor*) 9582 # NAG Fortran compiler 9583 lt_prog_compiler_wl='-Wl,-Wl,,' 9584 lt_prog_compiler_pic='-PIC' 9585 lt_prog_compiler_static='-Bstatic' 9586 ;; 9587 esac 9588 ;; 9589 9590 mingw* | cygwin* | pw32* | os2* | cegcc*) 9591 # This hack is so that the source file can tell whether it is being 9592 # built for inclusion in a dll (and should export symbols for example). 9593 lt_prog_compiler_pic='-DDLL_EXPORT' 9594 case $host_os in 9595 os2*) 9596 lt_prog_compiler_static='$wl-static' 9597 ;; 9598 esac 9599 ;; 9600 9601 hpux9* | hpux10* | hpux11*) 9602 lt_prog_compiler_wl='-Wl,' 9603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9604 # not for PA HP-UX. 9605 case $host_cpu in 9606 hppa*64*|ia64*) 9607 # +Z the default 9608 ;; 9609 *) 9610 lt_prog_compiler_pic='+Z' 9611 ;; 9612 esac 9613 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9614 lt_prog_compiler_static='$wl-a ${wl}archive' 9615 ;; 9616 9617 irix5* | irix6* | nonstopux*) 9618 lt_prog_compiler_wl='-Wl,' 9619 # PIC (with -KPIC) is the default. 9620 lt_prog_compiler_static='-non_shared' 9621 ;; 9622 9623 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9624 case $cc_basename in 9625 # old Intel for x86_64, which still supported -KPIC. 9626 ecc*) 9627 lt_prog_compiler_wl='-Wl,' 9628 lt_prog_compiler_pic='-KPIC' 9629 lt_prog_compiler_static='-static' 9630 ;; 9631 # icc used to be incompatible with GCC. 9632 # ICC 10 doesn't accept -KPIC any more. 9633 icc* | ifort*) 9634 lt_prog_compiler_wl='-Wl,' 9635 lt_prog_compiler_pic='-fPIC' 9636 lt_prog_compiler_static='-static' 9637 ;; 9638 # Lahey Fortran 8.1. 9639 lf95*) 9640 lt_prog_compiler_wl='-Wl,' 9641 lt_prog_compiler_pic='--shared' 9642 lt_prog_compiler_static='--static' 9643 ;; 9644 nagfor*) 9645 # NAG Fortran compiler 9646 lt_prog_compiler_wl='-Wl,-Wl,,' 9647 lt_prog_compiler_pic='-PIC' 9648 lt_prog_compiler_static='-Bstatic' 9649 ;; 9650 tcc*) 9651 # Fabrice Bellard et al's Tiny C Compiler 9652 lt_prog_compiler_wl='-Wl,' 9653 lt_prog_compiler_pic='-fPIC' 9654 lt_prog_compiler_static='-static' 9655 ;; 9656 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9657 # Portland Group compilers (*not* the Pentium gcc compiler, 9658 # which looks to be a dead project) 9659 lt_prog_compiler_wl='-Wl,' 9660 lt_prog_compiler_pic='-fpic' 9661 lt_prog_compiler_static='-Bstatic' 9662 ;; 9663 ccc*) 9664 lt_prog_compiler_wl='-Wl,' 9665 # All Alpha code is PIC. 9666 lt_prog_compiler_static='-non_shared' 9667 ;; 9668 xl* | bgxl* | bgf* | mpixl*) 9669 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9670 lt_prog_compiler_wl='-Wl,' 9671 lt_prog_compiler_pic='-qpic' 9672 lt_prog_compiler_static='-qstaticlink' 9673 ;; 9674 *) 9675 case `$CC -V 2>&1 | $SED 5q` in 9676 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9677 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9678 lt_prog_compiler_pic='-KPIC' 9679 lt_prog_compiler_static='-Bstatic' 9680 lt_prog_compiler_wl='' 9681 ;; 9682 *Sun\ F* | *Sun*Fortran*) 9683 lt_prog_compiler_pic='-KPIC' 9684 lt_prog_compiler_static='-Bstatic' 9685 lt_prog_compiler_wl='-Qoption ld ' 9686 ;; 9687 *Sun\ C*) 9688 # Sun C 5.9 9689 lt_prog_compiler_pic='-KPIC' 9690 lt_prog_compiler_static='-Bstatic' 9691 lt_prog_compiler_wl='-Wl,' 9692 ;; 9693 *Intel*\ [CF]*Compiler*) 9694 lt_prog_compiler_wl='-Wl,' 9695 lt_prog_compiler_pic='-fPIC' 9696 lt_prog_compiler_static='-static' 9697 ;; 9698 *Portland\ Group*) 9699 lt_prog_compiler_wl='-Wl,' 9700 lt_prog_compiler_pic='-fpic' 9701 lt_prog_compiler_static='-Bstatic' 9702 ;; 9703 esac 9704 ;; 9705 esac 9706 ;; 9707 9708 newsos6) 9709 lt_prog_compiler_pic='-KPIC' 9710 lt_prog_compiler_static='-Bstatic' 9711 ;; 9712 9713 *nto* | *qnx*) 9714 # QNX uses GNU C++, but need to define -shared option too, otherwise 9715 # it will coredump. 9716 lt_prog_compiler_pic='-fPIC -shared' 9717 ;; 9718 9719 osf3* | osf4* | osf5*) 9720 lt_prog_compiler_wl='-Wl,' 9721 # All OSF/1 code is PIC. 9722 lt_prog_compiler_static='-non_shared' 9723 ;; 9724 9725 rdos*) 9726 lt_prog_compiler_static='-non_shared' 9727 ;; 9728 9729 solaris*) 9730 lt_prog_compiler_pic='-KPIC' 9731 lt_prog_compiler_static='-Bstatic' 9732 case $cc_basename in 9733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9734 lt_prog_compiler_wl='-Qoption ld ';; 9735 *) 9736 lt_prog_compiler_wl='-Wl,';; 9737 esac 9738 ;; 9739 9740 sunos4*) 9741 lt_prog_compiler_wl='-Qoption ld ' 9742 lt_prog_compiler_pic='-PIC' 9743 lt_prog_compiler_static='-Bstatic' 9744 ;; 9745 9746 sysv4 | sysv4.2uw2* | sysv4.3*) 9747 lt_prog_compiler_wl='-Wl,' 9748 lt_prog_compiler_pic='-KPIC' 9749 lt_prog_compiler_static='-Bstatic' 9750 ;; 9751 9752 sysv4*MP*) 9753 if test -d /usr/nec; then 9754 lt_prog_compiler_pic='-Kconform_pic' 9755 lt_prog_compiler_static='-Bstatic' 9756 fi 9757 ;; 9758 9759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9760 lt_prog_compiler_wl='-Wl,' 9761 lt_prog_compiler_pic='-KPIC' 9762 lt_prog_compiler_static='-Bstatic' 9763 ;; 9764 9765 unicos*) 9766 lt_prog_compiler_wl='-Wl,' 9767 lt_prog_compiler_can_build_shared=no 9768 ;; 9769 9770 uts4*) 9771 lt_prog_compiler_pic='-pic' 9772 lt_prog_compiler_static='-Bstatic' 9773 ;; 9774 9775 *) 9776 lt_prog_compiler_can_build_shared=no 9777 ;; 9778 esac 9779 fi 9780 9781case $host_os in 9782 # For platforms that do not support PIC, -DPIC is meaningless: 9783 *djgpp*) 9784 lt_prog_compiler_pic= 9785 ;; 9786 *) 9787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9788 ;; 9789esac 9790 9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9792printf %s "checking for $compiler option to produce PIC... " >&6; } 9793if test ${lt_cv_prog_compiler_pic+y} 9794then : 9795 printf %s "(cached) " >&6 9796else $as_nop 9797 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9798fi 9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9800printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9801lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9802 9803# 9804# Check to make sure the PIC flag actually works. 9805# 9806if test -n "$lt_prog_compiler_pic"; then 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9808printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9809if test ${lt_cv_prog_compiler_pic_works+y} 9810then : 9811 printf %s "(cached) " >&6 9812else $as_nop 9813 lt_cv_prog_compiler_pic_works=no 9814 ac_outfile=conftest.$ac_objext 9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9817 # Insert the option either (1) after the last *FLAGS variable, or 9818 # (2) before a word containing "conftest.", or (3) at the end. 9819 # Note that $ac_compile itself does not contain backslashes and begins 9820 # with a dollar sign (not a hyphen), so the echo should work correctly. 9821 # The option is referenced via a variable to avoid confusing sed. 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>conftest.err) 9828 ac_status=$? 9829 cat conftest.err >&5 9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9831 if (exit $ac_status) && test -s "$ac_outfile"; then 9832 # The compiler can only warn and ignore the option if not recognized 9833 # So say no if there are warnings other than the usual output. 9834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9837 lt_cv_prog_compiler_pic_works=yes 9838 fi 9839 fi 9840 $RM conftest* 9841 9842fi 9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9844printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9845 9846if test yes = "$lt_cv_prog_compiler_pic_works"; then 9847 case $lt_prog_compiler_pic in 9848 "" | " "*) ;; 9849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9850 esac 9851else 9852 lt_prog_compiler_pic= 9853 lt_prog_compiler_can_build_shared=no 9854fi 9855 9856fi 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868# 9869# Check to make sure the static flag actually works. 9870# 9871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9873printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9874if test ${lt_cv_prog_compiler_static_works+y} 9875then : 9876 printf %s "(cached) " >&6 9877else $as_nop 9878 lt_cv_prog_compiler_static_works=no 9879 save_LDFLAGS=$LDFLAGS 9880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9881 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9883 # The linker can only warn and ignore the option if not recognized 9884 # So say no if there are warnings 9885 if test -s conftest.err; then 9886 # Append any errors to the config.log. 9887 cat conftest.err 1>&5 9888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9890 if diff conftest.exp conftest.er2 >/dev/null; then 9891 lt_cv_prog_compiler_static_works=yes 9892 fi 9893 else 9894 lt_cv_prog_compiler_static_works=yes 9895 fi 9896 fi 9897 $RM -r conftest* 9898 LDFLAGS=$save_LDFLAGS 9899 9900fi 9901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9902printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9903 9904if test yes = "$lt_cv_prog_compiler_static_works"; then 9905 : 9906else 9907 lt_prog_compiler_static= 9908fi 9909 9910 9911 9912 9913 9914 9915 9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9917printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9918if test ${lt_cv_prog_compiler_c_o+y} 9919then : 9920 printf %s "(cached) " >&6 9921else $as_nop 9922 lt_cv_prog_compiler_c_o=no 9923 $RM -r conftest 2>/dev/null 9924 mkdir conftest 9925 cd conftest 9926 mkdir out 9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9928 9929 lt_compiler_flag="-o out/conftest2.$ac_objext" 9930 # Insert the option either (1) after the last *FLAGS variable, or 9931 # (2) before a word containing "conftest.", or (3) at the end. 9932 # Note that $ac_compile itself does not contain backslashes and begins 9933 # with a dollar sign (not a hyphen), so the echo should work correctly. 9934 lt_compile=`echo "$ac_compile" | $SED \ 9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9937 -e 's:$: $lt_compiler_flag:'` 9938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9939 (eval "$lt_compile" 2>out/conftest.err) 9940 ac_status=$? 9941 cat out/conftest.err >&5 9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9944 then 9945 # The compiler can only warn and ignore the option if not recognized 9946 # So say no if there are warnings 9947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9950 lt_cv_prog_compiler_c_o=yes 9951 fi 9952 fi 9953 chmod u+w . 2>&5 9954 $RM conftest* 9955 # SGI C++ compiler will create directory out/ii_files/ for 9956 # template instantiation 9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9958 $RM out/* && rmdir out 9959 cd .. 9960 $RM -r conftest 9961 $RM conftest* 9962 9963fi 9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9965printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9966 9967 9968 9969 9970 9971 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9973printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9974if test ${lt_cv_prog_compiler_c_o+y} 9975then : 9976 printf %s "(cached) " >&6 9977else $as_nop 9978 lt_cv_prog_compiler_c_o=no 9979 $RM -r conftest 2>/dev/null 9980 mkdir conftest 9981 cd conftest 9982 mkdir out 9983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9984 9985 lt_compiler_flag="-o out/conftest2.$ac_objext" 9986 # Insert the option either (1) after the last *FLAGS variable, or 9987 # (2) before a word containing "conftest.", or (3) at the end. 9988 # Note that $ac_compile itself does not contain backslashes and begins 9989 # with a dollar sign (not a hyphen), so the echo should work correctly. 9990 lt_compile=`echo "$ac_compile" | $SED \ 9991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9993 -e 's:$: $lt_compiler_flag:'` 9994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9995 (eval "$lt_compile" 2>out/conftest.err) 9996 ac_status=$? 9997 cat out/conftest.err >&5 9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9999 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10000 then 10001 # The compiler can only warn and ignore the option if not recognized 10002 # So say no if there are warnings 10003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10006 lt_cv_prog_compiler_c_o=yes 10007 fi 10008 fi 10009 chmod u+w . 2>&5 10010 $RM conftest* 10011 # SGI C++ compiler will create directory out/ii_files/ for 10012 # template instantiation 10013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10014 $RM out/* && rmdir out 10015 cd .. 10016 $RM -r conftest 10017 $RM conftest* 10018 10019fi 10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10021printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10022 10023 10024 10025 10026hard_links=nottested 10027if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10028 # do not overwrite the value of need_locks provided by the user 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10030printf %s "checking if we can lock with hard links... " >&6; } 10031 hard_links=yes 10032 $RM conftest* 10033 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10034 touch conftest.a 10035 ln conftest.a conftest.b 2>&5 || hard_links=no 10036 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10038printf "%s\n" "$hard_links" >&6; } 10039 if test no = "$hard_links"; then 10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10041printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10042 need_locks=warn 10043 fi 10044else 10045 need_locks=no 10046fi 10047 10048 10049 10050 10051 10052 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10054printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10055 10056 runpath_var= 10057 allow_undefined_flag= 10058 always_export_symbols=no 10059 archive_cmds= 10060 archive_expsym_cmds= 10061 compiler_needs_object=no 10062 enable_shared_with_static_runtimes=no 10063 export_dynamic_flag_spec= 10064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10065 hardcode_automatic=no 10066 hardcode_direct=no 10067 hardcode_direct_absolute=no 10068 hardcode_libdir_flag_spec= 10069 hardcode_libdir_separator= 10070 hardcode_minus_L=no 10071 hardcode_shlibpath_var=unsupported 10072 inherit_rpath=no 10073 link_all_deplibs=unknown 10074 module_cmds= 10075 module_expsym_cmds= 10076 old_archive_from_new_cmds= 10077 old_archive_from_expsyms_cmds= 10078 thread_safe_flag_spec= 10079 whole_archive_flag_spec= 10080 # include_expsyms should be a list of space-separated symbols to be *always* 10081 # included in the symbol list 10082 include_expsyms= 10083 # exclude_expsyms can be an extended regexp of symbols to exclude 10084 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10085 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10086 # as well as any symbol that contains 'd'. 10087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10089 # platforms (ab)use it in PIC code, but their linkers get confused if 10090 # the symbol is explicitly referenced. Since portable code cannot 10091 # rely on this symbol name, it's probably fine to never include it in 10092 # preloaded symbol tables. 10093 # Exclude shared library initialization/finalization symbols. 10094 extract_expsyms_cmds= 10095 10096 case $host_os in 10097 cygwin* | mingw* | pw32* | cegcc*) 10098 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10099 # When not using gcc, we currently assume that we are using 10100 # Microsoft Visual C++ or Intel C++ Compiler. 10101 if test yes != "$GCC"; then 10102 with_gnu_ld=no 10103 fi 10104 ;; 10105 interix*) 10106 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10107 with_gnu_ld=yes 10108 ;; 10109 openbsd* | bitrig*) 10110 with_gnu_ld=no 10111 ;; 10112 esac 10113 10114 ld_shlibs=yes 10115 10116 # On some targets, GNU ld is compatible enough with the native linker 10117 # that we're better off using the native interface for both. 10118 lt_use_gnu_ld_interface=no 10119 if test yes = "$with_gnu_ld"; then 10120 case $host_os in 10121 aix*) 10122 # The AIX port of GNU ld has always aspired to compatibility 10123 # with the native linker. However, as the warning in the GNU ld 10124 # block says, versions before 2.19.5* couldn't really create working 10125 # shared libraries, regardless of the interface used. 10126 case `$LD -v 2>&1` in 10127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10129 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10130 *) 10131 lt_use_gnu_ld_interface=yes 10132 ;; 10133 esac 10134 ;; 10135 *) 10136 lt_use_gnu_ld_interface=yes 10137 ;; 10138 esac 10139 fi 10140 10141 if test yes = "$lt_use_gnu_ld_interface"; then 10142 # If archive_cmds runs LD, not CC, wlarc should be empty 10143 wlarc='$wl' 10144 10145 # Set some defaults for GNU ld with shared library support. These 10146 # are reset later if shared libraries are not supported. Putting them 10147 # here allows them to be overridden if necessary. 10148 runpath_var=LD_RUN_PATH 10149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10150 export_dynamic_flag_spec='$wl--export-dynamic' 10151 # ancient GNU ld didn't support --whole-archive et. al. 10152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10153 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10154 else 10155 whole_archive_flag_spec= 10156 fi 10157 supports_anon_versioning=no 10158 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10159 *GNU\ gold*) supports_anon_versioning=yes ;; 10160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10163 *\ 2.11.*) ;; # other 2.11 versions 10164 *) supports_anon_versioning=yes ;; 10165 esac 10166 10167 # See if GNU ld supports shared libraries. 10168 case $host_os in 10169 aix[3-9]*) 10170 # On AIX/PPC, the GNU linker is very broken 10171 if test ia64 != "$host_cpu"; then 10172 ld_shlibs=no 10173 cat <<_LT_EOF 1>&2 10174 10175*** Warning: the GNU linker, at least up to release 2.19, is reported 10176*** to be unable to reliably create shared libraries on AIX. 10177*** Therefore, libtool is disabling shared libraries support. If you 10178*** really care for shared libraries, you may want to install binutils 10179*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10180*** You will then need to restart the configuration process. 10181 10182_LT_EOF 10183 fi 10184 ;; 10185 10186 amigaos*) 10187 case $host_cpu in 10188 powerpc) 10189 # see comment about AmigaOS4 .so support 10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10191 archive_expsym_cmds='' 10192 ;; 10193 m68k) 10194 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)' 10195 hardcode_libdir_flag_spec='-L$libdir' 10196 hardcode_minus_L=yes 10197 ;; 10198 esac 10199 ;; 10200 10201 beos*) 10202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10203 allow_undefined_flag=unsupported 10204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10205 # support --undefined. This deserves some investigation. FIXME 10206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10207 else 10208 ld_shlibs=no 10209 fi 10210 ;; 10211 10212 cygwin* | mingw* | pw32* | cegcc*) 10213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10214 # as there is no search path for DLLs. 10215 hardcode_libdir_flag_spec='-L$libdir' 10216 export_dynamic_flag_spec='$wl--export-all-symbols' 10217 allow_undefined_flag=unsupported 10218 always_export_symbols=no 10219 enable_shared_with_static_runtimes=yes 10220 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' 10221 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10222 10223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10225 # If the export-symbols file already is a .def file, use it as 10226 # is; otherwise, prepend EXPORTS... 10227 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10228 cp $export_symbols $output_objdir/$soname.def; 10229 else 10230 echo EXPORTS > $output_objdir/$soname.def; 10231 cat $export_symbols >> $output_objdir/$soname.def; 10232 fi~ 10233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10234 else 10235 ld_shlibs=no 10236 fi 10237 ;; 10238 10239 haiku*) 10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10241 link_all_deplibs=yes 10242 ;; 10243 10244 os2*) 10245 hardcode_libdir_flag_spec='-L$libdir' 10246 hardcode_minus_L=yes 10247 allow_undefined_flag=unsupported 10248 shrext_cmds=.dll 10249 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10252 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10253 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10255 emximp -o $lib $output_objdir/$libname.def' 10256 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10259 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10260 prefix_cmds="$SED"~ 10261 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10262 prefix_cmds="$prefix_cmds -e 1d"; 10263 fi~ 10264 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10265 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10267 emximp -o $lib $output_objdir/$libname.def' 10268 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10269 enable_shared_with_static_runtimes=yes 10270 file_list_spec='@' 10271 ;; 10272 10273 interix[3-9]*) 10274 hardcode_direct=no 10275 hardcode_shlibpath_var=no 10276 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10277 export_dynamic_flag_spec='$wl-E' 10278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10279 # Instead, shared libraries are loaded at an image base (0x10000000 by 10280 # default) and relocated if they conflict, which is a slow very memory 10281 # consuming and fragmenting process. To avoid this, we pick a random, 10282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10283 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10285 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' 10286 ;; 10287 10288 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10289 tmp_diet=no 10290 if test linux-dietlibc = "$host_os"; then 10291 case $cc_basename in 10292 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10293 esac 10294 fi 10295 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10296 && test no = "$tmp_diet" 10297 then 10298 tmp_addflag=' $pic_flag' 10299 tmp_sharedflag='-shared' 10300 case $cc_basename,$host_cpu in 10301 pgcc*) # Portland Group C compiler 10302 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' 10303 tmp_addflag=' $pic_flag' 10304 ;; 10305 pgf77* | pgf90* | pgf95* | pgfortran*) 10306 # Portland Group f77 and f90 compilers 10307 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' 10308 tmp_addflag=' $pic_flag -Mnomain' ;; 10309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10310 tmp_addflag=' -i_dynamic' ;; 10311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10312 tmp_addflag=' -i_dynamic -nofor_main' ;; 10313 ifc* | ifort*) # Intel Fortran compiler 10314 tmp_addflag=' -nofor_main' ;; 10315 lf95*) # Lahey Fortran 8.1 10316 whole_archive_flag_spec= 10317 tmp_sharedflag='--shared' ;; 10318 nagfor*) # NAGFOR 5.3 10319 tmp_sharedflag='-Wl,-shared' ;; 10320 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10321 tmp_sharedflag='-qmkshrobj' 10322 tmp_addflag= ;; 10323 nvcc*) # Cuda Compiler Driver 2.2 10324 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' 10325 compiler_needs_object=yes 10326 ;; 10327 esac 10328 case `$CC -V 2>&1 | $SED 5q` in 10329 *Sun\ C*) # Sun C 5.9 10330 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' 10331 compiler_needs_object=yes 10332 tmp_sharedflag='-G' ;; 10333 *Sun\ F*) # Sun Fortran 8.3 10334 tmp_sharedflag='-G' ;; 10335 esac 10336 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10337 10338 if test yes = "$supports_anon_versioning"; then 10339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10340 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10341 echo "local: *; };" >> $output_objdir/$libname.ver~ 10342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10343 fi 10344 10345 case $cc_basename in 10346 tcc*) 10347 export_dynamic_flag_spec='-rdynamic' 10348 ;; 10349 xlf* | bgf* | bgxlf* | mpixlf*) 10350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10351 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10353 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10354 if test yes = "$supports_anon_versioning"; then 10355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10356 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10357 echo "local: *; };" >> $output_objdir/$libname.ver~ 10358 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10359 fi 10360 ;; 10361 esac 10362 else 10363 ld_shlibs=no 10364 fi 10365 ;; 10366 10367 netbsd*) 10368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10370 wlarc= 10371 else 10372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10374 fi 10375 ;; 10376 10377 solaris*) 10378 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10379 ld_shlibs=no 10380 cat <<_LT_EOF 1>&2 10381 10382*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10383*** create shared libraries on Solaris systems. Therefore, libtool 10384*** is disabling shared libraries support. We urge you to upgrade GNU 10385*** binutils to release 2.9.1 or newer. Another option is to modify 10386*** your PATH or compiler configuration so that the native linker is 10387*** used, and then restart. 10388 10389_LT_EOF 10390 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10392 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10393 else 10394 ld_shlibs=no 10395 fi 10396 ;; 10397 10398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10399 case `$LD -v 2>&1` in 10400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10401 ld_shlibs=no 10402 cat <<_LT_EOF 1>&2 10403 10404*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10405*** reliably create shared libraries on SCO systems. Therefore, libtool 10406*** is disabling shared libraries support. We urge you to upgrade GNU 10407*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10408*** your PATH or compiler configuration so that the native linker is 10409*** used, and then restart. 10410 10411_LT_EOF 10412 ;; 10413 *) 10414 # For security reasons, it is highly recommended that you always 10415 # use absolute paths for naming shared libraries, and exclude the 10416 # DT_RUNPATH tag from executables and libraries. But doing so 10417 # requires that you compile everything twice, which is a pain. 10418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10422 else 10423 ld_shlibs=no 10424 fi 10425 ;; 10426 esac 10427 ;; 10428 10429 sunos4*) 10430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10431 wlarc= 10432 hardcode_direct=yes 10433 hardcode_shlibpath_var=no 10434 ;; 10435 10436 *) 10437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10440 else 10441 ld_shlibs=no 10442 fi 10443 ;; 10444 esac 10445 10446 if test no = "$ld_shlibs"; then 10447 runpath_var= 10448 hardcode_libdir_flag_spec= 10449 export_dynamic_flag_spec= 10450 whole_archive_flag_spec= 10451 fi 10452 else 10453 # PORTME fill in a description of your system's linker (not GNU ld) 10454 case $host_os in 10455 aix3*) 10456 allow_undefined_flag=unsupported 10457 always_export_symbols=yes 10458 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' 10459 # Note: this linker hardcodes the directories in LIBPATH if there 10460 # are no directories specified by -L. 10461 hardcode_minus_L=yes 10462 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10463 # Neither direct hardcoding nor static linking is supported with a 10464 # broken collect2. 10465 hardcode_direct=unsupported 10466 fi 10467 ;; 10468 10469 aix[4-9]*) 10470 if test ia64 = "$host_cpu"; then 10471 # On IA64, the linker does run time linking by default, so we don't 10472 # have to do anything special. 10473 aix_use_runtimelinking=no 10474 exp_sym_flag='-Bexport' 10475 no_entry_flag= 10476 else 10477 # If we're using GNU nm, then we don't want the "-C" option. 10478 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10479 # Without the "-l" option, or with the "-B" option, AIX nm treats 10480 # weak defined symbols like other global defined symbols, whereas 10481 # GNU nm marks them as "W". 10482 # While the 'weak' keyword is ignored in the Export File, we need 10483 # it in the Import File for the 'aix-soname' feature, so we have 10484 # to replace the "-B" option with "-P" for AIX nm. 10485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10486 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' 10487 else 10488 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' 10489 fi 10490 aix_use_runtimelinking=no 10491 10492 # Test if we are trying to use run time linking or normal 10493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10494 # have runtime linking enabled, and use it for executables. 10495 # For shared libraries, we enable/disable runtime linking 10496 # depending on the kind of the shared library created - 10497 # when "with_aix_soname,aix_use_runtimelinking" is: 10498 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10499 # "aix,yes" lib.so shared, rtl:yes, for executables 10500 # lib.a static archive 10501 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10502 # lib.a(lib.so.V) shared, rtl:no, for executables 10503 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10504 # lib.a(lib.so.V) shared, rtl:no 10505 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10506 # lib.a static archive 10507 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10508 for ld_flag in $LDFLAGS; do 10509 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10510 aix_use_runtimelinking=yes 10511 break 10512 fi 10513 done 10514 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10515 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10516 # so we don't have lib.a shared libs to link our executables. 10517 # We have to force runtime linking in this case. 10518 aix_use_runtimelinking=yes 10519 LDFLAGS="$LDFLAGS -Wl,-brtl" 10520 fi 10521 ;; 10522 esac 10523 10524 exp_sym_flag='-bexport' 10525 no_entry_flag='-bnoentry' 10526 fi 10527 10528 # When large executables or shared objects are built, AIX ld can 10529 # have problems creating the table of contents. If linking a library 10530 # or program results in "error TOC overflow" add -mminimal-toc to 10531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10533 10534 archive_cmds='' 10535 hardcode_direct=yes 10536 hardcode_direct_absolute=yes 10537 hardcode_libdir_separator=':' 10538 link_all_deplibs=yes 10539 file_list_spec='$wl-f,' 10540 case $with_aix_soname,$aix_use_runtimelinking in 10541 aix,*) ;; # traditional, no import file 10542 svr4,* | *,yes) # use import file 10543 # The Import File defines what to hardcode. 10544 hardcode_direct=no 10545 hardcode_direct_absolute=no 10546 ;; 10547 esac 10548 10549 if test yes = "$GCC"; then 10550 case $host_os in aix4.[012]|aix4.[012].*) 10551 # We only want to do this on AIX 4.2 and lower, the check 10552 # below for broken collect2 doesn't work under 4.3+ 10553 collect2name=`$CC -print-prog-name=collect2` 10554 if test -f "$collect2name" && 10555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10556 then 10557 # We have reworked collect2 10558 : 10559 else 10560 # We have old collect2 10561 hardcode_direct=unsupported 10562 # It fails to find uninstalled libraries when the uninstalled 10563 # path is not listed in the libpath. Setting hardcode_minus_L 10564 # to unsupported forces relinking 10565 hardcode_minus_L=yes 10566 hardcode_libdir_flag_spec='-L$libdir' 10567 hardcode_libdir_separator= 10568 fi 10569 ;; 10570 esac 10571 shared_flag='-shared' 10572 if test yes = "$aix_use_runtimelinking"; then 10573 shared_flag="$shared_flag "'$wl-G' 10574 fi 10575 # Need to ensure runtime linking is disabled for the traditional 10576 # shared library, or the linker may eventually find shared libraries 10577 # /with/ Import File - we do not want to mix them. 10578 shared_flag_aix='-shared' 10579 shared_flag_svr4='-shared $wl-G' 10580 else 10581 # not using gcc 10582 if test ia64 = "$host_cpu"; then 10583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10584 # chokes on -Wl,-G. The following line is correct: 10585 shared_flag='-G' 10586 else 10587 if test yes = "$aix_use_runtimelinking"; then 10588 shared_flag='$wl-G' 10589 else 10590 shared_flag='$wl-bM:SRE' 10591 fi 10592 shared_flag_aix='$wl-bM:SRE' 10593 shared_flag_svr4='$wl-G' 10594 fi 10595 fi 10596 10597 export_dynamic_flag_spec='$wl-bexpall' 10598 # It seems that -bexpall does not export symbols beginning with 10599 # underscore (_), so it is better to generate a list of symbols to export. 10600 always_export_symbols=yes 10601 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10602 # Warning - without using the other runtime loading flags (-brtl), 10603 # -berok will link without error, but may produce a broken library. 10604 allow_undefined_flag='-berok' 10605 # Determine the default libpath from the value encoded in an 10606 # empty executable. 10607 if test set = "${lt_cv_aix_libpath+set}"; then 10608 aix_libpath=$lt_cv_aix_libpath 10609else 10610 if test ${lt_cv_aix_libpath_+y} 10611then : 10612 printf %s "(cached) " >&6 10613else $as_nop 10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10615/* end confdefs.h. */ 10616 10617int 10618main (void) 10619{ 10620 10621 ; 10622 return 0; 10623} 10624_ACEOF 10625if ac_fn_c_try_link "$LINENO" 10626then : 10627 10628 lt_aix_libpath_sed=' 10629 /Import File Strings/,/^$/ { 10630 /^0/ { 10631 s/^0 *\([^ ]*\) *$/\1/ 10632 p 10633 } 10634 }' 10635 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10636 # Check for a 64-bit object if we didn't find anything. 10637 if test -z "$lt_cv_aix_libpath_"; then 10638 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10639 fi 10640fi 10641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10642 conftest$ac_exeext conftest.$ac_ext 10643 if test -z "$lt_cv_aix_libpath_"; then 10644 lt_cv_aix_libpath_=/usr/lib:/lib 10645 fi 10646 10647fi 10648 10649 aix_libpath=$lt_cv_aix_libpath_ 10650fi 10651 10652 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10653 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 10654 else 10655 if test ia64 = "$host_cpu"; then 10656 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10657 allow_undefined_flag="-z nodefs" 10658 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" 10659 else 10660 # Determine the default libpath from the value encoded in an 10661 # empty executable. 10662 if test set = "${lt_cv_aix_libpath+set}"; then 10663 aix_libpath=$lt_cv_aix_libpath 10664else 10665 if test ${lt_cv_aix_libpath_+y} 10666then : 10667 printf %s "(cached) " >&6 10668else $as_nop 10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10670/* end confdefs.h. */ 10671 10672int 10673main (void) 10674{ 10675 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680if ac_fn_c_try_link "$LINENO" 10681then : 10682 10683 lt_aix_libpath_sed=' 10684 /Import File Strings/,/^$/ { 10685 /^0/ { 10686 s/^0 *\([^ ]*\) *$/\1/ 10687 p 10688 } 10689 }' 10690 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10691 # Check for a 64-bit object if we didn't find anything. 10692 if test -z "$lt_cv_aix_libpath_"; then 10693 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10694 fi 10695fi 10696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10697 conftest$ac_exeext conftest.$ac_ext 10698 if test -z "$lt_cv_aix_libpath_"; then 10699 lt_cv_aix_libpath_=/usr/lib:/lib 10700 fi 10701 10702fi 10703 10704 aix_libpath=$lt_cv_aix_libpath_ 10705fi 10706 10707 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10708 # Warning - without using the other run time loading flags, 10709 # -berok will link without error, but may produce a broken library. 10710 no_undefined_flag=' $wl-bernotok' 10711 allow_undefined_flag=' $wl-berok' 10712 if test yes = "$with_gnu_ld"; then 10713 # We only use this code for GNU lds that support --whole-archive. 10714 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10715 else 10716 # Exported symbols can be pulled into shared objects from archives 10717 whole_archive_flag_spec='$convenience' 10718 fi 10719 archive_cmds_need_lc=yes 10720 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10721 # -brtl affects multiple linker settings, -berok does not and is overridden later 10722 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10723 if test svr4 != "$with_aix_soname"; then 10724 # This is similar to how AIX traditionally builds its shared libraries. 10725 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' 10726 fi 10727 if test aix != "$with_aix_soname"; then 10728 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' 10729 else 10730 # used by -dlpreopen to get the symbols 10731 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10732 fi 10733 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10734 fi 10735 fi 10736 ;; 10737 10738 amigaos*) 10739 case $host_cpu in 10740 powerpc) 10741 # see comment about AmigaOS4 .so support 10742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10743 archive_expsym_cmds='' 10744 ;; 10745 m68k) 10746 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)' 10747 hardcode_libdir_flag_spec='-L$libdir' 10748 hardcode_minus_L=yes 10749 ;; 10750 esac 10751 ;; 10752 10753 bsdi[45]*) 10754 export_dynamic_flag_spec=-rdynamic 10755 ;; 10756 10757 cygwin* | mingw* | pw32* | cegcc*) 10758 # When not using gcc, we currently assume that we are using 10759 # Microsoft Visual C++ or Intel C++ Compiler. 10760 # hardcode_libdir_flag_spec is actually meaningless, as there is 10761 # no search path for DLLs. 10762 case $cc_basename in 10763 cl* | icl*) 10764 # Native MSVC or ICC 10765 hardcode_libdir_flag_spec=' ' 10766 allow_undefined_flag=unsupported 10767 always_export_symbols=yes 10768 file_list_spec='@' 10769 # Tell ltmain to make .lib files, not .a files. 10770 libext=lib 10771 # Tell ltmain to make .dll files, not .so files. 10772 shrext_cmds=.dll 10773 # FIXME: Setting linknames here is a bad hack. 10774 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10775 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10776 cp "$export_symbols" "$output_objdir/$soname.def"; 10777 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10778 else 10779 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10780 fi~ 10781 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10782 linknames=' 10783 # The linker will not automatically build a static lib if we build a DLL. 10784 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10785 enable_shared_with_static_runtimes=yes 10786 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10788 # Don't use ranlib 10789 old_postinstall_cmds='chmod 644 $oldlib' 10790 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10791 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10792 case $lt_outputfile in 10793 *.exe|*.EXE) ;; 10794 *) 10795 lt_outputfile=$lt_outputfile.exe 10796 lt_tool_outputfile=$lt_tool_outputfile.exe 10797 ;; 10798 esac~ 10799 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10800 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10801 $RM "$lt_outputfile.manifest"; 10802 fi' 10803 ;; 10804 *) 10805 # Assume MSVC and ICC wrapper 10806 hardcode_libdir_flag_spec=' ' 10807 allow_undefined_flag=unsupported 10808 # Tell ltmain to make .lib files, not .a files. 10809 libext=lib 10810 # Tell ltmain to make .dll files, not .so files. 10811 shrext_cmds=.dll 10812 # FIXME: Setting linknames here is a bad hack. 10813 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10814 # The linker will automatically build a .lib file if we build a DLL. 10815 old_archive_from_new_cmds='true' 10816 # FIXME: Should let the user specify the lib program. 10817 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10818 enable_shared_with_static_runtimes=yes 10819 ;; 10820 esac 10821 ;; 10822 10823 darwin* | rhapsody*) 10824 10825 10826 archive_cmds_need_lc=no 10827 hardcode_direct=no 10828 hardcode_automatic=yes 10829 hardcode_shlibpath_var=unsupported 10830 if test yes = "$lt_cv_ld_force_load"; then 10831 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\"`' 10832 10833 else 10834 whole_archive_flag_spec='' 10835 fi 10836 link_all_deplibs=yes 10837 allow_undefined_flag=$_lt_dar_allow_undefined 10838 case $cc_basename in 10839 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10840 *) _lt_dar_can_shared=$GCC ;; 10841 esac 10842 if test yes = "$_lt_dar_can_shared"; then 10843 output_verbose_link_cmd=func_echo_all 10844 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10845 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10846 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" 10847 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" 10848 10849 else 10850 ld_shlibs=no 10851 fi 10852 10853 ;; 10854 10855 dgux*) 10856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10857 hardcode_libdir_flag_spec='-L$libdir' 10858 hardcode_shlibpath_var=no 10859 ;; 10860 10861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10862 # support. Future versions do this automatically, but an explicit c++rt0.o 10863 # does not break anything, and helps significantly (at the cost of a little 10864 # extra space). 10865 freebsd2.2*) 10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10867 hardcode_libdir_flag_spec='-R$libdir' 10868 hardcode_direct=yes 10869 hardcode_shlibpath_var=no 10870 ;; 10871 10872 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10873 freebsd2.*) 10874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10875 hardcode_direct=yes 10876 hardcode_minus_L=yes 10877 hardcode_shlibpath_var=no 10878 ;; 10879 10880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10881 freebsd* | dragonfly* | midnightbsd*) 10882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10883 hardcode_libdir_flag_spec='-R$libdir' 10884 hardcode_direct=yes 10885 hardcode_shlibpath_var=no 10886 ;; 10887 10888 hpux9*) 10889 if test yes = "$GCC"; then 10890 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' 10891 else 10892 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' 10893 fi 10894 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10895 hardcode_libdir_separator=: 10896 hardcode_direct=yes 10897 10898 # hardcode_minus_L: Not really in the search PATH, 10899 # but as the default location of the library. 10900 hardcode_minus_L=yes 10901 export_dynamic_flag_spec='$wl-E' 10902 ;; 10903 10904 hpux10*) 10905 if test yes,no = "$GCC,$with_gnu_ld"; then 10906 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10907 else 10908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10909 fi 10910 if test no = "$with_gnu_ld"; then 10911 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10912 hardcode_libdir_separator=: 10913 hardcode_direct=yes 10914 hardcode_direct_absolute=yes 10915 export_dynamic_flag_spec='$wl-E' 10916 # hardcode_minus_L: Not really in the search PATH, 10917 # but as the default location of the library. 10918 hardcode_minus_L=yes 10919 fi 10920 ;; 10921 10922 hpux11*) 10923 if test yes,no = "$GCC,$with_gnu_ld"; then 10924 case $host_cpu in 10925 hppa*64*) 10926 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10927 ;; 10928 ia64*) 10929 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10930 ;; 10931 *) 10932 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10933 ;; 10934 esac 10935 else 10936 case $host_cpu in 10937 hppa*64*) 10938 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10939 ;; 10940 ia64*) 10941 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10942 ;; 10943 *) 10944 10945 # Older versions of the 11.00 compiler do not understand -b yet 10946 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10948printf %s "checking if $CC understands -b... " >&6; } 10949if test ${lt_cv_prog_compiler__b+y} 10950then : 10951 printf %s "(cached) " >&6 10952else $as_nop 10953 lt_cv_prog_compiler__b=no 10954 save_LDFLAGS=$LDFLAGS 10955 LDFLAGS="$LDFLAGS -b" 10956 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10958 # The linker can only warn and ignore the option if not recognized 10959 # So say no if there are warnings 10960 if test -s conftest.err; then 10961 # Append any errors to the config.log. 10962 cat conftest.err 1>&5 10963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10965 if diff conftest.exp conftest.er2 >/dev/null; then 10966 lt_cv_prog_compiler__b=yes 10967 fi 10968 else 10969 lt_cv_prog_compiler__b=yes 10970 fi 10971 fi 10972 $RM -r conftest* 10973 LDFLAGS=$save_LDFLAGS 10974 10975fi 10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10977printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10978 10979if test yes = "$lt_cv_prog_compiler__b"; then 10980 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10981else 10982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10983fi 10984 10985 ;; 10986 esac 10987 fi 10988 if test no = "$with_gnu_ld"; then 10989 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10990 hardcode_libdir_separator=: 10991 10992 case $host_cpu in 10993 hppa*64*|ia64*) 10994 hardcode_direct=no 10995 hardcode_shlibpath_var=no 10996 ;; 10997 *) 10998 hardcode_direct=yes 10999 hardcode_direct_absolute=yes 11000 export_dynamic_flag_spec='$wl-E' 11001 11002 # hardcode_minus_L: Not really in the search PATH, 11003 # but as the default location of the library. 11004 hardcode_minus_L=yes 11005 ;; 11006 esac 11007 fi 11008 ;; 11009 11010 irix5* | irix6* | nonstopux*) 11011 if test yes = "$GCC"; then 11012 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' 11013 # Try to use the -exported_symbol ld option, if it does not 11014 # work, assume that -exports_file does not work either and 11015 # implicitly export all symbols. 11016 # This should be the same for all languages, so no per-tag cache variable. 11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11018printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11019if test ${lt_cv_irix_exported_symbol+y} 11020then : 11021 printf %s "(cached) " >&6 11022else $as_nop 11023 save_LDFLAGS=$LDFLAGS 11024 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11026/* end confdefs.h. */ 11027int foo (void) { return 0; } 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO" 11030then : 11031 lt_cv_irix_exported_symbol=yes 11032else $as_nop 11033 lt_cv_irix_exported_symbol=no 11034fi 11035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11036 conftest$ac_exeext conftest.$ac_ext 11037 LDFLAGS=$save_LDFLAGS 11038fi 11039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11040printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11041 if test yes = "$lt_cv_irix_exported_symbol"; then 11042 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' 11043 fi 11044 else 11045 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' 11046 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' 11047 fi 11048 archive_cmds_need_lc='no' 11049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11050 hardcode_libdir_separator=: 11051 inherit_rpath=yes 11052 link_all_deplibs=yes 11053 ;; 11054 11055 linux*) 11056 case $cc_basename in 11057 tcc*) 11058 # Fabrice Bellard et al's Tiny C Compiler 11059 ld_shlibs=yes 11060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11061 ;; 11062 esac 11063 ;; 11064 11065 netbsd*) 11066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11068 else 11069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11070 fi 11071 hardcode_libdir_flag_spec='-R$libdir' 11072 hardcode_direct=yes 11073 hardcode_shlibpath_var=no 11074 ;; 11075 11076 newsos6) 11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11078 hardcode_direct=yes 11079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11080 hardcode_libdir_separator=: 11081 hardcode_shlibpath_var=no 11082 ;; 11083 11084 *nto* | *qnx*) 11085 ;; 11086 11087 openbsd* | bitrig*) 11088 if test -f /usr/libexec/ld.so; then 11089 hardcode_direct=yes 11090 hardcode_shlibpath_var=no 11091 hardcode_direct_absolute=yes 11092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11094 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11095 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11096 export_dynamic_flag_spec='$wl-E' 11097 else 11098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11099 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11100 fi 11101 else 11102 ld_shlibs=no 11103 fi 11104 ;; 11105 11106 os2*) 11107 hardcode_libdir_flag_spec='-L$libdir' 11108 hardcode_minus_L=yes 11109 allow_undefined_flag=unsupported 11110 shrext_cmds=.dll 11111 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11114 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11115 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11117 emximp -o $lib $output_objdir/$libname.def' 11118 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11121 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11122 prefix_cmds="$SED"~ 11123 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11124 prefix_cmds="$prefix_cmds -e 1d"; 11125 fi~ 11126 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11127 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11129 emximp -o $lib $output_objdir/$libname.def' 11130 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11131 enable_shared_with_static_runtimes=yes 11132 file_list_spec='@' 11133 ;; 11134 11135 osf3*) 11136 if test yes = "$GCC"; then 11137 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11138 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' 11139 else 11140 allow_undefined_flag=' -expect_unresolved \*' 11141 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' 11142 fi 11143 archive_cmds_need_lc='no' 11144 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11145 hardcode_libdir_separator=: 11146 ;; 11147 11148 osf4* | osf5*) # as osf3* with the addition of -msym flag 11149 if test yes = "$GCC"; then 11150 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11151 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' 11152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11153 else 11154 allow_undefined_flag=' -expect_unresolved \*' 11155 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' 11156 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~ 11157 $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' 11158 11159 # Both c and cxx compiler support -rpath directly 11160 hardcode_libdir_flag_spec='-rpath $libdir' 11161 fi 11162 archive_cmds_need_lc='no' 11163 hardcode_libdir_separator=: 11164 ;; 11165 11166 solaris*) 11167 no_undefined_flag=' -z defs' 11168 if test yes = "$GCC"; then 11169 wlarc='$wl' 11170 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11172 $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' 11173 else 11174 case `$CC -V 2>&1` in 11175 *"Compilers 5.0"*) 11176 wlarc='' 11177 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11179 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11180 ;; 11181 *) 11182 wlarc='$wl' 11183 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11185 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11186 ;; 11187 esac 11188 fi 11189 hardcode_libdir_flag_spec='-R$libdir' 11190 hardcode_shlibpath_var=no 11191 case $host_os in 11192 solaris2.[0-5] | solaris2.[0-5].*) ;; 11193 *) 11194 # The compiler driver will combine and reorder linker options, 11195 # but understands '-z linker_flag'. GCC discards it without '$wl', 11196 # but is careful enough not to reorder. 11197 # Supported since Solaris 2.6 (maybe 2.5.1?) 11198 if test yes = "$GCC"; then 11199 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11200 else 11201 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11202 fi 11203 ;; 11204 esac 11205 link_all_deplibs=yes 11206 ;; 11207 11208 sunos4*) 11209 if test sequent = "$host_vendor"; then 11210 # Use $CC to link under sequent, because it throws in some extra .o 11211 # files that make .init and .fini sections work. 11212 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11213 else 11214 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11215 fi 11216 hardcode_libdir_flag_spec='-L$libdir' 11217 hardcode_direct=yes 11218 hardcode_minus_L=yes 11219 hardcode_shlibpath_var=no 11220 ;; 11221 11222 sysv4) 11223 case $host_vendor in 11224 sni) 11225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11226 hardcode_direct=yes # is this really true??? 11227 ;; 11228 siemens) 11229 ## LD is ld it makes a PLAMLIB 11230 ## CC just makes a GrossModule. 11231 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11232 reload_cmds='$CC -r -o $output$reload_objs' 11233 hardcode_direct=no 11234 ;; 11235 motorola) 11236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11237 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11238 ;; 11239 esac 11240 runpath_var='LD_RUN_PATH' 11241 hardcode_shlibpath_var=no 11242 ;; 11243 11244 sysv4.3*) 11245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11246 hardcode_shlibpath_var=no 11247 export_dynamic_flag_spec='-Bexport' 11248 ;; 11249 11250 sysv4*MP*) 11251 if test -d /usr/nec; then 11252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11253 hardcode_shlibpath_var=no 11254 runpath_var=LD_RUN_PATH 11255 hardcode_runpath_var=yes 11256 ld_shlibs=yes 11257 fi 11258 ;; 11259 11260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11261 no_undefined_flag='$wl-z,text' 11262 archive_cmds_need_lc=no 11263 hardcode_shlibpath_var=no 11264 runpath_var='LD_RUN_PATH' 11265 11266 if test yes = "$GCC"; then 11267 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11268 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11269 else 11270 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11271 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11272 fi 11273 ;; 11274 11275 sysv5* | sco3.2v5* | sco5v6*) 11276 # Note: We CANNOT use -z defs as we might desire, because we do not 11277 # link with -lc, and that would cause any symbols used from libc to 11278 # always be unresolved, which means just about no library would 11279 # ever link correctly. If we're not using GNU ld we use -z text 11280 # though, which does catch some bad symbols but isn't as heavy-handed 11281 # as -z defs. 11282 no_undefined_flag='$wl-z,text' 11283 allow_undefined_flag='$wl-z,nodefs' 11284 archive_cmds_need_lc=no 11285 hardcode_shlibpath_var=no 11286 hardcode_libdir_flag_spec='$wl-R,$libdir' 11287 hardcode_libdir_separator=':' 11288 link_all_deplibs=yes 11289 export_dynamic_flag_spec='$wl-Bexport' 11290 runpath_var='LD_RUN_PATH' 11291 11292 if test yes = "$GCC"; then 11293 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11294 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11295 else 11296 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11297 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11298 fi 11299 ;; 11300 11301 uts4*) 11302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11303 hardcode_libdir_flag_spec='-L$libdir' 11304 hardcode_shlibpath_var=no 11305 ;; 11306 11307 *) 11308 ld_shlibs=no 11309 ;; 11310 esac 11311 11312 if test sni = "$host_vendor"; then 11313 case $host in 11314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11315 export_dynamic_flag_spec='$wl-Blargedynsym' 11316 ;; 11317 esac 11318 fi 11319 fi 11320 11321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11322printf "%s\n" "$ld_shlibs" >&6; } 11323test no = "$ld_shlibs" && can_build_shared=no 11324 11325with_gnu_ld=$with_gnu_ld 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341# 11342# Do we need to explicitly link libc? 11343# 11344case "x$archive_cmds_need_lc" in 11345x|xyes) 11346 # Assume -lc should be added 11347 archive_cmds_need_lc=yes 11348 11349 if test yes,yes = "$GCC,$enable_shared"; then 11350 case $archive_cmds in 11351 *'~'*) 11352 # FIXME: we may have to deal with multi-command sequences. 11353 ;; 11354 '$CC '*) 11355 # Test whether the compiler implicitly links with -lc since on some 11356 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11357 # to ld, don't add -lc before -lgcc. 11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11359printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11360if test ${lt_cv_archive_cmds_need_lc+y} 11361then : 11362 printf %s "(cached) " >&6 11363else $as_nop 11364 $RM conftest* 11365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11366 11367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11368 (eval $ac_compile) 2>&5 11369 ac_status=$? 11370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11371 test $ac_status = 0; } 2>conftest.err; then 11372 soname=conftest 11373 lib=conftest 11374 libobjs=conftest.$ac_objext 11375 deplibs= 11376 wl=$lt_prog_compiler_wl 11377 pic_flag=$lt_prog_compiler_pic 11378 compiler_flags=-v 11379 linker_flags=-v 11380 verstring= 11381 output_objdir=. 11382 libname=conftest 11383 lt_save_allow_undefined_flag=$allow_undefined_flag 11384 allow_undefined_flag= 11385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11387 ac_status=$? 11388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11389 test $ac_status = 0; } 11390 then 11391 lt_cv_archive_cmds_need_lc=no 11392 else 11393 lt_cv_archive_cmds_need_lc=yes 11394 fi 11395 allow_undefined_flag=$lt_save_allow_undefined_flag 11396 else 11397 cat conftest.err 1>&5 11398 fi 11399 $RM conftest* 11400 11401fi 11402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11403printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11405 ;; 11406 esac 11407 fi 11408 ;; 11409esac 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11563printf %s "checking dynamic linker characteristics... " >&6; } 11564 11565if test yes = "$GCC"; then 11566 case $host_os in 11567 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11568 *) lt_awk_arg='/^libraries:/' ;; 11569 esac 11570 case $host_os in 11571 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11572 *) lt_sed_strip_eq='s|=/|/|g' ;; 11573 esac 11574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11575 case $lt_search_path_spec in 11576 *\;*) 11577 # if the path contains ";" then we assume it to be the separator 11578 # otherwise default to the standard path separator (i.e. ":") - it is 11579 # assumed that no part of a normal pathname contains ";" but that should 11580 # okay in the real world where ";" in dirpaths is itself problematic. 11581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11582 ;; 11583 *) 11584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11585 ;; 11586 esac 11587 # Ok, now we have the path, separated by spaces, we can step through it 11588 # and add multilib dir if necessary... 11589 lt_tmp_lt_search_path_spec= 11590 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11591 # ...but if some path component already ends with the multilib dir we assume 11592 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11593 case "$lt_multi_os_dir; $lt_search_path_spec " in 11594 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11595 lt_multi_os_dir= 11596 ;; 11597 esac 11598 for lt_sys_path in $lt_search_path_spec; do 11599 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11601 elif test -n "$lt_multi_os_dir"; then 11602 test -d "$lt_sys_path" && \ 11603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11604 fi 11605 done 11606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11607BEGIN {RS = " "; FS = "/|\n";} { 11608 lt_foo = ""; 11609 lt_count = 0; 11610 for (lt_i = NF; lt_i > 0; lt_i--) { 11611 if ($lt_i != "" && $lt_i != ".") { 11612 if ($lt_i == "..") { 11613 lt_count++; 11614 } else { 11615 if (lt_count == 0) { 11616 lt_foo = "/" $lt_i lt_foo; 11617 } else { 11618 lt_count--; 11619 } 11620 } 11621 } 11622 } 11623 if (lt_foo != "") { lt_freq[lt_foo]++; } 11624 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11625}'` 11626 # AWK program above erroneously prepends '/' to C:/dos/paths 11627 # for these hosts. 11628 case $host_os in 11629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11630 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11631 esac 11632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11633else 11634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11635fi 11636library_names_spec= 11637libname_spec='lib$name' 11638soname_spec= 11639shrext_cmds=.so 11640postinstall_cmds= 11641postuninstall_cmds= 11642finish_cmds= 11643finish_eval= 11644shlibpath_var= 11645shlibpath_overrides_runpath=unknown 11646version_type=none 11647dynamic_linker="$host_os ld.so" 11648sys_lib_dlsearch_path_spec="/lib /usr/lib" 11649need_lib_prefix=unknown 11650hardcode_into_libs=no 11651 11652# when you set need_version to no, make sure it does not cause -set_version 11653# flags to be left without arguments 11654need_version=unknown 11655 11656 11657 11658case $host_os in 11659aix3*) 11660 version_type=linux # correct to gnu/linux during the next big refactor 11661 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11662 shlibpath_var=LIBPATH 11663 11664 # AIX 3 has no versioning support, so we append a major version to the name. 11665 soname_spec='$libname$release$shared_ext$major' 11666 ;; 11667 11668aix[4-9]*) 11669 version_type=linux # correct to gnu/linux during the next big refactor 11670 need_lib_prefix=no 11671 need_version=no 11672 hardcode_into_libs=yes 11673 if test ia64 = "$host_cpu"; then 11674 # AIX 5 supports IA64 11675 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11676 shlibpath_var=LD_LIBRARY_PATH 11677 else 11678 # With GCC up to 2.95.x, collect2 would create an import file 11679 # for dependence libraries. The import file would start with 11680 # the line '#! .'. This would cause the generated library to 11681 # depend on '.', always an invalid library. This was fixed in 11682 # development snapshots of GCC prior to 3.0. 11683 case $host_os in 11684 aix4 | aix4.[01] | aix4.[01].*) 11685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11686 echo ' yes ' 11687 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11688 : 11689 else 11690 can_build_shared=no 11691 fi 11692 ;; 11693 esac 11694 # Using Import Files as archive members, it is possible to support 11695 # filename-based versioning of shared library archives on AIX. While 11696 # this would work for both with and without runtime linking, it will 11697 # prevent static linking of such archives. So we do filename-based 11698 # shared library versioning with .so extension only, which is used 11699 # when both runtime linking and shared linking is enabled. 11700 # Unfortunately, runtime linking may impact performance, so we do 11701 # not want this to be the default eventually. Also, we use the 11702 # versioned .so libs for executables only if there is the -brtl 11703 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11704 # To allow for filename-based versioning support, we need to create 11705 # libNAME.so.V as an archive file, containing: 11706 # *) an Import File, referring to the versioned filename of the 11707 # archive as well as the shared archive member, telling the 11708 # bitwidth (32 or 64) of that shared object, and providing the 11709 # list of exported symbols of that shared object, eventually 11710 # decorated with the 'weak' keyword 11711 # *) the shared object with the F_LOADONLY flag set, to really avoid 11712 # it being seen by the linker. 11713 # At run time we better use the real file rather than another symlink, 11714 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11715 11716 case $with_aix_soname,$aix_use_runtimelinking in 11717 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11718 # soname into executable. Probably we can add versioning support to 11719 # collect2, so additional links can be useful in future. 11720 aix,yes) # traditional libtool 11721 dynamic_linker='AIX unversionable lib.so' 11722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11723 # instead of lib<name>.a to let people know that these are not 11724 # typical AIX shared libraries. 11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11726 ;; 11727 aix,no) # traditional AIX only 11728 dynamic_linker='AIX lib.a(lib.so.V)' 11729 # We preserve .a as extension for shared libraries through AIX4.2 11730 # and later when we are not doing run time linking. 11731 library_names_spec='$libname$release.a $libname.a' 11732 soname_spec='$libname$release$shared_ext$major' 11733 ;; 11734 svr4,*) # full svr4 only 11735 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11736 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11737 # We do not specify a path in Import Files, so LIBPATH fires. 11738 shlibpath_overrides_runpath=yes 11739 ;; 11740 *,yes) # both, prefer svr4 11741 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11742 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11743 # unpreferred sharedlib libNAME.a needs extra handling 11744 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"' 11745 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"' 11746 # We do not specify a path in Import Files, so LIBPATH fires. 11747 shlibpath_overrides_runpath=yes 11748 ;; 11749 *,no) # both, prefer aix 11750 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11751 library_names_spec='$libname$release.a $libname.a' 11752 soname_spec='$libname$release$shared_ext$major' 11753 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11754 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)' 11755 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"' 11756 ;; 11757 esac 11758 shlibpath_var=LIBPATH 11759 fi 11760 ;; 11761 11762amigaos*) 11763 case $host_cpu in 11764 powerpc) 11765 # Since July 2007 AmigaOS4 officially supports .so libraries. 11766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11768 ;; 11769 m68k) 11770 library_names_spec='$libname.ixlibrary $libname.a' 11771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11772 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' 11773 ;; 11774 esac 11775 ;; 11776 11777beos*) 11778 library_names_spec='$libname$shared_ext' 11779 dynamic_linker="$host_os ld.so" 11780 shlibpath_var=LIBRARY_PATH 11781 ;; 11782 11783bsdi[45]*) 11784 version_type=linux # correct to gnu/linux during the next big refactor 11785 need_version=no 11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 soname_spec='$libname$release$shared_ext$major' 11788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11789 shlibpath_var=LD_LIBRARY_PATH 11790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11792 # the default ld.so.conf also contains /usr/contrib/lib and 11793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11794 # libtool to hard-code these into programs 11795 ;; 11796 11797cygwin* | mingw* | pw32* | cegcc*) 11798 version_type=windows 11799 shrext_cmds=.dll 11800 need_version=no 11801 need_lib_prefix=no 11802 11803 case $GCC,$cc_basename in 11804 yes,*) 11805 # gcc 11806 library_names_spec='$libname.dll.a' 11807 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11808 postinstall_cmds='base_file=`basename \$file`~ 11809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11810 dldir=$destdir/`dirname \$dlpath`~ 11811 test -d \$dldir || mkdir -p \$dldir~ 11812 $install_prog $dir/$dlname \$dldir/$dlname~ 11813 chmod a+x \$dldir/$dlname~ 11814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11816 fi' 11817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11818 dlpath=$dir/\$dldll~ 11819 $RM \$dlpath' 11820 shlibpath_overrides_runpath=yes 11821 11822 case $host_os in 11823 cygwin*) 11824 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11825 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11826 11827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11828 ;; 11829 mingw* | cegcc*) 11830 # MinGW DLLs use traditional 'lib' prefix 11831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11832 ;; 11833 pw32*) 11834 # pw32 DLLs use 'pw' prefix rather than 'lib' 11835 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11836 ;; 11837 esac 11838 dynamic_linker='Win32 ld.exe' 11839 ;; 11840 11841 *,cl* | *,icl*) 11842 # Native MSVC or ICC 11843 libname_spec='$name' 11844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11845 library_names_spec='$libname.dll.lib' 11846 11847 case $build_os in 11848 mingw*) 11849 sys_lib_search_path_spec= 11850 lt_save_ifs=$IFS 11851 IFS=';' 11852 for lt_path in $LIB 11853 do 11854 IFS=$lt_save_ifs 11855 # Let DOS variable expansion print the short 8.3 style file name. 11856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11858 done 11859 IFS=$lt_save_ifs 11860 # Convert to MSYS style. 11861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11862 ;; 11863 cygwin*) 11864 # Convert to unix form, then to dos form, then back to unix form 11865 # but this time dos style (no spaces!) so that the unix form looks 11866 # like /cygdrive/c/PROGRA~1:/cygdr... 11867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11870 ;; 11871 *) 11872 sys_lib_search_path_spec=$LIB 11873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11874 # It is most probably a Windows format PATH. 11875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11876 else 11877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11878 fi 11879 # FIXME: find the short name or the path components, as spaces are 11880 # common. (e.g. "Program Files" -> "PROGRA~1") 11881 ;; 11882 esac 11883 11884 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11885 postinstall_cmds='base_file=`basename \$file`~ 11886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11887 dldir=$destdir/`dirname \$dlpath`~ 11888 test -d \$dldir || mkdir -p \$dldir~ 11889 $install_prog $dir/$dlname \$dldir/$dlname' 11890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11891 dlpath=$dir/\$dldll~ 11892 $RM \$dlpath' 11893 shlibpath_overrides_runpath=yes 11894 dynamic_linker='Win32 link.exe' 11895 ;; 11896 11897 *) 11898 # Assume MSVC and ICC wrapper 11899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11900 dynamic_linker='Win32 ld.exe' 11901 ;; 11902 esac 11903 # FIXME: first we should search . and the directory the executable is in 11904 shlibpath_var=PATH 11905 ;; 11906 11907darwin* | rhapsody*) 11908 dynamic_linker="$host_os dyld" 11909 version_type=darwin 11910 need_lib_prefix=no 11911 need_version=no 11912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11913 soname_spec='$libname$release$major$shared_ext' 11914 shlibpath_overrides_runpath=yes 11915 shlibpath_var=DYLD_LIBRARY_PATH 11916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11917 11918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11920 ;; 11921 11922dgux*) 11923 version_type=linux # correct to gnu/linux during the next big refactor 11924 need_lib_prefix=no 11925 need_version=no 11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11927 soname_spec='$libname$release$shared_ext$major' 11928 shlibpath_var=LD_LIBRARY_PATH 11929 ;; 11930 11931freebsd* | dragonfly* | midnightbsd*) 11932 # DragonFly does not have aout. When/if they implement a new 11933 # versioning mechanism, adjust this. 11934 if test -x /usr/bin/objformat; then 11935 objformat=`/usr/bin/objformat` 11936 else 11937 case $host_os in 11938 freebsd[23].*) objformat=aout ;; 11939 *) objformat=elf ;; 11940 esac 11941 fi 11942 version_type=freebsd-$objformat 11943 case $version_type in 11944 freebsd-elf*) 11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11946 soname_spec='$libname$release$shared_ext$major' 11947 need_version=no 11948 need_lib_prefix=no 11949 ;; 11950 freebsd-*) 11951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11952 need_version=yes 11953 ;; 11954 esac 11955 shlibpath_var=LD_LIBRARY_PATH 11956 case $host_os in 11957 freebsd2.*) 11958 shlibpath_overrides_runpath=yes 11959 ;; 11960 freebsd3.[01]* | freebsdelf3.[01]*) 11961 shlibpath_overrides_runpath=yes 11962 hardcode_into_libs=yes 11963 ;; 11964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11966 shlibpath_overrides_runpath=no 11967 hardcode_into_libs=yes 11968 ;; 11969 *) # from 4.6 on, and DragonFly 11970 shlibpath_overrides_runpath=yes 11971 hardcode_into_libs=yes 11972 ;; 11973 esac 11974 ;; 11975 11976haiku*) 11977 version_type=linux # correct to gnu/linux during the next big refactor 11978 need_lib_prefix=no 11979 need_version=no 11980 dynamic_linker="$host_os runtime_loader" 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11982 soname_spec='$libname$release$shared_ext$major' 11983 shlibpath_var=LIBRARY_PATH 11984 shlibpath_overrides_runpath=no 11985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11986 hardcode_into_libs=yes 11987 ;; 11988 11989hpux9* | hpux10* | hpux11*) 11990 # Give a soname corresponding to the major version so that dld.sl refuses to 11991 # link against other versions. 11992 version_type=sunos 11993 need_lib_prefix=no 11994 need_version=no 11995 case $host_cpu in 11996 ia64*) 11997 shrext_cmds='.so' 11998 hardcode_into_libs=yes 11999 dynamic_linker="$host_os dld.so" 12000 shlibpath_var=LD_LIBRARY_PATH 12001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12003 soname_spec='$libname$release$shared_ext$major' 12004 if test 32 = "$HPUX_IA64_MODE"; then 12005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12007 else 12008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12010 fi 12011 ;; 12012 hppa*64*) 12013 shrext_cmds='.sl' 12014 hardcode_into_libs=yes 12015 dynamic_linker="$host_os dld.sl" 12016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12019 soname_spec='$libname$release$shared_ext$major' 12020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12022 ;; 12023 *) 12024 shrext_cmds='.sl' 12025 dynamic_linker="$host_os dld.sl" 12026 shlibpath_var=SHLIB_PATH 12027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12029 soname_spec='$libname$release$shared_ext$major' 12030 ;; 12031 esac 12032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12033 postinstall_cmds='chmod 555 $lib' 12034 # or fails outright, so override atomically: 12035 install_override_mode=555 12036 ;; 12037 12038interix[3-9]*) 12039 version_type=linux # correct to gnu/linux during the next big refactor 12040 need_lib_prefix=no 12041 need_version=no 12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12043 soname_spec='$libname$release$shared_ext$major' 12044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12045 shlibpath_var=LD_LIBRARY_PATH 12046 shlibpath_overrides_runpath=no 12047 hardcode_into_libs=yes 12048 ;; 12049 12050irix5* | irix6* | nonstopux*) 12051 case $host_os in 12052 nonstopux*) version_type=nonstopux ;; 12053 *) 12054 if test yes = "$lt_cv_prog_gnu_ld"; then 12055 version_type=linux # correct to gnu/linux during the next big refactor 12056 else 12057 version_type=irix 12058 fi ;; 12059 esac 12060 need_lib_prefix=no 12061 need_version=no 12062 soname_spec='$libname$release$shared_ext$major' 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12064 case $host_os in 12065 irix5* | nonstopux*) 12066 libsuff= shlibsuff= 12067 ;; 12068 *) 12069 case $LD in # libtool.m4 will add one of these switches to LD 12070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12071 libsuff= shlibsuff= libmagic=32-bit;; 12072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12073 libsuff=32 shlibsuff=N32 libmagic=N32;; 12074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12075 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12076 *) libsuff= shlibsuff= libmagic=never-match;; 12077 esac 12078 ;; 12079 esac 12080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12081 shlibpath_overrides_runpath=no 12082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12084 hardcode_into_libs=yes 12085 ;; 12086 12087# No shared lib support for Linux oldld, aout, or coff. 12088linux*oldld* | linux*aout* | linux*coff*) 12089 dynamic_linker=no 12090 ;; 12091 12092linux*android*) 12093 version_type=none # Android doesn't support versioned libraries. 12094 need_lib_prefix=no 12095 need_version=no 12096 library_names_spec='$libname$release$shared_ext' 12097 soname_spec='$libname$release$shared_ext' 12098 finish_cmds= 12099 shlibpath_var=LD_LIBRARY_PATH 12100 shlibpath_overrides_runpath=yes 12101 12102 # This implies no fast_install, which is unacceptable. 12103 # Some rework will be needed to allow for fast_install 12104 # before this can be enabled. 12105 hardcode_into_libs=yes 12106 12107 dynamic_linker='Android linker' 12108 # Don't embed -rpath directories since the linker doesn't support them. 12109 hardcode_libdir_flag_spec='-L$libdir' 12110 ;; 12111 12112# This must be glibc/ELF. 12113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12114 version_type=linux # correct to gnu/linux during the next big refactor 12115 need_lib_prefix=no 12116 need_version=no 12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12118 soname_spec='$libname$release$shared_ext$major' 12119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12120 shlibpath_var=LD_LIBRARY_PATH 12121 shlibpath_overrides_runpath=no 12122 12123 # Some binutils ld are patched to set DT_RUNPATH 12124 if test ${lt_cv_shlibpath_overrides_runpath+y} 12125then : 12126 printf %s "(cached) " >&6 12127else $as_nop 12128 lt_cv_shlibpath_overrides_runpath=no 12129 save_LDFLAGS=$LDFLAGS 12130 save_libdir=$libdir 12131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136int 12137main (void) 12138{ 12139 12140 ; 12141 return 0; 12142} 12143_ACEOF 12144if ac_fn_c_try_link "$LINENO" 12145then : 12146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12147then : 12148 lt_cv_shlibpath_overrides_runpath=yes 12149fi 12150fi 12151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12152 conftest$ac_exeext conftest.$ac_ext 12153 LDFLAGS=$save_LDFLAGS 12154 libdir=$save_libdir 12155 12156fi 12157 12158 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12159 12160 # This implies no fast_install, which is unacceptable. 12161 # Some rework will be needed to allow for fast_install 12162 # before this can be enabled. 12163 hardcode_into_libs=yes 12164 12165 # Ideally, we could use ldconfig to report *all* directores which are 12166 # searched for libraries, however this is still not possible. Aside from not 12167 # being certain /sbin/ldconfig is available, command 12168 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12169 # even though it is searched at run-time. Try to do the best guess by 12170 # appending ld.so.conf contents (and includes) to the search path. 12171 if test -f /etc/ld.so.conf; then 12172 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' ' '` 12173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12174 fi 12175 12176 # We used to test for /lib/ld.so.1 and disable shared libraries on 12177 # powerpc, because MkLinux only supported shared libraries with the 12178 # GNU dynamic linker. Since this was broken with cross compilers, 12179 # most powerpc-linux boxes support dynamic linking these days and 12180 # people can always --disable-shared, the test was removed, and we 12181 # assume the GNU/Linux dynamic linker is in use. 12182 dynamic_linker='GNU/Linux ld.so' 12183 ;; 12184 12185netbsd*) 12186 version_type=sunos 12187 need_lib_prefix=no 12188 need_version=no 12189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12192 dynamic_linker='NetBSD (a.out) ld.so' 12193 else 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12195 soname_spec='$libname$release$shared_ext$major' 12196 dynamic_linker='NetBSD ld.elf_so' 12197 fi 12198 shlibpath_var=LD_LIBRARY_PATH 12199 shlibpath_overrides_runpath=yes 12200 hardcode_into_libs=yes 12201 ;; 12202 12203newsos6) 12204 version_type=linux # correct to gnu/linux during the next big refactor 12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12206 shlibpath_var=LD_LIBRARY_PATH 12207 shlibpath_overrides_runpath=yes 12208 ;; 12209 12210*nto* | *qnx*) 12211 version_type=qnx 12212 need_lib_prefix=no 12213 need_version=no 12214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12215 soname_spec='$libname$release$shared_ext$major' 12216 shlibpath_var=LD_LIBRARY_PATH 12217 shlibpath_overrides_runpath=no 12218 hardcode_into_libs=yes 12219 dynamic_linker='ldqnx.so' 12220 ;; 12221 12222openbsd* | bitrig*) 12223 version_type=sunos 12224 sys_lib_dlsearch_path_spec=/usr/lib 12225 need_lib_prefix=no 12226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12227 need_version=no 12228 else 12229 need_version=yes 12230 fi 12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12233 shlibpath_var=LD_LIBRARY_PATH 12234 shlibpath_overrides_runpath=yes 12235 ;; 12236 12237os2*) 12238 libname_spec='$name' 12239 version_type=windows 12240 shrext_cmds=.dll 12241 need_version=no 12242 need_lib_prefix=no 12243 # OS/2 can only load a DLL with a base name of 8 characters or less. 12244 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12245 v=$($ECHO $release$versuffix | tr -d .-); 12246 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12247 $ECHO $n$v`$shared_ext' 12248 library_names_spec='${libname}_dll.$libext' 12249 dynamic_linker='OS/2 ld.exe' 12250 shlibpath_var=BEGINLIBPATH 12251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12253 postinstall_cmds='base_file=`basename \$file`~ 12254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12255 dldir=$destdir/`dirname \$dlpath`~ 12256 test -d \$dldir || mkdir -p \$dldir~ 12257 $install_prog $dir/$dlname \$dldir/$dlname~ 12258 chmod a+x \$dldir/$dlname~ 12259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12261 fi' 12262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12263 dlpath=$dir/\$dldll~ 12264 $RM \$dlpath' 12265 ;; 12266 12267osf3* | osf4* | osf5*) 12268 version_type=osf 12269 need_lib_prefix=no 12270 need_version=no 12271 soname_spec='$libname$release$shared_ext$major' 12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12273 shlibpath_var=LD_LIBRARY_PATH 12274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12276 ;; 12277 12278rdos*) 12279 dynamic_linker=no 12280 ;; 12281 12282solaris*) 12283 version_type=linux # correct to gnu/linux during the next big refactor 12284 need_lib_prefix=no 12285 need_version=no 12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12287 soname_spec='$libname$release$shared_ext$major' 12288 shlibpath_var=LD_LIBRARY_PATH 12289 shlibpath_overrides_runpath=yes 12290 hardcode_into_libs=yes 12291 # ldd complains unless libraries are executable 12292 postinstall_cmds='chmod +x $lib' 12293 ;; 12294 12295sunos4*) 12296 version_type=sunos 12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12299 shlibpath_var=LD_LIBRARY_PATH 12300 shlibpath_overrides_runpath=yes 12301 if test yes = "$with_gnu_ld"; then 12302 need_lib_prefix=no 12303 fi 12304 need_version=yes 12305 ;; 12306 12307sysv4 | sysv4.3*) 12308 version_type=linux # correct to gnu/linux during the next big refactor 12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12310 soname_spec='$libname$release$shared_ext$major' 12311 shlibpath_var=LD_LIBRARY_PATH 12312 case $host_vendor in 12313 sni) 12314 shlibpath_overrides_runpath=no 12315 need_lib_prefix=no 12316 runpath_var=LD_RUN_PATH 12317 ;; 12318 siemens) 12319 need_lib_prefix=no 12320 ;; 12321 motorola) 12322 need_lib_prefix=no 12323 need_version=no 12324 shlibpath_overrides_runpath=no 12325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12326 ;; 12327 esac 12328 ;; 12329 12330sysv4*MP*) 12331 if test -d /usr/nec; then 12332 version_type=linux # correct to gnu/linux during the next big refactor 12333 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12334 soname_spec='$libname$shared_ext.$major' 12335 shlibpath_var=LD_LIBRARY_PATH 12336 fi 12337 ;; 12338 12339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12340 version_type=sco 12341 need_lib_prefix=no 12342 need_version=no 12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12344 soname_spec='$libname$release$shared_ext$major' 12345 shlibpath_var=LD_LIBRARY_PATH 12346 shlibpath_overrides_runpath=yes 12347 hardcode_into_libs=yes 12348 if test yes = "$with_gnu_ld"; then 12349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12350 else 12351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12352 case $host_os in 12353 sco3.2v5*) 12354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12355 ;; 12356 esac 12357 fi 12358 sys_lib_dlsearch_path_spec='/usr/lib' 12359 ;; 12360 12361tpf*) 12362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12363 version_type=linux # correct to gnu/linux during the next big refactor 12364 need_lib_prefix=no 12365 need_version=no 12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12367 shlibpath_var=LD_LIBRARY_PATH 12368 shlibpath_overrides_runpath=no 12369 hardcode_into_libs=yes 12370 ;; 12371 12372uts4*) 12373 version_type=linux # correct to gnu/linux during the next big refactor 12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12375 soname_spec='$libname$release$shared_ext$major' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 ;; 12378 12379*) 12380 dynamic_linker=no 12381 ;; 12382esac 12383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12384printf "%s\n" "$dynamic_linker" >&6; } 12385test no = "$dynamic_linker" && can_build_shared=no 12386 12387variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12388if test yes = "$GCC"; then 12389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12390fi 12391 12392if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12393 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12394fi 12395 12396if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12397 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12398fi 12399 12400# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12401configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12402 12403# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12404func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12405 12406# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12407configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12506printf %s "checking how to hardcode library paths into programs... " >&6; } 12507hardcode_action= 12508if test -n "$hardcode_libdir_flag_spec" || 12509 test -n "$runpath_var" || 12510 test yes = "$hardcode_automatic"; then 12511 12512 # We can hardcode non-existent directories. 12513 if test no != "$hardcode_direct" && 12514 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12515 # have to relink, otherwise we might link with an installed library 12516 # when we should be linking with a yet-to-be-installed one 12517 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12518 test no != "$hardcode_minus_L"; then 12519 # Linking always hardcodes the temporary library directory. 12520 hardcode_action=relink 12521 else 12522 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12523 hardcode_action=immediate 12524 fi 12525else 12526 # We cannot hardcode anything, or else we can only hardcode existing 12527 # directories. 12528 hardcode_action=unsupported 12529fi 12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12531printf "%s\n" "$hardcode_action" >&6; } 12532 12533if test relink = "$hardcode_action" || 12534 test yes = "$inherit_rpath"; then 12535 # Fast installation is not supported 12536 enable_fast_install=no 12537elif test yes = "$shlibpath_overrides_runpath" || 12538 test no = "$enable_shared"; then 12539 # Fast installation is not necessary 12540 enable_fast_install=needless 12541fi 12542 12543 12544 12545 12546 12547 12548 if test yes != "$enable_dlopen"; then 12549 enable_dlopen=unknown 12550 enable_dlopen_self=unknown 12551 enable_dlopen_self_static=unknown 12552else 12553 lt_cv_dlopen=no 12554 lt_cv_dlopen_libs= 12555 12556 case $host_os in 12557 beos*) 12558 lt_cv_dlopen=load_add_on 12559 lt_cv_dlopen_libs= 12560 lt_cv_dlopen_self=yes 12561 ;; 12562 12563 mingw* | pw32* | cegcc*) 12564 lt_cv_dlopen=LoadLibrary 12565 lt_cv_dlopen_libs= 12566 ;; 12567 12568 cygwin*) 12569 lt_cv_dlopen=dlopen 12570 lt_cv_dlopen_libs= 12571 ;; 12572 12573 darwin*) 12574 # if libdl is installed we need to link against it 12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12576printf %s "checking for dlopen in -ldl... " >&6; } 12577if test ${ac_cv_lib_dl_dlopen+y} 12578then : 12579 printf %s "(cached) " >&6 12580else $as_nop 12581 ac_check_lib_save_LIBS=$LIBS 12582LIBS="-ldl $LIBS" 12583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12584/* end confdefs.h. */ 12585 12586/* Override any GCC internal prototype to avoid an error. 12587 Use char because int might match the return type of a GCC 12588 builtin and then its argument prototype would still apply. */ 12589char dlopen (); 12590int 12591main (void) 12592{ 12593return dlopen (); 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598if ac_fn_c_try_link "$LINENO" 12599then : 12600 ac_cv_lib_dl_dlopen=yes 12601else $as_nop 12602 ac_cv_lib_dl_dlopen=no 12603fi 12604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12605 conftest$ac_exeext conftest.$ac_ext 12606LIBS=$ac_check_lib_save_LIBS 12607fi 12608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12609printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12610if test "x$ac_cv_lib_dl_dlopen" = xyes 12611then : 12612 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12613else $as_nop 12614 12615 lt_cv_dlopen=dyld 12616 lt_cv_dlopen_libs= 12617 lt_cv_dlopen_self=yes 12618 12619fi 12620 12621 ;; 12622 12623 tpf*) 12624 # Don't try to run any link tests for TPF. We know it's impossible 12625 # because TPF is a cross-compiler, and we know how we open DSOs. 12626 lt_cv_dlopen=dlopen 12627 lt_cv_dlopen_libs= 12628 lt_cv_dlopen_self=no 12629 ;; 12630 12631 *) 12632 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12633if test "x$ac_cv_func_shl_load" = xyes 12634then : 12635 lt_cv_dlopen=shl_load 12636else $as_nop 12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12638printf %s "checking for shl_load in -ldld... " >&6; } 12639if test ${ac_cv_lib_dld_shl_load+y} 12640then : 12641 printf %s "(cached) " >&6 12642else $as_nop 12643 ac_check_lib_save_LIBS=$LIBS 12644LIBS="-ldld $LIBS" 12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647 12648/* Override any GCC internal prototype to avoid an error. 12649 Use char because int might match the return type of a GCC 12650 builtin and then its argument prototype would still apply. */ 12651char shl_load (); 12652int 12653main (void) 12654{ 12655return shl_load (); 12656 ; 12657 return 0; 12658} 12659_ACEOF 12660if ac_fn_c_try_link "$LINENO" 12661then : 12662 ac_cv_lib_dld_shl_load=yes 12663else $as_nop 12664 ac_cv_lib_dld_shl_load=no 12665fi 12666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12667 conftest$ac_exeext conftest.$ac_ext 12668LIBS=$ac_check_lib_save_LIBS 12669fi 12670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12671printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12672if test "x$ac_cv_lib_dld_shl_load" = xyes 12673then : 12674 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12675else $as_nop 12676 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12677if test "x$ac_cv_func_dlopen" = xyes 12678then : 12679 lt_cv_dlopen=dlopen 12680else $as_nop 12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12682printf %s "checking for dlopen in -ldl... " >&6; } 12683if test ${ac_cv_lib_dl_dlopen+y} 12684then : 12685 printf %s "(cached) " >&6 12686else $as_nop 12687 ac_check_lib_save_LIBS=$LIBS 12688LIBS="-ldl $LIBS" 12689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12690/* end confdefs.h. */ 12691 12692/* Override any GCC internal prototype to avoid an error. 12693 Use char because int might match the return type of a GCC 12694 builtin and then its argument prototype would still apply. */ 12695char dlopen (); 12696int 12697main (void) 12698{ 12699return dlopen (); 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704if ac_fn_c_try_link "$LINENO" 12705then : 12706 ac_cv_lib_dl_dlopen=yes 12707else $as_nop 12708 ac_cv_lib_dl_dlopen=no 12709fi 12710rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12711 conftest$ac_exeext conftest.$ac_ext 12712LIBS=$ac_check_lib_save_LIBS 12713fi 12714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12715printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12716if test "x$ac_cv_lib_dl_dlopen" = xyes 12717then : 12718 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12719else $as_nop 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12721printf %s "checking for dlopen in -lsvld... " >&6; } 12722if test ${ac_cv_lib_svld_dlopen+y} 12723then : 12724 printf %s "(cached) " >&6 12725else $as_nop 12726 ac_check_lib_save_LIBS=$LIBS 12727LIBS="-lsvld $LIBS" 12728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12729/* end confdefs.h. */ 12730 12731/* Override any GCC internal prototype to avoid an error. 12732 Use char because int might match the return type of a GCC 12733 builtin and then its argument prototype would still apply. */ 12734char dlopen (); 12735int 12736main (void) 12737{ 12738return dlopen (); 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO" 12744then : 12745 ac_cv_lib_svld_dlopen=yes 12746else $as_nop 12747 ac_cv_lib_svld_dlopen=no 12748fi 12749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12750 conftest$ac_exeext conftest.$ac_ext 12751LIBS=$ac_check_lib_save_LIBS 12752fi 12753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12754printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12755if test "x$ac_cv_lib_svld_dlopen" = xyes 12756then : 12757 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12758else $as_nop 12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12760printf %s "checking for dld_link in -ldld... " >&6; } 12761if test ${ac_cv_lib_dld_dld_link+y} 12762then : 12763 printf %s "(cached) " >&6 12764else $as_nop 12765 ac_check_lib_save_LIBS=$LIBS 12766LIBS="-ldld $LIBS" 12767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769 12770/* Override any GCC internal prototype to avoid an error. 12771 Use char because int might match the return type of a GCC 12772 builtin and then its argument prototype would still apply. */ 12773char dld_link (); 12774int 12775main (void) 12776{ 12777return dld_link (); 12778 ; 12779 return 0; 12780} 12781_ACEOF 12782if ac_fn_c_try_link "$LINENO" 12783then : 12784 ac_cv_lib_dld_dld_link=yes 12785else $as_nop 12786 ac_cv_lib_dld_dld_link=no 12787fi 12788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12789 conftest$ac_exeext conftest.$ac_ext 12790LIBS=$ac_check_lib_save_LIBS 12791fi 12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12793printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12794if test "x$ac_cv_lib_dld_dld_link" = xyes 12795then : 12796 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12797fi 12798 12799 12800fi 12801 12802 12803fi 12804 12805 12806fi 12807 12808 12809fi 12810 12811 12812fi 12813 12814 ;; 12815 esac 12816 12817 if test no = "$lt_cv_dlopen"; then 12818 enable_dlopen=no 12819 else 12820 enable_dlopen=yes 12821 fi 12822 12823 case $lt_cv_dlopen in 12824 dlopen) 12825 save_CPPFLAGS=$CPPFLAGS 12826 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12827 12828 save_LDFLAGS=$LDFLAGS 12829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12830 12831 save_LIBS=$LIBS 12832 LIBS="$lt_cv_dlopen_libs $LIBS" 12833 12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12835printf %s "checking whether a program can dlopen itself... " >&6; } 12836if test ${lt_cv_dlopen_self+y} 12837then : 12838 printf %s "(cached) " >&6 12839else $as_nop 12840 if test yes = "$cross_compiling"; then : 12841 lt_cv_dlopen_self=cross 12842else 12843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12844 lt_status=$lt_dlunknown 12845 cat > conftest.$ac_ext <<_LT_EOF 12846#line $LINENO "configure" 12847#include "confdefs.h" 12848 12849#if HAVE_DLFCN_H 12850#include <dlfcn.h> 12851#endif 12852 12853#include <stdio.h> 12854 12855#ifdef RTLD_GLOBAL 12856# define LT_DLGLOBAL RTLD_GLOBAL 12857#else 12858# ifdef DL_GLOBAL 12859# define LT_DLGLOBAL DL_GLOBAL 12860# else 12861# define LT_DLGLOBAL 0 12862# endif 12863#endif 12864 12865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12866 find out it does not work in some platform. */ 12867#ifndef LT_DLLAZY_OR_NOW 12868# ifdef RTLD_LAZY 12869# define LT_DLLAZY_OR_NOW RTLD_LAZY 12870# else 12871# ifdef DL_LAZY 12872# define LT_DLLAZY_OR_NOW DL_LAZY 12873# else 12874# ifdef RTLD_NOW 12875# define LT_DLLAZY_OR_NOW RTLD_NOW 12876# else 12877# ifdef DL_NOW 12878# define LT_DLLAZY_OR_NOW DL_NOW 12879# else 12880# define LT_DLLAZY_OR_NOW 0 12881# endif 12882# endif 12883# endif 12884# endif 12885#endif 12886 12887/* When -fvisibility=hidden is used, assume the code has been annotated 12888 correspondingly for the symbols needed. */ 12889#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12890int fnord () __attribute__((visibility("default"))); 12891#endif 12892 12893int fnord () { return 42; } 12894int main () 12895{ 12896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12897 int status = $lt_dlunknown; 12898 12899 if (self) 12900 { 12901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12902 else 12903 { 12904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12905 else puts (dlerror ()); 12906 } 12907 /* dlclose (self); */ 12908 } 12909 else 12910 puts (dlerror ()); 12911 12912 return status; 12913} 12914_LT_EOF 12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12916 (eval $ac_link) 2>&5 12917 ac_status=$? 12918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12919 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12920 (./conftest; exit; ) >&5 2>/dev/null 12921 lt_status=$? 12922 case x$lt_status in 12923 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12924 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12925 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12926 esac 12927 else : 12928 # compilation failed 12929 lt_cv_dlopen_self=no 12930 fi 12931fi 12932rm -fr conftest* 12933 12934 12935fi 12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12937printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12938 12939 if test yes = "$lt_cv_dlopen_self"; then 12940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12942printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12943if test ${lt_cv_dlopen_self_static+y} 12944then : 12945 printf %s "(cached) " >&6 12946else $as_nop 12947 if test yes = "$cross_compiling"; then : 12948 lt_cv_dlopen_self_static=cross 12949else 12950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12951 lt_status=$lt_dlunknown 12952 cat > conftest.$ac_ext <<_LT_EOF 12953#line $LINENO "configure" 12954#include "confdefs.h" 12955 12956#if HAVE_DLFCN_H 12957#include <dlfcn.h> 12958#endif 12959 12960#include <stdio.h> 12961 12962#ifdef RTLD_GLOBAL 12963# define LT_DLGLOBAL RTLD_GLOBAL 12964#else 12965# ifdef DL_GLOBAL 12966# define LT_DLGLOBAL DL_GLOBAL 12967# else 12968# define LT_DLGLOBAL 0 12969# endif 12970#endif 12971 12972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12973 find out it does not work in some platform. */ 12974#ifndef LT_DLLAZY_OR_NOW 12975# ifdef RTLD_LAZY 12976# define LT_DLLAZY_OR_NOW RTLD_LAZY 12977# else 12978# ifdef DL_LAZY 12979# define LT_DLLAZY_OR_NOW DL_LAZY 12980# else 12981# ifdef RTLD_NOW 12982# define LT_DLLAZY_OR_NOW RTLD_NOW 12983# else 12984# ifdef DL_NOW 12985# define LT_DLLAZY_OR_NOW DL_NOW 12986# else 12987# define LT_DLLAZY_OR_NOW 0 12988# endif 12989# endif 12990# endif 12991# endif 12992#endif 12993 12994/* When -fvisibility=hidden is used, assume the code has been annotated 12995 correspondingly for the symbols needed. */ 12996#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12997int fnord () __attribute__((visibility("default"))); 12998#endif 12999 13000int fnord () { return 42; } 13001int main () 13002{ 13003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13004 int status = $lt_dlunknown; 13005 13006 if (self) 13007 { 13008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13009 else 13010 { 13011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13012 else puts (dlerror ()); 13013 } 13014 /* dlclose (self); */ 13015 } 13016 else 13017 puts (dlerror ()); 13018 13019 return status; 13020} 13021_LT_EOF 13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13023 (eval $ac_link) 2>&5 13024 ac_status=$? 13025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13027 (./conftest; exit; ) >&5 2>/dev/null 13028 lt_status=$? 13029 case x$lt_status in 13030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13033 esac 13034 else : 13035 # compilation failed 13036 lt_cv_dlopen_self_static=no 13037 fi 13038fi 13039rm -fr conftest* 13040 13041 13042fi 13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13044printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13045 fi 13046 13047 CPPFLAGS=$save_CPPFLAGS 13048 LDFLAGS=$save_LDFLAGS 13049 LIBS=$save_LIBS 13050 ;; 13051 esac 13052 13053 case $lt_cv_dlopen_self in 13054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13055 *) enable_dlopen_self=unknown ;; 13056 esac 13057 13058 case $lt_cv_dlopen_self_static in 13059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13060 *) enable_dlopen_self_static=unknown ;; 13061 esac 13062fi 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080striplib= 13081old_striplib= 13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13083printf %s "checking whether stripping libraries is possible... " >&6; } 13084if test -z "$STRIP"; then 13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13086printf "%s\n" "no" >&6; } 13087else 13088 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13089 old_striplib="$STRIP --strip-debug" 13090 striplib="$STRIP --strip-unneeded" 13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13092printf "%s\n" "yes" >&6; } 13093 else 13094 case $host_os in 13095 darwin*) 13096 # FIXME - insert some real tests, host_os isn't really good enough 13097 striplib="$STRIP -x" 13098 old_striplib="$STRIP -S" 13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13100printf "%s\n" "yes" >&6; } 13101 ;; 13102 freebsd*) 13103 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13104 old_striplib="$STRIP --strip-debug" 13105 striplib="$STRIP --strip-unneeded" 13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13107printf "%s\n" "yes" >&6; } 13108 else 13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13110printf "%s\n" "no" >&6; } 13111 fi 13112 ;; 13113 *) 13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13115printf "%s\n" "no" >&6; } 13116 ;; 13117 esac 13118 fi 13119fi 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 # Report what library types will actually be built 13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13134printf %s "checking if libtool supports shared libraries... " >&6; } 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13136printf "%s\n" "$can_build_shared" >&6; } 13137 13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13139printf %s "checking whether to build shared libraries... " >&6; } 13140 test no = "$can_build_shared" && enable_shared=no 13141 13142 # On AIX, shared libraries and static libraries use the same namespace, and 13143 # are all built from PIC. 13144 case $host_os in 13145 aix3*) 13146 test yes = "$enable_shared" && enable_static=no 13147 if test -n "$RANLIB"; then 13148 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13149 postinstall_cmds='$RANLIB $lib' 13150 fi 13151 ;; 13152 13153 aix[4-9]*) 13154 if test ia64 != "$host_cpu"; then 13155 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13156 yes,aix,yes) ;; # shared object as lib.so file only 13157 yes,svr4,*) ;; # shared object as lib.so archive member only 13158 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13159 esac 13160 fi 13161 ;; 13162 esac 13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13164printf "%s\n" "$enable_shared" >&6; } 13165 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13167printf %s "checking whether to build static libraries... " >&6; } 13168 # Make sure either enable_shared or enable_static is yes. 13169 test yes = "$enable_shared" || enable_static=yes 13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13171printf "%s\n" "$enable_static" >&6; } 13172 13173 13174 13175 13176fi 13177ac_ext=c 13178ac_cpp='$CPP $CPPFLAGS' 13179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13181ac_compiler_gnu=$ac_cv_c_compiler_gnu 13182 13183CC=$lt_save_CC 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 ac_config_commands="$ac_config_commands libtool" 13200 13201 13202 13203 13204# Only expand once: 13205 13206 13207 13208# Check whether --enable-largefile was given. 13209if test ${enable_largefile+y} 13210then : 13211 enableval=$enable_largefile; 13212fi 13213 13214if test "$enable_largefile" != no; then 13215 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13217printf %s "checking for special C compiler options needed for large files... " >&6; } 13218if test ${ac_cv_sys_largefile_CC+y} 13219then : 13220 printf %s "(cached) " >&6 13221else $as_nop 13222 ac_cv_sys_largefile_CC=no 13223 if test "$GCC" != yes; then 13224 ac_save_CC=$CC 13225 while :; do 13226 # IRIX 6.2 and later do not support large files by default, 13227 # so use the C compiler's -n32 option if that helps. 13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13229/* end confdefs.h. */ 13230#include <sys/types.h> 13231 /* Check that off_t can represent 2**63 - 1 correctly. 13232 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13233 since some C++ compilers masquerading as C compilers 13234 incorrectly reject 9223372036854775807. */ 13235#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 13236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13237 && LARGE_OFF_T % 2147483647 == 1) 13238 ? 1 : -1]; 13239int 13240main (void) 13241{ 13242 13243 ; 13244 return 0; 13245} 13246_ACEOF 13247 if ac_fn_c_try_compile "$LINENO" 13248then : 13249 break 13250fi 13251rm -f core conftest.err conftest.$ac_objext conftest.beam 13252 CC="$CC -n32" 13253 if ac_fn_c_try_compile "$LINENO" 13254then : 13255 ac_cv_sys_largefile_CC=' -n32'; break 13256fi 13257rm -f core conftest.err conftest.$ac_objext conftest.beam 13258 break 13259 done 13260 CC=$ac_save_CC 13261 rm -f conftest.$ac_ext 13262 fi 13263fi 13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13265printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 13266 if test "$ac_cv_sys_largefile_CC" != no; then 13267 CC=$CC$ac_cv_sys_largefile_CC 13268 fi 13269 13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13271printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13272if test ${ac_cv_sys_file_offset_bits+y} 13273then : 13274 printf %s "(cached) " >&6 13275else $as_nop 13276 while :; do 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279#include <sys/types.h> 13280 /* Check that off_t can represent 2**63 - 1 correctly. 13281 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13282 since some C++ compilers masquerading as C compilers 13283 incorrectly reject 9223372036854775807. */ 13284#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 13285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13286 && LARGE_OFF_T % 2147483647 == 1) 13287 ? 1 : -1]; 13288int 13289main (void) 13290{ 13291 13292 ; 13293 return 0; 13294} 13295_ACEOF 13296if ac_fn_c_try_compile "$LINENO" 13297then : 13298 ac_cv_sys_file_offset_bits=no; break 13299fi 13300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13302/* end confdefs.h. */ 13303#define _FILE_OFFSET_BITS 64 13304#include <sys/types.h> 13305 /* Check that off_t can represent 2**63 - 1 correctly. 13306 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13307 since some C++ compilers masquerading as C compilers 13308 incorrectly reject 9223372036854775807. */ 13309#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 13310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13311 && LARGE_OFF_T % 2147483647 == 1) 13312 ? 1 : -1]; 13313int 13314main (void) 13315{ 13316 13317 ; 13318 return 0; 13319} 13320_ACEOF 13321if ac_fn_c_try_compile "$LINENO" 13322then : 13323 ac_cv_sys_file_offset_bits=64; break 13324fi 13325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13326 ac_cv_sys_file_offset_bits=unknown 13327 break 13328done 13329fi 13330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13331printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 13332case $ac_cv_sys_file_offset_bits in #( 13333 no | unknown) ;; 13334 *) 13335printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 13336;; 13337esac 13338rm -rf conftest* 13339 if test $ac_cv_sys_file_offset_bits = unknown; then 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13341printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 13342if test ${ac_cv_sys_large_files+y} 13343then : 13344 printf %s "(cached) " >&6 13345else $as_nop 13346 while :; do 13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13348/* end confdefs.h. */ 13349#include <sys/types.h> 13350 /* Check that off_t can represent 2**63 - 1 correctly. 13351 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13352 since some C++ compilers masquerading as C compilers 13353 incorrectly reject 9223372036854775807. */ 13354#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 13355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13356 && LARGE_OFF_T % 2147483647 == 1) 13357 ? 1 : -1]; 13358int 13359main (void) 13360{ 13361 13362 ; 13363 return 0; 13364} 13365_ACEOF 13366if ac_fn_c_try_compile "$LINENO" 13367then : 13368 ac_cv_sys_large_files=no; break 13369fi 13370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13372/* end confdefs.h. */ 13373#define _LARGE_FILES 1 13374#include <sys/types.h> 13375 /* Check that off_t can represent 2**63 - 1 correctly. 13376 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13377 since some C++ compilers masquerading as C compilers 13378 incorrectly reject 9223372036854775807. */ 13379#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 13380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13381 && LARGE_OFF_T % 2147483647 == 1) 13382 ? 1 : -1]; 13383int 13384main (void) 13385{ 13386 13387 ; 13388 return 0; 13389} 13390_ACEOF 13391if ac_fn_c_try_compile "$LINENO" 13392then : 13393 ac_cv_sys_large_files=1; break 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13396 ac_cv_sys_large_files=unknown 13397 break 13398done 13399fi 13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13401printf "%s\n" "$ac_cv_sys_large_files" >&6; } 13402case $ac_cv_sys_large_files in #( 13403 no | unknown) ;; 13404 *) 13405printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 13406;; 13407esac 13408rm -rf conftest* 13409 fi 13410fi 13411 13412 13413# Require xorg-macros minimum of 1.15 for fop minimum version 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13426printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13427if test ${ac_cv_c_undeclared_builtin_options+y} 13428then : 13429 printf %s "(cached) " >&6 13430else $as_nop 13431 ac_save_CFLAGS=$CFLAGS 13432 ac_cv_c_undeclared_builtin_options='cannot detect' 13433 for ac_arg in '' -fno-builtin; do 13434 CFLAGS="$ac_save_CFLAGS $ac_arg" 13435 # This test program should *not* compile successfully. 13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13437/* end confdefs.h. */ 13438 13439int 13440main (void) 13441{ 13442(void) strchr; 13443 ; 13444 return 0; 13445} 13446_ACEOF 13447if ac_fn_c_try_compile "$LINENO" 13448then : 13449 13450else $as_nop 13451 # This test program should compile successfully. 13452 # No library function is consistently available on 13453 # freestanding implementations, so test against a dummy 13454 # declaration. Include always-available headers on the 13455 # off chance that they somehow elicit warnings. 13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13457/* end confdefs.h. */ 13458#include <float.h> 13459#include <limits.h> 13460#include <stdarg.h> 13461#include <stddef.h> 13462extern void ac_decl (int, char *); 13463 13464int 13465main (void) 13466{ 13467(void) ac_decl (0, (char *) 0); 13468 (void) ac_decl; 13469 13470 ; 13471 return 0; 13472} 13473_ACEOF 13474if ac_fn_c_try_compile "$LINENO" 13475then : 13476 if test x"$ac_arg" = x 13477then : 13478 ac_cv_c_undeclared_builtin_options='none needed' 13479else $as_nop 13480 ac_cv_c_undeclared_builtin_options=$ac_arg 13481fi 13482 break 13483fi 13484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13485fi 13486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13487 done 13488 CFLAGS=$ac_save_CFLAGS 13489 13490fi 13491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13492printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13493 case $ac_cv_c_undeclared_builtin_options in #( 13494 'cannot detect') : 13495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13496printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13497as_fn_error $? "cannot make $CC report undeclared builtins 13498See \`config.log' for more details" "$LINENO" 5; } ;; #( 13499 'none needed') : 13500 ac_c_undeclared_builtin_options='' ;; #( 13501 *) : 13502 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13503esac 13504 13505 13506 13507 13508 13509ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13510if test "x$ac_cv_have_decl___clang__" = xyes 13511then : 13512 CLANGCC="yes" 13513else $as_nop 13514 CLANGCC="no" 13515fi 13516ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13517if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13518then : 13519 INTELCC="yes" 13520else $as_nop 13521 INTELCC="no" 13522fi 13523ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13524if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13525then : 13526 SUNCC="yes" 13527else $as_nop 13528 SUNCC="no" 13529fi 13530 13531 13532 13533 13534 13535 13536 13537 13538if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13539 if test -n "$ac_tool_prefix"; then 13540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13541set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13543printf %s "checking for $ac_word... " >&6; } 13544if test ${ac_cv_path_PKG_CONFIG+y} 13545then : 13546 printf %s "(cached) " >&6 13547else $as_nop 13548 case $PKG_CONFIG in 13549 [\\/]* | ?:[\\/]*) 13550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13551 ;; 13552 *) 13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13554for as_dir in $PATH 13555do 13556 IFS=$as_save_IFS 13557 case $as_dir in #((( 13558 '') as_dir=./ ;; 13559 */) ;; 13560 *) as_dir=$as_dir/ ;; 13561 esac 13562 for ac_exec_ext in '' $ac_executable_extensions; do 13563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13564 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13566 break 2 13567 fi 13568done 13569 done 13570IFS=$as_save_IFS 13571 13572 ;; 13573esac 13574fi 13575PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13576if test -n "$PKG_CONFIG"; then 13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13578printf "%s\n" "$PKG_CONFIG" >&6; } 13579else 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13581printf "%s\n" "no" >&6; } 13582fi 13583 13584 13585fi 13586if test -z "$ac_cv_path_PKG_CONFIG"; then 13587 ac_pt_PKG_CONFIG=$PKG_CONFIG 13588 # Extract the first word of "pkg-config", so it can be a program name with args. 13589set dummy pkg-config; ac_word=$2 13590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13591printf %s "checking for $ac_word... " >&6; } 13592if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13593then : 13594 printf %s "(cached) " >&6 13595else $as_nop 13596 case $ac_pt_PKG_CONFIG in 13597 [\\/]* | ?:[\\/]*) 13598 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13599 ;; 13600 *) 13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13602for as_dir in $PATH 13603do 13604 IFS=$as_save_IFS 13605 case $as_dir in #((( 13606 '') as_dir=./ ;; 13607 */) ;; 13608 *) as_dir=$as_dir/ ;; 13609 esac 13610 for ac_exec_ext in '' $ac_executable_extensions; do 13611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13612 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13614 break 2 13615 fi 13616done 13617 done 13618IFS=$as_save_IFS 13619 13620 ;; 13621esac 13622fi 13623ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13624if test -n "$ac_pt_PKG_CONFIG"; then 13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13626printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13627else 13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13629printf "%s\n" "no" >&6; } 13630fi 13631 13632 if test "x$ac_pt_PKG_CONFIG" = x; then 13633 PKG_CONFIG="" 13634 else 13635 case $cross_compiling:$ac_tool_warned in 13636yes:) 13637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13638printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13639ac_tool_warned=yes ;; 13640esac 13641 PKG_CONFIG=$ac_pt_PKG_CONFIG 13642 fi 13643else 13644 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13645fi 13646 13647fi 13648if test -n "$PKG_CONFIG"; then 13649 _pkg_min_version=0.9.0 13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13651printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13652 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13654printf "%s\n" "yes" >&6; } 13655 else 13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13657printf "%s\n" "no" >&6; } 13658 PKG_CONFIG="" 13659 fi 13660fi 13661 13662 13663 13664 13665 13666# Check whether --enable-selective-werror was given. 13667if test ${enable_selective_werror+y} 13668then : 13669 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13670else $as_nop 13671 SELECTIVE_WERROR=yes 13672fi 13673 13674 13675 13676 13677 13678# -v is too short to test reliably with XORG_TESTSET_CFLAG 13679if test "x$SUNCC" = "xyes"; then 13680 BASE_CFLAGS="-v" 13681else 13682 BASE_CFLAGS="" 13683fi 13684 13685# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699xorg_testset_save_CFLAGS="$CFLAGS" 13700 13701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13706then : 13707 printf %s "(cached) " >&6 13708else $as_nop 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712_ACEOF 13713if ac_fn_c_try_compile "$LINENO" 13714then : 13715 xorg_cv_cc_flag_unknown_warning_option=yes 13716else $as_nop 13717 xorg_cv_cc_flag_unknown_warning_option=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13720fi 13721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13724 CFLAGS="$xorg_testset_save_CFLAGS" 13725fi 13726 13727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13730 fi 13731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13735then : 13736 printf %s "(cached) " >&6 13737else $as_nop 13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13739/* end confdefs.h. */ 13740int i; 13741_ACEOF 13742if ac_fn_c_try_compile "$LINENO" 13743then : 13744 xorg_cv_cc_flag_unused_command_line_argument=yes 13745else $as_nop 13746 xorg_cv_cc_flag_unused_command_line_argument=no 13747fi 13748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13749fi 13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13753 CFLAGS="$xorg_testset_save_CFLAGS" 13754fi 13755 13756found="no" 13757 13758 if test $found = "no" ; then 13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13761 fi 13762 13763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13765 fi 13766 13767 CFLAGS="$CFLAGS -Wall" 13768 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13770printf %s "checking if $CC supports -Wall... " >&6; } 13771 cacheid=xorg_cv_cc_flag__Wall 13772 if eval test \${$cacheid+y} 13773then : 13774 printf %s "(cached) " >&6 13775else $as_nop 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778int i; 13779int 13780main (void) 13781{ 13782 13783 ; 13784 return 0; 13785} 13786_ACEOF 13787if ac_fn_c_try_link "$LINENO" 13788then : 13789 eval $cacheid=yes 13790else $as_nop 13791 eval $cacheid=no 13792fi 13793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13794 conftest$ac_exeext conftest.$ac_ext 13795fi 13796 13797 13798 CFLAGS="$xorg_testset_save_CFLAGS" 13799 13800 eval supported=\$$cacheid 13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13802printf "%s\n" "$supported" >&6; } 13803 if test "$supported" = "yes" ; then 13804 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13805 found="yes" 13806 fi 13807 fi 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823xorg_testset_save_CFLAGS="$CFLAGS" 13824 13825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13829if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13830then : 13831 printf %s "(cached) " >&6 13832else $as_nop 13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13834/* end confdefs.h. */ 13835int i; 13836_ACEOF 13837if ac_fn_c_try_compile "$LINENO" 13838then : 13839 xorg_cv_cc_flag_unknown_warning_option=yes 13840else $as_nop 13841 xorg_cv_cc_flag_unknown_warning_option=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13844fi 13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849fi 13850 13851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13854 fi 13855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13859then : 13860 printf %s "(cached) " >&6 13861else $as_nop 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864int i; 13865_ACEOF 13866if ac_fn_c_try_compile "$LINENO" 13867then : 13868 xorg_cv_cc_flag_unused_command_line_argument=yes 13869else $as_nop 13870 xorg_cv_cc_flag_unused_command_line_argument=no 13871fi 13872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13873fi 13874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13877 CFLAGS="$xorg_testset_save_CFLAGS" 13878fi 13879 13880found="no" 13881 13882 if test $found = "no" ; then 13883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13885 fi 13886 13887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13889 fi 13890 13891 CFLAGS="$CFLAGS -Wpointer-arith" 13892 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13894printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13895 cacheid=xorg_cv_cc_flag__Wpointer_arith 13896 if eval test \${$cacheid+y} 13897then : 13898 printf %s "(cached) " >&6 13899else $as_nop 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902int i; 13903int 13904main (void) 13905{ 13906 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911if ac_fn_c_try_link "$LINENO" 13912then : 13913 eval $cacheid=yes 13914else $as_nop 13915 eval $cacheid=no 13916fi 13917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13918 conftest$ac_exeext conftest.$ac_ext 13919fi 13920 13921 13922 CFLAGS="$xorg_testset_save_CFLAGS" 13923 13924 eval supported=\$$cacheid 13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13926printf "%s\n" "$supported" >&6; } 13927 if test "$supported" = "yes" ; then 13928 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13929 found="yes" 13930 fi 13931 fi 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947xorg_testset_save_CFLAGS="$CFLAGS" 13948 13949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13953if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13954then : 13955 printf %s "(cached) " >&6 13956else $as_nop 13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959int i; 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO" 13962then : 13963 xorg_cv_cc_flag_unknown_warning_option=yes 13964else $as_nop 13965 xorg_cv_cc_flag_unknown_warning_option=no 13966fi 13967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13968fi 13969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13972 CFLAGS="$xorg_testset_save_CFLAGS" 13973fi 13974 13975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13978 fi 13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13983then : 13984 printf %s "(cached) " >&6 13985else $as_nop 13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13987/* end confdefs.h. */ 13988int i; 13989_ACEOF 13990if ac_fn_c_try_compile "$LINENO" 13991then : 13992 xorg_cv_cc_flag_unused_command_line_argument=yes 13993else $as_nop 13994 xorg_cv_cc_flag_unused_command_line_argument=no 13995fi 13996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13997fi 13998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14001 CFLAGS="$xorg_testset_save_CFLAGS" 14002fi 14003 14004found="no" 14005 14006 if test $found = "no" ; then 14007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14009 fi 14010 14011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14013 fi 14014 14015 CFLAGS="$CFLAGS -Wmissing-declarations" 14016 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14018printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14019 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14020 if eval test \${$cacheid+y} 14021then : 14022 printf %s "(cached) " >&6 14023else $as_nop 14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14025/* end confdefs.h. */ 14026int i; 14027int 14028main (void) 14029{ 14030 14031 ; 14032 return 0; 14033} 14034_ACEOF 14035if ac_fn_c_try_link "$LINENO" 14036then : 14037 eval $cacheid=yes 14038else $as_nop 14039 eval $cacheid=no 14040fi 14041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14042 conftest$ac_exeext conftest.$ac_ext 14043fi 14044 14045 14046 CFLAGS="$xorg_testset_save_CFLAGS" 14047 14048 eval supported=\$$cacheid 14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14050printf "%s\n" "$supported" >&6; } 14051 if test "$supported" = "yes" ; then 14052 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14053 found="yes" 14054 fi 14055 fi 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071xorg_testset_save_CFLAGS="$CFLAGS" 14072 14073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14077if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14078then : 14079 printf %s "(cached) " >&6 14080else $as_nop 14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14082/* end confdefs.h. */ 14083int i; 14084_ACEOF 14085if ac_fn_c_try_compile "$LINENO" 14086then : 14087 xorg_cv_cc_flag_unknown_warning_option=yes 14088else $as_nop 14089 xorg_cv_cc_flag_unknown_warning_option=no 14090fi 14091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14092fi 14093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14096 CFLAGS="$xorg_testset_save_CFLAGS" 14097fi 14098 14099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14102 fi 14103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14107then : 14108 printf %s "(cached) " >&6 14109else $as_nop 14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111/* end confdefs.h. */ 14112int i; 14113_ACEOF 14114if ac_fn_c_try_compile "$LINENO" 14115then : 14116 xorg_cv_cc_flag_unused_command_line_argument=yes 14117else $as_nop 14118 xorg_cv_cc_flag_unused_command_line_argument=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14121fi 14122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14123printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14125 CFLAGS="$xorg_testset_save_CFLAGS" 14126fi 14127 14128found="no" 14129 14130 if test $found = "no" ; then 14131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14133 fi 14134 14135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14137 fi 14138 14139 CFLAGS="$CFLAGS -Wformat=2" 14140 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14142printf %s "checking if $CC supports -Wformat=2... " >&6; } 14143 cacheid=xorg_cv_cc_flag__Wformat_2 14144 if eval test \${$cacheid+y} 14145then : 14146 printf %s "(cached) " >&6 14147else $as_nop 14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14149/* end confdefs.h. */ 14150int i; 14151int 14152main (void) 14153{ 14154 14155 ; 14156 return 0; 14157} 14158_ACEOF 14159if ac_fn_c_try_link "$LINENO" 14160then : 14161 eval $cacheid=yes 14162else $as_nop 14163 eval $cacheid=no 14164fi 14165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14166 conftest$ac_exeext conftest.$ac_ext 14167fi 14168 14169 14170 CFLAGS="$xorg_testset_save_CFLAGS" 14171 14172 eval supported=\$$cacheid 14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14174printf "%s\n" "$supported" >&6; } 14175 if test "$supported" = "yes" ; then 14176 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14177 found="yes" 14178 fi 14179 fi 14180 14181 if test $found = "no" ; then 14182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14184 fi 14185 14186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14188 fi 14189 14190 CFLAGS="$CFLAGS -Wformat" 14191 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14193printf %s "checking if $CC supports -Wformat... " >&6; } 14194 cacheid=xorg_cv_cc_flag__Wformat 14195 if eval test \${$cacheid+y} 14196then : 14197 printf %s "(cached) " >&6 14198else $as_nop 14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201int i; 14202int 14203main (void) 14204{ 14205 14206 ; 14207 return 0; 14208} 14209_ACEOF 14210if ac_fn_c_try_link "$LINENO" 14211then : 14212 eval $cacheid=yes 14213else $as_nop 14214 eval $cacheid=no 14215fi 14216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14217 conftest$ac_exeext conftest.$ac_ext 14218fi 14219 14220 14221 CFLAGS="$xorg_testset_save_CFLAGS" 14222 14223 eval supported=\$$cacheid 14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14225printf "%s\n" "$supported" >&6; } 14226 if test "$supported" = "yes" ; then 14227 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14228 found="yes" 14229 fi 14230 fi 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248xorg_testset_save_CFLAGS="$CFLAGS" 14249 14250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14254if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14255then : 14256 printf %s "(cached) " >&6 14257else $as_nop 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260int i; 14261_ACEOF 14262if ac_fn_c_try_compile "$LINENO" 14263then : 14264 xorg_cv_cc_flag_unknown_warning_option=yes 14265else $as_nop 14266 xorg_cv_cc_flag_unknown_warning_option=no 14267fi 14268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14269fi 14270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14273 CFLAGS="$xorg_testset_save_CFLAGS" 14274fi 14275 14276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14279 fi 14280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14283if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14284then : 14285 printf %s "(cached) " >&6 14286else $as_nop 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289int i; 14290_ACEOF 14291if ac_fn_c_try_compile "$LINENO" 14292then : 14293 xorg_cv_cc_flag_unused_command_line_argument=yes 14294else $as_nop 14295 xorg_cv_cc_flag_unused_command_line_argument=no 14296fi 14297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14298fi 14299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14302 CFLAGS="$xorg_testset_save_CFLAGS" 14303fi 14304 14305found="no" 14306 14307 if test $found = "no" ; then 14308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14310 fi 14311 14312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14314 fi 14315 14316 CFLAGS="$CFLAGS -Wstrict-prototypes" 14317 14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14319printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14320 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14321 if eval test \${$cacheid+y} 14322then : 14323 printf %s "(cached) " >&6 14324else $as_nop 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328int 14329main (void) 14330{ 14331 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336if ac_fn_c_try_link "$LINENO" 14337then : 14338 eval $cacheid=yes 14339else $as_nop 14340 eval $cacheid=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14343 conftest$ac_exeext conftest.$ac_ext 14344fi 14345 14346 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348 14349 eval supported=\$$cacheid 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14351printf "%s\n" "$supported" >&6; } 14352 if test "$supported" = "yes" ; then 14353 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14354 found="yes" 14355 fi 14356 fi 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372xorg_testset_save_CFLAGS="$CFLAGS" 14373 14374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14378if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14379then : 14380 printf %s "(cached) " >&6 14381else $as_nop 14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383/* end confdefs.h. */ 14384int i; 14385_ACEOF 14386if ac_fn_c_try_compile "$LINENO" 14387then : 14388 xorg_cv_cc_flag_unknown_warning_option=yes 14389else $as_nop 14390 xorg_cv_cc_flag_unknown_warning_option=no 14391fi 14392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14393fi 14394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14397 CFLAGS="$xorg_testset_save_CFLAGS" 14398fi 14399 14400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14403 fi 14404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14407if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14408then : 14409 printf %s "(cached) " >&6 14410else $as_nop 14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14412/* end confdefs.h. */ 14413int i; 14414_ACEOF 14415if ac_fn_c_try_compile "$LINENO" 14416then : 14417 xorg_cv_cc_flag_unused_command_line_argument=yes 14418else $as_nop 14419 xorg_cv_cc_flag_unused_command_line_argument=no 14420fi 14421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14422fi 14423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14426 CFLAGS="$xorg_testset_save_CFLAGS" 14427fi 14428 14429found="no" 14430 14431 if test $found = "no" ; then 14432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14434 fi 14435 14436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14438 fi 14439 14440 CFLAGS="$CFLAGS -Wmissing-prototypes" 14441 14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14443printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14444 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14445 if eval test \${$cacheid+y} 14446then : 14447 printf %s "(cached) " >&6 14448else $as_nop 14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450/* end confdefs.h. */ 14451int i; 14452int 14453main (void) 14454{ 14455 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460if ac_fn_c_try_link "$LINENO" 14461then : 14462 eval $cacheid=yes 14463else $as_nop 14464 eval $cacheid=no 14465fi 14466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14467 conftest$ac_exeext conftest.$ac_ext 14468fi 14469 14470 14471 CFLAGS="$xorg_testset_save_CFLAGS" 14472 14473 eval supported=\$$cacheid 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14475printf "%s\n" "$supported" >&6; } 14476 if test "$supported" = "yes" ; then 14477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14478 found="yes" 14479 fi 14480 fi 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496xorg_testset_save_CFLAGS="$CFLAGS" 14497 14498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14502if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14503then : 14504 printf %s "(cached) " >&6 14505else $as_nop 14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507/* end confdefs.h. */ 14508int i; 14509_ACEOF 14510if ac_fn_c_try_compile "$LINENO" 14511then : 14512 xorg_cv_cc_flag_unknown_warning_option=yes 14513else $as_nop 14514 xorg_cv_cc_flag_unknown_warning_option=no 14515fi 14516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14517fi 14518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14521 CFLAGS="$xorg_testset_save_CFLAGS" 14522fi 14523 14524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14527 fi 14528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14531if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14532then : 14533 printf %s "(cached) " >&6 14534else $as_nop 14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537int i; 14538_ACEOF 14539if ac_fn_c_try_compile "$LINENO" 14540then : 14541 xorg_cv_cc_flag_unused_command_line_argument=yes 14542else $as_nop 14543 xorg_cv_cc_flag_unused_command_line_argument=no 14544fi 14545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14546fi 14547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14548printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14550 CFLAGS="$xorg_testset_save_CFLAGS" 14551fi 14552 14553found="no" 14554 14555 if test $found = "no" ; then 14556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14558 fi 14559 14560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14562 fi 14563 14564 CFLAGS="$CFLAGS -Wnested-externs" 14565 14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14567printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14568 cacheid=xorg_cv_cc_flag__Wnested_externs 14569 if eval test \${$cacheid+y} 14570then : 14571 printf %s "(cached) " >&6 14572else $as_nop 14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14574/* end confdefs.h. */ 14575int i; 14576int 14577main (void) 14578{ 14579 14580 ; 14581 return 0; 14582} 14583_ACEOF 14584if ac_fn_c_try_link "$LINENO" 14585then : 14586 eval $cacheid=yes 14587else $as_nop 14588 eval $cacheid=no 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14591 conftest$ac_exeext conftest.$ac_ext 14592fi 14593 14594 14595 CFLAGS="$xorg_testset_save_CFLAGS" 14596 14597 eval supported=\$$cacheid 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14599printf "%s\n" "$supported" >&6; } 14600 if test "$supported" = "yes" ; then 14601 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14602 found="yes" 14603 fi 14604 fi 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620xorg_testset_save_CFLAGS="$CFLAGS" 14621 14622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14626if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14627then : 14628 printf %s "(cached) " >&6 14629else $as_nop 14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14631/* end confdefs.h. */ 14632int i; 14633_ACEOF 14634if ac_fn_c_try_compile "$LINENO" 14635then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else $as_nop 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14641fi 14642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14656then : 14657 printf %s "(cached) " >&6 14658else $as_nop 14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660/* end confdefs.h. */ 14661int i; 14662_ACEOF 14663if ac_fn_c_try_compile "$LINENO" 14664then : 14665 xorg_cv_cc_flag_unused_command_line_argument=yes 14666else $as_nop 14667 xorg_cv_cc_flag_unused_command_line_argument=no 14668fi 14669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14670fi 14671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14674 CFLAGS="$xorg_testset_save_CFLAGS" 14675fi 14676 14677found="no" 14678 14679 if test $found = "no" ; then 14680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14682 fi 14683 14684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14686 fi 14687 14688 CFLAGS="$CFLAGS -Wbad-function-cast" 14689 14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14691printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14692 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14693 if eval test \${$cacheid+y} 14694then : 14695 printf %s "(cached) " >&6 14696else $as_nop 14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14698/* end confdefs.h. */ 14699int i; 14700int 14701main (void) 14702{ 14703 14704 ; 14705 return 0; 14706} 14707_ACEOF 14708if ac_fn_c_try_link "$LINENO" 14709then : 14710 eval $cacheid=yes 14711else $as_nop 14712 eval $cacheid=no 14713fi 14714rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14715 conftest$ac_exeext conftest.$ac_ext 14716fi 14717 14718 14719 CFLAGS="$xorg_testset_save_CFLAGS" 14720 14721 eval supported=\$$cacheid 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14723printf "%s\n" "$supported" >&6; } 14724 if test "$supported" = "yes" ; then 14725 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14726 found="yes" 14727 fi 14728 fi 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744xorg_testset_save_CFLAGS="$CFLAGS" 14745 14746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14750if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14751then : 14752 printf %s "(cached) " >&6 14753else $as_nop 14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14755/* end confdefs.h. */ 14756int i; 14757_ACEOF 14758if ac_fn_c_try_compile "$LINENO" 14759then : 14760 xorg_cv_cc_flag_unknown_warning_option=yes 14761else $as_nop 14762 xorg_cv_cc_flag_unknown_warning_option=no 14763fi 14764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14765fi 14766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14769 CFLAGS="$xorg_testset_save_CFLAGS" 14770fi 14771 14772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14775 fi 14776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14779if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14780then : 14781 printf %s "(cached) " >&6 14782else $as_nop 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785int i; 14786_ACEOF 14787if ac_fn_c_try_compile "$LINENO" 14788then : 14789 xorg_cv_cc_flag_unused_command_line_argument=yes 14790else $as_nop 14791 xorg_cv_cc_flag_unused_command_line_argument=no 14792fi 14793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14794fi 14795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14798 CFLAGS="$xorg_testset_save_CFLAGS" 14799fi 14800 14801found="no" 14802 14803 if test $found = "no" ; then 14804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14806 fi 14807 14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14810 fi 14811 14812 CFLAGS="$CFLAGS -Wold-style-definition" 14813 14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14815printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14816 cacheid=xorg_cv_cc_flag__Wold_style_definition 14817 if eval test \${$cacheid+y} 14818then : 14819 printf %s "(cached) " >&6 14820else $as_nop 14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14822/* end confdefs.h. */ 14823int i; 14824int 14825main (void) 14826{ 14827 14828 ; 14829 return 0; 14830} 14831_ACEOF 14832if ac_fn_c_try_link "$LINENO" 14833then : 14834 eval $cacheid=yes 14835else $as_nop 14836 eval $cacheid=no 14837fi 14838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14839 conftest$ac_exeext conftest.$ac_ext 14840fi 14841 14842 14843 CFLAGS="$xorg_testset_save_CFLAGS" 14844 14845 eval supported=\$$cacheid 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14847printf "%s\n" "$supported" >&6; } 14848 if test "$supported" = "yes" ; then 14849 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14850 found="yes" 14851 fi 14852 fi 14853 14854 if test $found = "no" ; then 14855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14857 fi 14858 14859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14861 fi 14862 14863 CFLAGS="$CFLAGS -fd" 14864 14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14866printf %s "checking if $CC supports -fd... " >&6; } 14867 cacheid=xorg_cv_cc_flag__fd 14868 if eval test \${$cacheid+y} 14869then : 14870 printf %s "(cached) " >&6 14871else $as_nop 14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14873/* end confdefs.h. */ 14874int i; 14875int 14876main (void) 14877{ 14878 14879 ; 14880 return 0; 14881} 14882_ACEOF 14883if ac_fn_c_try_link "$LINENO" 14884then : 14885 eval $cacheid=yes 14886else $as_nop 14887 eval $cacheid=no 14888fi 14889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14890 conftest$ac_exeext conftest.$ac_ext 14891fi 14892 14893 14894 CFLAGS="$xorg_testset_save_CFLAGS" 14895 14896 eval supported=\$$cacheid 14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14898printf "%s\n" "$supported" >&6; } 14899 if test "$supported" = "yes" ; then 14900 BASE_CFLAGS="$BASE_CFLAGS -fd" 14901 found="yes" 14902 fi 14903 fi 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919xorg_testset_save_CFLAGS="$CFLAGS" 14920 14921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14926then : 14927 printf %s "(cached) " >&6 14928else $as_nop 14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931int i; 14932_ACEOF 14933if ac_fn_c_try_compile "$LINENO" 14934then : 14935 xorg_cv_cc_flag_unknown_warning_option=yes 14936else $as_nop 14937 xorg_cv_cc_flag_unknown_warning_option=no 14938fi 14939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14940fi 14941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14944 CFLAGS="$xorg_testset_save_CFLAGS" 14945fi 14946 14947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14950 fi 14951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14955then : 14956 printf %s "(cached) " >&6 14957else $as_nop 14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14959/* end confdefs.h. */ 14960int i; 14961_ACEOF 14962if ac_fn_c_try_compile "$LINENO" 14963then : 14964 xorg_cv_cc_flag_unused_command_line_argument=yes 14965else $as_nop 14966 xorg_cv_cc_flag_unused_command_line_argument=no 14967fi 14968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14969fi 14970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14973 CFLAGS="$xorg_testset_save_CFLAGS" 14974fi 14975 14976found="no" 14977 14978 if test $found = "no" ; then 14979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14981 fi 14982 14983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14985 fi 14986 14987 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14988 14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14990printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14991 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14992 if eval test \${$cacheid+y} 14993then : 14994 printf %s "(cached) " >&6 14995else $as_nop 14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14997/* end confdefs.h. */ 14998int i; 14999int 15000main (void) 15001{ 15002 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_link "$LINENO" 15008then : 15009 eval $cacheid=yes 15010else $as_nop 15011 eval $cacheid=no 15012fi 15013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15014 conftest$ac_exeext conftest.$ac_ext 15015fi 15016 15017 15018 CFLAGS="$xorg_testset_save_CFLAGS" 15019 15020 eval supported=\$$cacheid 15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15022printf "%s\n" "$supported" >&6; } 15023 if test "$supported" = "yes" ; then 15024 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15025 found="yes" 15026 fi 15027 fi 15028 15029 15030 15031 15032 15033# This chunk adds additional warnings that could catch undesired effects. 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047xorg_testset_save_CFLAGS="$CFLAGS" 15048 15049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15053if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15054then : 15055 printf %s "(cached) " >&6 15056else $as_nop 15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15058/* end confdefs.h. */ 15059int i; 15060_ACEOF 15061if ac_fn_c_try_compile "$LINENO" 15062then : 15063 xorg_cv_cc_flag_unknown_warning_option=yes 15064else $as_nop 15065 xorg_cv_cc_flag_unknown_warning_option=no 15066fi 15067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15068fi 15069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15072 CFLAGS="$xorg_testset_save_CFLAGS" 15073fi 15074 15075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15078 fi 15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15082if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15083then : 15084 printf %s "(cached) " >&6 15085else $as_nop 15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087/* end confdefs.h. */ 15088int i; 15089_ACEOF 15090if ac_fn_c_try_compile "$LINENO" 15091then : 15092 xorg_cv_cc_flag_unused_command_line_argument=yes 15093else $as_nop 15094 xorg_cv_cc_flag_unused_command_line_argument=no 15095fi 15096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15097fi 15098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15101 CFLAGS="$xorg_testset_save_CFLAGS" 15102fi 15103 15104found="no" 15105 15106 if test $found = "no" ; then 15107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15109 fi 15110 15111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15113 fi 15114 15115 CFLAGS="$CFLAGS -Wunused" 15116 15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15118printf %s "checking if $CC supports -Wunused... " >&6; } 15119 cacheid=xorg_cv_cc_flag__Wunused 15120 if eval test \${$cacheid+y} 15121then : 15122 printf %s "(cached) " >&6 15123else $as_nop 15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126int i; 15127int 15128main (void) 15129{ 15130 15131 ; 15132 return 0; 15133} 15134_ACEOF 15135if ac_fn_c_try_link "$LINENO" 15136then : 15137 eval $cacheid=yes 15138else $as_nop 15139 eval $cacheid=no 15140fi 15141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15142 conftest$ac_exeext conftest.$ac_ext 15143fi 15144 15145 15146 CFLAGS="$xorg_testset_save_CFLAGS" 15147 15148 eval supported=\$$cacheid 15149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15150printf "%s\n" "$supported" >&6; } 15151 if test "$supported" = "yes" ; then 15152 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15153 found="yes" 15154 fi 15155 fi 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171xorg_testset_save_CFLAGS="$CFLAGS" 15172 15173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15177if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15178then : 15179 printf %s "(cached) " >&6 15180else $as_nop 15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15182/* end confdefs.h. */ 15183int i; 15184_ACEOF 15185if ac_fn_c_try_compile "$LINENO" 15186then : 15187 xorg_cv_cc_flag_unknown_warning_option=yes 15188else $as_nop 15189 xorg_cv_cc_flag_unknown_warning_option=no 15190fi 15191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15192fi 15193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15196 CFLAGS="$xorg_testset_save_CFLAGS" 15197fi 15198 15199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15202 fi 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15206if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15207then : 15208 printf %s "(cached) " >&6 15209else $as_nop 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212int i; 15213_ACEOF 15214if ac_fn_c_try_compile "$LINENO" 15215then : 15216 xorg_cv_cc_flag_unused_command_line_argument=yes 15217else $as_nop 15218 xorg_cv_cc_flag_unused_command_line_argument=no 15219fi 15220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15221fi 15222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226fi 15227 15228found="no" 15229 15230 if test $found = "no" ; then 15231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15233 fi 15234 15235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15237 fi 15238 15239 CFLAGS="$CFLAGS -Wuninitialized" 15240 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15242printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15243 cacheid=xorg_cv_cc_flag__Wuninitialized 15244 if eval test \${$cacheid+y} 15245then : 15246 printf %s "(cached) " >&6 15247else $as_nop 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250int i; 15251int 15252main (void) 15253{ 15254 15255 ; 15256 return 0; 15257} 15258_ACEOF 15259if ac_fn_c_try_link "$LINENO" 15260then : 15261 eval $cacheid=yes 15262else $as_nop 15263 eval $cacheid=no 15264fi 15265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15266 conftest$ac_exeext conftest.$ac_ext 15267fi 15268 15269 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271 15272 eval supported=\$$cacheid 15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15274printf "%s\n" "$supported" >&6; } 15275 if test "$supported" = "yes" ; then 15276 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15277 found="yes" 15278 fi 15279 fi 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295xorg_testset_save_CFLAGS="$CFLAGS" 15296 15297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15302then : 15303 printf %s "(cached) " >&6 15304else $as_nop 15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15306/* end confdefs.h. */ 15307int i; 15308_ACEOF 15309if ac_fn_c_try_compile "$LINENO" 15310then : 15311 xorg_cv_cc_flag_unknown_warning_option=yes 15312else $as_nop 15313 xorg_cv_cc_flag_unknown_warning_option=no 15314fi 15315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15316fi 15317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15320 CFLAGS="$xorg_testset_save_CFLAGS" 15321fi 15322 15323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15326 fi 15327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15330if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15331then : 15332 printf %s "(cached) " >&6 15333else $as_nop 15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335/* end confdefs.h. */ 15336int i; 15337_ACEOF 15338if ac_fn_c_try_compile "$LINENO" 15339then : 15340 xorg_cv_cc_flag_unused_command_line_argument=yes 15341else $as_nop 15342 xorg_cv_cc_flag_unused_command_line_argument=no 15343fi 15344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15345fi 15346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15349 CFLAGS="$xorg_testset_save_CFLAGS" 15350fi 15351 15352found="no" 15353 15354 if test $found = "no" ; then 15355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15357 fi 15358 15359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15361 fi 15362 15363 CFLAGS="$CFLAGS -Wshadow" 15364 15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15366printf %s "checking if $CC supports -Wshadow... " >&6; } 15367 cacheid=xorg_cv_cc_flag__Wshadow 15368 if eval test \${$cacheid+y} 15369then : 15370 printf %s "(cached) " >&6 15371else $as_nop 15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15373/* end confdefs.h. */ 15374int i; 15375int 15376main (void) 15377{ 15378 15379 ; 15380 return 0; 15381} 15382_ACEOF 15383if ac_fn_c_try_link "$LINENO" 15384then : 15385 eval $cacheid=yes 15386else $as_nop 15387 eval $cacheid=no 15388fi 15389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15390 conftest$ac_exeext conftest.$ac_ext 15391fi 15392 15393 15394 CFLAGS="$xorg_testset_save_CFLAGS" 15395 15396 eval supported=\$$cacheid 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15398printf "%s\n" "$supported" >&6; } 15399 if test "$supported" = "yes" ; then 15400 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15401 found="yes" 15402 fi 15403 fi 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419xorg_testset_save_CFLAGS="$CFLAGS" 15420 15421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15425if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15426then : 15427 printf %s "(cached) " >&6 15428else $as_nop 15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432_ACEOF 15433if ac_fn_c_try_compile "$LINENO" 15434then : 15435 xorg_cv_cc_flag_unknown_warning_option=yes 15436else $as_nop 15437 xorg_cv_cc_flag_unknown_warning_option=no 15438fi 15439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15440fi 15441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15444 CFLAGS="$xorg_testset_save_CFLAGS" 15445fi 15446 15447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15450 fi 15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15455then : 15456 printf %s "(cached) " >&6 15457else $as_nop 15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460int i; 15461_ACEOF 15462if ac_fn_c_try_compile "$LINENO" 15463then : 15464 xorg_cv_cc_flag_unused_command_line_argument=yes 15465else $as_nop 15466 xorg_cv_cc_flag_unused_command_line_argument=no 15467fi 15468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15469fi 15470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15473 CFLAGS="$xorg_testset_save_CFLAGS" 15474fi 15475 15476found="no" 15477 15478 if test $found = "no" ; then 15479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15481 fi 15482 15483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15485 fi 15486 15487 CFLAGS="$CFLAGS -Wmissing-noreturn" 15488 15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15490printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15491 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15492 if eval test \${$cacheid+y} 15493then : 15494 printf %s "(cached) " >&6 15495else $as_nop 15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15497/* end confdefs.h. */ 15498int i; 15499int 15500main (void) 15501{ 15502 15503 ; 15504 return 0; 15505} 15506_ACEOF 15507if ac_fn_c_try_link "$LINENO" 15508then : 15509 eval $cacheid=yes 15510else $as_nop 15511 eval $cacheid=no 15512fi 15513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15514 conftest$ac_exeext conftest.$ac_ext 15515fi 15516 15517 15518 CFLAGS="$xorg_testset_save_CFLAGS" 15519 15520 eval supported=\$$cacheid 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15522printf "%s\n" "$supported" >&6; } 15523 if test "$supported" = "yes" ; then 15524 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15525 found="yes" 15526 fi 15527 fi 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543xorg_testset_save_CFLAGS="$CFLAGS" 15544 15545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15549if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15550then : 15551 printf %s "(cached) " >&6 15552else $as_nop 15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15554/* end confdefs.h. */ 15555int i; 15556_ACEOF 15557if ac_fn_c_try_compile "$LINENO" 15558then : 15559 xorg_cv_cc_flag_unknown_warning_option=yes 15560else $as_nop 15561 xorg_cv_cc_flag_unknown_warning_option=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15564fi 15565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15568 CFLAGS="$xorg_testset_save_CFLAGS" 15569fi 15570 15571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 fi 15575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15578if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15579then : 15580 printf %s "(cached) " >&6 15581else $as_nop 15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15583/* end confdefs.h. */ 15584int i; 15585_ACEOF 15586if ac_fn_c_try_compile "$LINENO" 15587then : 15588 xorg_cv_cc_flag_unused_command_line_argument=yes 15589else $as_nop 15590 xorg_cv_cc_flag_unused_command_line_argument=no 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15593fi 15594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15597 CFLAGS="$xorg_testset_save_CFLAGS" 15598fi 15599 15600found="no" 15601 15602 if test $found = "no" ; then 15603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15605 fi 15606 15607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15609 fi 15610 15611 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15612 15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15614printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15615 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15616 if eval test \${$cacheid+y} 15617then : 15618 printf %s "(cached) " >&6 15619else $as_nop 15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15621/* end confdefs.h. */ 15622int i; 15623int 15624main (void) 15625{ 15626 15627 ; 15628 return 0; 15629} 15630_ACEOF 15631if ac_fn_c_try_link "$LINENO" 15632then : 15633 eval $cacheid=yes 15634else $as_nop 15635 eval $cacheid=no 15636fi 15637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15638 conftest$ac_exeext conftest.$ac_ext 15639fi 15640 15641 15642 CFLAGS="$xorg_testset_save_CFLAGS" 15643 15644 eval supported=\$$cacheid 15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15646printf "%s\n" "$supported" >&6; } 15647 if test "$supported" = "yes" ; then 15648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15649 found="yes" 15650 fi 15651 fi 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667xorg_testset_save_CFLAGS="$CFLAGS" 15668 15669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15674then : 15675 printf %s "(cached) " >&6 15676else $as_nop 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679int i; 15680_ACEOF 15681if ac_fn_c_try_compile "$LINENO" 15682then : 15683 xorg_cv_cc_flag_unknown_warning_option=yes 15684else $as_nop 15685 xorg_cv_cc_flag_unknown_warning_option=no 15686fi 15687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15688fi 15689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15692 CFLAGS="$xorg_testset_save_CFLAGS" 15693fi 15694 15695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15698 fi 15699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15703then : 15704 printf %s "(cached) " >&6 15705else $as_nop 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708int i; 15709_ACEOF 15710if ac_fn_c_try_compile "$LINENO" 15711then : 15712 xorg_cv_cc_flag_unused_command_line_argument=yes 15713else $as_nop 15714 xorg_cv_cc_flag_unused_command_line_argument=no 15715fi 15716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15717fi 15718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15721 CFLAGS="$xorg_testset_save_CFLAGS" 15722fi 15723 15724found="no" 15725 15726 if test $found = "no" ; then 15727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15729 fi 15730 15731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15733 fi 15734 15735 CFLAGS="$CFLAGS -Wredundant-decls" 15736 15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15738printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15739 cacheid=xorg_cv_cc_flag__Wredundant_decls 15740 if eval test \${$cacheid+y} 15741then : 15742 printf %s "(cached) " >&6 15743else $as_nop 15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15745/* end confdefs.h. */ 15746int i; 15747int 15748main (void) 15749{ 15750 15751 ; 15752 return 0; 15753} 15754_ACEOF 15755if ac_fn_c_try_link "$LINENO" 15756then : 15757 eval $cacheid=yes 15758else $as_nop 15759 eval $cacheid=no 15760fi 15761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15762 conftest$ac_exeext conftest.$ac_ext 15763fi 15764 15765 15766 CFLAGS="$xorg_testset_save_CFLAGS" 15767 15768 eval supported=\$$cacheid 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15770printf "%s\n" "$supported" >&6; } 15771 if test "$supported" = "yes" ; then 15772 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15773 found="yes" 15774 fi 15775 fi 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791xorg_testset_save_CFLAGS="$CFLAGS" 15792 15793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15798then : 15799 printf %s "(cached) " >&6 15800else $as_nop 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802/* end confdefs.h. */ 15803int i; 15804_ACEOF 15805if ac_fn_c_try_compile "$LINENO" 15806then : 15807 xorg_cv_cc_flag_unknown_warning_option=yes 15808else $as_nop 15809 xorg_cv_cc_flag_unknown_warning_option=no 15810fi 15811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15812fi 15813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15816 CFLAGS="$xorg_testset_save_CFLAGS" 15817fi 15818 15819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15822 fi 15823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15827then : 15828 printf %s "(cached) " >&6 15829else $as_nop 15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15831/* end confdefs.h. */ 15832int i; 15833_ACEOF 15834if ac_fn_c_try_compile "$LINENO" 15835then : 15836 xorg_cv_cc_flag_unused_command_line_argument=yes 15837else $as_nop 15838 xorg_cv_cc_flag_unused_command_line_argument=no 15839fi 15840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15841fi 15842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15845 CFLAGS="$xorg_testset_save_CFLAGS" 15846fi 15847 15848found="no" 15849 15850 if test $found = "no" ; then 15851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15853 fi 15854 15855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15857 fi 15858 15859 CFLAGS="$CFLAGS -Wlogical-op" 15860 15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15862printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15863 cacheid=xorg_cv_cc_flag__Wlogical_op 15864 if eval test \${$cacheid+y} 15865then : 15866 printf %s "(cached) " >&6 15867else $as_nop 15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15869/* end confdefs.h. */ 15870int i; 15871int 15872main (void) 15873{ 15874 15875 ; 15876 return 0; 15877} 15878_ACEOF 15879if ac_fn_c_try_link "$LINENO" 15880then : 15881 eval $cacheid=yes 15882else $as_nop 15883 eval $cacheid=no 15884fi 15885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15886 conftest$ac_exeext conftest.$ac_ext 15887fi 15888 15889 15890 CFLAGS="$xorg_testset_save_CFLAGS" 15891 15892 eval supported=\$$cacheid 15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15894printf "%s\n" "$supported" >&6; } 15895 if test "$supported" = "yes" ; then 15896 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15897 found="yes" 15898 fi 15899 fi 15900 15901 15902 15903# These are currently disabled because they are noisy. They will be enabled 15904# in the future once the codebase is sufficiently modernized to silence 15905# them. For now, I don't want them to drown out the other warnings. 15906# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15907# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15909 15910# Turn some warnings into errors, so we don't accidentally get successful builds 15911# when there are problems that should be fixed. 15912 15913if test "x$SELECTIVE_WERROR" = "xyes" ; then 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927xorg_testset_save_CFLAGS="$CFLAGS" 15928 15929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15933if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15934then : 15935 printf %s "(cached) " >&6 15936else $as_nop 15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938/* end confdefs.h. */ 15939int i; 15940_ACEOF 15941if ac_fn_c_try_compile "$LINENO" 15942then : 15943 xorg_cv_cc_flag_unknown_warning_option=yes 15944else $as_nop 15945 xorg_cv_cc_flag_unknown_warning_option=no 15946fi 15947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15948fi 15949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15952 CFLAGS="$xorg_testset_save_CFLAGS" 15953fi 15954 15955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15963then : 15964 printf %s "(cached) " >&6 15965else $as_nop 15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15967/* end confdefs.h. */ 15968int i; 15969_ACEOF 15970if ac_fn_c_try_compile "$LINENO" 15971then : 15972 xorg_cv_cc_flag_unused_command_line_argument=yes 15973else $as_nop 15974 xorg_cv_cc_flag_unused_command_line_argument=no 15975fi 15976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15977fi 15978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15981 CFLAGS="$xorg_testset_save_CFLAGS" 15982fi 15983 15984found="no" 15985 15986 if test $found = "no" ; then 15987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15989 fi 15990 15991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15993 fi 15994 15995 CFLAGS="$CFLAGS -Werror=implicit" 15996 15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15998printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15999 cacheid=xorg_cv_cc_flag__Werror_implicit 16000 if eval test \${$cacheid+y} 16001then : 16002 printf %s "(cached) " >&6 16003else $as_nop 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006int i; 16007int 16008main (void) 16009{ 16010 16011 ; 16012 return 0; 16013} 16014_ACEOF 16015if ac_fn_c_try_link "$LINENO" 16016then : 16017 eval $cacheid=yes 16018else $as_nop 16019 eval $cacheid=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16022 conftest$ac_exeext conftest.$ac_ext 16023fi 16024 16025 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027 16028 eval supported=\$$cacheid 16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16030printf "%s\n" "$supported" >&6; } 16031 if test "$supported" = "yes" ; then 16032 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16033 found="yes" 16034 fi 16035 fi 16036 16037 if test $found = "no" ; then 16038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16040 fi 16041 16042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16044 fi 16045 16046 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16047 16048 { 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 16049printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16050 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16051 if eval test \${$cacheid+y} 16052then : 16053 printf %s "(cached) " >&6 16054else $as_nop 16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16056/* end confdefs.h. */ 16057int i; 16058int 16059main (void) 16060{ 16061 16062 ; 16063 return 0; 16064} 16065_ACEOF 16066if ac_fn_c_try_link "$LINENO" 16067then : 16068 eval $cacheid=yes 16069else $as_nop 16070 eval $cacheid=no 16071fi 16072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16073 conftest$ac_exeext conftest.$ac_ext 16074fi 16075 16076 16077 CFLAGS="$xorg_testset_save_CFLAGS" 16078 16079 eval supported=\$$cacheid 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16081printf "%s\n" "$supported" >&6; } 16082 if test "$supported" = "yes" ; then 16083 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16084 found="yes" 16085 fi 16086 fi 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102xorg_testset_save_CFLAGS="$CFLAGS" 16103 16104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16109then : 16110 printf %s "(cached) " >&6 16111else $as_nop 16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16113/* end confdefs.h. */ 16114int i; 16115_ACEOF 16116if ac_fn_c_try_compile "$LINENO" 16117then : 16118 xorg_cv_cc_flag_unknown_warning_option=yes 16119else $as_nop 16120 xorg_cv_cc_flag_unknown_warning_option=no 16121fi 16122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16123fi 16124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16127 CFLAGS="$xorg_testset_save_CFLAGS" 16128fi 16129 16130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16133 fi 16134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16138then : 16139 printf %s "(cached) " >&6 16140else $as_nop 16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16142/* end confdefs.h. */ 16143int i; 16144_ACEOF 16145if ac_fn_c_try_compile "$LINENO" 16146then : 16147 xorg_cv_cc_flag_unused_command_line_argument=yes 16148else $as_nop 16149 xorg_cv_cc_flag_unused_command_line_argument=no 16150fi 16151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16152fi 16153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16156 CFLAGS="$xorg_testset_save_CFLAGS" 16157fi 16158 16159found="no" 16160 16161 if test $found = "no" ; then 16162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16164 fi 16165 16166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16168 fi 16169 16170 CFLAGS="$CFLAGS -Werror=nonnull" 16171 16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16173printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16174 cacheid=xorg_cv_cc_flag__Werror_nonnull 16175 if eval test \${$cacheid+y} 16176then : 16177 printf %s "(cached) " >&6 16178else $as_nop 16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16180/* end confdefs.h. */ 16181int i; 16182int 16183main (void) 16184{ 16185 16186 ; 16187 return 0; 16188} 16189_ACEOF 16190if ac_fn_c_try_link "$LINENO" 16191then : 16192 eval $cacheid=yes 16193else $as_nop 16194 eval $cacheid=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16197 conftest$ac_exeext conftest.$ac_ext 16198fi 16199 16200 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202 16203 eval supported=\$$cacheid 16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16205printf "%s\n" "$supported" >&6; } 16206 if test "$supported" = "yes" ; then 16207 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16208 found="yes" 16209 fi 16210 fi 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226xorg_testset_save_CFLAGS="$CFLAGS" 16227 16228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16233then : 16234 printf %s "(cached) " >&6 16235else $as_nop 16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16237/* end confdefs.h. */ 16238int i; 16239_ACEOF 16240if ac_fn_c_try_compile "$LINENO" 16241then : 16242 xorg_cv_cc_flag_unknown_warning_option=yes 16243else $as_nop 16244 xorg_cv_cc_flag_unknown_warning_option=no 16245fi 16246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16247fi 16248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16251 CFLAGS="$xorg_testset_save_CFLAGS" 16252fi 16253 16254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16257 fi 16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16262then : 16263 printf %s "(cached) " >&6 16264else $as_nop 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267int i; 16268_ACEOF 16269if ac_fn_c_try_compile "$LINENO" 16270then : 16271 xorg_cv_cc_flag_unused_command_line_argument=yes 16272else $as_nop 16273 xorg_cv_cc_flag_unused_command_line_argument=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16276fi 16277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283found="no" 16284 16285 if test $found = "no" ; then 16286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16288 fi 16289 16290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16292 fi 16293 16294 CFLAGS="$CFLAGS -Werror=init-self" 16295 16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16297printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16298 cacheid=xorg_cv_cc_flag__Werror_init_self 16299 if eval test \${$cacheid+y} 16300then : 16301 printf %s "(cached) " >&6 16302else $as_nop 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306int 16307main (void) 16308{ 16309 16310 ; 16311 return 0; 16312} 16313_ACEOF 16314if ac_fn_c_try_link "$LINENO" 16315then : 16316 eval $cacheid=yes 16317else $as_nop 16318 eval $cacheid=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16321 conftest$ac_exeext conftest.$ac_ext 16322fi 16323 16324 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326 16327 eval supported=\$$cacheid 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16329printf "%s\n" "$supported" >&6; } 16330 if test "$supported" = "yes" ; then 16331 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16332 found="yes" 16333 fi 16334 fi 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350xorg_testset_save_CFLAGS="$CFLAGS" 16351 16352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16357then : 16358 printf %s "(cached) " >&6 16359else $as_nop 16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16361/* end confdefs.h. */ 16362int i; 16363_ACEOF 16364if ac_fn_c_try_compile "$LINENO" 16365then : 16366 xorg_cv_cc_flag_unknown_warning_option=yes 16367else $as_nop 16368 xorg_cv_cc_flag_unknown_warning_option=no 16369fi 16370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16371fi 16372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16375 CFLAGS="$xorg_testset_save_CFLAGS" 16376fi 16377 16378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16381 fi 16382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16386then : 16387 printf %s "(cached) " >&6 16388else $as_nop 16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16390/* end confdefs.h. */ 16391int i; 16392_ACEOF 16393if ac_fn_c_try_compile "$LINENO" 16394then : 16395 xorg_cv_cc_flag_unused_command_line_argument=yes 16396else $as_nop 16397 xorg_cv_cc_flag_unused_command_line_argument=no 16398fi 16399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16400fi 16401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16404 CFLAGS="$xorg_testset_save_CFLAGS" 16405fi 16406 16407found="no" 16408 16409 if test $found = "no" ; then 16410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16412 fi 16413 16414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16416 fi 16417 16418 CFLAGS="$CFLAGS -Werror=main" 16419 16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16421printf %s "checking if $CC supports -Werror=main... " >&6; } 16422 cacheid=xorg_cv_cc_flag__Werror_main 16423 if eval test \${$cacheid+y} 16424then : 16425 printf %s "(cached) " >&6 16426else $as_nop 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429int i; 16430int 16431main (void) 16432{ 16433 16434 ; 16435 return 0; 16436} 16437_ACEOF 16438if ac_fn_c_try_link "$LINENO" 16439then : 16440 eval $cacheid=yes 16441else $as_nop 16442 eval $cacheid=no 16443fi 16444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16445 conftest$ac_exeext conftest.$ac_ext 16446fi 16447 16448 16449 CFLAGS="$xorg_testset_save_CFLAGS" 16450 16451 eval supported=\$$cacheid 16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16453printf "%s\n" "$supported" >&6; } 16454 if test "$supported" = "yes" ; then 16455 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16456 found="yes" 16457 fi 16458 fi 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474xorg_testset_save_CFLAGS="$CFLAGS" 16475 16476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16480if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16481then : 16482 printf %s "(cached) " >&6 16483else $as_nop 16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485/* end confdefs.h. */ 16486int i; 16487_ACEOF 16488if ac_fn_c_try_compile "$LINENO" 16489then : 16490 xorg_cv_cc_flag_unknown_warning_option=yes 16491else $as_nop 16492 xorg_cv_cc_flag_unknown_warning_option=no 16493fi 16494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16495fi 16496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16499 CFLAGS="$xorg_testset_save_CFLAGS" 16500fi 16501 16502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16505 fi 16506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16509if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16510then : 16511 printf %s "(cached) " >&6 16512else $as_nop 16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16514/* end confdefs.h. */ 16515int i; 16516_ACEOF 16517if ac_fn_c_try_compile "$LINENO" 16518then : 16519 xorg_cv_cc_flag_unused_command_line_argument=yes 16520else $as_nop 16521 xorg_cv_cc_flag_unused_command_line_argument=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16524fi 16525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529fi 16530 16531found="no" 16532 16533 if test $found = "no" ; then 16534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16536 fi 16537 16538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16540 fi 16541 16542 CFLAGS="$CFLAGS -Werror=missing-braces" 16543 16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16545printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16546 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16547 if eval test \${$cacheid+y} 16548then : 16549 printf %s "(cached) " >&6 16550else $as_nop 16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16552/* end confdefs.h. */ 16553int i; 16554int 16555main (void) 16556{ 16557 16558 ; 16559 return 0; 16560} 16561_ACEOF 16562if ac_fn_c_try_link "$LINENO" 16563then : 16564 eval $cacheid=yes 16565else $as_nop 16566 eval $cacheid=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16569 conftest$ac_exeext conftest.$ac_ext 16570fi 16571 16572 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574 16575 eval supported=\$$cacheid 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16577printf "%s\n" "$supported" >&6; } 16578 if test "$supported" = "yes" ; then 16579 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16580 found="yes" 16581 fi 16582 fi 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598xorg_testset_save_CFLAGS="$CFLAGS" 16599 16600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16605then : 16606 printf %s "(cached) " >&6 16607else $as_nop 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609/* end confdefs.h. */ 16610int i; 16611_ACEOF 16612if ac_fn_c_try_compile "$LINENO" 16613then : 16614 xorg_cv_cc_flag_unknown_warning_option=yes 16615else $as_nop 16616 xorg_cv_cc_flag_unknown_warning_option=no 16617fi 16618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16619fi 16620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16623 CFLAGS="$xorg_testset_save_CFLAGS" 16624fi 16625 16626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 fi 16630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16633if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16634then : 16635 printf %s "(cached) " >&6 16636else $as_nop 16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16638/* end confdefs.h. */ 16639int i; 16640_ACEOF 16641if ac_fn_c_try_compile "$LINENO" 16642then : 16643 xorg_cv_cc_flag_unused_command_line_argument=yes 16644else $as_nop 16645 xorg_cv_cc_flag_unused_command_line_argument=no 16646fi 16647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16648fi 16649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16652 CFLAGS="$xorg_testset_save_CFLAGS" 16653fi 16654 16655found="no" 16656 16657 if test $found = "no" ; then 16658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16660 fi 16661 16662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16664 fi 16665 16666 CFLAGS="$CFLAGS -Werror=sequence-point" 16667 16668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16669printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16670 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16671 if eval test \${$cacheid+y} 16672then : 16673 printf %s "(cached) " >&6 16674else $as_nop 16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16676/* end confdefs.h. */ 16677int i; 16678int 16679main (void) 16680{ 16681 16682 ; 16683 return 0; 16684} 16685_ACEOF 16686if ac_fn_c_try_link "$LINENO" 16687then : 16688 eval $cacheid=yes 16689else $as_nop 16690 eval $cacheid=no 16691fi 16692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16693 conftest$ac_exeext conftest.$ac_ext 16694fi 16695 16696 16697 CFLAGS="$xorg_testset_save_CFLAGS" 16698 16699 eval supported=\$$cacheid 16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16701printf "%s\n" "$supported" >&6; } 16702 if test "$supported" = "yes" ; then 16703 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16704 found="yes" 16705 fi 16706 fi 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722xorg_testset_save_CFLAGS="$CFLAGS" 16723 16724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16729then : 16730 printf %s "(cached) " >&6 16731else $as_nop 16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16733/* end confdefs.h. */ 16734int i; 16735_ACEOF 16736if ac_fn_c_try_compile "$LINENO" 16737then : 16738 xorg_cv_cc_flag_unknown_warning_option=yes 16739else $as_nop 16740 xorg_cv_cc_flag_unknown_warning_option=no 16741fi 16742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16743fi 16744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16747 CFLAGS="$xorg_testset_save_CFLAGS" 16748fi 16749 16750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 fi 16754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16758then : 16759 printf %s "(cached) " >&6 16760else $as_nop 16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16762/* end confdefs.h. */ 16763int i; 16764_ACEOF 16765if ac_fn_c_try_compile "$LINENO" 16766then : 16767 xorg_cv_cc_flag_unused_command_line_argument=yes 16768else $as_nop 16769 xorg_cv_cc_flag_unused_command_line_argument=no 16770fi 16771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16772fi 16773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16776 CFLAGS="$xorg_testset_save_CFLAGS" 16777fi 16778 16779found="no" 16780 16781 if test $found = "no" ; then 16782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16784 fi 16785 16786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16788 fi 16789 16790 CFLAGS="$CFLAGS -Werror=return-type" 16791 16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16793printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16794 cacheid=xorg_cv_cc_flag__Werror_return_type 16795 if eval test \${$cacheid+y} 16796then : 16797 printf %s "(cached) " >&6 16798else $as_nop 16799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16800/* end confdefs.h. */ 16801int i; 16802int 16803main (void) 16804{ 16805 16806 ; 16807 return 0; 16808} 16809_ACEOF 16810if ac_fn_c_try_link "$LINENO" 16811then : 16812 eval $cacheid=yes 16813else $as_nop 16814 eval $cacheid=no 16815fi 16816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16817 conftest$ac_exeext conftest.$ac_ext 16818fi 16819 16820 16821 CFLAGS="$xorg_testset_save_CFLAGS" 16822 16823 eval supported=\$$cacheid 16824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16825printf "%s\n" "$supported" >&6; } 16826 if test "$supported" = "yes" ; then 16827 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16828 found="yes" 16829 fi 16830 fi 16831 16832 if test $found = "no" ; then 16833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16835 fi 16836 16837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16839 fi 16840 16841 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16842 16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16844printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16845 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16846 if eval test \${$cacheid+y} 16847then : 16848 printf %s "(cached) " >&6 16849else $as_nop 16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16851/* end confdefs.h. */ 16852int i; 16853int 16854main (void) 16855{ 16856 16857 ; 16858 return 0; 16859} 16860_ACEOF 16861if ac_fn_c_try_link "$LINENO" 16862then : 16863 eval $cacheid=yes 16864else $as_nop 16865 eval $cacheid=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16868 conftest$ac_exeext conftest.$ac_ext 16869fi 16870 16871 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873 16874 eval supported=\$$cacheid 16875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16876printf "%s\n" "$supported" >&6; } 16877 if test "$supported" = "yes" ; then 16878 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16879 found="yes" 16880 fi 16881 fi 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897xorg_testset_save_CFLAGS="$CFLAGS" 16898 16899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16904then : 16905 printf %s "(cached) " >&6 16906else $as_nop 16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16908/* end confdefs.h. */ 16909int i; 16910_ACEOF 16911if ac_fn_c_try_compile "$LINENO" 16912then : 16913 xorg_cv_cc_flag_unknown_warning_option=yes 16914else $as_nop 16915 xorg_cv_cc_flag_unknown_warning_option=no 16916fi 16917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16918fi 16919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16922 CFLAGS="$xorg_testset_save_CFLAGS" 16923fi 16924 16925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16928 fi 16929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16933then : 16934 printf %s "(cached) " >&6 16935else $as_nop 16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16937/* end confdefs.h. */ 16938int i; 16939_ACEOF 16940if ac_fn_c_try_compile "$LINENO" 16941then : 16942 xorg_cv_cc_flag_unused_command_line_argument=yes 16943else $as_nop 16944 xorg_cv_cc_flag_unused_command_line_argument=no 16945fi 16946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16947fi 16948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16951 CFLAGS="$xorg_testset_save_CFLAGS" 16952fi 16953 16954found="no" 16955 16956 if test $found = "no" ; then 16957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16959 fi 16960 16961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16963 fi 16964 16965 CFLAGS="$CFLAGS -Werror=trigraphs" 16966 16967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16968printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16969 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16970 if eval test \${$cacheid+y} 16971then : 16972 printf %s "(cached) " >&6 16973else $as_nop 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977int 16978main (void) 16979{ 16980 16981 ; 16982 return 0; 16983} 16984_ACEOF 16985if ac_fn_c_try_link "$LINENO" 16986then : 16987 eval $cacheid=yes 16988else $as_nop 16989 eval $cacheid=no 16990fi 16991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16992 conftest$ac_exeext conftest.$ac_ext 16993fi 16994 16995 16996 CFLAGS="$xorg_testset_save_CFLAGS" 16997 16998 eval supported=\$$cacheid 16999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17000printf "%s\n" "$supported" >&6; } 17001 if test "$supported" = "yes" ; then 17002 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17003 found="yes" 17004 fi 17005 fi 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021xorg_testset_save_CFLAGS="$CFLAGS" 17022 17023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17028then : 17029 printf %s "(cached) " >&6 17030else $as_nop 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033int i; 17034_ACEOF 17035if ac_fn_c_try_compile "$LINENO" 17036then : 17037 xorg_cv_cc_flag_unknown_warning_option=yes 17038else $as_nop 17039 xorg_cv_cc_flag_unknown_warning_option=no 17040fi 17041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17042fi 17043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17046 CFLAGS="$xorg_testset_save_CFLAGS" 17047fi 17048 17049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17057then : 17058 printf %s "(cached) " >&6 17059else $as_nop 17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17061/* end confdefs.h. */ 17062int i; 17063_ACEOF 17064if ac_fn_c_try_compile "$LINENO" 17065then : 17066 xorg_cv_cc_flag_unused_command_line_argument=yes 17067else $as_nop 17068 xorg_cv_cc_flag_unused_command_line_argument=no 17069fi 17070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17071fi 17072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17075 CFLAGS="$xorg_testset_save_CFLAGS" 17076fi 17077 17078found="no" 17079 17080 if test $found = "no" ; then 17081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17083 fi 17084 17085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17087 fi 17088 17089 CFLAGS="$CFLAGS -Werror=array-bounds" 17090 17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17092printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17093 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17094 if eval test \${$cacheid+y} 17095then : 17096 printf %s "(cached) " >&6 17097else $as_nop 17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17099/* end confdefs.h. */ 17100int i; 17101int 17102main (void) 17103{ 17104 17105 ; 17106 return 0; 17107} 17108_ACEOF 17109if ac_fn_c_try_link "$LINENO" 17110then : 17111 eval $cacheid=yes 17112else $as_nop 17113 eval $cacheid=no 17114fi 17115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17116 conftest$ac_exeext conftest.$ac_ext 17117fi 17118 17119 17120 CFLAGS="$xorg_testset_save_CFLAGS" 17121 17122 eval supported=\$$cacheid 17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17124printf "%s\n" "$supported" >&6; } 17125 if test "$supported" = "yes" ; then 17126 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17127 found="yes" 17128 fi 17129 fi 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145xorg_testset_save_CFLAGS="$CFLAGS" 17146 17147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17152then : 17153 printf %s "(cached) " >&6 17154else $as_nop 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158_ACEOF 17159if ac_fn_c_try_compile "$LINENO" 17160then : 17161 xorg_cv_cc_flag_unknown_warning_option=yes 17162else $as_nop 17163 xorg_cv_cc_flag_unknown_warning_option=no 17164fi 17165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17166fi 17167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17170 CFLAGS="$xorg_testset_save_CFLAGS" 17171fi 17172 17173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17176 fi 17177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17181then : 17182 printf %s "(cached) " >&6 17183else $as_nop 17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186int i; 17187_ACEOF 17188if ac_fn_c_try_compile "$LINENO" 17189then : 17190 xorg_cv_cc_flag_unused_command_line_argument=yes 17191else $as_nop 17192 xorg_cv_cc_flag_unused_command_line_argument=no 17193fi 17194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17195fi 17196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17199 CFLAGS="$xorg_testset_save_CFLAGS" 17200fi 17201 17202found="no" 17203 17204 if test $found = "no" ; then 17205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17207 fi 17208 17209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17211 fi 17212 17213 CFLAGS="$CFLAGS -Werror=write-strings" 17214 17215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17216printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17217 cacheid=xorg_cv_cc_flag__Werror_write_strings 17218 if eval test \${$cacheid+y} 17219then : 17220 printf %s "(cached) " >&6 17221else $as_nop 17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17223/* end confdefs.h. */ 17224int i; 17225int 17226main (void) 17227{ 17228 17229 ; 17230 return 0; 17231} 17232_ACEOF 17233if ac_fn_c_try_link "$LINENO" 17234then : 17235 eval $cacheid=yes 17236else $as_nop 17237 eval $cacheid=no 17238fi 17239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17240 conftest$ac_exeext conftest.$ac_ext 17241fi 17242 17243 17244 CFLAGS="$xorg_testset_save_CFLAGS" 17245 17246 eval supported=\$$cacheid 17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17248printf "%s\n" "$supported" >&6; } 17249 if test "$supported" = "yes" ; then 17250 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17251 found="yes" 17252 fi 17253 fi 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269xorg_testset_save_CFLAGS="$CFLAGS" 17270 17271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17276then : 17277 printf %s "(cached) " >&6 17278else $as_nop 17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281int i; 17282_ACEOF 17283if ac_fn_c_try_compile "$LINENO" 17284then : 17285 xorg_cv_cc_flag_unknown_warning_option=yes 17286else $as_nop 17287 xorg_cv_cc_flag_unknown_warning_option=no 17288fi 17289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17290fi 17291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17294 CFLAGS="$xorg_testset_save_CFLAGS" 17295fi 17296 17297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17300 fi 17301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17305then : 17306 printf %s "(cached) " >&6 17307else $as_nop 17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17309/* end confdefs.h. */ 17310int i; 17311_ACEOF 17312if ac_fn_c_try_compile "$LINENO" 17313then : 17314 xorg_cv_cc_flag_unused_command_line_argument=yes 17315else $as_nop 17316 xorg_cv_cc_flag_unused_command_line_argument=no 17317fi 17318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17319fi 17320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17323 CFLAGS="$xorg_testset_save_CFLAGS" 17324fi 17325 17326found="no" 17327 17328 if test $found = "no" ; then 17329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17331 fi 17332 17333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17335 fi 17336 17337 CFLAGS="$CFLAGS -Werror=address" 17338 17339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17340printf %s "checking if $CC supports -Werror=address... " >&6; } 17341 cacheid=xorg_cv_cc_flag__Werror_address 17342 if eval test \${$cacheid+y} 17343then : 17344 printf %s "(cached) " >&6 17345else $as_nop 17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17347/* end confdefs.h. */ 17348int i; 17349int 17350main (void) 17351{ 17352 17353 ; 17354 return 0; 17355} 17356_ACEOF 17357if ac_fn_c_try_link "$LINENO" 17358then : 17359 eval $cacheid=yes 17360else $as_nop 17361 eval $cacheid=no 17362fi 17363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17364 conftest$ac_exeext conftest.$ac_ext 17365fi 17366 17367 17368 CFLAGS="$xorg_testset_save_CFLAGS" 17369 17370 eval supported=\$$cacheid 17371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17372printf "%s\n" "$supported" >&6; } 17373 if test "$supported" = "yes" ; then 17374 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17375 found="yes" 17376 fi 17377 fi 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393xorg_testset_save_CFLAGS="$CFLAGS" 17394 17395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17400then : 17401 printf %s "(cached) " >&6 17402else $as_nop 17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17404/* end confdefs.h. */ 17405int i; 17406_ACEOF 17407if ac_fn_c_try_compile "$LINENO" 17408then : 17409 xorg_cv_cc_flag_unknown_warning_option=yes 17410else $as_nop 17411 xorg_cv_cc_flag_unknown_warning_option=no 17412fi 17413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17414fi 17415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17418 CFLAGS="$xorg_testset_save_CFLAGS" 17419fi 17420 17421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17424 fi 17425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17428if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17429then : 17430 printf %s "(cached) " >&6 17431else $as_nop 17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17433/* end confdefs.h. */ 17434int i; 17435_ACEOF 17436if ac_fn_c_try_compile "$LINENO" 17437then : 17438 xorg_cv_cc_flag_unused_command_line_argument=yes 17439else $as_nop 17440 xorg_cv_cc_flag_unused_command_line_argument=no 17441fi 17442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17443fi 17444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17447 CFLAGS="$xorg_testset_save_CFLAGS" 17448fi 17449 17450found="no" 17451 17452 if test $found = "no" ; then 17453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17455 fi 17456 17457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17459 fi 17460 17461 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17462 17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17464printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17465 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17466 if eval test \${$cacheid+y} 17467then : 17468 printf %s "(cached) " >&6 17469else $as_nop 17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17471/* end confdefs.h. */ 17472int i; 17473int 17474main (void) 17475{ 17476 17477 ; 17478 return 0; 17479} 17480_ACEOF 17481if ac_fn_c_try_link "$LINENO" 17482then : 17483 eval $cacheid=yes 17484else $as_nop 17485 eval $cacheid=no 17486fi 17487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17488 conftest$ac_exeext conftest.$ac_ext 17489fi 17490 17491 17492 CFLAGS="$xorg_testset_save_CFLAGS" 17493 17494 eval supported=\$$cacheid 17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17496printf "%s\n" "$supported" >&6; } 17497 if test "$supported" = "yes" ; then 17498 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17499 found="yes" 17500 fi 17501 fi 17502 17503 if test $found = "no" ; then 17504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17506 fi 17507 17508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17510 fi 17511 17512 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17513 17514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17515printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17516 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17517 if eval test \${$cacheid+y} 17518then : 17519 printf %s "(cached) " >&6 17520else $as_nop 17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17522/* end confdefs.h. */ 17523int i; 17524int 17525main (void) 17526{ 17527 17528 ; 17529 return 0; 17530} 17531_ACEOF 17532if ac_fn_c_try_link "$LINENO" 17533then : 17534 eval $cacheid=yes 17535else $as_nop 17536 eval $cacheid=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17539 conftest$ac_exeext conftest.$ac_ext 17540fi 17541 17542 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544 17545 eval supported=\$$cacheid 17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17547printf "%s\n" "$supported" >&6; } 17548 if test "$supported" = "yes" ; then 17549 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17550 found="yes" 17551 fi 17552 fi 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568xorg_testset_save_CFLAGS="$CFLAGS" 17569 17570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17575then : 17576 printf %s "(cached) " >&6 17577else $as_nop 17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17579/* end confdefs.h. */ 17580int i; 17581_ACEOF 17582if ac_fn_c_try_compile "$LINENO" 17583then : 17584 xorg_cv_cc_flag_unknown_warning_option=yes 17585else $as_nop 17586 xorg_cv_cc_flag_unknown_warning_option=no 17587fi 17588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17589fi 17590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17593 CFLAGS="$xorg_testset_save_CFLAGS" 17594fi 17595 17596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17599 fi 17600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17604then : 17605 printf %s "(cached) " >&6 17606else $as_nop 17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608/* end confdefs.h. */ 17609int i; 17610_ACEOF 17611if ac_fn_c_try_compile "$LINENO" 17612then : 17613 xorg_cv_cc_flag_unused_command_line_argument=yes 17614else $as_nop 17615 xorg_cv_cc_flag_unused_command_line_argument=no 17616fi 17617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17618fi 17619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17622 CFLAGS="$xorg_testset_save_CFLAGS" 17623fi 17624 17625found="no" 17626 17627 if test $found = "no" ; then 17628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17630 fi 17631 17632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17634 fi 17635 17636 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17637 17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17639printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17640 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17641 if eval test \${$cacheid+y} 17642then : 17643 printf %s "(cached) " >&6 17644else $as_nop 17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17646/* end confdefs.h. */ 17647int i; 17648int 17649main (void) 17650{ 17651 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_c_try_link "$LINENO" 17657then : 17658 eval $cacheid=yes 17659else $as_nop 17660 eval $cacheid=no 17661fi 17662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17663 conftest$ac_exeext conftest.$ac_ext 17664fi 17665 17666 17667 CFLAGS="$xorg_testset_save_CFLAGS" 17668 17669 eval supported=\$$cacheid 17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17671printf "%s\n" "$supported" >&6; } 17672 if test "$supported" = "yes" ; then 17673 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17674 found="yes" 17675 fi 17676 fi 17677 17678 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17679else 17680{ 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 17681printf "%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;} 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695xorg_testset_save_CFLAGS="$CFLAGS" 17696 17697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17702then : 17703 printf %s "(cached) " >&6 17704else $as_nop 17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17706/* end confdefs.h. */ 17707int i; 17708_ACEOF 17709if ac_fn_c_try_compile "$LINENO" 17710then : 17711 xorg_cv_cc_flag_unknown_warning_option=yes 17712else $as_nop 17713 xorg_cv_cc_flag_unknown_warning_option=no 17714fi 17715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17716fi 17717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17720 CFLAGS="$xorg_testset_save_CFLAGS" 17721fi 17722 17723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17726 fi 17727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17731then : 17732 printf %s "(cached) " >&6 17733else $as_nop 17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17735/* end confdefs.h. */ 17736int i; 17737_ACEOF 17738if ac_fn_c_try_compile "$LINENO" 17739then : 17740 xorg_cv_cc_flag_unused_command_line_argument=yes 17741else $as_nop 17742 xorg_cv_cc_flag_unused_command_line_argument=no 17743fi 17744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17745fi 17746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17749 CFLAGS="$xorg_testset_save_CFLAGS" 17750fi 17751 17752found="no" 17753 17754 if test $found = "no" ; then 17755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17757 fi 17758 17759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17761 fi 17762 17763 CFLAGS="$CFLAGS -Wimplicit" 17764 17765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17766printf %s "checking if $CC supports -Wimplicit... " >&6; } 17767 cacheid=xorg_cv_cc_flag__Wimplicit 17768 if eval test \${$cacheid+y} 17769then : 17770 printf %s "(cached) " >&6 17771else $as_nop 17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17773/* end confdefs.h. */ 17774int i; 17775int 17776main (void) 17777{ 17778 17779 ; 17780 return 0; 17781} 17782_ACEOF 17783if ac_fn_c_try_link "$LINENO" 17784then : 17785 eval $cacheid=yes 17786else $as_nop 17787 eval $cacheid=no 17788fi 17789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17790 conftest$ac_exeext conftest.$ac_ext 17791fi 17792 17793 17794 CFLAGS="$xorg_testset_save_CFLAGS" 17795 17796 eval supported=\$$cacheid 17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17798printf "%s\n" "$supported" >&6; } 17799 if test "$supported" = "yes" ; then 17800 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17801 found="yes" 17802 fi 17803 fi 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819xorg_testset_save_CFLAGS="$CFLAGS" 17820 17821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17826then : 17827 printf %s "(cached) " >&6 17828else $as_nop 17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17830/* end confdefs.h. */ 17831int i; 17832_ACEOF 17833if ac_fn_c_try_compile "$LINENO" 17834then : 17835 xorg_cv_cc_flag_unknown_warning_option=yes 17836else $as_nop 17837 xorg_cv_cc_flag_unknown_warning_option=no 17838fi 17839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17840fi 17841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17844 CFLAGS="$xorg_testset_save_CFLAGS" 17845fi 17846 17847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17850 fi 17851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17855then : 17856 printf %s "(cached) " >&6 17857else $as_nop 17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17859/* end confdefs.h. */ 17860int i; 17861_ACEOF 17862if ac_fn_c_try_compile "$LINENO" 17863then : 17864 xorg_cv_cc_flag_unused_command_line_argument=yes 17865else $as_nop 17866 xorg_cv_cc_flag_unused_command_line_argument=no 17867fi 17868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17869fi 17870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17873 CFLAGS="$xorg_testset_save_CFLAGS" 17874fi 17875 17876found="no" 17877 17878 if test $found = "no" ; then 17879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17881 fi 17882 17883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17885 fi 17886 17887 CFLAGS="$CFLAGS -Wnonnull" 17888 17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17890printf %s "checking if $CC supports -Wnonnull... " >&6; } 17891 cacheid=xorg_cv_cc_flag__Wnonnull 17892 if eval test \${$cacheid+y} 17893then : 17894 printf %s "(cached) " >&6 17895else $as_nop 17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17897/* end confdefs.h. */ 17898int i; 17899int 17900main (void) 17901{ 17902 17903 ; 17904 return 0; 17905} 17906_ACEOF 17907if ac_fn_c_try_link "$LINENO" 17908then : 17909 eval $cacheid=yes 17910else $as_nop 17911 eval $cacheid=no 17912fi 17913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17914 conftest$ac_exeext conftest.$ac_ext 17915fi 17916 17917 17918 CFLAGS="$xorg_testset_save_CFLAGS" 17919 17920 eval supported=\$$cacheid 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17922printf "%s\n" "$supported" >&6; } 17923 if test "$supported" = "yes" ; then 17924 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17925 found="yes" 17926 fi 17927 fi 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943xorg_testset_save_CFLAGS="$CFLAGS" 17944 17945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17949if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17950then : 17951 printf %s "(cached) " >&6 17952else $as_nop 17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17954/* end confdefs.h. */ 17955int i; 17956_ACEOF 17957if ac_fn_c_try_compile "$LINENO" 17958then : 17959 xorg_cv_cc_flag_unknown_warning_option=yes 17960else $as_nop 17961 xorg_cv_cc_flag_unknown_warning_option=no 17962fi 17963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17964fi 17965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17968 CFLAGS="$xorg_testset_save_CFLAGS" 17969fi 17970 17971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17974 fi 17975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17979then : 17980 printf %s "(cached) " >&6 17981else $as_nop 17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17983/* end confdefs.h. */ 17984int i; 17985_ACEOF 17986if ac_fn_c_try_compile "$LINENO" 17987then : 17988 xorg_cv_cc_flag_unused_command_line_argument=yes 17989else $as_nop 17990 xorg_cv_cc_flag_unused_command_line_argument=no 17991fi 17992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17993fi 17994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17997 CFLAGS="$xorg_testset_save_CFLAGS" 17998fi 17999 18000found="no" 18001 18002 if test $found = "no" ; then 18003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18005 fi 18006 18007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18009 fi 18010 18011 CFLAGS="$CFLAGS -Winit-self" 18012 18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18014printf %s "checking if $CC supports -Winit-self... " >&6; } 18015 cacheid=xorg_cv_cc_flag__Winit_self 18016 if eval test \${$cacheid+y} 18017then : 18018 printf %s "(cached) " >&6 18019else $as_nop 18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18021/* end confdefs.h. */ 18022int i; 18023int 18024main (void) 18025{ 18026 18027 ; 18028 return 0; 18029} 18030_ACEOF 18031if ac_fn_c_try_link "$LINENO" 18032then : 18033 eval $cacheid=yes 18034else $as_nop 18035 eval $cacheid=no 18036fi 18037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18038 conftest$ac_exeext conftest.$ac_ext 18039fi 18040 18041 18042 CFLAGS="$xorg_testset_save_CFLAGS" 18043 18044 eval supported=\$$cacheid 18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18046printf "%s\n" "$supported" >&6; } 18047 if test "$supported" = "yes" ; then 18048 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18049 found="yes" 18050 fi 18051 fi 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067xorg_testset_save_CFLAGS="$CFLAGS" 18068 18069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18074then : 18075 printf %s "(cached) " >&6 18076else $as_nop 18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18078/* end confdefs.h. */ 18079int i; 18080_ACEOF 18081if ac_fn_c_try_compile "$LINENO" 18082then : 18083 xorg_cv_cc_flag_unknown_warning_option=yes 18084else $as_nop 18085 xorg_cv_cc_flag_unknown_warning_option=no 18086fi 18087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18088fi 18089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18092 CFLAGS="$xorg_testset_save_CFLAGS" 18093fi 18094 18095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18098 fi 18099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18103then : 18104 printf %s "(cached) " >&6 18105else $as_nop 18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107/* end confdefs.h. */ 18108int i; 18109_ACEOF 18110if ac_fn_c_try_compile "$LINENO" 18111then : 18112 xorg_cv_cc_flag_unused_command_line_argument=yes 18113else $as_nop 18114 xorg_cv_cc_flag_unused_command_line_argument=no 18115fi 18116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18117fi 18118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18121 CFLAGS="$xorg_testset_save_CFLAGS" 18122fi 18123 18124found="no" 18125 18126 if test $found = "no" ; then 18127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18129 fi 18130 18131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18133 fi 18134 18135 CFLAGS="$CFLAGS -Wmain" 18136 18137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18138printf %s "checking if $CC supports -Wmain... " >&6; } 18139 cacheid=xorg_cv_cc_flag__Wmain 18140 if eval test \${$cacheid+y} 18141then : 18142 printf %s "(cached) " >&6 18143else $as_nop 18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18145/* end confdefs.h. */ 18146int i; 18147int 18148main (void) 18149{ 18150 18151 ; 18152 return 0; 18153} 18154_ACEOF 18155if ac_fn_c_try_link "$LINENO" 18156then : 18157 eval $cacheid=yes 18158else $as_nop 18159 eval $cacheid=no 18160fi 18161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18162 conftest$ac_exeext conftest.$ac_ext 18163fi 18164 18165 18166 CFLAGS="$xorg_testset_save_CFLAGS" 18167 18168 eval supported=\$$cacheid 18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18170printf "%s\n" "$supported" >&6; } 18171 if test "$supported" = "yes" ; then 18172 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18173 found="yes" 18174 fi 18175 fi 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191xorg_testset_save_CFLAGS="$CFLAGS" 18192 18193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18197if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18198then : 18199 printf %s "(cached) " >&6 18200else $as_nop 18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18202/* end confdefs.h. */ 18203int i; 18204_ACEOF 18205if ac_fn_c_try_compile "$LINENO" 18206then : 18207 xorg_cv_cc_flag_unknown_warning_option=yes 18208else $as_nop 18209 xorg_cv_cc_flag_unknown_warning_option=no 18210fi 18211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18212fi 18213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18216 CFLAGS="$xorg_testset_save_CFLAGS" 18217fi 18218 18219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18222 fi 18223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18226if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18227then : 18228 printf %s "(cached) " >&6 18229else $as_nop 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232int i; 18233_ACEOF 18234if ac_fn_c_try_compile "$LINENO" 18235then : 18236 xorg_cv_cc_flag_unused_command_line_argument=yes 18237else $as_nop 18238 xorg_cv_cc_flag_unused_command_line_argument=no 18239fi 18240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18241fi 18242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18245 CFLAGS="$xorg_testset_save_CFLAGS" 18246fi 18247 18248found="no" 18249 18250 if test $found = "no" ; then 18251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18253 fi 18254 18255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18257 fi 18258 18259 CFLAGS="$CFLAGS -Wmissing-braces" 18260 18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18262printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18263 cacheid=xorg_cv_cc_flag__Wmissing_braces 18264 if eval test \${$cacheid+y} 18265then : 18266 printf %s "(cached) " >&6 18267else $as_nop 18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18269/* end confdefs.h. */ 18270int i; 18271int 18272main (void) 18273{ 18274 18275 ; 18276 return 0; 18277} 18278_ACEOF 18279if ac_fn_c_try_link "$LINENO" 18280then : 18281 eval $cacheid=yes 18282else $as_nop 18283 eval $cacheid=no 18284fi 18285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18286 conftest$ac_exeext conftest.$ac_ext 18287fi 18288 18289 18290 CFLAGS="$xorg_testset_save_CFLAGS" 18291 18292 eval supported=\$$cacheid 18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18294printf "%s\n" "$supported" >&6; } 18295 if test "$supported" = "yes" ; then 18296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18297 found="yes" 18298 fi 18299 fi 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315xorg_testset_save_CFLAGS="$CFLAGS" 18316 18317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18321if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18322then : 18323 printf %s "(cached) " >&6 18324else $as_nop 18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18326/* end confdefs.h. */ 18327int i; 18328_ACEOF 18329if ac_fn_c_try_compile "$LINENO" 18330then : 18331 xorg_cv_cc_flag_unknown_warning_option=yes 18332else $as_nop 18333 xorg_cv_cc_flag_unknown_warning_option=no 18334fi 18335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18336fi 18337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18340 CFLAGS="$xorg_testset_save_CFLAGS" 18341fi 18342 18343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18346 fi 18347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18350if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18351then : 18352 printf %s "(cached) " >&6 18353else $as_nop 18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18355/* end confdefs.h. */ 18356int i; 18357_ACEOF 18358if ac_fn_c_try_compile "$LINENO" 18359then : 18360 xorg_cv_cc_flag_unused_command_line_argument=yes 18361else $as_nop 18362 xorg_cv_cc_flag_unused_command_line_argument=no 18363fi 18364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18365fi 18366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18369 CFLAGS="$xorg_testset_save_CFLAGS" 18370fi 18371 18372found="no" 18373 18374 if test $found = "no" ; then 18375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18377 fi 18378 18379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18381 fi 18382 18383 CFLAGS="$CFLAGS -Wsequence-point" 18384 18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18386printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18387 cacheid=xorg_cv_cc_flag__Wsequence_point 18388 if eval test \${$cacheid+y} 18389then : 18390 printf %s "(cached) " >&6 18391else $as_nop 18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393/* end confdefs.h. */ 18394int i; 18395int 18396main (void) 18397{ 18398 18399 ; 18400 return 0; 18401} 18402_ACEOF 18403if ac_fn_c_try_link "$LINENO" 18404then : 18405 eval $cacheid=yes 18406else $as_nop 18407 eval $cacheid=no 18408fi 18409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18410 conftest$ac_exeext conftest.$ac_ext 18411fi 18412 18413 18414 CFLAGS="$xorg_testset_save_CFLAGS" 18415 18416 eval supported=\$$cacheid 18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18418printf "%s\n" "$supported" >&6; } 18419 if test "$supported" = "yes" ; then 18420 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18421 found="yes" 18422 fi 18423 fi 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439xorg_testset_save_CFLAGS="$CFLAGS" 18440 18441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18446then : 18447 printf %s "(cached) " >&6 18448else $as_nop 18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18450/* end confdefs.h. */ 18451int i; 18452_ACEOF 18453if ac_fn_c_try_compile "$LINENO" 18454then : 18455 xorg_cv_cc_flag_unknown_warning_option=yes 18456else $as_nop 18457 xorg_cv_cc_flag_unknown_warning_option=no 18458fi 18459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18460fi 18461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18464 CFLAGS="$xorg_testset_save_CFLAGS" 18465fi 18466 18467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18470 fi 18471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18475then : 18476 printf %s "(cached) " >&6 18477else $as_nop 18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18479/* end confdefs.h. */ 18480int i; 18481_ACEOF 18482if ac_fn_c_try_compile "$LINENO" 18483then : 18484 xorg_cv_cc_flag_unused_command_line_argument=yes 18485else $as_nop 18486 xorg_cv_cc_flag_unused_command_line_argument=no 18487fi 18488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18489fi 18490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18493 CFLAGS="$xorg_testset_save_CFLAGS" 18494fi 18495 18496found="no" 18497 18498 if test $found = "no" ; then 18499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18501 fi 18502 18503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18505 fi 18506 18507 CFLAGS="$CFLAGS -Wreturn-type" 18508 18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18510printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18511 cacheid=xorg_cv_cc_flag__Wreturn_type 18512 if eval test \${$cacheid+y} 18513then : 18514 printf %s "(cached) " >&6 18515else $as_nop 18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18517/* end confdefs.h. */ 18518int i; 18519int 18520main (void) 18521{ 18522 18523 ; 18524 return 0; 18525} 18526_ACEOF 18527if ac_fn_c_try_link "$LINENO" 18528then : 18529 eval $cacheid=yes 18530else $as_nop 18531 eval $cacheid=no 18532fi 18533rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18534 conftest$ac_exeext conftest.$ac_ext 18535fi 18536 18537 18538 CFLAGS="$xorg_testset_save_CFLAGS" 18539 18540 eval supported=\$$cacheid 18541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18542printf "%s\n" "$supported" >&6; } 18543 if test "$supported" = "yes" ; then 18544 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18545 found="yes" 18546 fi 18547 fi 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563xorg_testset_save_CFLAGS="$CFLAGS" 18564 18565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18569if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18570then : 18571 printf %s "(cached) " >&6 18572else $as_nop 18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18574/* end confdefs.h. */ 18575int i; 18576_ACEOF 18577if ac_fn_c_try_compile "$LINENO" 18578then : 18579 xorg_cv_cc_flag_unknown_warning_option=yes 18580else $as_nop 18581 xorg_cv_cc_flag_unknown_warning_option=no 18582fi 18583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18584fi 18585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18588 CFLAGS="$xorg_testset_save_CFLAGS" 18589fi 18590 18591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18594 fi 18595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18598if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18599then : 18600 printf %s "(cached) " >&6 18601else $as_nop 18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18603/* end confdefs.h. */ 18604int i; 18605_ACEOF 18606if ac_fn_c_try_compile "$LINENO" 18607then : 18608 xorg_cv_cc_flag_unused_command_line_argument=yes 18609else $as_nop 18610 xorg_cv_cc_flag_unused_command_line_argument=no 18611fi 18612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18613fi 18614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18617 CFLAGS="$xorg_testset_save_CFLAGS" 18618fi 18619 18620found="no" 18621 18622 if test $found = "no" ; then 18623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18625 fi 18626 18627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18629 fi 18630 18631 CFLAGS="$CFLAGS -Wtrigraphs" 18632 18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18634printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18635 cacheid=xorg_cv_cc_flag__Wtrigraphs 18636 if eval test \${$cacheid+y} 18637then : 18638 printf %s "(cached) " >&6 18639else $as_nop 18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18641/* end confdefs.h. */ 18642int i; 18643int 18644main (void) 18645{ 18646 18647 ; 18648 return 0; 18649} 18650_ACEOF 18651if ac_fn_c_try_link "$LINENO" 18652then : 18653 eval $cacheid=yes 18654else $as_nop 18655 eval $cacheid=no 18656fi 18657rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18658 conftest$ac_exeext conftest.$ac_ext 18659fi 18660 18661 18662 CFLAGS="$xorg_testset_save_CFLAGS" 18663 18664 eval supported=\$$cacheid 18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18666printf "%s\n" "$supported" >&6; } 18667 if test "$supported" = "yes" ; then 18668 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18669 found="yes" 18670 fi 18671 fi 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687xorg_testset_save_CFLAGS="$CFLAGS" 18688 18689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18693if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18694then : 18695 printf %s "(cached) " >&6 18696else $as_nop 18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698/* end confdefs.h. */ 18699int i; 18700_ACEOF 18701if ac_fn_c_try_compile "$LINENO" 18702then : 18703 xorg_cv_cc_flag_unknown_warning_option=yes 18704else $as_nop 18705 xorg_cv_cc_flag_unknown_warning_option=no 18706fi 18707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18708fi 18709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18712 CFLAGS="$xorg_testset_save_CFLAGS" 18713fi 18714 18715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18718 fi 18719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18723then : 18724 printf %s "(cached) " >&6 18725else $as_nop 18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18727/* end confdefs.h. */ 18728int i; 18729_ACEOF 18730if ac_fn_c_try_compile "$LINENO" 18731then : 18732 xorg_cv_cc_flag_unused_command_line_argument=yes 18733else $as_nop 18734 xorg_cv_cc_flag_unused_command_line_argument=no 18735fi 18736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18737fi 18738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18741 CFLAGS="$xorg_testset_save_CFLAGS" 18742fi 18743 18744found="no" 18745 18746 if test $found = "no" ; then 18747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18749 fi 18750 18751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18753 fi 18754 18755 CFLAGS="$CFLAGS -Warray-bounds" 18756 18757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18758printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18759 cacheid=xorg_cv_cc_flag__Warray_bounds 18760 if eval test \${$cacheid+y} 18761then : 18762 printf %s "(cached) " >&6 18763else $as_nop 18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18765/* end confdefs.h. */ 18766int i; 18767int 18768main (void) 18769{ 18770 18771 ; 18772 return 0; 18773} 18774_ACEOF 18775if ac_fn_c_try_link "$LINENO" 18776then : 18777 eval $cacheid=yes 18778else $as_nop 18779 eval $cacheid=no 18780fi 18781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18782 conftest$ac_exeext conftest.$ac_ext 18783fi 18784 18785 18786 CFLAGS="$xorg_testset_save_CFLAGS" 18787 18788 eval supported=\$$cacheid 18789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18790printf "%s\n" "$supported" >&6; } 18791 if test "$supported" = "yes" ; then 18792 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18793 found="yes" 18794 fi 18795 fi 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811xorg_testset_save_CFLAGS="$CFLAGS" 18812 18813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18818then : 18819 printf %s "(cached) " >&6 18820else $as_nop 18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18822/* end confdefs.h. */ 18823int i; 18824_ACEOF 18825if ac_fn_c_try_compile "$LINENO" 18826then : 18827 xorg_cv_cc_flag_unknown_warning_option=yes 18828else $as_nop 18829 xorg_cv_cc_flag_unknown_warning_option=no 18830fi 18831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18832fi 18833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18836 CFLAGS="$xorg_testset_save_CFLAGS" 18837fi 18838 18839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18842 fi 18843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18847then : 18848 printf %s "(cached) " >&6 18849else $as_nop 18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18851/* end confdefs.h. */ 18852int i; 18853_ACEOF 18854if ac_fn_c_try_compile "$LINENO" 18855then : 18856 xorg_cv_cc_flag_unused_command_line_argument=yes 18857else $as_nop 18858 xorg_cv_cc_flag_unused_command_line_argument=no 18859fi 18860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18861fi 18862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18865 CFLAGS="$xorg_testset_save_CFLAGS" 18866fi 18867 18868found="no" 18869 18870 if test $found = "no" ; then 18871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18873 fi 18874 18875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18877 fi 18878 18879 CFLAGS="$CFLAGS -Wwrite-strings" 18880 18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18882printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18883 cacheid=xorg_cv_cc_flag__Wwrite_strings 18884 if eval test \${$cacheid+y} 18885then : 18886 printf %s "(cached) " >&6 18887else $as_nop 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890int i; 18891int 18892main (void) 18893{ 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_c_try_link "$LINENO" 18900then : 18901 eval $cacheid=yes 18902else $as_nop 18903 eval $cacheid=no 18904fi 18905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18906 conftest$ac_exeext conftest.$ac_ext 18907fi 18908 18909 18910 CFLAGS="$xorg_testset_save_CFLAGS" 18911 18912 eval supported=\$$cacheid 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18914printf "%s\n" "$supported" >&6; } 18915 if test "$supported" = "yes" ; then 18916 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18917 found="yes" 18918 fi 18919 fi 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935xorg_testset_save_CFLAGS="$CFLAGS" 18936 18937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18942then : 18943 printf %s "(cached) " >&6 18944else $as_nop 18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18946/* end confdefs.h. */ 18947int i; 18948_ACEOF 18949if ac_fn_c_try_compile "$LINENO" 18950then : 18951 xorg_cv_cc_flag_unknown_warning_option=yes 18952else $as_nop 18953 xorg_cv_cc_flag_unknown_warning_option=no 18954fi 18955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18956fi 18957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18960 CFLAGS="$xorg_testset_save_CFLAGS" 18961fi 18962 18963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18966 fi 18967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18971then : 18972 printf %s "(cached) " >&6 18973else $as_nop 18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18975/* end confdefs.h. */ 18976int i; 18977_ACEOF 18978if ac_fn_c_try_compile "$LINENO" 18979then : 18980 xorg_cv_cc_flag_unused_command_line_argument=yes 18981else $as_nop 18982 xorg_cv_cc_flag_unused_command_line_argument=no 18983fi 18984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18985fi 18986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18989 CFLAGS="$xorg_testset_save_CFLAGS" 18990fi 18991 18992found="no" 18993 18994 if test $found = "no" ; then 18995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18997 fi 18998 18999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19001 fi 19002 19003 CFLAGS="$CFLAGS -Waddress" 19004 19005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19006printf %s "checking if $CC supports -Waddress... " >&6; } 19007 cacheid=xorg_cv_cc_flag__Waddress 19008 if eval test \${$cacheid+y} 19009then : 19010 printf %s "(cached) " >&6 19011else $as_nop 19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19013/* end confdefs.h. */ 19014int i; 19015int 19016main (void) 19017{ 19018 19019 ; 19020 return 0; 19021} 19022_ACEOF 19023if ac_fn_c_try_link "$LINENO" 19024then : 19025 eval $cacheid=yes 19026else $as_nop 19027 eval $cacheid=no 19028fi 19029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19030 conftest$ac_exeext conftest.$ac_ext 19031fi 19032 19033 19034 CFLAGS="$xorg_testset_save_CFLAGS" 19035 19036 eval supported=\$$cacheid 19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19038printf "%s\n" "$supported" >&6; } 19039 if test "$supported" = "yes" ; then 19040 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19041 found="yes" 19042 fi 19043 fi 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059xorg_testset_save_CFLAGS="$CFLAGS" 19060 19061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19066then : 19067 printf %s "(cached) " >&6 19068else $as_nop 19069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19070/* end confdefs.h. */ 19071int i; 19072_ACEOF 19073if ac_fn_c_try_compile "$LINENO" 19074then : 19075 xorg_cv_cc_flag_unknown_warning_option=yes 19076else $as_nop 19077 xorg_cv_cc_flag_unknown_warning_option=no 19078fi 19079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19080fi 19081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19084 CFLAGS="$xorg_testset_save_CFLAGS" 19085fi 19086 19087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19090 fi 19091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19095then : 19096 printf %s "(cached) " >&6 19097else $as_nop 19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19099/* end confdefs.h. */ 19100int i; 19101_ACEOF 19102if ac_fn_c_try_compile "$LINENO" 19103then : 19104 xorg_cv_cc_flag_unused_command_line_argument=yes 19105else $as_nop 19106 xorg_cv_cc_flag_unused_command_line_argument=no 19107fi 19108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19109fi 19110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19113 CFLAGS="$xorg_testset_save_CFLAGS" 19114fi 19115 19116found="no" 19117 19118 if test $found = "no" ; then 19119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19121 fi 19122 19123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19125 fi 19126 19127 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19128 19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19130printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19131 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19132 if eval test \${$cacheid+y} 19133then : 19134 printf %s "(cached) " >&6 19135else $as_nop 19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19137/* end confdefs.h. */ 19138int i; 19139int 19140main (void) 19141{ 19142 19143 ; 19144 return 0; 19145} 19146_ACEOF 19147if ac_fn_c_try_link "$LINENO" 19148then : 19149 eval $cacheid=yes 19150else $as_nop 19151 eval $cacheid=no 19152fi 19153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19154 conftest$ac_exeext conftest.$ac_ext 19155fi 19156 19157 19158 CFLAGS="$xorg_testset_save_CFLAGS" 19159 19160 eval supported=\$$cacheid 19161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19162printf "%s\n" "$supported" >&6; } 19163 if test "$supported" = "yes" ; then 19164 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19165 found="yes" 19166 fi 19167 fi 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183xorg_testset_save_CFLAGS="$CFLAGS" 19184 19185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19189if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19190then : 19191 printf %s "(cached) " >&6 19192else $as_nop 19193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19194/* end confdefs.h. */ 19195int i; 19196_ACEOF 19197if ac_fn_c_try_compile "$LINENO" 19198then : 19199 xorg_cv_cc_flag_unknown_warning_option=yes 19200else $as_nop 19201 xorg_cv_cc_flag_unknown_warning_option=no 19202fi 19203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19204fi 19205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19208 CFLAGS="$xorg_testset_save_CFLAGS" 19209fi 19210 19211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19214 fi 19215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19219then : 19220 printf %s "(cached) " >&6 19221else $as_nop 19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19223/* end confdefs.h. */ 19224int i; 19225_ACEOF 19226if ac_fn_c_try_compile "$LINENO" 19227then : 19228 xorg_cv_cc_flag_unused_command_line_argument=yes 19229else $as_nop 19230 xorg_cv_cc_flag_unused_command_line_argument=no 19231fi 19232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19233fi 19234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19237 CFLAGS="$xorg_testset_save_CFLAGS" 19238fi 19239 19240found="no" 19241 19242 if test $found = "no" ; then 19243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19245 fi 19246 19247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19249 fi 19250 19251 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19252 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19254printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19255 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19256 if eval test \${$cacheid+y} 19257then : 19258 printf %s "(cached) " >&6 19259else $as_nop 19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261/* end confdefs.h. */ 19262int i; 19263int 19264main (void) 19265{ 19266 19267 ; 19268 return 0; 19269} 19270_ACEOF 19271if ac_fn_c_try_link "$LINENO" 19272then : 19273 eval $cacheid=yes 19274else $as_nop 19275 eval $cacheid=no 19276fi 19277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19278 conftest$ac_exeext conftest.$ac_ext 19279fi 19280 19281 19282 CFLAGS="$xorg_testset_save_CFLAGS" 19283 19284 eval supported=\$$cacheid 19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19286printf "%s\n" "$supported" >&6; } 19287 if test "$supported" = "yes" ; then 19288 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19289 found="yes" 19290 fi 19291 fi 19292 19293 19294fi 19295 19296 19297 19298 19299 19300 19301 19302 CWARNFLAGS="$BASE_CFLAGS" 19303 if test "x$GCC" = xyes ; then 19304 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19305 fi 19306 19307 19308 19309 19310 19311 19312 19313 19314# Check whether --enable-strict-compilation was given. 19315if test ${enable_strict_compilation+y} 19316then : 19317 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19318else $as_nop 19319 STRICT_COMPILE=no 19320fi 19321 19322 19323 19324 19325 19326 19327STRICT_CFLAGS="" 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341xorg_testset_save_CFLAGS="$CFLAGS" 19342 19343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19348then : 19349 printf %s "(cached) " >&6 19350else $as_nop 19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19352/* end confdefs.h. */ 19353int i; 19354_ACEOF 19355if ac_fn_c_try_compile "$LINENO" 19356then : 19357 xorg_cv_cc_flag_unknown_warning_option=yes 19358else $as_nop 19359 xorg_cv_cc_flag_unknown_warning_option=no 19360fi 19361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19362fi 19363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19366 CFLAGS="$xorg_testset_save_CFLAGS" 19367fi 19368 19369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19372 fi 19373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19376if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19377then : 19378 printf %s "(cached) " >&6 19379else $as_nop 19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19381/* end confdefs.h. */ 19382int i; 19383_ACEOF 19384if ac_fn_c_try_compile "$LINENO" 19385then : 19386 xorg_cv_cc_flag_unused_command_line_argument=yes 19387else $as_nop 19388 xorg_cv_cc_flag_unused_command_line_argument=no 19389fi 19390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19391fi 19392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19393printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19395 CFLAGS="$xorg_testset_save_CFLAGS" 19396fi 19397 19398found="no" 19399 19400 if test $found = "no" ; then 19401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19403 fi 19404 19405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19407 fi 19408 19409 CFLAGS="$CFLAGS -pedantic" 19410 19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19412printf %s "checking if $CC supports -pedantic... " >&6; } 19413 cacheid=xorg_cv_cc_flag__pedantic 19414 if eval test \${$cacheid+y} 19415then : 19416 printf %s "(cached) " >&6 19417else $as_nop 19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19419/* end confdefs.h. */ 19420int i; 19421int 19422main (void) 19423{ 19424 19425 ; 19426 return 0; 19427} 19428_ACEOF 19429if ac_fn_c_try_link "$LINENO" 19430then : 19431 eval $cacheid=yes 19432else $as_nop 19433 eval $cacheid=no 19434fi 19435rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19436 conftest$ac_exeext conftest.$ac_ext 19437fi 19438 19439 19440 CFLAGS="$xorg_testset_save_CFLAGS" 19441 19442 eval supported=\$$cacheid 19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19444printf "%s\n" "$supported" >&6; } 19445 if test "$supported" = "yes" ; then 19446 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19447 found="yes" 19448 fi 19449 fi 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465xorg_testset_save_CFLAGS="$CFLAGS" 19466 19467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19472then : 19473 printf %s "(cached) " >&6 19474else $as_nop 19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19476/* end confdefs.h. */ 19477int i; 19478_ACEOF 19479if ac_fn_c_try_compile "$LINENO" 19480then : 19481 xorg_cv_cc_flag_unknown_warning_option=yes 19482else $as_nop 19483 xorg_cv_cc_flag_unknown_warning_option=no 19484fi 19485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19486fi 19487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19488printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19490 CFLAGS="$xorg_testset_save_CFLAGS" 19491fi 19492 19493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19496 fi 19497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19499printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19500if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19501then : 19502 printf %s "(cached) " >&6 19503else $as_nop 19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19505/* end confdefs.h. */ 19506int i; 19507_ACEOF 19508if ac_fn_c_try_compile "$LINENO" 19509then : 19510 xorg_cv_cc_flag_unused_command_line_argument=yes 19511else $as_nop 19512 xorg_cv_cc_flag_unused_command_line_argument=no 19513fi 19514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19515fi 19516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19517printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19519 CFLAGS="$xorg_testset_save_CFLAGS" 19520fi 19521 19522found="no" 19523 19524 if test $found = "no" ; then 19525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19527 fi 19528 19529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19531 fi 19532 19533 CFLAGS="$CFLAGS -Werror" 19534 19535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19536printf %s "checking if $CC supports -Werror... " >&6; } 19537 cacheid=xorg_cv_cc_flag__Werror 19538 if eval test \${$cacheid+y} 19539then : 19540 printf %s "(cached) " >&6 19541else $as_nop 19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19543/* end confdefs.h. */ 19544int i; 19545int 19546main (void) 19547{ 19548 19549 ; 19550 return 0; 19551} 19552_ACEOF 19553if ac_fn_c_try_link "$LINENO" 19554then : 19555 eval $cacheid=yes 19556else $as_nop 19557 eval $cacheid=no 19558fi 19559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19560 conftest$ac_exeext conftest.$ac_ext 19561fi 19562 19563 19564 CFLAGS="$xorg_testset_save_CFLAGS" 19565 19566 eval supported=\$$cacheid 19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19568printf "%s\n" "$supported" >&6; } 19569 if test "$supported" = "yes" ; then 19570 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19571 found="yes" 19572 fi 19573 fi 19574 19575 if test $found = "no" ; then 19576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19578 fi 19579 19580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19582 fi 19583 19584 CFLAGS="$CFLAGS -errwarn" 19585 19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19587printf %s "checking if $CC supports -errwarn... " >&6; } 19588 cacheid=xorg_cv_cc_flag__errwarn 19589 if eval test \${$cacheid+y} 19590then : 19591 printf %s "(cached) " >&6 19592else $as_nop 19593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19594/* end confdefs.h. */ 19595int i; 19596int 19597main (void) 19598{ 19599 19600 ; 19601 return 0; 19602} 19603_ACEOF 19604if ac_fn_c_try_link "$LINENO" 19605then : 19606 eval $cacheid=yes 19607else $as_nop 19608 eval $cacheid=no 19609fi 19610rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19611 conftest$ac_exeext conftest.$ac_ext 19612fi 19613 19614 19615 CFLAGS="$xorg_testset_save_CFLAGS" 19616 19617 eval supported=\$$cacheid 19618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19619printf "%s\n" "$supported" >&6; } 19620 if test "$supported" = "yes" ; then 19621 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19622 found="yes" 19623 fi 19624 fi 19625 19626 19627 19628# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19629# activate it with -Werror, so we add it here explicitly. 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643xorg_testset_save_CFLAGS="$CFLAGS" 19644 19645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19650then : 19651 printf %s "(cached) " >&6 19652else $as_nop 19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19654/* end confdefs.h. */ 19655int i; 19656_ACEOF 19657if ac_fn_c_try_compile "$LINENO" 19658then : 19659 xorg_cv_cc_flag_unknown_warning_option=yes 19660else $as_nop 19661 xorg_cv_cc_flag_unknown_warning_option=no 19662fi 19663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19664fi 19665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19668 CFLAGS="$xorg_testset_save_CFLAGS" 19669fi 19670 19671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19674 fi 19675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19678if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19679then : 19680 printf %s "(cached) " >&6 19681else $as_nop 19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19683/* end confdefs.h. */ 19684int i; 19685_ACEOF 19686if ac_fn_c_try_compile "$LINENO" 19687then : 19688 xorg_cv_cc_flag_unused_command_line_argument=yes 19689else $as_nop 19690 xorg_cv_cc_flag_unused_command_line_argument=no 19691fi 19692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19693fi 19694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19697 CFLAGS="$xorg_testset_save_CFLAGS" 19698fi 19699 19700found="no" 19701 19702 if test $found = "no" ; then 19703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19705 fi 19706 19707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19709 fi 19710 19711 CFLAGS="$CFLAGS -Werror=attributes" 19712 19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19714printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19715 cacheid=xorg_cv_cc_flag__Werror_attributes 19716 if eval test \${$cacheid+y} 19717then : 19718 printf %s "(cached) " >&6 19719else $as_nop 19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19721/* end confdefs.h. */ 19722int i; 19723int 19724main (void) 19725{ 19726 19727 ; 19728 return 0; 19729} 19730_ACEOF 19731if ac_fn_c_try_link "$LINENO" 19732then : 19733 eval $cacheid=yes 19734else $as_nop 19735 eval $cacheid=no 19736fi 19737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19738 conftest$ac_exeext conftest.$ac_ext 19739fi 19740 19741 19742 CFLAGS="$xorg_testset_save_CFLAGS" 19743 19744 eval supported=\$$cacheid 19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19746printf "%s\n" "$supported" >&6; } 19747 if test "$supported" = "yes" ; then 19748 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19749 found="yes" 19750 fi 19751 fi 19752 19753 19754 19755if test "x$STRICT_COMPILE" = "xyes"; then 19756 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19757 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19758fi 19759 19760 19761 19762 19763 19764 19765 19766 19767cat >>confdefs.h <<_ACEOF 19768#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19769_ACEOF 19770 19771 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19772 if test "x$PVM" = "x"; then 19773 PVM="0" 19774 fi 19775 19776printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19777 19778 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19779 if test "x$PVP" = "x"; then 19780 PVP="0" 19781 fi 19782 19783printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19784 19785 19786 19787CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19788mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19789|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19790touch \$(top_srcdir)/ChangeLog; \ 19791echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19792 19793 19794 19795 19796macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19797INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19798mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19799|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19800touch \$(top_srcdir)/INSTALL; \ 19801echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19802 19803 19804 19805 19806 19807 19808case $host_os in 19809 solaris*) 19810 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19811 # check for a man page file found in later versions that use 19812 # traditional section numbers instead 19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19814printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19815if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19816then : 19817 printf %s "(cached) " >&6 19818else $as_nop 19819 test "$cross_compiling" = yes && 19820 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19821if test -r "/usr/share/man/man7/attributes.7"; then 19822 ac_cv_file__usr_share_man_man7_attributes_7=yes 19823else 19824 ac_cv_file__usr_share_man_man7_attributes_7=no 19825fi 19826fi 19827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19828printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19829if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19830then : 19831 SYSV_MAN_SECTIONS=false 19832else $as_nop 19833 SYSV_MAN_SECTIONS=true 19834fi 19835 19836 ;; 19837 *) SYSV_MAN_SECTIONS=false ;; 19838esac 19839 19840if test x$APP_MAN_SUFFIX = x ; then 19841 APP_MAN_SUFFIX=1 19842fi 19843if test x$APP_MAN_DIR = x ; then 19844 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19845fi 19846 19847if test x$LIB_MAN_SUFFIX = x ; then 19848 LIB_MAN_SUFFIX=3 19849fi 19850if test x$LIB_MAN_DIR = x ; then 19851 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19852fi 19853 19854if test x$FILE_MAN_SUFFIX = x ; then 19855 case $SYSV_MAN_SECTIONS in 19856 true) FILE_MAN_SUFFIX=4 ;; 19857 *) FILE_MAN_SUFFIX=5 ;; 19858 esac 19859fi 19860if test x$FILE_MAN_DIR = x ; then 19861 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19862fi 19863 19864if test x$MISC_MAN_SUFFIX = x ; then 19865 case $SYSV_MAN_SECTIONS in 19866 true) MISC_MAN_SUFFIX=5 ;; 19867 *) MISC_MAN_SUFFIX=7 ;; 19868 esac 19869fi 19870if test x$MISC_MAN_DIR = x ; then 19871 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19872fi 19873 19874if test x$DRIVER_MAN_SUFFIX = x ; then 19875 case $SYSV_MAN_SECTIONS in 19876 true) DRIVER_MAN_SUFFIX=7 ;; 19877 *) DRIVER_MAN_SUFFIX=4 ;; 19878 esac 19879fi 19880if test x$DRIVER_MAN_DIR = x ; then 19881 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19882fi 19883 19884if test x$ADMIN_MAN_SUFFIX = x ; then 19885 case $SYSV_MAN_SECTIONS in 19886 true) ADMIN_MAN_SUFFIX=1m ;; 19887 *) ADMIN_MAN_SUFFIX=8 ;; 19888 esac 19889fi 19890if test x$ADMIN_MAN_DIR = x ; then 19891 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19892fi 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908XORG_MAN_PAGE="X Version 11" 19909 19910MAN_SUBSTS="\ 19911 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19912 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19913 -e 's|__xservername__|Xorg|g' \ 19914 -e 's|__xconfigfile__|xorg.conf|g' \ 19915 -e 's|__projectroot__|\$(prefix)|g' \ 19916 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19917 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19918 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19919 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19920 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19921 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19922 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19923 19924 19925 19926# Check whether --enable-silent-rules was given. 19927if test ${enable_silent_rules+y} 19928then : 19929 enableval=$enable_silent_rules; 19930fi 19931 19932case $enable_silent_rules in # ((( 19933 yes) AM_DEFAULT_VERBOSITY=0;; 19934 no) AM_DEFAULT_VERBOSITY=1;; 19935 *) AM_DEFAULT_VERBOSITY=0;; 19936esac 19937am_make=${MAKE-make} 19938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19939printf %s "checking whether $am_make supports nested variables... " >&6; } 19940if test ${am_cv_make_support_nested_variables+y} 19941then : 19942 printf %s "(cached) " >&6 19943else $as_nop 19944 if printf "%s\n" 'TRUE=$(BAR$(V)) 19945BAR0=false 19946BAR1=true 19947V=1 19948am__doit: 19949 @$(TRUE) 19950.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19951 am_cv_make_support_nested_variables=yes 19952else 19953 am_cv_make_support_nested_variables=no 19954fi 19955fi 19956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19957printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19958if test $am_cv_make_support_nested_variables = yes; then 19959 AM_V='$(V)' 19960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19961else 19962 AM_V=$AM_DEFAULT_VERBOSITY 19963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19964fi 19965AM_BACKSLASH='\' 19966 19967 19968 19969 19970 19971# Check whether --enable-specs was given. 19972if test ${enable_specs+y} 19973then : 19974 enableval=$enable_specs; build_specs=$enableval 19975else $as_nop 19976 build_specs=yes 19977fi 19978 19979 19980 if test x$build_specs = xyes; then 19981 ENABLE_SPECS_TRUE= 19982 ENABLE_SPECS_FALSE='#' 19983else 19984 ENABLE_SPECS_TRUE='#' 19985 ENABLE_SPECS_FALSE= 19986fi 19987 19988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19989printf %s "checking whether to build functional specifications... " >&6; } 19990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19991printf "%s\n" "$build_specs" >&6; } 19992 19993 19994 19995 19996 19997# Check whether --with-xmlto was given. 19998if test ${with_xmlto+y} 19999then : 20000 withval=$with_xmlto; use_xmlto=$withval 20001else $as_nop 20002 use_xmlto=auto 20003fi 20004 20005 20006 20007if test "x$use_xmlto" = x"auto"; then 20008 # Extract the first word of "xmlto", so it can be a program name with args. 20009set dummy xmlto; ac_word=$2 20010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20011printf %s "checking for $ac_word... " >&6; } 20012if test ${ac_cv_path_XMLTO+y} 20013then : 20014 printf %s "(cached) " >&6 20015else $as_nop 20016 case $XMLTO in 20017 [\\/]* | ?:[\\/]*) 20018 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20019 ;; 20020 *) 20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20022for as_dir in $PATH 20023do 20024 IFS=$as_save_IFS 20025 case $as_dir in #((( 20026 '') as_dir=./ ;; 20027 */) ;; 20028 *) as_dir=$as_dir/ ;; 20029 esac 20030 for ac_exec_ext in '' $ac_executable_extensions; do 20031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20032 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20034 break 2 20035 fi 20036done 20037 done 20038IFS=$as_save_IFS 20039 20040 ;; 20041esac 20042fi 20043XMLTO=$ac_cv_path_XMLTO 20044if test -n "$XMLTO"; then 20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20046printf "%s\n" "$XMLTO" >&6; } 20047else 20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20049printf "%s\n" "no" >&6; } 20050fi 20051 20052 20053 if test "x$XMLTO" = "x"; then 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20055printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20056 have_xmlto=no 20057 else 20058 have_xmlto=yes 20059 fi 20060elif test "x$use_xmlto" = x"yes" ; then 20061 # Extract the first word of "xmlto", so it can be a program name with args. 20062set dummy xmlto; ac_word=$2 20063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20064printf %s "checking for $ac_word... " >&6; } 20065if test ${ac_cv_path_XMLTO+y} 20066then : 20067 printf %s "(cached) " >&6 20068else $as_nop 20069 case $XMLTO in 20070 [\\/]* | ?:[\\/]*) 20071 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20072 ;; 20073 *) 20074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20075for as_dir in $PATH 20076do 20077 IFS=$as_save_IFS 20078 case $as_dir in #((( 20079 '') as_dir=./ ;; 20080 */) ;; 20081 *) as_dir=$as_dir/ ;; 20082 esac 20083 for ac_exec_ext in '' $ac_executable_extensions; do 20084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20085 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20087 break 2 20088 fi 20089done 20090 done 20091IFS=$as_save_IFS 20092 20093 ;; 20094esac 20095fi 20096XMLTO=$ac_cv_path_XMLTO 20097if test -n "$XMLTO"; then 20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20099printf "%s\n" "$XMLTO" >&6; } 20100else 20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20102printf "%s\n" "no" >&6; } 20103fi 20104 20105 20106 if test "x$XMLTO" = "x"; then 20107 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20108 fi 20109 have_xmlto=yes 20110elif test "x$use_xmlto" = x"no" ; then 20111 if test "x$XMLTO" != "x"; then 20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20113printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20114 fi 20115 have_xmlto=no 20116else 20117 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20118fi 20119 20120# Test for a minimum version of xmlto, if provided. 20121if test "$have_xmlto" = yes; then 20122 # scrape the xmlto version 20123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20124printf %s "checking the xmlto version... " >&6; } 20125 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20127printf "%s\n" "$xmlto_version" >&6; } 20128 as_arg_v1=$xmlto_version 20129as_arg_v2=0.0.22 20130awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20131case $? in #( 20132 1) : 20133 if test "x$use_xmlto" = xauto; then 20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20135printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20136 have_xmlto=no 20137 else 20138 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20139 fi ;; #( 20140 0) : 20141 ;; #( 20142 2) : 20143 ;; #( 20144 *) : 20145 ;; 20146esac 20147fi 20148 20149# Test for the ability of xmlto to generate a text target 20150# 20151# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20152# following test for empty XML docbook files. 20153# For compatibility reasons use the following empty XML docbook file and if 20154# it fails try it again with a non-empty XML file. 20155have_xmlto_text=no 20156cat > conftest.xml << "EOF" 20157EOF 20158if test "$have_xmlto" = yes 20159then : 20160 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20161then : 20162 have_xmlto_text=yes 20163else $as_nop 20164 # Try it again with a non-empty XML file. 20165 cat > conftest.xml << "EOF" 20166<x></x> 20167EOF 20168 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20169then : 20170 have_xmlto_text=yes 20171else $as_nop 20172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20173printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 20174fi 20175fi 20176fi 20177rm -f conftest.xml 20178 if test $have_xmlto_text = yes; then 20179 HAVE_XMLTO_TEXT_TRUE= 20180 HAVE_XMLTO_TEXT_FALSE='#' 20181else 20182 HAVE_XMLTO_TEXT_TRUE='#' 20183 HAVE_XMLTO_TEXT_FALSE= 20184fi 20185 20186 if test "$have_xmlto" = yes; then 20187 HAVE_XMLTO_TRUE= 20188 HAVE_XMLTO_FALSE='#' 20189else 20190 HAVE_XMLTO_TRUE='#' 20191 HAVE_XMLTO_FALSE= 20192fi 20193 20194 20195 20196 20197 20198 20199# Check whether --with-fop was given. 20200if test ${with_fop+y} 20201then : 20202 withval=$with_fop; use_fop=$withval 20203else $as_nop 20204 use_fop=no 20205fi 20206 20207 20208 20209if test "x$use_fop" = x"auto"; then 20210 # Extract the first word of "fop", so it can be a program name with args. 20211set dummy fop; ac_word=$2 20212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20213printf %s "checking for $ac_word... " >&6; } 20214if test ${ac_cv_path_FOP+y} 20215then : 20216 printf %s "(cached) " >&6 20217else $as_nop 20218 case $FOP in 20219 [\\/]* | ?:[\\/]*) 20220 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20221 ;; 20222 *) 20223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20224for as_dir in $PATH 20225do 20226 IFS=$as_save_IFS 20227 case $as_dir in #((( 20228 '') as_dir=./ ;; 20229 */) ;; 20230 *) as_dir=$as_dir/ ;; 20231 esac 20232 for ac_exec_ext in '' $ac_executable_extensions; do 20233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20234 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20236 break 2 20237 fi 20238done 20239 done 20240IFS=$as_save_IFS 20241 20242 ;; 20243esac 20244fi 20245FOP=$ac_cv_path_FOP 20246if test -n "$FOP"; then 20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20248printf "%s\n" "$FOP" >&6; } 20249else 20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20251printf "%s\n" "no" >&6; } 20252fi 20253 20254 20255 if test "x$FOP" = "x"; then 20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20257printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20258 have_fop=no 20259 else 20260 have_fop=yes 20261 fi 20262elif test "x$use_fop" = x"yes" ; then 20263 # Extract the first word of "fop", so it can be a program name with args. 20264set dummy fop; ac_word=$2 20265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20266printf %s "checking for $ac_word... " >&6; } 20267if test ${ac_cv_path_FOP+y} 20268then : 20269 printf %s "(cached) " >&6 20270else $as_nop 20271 case $FOP in 20272 [\\/]* | ?:[\\/]*) 20273 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20274 ;; 20275 *) 20276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20277for as_dir in $PATH 20278do 20279 IFS=$as_save_IFS 20280 case $as_dir in #((( 20281 '') as_dir=./ ;; 20282 */) ;; 20283 *) as_dir=$as_dir/ ;; 20284 esac 20285 for ac_exec_ext in '' $ac_executable_extensions; do 20286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20287 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20289 break 2 20290 fi 20291done 20292 done 20293IFS=$as_save_IFS 20294 20295 ;; 20296esac 20297fi 20298FOP=$ac_cv_path_FOP 20299if test -n "$FOP"; then 20300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20301printf "%s\n" "$FOP" >&6; } 20302else 20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20304printf "%s\n" "no" >&6; } 20305fi 20306 20307 20308 if test "x$FOP" = "x"; then 20309 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20310 fi 20311 have_fop=yes 20312elif test "x$use_fop" = x"no" ; then 20313 if test "x$FOP" != "x"; then 20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20315printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20316 fi 20317 have_fop=no 20318else 20319 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20320fi 20321 20322# Test for a minimum version of fop, if provided. 20323 20324 if test "$have_fop" = yes; then 20325 HAVE_FOP_TRUE= 20326 HAVE_FOP_FALSE='#' 20327else 20328 HAVE_FOP_TRUE='#' 20329 HAVE_FOP_FALSE= 20330fi 20331 20332 20333 20334 20335# Preserves the interface, should it be implemented later 20336 20337 20338 20339# Check whether --with-xsltproc was given. 20340if test ${with_xsltproc+y} 20341then : 20342 withval=$with_xsltproc; use_xsltproc=$withval 20343else $as_nop 20344 use_xsltproc=auto 20345fi 20346 20347 20348 20349if test "x$use_xsltproc" = x"auto"; then 20350 # Extract the first word of "xsltproc", so it can be a program name with args. 20351set dummy xsltproc; ac_word=$2 20352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20353printf %s "checking for $ac_word... " >&6; } 20354if test ${ac_cv_path_XSLTPROC+y} 20355then : 20356 printf %s "(cached) " >&6 20357else $as_nop 20358 case $XSLTPROC in 20359 [\\/]* | ?:[\\/]*) 20360 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20361 ;; 20362 *) 20363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20364for as_dir in $PATH 20365do 20366 IFS=$as_save_IFS 20367 case $as_dir in #((( 20368 '') as_dir=./ ;; 20369 */) ;; 20370 *) as_dir=$as_dir/ ;; 20371 esac 20372 for ac_exec_ext in '' $ac_executable_extensions; do 20373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20374 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20376 break 2 20377 fi 20378done 20379 done 20380IFS=$as_save_IFS 20381 20382 ;; 20383esac 20384fi 20385XSLTPROC=$ac_cv_path_XSLTPROC 20386if test -n "$XSLTPROC"; then 20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20388printf "%s\n" "$XSLTPROC" >&6; } 20389else 20390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20391printf "%s\n" "no" >&6; } 20392fi 20393 20394 20395 if test "x$XSLTPROC" = "x"; then 20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20397printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20398 have_xsltproc=no 20399 else 20400 have_xsltproc=yes 20401 fi 20402elif test "x$use_xsltproc" = x"yes" ; then 20403 # Extract the first word of "xsltproc", so it can be a program name with args. 20404set dummy xsltproc; ac_word=$2 20405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20406printf %s "checking for $ac_word... " >&6; } 20407if test ${ac_cv_path_XSLTPROC+y} 20408then : 20409 printf %s "(cached) " >&6 20410else $as_nop 20411 case $XSLTPROC in 20412 [\\/]* | ?:[\\/]*) 20413 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20414 ;; 20415 *) 20416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20417for as_dir in $PATH 20418do 20419 IFS=$as_save_IFS 20420 case $as_dir in #((( 20421 '') as_dir=./ ;; 20422 */) ;; 20423 *) as_dir=$as_dir/ ;; 20424 esac 20425 for ac_exec_ext in '' $ac_executable_extensions; do 20426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20427 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20429 break 2 20430 fi 20431done 20432 done 20433IFS=$as_save_IFS 20434 20435 ;; 20436esac 20437fi 20438XSLTPROC=$ac_cv_path_XSLTPROC 20439if test -n "$XSLTPROC"; then 20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20441printf "%s\n" "$XSLTPROC" >&6; } 20442else 20443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20444printf "%s\n" "no" >&6; } 20445fi 20446 20447 20448 if test "x$XSLTPROC" = "x"; then 20449 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20450 fi 20451 have_xsltproc=yes 20452elif test "x$use_xsltproc" = x"no" ; then 20453 if test "x$XSLTPROC" != "x"; then 20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20455printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20456 fi 20457 have_xsltproc=no 20458else 20459 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20460fi 20461 20462 if test "$have_xsltproc" = yes; then 20463 HAVE_XSLTPROC_TRUE= 20464 HAVE_XSLTPROC_FALSE='#' 20465else 20466 HAVE_XSLTPROC_TRUE='#' 20467 HAVE_XSLTPROC_FALSE= 20468fi 20469 20470 20471 20472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 20473printf %s "checking for X.Org SGML entities >= 1.10... " >&6; } 20474XORG_SGML_PATH= 20475if test -n "$PKG_CONFIG" && \ 20476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 20477 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 20478 ac_status=$? 20479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20480 test $ac_status = 0; }; then 20481 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20482else 20483 : 20484 20485fi 20486 20487# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20488# the path and the name of the doc stylesheet 20489if test "x$XORG_SGML_PATH" != "x" ; then 20490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20491printf "%s\n" "$XORG_SGML_PATH" >&6; } 20492 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20493 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20494else 20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20496printf "%s\n" "no" >&6; } 20497fi 20498 20499 20500 20501 20502 if test "x$XSL_STYLESHEET" != "x"; then 20503 HAVE_STYLESHEETS_TRUE= 20504 HAVE_STYLESHEETS_FALSE='#' 20505else 20506 HAVE_STYLESHEETS_TRUE='#' 20507 HAVE_STYLESHEETS_FALSE= 20508fi 20509 20510 20511ac_ext=c 20512ac_cpp='$CPP $CPPFLAGS' 20513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20515ac_compiler_gnu=$ac_cv_c_compiler_gnu 20516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20517printf %s "checking how to run the C preprocessor... " >&6; } 20518# On Suns, sometimes $CPP names a directory. 20519if test -n "$CPP" && test -d "$CPP"; then 20520 CPP= 20521fi 20522if test -z "$CPP"; then 20523 if test ${ac_cv_prog_CPP+y} 20524then : 20525 printf %s "(cached) " >&6 20526else $as_nop 20527 # Double quotes because $CC needs to be expanded 20528 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20529 do 20530 ac_preproc_ok=false 20531for ac_c_preproc_warn_flag in '' yes 20532do 20533 # Use a header file that comes with gcc, so configuring glibc 20534 # with a fresh cross-compiler works. 20535 # On the NeXT, cc -E runs the code through the compiler's parser, 20536 # not just through cpp. "Syntax error" is here to catch this case. 20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20538/* end confdefs.h. */ 20539#include <limits.h> 20540 Syntax error 20541_ACEOF 20542if ac_fn_c_try_cpp "$LINENO" 20543then : 20544 20545else $as_nop 20546 # Broken: fails on valid input. 20547continue 20548fi 20549rm -f conftest.err conftest.i conftest.$ac_ext 20550 20551 # OK, works on sane cases. Now check whether nonexistent headers 20552 # can be detected and how. 20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20554/* end confdefs.h. */ 20555#include <ac_nonexistent.h> 20556_ACEOF 20557if ac_fn_c_try_cpp "$LINENO" 20558then : 20559 # Broken: success on invalid input. 20560continue 20561else $as_nop 20562 # Passes both tests. 20563ac_preproc_ok=: 20564break 20565fi 20566rm -f conftest.err conftest.i conftest.$ac_ext 20567 20568done 20569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20570rm -f conftest.i conftest.err conftest.$ac_ext 20571if $ac_preproc_ok 20572then : 20573 break 20574fi 20575 20576 done 20577 ac_cv_prog_CPP=$CPP 20578 20579fi 20580 CPP=$ac_cv_prog_CPP 20581else 20582 ac_cv_prog_CPP=$CPP 20583fi 20584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20585printf "%s\n" "$CPP" >&6; } 20586ac_preproc_ok=false 20587for ac_c_preproc_warn_flag in '' yes 20588do 20589 # Use a header file that comes with gcc, so configuring glibc 20590 # with a fresh cross-compiler works. 20591 # On the NeXT, cc -E runs the code through the compiler's parser, 20592 # not just through cpp. "Syntax error" is here to catch this case. 20593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20594/* end confdefs.h. */ 20595#include <limits.h> 20596 Syntax error 20597_ACEOF 20598if ac_fn_c_try_cpp "$LINENO" 20599then : 20600 20601else $as_nop 20602 # Broken: fails on valid input. 20603continue 20604fi 20605rm -f conftest.err conftest.i conftest.$ac_ext 20606 20607 # OK, works on sane cases. Now check whether nonexistent headers 20608 # can be detected and how. 20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20610/* end confdefs.h. */ 20611#include <ac_nonexistent.h> 20612_ACEOF 20613if ac_fn_c_try_cpp "$LINENO" 20614then : 20615 # Broken: success on invalid input. 20616continue 20617else $as_nop 20618 # Passes both tests. 20619ac_preproc_ok=: 20620break 20621fi 20622rm -f conftest.err conftest.i conftest.$ac_ext 20623 20624done 20625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20626rm -f conftest.i conftest.err conftest.$ac_ext 20627if $ac_preproc_ok 20628then : 20629 20630else $as_nop 20631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20632printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20633as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20634See \`config.log' for more details" "$LINENO" 5; } 20635fi 20636 20637ac_ext=c 20638ac_cpp='$CPP $CPPFLAGS' 20639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20641ac_compiler_gnu=$ac_cv_c_compiler_gnu 20642 20643 20644 20645if test -n "$ac_tool_prefix"; then 20646 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 20647set dummy ${ac_tool_prefix}cpp; ac_word=$2 20648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20649printf %s "checking for $ac_word... " >&6; } 20650if test ${ac_cv_path_RAWCPP+y} 20651then : 20652 printf %s "(cached) " >&6 20653else $as_nop 20654 case $RAWCPP in 20655 [\\/]* | ?:[\\/]*) 20656 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 20657 ;; 20658 *) 20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20660as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20661for as_dir in $as_dummy 20662do 20663 IFS=$as_save_IFS 20664 case $as_dir in #((( 20665 '') as_dir=./ ;; 20666 */) ;; 20667 *) as_dir=$as_dir/ ;; 20668 esac 20669 for ac_exec_ext in '' $ac_executable_extensions; do 20670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20671 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20673 break 2 20674 fi 20675done 20676 done 20677IFS=$as_save_IFS 20678 20679 ;; 20680esac 20681fi 20682RAWCPP=$ac_cv_path_RAWCPP 20683if test -n "$RAWCPP"; then 20684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 20685printf "%s\n" "$RAWCPP" >&6; } 20686else 20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20688printf "%s\n" "no" >&6; } 20689fi 20690 20691 20692fi 20693if test -z "$ac_cv_path_RAWCPP"; then 20694 ac_pt_RAWCPP=$RAWCPP 20695 # Extract the first word of "cpp", so it can be a program name with args. 20696set dummy cpp; ac_word=$2 20697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20698printf %s "checking for $ac_word... " >&6; } 20699if test ${ac_cv_path_ac_pt_RAWCPP+y} 20700then : 20701 printf %s "(cached) " >&6 20702else $as_nop 20703 case $ac_pt_RAWCPP in 20704 [\\/]* | ?:[\\/]*) 20705 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 20706 ;; 20707 *) 20708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20709as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20710for as_dir in $as_dummy 20711do 20712 IFS=$as_save_IFS 20713 case $as_dir in #((( 20714 '') as_dir=./ ;; 20715 */) ;; 20716 *) as_dir=$as_dir/ ;; 20717 esac 20718 for ac_exec_ext in '' $ac_executable_extensions; do 20719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20720 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 20721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20722 break 2 20723 fi 20724done 20725 done 20726IFS=$as_save_IFS 20727 20728 ;; 20729esac 20730fi 20731ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 20732if test -n "$ac_pt_RAWCPP"; then 20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 20734printf "%s\n" "$ac_pt_RAWCPP" >&6; } 20735else 20736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20737printf "%s\n" "no" >&6; } 20738fi 20739 20740 if test "x$ac_pt_RAWCPP" = x; then 20741 RAWCPP="${CPP}" 20742 else 20743 case $cross_compiling:$ac_tool_warned in 20744yes:) 20745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20747ac_tool_warned=yes ;; 20748esac 20749 RAWCPP=$ac_pt_RAWCPP 20750 fi 20751else 20752 RAWCPP="$ac_cv_path_RAWCPP" 20753fi 20754 20755 20756# Check for flag to avoid builtin definitions - assumes unix is predefined, 20757# which is not the best choice for supporting other OS'es, but covers most 20758# of the ones we need for now. 20759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 20760printf %s "checking if $RAWCPP requires -undef... " >&6; } 20761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20762/* end confdefs.h. */ 20763Does cpp redefine unix ? 20764_ACEOF 20765if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20767printf "%s\n" "no" >&6; } 20768else 20769 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20770 RAWCPPFLAGS=-undef 20771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20772printf "%s\n" "yes" >&6; } 20773 # under Cygwin unix is still defined even with -undef 20774 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20775 RAWCPPFLAGS="-undef -ansi" 20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 20777printf "%s\n" "yes, with -ansi" >&6; } 20778 else 20779 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 20780 fi 20781fi 20782rm -f conftest.$ac_ext 20783 20784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 20785printf %s "checking if $RAWCPP requires -traditional... " >&6; } 20786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20787/* end confdefs.h. */ 20788Does cpp preserve "whitespace"? 20789_ACEOF 20790if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20792printf "%s\n" "no" >&6; } 20793else 20794 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20795 TRADITIONALCPPFLAGS="-traditional" 20796 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20798printf "%s\n" "yes" >&6; } 20799 else 20800 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 20801 fi 20802fi 20803rm -f conftest.$ac_ext 20804 20805 20806 20807 20808 20809# Preserves the interface, should it be implemented later 20810 20811 20812 20813# Check whether --with-perl was given. 20814if test ${with_perl+y} 20815then : 20816 withval=$with_perl; use_perl=$withval 20817else $as_nop 20818 use_perl=auto 20819fi 20820 20821 20822 20823if test "x$use_perl" = x"auto"; then 20824 # Extract the first word of "perl", so it can be a program name with args. 20825set dummy perl; ac_word=$2 20826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20827printf %s "checking for $ac_word... " >&6; } 20828if test ${ac_cv_path_PERL+y} 20829then : 20830 printf %s "(cached) " >&6 20831else $as_nop 20832 case $PERL in 20833 [\\/]* | ?:[\\/]*) 20834 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 20835 ;; 20836 *) 20837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20838for as_dir in $PATH 20839do 20840 IFS=$as_save_IFS 20841 case $as_dir in #((( 20842 '') as_dir=./ ;; 20843 */) ;; 20844 *) as_dir=$as_dir/ ;; 20845 esac 20846 for ac_exec_ext in '' $ac_executable_extensions; do 20847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20848 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 20849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20850 break 2 20851 fi 20852done 20853 done 20854IFS=$as_save_IFS 20855 20856 ;; 20857esac 20858fi 20859PERL=$ac_cv_path_PERL 20860if test -n "$PERL"; then 20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 20862printf "%s\n" "$PERL" >&6; } 20863else 20864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20865printf "%s\n" "no" >&6; } 20866fi 20867 20868 20869 if test "x$PERL" = "x"; then 20870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 20871printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 20872 have_perl=no 20873 else 20874 have_perl=yes 20875 fi 20876elif test "x$use_perl" = x"yes" ; then 20877 # Extract the first word of "perl", so it can be a program name with args. 20878set dummy perl; ac_word=$2 20879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20880printf %s "checking for $ac_word... " >&6; } 20881if test ${ac_cv_path_PERL+y} 20882then : 20883 printf %s "(cached) " >&6 20884else $as_nop 20885 case $PERL in 20886 [\\/]* | ?:[\\/]*) 20887 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 20888 ;; 20889 *) 20890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20891for as_dir in $PATH 20892do 20893 IFS=$as_save_IFS 20894 case $as_dir in #((( 20895 '') as_dir=./ ;; 20896 */) ;; 20897 *) as_dir=$as_dir/ ;; 20898 esac 20899 for ac_exec_ext in '' $ac_executable_extensions; do 20900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20901 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 20902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20903 break 2 20904 fi 20905done 20906 done 20907IFS=$as_save_IFS 20908 20909 ;; 20910esac 20911fi 20912PERL=$ac_cv_path_PERL 20913if test -n "$PERL"; then 20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 20915printf "%s\n" "$PERL" >&6; } 20916else 20917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20918printf "%s\n" "no" >&6; } 20919fi 20920 20921 20922 if test "x$PERL" = "x"; then 20923 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 20924 fi 20925 have_perl=yes 20926elif test "x$use_perl" = x"no" ; then 20927 if test "x$PERL" != "x"; then 20928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 20929printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 20930 fi 20931 have_perl=no 20932else 20933 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 20934fi 20935 20936 if test "$have_perl" = yes; then 20937 HAVE_PERL_TRUE= 20938 HAVE_PERL_FALSE='#' 20939else 20940 HAVE_PERL_TRUE='#' 20941 HAVE_PERL_FALSE= 20942fi 20943 20944 20945 20946# Required when PKG_CHECK_MODULES called within an if statement 20947 20948 20949 20950 20951 20952 20953 20954if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20955 if test -n "$ac_tool_prefix"; then 20956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20957set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20959printf %s "checking for $ac_word... " >&6; } 20960if test ${ac_cv_path_PKG_CONFIG+y} 20961then : 20962 printf %s "(cached) " >&6 20963else $as_nop 20964 case $PKG_CONFIG in 20965 [\\/]* | ?:[\\/]*) 20966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20967 ;; 20968 *) 20969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20970for as_dir in $PATH 20971do 20972 IFS=$as_save_IFS 20973 case $as_dir in #((( 20974 '') as_dir=./ ;; 20975 */) ;; 20976 *) as_dir=$as_dir/ ;; 20977 esac 20978 for ac_exec_ext in '' $ac_executable_extensions; do 20979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20980 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 20981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20982 break 2 20983 fi 20984done 20985 done 20986IFS=$as_save_IFS 20987 20988 ;; 20989esac 20990fi 20991PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20992if test -n "$PKG_CONFIG"; then 20993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20994printf "%s\n" "$PKG_CONFIG" >&6; } 20995else 20996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20997printf "%s\n" "no" >&6; } 20998fi 20999 21000 21001fi 21002if test -z "$ac_cv_path_PKG_CONFIG"; then 21003 ac_pt_PKG_CONFIG=$PKG_CONFIG 21004 # Extract the first word of "pkg-config", so it can be a program name with args. 21005set dummy pkg-config; ac_word=$2 21006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21007printf %s "checking for $ac_word... " >&6; } 21008if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21009then : 21010 printf %s "(cached) " >&6 21011else $as_nop 21012 case $ac_pt_PKG_CONFIG in 21013 [\\/]* | ?:[\\/]*) 21014 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21015 ;; 21016 *) 21017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21018for as_dir in $PATH 21019do 21020 IFS=$as_save_IFS 21021 case $as_dir in #((( 21022 '') as_dir=./ ;; 21023 */) ;; 21024 *) as_dir=$as_dir/ ;; 21025 esac 21026 for ac_exec_ext in '' $ac_executable_extensions; do 21027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21028 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21030 break 2 21031 fi 21032done 21033 done 21034IFS=$as_save_IFS 21035 21036 ;; 21037esac 21038fi 21039ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21040if test -n "$ac_pt_PKG_CONFIG"; then 21041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21042printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21043else 21044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21045printf "%s\n" "no" >&6; } 21046fi 21047 21048 if test "x$ac_pt_PKG_CONFIG" = x; then 21049 PKG_CONFIG="" 21050 else 21051 case $cross_compiling:$ac_tool_warned in 21052yes:) 21053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21054printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21055ac_tool_warned=yes ;; 21056esac 21057 PKG_CONFIG=$ac_pt_PKG_CONFIG 21058 fi 21059else 21060 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21061fi 21062 21063fi 21064if test -n "$PKG_CONFIG"; then 21065 _pkg_min_version=0.9.0 21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21067printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21068 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21070printf "%s\n" "yes" >&6; } 21071 else 21072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21073printf "%s\n" "no" >&6; } 21074 PKG_CONFIG="" 21075 fi 21076fi 21077 21078if test x"$CC_FOR_BUILD" = x; then 21079 if test x"$cross_compiling" = xyes; then 21080 for ac_prog in gcc cc 21081do 21082 # Extract the first word of "$ac_prog", so it can be a program name with args. 21083set dummy $ac_prog; ac_word=$2 21084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21085printf %s "checking for $ac_word... " >&6; } 21086if test ${ac_cv_prog_CC_FOR_BUILD+y} 21087then : 21088 printf %s "(cached) " >&6 21089else $as_nop 21090 if test -n "$CC_FOR_BUILD"; then 21091 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 21092else 21093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21094for as_dir in $PATH 21095do 21096 IFS=$as_save_IFS 21097 case $as_dir in #((( 21098 '') as_dir=./ ;; 21099 */) ;; 21100 *) as_dir=$as_dir/ ;; 21101 esac 21102 for ac_exec_ext in '' $ac_executable_extensions; do 21103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21104 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 21105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21106 break 2 21107 fi 21108done 21109 done 21110IFS=$as_save_IFS 21111 21112fi 21113fi 21114CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 21115if test -n "$CC_FOR_BUILD"; then 21116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 21117printf "%s\n" "$CC_FOR_BUILD" >&6; } 21118else 21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21120printf "%s\n" "no" >&6; } 21121fi 21122 21123 21124 test -n "$CC_FOR_BUILD" && break 21125done 21126 21127 else 21128 CC_FOR_BUILD="$CC" 21129 fi 21130fi 21131 21132 21133if test x"$CPPFLAGS_FOR_BUILD" = x; then 21134 if test ! x"$cross_compiling" = xyes; then 21135 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 21136 fi 21137fi 21138 21139 21140if test x"$CFLAGS_FOR_BUILD" = x; then 21141 if test ! x"$cross_compiling" = xyes; then 21142 CFLAGS_FOR_BUILD=${CFLAGS} 21143 fi 21144fi 21145 21146 21147if test x"$LDFLAGS_FOR_BUILD" = x; then 21148 if test ! x"$cross_compiling" = xyes; then 21149 LDFLAGS_FOR_BUILD=${LDFLAGS} 21150 fi 21151fi 21152 21153 21154if test x"$EXEEXT_FOR_BUILD" = x; then 21155 if test x"$cross_compiling" = xno; then 21156 EXEEXT_FOR_BUILD=${EXEEXT} 21157 fi 21158 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty 21159fi 21160 21161 21162# Checks for pkg-config packages 21163 21164# Always required 21165X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1' 21166X11_EXTRA_DEPS="xcb >= 1.11.1" 21167 21168 21169 21170 21171 21172 21173 21174 21175if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21176 if test -n "$ac_tool_prefix"; then 21177 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21180printf %s "checking for $ac_word... " >&6; } 21181if test ${ac_cv_path_PKG_CONFIG+y} 21182then : 21183 printf %s "(cached) " >&6 21184else $as_nop 21185 case $PKG_CONFIG in 21186 [\\/]* | ?:[\\/]*) 21187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21188 ;; 21189 *) 21190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21191for as_dir in $PATH 21192do 21193 IFS=$as_save_IFS 21194 case $as_dir in #((( 21195 '') as_dir=./ ;; 21196 */) ;; 21197 *) as_dir=$as_dir/ ;; 21198 esac 21199 for ac_exec_ext in '' $ac_executable_extensions; do 21200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21201 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21203 break 2 21204 fi 21205done 21206 done 21207IFS=$as_save_IFS 21208 21209 ;; 21210esac 21211fi 21212PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21213if test -n "$PKG_CONFIG"; then 21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21215printf "%s\n" "$PKG_CONFIG" >&6; } 21216else 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21218printf "%s\n" "no" >&6; } 21219fi 21220 21221 21222fi 21223if test -z "$ac_cv_path_PKG_CONFIG"; then 21224 ac_pt_PKG_CONFIG=$PKG_CONFIG 21225 # Extract the first word of "pkg-config", so it can be a program name with args. 21226set dummy pkg-config; ac_word=$2 21227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21228printf %s "checking for $ac_word... " >&6; } 21229if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21230then : 21231 printf %s "(cached) " >&6 21232else $as_nop 21233 case $ac_pt_PKG_CONFIG in 21234 [\\/]* | ?:[\\/]*) 21235 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21236 ;; 21237 *) 21238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21239for as_dir in $PATH 21240do 21241 IFS=$as_save_IFS 21242 case $as_dir in #((( 21243 '') as_dir=./ ;; 21244 */) ;; 21245 *) as_dir=$as_dir/ ;; 21246 esac 21247 for ac_exec_ext in '' $ac_executable_extensions; do 21248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21249 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21251 break 2 21252 fi 21253done 21254 done 21255IFS=$as_save_IFS 21256 21257 ;; 21258esac 21259fi 21260ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21261if test -n "$ac_pt_PKG_CONFIG"; then 21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21263printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21264else 21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21266printf "%s\n" "no" >&6; } 21267fi 21268 21269 if test "x$ac_pt_PKG_CONFIG" = x; then 21270 PKG_CONFIG="" 21271 else 21272 case $cross_compiling:$ac_tool_warned in 21273yes:) 21274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21276ac_tool_warned=yes ;; 21277esac 21278 PKG_CONFIG=$ac_pt_PKG_CONFIG 21279 fi 21280else 21281 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21282fi 21283 21284fi 21285if test -n "$PKG_CONFIG"; then 21286 _pkg_min_version=0.9.0 21287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21288printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21289 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21291printf "%s\n" "yes" >&6; } 21292 else 21293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21294printf "%s\n" "no" >&6; } 21295 PKG_CONFIG="" 21296 fi 21297fi 21298 21299 21300 21301# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 21302# was not expanded, since libX11 with no transport types is rather useless. 21303# 21304# If you're seeing an error here, be sure you installed the lib/xtrans module 21305# first and if it's not in the default location, that you set the ACLOCAL 21306# environment variable to find it, such as: 21307# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 21308 21309 21310# Transport selection macro from xtrans.m4 21311 21312 21313 case $host_os in 21314 mingw*) unixdef="no" ;; 21315 *) unixdef="yes" ;; 21316 esac 21317 # Check whether --enable-unix-transport was given. 21318if test ${enable_unix_transport+y} 21319then : 21320 enableval=$enable_unix_transport; UNIXCONN=$enableval 21321else $as_nop 21322 UNIXCONN=$unixdef 21323fi 21324 21325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21326printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21327 if test "$UNIXCONN" = "yes"; then 21328 21329printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21330 21331 fi 21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21333printf "%s\n" "$UNIXCONN" >&6; } 21334 # Check whether --enable-tcp-transport was given. 21335if test ${enable_tcp_transport+y} 21336then : 21337 enableval=$enable_tcp_transport; TCPCONN=$enableval 21338else $as_nop 21339 TCPCONN=yes 21340fi 21341 21342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21343printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21345printf "%s\n" "$TCPCONN" >&6; } 21346 if test "$TCPCONN" = "yes"; then 21347 21348printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21349 21350 21351 # SVR4 hides these in libraries other than libc 21352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21353printf %s "checking for library containing socket... " >&6; } 21354if test ${ac_cv_search_socket+y} 21355then : 21356 printf %s "(cached) " >&6 21357else $as_nop 21358 ac_func_search_save_LIBS=$LIBS 21359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21360/* end confdefs.h. */ 21361 21362/* Override any GCC internal prototype to avoid an error. 21363 Use char because int might match the return type of a GCC 21364 builtin and then its argument prototype would still apply. */ 21365char socket (); 21366int 21367main (void) 21368{ 21369return socket (); 21370 ; 21371 return 0; 21372} 21373_ACEOF 21374for ac_lib in '' socket 21375do 21376 if test -z "$ac_lib"; then 21377 ac_res="none required" 21378 else 21379 ac_res=-l$ac_lib 21380 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21381 fi 21382 if ac_fn_c_try_link "$LINENO" 21383then : 21384 ac_cv_search_socket=$ac_res 21385fi 21386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21387 conftest$ac_exeext 21388 if test ${ac_cv_search_socket+y} 21389then : 21390 break 21391fi 21392done 21393if test ${ac_cv_search_socket+y} 21394then : 21395 21396else $as_nop 21397 ac_cv_search_socket=no 21398fi 21399rm conftest.$ac_ext 21400LIBS=$ac_func_search_save_LIBS 21401fi 21402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21403printf "%s\n" "$ac_cv_search_socket" >&6; } 21404ac_res=$ac_cv_search_socket 21405if test "$ac_res" != no 21406then : 21407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21408 21409fi 21410 21411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21412printf %s "checking for library containing gethostbyname... " >&6; } 21413if test ${ac_cv_search_gethostbyname+y} 21414then : 21415 printf %s "(cached) " >&6 21416else $as_nop 21417 ac_func_search_save_LIBS=$LIBS 21418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21419/* end confdefs.h. */ 21420 21421/* Override any GCC internal prototype to avoid an error. 21422 Use char because int might match the return type of a GCC 21423 builtin and then its argument prototype would still apply. */ 21424char gethostbyname (); 21425int 21426main (void) 21427{ 21428return gethostbyname (); 21429 ; 21430 return 0; 21431} 21432_ACEOF 21433for ac_lib in '' nsl 21434do 21435 if test -z "$ac_lib"; then 21436 ac_res="none required" 21437 else 21438 ac_res=-l$ac_lib 21439 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21440 fi 21441 if ac_fn_c_try_link "$LINENO" 21442then : 21443 ac_cv_search_gethostbyname=$ac_res 21444fi 21445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21446 conftest$ac_exeext 21447 if test ${ac_cv_search_gethostbyname+y} 21448then : 21449 break 21450fi 21451done 21452if test ${ac_cv_search_gethostbyname+y} 21453then : 21454 21455else $as_nop 21456 ac_cv_search_gethostbyname=no 21457fi 21458rm conftest.$ac_ext 21459LIBS=$ac_func_search_save_LIBS 21460fi 21461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21462printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21463ac_res=$ac_cv_search_gethostbyname 21464if test "$ac_res" != no 21465then : 21466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21467 21468fi 21469 21470 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21472printf %s "checking for main in -lws2_32... " >&6; } 21473if test ${ac_cv_lib_ws2_32_main+y} 21474then : 21475 printf %s "(cached) " >&6 21476else $as_nop 21477 ac_check_lib_save_LIBS=$LIBS 21478LIBS="-lws2_32 $LIBS" 21479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21480/* end confdefs.h. */ 21481 21482 21483int 21484main (void) 21485{ 21486return main (); 21487 ; 21488 return 0; 21489} 21490_ACEOF 21491if ac_fn_c_try_link "$LINENO" 21492then : 21493 ac_cv_lib_ws2_32_main=yes 21494else $as_nop 21495 ac_cv_lib_ws2_32_main=no 21496fi 21497rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21498 conftest$ac_exeext conftest.$ac_ext 21499LIBS=$ac_check_lib_save_LIBS 21500fi 21501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21502printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21503if test "x$ac_cv_lib_ws2_32_main" = xyes 21504then : 21505 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21506 21507 LIBS="-lws2_32 $LIBS" 21508 21509fi 21510 21511 fi 21512 21513 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 21514 # Check whether --enable-ipv6 was given. 21515if test ${enable_ipv6+y} 21516then : 21517 enableval=$enable_ipv6; IPV6CONN=$enableval 21518else $as_nop 21519 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21520if test "x$ac_cv_func_getaddrinfo" = xyes 21521then : 21522 IPV6CONN=yes 21523else $as_nop 21524 IPV6CONN=no 21525fi 21526 21527fi 21528 21529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 21530printf %s "checking if IPv6 support should be built... " >&6; } 21531 if test "$IPV6CONN" = "yes"; then 21532 21533printf "%s\n" "#define IPv6 1" >>confdefs.h 21534 21535 fi 21536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 21537printf "%s\n" "$IPV6CONN" >&6; } 21538 21539 # 4.3BSD-Reno added a new member to struct sockaddr_in 21540 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 21541#include <sys/types.h> 21542#include <sys/socket.h> 21543#include <netinet/in.h> 21544 21545" 21546if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 21547then : 21548 21549printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 21550 21551fi 21552 21553 21554 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 21555 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 21556$ac_includes_default 21557#include <sys/socket.h> 21558" 21559if test "x$ac_cv_type_socklen_t" = xyes 21560then : 21561 21562printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 21563 21564 21565fi 21566 21567 21568 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 21569 # _XOPEN_SOURCE to get it (such as on Solaris) 21570 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21571$ac_includes_default 21572#include <sys/socket.h> 21573 21574" 21575if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21576then : 21577 21578fi 21579 21580 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21581 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21582 unset ac_cv_member_struct_msghdr_msg_control 21583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21584printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21585 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21586#define _XOPEN_SOURCE 600 21587$ac_includes_default 21588#include <sys/socket.h> 21589 21590" 21591if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21592then : 21593 21594printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21595 21596 21597fi 21598 21599 fi 21600 # If that didn't work, fall back to XPG5/UNIX98 with C89 21601 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21602 unset ac_cv_member_struct_msghdr_msg_control 21603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21604printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 21605 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21606#define _XOPEN_SOURCE 500 21607$ac_includes_default 21608#include <sys/socket.h> 21609 21610" 21611if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21612then : 21613 21614printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 21615 21616 21617fi 21618 21619 fi 21620 21621 21622 21623 fi 21624 case $host_os in 21625 solaris*) localdef="yes" ;; 21626 *) localdef="no" ;; 21627 esac 21628 # Check whether --enable-local-transport was given. 21629if test ${enable_local_transport+y} 21630then : 21631 enableval=$enable_local_transport; LOCALCONN=$enableval 21632else $as_nop 21633 LOCALCONN=$localdef 21634fi 21635 21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 21637printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 21638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 21639printf "%s\n" "$LOCALCONN" >&6; } 21640 if test "$LOCALCONN" = "yes"; then 21641 21642printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 21643 21644 fi 21645 21646 # Other functions Xtrans may need 21647 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 21648if test "x$ac_cv_func_strcasecmp" = xyes 21649then : 21650 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 21651 21652fi 21653ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 21654if test "x$ac_cv_func_strlcpy" = xyes 21655then : 21656 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 21657 21658fi 21659 21660 21661 21662 21663# Check for dlopen 21664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 21665printf %s "checking if run-time linking is supported... " >&6; } 21666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 21667printf %s "checking for library containing dlopen... " >&6; } 21668if test ${ac_cv_search_dlopen+y} 21669then : 21670 printf %s "(cached) " >&6 21671else $as_nop 21672 ac_func_search_save_LIBS=$LIBS 21673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21674/* end confdefs.h. */ 21675 21676/* Override any GCC internal prototype to avoid an error. 21677 Use char because int might match the return type of a GCC 21678 builtin and then its argument prototype would still apply. */ 21679char dlopen (); 21680int 21681main (void) 21682{ 21683return dlopen (); 21684 ; 21685 return 0; 21686} 21687_ACEOF 21688for ac_lib in '' dl svld 21689do 21690 if test -z "$ac_lib"; then 21691 ac_res="none required" 21692 else 21693 ac_res=-l$ac_lib 21694 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21695 fi 21696 if ac_fn_c_try_link "$LINENO" 21697then : 21698 ac_cv_search_dlopen=$ac_res 21699fi 21700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21701 conftest$ac_exeext 21702 if test ${ac_cv_search_dlopen+y} 21703then : 21704 break 21705fi 21706done 21707if test ${ac_cv_search_dlopen+y} 21708then : 21709 21710else $as_nop 21711 ac_cv_search_dlopen=no 21712fi 21713rm conftest.$ac_ext 21714LIBS=$ac_func_search_save_LIBS 21715fi 21716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 21717printf "%s\n" "$ac_cv_search_dlopen" >&6; } 21718ac_res=$ac_cv_search_dlopen 21719if test "$ac_res" != no 21720then : 21721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21722 21723fi 21724 21725if test "x$ac_cv_search_dlopen" = xno; then 21726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 21727printf %s "checking for library containing shl_load... " >&6; } 21728if test ${ac_cv_search_shl_load+y} 21729then : 21730 printf %s "(cached) " >&6 21731else $as_nop 21732 ac_func_search_save_LIBS=$LIBS 21733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21734/* end confdefs.h. */ 21735 21736/* Override any GCC internal prototype to avoid an error. 21737 Use char because int might match the return type of a GCC 21738 builtin and then its argument prototype would still apply. */ 21739char shl_load (); 21740int 21741main (void) 21742{ 21743return shl_load (); 21744 ; 21745 return 0; 21746} 21747_ACEOF 21748for ac_lib in '' dld 21749do 21750 if test -z "$ac_lib"; then 21751 ac_res="none required" 21752 else 21753 ac_res=-l$ac_lib 21754 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21755 fi 21756 if ac_fn_c_try_link "$LINENO" 21757then : 21758 ac_cv_search_shl_load=$ac_res 21759fi 21760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21761 conftest$ac_exeext 21762 if test ${ac_cv_search_shl_load+y} 21763then : 21764 break 21765fi 21766done 21767if test ${ac_cv_search_shl_load+y} 21768then : 21769 21770else $as_nop 21771 ac_cv_search_shl_load=no 21772fi 21773rm conftest.$ac_ext 21774LIBS=$ac_func_search_save_LIBS 21775fi 21776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 21777printf "%s\n" "$ac_cv_search_shl_load" >&6; } 21778ac_res=$ac_cv_search_shl_load 21779if test "$ac_res" != no 21780then : 21781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21782 21783fi 21784 21785 if test "x$ac_cv_search_shl_load" != xno; then 21786 21787printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h 21788 21789 ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 21790if test "x$ac_cv_header_dl_h" = xyes 21791then : 21792 printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h 21793 21794fi 21795 21796 fi 21797else 21798 21799printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 21800 21801 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 21802if test "x$ac_cv_header_dlfcn_h" = xyes 21803then : 21804 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 21805 21806fi 21807 21808fi 21809if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 21810 HAVE_LOADABLE_MODULES=yes 21811else 21812 HAVE_LOADABLE_MODULES=no 21813fi 21814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 21815printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; } 21816 21817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 21818printf %s "checking if loadable i18n module support should be enabled... " >&6; } 21819# Check whether --enable-loadable-i18n was given. 21820if test ${enable_loadable_i18n+y} 21821then : 21822 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 21823else $as_nop 21824 XLIB_LOADABLE_I18N="no" 21825fi 21826 21827if test x$XLIB_LOADABLE_I18N = xyes; then 21828 if test x$HAVE_LOADABLE_MODULES = xno; then 21829 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 21830 fi 21831 21832printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h 21833 21834 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 21835 21836fi 21837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 21838printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; } 21839 21840 if test x$XLIB_LOADABLE_I18N = xyes; then 21841 XLIB_LOADABLE_I18N_TRUE= 21842 XLIB_LOADABLE_I18N_FALSE='#' 21843else 21844 XLIB_LOADABLE_I18N_TRUE='#' 21845 XLIB_LOADABLE_I18N_FALSE= 21846fi 21847 21848 21849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 21850printf %s "checking if loadable Xcursor library support should be enabled... " >&6; } 21851# Check whether --enable-loadable-xcursor was given. 21852if test ${enable_loadable_xcursor+y} 21853then : 21854 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 21855else $as_nop 21856 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 21857fi 21858 21859if test x$XLIB_LOADABLE_XCURSOR = xyes; then 21860 21861printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 21862 21863fi 21864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 21865printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; } 21866 21867# Check whether --enable-thread-safety-constructor was given. 21868if test ${enable_thread_safety_constructor+y} 21869then : 21870 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval 21871else $as_nop 21872 USE_THREAD_SAFETY_CONSTRUCTOR="yes" 21873fi 21874 21875if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 21876 21877printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h 21878 21879fi 21880 21881# Checks for header files. 21882ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 21883if test "x$ac_cv_header_sys_filio_h" = xyes 21884then : 21885 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 21886 21887fi 21888ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 21889if test "x$ac_cv_header_sys_select_h" = xyes 21890then : 21891 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 21892 21893fi 21894ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 21895if test "x$ac_cv_header_sys_ioctl_h" = xyes 21896then : 21897 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 21898 21899fi 21900ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 21901if test "x$ac_cv_header_sys_socket_h" = xyes 21902then : 21903 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 21904 21905fi 21906 21907 21908# Checks for typedefs, structures, and compiler characteristics. 21909 21910 21911 21912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5 21913printf %s "checking for __builtin_popcountl... " >&6; } 21914if test ${ax_cv_have___builtin_popcountl+y} 21915then : 21916 printf %s "(cached) " >&6 21917else $as_nop 21918 21919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21920/* end confdefs.h. */ 21921 21922int 21923main (void) 21924{ 21925 21926 __builtin_popcountl(0) 21927 21928 ; 21929 return 0; 21930} 21931_ACEOF 21932if ac_fn_c_try_link "$LINENO" 21933then : 21934 ax_cv_have___builtin_popcountl=yes 21935else $as_nop 21936 ax_cv_have___builtin_popcountl=no 21937fi 21938rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21939 conftest$ac_exeext conftest.$ac_ext 21940 21941fi 21942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5 21943printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; } 21944 21945 if test yes = $ax_cv_have___builtin_popcountl 21946then : 21947 21948printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h 21949 21950fi 21951 21952 21953 21954 21955# Checks for library functions. 21956ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 21957if test "x$ac_cv_func_strtol" = xyes 21958then : 21959 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 21960 21961fi 21962ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 21963if test "x$ac_cv_func_seteuid" = xyes 21964then : 21965 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 21966 21967fi 21968 21969ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 21970if test "x$ac_cv_func_reallocarray" = xyes 21971then : 21972 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 21973 21974else $as_nop 21975 case " $LIBOBJS " in 21976 *" reallocarray.$ac_objext "* ) ;; 21977 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 21978 ;; 21979esac 21980 21981fi 21982 21983# Used in lcFile.c (see also --enable-xlocaledir settings below) 21984XLOCALEDIR_IS_SAFE="no" 21985ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21986if test "x$ac_cv_have_decl_issetugid" = xyes 21987then : 21988 21989fi 21990ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 21991if test "x$ac_cv_func_issetugid" = xyes 21992then : 21993 21994fi 21995 21996if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 21997 XLOCALEDIR_IS_SAFE="yes" 21998 21999printf "%s\n" "#define HASSETUGID 1" >>confdefs.h 22000 22001fi 22002ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 22003if test "x$ac_cv_func_getresuid" = xyes 22004then : 22005 XLOCALEDIR_IS_SAFE="yes" 22006 22007printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h 22008 22009fi 22010 22011# Used in Font.c 22012ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22013if test "x$ac_cv_func_shmat" = xyes 22014then : 22015 22016printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 22017 22018fi 22019 22020 22021# Checks for system services 22022# AC_PATH_XTRA 22023 22024# arch specific things 22025WCHAR32="1" 22026case $host_os in 22027 os2*) os2="true" ; WCHAR32="0" ;; 22028 *) ;; 22029esac 22030 22031 22032 if test x$os2 = xtrue; then 22033 OS2_TRUE= 22034 OS2_FALSE='#' 22035else 22036 OS2_TRUE='#' 22037 OS2_FALSE= 22038fi 22039 22040 22041 22042# Check whether --with-launchd was given. 22043if test ${with_launchd+y} 22044then : 22045 withval=$with_launchd; LAUNCHD=$withval 22046else $as_nop 22047 LAUNCHD=auto 22048fi 22049 22050if test "x$LAUNCHD" = xauto; then 22051 unset LAUNCHD 22052 # Extract the first word of "launchd", so it can be a program name with args. 22053set dummy launchd; ac_word=$2 22054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22055printf %s "checking for $ac_word... " >&6; } 22056if test ${ac_cv_prog_LAUNCHD+y} 22057then : 22058 printf %s "(cached) " >&6 22059else $as_nop 22060 if test -n "$LAUNCHD"; then 22061 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 22062else 22063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22064for as_dir in $PATH$PATH_SEPARATOR/sbin 22065do 22066 IFS=$as_save_IFS 22067 case $as_dir in #((( 22068 '') as_dir=./ ;; 22069 */) ;; 22070 *) as_dir=$as_dir/ ;; 22071 esac 22072 for ac_exec_ext in '' $ac_executable_extensions; do 22073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22074 ac_cv_prog_LAUNCHD="yes" 22075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22076 break 2 22077 fi 22078done 22079 done 22080IFS=$as_save_IFS 22081 22082 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 22083fi 22084fi 22085LAUNCHD=$ac_cv_prog_LAUNCHD 22086if test -n "$LAUNCHD"; then 22087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 22088printf "%s\n" "$LAUNCHD" >&6; } 22089else 22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22091printf "%s\n" "no" >&6; } 22092fi 22093 22094 22095fi 22096 22097if test "x$LAUNCHD" = xyes ; then 22098 22099printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h 22100 22101 22102printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h 22103 22104fi 22105 22106# Check whether --enable-xthreads was given. 22107if test ${enable_xthreads+y} 22108then : 22109 enableval=$enable_xthreads; xthreads=$enableval 22110else $as_nop 22111 xthreads=yes 22112fi 22113 22114 22115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 22116printf %s "checking for getpwuid_r in -lc... " >&6; } 22117if test ${ac_cv_lib_c_getpwuid_r+y} 22118then : 22119 printf %s "(cached) " >&6 22120else $as_nop 22121 ac_check_lib_save_LIBS=$LIBS 22122LIBS="-lc $LIBS" 22123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22124/* end confdefs.h. */ 22125 22126/* Override any GCC internal prototype to avoid an error. 22127 Use char because int might match the return type of a GCC 22128 builtin and then its argument prototype would still apply. */ 22129char getpwuid_r (); 22130int 22131main (void) 22132{ 22133return getpwuid_r (); 22134 ; 22135 return 0; 22136} 22137_ACEOF 22138if ac_fn_c_try_link "$LINENO" 22139then : 22140 ac_cv_lib_c_getpwuid_r=yes 22141else $as_nop 22142 ac_cv_lib_c_getpwuid_r=no 22143fi 22144rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22145 conftest$ac_exeext conftest.$ac_ext 22146LIBS=$ac_check_lib_save_LIBS 22147fi 22148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 22149printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; } 22150if test "x$ac_cv_lib_c_getpwuid_r" = xyes 22151then : 22152 mtsafeapi="yes" 22153else $as_nop 22154 mtsafeapi="no" 22155fi 22156 22157 22158case x$xthreads in 22159xyes) 22160 22161printf "%s\n" "#define XTHREADS 1" >>confdefs.h 22162 22163 if test x$mtsafeapi = xyes 22164 then 22165 22166printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h 22167 22168 fi 22169 ;; 22170*) 22171 ;; 22172esac 22173 22174# XXX incomplete, please fill this in 22175if test x$xthreads = xyes ; then 22176 case $host_os in 22177 linux*|gnu*|k*bsd*-gnu) 22178 XTHREADLIB=-lpthread ;; 22179 netbsd*) 22180 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 22181 XTHREADLIB="-lpthread" ;; 22182 freebsd*) 22183 XTHREAD_CFLAGS="-D_THREAD_SAFE" 22184 XTHREADLIB="-pthread" ;; 22185 dragonfly*|openbsd*) 22186 XTHREADLIB="-pthread" ;; 22187 solaris*) 22188 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 22189 esac 22190fi 22191 22192 22193 22194if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 22195 USE_THREAD_LIBS="$XTHREADLIB" 22196else 22197 # This should be kept in sync with libxcb 22198 case $host_os in 22199 linux*|darwin*|solaris*) ;; 22200 *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;; 22201 esac 22202fi 22203 22204 22205ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 22206if test "x$ac_cv_func_poll" = xyes 22207then : 22208 22209printf "%s\n" "#define USE_POLL 1" >>confdefs.h 22210 22211fi 22212 22213 22214# 22215# Find keysymdef.h 22216# 22217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 22218printf %s "checking keysym definitions... " >&6; } 22219 22220# Check whether --with-keysymdefdir was given. 22221if test ${with_keysymdefdir+y} 22222then : 22223 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 22224else $as_nop 22225 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 22226fi 22227 22228 22229if test ! -d "$KEYSYMDEFDIR"; then 22230 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 22231fi 22232 22233FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 22234for i in $FILES; do 22235 if test -f "$KEYSYMDEFDIR/$i"; then 22236 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 22237 elif test "x$i" = "xkeysymdef.h"; then 22238 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 22239 fi 22240done 22241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 22242printf "%s\n" "$KEYSYMDEFS" >&6; } 22243 22244 22245# Check whether --enable-xcms was given. 22246if test ${enable_xcms+y} 22247then : 22248 enableval=$enable_xcms; XCMS=$enableval 22249else $as_nop 22250 XCMS=yes 22251fi 22252 22253 if test x$XCMS = xyes ; then 22254 XCMS_TRUE= 22255 XCMS_FALSE='#' 22256else 22257 XCMS_TRUE='#' 22258 XCMS_FALSE= 22259fi 22260 22261if test x"$XCMS" = "xyes"; then 22262 22263printf "%s\n" "#define XCMS 1" >>confdefs.h 22264 22265fi 22266 22267# Check whether --enable-xlocale was given. 22268if test ${enable_xlocale+y} 22269then : 22270 enableval=$enable_xlocale; XLOCALE=$enableval 22271else $as_nop 22272 XLOCALE=yes 22273fi 22274 22275 22276 if test x$XLOCALE = xyes ; then 22277 XLOCALE_TRUE= 22278 XLOCALE_FALSE='#' 22279else 22280 XLOCALE_TRUE='#' 22281 XLOCALE_FALSE= 22282fi 22283 22284if test x"$XLOCALE" = "xyes"; then 22285 22286printf "%s\n" "#define XLOCALE 1" >>confdefs.h 22287 22288fi 22289 22290# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 22291# don't have either issetugid() or getresuid(), and you need to protect 22292# clients that are setgid or setuid to an id other than 0. 22293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 22294printf %s "checking if XLOCALEDIR support should be enabled... " >&6; } 22295# Check whether --enable-xlocaledir was given. 22296if test ${enable_xlocaledir+y} 22297then : 22298 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 22299else $as_nop 22300 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 22301fi 22302 22303if test "x$ENABLE_XLOCALEDIR" = "xno"; then 22304 22305printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h 22306 22307fi 22308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 22309printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; } 22310 22311# Check whether --enable-xf86bigfont was given. 22312if test ${enable_xf86bigfont+y} 22313then : 22314 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 22315else $as_nop 22316 XF86BIGFONT="yes" 22317fi 22318 22319if test "x$XF86BIGFONT" = "xyes"; then 22320 22321pkg_failed=no 22322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 22323printf %s "checking for BIGFONT... " >&6; } 22324 22325if test -n "$BIGFONT_CFLAGS"; then 22326 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 22327 elif test -n "$PKG_CONFIG"; then 22328 if test -n "$PKG_CONFIG" && \ 22329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22330 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22331 ac_status=$? 22332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22333 test $ac_status = 0; }; then 22334 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22335 test "x$?" != "x0" && pkg_failed=yes 22336else 22337 pkg_failed=yes 22338fi 22339 else 22340 pkg_failed=untried 22341fi 22342if test -n "$BIGFONT_LIBS"; then 22343 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 22344 elif test -n "$PKG_CONFIG"; then 22345 if test -n "$PKG_CONFIG" && \ 22346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22347 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22348 ac_status=$? 22349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22350 test $ac_status = 0; }; then 22351 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22352 test "x$?" != "x0" && pkg_failed=yes 22353else 22354 pkg_failed=yes 22355fi 22356 else 22357 pkg_failed=untried 22358fi 22359 22360 22361 22362if test $pkg_failed = yes; then 22363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22364printf "%s\n" "no" >&6; } 22365 22366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22367 _pkg_short_errors_supported=yes 22368else 22369 _pkg_short_errors_supported=no 22370fi 22371 if test $_pkg_short_errors_supported = yes; then 22372 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22373 else 22374 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22375 fi 22376 # Put the nasty error message in config.log where it belongs 22377 echo "$BIGFONT_PKG_ERRORS" >&5 22378 22379 XF86BIGFONT="no" 22380elif test $pkg_failed = untried; then 22381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22382printf "%s\n" "no" >&6; } 22383 XF86BIGFONT="no" 22384else 22385 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 22386 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 22387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22388printf "%s\n" "yes" >&6; } 22389 22390printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 22391 22392fi 22393fi 22394 22395# Check whether --enable-xkb was given. 22396if test ${enable_xkb+y} 22397then : 22398 enableval=$enable_xkb; XKB=$enableval 22399else $as_nop 22400 XKB=yes 22401fi 22402 22403 22404 if test x$XKB = xyes ; then 22405 XKB_TRUE= 22406 XKB_FALSE='#' 22407else 22408 XKB_TRUE='#' 22409 XKB_FALSE= 22410fi 22411 22412if test x"$XKB" = "xyes"; then 22413 XKBPROTO_REQUIRES="kbproto" 22414 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 22415 22416printf "%s\n" "#define XKB 1" >>confdefs.h 22417 22418else 22419 XKBPROTO_REQUIRES="" 22420fi 22421 22422 22423 22424ac_func= 22425for ac_item in $ac_func_c_list 22426do 22427 if test $ac_func; then 22428 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 22429 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 22430 echo "#define $ac_item 1" >> confdefs.h 22431 fi 22432 ac_func= 22433 else 22434 ac_func=$ac_item 22435 fi 22436done 22437 22438 22439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 22440printf %s "checking for working mmap... " >&6; } 22441if test ${ac_cv_func_mmap_fixed_mapped+y} 22442then : 22443 printf %s "(cached) " >&6 22444else $as_nop 22445 if test "$cross_compiling" = yes 22446then : 22447 case "$host_os" in # (( 22448 # Guess yes on platforms where we know the result. 22449 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 22450 # If we don't know, assume the worst. 22451 *) ac_cv_func_mmap_fixed_mapped=no ;; 22452 esac 22453else $as_nop 22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22455/* end confdefs.h. */ 22456$ac_includes_default 22457/* malloc might have been renamed as rpl_malloc. */ 22458#undef malloc 22459 22460/* Thanks to Mike Haertel and Jim Avera for this test. 22461 Here is a matrix of mmap possibilities: 22462 mmap private not fixed 22463 mmap private fixed at somewhere currently unmapped 22464 mmap private fixed at somewhere already mapped 22465 mmap shared not fixed 22466 mmap shared fixed at somewhere currently unmapped 22467 mmap shared fixed at somewhere already mapped 22468 For private mappings, we should verify that changes cannot be read() 22469 back from the file, nor mmap's back from the file at a different 22470 address. (There have been systems where private was not correctly 22471 implemented like the infamous i386 svr4.0, and systems where the 22472 VM page cache was not coherent with the file system buffer cache 22473 like early versions of FreeBSD and possibly contemporary NetBSD.) 22474 For shared mappings, we should conversely verify that changes get 22475 propagated back to all the places they're supposed to be. 22476 22477 Grep wants private fixed already mapped. 22478 The main things grep needs to know about mmap are: 22479 * does it exist and is it safe to write into the mmap'd area 22480 * how to use it (BSD variants) */ 22481 22482#include <fcntl.h> 22483#include <sys/mman.h> 22484 22485/* This mess was copied from the GNU getpagesize.h. */ 22486#ifndef HAVE_GETPAGESIZE 22487# ifdef _SC_PAGESIZE 22488# define getpagesize() sysconf(_SC_PAGESIZE) 22489# else /* no _SC_PAGESIZE */ 22490# ifdef HAVE_SYS_PARAM_H 22491# include <sys/param.h> 22492# ifdef EXEC_PAGESIZE 22493# define getpagesize() EXEC_PAGESIZE 22494# else /* no EXEC_PAGESIZE */ 22495# ifdef NBPG 22496# define getpagesize() NBPG * CLSIZE 22497# ifndef CLSIZE 22498# define CLSIZE 1 22499# endif /* no CLSIZE */ 22500# else /* no NBPG */ 22501# ifdef NBPC 22502# define getpagesize() NBPC 22503# else /* no NBPC */ 22504# ifdef PAGESIZE 22505# define getpagesize() PAGESIZE 22506# endif /* PAGESIZE */ 22507# endif /* no NBPC */ 22508# endif /* no NBPG */ 22509# endif /* no EXEC_PAGESIZE */ 22510# else /* no HAVE_SYS_PARAM_H */ 22511# define getpagesize() 8192 /* punt totally */ 22512# endif /* no HAVE_SYS_PARAM_H */ 22513# endif /* no _SC_PAGESIZE */ 22514 22515#endif /* no HAVE_GETPAGESIZE */ 22516 22517int 22518main (void) 22519{ 22520 char *data, *data2, *data3; 22521 const char *cdata2; 22522 int i, pagesize; 22523 int fd, fd2; 22524 22525 pagesize = getpagesize (); 22526 22527 /* First, make a file with some known garbage in it. */ 22528 data = (char *) malloc (pagesize); 22529 if (!data) 22530 return 1; 22531 for (i = 0; i < pagesize; ++i) 22532 *(data + i) = rand (); 22533 umask (0); 22534 fd = creat ("conftest.mmap", 0600); 22535 if (fd < 0) 22536 return 2; 22537 if (write (fd, data, pagesize) != pagesize) 22538 return 3; 22539 close (fd); 22540 22541 /* Next, check that the tail of a page is zero-filled. File must have 22542 non-zero length, otherwise we risk SIGBUS for entire page. */ 22543 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 22544 if (fd2 < 0) 22545 return 4; 22546 cdata2 = ""; 22547 if (write (fd2, cdata2, 1) != 1) 22548 return 5; 22549 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 22550 if (data2 == MAP_FAILED) 22551 return 6; 22552 for (i = 0; i < pagesize; ++i) 22553 if (*(data2 + i)) 22554 return 7; 22555 close (fd2); 22556 if (munmap (data2, pagesize)) 22557 return 8; 22558 22559 /* Next, try to mmap the file at a fixed address which already has 22560 something else allocated at it. If we can, also make sure that 22561 we see the same garbage. */ 22562 fd = open ("conftest.mmap", O_RDWR); 22563 if (fd < 0) 22564 return 9; 22565 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 22566 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 22567 return 10; 22568 for (i = 0; i < pagesize; ++i) 22569 if (*(data + i) != *(data2 + i)) 22570 return 11; 22571 22572 /* Finally, make sure that changes to the mapped area do not 22573 percolate back to the file as seen by read(). (This is a bug on 22574 some variants of i386 svr4.0.) */ 22575 for (i = 0; i < pagesize; ++i) 22576 *(data2 + i) = *(data2 + i) + 1; 22577 data3 = (char *) malloc (pagesize); 22578 if (!data3) 22579 return 12; 22580 if (read (fd, data3, pagesize) != pagesize) 22581 return 13; 22582 for (i = 0; i < pagesize; ++i) 22583 if (*(data + i) != *(data3 + i)) 22584 return 14; 22585 close (fd); 22586 free (data); 22587 free (data3); 22588 return 0; 22589} 22590_ACEOF 22591if ac_fn_c_try_run "$LINENO" 22592then : 22593 ac_cv_func_mmap_fixed_mapped=yes 22594else $as_nop 22595 ac_cv_func_mmap_fixed_mapped=no 22596fi 22597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22598 conftest.$ac_objext conftest.beam conftest.$ac_ext 22599fi 22600 22601fi 22602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 22603printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 22604if test $ac_cv_func_mmap_fixed_mapped = yes; then 22605 22606printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 22607 22608fi 22609rm -f conftest.mmap conftest.txt 22610 22611composecache_default=$ac_cv_func_mmap_fixed_mapped 22612ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 22613if test "x$ac_cv_func_nl_langinfo" = xyes 22614then : 22615 22616else $as_nop 22617 composecache_default=no 22618fi 22619 22620# Check whether --enable-composecache was given. 22621if test ${enable_composecache+y} 22622then : 22623 enableval=$enable_composecache; COMPOSECACHE=$enableval 22624else $as_nop 22625 COMPOSECACHE=$composecache_default 22626fi 22627 22628if test x"$COMPOSECACHE" = "xyes"; then 22629 22630printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h 22631 22632fi 22633 22634# Allow checking code with lint, sparse, etc. 22635 22636 22637 22638 22639 22640# Check whether --with-lint was given. 22641if test ${with_lint+y} 22642then : 22643 withval=$with_lint; use_lint=$withval 22644else $as_nop 22645 use_lint=no 22646fi 22647 22648 22649# Obtain platform specific info like program name and options 22650# The lint program on FreeBSD and NetBSD is different from the one on Solaris 22651case $host_os in 22652 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 22653 lint_name=splint 22654 lint_options="-badflag" 22655 ;; 22656 *freebsd* | *netbsd*) 22657 lint_name=lint 22658 lint_options="-u -b" 22659 ;; 22660 *solaris*) 22661 lint_name=lint 22662 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 22663 ;; 22664esac 22665 22666# Test for the presence of the program (either guessed by the code or spelled out by the user) 22667if test "x$use_lint" = x"yes" ; then 22668 # Extract the first word of "$lint_name", so it can be a program name with args. 22669set dummy $lint_name; ac_word=$2 22670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22671printf %s "checking for $ac_word... " >&6; } 22672if test ${ac_cv_path_LINT+y} 22673then : 22674 printf %s "(cached) " >&6 22675else $as_nop 22676 case $LINT in 22677 [\\/]* | ?:[\\/]*) 22678 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 22679 ;; 22680 *) 22681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22682for as_dir in $PATH 22683do 22684 IFS=$as_save_IFS 22685 case $as_dir in #((( 22686 '') as_dir=./ ;; 22687 */) ;; 22688 *) as_dir=$as_dir/ ;; 22689 esac 22690 for ac_exec_ext in '' $ac_executable_extensions; do 22691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22692 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 22693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22694 break 2 22695 fi 22696done 22697 done 22698IFS=$as_save_IFS 22699 22700 ;; 22701esac 22702fi 22703LINT=$ac_cv_path_LINT 22704if test -n "$LINT"; then 22705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 22706printf "%s\n" "$LINT" >&6; } 22707else 22708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22709printf "%s\n" "no" >&6; } 22710fi 22711 22712 22713 if test "x$LINT" = "x"; then 22714 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 22715 fi 22716elif test "x$use_lint" = x"no" ; then 22717 if test "x$LINT" != "x"; then 22718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 22719printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 22720 fi 22721else 22722 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 22723fi 22724 22725# User supplied flags override default flags 22726if test "x$LINT_FLAGS" != "x"; then 22727 lint_options=$LINT_FLAGS 22728fi 22729 22730LINT_FLAGS=$lint_options 22731 22732 if test "x$LINT" != x; then 22733 LINT_TRUE= 22734 LINT_FALSE='#' 22735else 22736 LINT_TRUE='#' 22737 LINT_FALSE= 22738fi 22739 22740 22741 22742 22743 22744# Check whether --enable-lint-library was given. 22745if test ${enable_lint_library+y} 22746then : 22747 enableval=$enable_lint_library; make_lint_lib=$enableval 22748else $as_nop 22749 make_lint_lib=no 22750fi 22751 22752 22753if test "x$make_lint_lib" = x"yes" ; then 22754 LINTLIB=llib-lX11.ln 22755 if test "x$LINT" = "x"; then 22756 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 22757 fi 22758elif test "x$make_lint_lib" != x"no" ; then 22759 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 22760fi 22761 22762 22763 if test x$make_lint_lib != xno; then 22764 MAKE_LINT_LIB_TRUE= 22765 MAKE_LINT_LIB_FALSE='#' 22766else 22767 MAKE_LINT_LIB_TRUE='#' 22768 MAKE_LINT_LIB_FALSE= 22769fi 22770 22771 22772 22773 22774X11_DATADIR="${datadir}/X11" 22775 22776 prefix_NONE= 22777 exec_prefix_NONE= 22778 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22779 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22780 eval ax_define_dir="\"$X11_DATADIR\"" 22781 eval ax_define_dir="\"$ax_define_dir\"" 22782 X11_DATADIR="$ax_define_dir" 22783 22784 22785printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h 22786 22787 test "$prefix_NONE" && prefix=NONE 22788 test "$exec_prefix_NONE" && exec_prefix=NONE 22789 22790 22791 22792X11_LIBDIR="${libdir}/X11" 22793 22794 prefix_NONE= 22795 exec_prefix_NONE= 22796 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22797 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22798 eval ax_define_dir="\"$X11_LIBDIR\"" 22799 eval ax_define_dir="\"$ax_define_dir\"" 22800 X11_LIBDIR="$ax_define_dir" 22801 22802 22803printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h 22804 22805 test "$prefix_NONE" && prefix=NONE 22806 test "$exec_prefix_NONE" && exec_prefix=NONE 22807 22808 22809 22810 22811pkg_failed=no 22812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 22813printf %s "checking for X11... " >&6; } 22814 22815if test -n "$X11_CFLAGS"; then 22816 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 22817 elif test -n "$PKG_CONFIG"; then 22818 if test -n "$PKG_CONFIG" && \ 22819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 22820 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 22821 ac_status=$? 22822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22823 test $ac_status = 0; }; then 22824 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 22825 test "x$?" != "x0" && pkg_failed=yes 22826else 22827 pkg_failed=yes 22828fi 22829 else 22830 pkg_failed=untried 22831fi 22832if test -n "$X11_LIBS"; then 22833 pkg_cv_X11_LIBS="$X11_LIBS" 22834 elif test -n "$PKG_CONFIG"; then 22835 if test -n "$PKG_CONFIG" && \ 22836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 22837 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 22838 ac_status=$? 22839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22840 test $ac_status = 0; }; then 22841 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 22842 test "x$?" != "x0" && pkg_failed=yes 22843else 22844 pkg_failed=yes 22845fi 22846 else 22847 pkg_failed=untried 22848fi 22849 22850 22851 22852if test $pkg_failed = yes; then 22853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22854printf "%s\n" "no" >&6; } 22855 22856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22857 _pkg_short_errors_supported=yes 22858else 22859 _pkg_short_errors_supported=no 22860fi 22861 if test $_pkg_short_errors_supported = yes; then 22862 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 22863 else 22864 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 22865 fi 22866 # Put the nasty error message in config.log where it belongs 22867 echo "$X11_PKG_ERRORS" >&5 22868 22869 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 22870 22871$X11_PKG_ERRORS 22872 22873Consider adjusting the PKG_CONFIG_PATH environment variable if you 22874installed software in a non-standard prefix. 22875 22876Alternatively, you may set the environment variables X11_CFLAGS 22877and X11_LIBS to avoid the need to call pkg-config. 22878See the pkg-config man page for more details." "$LINENO" 5 22879elif test $pkg_failed = untried; then 22880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22881printf "%s\n" "no" >&6; } 22882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22883printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22884as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22885is in your PATH or set the PKG_CONFIG environment variable to the full 22886path to pkg-config. 22887 22888Alternatively, you may set the environment variables X11_CFLAGS 22889and X11_LIBS to avoid the need to call pkg-config. 22890See the pkg-config man page for more details. 22891 22892To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22893See \`config.log' for more details" "$LINENO" 5; } 22894else 22895 X11_CFLAGS=$pkg_cv_X11_CFLAGS 22896 X11_LIBS=$pkg_cv_X11_LIBS 22897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22898printf "%s\n" "yes" >&6; } 22899 22900fi 22901X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 22902 22903# 22904# Yes, it would be nice to put the locale data in 22905# /usr/share, but the locale stuff includes loadable 22906# libraries which must be located in the same directory 22907# as the other locale data, so for now, everything lives 22908# in ${libdir} 22909# 22910 22911X11_LOCALEDATADIR="${X11_DATADIR}/locale" 22912 22913 prefix_NONE= 22914 exec_prefix_NONE= 22915 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22916 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22917 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 22918 eval ax_define_dir="\"$ax_define_dir\"" 22919 XLOCALEDATADIR="$ax_define_dir" 22920 22921 22922printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h 22923 22924 test "$prefix_NONE" && prefix=NONE 22925 test "$exec_prefix_NONE" && exec_prefix=NONE 22926 22927 22928 22929 22930# Check whether --with-locale-lib-dir was given. 22931if test ${with_locale_lib_dir+y} 22932then : 22933 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 22934else $as_nop 22935 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 22936fi 22937 22938 22939 prefix_NONE= 22940 exec_prefix_NONE= 22941 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22942 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22943 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 22944 eval ax_define_dir="\"$ax_define_dir\"" 22945 XLOCALELIBDIR="$ax_define_dir" 22946 22947 22948printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h 22949 22950 test "$prefix_NONE" && prefix=NONE 22951 test "$exec_prefix_NONE" && exec_prefix=NONE 22952 22953 22954 22955X11_LOCALEDIR="${X11_LOCALEDATADIR}" 22956 22957 prefix_NONE= 22958 exec_prefix_NONE= 22959 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22960 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22961 eval ax_define_dir="\"$X11_LOCALEDIR\"" 22962 eval ax_define_dir="\"$ax_define_dir\"" 22963 XLOCALEDIR="$ax_define_dir" 22964 22965 22966printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h 22967 22968 test "$prefix_NONE" && prefix=NONE 22969 test "$exec_prefix_NONE" && exec_prefix=NONE 22970 22971 22972 22973locales="\ 22974 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 22975 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 22976 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 22977 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 22978 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 22979 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 22980 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 22981 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \ 22982 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ 22983 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \ 22984 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \ 22985 zh_TW zh_TW.big5 zh_TW.UTF-8" 22986 22987 22988XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 22989 22990 prefix_NONE= 22991 exec_prefix_NONE= 22992 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22993 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22994 eval ax_define_dir="\"$XKEYSYMDB\"" 22995 eval ax_define_dir="\"$ax_define_dir\"" 22996 XKEYSYMDB="$ax_define_dir" 22997 22998 22999printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h 23000 23001 test "$prefix_NONE" && prefix=NONE 23002 test "$exec_prefix_NONE" && exec_prefix=NONE 23003 23004 23005XERRORDB="${X11_DATADIR}/XErrorDB" 23006 23007 prefix_NONE= 23008 exec_prefix_NONE= 23009 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23010 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23011 eval ax_define_dir="\"$XERRORDB\"" 23012 eval ax_define_dir="\"$ax_define_dir\"" 23013 XERRORDB="$ax_define_dir" 23014 23015 23016printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h 23017 23018 test "$prefix_NONE" && prefix=NONE 23019 test "$exec_prefix_NONE" && exec_prefix=NONE 23020 23021 23022 23023# Check whether --enable-malloc0returnsnull was given. 23024if test ${enable_malloc0returnsnull+y} 23025then : 23026 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 23027else $as_nop 23028 MALLOC_ZERO_RETURNS_NULL=auto 23029fi 23030 23031 23032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 23033printf %s "checking whether malloc(0) returns NULL... " >&6; } 23034if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 23035if test ${xorg_cv_malloc0_returns_null+y} 23036then : 23037 printf %s "(cached) " >&6 23038else $as_nop 23039 if test "$cross_compiling" = yes 23040then : 23041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23043as_fn_error $? "cannot run test program while cross compiling 23044See \`config.log' for more details" "$LINENO" 5; } 23045else $as_nop 23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23047/* end confdefs.h. */ 23048 23049#include <stdlib.h> 23050 23051int 23052main (void) 23053{ 23054 23055 char *m0, *r0, *c0, *p; 23056 m0 = malloc(0); 23057 p = malloc(10); 23058 r0 = realloc(p,0); 23059 c0 = calloc(0,10); 23060 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 23061 23062 ; 23063 return 0; 23064} 23065_ACEOF 23066if ac_fn_c_try_run "$LINENO" 23067then : 23068 xorg_cv_malloc0_returns_null=yes 23069else $as_nop 23070 xorg_cv_malloc0_returns_null=no 23071fi 23072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23073 conftest.$ac_objext conftest.beam conftest.$ac_ext 23074fi 23075 23076fi 23077 23078MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 23079fi 23080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 23081printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 23082 23083if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 23084 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 23085 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 23086 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 23087else 23088 MALLOC_ZERO_CFLAGS="" 23089 XMALLOC_ZERO_CFLAGS="" 23090 XTMALLOC_ZERO_CFLAGS="" 23091fi 23092 23093 23094 23095 23096 23097 23098ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc" 23099 23100cat >confcache <<\_ACEOF 23101# This file is a shell script that caches the results of configure 23102# tests run on this system so they can be shared between configure 23103# scripts and configure runs, see configure's option --config-cache. 23104# It is not useful on other systems. If it contains results you don't 23105# want to keep, you may remove or edit it. 23106# 23107# config.status only pays attention to the cache file if you give it 23108# the --recheck option to rerun configure. 23109# 23110# `ac_cv_env_foo' variables (set or unset) will be overridden when 23111# loading this file, other *unset* `ac_cv_foo' will be assigned the 23112# following values. 23113 23114_ACEOF 23115 23116# The following way of writing the cache mishandles newlines in values, 23117# but we know of no workaround that is simple, portable, and efficient. 23118# So, we kill variables containing newlines. 23119# Ultrix sh set writes to stderr and can't be redirected directly, 23120# and sets the high bit in the cache file unless we assign to the vars. 23121( 23122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23123 eval ac_val=\$$ac_var 23124 case $ac_val in #( 23125 *${as_nl}*) 23126 case $ac_var in #( 23127 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23128printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23129 esac 23130 case $ac_var in #( 23131 _ | IFS | as_nl) ;; #( 23132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23133 *) { eval $ac_var=; unset $ac_var;} ;; 23134 esac ;; 23135 esac 23136 done 23137 23138 (set) 2>&1 | 23139 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23140 *${as_nl}ac_space=\ *) 23141 # `set' does not quote correctly, so add quotes: double-quote 23142 # substitution turns \\\\ into \\, and sed turns \\ into \. 23143 sed -n \ 23144 "s/'/'\\\\''/g; 23145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23146 ;; #( 23147 *) 23148 # `set' quotes correctly as required by POSIX, so do not add quotes. 23149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23150 ;; 23151 esac | 23152 sort 23153) | 23154 sed ' 23155 /^ac_cv_env_/b end 23156 t clear 23157 :clear 23158 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 23159 t end 23160 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23161 :end' >>confcache 23162if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23163 if test -w "$cache_file"; then 23164 if test "x$cache_file" != "x/dev/null"; then 23165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23166printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 23167 if test ! -f "$cache_file" || test -h "$cache_file"; then 23168 cat confcache >"$cache_file" 23169 else 23170 case $cache_file in #( 23171 */* | ?:*) 23172 mv -f confcache "$cache_file"$$ && 23173 mv -f "$cache_file"$$ "$cache_file" ;; #( 23174 *) 23175 mv -f confcache "$cache_file" ;; 23176 esac 23177 fi 23178 fi 23179 else 23180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23181printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 23182 fi 23183fi 23184rm -f confcache 23185 23186test "x$prefix" = xNONE && prefix=$ac_default_prefix 23187# Let make expand exec_prefix. 23188test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23189 23190DEFS=-DHAVE_CONFIG_H 23191 23192ac_libobjs= 23193ac_ltlibobjs= 23194U= 23195for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23196 # 1. Remove the extension, and $U if already installed. 23197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23198 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 23199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23200 # will be set to the directory where LIBOBJS objects are built. 23201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23203done 23204LIBOBJS=$ac_libobjs 23205 23206LTLIBOBJS=$ac_ltlibobjs 23207 23208 23209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 23210printf %s "checking that generated files are newer than configure... " >&6; } 23211 if test -n "$am_sleep_pid"; then 23212 # Hide warnings about reused PIDs. 23213 wait $am_sleep_pid 2>/dev/null 23214 fi 23215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 23216printf "%s\n" "done" >&6; } 23217if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23218 as_fn_error $? "conditional \"AMDEP\" was never defined. 23219Usually this means the macro was only invoked conditionally." "$LINENO" 5 23220fi 23221if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23222 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23223Usually this means the macro was only invoked conditionally." "$LINENO" 5 23224fi 23225 if test -n "$EXEEXT"; then 23226 am__EXEEXT_TRUE= 23227 am__EXEEXT_FALSE='#' 23228else 23229 am__EXEEXT_TRUE='#' 23230 am__EXEEXT_FALSE= 23231fi 23232 23233if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 23234 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 23235Usually this means the macro was only invoked conditionally." "$LINENO" 5 23236fi 23237if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 23238 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 23239Usually this means the macro was only invoked conditionally." "$LINENO" 5 23240fi 23241if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 23242 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 23243Usually this means the macro was only invoked conditionally." "$LINENO" 5 23244fi 23245if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 23246 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 23247Usually this means the macro was only invoked conditionally." "$LINENO" 5 23248fi 23249if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 23250 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 23251Usually this means the macro was only invoked conditionally." "$LINENO" 5 23252fi 23253if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 23254 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 23255Usually this means the macro was only invoked conditionally." "$LINENO" 5 23256fi 23257if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 23258 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 23259Usually this means the macro was only invoked conditionally." "$LINENO" 5 23260fi 23261if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 23262 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 23263Usually this means the macro was only invoked conditionally." "$LINENO" 5 23264fi 23265if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 23266 as_fn_error $? "conditional \"OS2\" was never defined. 23267Usually this means the macro was only invoked conditionally." "$LINENO" 5 23268fi 23269if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 23270 as_fn_error $? "conditional \"XCMS\" was never defined. 23271Usually this means the macro was only invoked conditionally." "$LINENO" 5 23272fi 23273if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 23274 as_fn_error $? "conditional \"XLOCALE\" was never defined. 23275Usually this means the macro was only invoked conditionally." "$LINENO" 5 23276fi 23277if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 23278 as_fn_error $? "conditional \"XKB\" was never defined. 23279Usually this means the macro was only invoked conditionally." "$LINENO" 5 23280fi 23281if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 23282 as_fn_error $? "conditional \"LINT\" was never defined. 23283Usually this means the macro was only invoked conditionally." "$LINENO" 5 23284fi 23285if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 23286 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 23287Usually this means the macro was only invoked conditionally." "$LINENO" 5 23288fi 23289 23290: "${CONFIG_STATUS=./config.status}" 23291ac_write_fail=0 23292ac_clean_files_save=$ac_clean_files 23293ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23295printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 23296as_write_fail=0 23297cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23298#! $SHELL 23299# Generated by $as_me. 23300# Run this file to recreate the current configuration. 23301# Compiler output produced by configure, useful for debugging 23302# configure, is in config.log if it exists. 23303 23304debug=false 23305ac_cs_recheck=false 23306ac_cs_silent=false 23307 23308SHELL=\${CONFIG_SHELL-$SHELL} 23309export SHELL 23310_ASEOF 23311cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23312## -------------------- ## 23313## M4sh Initialization. ## 23314## -------------------- ## 23315 23316# Be more Bourne compatible 23317DUALCASE=1; export DUALCASE # for MKS sh 23318as_nop=: 23319if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23320then : 23321 emulate sh 23322 NULLCMD=: 23323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23324 # is contrary to our usage. Disable this feature. 23325 alias -g '${1+"$@"}'='"$@"' 23326 setopt NO_GLOB_SUBST 23327else $as_nop 23328 case `(set -o) 2>/dev/null` in #( 23329 *posix*) : 23330 set -o posix ;; #( 23331 *) : 23332 ;; 23333esac 23334fi 23335 23336 23337 23338# Reset variables that may have inherited troublesome values from 23339# the environment. 23340 23341# IFS needs to be set, to space, tab, and newline, in precisely that order. 23342# (If _AS_PATH_WALK were called with IFS unset, it would have the 23343# side effect of setting IFS to empty, thus disabling word splitting.) 23344# Quoting is to prevent editors from complaining about space-tab. 23345as_nl=' 23346' 23347export as_nl 23348IFS=" "" $as_nl" 23349 23350PS1='$ ' 23351PS2='> ' 23352PS4='+ ' 23353 23354# Ensure predictable behavior from utilities with locale-dependent output. 23355LC_ALL=C 23356export LC_ALL 23357LANGUAGE=C 23358export LANGUAGE 23359 23360# We cannot yet rely on "unset" to work, but we need these variables 23361# to be unset--not just set to an empty or harmless value--now, to 23362# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 23363# also avoids known problems related to "unset" and subshell syntax 23364# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 23365for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 23366do eval test \${$as_var+y} \ 23367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23368done 23369 23370# Ensure that fds 0, 1, and 2 are open. 23371if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 23372if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 23373if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 23374 23375# The user is always right. 23376if ${PATH_SEPARATOR+false} :; then 23377 PATH_SEPARATOR=: 23378 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23379 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23380 PATH_SEPARATOR=';' 23381 } 23382fi 23383 23384 23385# Find who we are. Look in the path if we contain no directory separator. 23386as_myself= 23387case $0 in #(( 23388 *[\\/]* ) as_myself=$0 ;; 23389 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23390for as_dir in $PATH 23391do 23392 IFS=$as_save_IFS 23393 case $as_dir in #((( 23394 '') as_dir=./ ;; 23395 */) ;; 23396 *) as_dir=$as_dir/ ;; 23397 esac 23398 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 23399 done 23400IFS=$as_save_IFS 23401 23402 ;; 23403esac 23404# We did not find ourselves, most probably we were run as `sh COMMAND' 23405# in which case we are not to be found in the path. 23406if test "x$as_myself" = x; then 23407 as_myself=$0 23408fi 23409if test ! -f "$as_myself"; then 23410 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23411 exit 1 23412fi 23413 23414 23415 23416# as_fn_error STATUS ERROR [LINENO LOG_FD] 23417# ---------------------------------------- 23418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23420# script with STATUS, using 1 if that was 0. 23421as_fn_error () 23422{ 23423 as_status=$1; test $as_status -eq 0 && as_status=1 23424 if test "$4"; then 23425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23427 fi 23428 printf "%s\n" "$as_me: error: $2" >&2 23429 as_fn_exit $as_status 23430} # as_fn_error 23431 23432 23433 23434# as_fn_set_status STATUS 23435# ----------------------- 23436# Set $? to STATUS, without forking. 23437as_fn_set_status () 23438{ 23439 return $1 23440} # as_fn_set_status 23441 23442# as_fn_exit STATUS 23443# ----------------- 23444# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23445as_fn_exit () 23446{ 23447 set +e 23448 as_fn_set_status $1 23449 exit $1 23450} # as_fn_exit 23451 23452# as_fn_unset VAR 23453# --------------- 23454# Portably unset VAR. 23455as_fn_unset () 23456{ 23457 { eval $1=; unset $1;} 23458} 23459as_unset=as_fn_unset 23460 23461# as_fn_append VAR VALUE 23462# ---------------------- 23463# Append the text in VALUE to the end of the definition contained in VAR. Take 23464# advantage of any shell optimizations that allow amortized linear growth over 23465# repeated appends, instead of the typical quadratic growth present in naive 23466# implementations. 23467if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 23468then : 23469 eval 'as_fn_append () 23470 { 23471 eval $1+=\$2 23472 }' 23473else $as_nop 23474 as_fn_append () 23475 { 23476 eval $1=\$$1\$2 23477 } 23478fi # as_fn_append 23479 23480# as_fn_arith ARG... 23481# ------------------ 23482# Perform arithmetic evaluation on the ARGs, and store the result in the 23483# global $as_val. Take advantage of shells that can avoid forks. The arguments 23484# must be portable across $(()) and expr. 23485if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 23486then : 23487 eval 'as_fn_arith () 23488 { 23489 as_val=$(( $* )) 23490 }' 23491else $as_nop 23492 as_fn_arith () 23493 { 23494 as_val=`expr "$@" || test $? -eq 1` 23495 } 23496fi # as_fn_arith 23497 23498 23499if expr a : '\(a\)' >/dev/null 2>&1 && 23500 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23501 as_expr=expr 23502else 23503 as_expr=false 23504fi 23505 23506if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23507 as_basename=basename 23508else 23509 as_basename=false 23510fi 23511 23512if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23513 as_dirname=dirname 23514else 23515 as_dirname=false 23516fi 23517 23518as_me=`$as_basename -- "$0" || 23519$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23520 X"$0" : 'X\(//\)$' \| \ 23521 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23522printf "%s\n" X/"$0" | 23523 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23524 s//\1/ 23525 q 23526 } 23527 /^X\/\(\/\/\)$/{ 23528 s//\1/ 23529 q 23530 } 23531 /^X\/\(\/\).*/{ 23532 s//\1/ 23533 q 23534 } 23535 s/.*/./; q'` 23536 23537# Avoid depending upon Character Ranges. 23538as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23539as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23540as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23541as_cr_digits='0123456789' 23542as_cr_alnum=$as_cr_Letters$as_cr_digits 23543 23544 23545# Determine whether it's possible to make 'echo' print without a newline. 23546# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 23547# for compatibility with existing Makefiles. 23548ECHO_C= ECHO_N= ECHO_T= 23549case `echo -n x` in #((((( 23550-n*) 23551 case `echo 'xy\c'` in 23552 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23553 xy) ECHO_C='\c';; 23554 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23555 ECHO_T=' ';; 23556 esac;; 23557*) 23558 ECHO_N='-n';; 23559esac 23560 23561# For backward compatibility with old third-party macros, we provide 23562# the shell variables $as_echo and $as_echo_n. New code should use 23563# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 23564as_echo='printf %s\n' 23565as_echo_n='printf %s' 23566 23567rm -f conf$$ conf$$.exe conf$$.file 23568if test -d conf$$.dir; then 23569 rm -f conf$$.dir/conf$$.file 23570else 23571 rm -f conf$$.dir 23572 mkdir conf$$.dir 2>/dev/null 23573fi 23574if (echo >conf$$.file) 2>/dev/null; then 23575 if ln -s conf$$.file conf$$ 2>/dev/null; then 23576 as_ln_s='ln -s' 23577 # ... but there are two gotchas: 23578 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23579 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23580 # In both cases, we have to default to `cp -pR'. 23581 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23582 as_ln_s='cp -pR' 23583 elif ln conf$$.file conf$$ 2>/dev/null; then 23584 as_ln_s=ln 23585 else 23586 as_ln_s='cp -pR' 23587 fi 23588else 23589 as_ln_s='cp -pR' 23590fi 23591rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23592rmdir conf$$.dir 2>/dev/null 23593 23594 23595# as_fn_mkdir_p 23596# ------------- 23597# Create "$as_dir" as a directory, including parents if necessary. 23598as_fn_mkdir_p () 23599{ 23600 23601 case $as_dir in #( 23602 -*) as_dir=./$as_dir;; 23603 esac 23604 test -d "$as_dir" || eval $as_mkdir_p || { 23605 as_dirs= 23606 while :; do 23607 case $as_dir in #( 23608 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23609 *) as_qdir=$as_dir;; 23610 esac 23611 as_dirs="'$as_qdir' $as_dirs" 23612 as_dir=`$as_dirname -- "$as_dir" || 23613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23614 X"$as_dir" : 'X\(//\)[^/]' \| \ 23615 X"$as_dir" : 'X\(//\)$' \| \ 23616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23617printf "%s\n" X"$as_dir" | 23618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23619 s//\1/ 23620 q 23621 } 23622 /^X\(\/\/\)[^/].*/{ 23623 s//\1/ 23624 q 23625 } 23626 /^X\(\/\/\)$/{ 23627 s//\1/ 23628 q 23629 } 23630 /^X\(\/\).*/{ 23631 s//\1/ 23632 q 23633 } 23634 s/.*/./; q'` 23635 test -d "$as_dir" && break 23636 done 23637 test -z "$as_dirs" || eval "mkdir $as_dirs" 23638 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23639 23640 23641} # as_fn_mkdir_p 23642if mkdir -p . 2>/dev/null; then 23643 as_mkdir_p='mkdir -p "$as_dir"' 23644else 23645 test -d ./-p && rmdir ./-p 23646 as_mkdir_p=false 23647fi 23648 23649 23650# as_fn_executable_p FILE 23651# ----------------------- 23652# Test if FILE is an executable regular file. 23653as_fn_executable_p () 23654{ 23655 test -f "$1" && test -x "$1" 23656} # as_fn_executable_p 23657as_test_x='test -x' 23658as_executable_p=as_fn_executable_p 23659 23660# Sed expression to map a string onto a valid CPP name. 23661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23662 23663# Sed expression to map a string onto a valid variable name. 23664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23665 23666 23667exec 6>&1 23668## ----------------------------------- ## 23669## Main body of $CONFIG_STATUS script. ## 23670## ----------------------------------- ## 23671_ASEOF 23672test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23673 23674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23675# Save the log message, to keep $0 and so on meaningful, and to 23676# report actual input values of CONFIG_FILES etc. instead of their 23677# values after options handling. 23678ac_log=" 23679This file was extended by libX11 $as_me 1.8.6, which was 23680generated by GNU Autoconf 2.71. Invocation command line was 23681 23682 CONFIG_FILES = $CONFIG_FILES 23683 CONFIG_HEADERS = $CONFIG_HEADERS 23684 CONFIG_LINKS = $CONFIG_LINKS 23685 CONFIG_COMMANDS = $CONFIG_COMMANDS 23686 $ $0 $@ 23687 23688on `(hostname || uname -n) 2>/dev/null | sed 1q` 23689" 23690 23691_ACEOF 23692 23693case $ac_config_files in *" 23694"*) set x $ac_config_files; shift; ac_config_files=$*;; 23695esac 23696 23697case $ac_config_headers in *" 23698"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23699esac 23700 23701 23702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23703# Files that config.status was made for. 23704config_files="$ac_config_files" 23705config_headers="$ac_config_headers" 23706config_commands="$ac_config_commands" 23707 23708_ACEOF 23709 23710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23711ac_cs_usage="\ 23712\`$as_me' instantiates files and other configuration actions 23713from templates according to the current configuration. Unless the files 23714and actions are specified as TAGs, all are instantiated by default. 23715 23716Usage: $0 [OPTION]... [TAG]... 23717 23718 -h, --help print this help, then exit 23719 -V, --version print version number and configuration settings, then exit 23720 --config print configuration, then exit 23721 -q, --quiet, --silent 23722 do not print progress messages 23723 -d, --debug don't remove temporary files 23724 --recheck update $as_me by reconfiguring in the same conditions 23725 --file=FILE[:TEMPLATE] 23726 instantiate the configuration file FILE 23727 --header=FILE[:TEMPLATE] 23728 instantiate the configuration header FILE 23729 23730Configuration files: 23731$config_files 23732 23733Configuration headers: 23734$config_headers 23735 23736Configuration commands: 23737$config_commands 23738 23739Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>." 23740 23741_ACEOF 23742ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 23743ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 23744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23745ac_cs_config='$ac_cs_config_escaped' 23746ac_cs_version="\\ 23747libX11 config.status 1.8.6 23748configured by $0, generated by GNU Autoconf 2.71, 23749 with options \\"\$ac_cs_config\\" 23750 23751Copyright (C) 2021 Free Software Foundation, Inc. 23752This config.status script is free software; the Free Software Foundation 23753gives unlimited permission to copy, distribute and modify it." 23754 23755ac_pwd='$ac_pwd' 23756srcdir='$srcdir' 23757INSTALL='$INSTALL' 23758MKDIR_P='$MKDIR_P' 23759AWK='$AWK' 23760test -n "\$AWK" || AWK=awk 23761_ACEOF 23762 23763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23764# The default lists apply if the user does not specify any file. 23765ac_need_defaults=: 23766while test $# != 0 23767do 23768 case $1 in 23769 --*=?*) 23770 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23772 ac_shift=: 23773 ;; 23774 --*=) 23775 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23776 ac_optarg= 23777 ac_shift=: 23778 ;; 23779 *) 23780 ac_option=$1 23781 ac_optarg=$2 23782 ac_shift=shift 23783 ;; 23784 esac 23785 23786 case $ac_option in 23787 # Handling of the options. 23788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23789 ac_cs_recheck=: ;; 23790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23791 printf "%s\n" "$ac_cs_version"; exit ;; 23792 --config | --confi | --conf | --con | --co | --c ) 23793 printf "%s\n" "$ac_cs_config"; exit ;; 23794 --debug | --debu | --deb | --de | --d | -d ) 23795 debug=: ;; 23796 --file | --fil | --fi | --f ) 23797 $ac_shift 23798 case $ac_optarg in 23799 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23800 '') as_fn_error $? "missing file argument" ;; 23801 esac 23802 as_fn_append CONFIG_FILES " '$ac_optarg'" 23803 ac_need_defaults=false;; 23804 --header | --heade | --head | --hea ) 23805 $ac_shift 23806 case $ac_optarg in 23807 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23808 esac 23809 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23810 ac_need_defaults=false;; 23811 --he | --h) 23812 # Conflict between --help and --header 23813 as_fn_error $? "ambiguous option: \`$1' 23814Try \`$0 --help' for more information.";; 23815 --help | --hel | -h ) 23816 printf "%s\n" "$ac_cs_usage"; exit ;; 23817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23818 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23819 ac_cs_silent=: ;; 23820 23821 # This is an error. 23822 -*) as_fn_error $? "unrecognized option: \`$1' 23823Try \`$0 --help' for more information." ;; 23824 23825 *) as_fn_append ac_config_targets " $1" 23826 ac_need_defaults=false ;; 23827 23828 esac 23829 shift 23830done 23831 23832ac_configure_extra_args= 23833 23834if $ac_cs_silent; then 23835 exec 6>/dev/null 23836 ac_configure_extra_args="$ac_configure_extra_args --silent" 23837fi 23838 23839_ACEOF 23840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23841if \$ac_cs_recheck; then 23842 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23843 shift 23844 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 23845 CONFIG_SHELL='$SHELL' 23846 export CONFIG_SHELL 23847 exec "\$@" 23848fi 23849 23850_ACEOF 23851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23852exec 5>>config.log 23853{ 23854 echo 23855 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23856## Running $as_me. ## 23857_ASBOX 23858 printf "%s\n" "$ac_log" 23859} >&5 23860 23861_ACEOF 23862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23863# 23864# INIT-COMMANDS 23865# 23866AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23867 23868 23869# The HP-UX ksh and POSIX shell print the target directory to stdout 23870# if CDPATH is set. 23871(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23872 23873sed_quote_subst='$sed_quote_subst' 23874double_quote_subst='$double_quote_subst' 23875delay_variable_subst='$delay_variable_subst' 23876macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23877macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23878enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23879enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23880pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23881enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23882shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23883SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23884ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23885PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23886host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23887host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23888host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23889build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23890build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23891build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23892SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23893Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23894GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23895EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23896FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23897LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23898NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23899LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23900max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23901ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23902exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23903lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23904lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23905lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23906lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23907lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23908reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23909reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23910FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 23911OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23912deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23913file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23914file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23915want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23916DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23917sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23918AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23919lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 23920AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23921archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23922STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23923RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23924old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23925old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23926old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23927lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23928CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23929CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23930compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23931GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23932lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23933lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23934lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23935lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23936lt_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"`' 23937lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23938nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23939lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23940lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23941objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23942MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23943lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23944lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23945lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23946lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23947lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23948need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23949MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23950DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23951NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23952LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23953OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23954OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23955libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23956shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23957extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23958archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23959enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23960export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23961whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23962compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23963old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23964old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23965archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23966archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23967module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23968module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23969with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23970allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23971no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23972hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23973hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23974hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23975hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23976hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23977hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23978hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23979inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23980link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23981always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23982export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23983exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23984include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23985prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23986postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23987file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23988variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23989need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23990need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23991version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23992runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23993shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23994shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23995libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23996library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23997soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23998install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23999postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24000postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24001finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24002finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24003hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24004sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24005configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 24006configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 24007hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24008enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24009enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24010enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24011old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24012striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24013 24014LTCC='$LTCC' 24015LTCFLAGS='$LTCFLAGS' 24016compiler='$compiler_DEFAULT' 24017 24018# A function that is used when there is no print builtin or printf. 24019func_fallback_echo () 24020{ 24021 eval 'cat <<_LTECHO_EOF 24022\$1 24023_LTECHO_EOF' 24024} 24025 24026# Quote evaled strings. 24027for var in SHELL \ 24028ECHO \ 24029PATH_SEPARATOR \ 24030SED \ 24031GREP \ 24032EGREP \ 24033FGREP \ 24034LD \ 24035NM \ 24036LN_S \ 24037lt_SP2NL \ 24038lt_NL2SP \ 24039reload_flag \ 24040FILECMD \ 24041OBJDUMP \ 24042deplibs_check_method \ 24043file_magic_cmd \ 24044file_magic_glob \ 24045want_nocaseglob \ 24046DLLTOOL \ 24047sharedlib_from_linklib_cmd \ 24048AR \ 24049archiver_list_spec \ 24050STRIP \ 24051RANLIB \ 24052CC \ 24053CFLAGS \ 24054compiler \ 24055lt_cv_sys_global_symbol_pipe \ 24056lt_cv_sys_global_symbol_to_cdecl \ 24057lt_cv_sys_global_symbol_to_import \ 24058lt_cv_sys_global_symbol_to_c_name_address \ 24059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24060lt_cv_nm_interface \ 24061nm_file_list_spec \ 24062lt_cv_truncate_bin \ 24063lt_prog_compiler_no_builtin_flag \ 24064lt_prog_compiler_pic \ 24065lt_prog_compiler_wl \ 24066lt_prog_compiler_static \ 24067lt_cv_prog_compiler_c_o \ 24068need_locks \ 24069MANIFEST_TOOL \ 24070DSYMUTIL \ 24071NMEDIT \ 24072LIPO \ 24073OTOOL \ 24074OTOOL64 \ 24075shrext_cmds \ 24076export_dynamic_flag_spec \ 24077whole_archive_flag_spec \ 24078compiler_needs_object \ 24079with_gnu_ld \ 24080allow_undefined_flag \ 24081no_undefined_flag \ 24082hardcode_libdir_flag_spec \ 24083hardcode_libdir_separator \ 24084exclude_expsyms \ 24085include_expsyms \ 24086file_list_spec \ 24087variables_saved_for_relink \ 24088libname_spec \ 24089library_names_spec \ 24090soname_spec \ 24091install_override_mode \ 24092finish_eval \ 24093old_striplib \ 24094striplib; do 24095 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24096 *[\\\\\\\`\\"\\\$]*) 24097 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24098 ;; 24099 *) 24100 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24101 ;; 24102 esac 24103done 24104 24105# Double-quote double-evaled strings. 24106for var in reload_cmds \ 24107old_postinstall_cmds \ 24108old_postuninstall_cmds \ 24109old_archive_cmds \ 24110extract_expsyms_cmds \ 24111old_archive_from_new_cmds \ 24112old_archive_from_expsyms_cmds \ 24113archive_cmds \ 24114archive_expsym_cmds \ 24115module_cmds \ 24116module_expsym_cmds \ 24117export_symbols_cmds \ 24118prelink_cmds \ 24119postlink_cmds \ 24120postinstall_cmds \ 24121postuninstall_cmds \ 24122finish_cmds \ 24123sys_lib_search_path_spec \ 24124configure_time_dlsearch_path \ 24125configure_time_lt_sys_library_path; do 24126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24127 *[\\\\\\\`\\"\\\$]*) 24128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24129 ;; 24130 *) 24131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24132 ;; 24133 esac 24134done 24135 24136ac_aux_dir='$ac_aux_dir' 24137 24138# See if we are running on zsh, and set the options that allow our 24139# commands through without removal of \ escapes INIT. 24140if test -n "\${ZSH_VERSION+set}"; then 24141 setopt NO_GLOB_SUBST 24142fi 24143 24144 24145 PACKAGE='$PACKAGE' 24146 VERSION='$VERSION' 24147 RM='$RM' 24148 ofile='$ofile' 24149 24150 24151 24152 24153_ACEOF 24154 24155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24156 24157# Handling of arguments. 24158for ac_config_target in $ac_config_targets 24159do 24160 case $ac_config_target in 24161 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 24162 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 24163 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24164 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24166 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24167 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24168 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 24169 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24170 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 24171 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 24172 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 24173 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 24174 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 24175 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 24176 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 24177 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 24178 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 24179 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 24180 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 24181 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 24182 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 24183 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 24184 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 24185 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 24186 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 24187 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 24188 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 24189 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 24190 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 24191 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 24192 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 24193 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 24194 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 24195 24196 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24197 esac 24198done 24199 24200 24201# If the user did not use the arguments to specify the items to instantiate, 24202# then the envvar interface is used. Set only those that are not. 24203# We use the long form for the default assignment because of an extremely 24204# bizarre bug on SunOS 4.1.3. 24205if $ac_need_defaults; then 24206 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 24207 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 24208 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 24209fi 24210 24211# Have a temporary directory for convenience. Make it in the build tree 24212# simply because there is no reason against having it here, and in addition, 24213# creating and moving files from /tmp can sometimes cause problems. 24214# Hook for its removal unless debugging. 24215# Note that there is a small window in which the directory will not be cleaned: 24216# after its creation but before its name has been assigned to `$tmp'. 24217$debug || 24218{ 24219 tmp= ac_tmp= 24220 trap 'exit_status=$? 24221 : "${ac_tmp:=$tmp}" 24222 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24223' 0 24224 trap 'as_fn_exit 1' 1 2 13 15 24225} 24226# Create a (secure) tmp directory for tmp files. 24227 24228{ 24229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24230 test -d "$tmp" 24231} || 24232{ 24233 tmp=./conf$$-$RANDOM 24234 (umask 077 && mkdir "$tmp") 24235} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24236ac_tmp=$tmp 24237 24238# Set up the scripts for CONFIG_FILES section. 24239# No need to generate them if there are no CONFIG_FILES. 24240# This happens for instance with `./config.status config.h'. 24241if test -n "$CONFIG_FILES"; then 24242 24243 24244ac_cr=`echo X | tr X '\015'` 24245# On cygwin, bash can eat \r inside `` if the user requested igncr. 24246# But we know of no other shell where ac_cr would be empty at this 24247# point, so we can use a bashism as a fallback. 24248if test "x$ac_cr" = x; then 24249 eval ac_cr=\$\'\\r\' 24250fi 24251ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24252if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24253 ac_cs_awk_cr='\\r' 24254else 24255 ac_cs_awk_cr=$ac_cr 24256fi 24257 24258echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24259_ACEOF 24260 24261 24262{ 24263 echo "cat >conf$$subs.awk <<_ACEOF" && 24264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24265 echo "_ACEOF" 24266} >conf$$subs.sh || 24267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24268ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24269ac_delim='%!_!# ' 24270for ac_last_try in false false false false false :; do 24271 . ./conf$$subs.sh || 24272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24273 24274 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24275 if test $ac_delim_n = $ac_delim_num; then 24276 break 24277 elif $ac_last_try; then 24278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24279 else 24280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24281 fi 24282done 24283rm -f conf$$subs.sh 24284 24285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24286cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24287_ACEOF 24288sed -n ' 24289h 24290s/^/S["/; s/!.*/"]=/ 24291p 24292g 24293s/^[^!]*!// 24294:repl 24295t repl 24296s/'"$ac_delim"'$// 24297t delim 24298:nl 24299h 24300s/\(.\{148\}\)..*/\1/ 24301t more1 24302s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24303p 24304n 24305b repl 24306:more1 24307s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24308p 24309g 24310s/.\{148\}// 24311t nl 24312:delim 24313h 24314s/\(.\{148\}\)..*/\1/ 24315t more2 24316s/["\\]/\\&/g; s/^/"/; s/$/"/ 24317p 24318b 24319:more2 24320s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24321p 24322g 24323s/.\{148\}// 24324t delim 24325' <conf$$subs.awk | sed ' 24326/^[^""]/{ 24327 N 24328 s/\n// 24329} 24330' >>$CONFIG_STATUS || ac_write_fail=1 24331rm -f conf$$subs.awk 24332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24333_ACAWK 24334cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24335 for (key in S) S_is_set[key] = 1 24336 FS = "" 24337 24338} 24339{ 24340 line = $ 0 24341 nfields = split(line, field, "@") 24342 substed = 0 24343 len = length(field[1]) 24344 for (i = 2; i < nfields; i++) { 24345 key = field[i] 24346 keylen = length(key) 24347 if (S_is_set[key]) { 24348 value = S[key] 24349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24350 len += length(value) + length(field[++i]) 24351 substed = 1 24352 } else 24353 len += 1 + keylen 24354 } 24355 24356 print line 24357} 24358 24359_ACAWK 24360_ACEOF 24361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24362if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24364else 24365 cat 24366fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24367 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24368_ACEOF 24369 24370# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24371# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24372# trailing colons and then remove the whole line if VPATH becomes empty 24373# (actually we leave an empty line to preserve line numbers). 24374if test "x$srcdir" = x.; then 24375 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24376h 24377s/// 24378s/^/:/ 24379s/[ ]*$/:/ 24380s/:\$(srcdir):/:/g 24381s/:\${srcdir}:/:/g 24382s/:@srcdir@:/:/g 24383s/^:*// 24384s/:*$// 24385x 24386s/\(=[ ]*\).*/\1/ 24387G 24388s/\n// 24389s/^[^=]*=[ ]*$// 24390}' 24391fi 24392 24393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24394fi # test -n "$CONFIG_FILES" 24395 24396# Set up the scripts for CONFIG_HEADERS section. 24397# No need to generate them if there are no CONFIG_HEADERS. 24398# This happens for instance with `./config.status Makefile'. 24399if test -n "$CONFIG_HEADERS"; then 24400cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24401BEGIN { 24402_ACEOF 24403 24404# Transform confdefs.h into an awk script `defines.awk', embedded as 24405# here-document in config.status, that substitutes the proper values into 24406# config.h.in to produce config.h. 24407 24408# Create a delimiter string that does not exist in confdefs.h, to ease 24409# handling of long lines. 24410ac_delim='%!_!# ' 24411for ac_last_try in false false :; do 24412 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24413 if test -z "$ac_tt"; then 24414 break 24415 elif $ac_last_try; then 24416 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24417 else 24418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24419 fi 24420done 24421 24422# For the awk script, D is an array of macro values keyed by name, 24423# likewise P contains macro parameters if any. Preserve backslash 24424# newline sequences. 24425 24426ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24427sed -n ' 24428s/.\{148\}/&'"$ac_delim"'/g 24429t rset 24430:rset 24431s/^[ ]*#[ ]*define[ ][ ]*/ / 24432t def 24433d 24434:def 24435s/\\$// 24436t bsnl 24437s/["\\]/\\&/g 24438s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24439D["\1"]=" \3"/p 24440s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24441d 24442:bsnl 24443s/["\\]/\\&/g 24444s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24445D["\1"]=" \3\\\\\\n"\\/p 24446t cont 24447s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24448t cont 24449d 24450:cont 24451n 24452s/.\{148\}/&'"$ac_delim"'/g 24453t clear 24454:clear 24455s/\\$// 24456t bsnlc 24457s/["\\]/\\&/g; s/^/"/; s/$/"/p 24458d 24459:bsnlc 24460s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24461b cont 24462' <confdefs.h | sed ' 24463s/'"$ac_delim"'/"\\\ 24464"/g' >>$CONFIG_STATUS || ac_write_fail=1 24465 24466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24467 for (key in D) D_is_set[key] = 1 24468 FS = "" 24469} 24470/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24471 line = \$ 0 24472 split(line, arg, " ") 24473 if (arg[1] == "#") { 24474 defundef = arg[2] 24475 mac1 = arg[3] 24476 } else { 24477 defundef = substr(arg[1], 2) 24478 mac1 = arg[2] 24479 } 24480 split(mac1, mac2, "(") #) 24481 macro = mac2[1] 24482 prefix = substr(line, 1, index(line, defundef) - 1) 24483 if (D_is_set[macro]) { 24484 # Preserve the white space surrounding the "#". 24485 print prefix "define", macro P[macro] D[macro] 24486 next 24487 } else { 24488 # Replace #undef with comments. This is necessary, for example, 24489 # in the case of _POSIX_SOURCE, which is predefined and required 24490 # on some systems where configure will not decide to define it. 24491 if (defundef == "undef") { 24492 print "/*", prefix defundef, macro, "*/" 24493 next 24494 } 24495 } 24496} 24497{ print } 24498_ACAWK 24499_ACEOF 24500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24501 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24502fi # test -n "$CONFIG_HEADERS" 24503 24504 24505eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24506shift 24507for ac_tag 24508do 24509 case $ac_tag in 24510 :[FHLC]) ac_mode=$ac_tag; continue;; 24511 esac 24512 case $ac_mode$ac_tag in 24513 :[FHL]*:*);; 24514 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24515 :[FH]-) ac_tag=-:-;; 24516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24517 esac 24518 ac_save_IFS=$IFS 24519 IFS=: 24520 set x $ac_tag 24521 IFS=$ac_save_IFS 24522 shift 24523 ac_file=$1 24524 shift 24525 24526 case $ac_mode in 24527 :L) ac_source=$1;; 24528 :[FH]) 24529 ac_file_inputs= 24530 for ac_f 24531 do 24532 case $ac_f in 24533 -) ac_f="$ac_tmp/stdin";; 24534 *) # Look for the file first in the build tree, then in the source tree 24535 # (if the path is not absolute). The absolute path cannot be DOS-style, 24536 # because $ac_f cannot contain `:'. 24537 test -f "$ac_f" || 24538 case $ac_f in 24539 [\\/$]*) false;; 24540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24541 esac || 24542 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24543 esac 24544 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24545 as_fn_append ac_file_inputs " '$ac_f'" 24546 done 24547 24548 # Let's still pretend it is `configure' which instantiates (i.e., don't 24549 # use $as_me), people would be surprised to read: 24550 # /* config.h. Generated by config.status. */ 24551 configure_input='Generated from '` 24552 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24553 `' by configure.' 24554 if test x"$ac_file" != x-; then 24555 configure_input="$ac_file. $configure_input" 24556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24557printf "%s\n" "$as_me: creating $ac_file" >&6;} 24558 fi 24559 # Neutralize special characters interpreted by sed in replacement strings. 24560 case $configure_input in #( 24561 *\&* | *\|* | *\\* ) 24562 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 24563 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24564 *) ac_sed_conf_input=$configure_input;; 24565 esac 24566 24567 case $ac_tag in 24568 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24570 esac 24571 ;; 24572 esac 24573 24574 ac_dir=`$as_dirname -- "$ac_file" || 24575$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24576 X"$ac_file" : 'X\(//\)[^/]' \| \ 24577 X"$ac_file" : 'X\(//\)$' \| \ 24578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24579printf "%s\n" X"$ac_file" | 24580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24581 s//\1/ 24582 q 24583 } 24584 /^X\(\/\/\)[^/].*/{ 24585 s//\1/ 24586 q 24587 } 24588 /^X\(\/\/\)$/{ 24589 s//\1/ 24590 q 24591 } 24592 /^X\(\/\).*/{ 24593 s//\1/ 24594 q 24595 } 24596 s/.*/./; q'` 24597 as_dir="$ac_dir"; as_fn_mkdir_p 24598 ac_builddir=. 24599 24600case "$ac_dir" in 24601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24602*) 24603 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 24604 # A ".." for each directory in $ac_dir_suffix. 24605 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24606 case $ac_top_builddir_sub in 24607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24609 esac ;; 24610esac 24611ac_abs_top_builddir=$ac_pwd 24612ac_abs_builddir=$ac_pwd$ac_dir_suffix 24613# for backward compatibility: 24614ac_top_builddir=$ac_top_build_prefix 24615 24616case $srcdir in 24617 .) # We are building in place. 24618 ac_srcdir=. 24619 ac_top_srcdir=$ac_top_builddir_sub 24620 ac_abs_top_srcdir=$ac_pwd ;; 24621 [\\/]* | ?:[\\/]* ) # Absolute name. 24622 ac_srcdir=$srcdir$ac_dir_suffix; 24623 ac_top_srcdir=$srcdir 24624 ac_abs_top_srcdir=$srcdir ;; 24625 *) # Relative name. 24626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24627 ac_top_srcdir=$ac_top_build_prefix$srcdir 24628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24629esac 24630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24631 24632 24633 case $ac_mode in 24634 :F) 24635 # 24636 # CONFIG_FILE 24637 # 24638 24639 case $INSTALL in 24640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24642 esac 24643 ac_MKDIR_P=$MKDIR_P 24644 case $MKDIR_P in 24645 [\\/$]* | ?:[\\/]* ) ;; 24646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24647 esac 24648_ACEOF 24649 24650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24651# If the template does not know about datarootdir, expand it. 24652# FIXME: This hack should be removed a few years after 2.60. 24653ac_datarootdir_hack=; ac_datarootdir_seen= 24654ac_sed_dataroot=' 24655/datarootdir/ { 24656 p 24657 q 24658} 24659/@datadir@/p 24660/@docdir@/p 24661/@infodir@/p 24662/@localedir@/p 24663/@mandir@/p' 24664case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24665*datarootdir*) ac_datarootdir_seen=yes;; 24666*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24668printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24669_ACEOF 24670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24671 ac_datarootdir_hack=' 24672 s&@datadir@&$datadir&g 24673 s&@docdir@&$docdir&g 24674 s&@infodir@&$infodir&g 24675 s&@localedir@&$localedir&g 24676 s&@mandir@&$mandir&g 24677 s&\\\${datarootdir}&$datarootdir&g' ;; 24678esac 24679_ACEOF 24680 24681# Neutralize VPATH when `$srcdir' = `.'. 24682# Shell code in configure.ac might set extrasub. 24683# FIXME: do we really want to maintain this feature? 24684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24685ac_sed_extra="$ac_vpsub 24686$extrasub 24687_ACEOF 24688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24689:t 24690/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24691s|@configure_input@|$ac_sed_conf_input|;t t 24692s&@top_builddir@&$ac_top_builddir_sub&;t t 24693s&@top_build_prefix@&$ac_top_build_prefix&;t t 24694s&@srcdir@&$ac_srcdir&;t t 24695s&@abs_srcdir@&$ac_abs_srcdir&;t t 24696s&@top_srcdir@&$ac_top_srcdir&;t t 24697s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24698s&@builddir@&$ac_builddir&;t t 24699s&@abs_builddir@&$ac_abs_builddir&;t t 24700s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24701s&@INSTALL@&$ac_INSTALL&;t t 24702s&@MKDIR_P@&$ac_MKDIR_P&;t t 24703$ac_datarootdir_hack 24704" 24705eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24707 24708test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24711 "$ac_tmp/out"`; test -z "$ac_out"; } && 24712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24713which seems to be undefined. Please make sure it is defined" >&5 24714printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24715which seems to be undefined. Please make sure it is defined" >&2;} 24716 24717 rm -f "$ac_tmp/stdin" 24718 case $ac_file in 24719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24721 esac \ 24722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24723 ;; 24724 :H) 24725 # 24726 # CONFIG_HEADER 24727 # 24728 if test x"$ac_file" != x-; then 24729 { 24730 printf "%s\n" "/* $configure_input */" >&1 \ 24731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24732 } >"$ac_tmp/config.h" \ 24733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24734 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24736printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 24737 else 24738 rm -f "$ac_file" 24739 mv "$ac_tmp/config.h" "$ac_file" \ 24740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24741 fi 24742 else 24743 printf "%s\n" "/* $configure_input */" >&1 \ 24744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24745 || as_fn_error $? "could not create -" "$LINENO" 5 24746 fi 24747# Compute "$ac_file"'s index in $config_headers. 24748_am_arg="$ac_file" 24749_am_stamp_count=1 24750for _am_header in $config_headers :; do 24751 case $_am_header in 24752 $_am_arg | $_am_arg:* ) 24753 break ;; 24754 * ) 24755 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24756 esac 24757done 24758echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24759$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24760 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24761 X"$_am_arg" : 'X\(//\)$' \| \ 24762 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24763printf "%s\n" X"$_am_arg" | 24764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24765 s//\1/ 24766 q 24767 } 24768 /^X\(\/\/\)[^/].*/{ 24769 s//\1/ 24770 q 24771 } 24772 /^X\(\/\/\)$/{ 24773 s//\1/ 24774 q 24775 } 24776 /^X\(\/\).*/{ 24777 s//\1/ 24778 q 24779 } 24780 s/.*/./; q'`/stamp-h$_am_stamp_count 24781 ;; 24782 24783 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24784printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 24785 ;; 24786 esac 24787 24788 24789 case $ac_file$ac_mode in 24790 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24791 # Older Autoconf quotes --file arguments for eval, but not when files 24792 # are listed without --file. Let's play safe and only enable the eval 24793 # if we detect the quoting. 24794 # TODO: see whether this extra hack can be removed once we start 24795 # requiring Autoconf 2.70 or later. 24796 case $CONFIG_FILES in #( 24797 *\'*) : 24798 eval set x "$CONFIG_FILES" ;; #( 24799 *) : 24800 set x $CONFIG_FILES ;; #( 24801 *) : 24802 ;; 24803esac 24804 shift 24805 # Used to flag and report bootstrapping failures. 24806 am_rc=0 24807 for am_mf 24808 do 24809 # Strip MF so we end up with the name of the file. 24810 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 24811 # Check whether this is an Automake generated Makefile which includes 24812 # dependency-tracking related rules and includes. 24813 # Grep'ing the whole file directly is not great: AIX grep has a line 24814 # limit of 2048, but all sed's we know have understand at least 4000. 24815 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24816 || continue 24817 am_dirpart=`$as_dirname -- "$am_mf" || 24818$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24819 X"$am_mf" : 'X\(//\)[^/]' \| \ 24820 X"$am_mf" : 'X\(//\)$' \| \ 24821 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24822printf "%s\n" X"$am_mf" | 24823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24824 s//\1/ 24825 q 24826 } 24827 /^X\(\/\/\)[^/].*/{ 24828 s//\1/ 24829 q 24830 } 24831 /^X\(\/\/\)$/{ 24832 s//\1/ 24833 q 24834 } 24835 /^X\(\/\).*/{ 24836 s//\1/ 24837 q 24838 } 24839 s/.*/./; q'` 24840 am_filepart=`$as_basename -- "$am_mf" || 24841$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24842 X"$am_mf" : 'X\(//\)$' \| \ 24843 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24844printf "%s\n" X/"$am_mf" | 24845 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24846 s//\1/ 24847 q 24848 } 24849 /^X\/\(\/\/\)$/{ 24850 s//\1/ 24851 q 24852 } 24853 /^X\/\(\/\).*/{ 24854 s//\1/ 24855 q 24856 } 24857 s/.*/./; q'` 24858 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24859 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24860 | $MAKE -f - am--depfiles" >&5 24861 (cd "$am_dirpart" \ 24862 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24863 | $MAKE -f - am--depfiles) >&5 2>&5 24864 ac_status=$? 24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24866 (exit $ac_status); } || am_rc=$? 24867 done 24868 if test $am_rc -ne 0; then 24869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24870printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24871as_fn_error $? "Something went wrong bootstrapping makefile fragments 24872 for automatic dependency tracking. If GNU make was not used, consider 24873 re-running the configure script with MAKE=\"gmake\" (or whatever is 24874 necessary). You can also try re-running configure with the 24875 '--disable-dependency-tracking' option to at least be able to build 24876 the package (albeit without support for automatic dependency tracking). 24877See \`config.log' for more details" "$LINENO" 5; } 24878 fi 24879 { am_dirpart=; unset am_dirpart;} 24880 { am_filepart=; unset am_filepart;} 24881 { am_mf=; unset am_mf;} 24882 { am_rc=; unset am_rc;} 24883 rm -f conftest-deps.mk 24884} 24885 ;; 24886 "libtool":C) 24887 24888 # See if we are running on zsh, and set the options that allow our 24889 # commands through without removal of \ escapes. 24890 if test -n "${ZSH_VERSION+set}"; then 24891 setopt NO_GLOB_SUBST 24892 fi 24893 24894 cfgfile=${ofile}T 24895 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24896 $RM "$cfgfile" 24897 24898 cat <<_LT_EOF >> "$cfgfile" 24899#! $SHELL 24900# Generated automatically by $as_me ($PACKAGE) $VERSION 24901# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24902# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24903 24904# Provide generalized library-building support services. 24905# Written by Gordon Matzigkeit, 1996 24906 24907# Copyright (C) 2014 Free Software Foundation, Inc. 24908# This is free software; see the source for copying conditions. There is NO 24909# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24910 24911# GNU Libtool is free software; you can redistribute it and/or modify 24912# it under the terms of the GNU General Public License as published by 24913# the Free Software Foundation; either version 2 of of the License, or 24914# (at your option) any later version. 24915# 24916# As a special exception to the GNU General Public License, if you 24917# distribute this file as part of a program or library that is built 24918# using GNU Libtool, you may include this file under the same 24919# distribution terms that you use for the rest of that program. 24920# 24921# GNU Libtool is distributed in the hope that it will be useful, but 24922# WITHOUT ANY WARRANTY; without even the implied warranty of 24923# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24924# GNU General Public License for more details. 24925# 24926# You should have received a copy of the GNU General Public License 24927# along with this program. If not, see <http://www.gnu.org/licenses/>. 24928 24929 24930# The names of the tagged configurations supported by this script. 24931available_tags='' 24932 24933# Configured defaults for sys_lib_dlsearch_path munging. 24934: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24935 24936# ### BEGIN LIBTOOL CONFIG 24937 24938# Which release of libtool.m4 was used? 24939macro_version=$macro_version 24940macro_revision=$macro_revision 24941 24942# Whether or not to build shared libraries. 24943build_libtool_libs=$enable_shared 24944 24945# Whether or not to build static libraries. 24946build_old_libs=$enable_static 24947 24948# What type of objects to build. 24949pic_mode=$pic_mode 24950 24951# Whether or not to optimize for fast installation. 24952fast_install=$enable_fast_install 24953 24954# Shared archive member basename,for filename based shared library versioning on AIX. 24955shared_archive_member_spec=$shared_archive_member_spec 24956 24957# Shell to use when invoking shell scripts. 24958SHELL=$lt_SHELL 24959 24960# An echo program that protects backslashes. 24961ECHO=$lt_ECHO 24962 24963# The PATH separator for the build system. 24964PATH_SEPARATOR=$lt_PATH_SEPARATOR 24965 24966# The host system. 24967host_alias=$host_alias 24968host=$host 24969host_os=$host_os 24970 24971# The build system. 24972build_alias=$build_alias 24973build=$build 24974build_os=$build_os 24975 24976# A sed program that does not truncate output. 24977SED=$lt_SED 24978 24979# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24980Xsed="\$SED -e 1s/^X//" 24981 24982# A grep program that handles long lines. 24983GREP=$lt_GREP 24984 24985# An ERE matcher. 24986EGREP=$lt_EGREP 24987 24988# A literal string matcher. 24989FGREP=$lt_FGREP 24990 24991# A BSD- or MS-compatible name lister. 24992NM=$lt_NM 24993 24994# Whether we need soft or hard links. 24995LN_S=$lt_LN_S 24996 24997# What is the maximum length of a command? 24998max_cmd_len=$max_cmd_len 24999 25000# Object file suffix (normally "o"). 25001objext=$ac_objext 25002 25003# Executable file suffix (normally ""). 25004exeext=$exeext 25005 25006# whether the shell understands "unset". 25007lt_unset=$lt_unset 25008 25009# turn spaces into newlines. 25010SP2NL=$lt_lt_SP2NL 25011 25012# turn newlines into spaces. 25013NL2SP=$lt_lt_NL2SP 25014 25015# convert \$build file names to \$host format. 25016to_host_file_cmd=$lt_cv_to_host_file_cmd 25017 25018# convert \$build files to toolchain format. 25019to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25020 25021# A file(cmd) program that detects file types. 25022FILECMD=$lt_FILECMD 25023 25024# An object symbol dumper. 25025OBJDUMP=$lt_OBJDUMP 25026 25027# Method to check whether dependent libraries are shared objects. 25028deplibs_check_method=$lt_deplibs_check_method 25029 25030# Command to use when deplibs_check_method = "file_magic". 25031file_magic_cmd=$lt_file_magic_cmd 25032 25033# How to find potential files when deplibs_check_method = "file_magic". 25034file_magic_glob=$lt_file_magic_glob 25035 25036# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25037want_nocaseglob=$lt_want_nocaseglob 25038 25039# DLL creation program. 25040DLLTOOL=$lt_DLLTOOL 25041 25042# Command to associate shared and link libraries. 25043sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25044 25045# The archiver. 25046AR=$lt_AR 25047 25048# Flags to create an archive (by configure). 25049lt_ar_flags=$lt_ar_flags 25050 25051# Flags to create an archive. 25052AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 25053 25054# How to feed a file listing to the archiver. 25055archiver_list_spec=$lt_archiver_list_spec 25056 25057# A symbol stripping program. 25058STRIP=$lt_STRIP 25059 25060# Commands used to install an old-style archive. 25061RANLIB=$lt_RANLIB 25062old_postinstall_cmds=$lt_old_postinstall_cmds 25063old_postuninstall_cmds=$lt_old_postuninstall_cmds 25064 25065# Whether to use a lock for old archive extraction. 25066lock_old_archive_extraction=$lock_old_archive_extraction 25067 25068# A C compiler. 25069LTCC=$lt_CC 25070 25071# LTCC compiler flags. 25072LTCFLAGS=$lt_CFLAGS 25073 25074# Take the output of nm and produce a listing of raw symbols and C names. 25075global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25076 25077# Transform the output of nm in a proper C declaration. 25078global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25079 25080# Transform the output of nm into a list of symbols to manually relocate. 25081global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 25082 25083# Transform the output of nm in a C name address pair. 25084global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25085 25086# Transform the output of nm in a C name address pair when lib prefix is needed. 25087global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25088 25089# The name lister interface. 25090nm_interface=$lt_lt_cv_nm_interface 25091 25092# Specify filename containing input files for \$NM. 25093nm_file_list_spec=$lt_nm_file_list_spec 25094 25095# The root where to search for dependent libraries,and where our libraries should be installed. 25096lt_sysroot=$lt_sysroot 25097 25098# Command to truncate a binary pipe. 25099lt_truncate_bin=$lt_lt_cv_truncate_bin 25100 25101# The name of the directory that contains temporary libtool files. 25102objdir=$objdir 25103 25104# Used to examine libraries when file_magic_cmd begins with "file". 25105MAGIC_CMD=$MAGIC_CMD 25106 25107# Must we lock files when doing compilation? 25108need_locks=$lt_need_locks 25109 25110# Manifest tool. 25111MANIFEST_TOOL=$lt_MANIFEST_TOOL 25112 25113# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25114DSYMUTIL=$lt_DSYMUTIL 25115 25116# Tool to change global to local symbols on Mac OS X. 25117NMEDIT=$lt_NMEDIT 25118 25119# Tool to manipulate fat objects and archives on Mac OS X. 25120LIPO=$lt_LIPO 25121 25122# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25123OTOOL=$lt_OTOOL 25124 25125# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25126OTOOL64=$lt_OTOOL64 25127 25128# Old archive suffix (normally "a"). 25129libext=$libext 25130 25131# Shared library suffix (normally ".so"). 25132shrext_cmds=$lt_shrext_cmds 25133 25134# The commands to extract the exported symbol list from a shared archive. 25135extract_expsyms_cmds=$lt_extract_expsyms_cmds 25136 25137# Variables whose values should be saved in libtool wrapper scripts and 25138# restored at link time. 25139variables_saved_for_relink=$lt_variables_saved_for_relink 25140 25141# Do we need the "lib" prefix for modules? 25142need_lib_prefix=$need_lib_prefix 25143 25144# Do we need a version for libraries? 25145need_version=$need_version 25146 25147# Library versioning type. 25148version_type=$version_type 25149 25150# Shared library runtime path variable. 25151runpath_var=$runpath_var 25152 25153# Shared library path variable. 25154shlibpath_var=$shlibpath_var 25155 25156# Is shlibpath searched before the hard-coded library search path? 25157shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25158 25159# Format of library name prefix. 25160libname_spec=$lt_libname_spec 25161 25162# List of archive names. First name is the real one, the rest are links. 25163# The last name is the one that the linker finds with -lNAME 25164library_names_spec=$lt_library_names_spec 25165 25166# The coded name of the library, if different from the real name. 25167soname_spec=$lt_soname_spec 25168 25169# Permission mode override for installation of shared libraries. 25170install_override_mode=$lt_install_override_mode 25171 25172# Command to use after installation of a shared archive. 25173postinstall_cmds=$lt_postinstall_cmds 25174 25175# Command to use after uninstallation of a shared archive. 25176postuninstall_cmds=$lt_postuninstall_cmds 25177 25178# Commands used to finish a libtool library installation in a directory. 25179finish_cmds=$lt_finish_cmds 25180 25181# As "finish_cmds", except a single script fragment to be evaled but 25182# not shown. 25183finish_eval=$lt_finish_eval 25184 25185# Whether we should hardcode library paths into libraries. 25186hardcode_into_libs=$hardcode_into_libs 25187 25188# Compile-time system search path for libraries. 25189sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25190 25191# Detected run-time system search path for libraries. 25192sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 25193 25194# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 25195configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 25196 25197# Whether dlopen is supported. 25198dlopen_support=$enable_dlopen 25199 25200# Whether dlopen of programs is supported. 25201dlopen_self=$enable_dlopen_self 25202 25203# Whether dlopen of statically linked programs is supported. 25204dlopen_self_static=$enable_dlopen_self_static 25205 25206# Commands to strip libraries. 25207old_striplib=$lt_old_striplib 25208striplib=$lt_striplib 25209 25210 25211# The linker used to build libraries. 25212LD=$lt_LD 25213 25214# How to create reloadable object files. 25215reload_flag=$lt_reload_flag 25216reload_cmds=$lt_reload_cmds 25217 25218# Commands used to build an old-style archive. 25219old_archive_cmds=$lt_old_archive_cmds 25220 25221# A language specific compiler. 25222CC=$lt_compiler 25223 25224# Is the compiler the GNU compiler? 25225with_gcc=$GCC 25226 25227# Compiler flag to turn off builtin functions. 25228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25229 25230# Additional compiler flags for building library objects. 25231pic_flag=$lt_lt_prog_compiler_pic 25232 25233# How to pass a linker flag through the compiler. 25234wl=$lt_lt_prog_compiler_wl 25235 25236# Compiler flag to prevent dynamic linking. 25237link_static_flag=$lt_lt_prog_compiler_static 25238 25239# Does compiler simultaneously support -c and -o options? 25240compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25241 25242# Whether or not to add -lc for building shared libraries. 25243build_libtool_need_lc=$archive_cmds_need_lc 25244 25245# Whether or not to disallow shared libs when runtime libs are static. 25246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25247 25248# Compiler flag to allow reflexive dlopens. 25249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25250 25251# Compiler flag to generate shared objects directly from archives. 25252whole_archive_flag_spec=$lt_whole_archive_flag_spec 25253 25254# Whether the compiler copes with passing no objects directly. 25255compiler_needs_object=$lt_compiler_needs_object 25256 25257# Create an old-style archive from a shared archive. 25258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25259 25260# Create a temporary old-style archive to link instead of a shared archive. 25261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25262 25263# Commands used to build a shared archive. 25264archive_cmds=$lt_archive_cmds 25265archive_expsym_cmds=$lt_archive_expsym_cmds 25266 25267# Commands used to build a loadable module if different from building 25268# a shared archive. 25269module_cmds=$lt_module_cmds 25270module_expsym_cmds=$lt_module_expsym_cmds 25271 25272# Whether we are building with GNU ld or not. 25273with_gnu_ld=$lt_with_gnu_ld 25274 25275# Flag that allows shared libraries with undefined symbols to be built. 25276allow_undefined_flag=$lt_allow_undefined_flag 25277 25278# Flag that enforces no undefined symbols. 25279no_undefined_flag=$lt_no_undefined_flag 25280 25281# Flag to hardcode \$libdir into a binary during linking. 25282# This must work even if \$libdir does not exist 25283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25284 25285# Whether we need a single "-rpath" flag with a separated argument. 25286hardcode_libdir_separator=$lt_hardcode_libdir_separator 25287 25288# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25289# DIR into the resulting binary. 25290hardcode_direct=$hardcode_direct 25291 25292# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25293# DIR into the resulting binary and the resulting library dependency is 25294# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25295# library is relocated. 25296hardcode_direct_absolute=$hardcode_direct_absolute 25297 25298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25299# into the resulting binary. 25300hardcode_minus_L=$hardcode_minus_L 25301 25302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25303# into the resulting binary. 25304hardcode_shlibpath_var=$hardcode_shlibpath_var 25305 25306# Set to "yes" if building a shared library automatically hardcodes DIR 25307# into the library and all subsequent libraries and executables linked 25308# against it. 25309hardcode_automatic=$hardcode_automatic 25310 25311# Set to yes if linker adds runtime paths of dependent libraries 25312# to runtime path list. 25313inherit_rpath=$inherit_rpath 25314 25315# Whether libtool must link a program against all its dependency libraries. 25316link_all_deplibs=$link_all_deplibs 25317 25318# Set to "yes" if exported symbols are required. 25319always_export_symbols=$always_export_symbols 25320 25321# The commands to list exported symbols. 25322export_symbols_cmds=$lt_export_symbols_cmds 25323 25324# Symbols that should not be listed in the preloaded symbols. 25325exclude_expsyms=$lt_exclude_expsyms 25326 25327# Symbols that must always be exported. 25328include_expsyms=$lt_include_expsyms 25329 25330# Commands necessary for linking programs (against libraries) with templates. 25331prelink_cmds=$lt_prelink_cmds 25332 25333# Commands necessary for finishing linking programs. 25334postlink_cmds=$lt_postlink_cmds 25335 25336# Specify filename containing input files. 25337file_list_spec=$lt_file_list_spec 25338 25339# How to hardcode a shared library path into an executable. 25340hardcode_action=$hardcode_action 25341 25342# ### END LIBTOOL CONFIG 25343 25344_LT_EOF 25345 25346 cat <<'_LT_EOF' >> "$cfgfile" 25347 25348# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25349 25350# func_munge_path_list VARIABLE PATH 25351# ----------------------------------- 25352# VARIABLE is name of variable containing _space_ separated list of 25353# directories to be munged by the contents of PATH, which is string 25354# having a format: 25355# "DIR[:DIR]:" 25356# string "DIR[ DIR]" will be prepended to VARIABLE 25357# ":DIR[:DIR]" 25358# string "DIR[ DIR]" will be appended to VARIABLE 25359# "DIRP[:DIRP]::[DIRA:]DIRA" 25360# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25361# "DIRA[ DIRA]" will be appended to VARIABLE 25362# "DIR[:DIR]" 25363# VARIABLE will be replaced by "DIR[ DIR]" 25364func_munge_path_list () 25365{ 25366 case x$2 in 25367 x) 25368 ;; 25369 *:) 25370 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25371 ;; 25372 x:*) 25373 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25374 ;; 25375 *::*) 25376 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25377 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25378 ;; 25379 *) 25380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25381 ;; 25382 esac 25383} 25384 25385 25386# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25387func_cc_basename () 25388{ 25389 for cc_temp in $*""; do 25390 case $cc_temp in 25391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25393 \-*) ;; 25394 *) break;; 25395 esac 25396 done 25397 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25398} 25399 25400 25401# ### END FUNCTIONS SHARED WITH CONFIGURE 25402 25403_LT_EOF 25404 25405 case $host_os in 25406 aix3*) 25407 cat <<\_LT_EOF >> "$cfgfile" 25408# AIX sometimes has problems with the GCC collect2 program. For some 25409# reason, if we set the COLLECT_NAMES environment variable, the problems 25410# vanish in a puff of smoke. 25411if test set != "${COLLECT_NAMES+set}"; then 25412 COLLECT_NAMES= 25413 export COLLECT_NAMES 25414fi 25415_LT_EOF 25416 ;; 25417 esac 25418 25419 25420 25421ltmain=$ac_aux_dir/ltmain.sh 25422 25423 25424 # We use sed instead of cat because bash on DJGPP gets confused if 25425 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25426 # text mode, it properly converts lines to CR/LF. This bash problem 25427 # is reportedly fixed, but why not run on old versions too? 25428 $SED '$q' "$ltmain" >> "$cfgfile" \ 25429 || (rm -f "$cfgfile"; exit 1) 25430 25431 mv -f "$cfgfile" "$ofile" || 25432 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25433 chmod +x "$ofile" 25434 25435 ;; 25436 25437 esac 25438done # for ac_tag 25439 25440 25441as_fn_exit 0 25442_ACEOF 25443ac_clean_files=$ac_clean_files_save 25444 25445test $ac_write_fail = 0 || 25446 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25447 25448 25449# configure is writing to config.log, and then calls config.status. 25450# config.status does its own redirection, appending to config.log. 25451# Unfortunately, on DOS this fails, as config.log is still kept open 25452# by configure, so config.status won't be able to write to it; its 25453# output is simply discarded. So we exec the FD to /dev/null, 25454# effectively closing config.log, so it can be properly (re)opened and 25455# appended to by config.status. When coming back to configure, we 25456# need to make the FD available again. 25457if test "$no_create" != yes; then 25458 ac_cs_success=: 25459 ac_config_status_args= 25460 test "$silent" = yes && 25461 ac_config_status_args="$ac_config_status_args --quiet" 25462 exec 5>/dev/null 25463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25464 exec 5>>config.log 25465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25466 # would make configure fail if this is the last instruction. 25467 $ac_cs_success || as_fn_exit 1 25468fi 25469if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25471printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25472fi 25473 25474 25475echo "" 25476echo "$PACKAGE_STRING will be built with the following settings:" 25477echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 25478echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 25479echo " Threading support: "$xthreads 25480echo " Use Threads safe API: "$mtsafeapi 25481echo " Use thread safety constructor: "$USE_THREAD_SAFETY_CONSTRUCTOR 25482echo " XCMS: "$XCMS 25483echo " Internationalization support: "$XLOCALE 25484echo " XF86BigFont support: "$XF86BIGFONT 25485echo " XKB support: "$XKB 25486echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 25487echo " Compose table cache enabled: "$COMPOSECACHE 25488echo " Functional specs building enabled: "$build_specs 25489echo "" 25490 25491