configure revision 6e467124
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libX11 1.8.10. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594as_awk_strverscmp=' 595 # Use only awk features that work with 7th edition Unix awk (1978). 596 # My, what an old awk you have, Mr. Solaris! 597 END { 598 while (length(v1) && length(v2)) { 599 # Set d1 to be the next thing to compare from v1, and likewise for d2. 600 # Normally this is a single character, but if v1 and v2 contain digits, 601 # compare them as integers and fractions as strverscmp does. 602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 603 # Split v1 and v2 into their leading digit string components d1 and d2, 604 # and advance v1 and v2 past the leading digit strings. 605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 609 if (d1 ~ /^0/) { 610 if (d2 ~ /^0/) { 611 # Compare two fractions. 612 while (d1 ~ /^0/ && d2 ~ /^0/) { 613 d1 = substr(d1, 2); len1-- 614 d2 = substr(d2, 2); len2-- 615 } 616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 617 # The two components differ in length, and the common prefix 618 # contains only leading zeros. Consider the longer to be less. 619 d1 = -len1 620 d2 = -len2 621 } else { 622 # Otherwise, compare as strings. 623 d1 = "x" d1 624 d2 = "x" d2 625 } 626 } else { 627 # A fraction is less than an integer. 628 exit 1 629 } 630 } else { 631 if (d2 ~ /^0/) { 632 # An integer is greater than a fraction. 633 exit 2 634 } else { 635 # Compare two integers. 636 d1 += 0 637 d2 += 0 638 } 639 } 640 } else { 641 # The normal case, without worrying about digits. 642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 644 } 645 if (d1 < d2) exit 1 646 if (d1 > d2) exit 2 647 } 648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 649 # which mishandles some comparisons of empty strings to integers. 650 if (length(v2)) exit 1 651 if (length(v1)) exit 2 652 } 653' 654 655test -n "$DJDIR" || exec 7<&0 </dev/null 656exec 6>&1 657 658# Name of the host. 659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660# so uname gets run too. 661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663# 664# Initializations. 665# 666ac_default_prefix=/usr/local 667ac_clean_files= 668ac_config_libobj_dir=. 669LIBOBJS= 670cross_compiling=no 671subdirs= 672MFLAGS= 673MAKEFLAGS= 674 675# Identity of this package. 676PACKAGE_NAME='libX11' 677PACKAGE_TARNAME='libX11' 678PACKAGE_VERSION='1.8.10' 679PACKAGE_STRING='libX11 1.8.10' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716ac_func_c_list= 717enable_year2038=no 718ac_subst_vars='am__EXEEXT_FALSE 719am__EXEEXT_TRUE 720LTLIBOBJS 721XTMALLOC_ZERO_CFLAGS 722XMALLOC_ZERO_CFLAGS 723MALLOC_ZERO_CFLAGS 724XERRORDB 725XKEYSYMDB 726locales 727X11_LOCALEDIR 728XLOCALEDIR 729X11_LOCALELIBDIR 730XLOCALELIBDIR 731X11_LOCALEDATADIR 732XLOCALEDATADIR 733X11_LIBS 734X11_CFLAGS 735X11_LIBDIR 736X11_DATADIR 737MAKE_LINT_LIB_FALSE 738MAKE_LINT_LIB_TRUE 739LINTLIB 740LINT_FALSE 741LINT_TRUE 742LINT_FLAGS 743LINT 744XKBPROTO_REQUIRES 745XKB_FALSE 746XKB_TRUE 747BIGFONT_LIBS 748BIGFONT_CFLAGS 749XLOCALE_FALSE 750XLOCALE_TRUE 751XCMS_FALSE 752XCMS_TRUE 753KEYSYMDEFS 754USE_THREAD_LIBS 755XTHREAD_CFLAGS 756XTHREADLIB 757LAUNCHD 758OS2_FALSE 759OS2_TRUE 760WCHAR32 761LIBOBJS 762XLIB_LOADABLE_I18N_FALSE 763XLIB_LOADABLE_I18N_TRUE 764I18N_MODULE_LIBS 765X11_EXTRA_DEPS 766EXEEXT_FOR_BUILD 767LDFLAGS_FOR_BUILD 768CFLAGS_FOR_BUILD 769CPPFLAGS_FOR_BUILD 770CC_FOR_BUILD 771HAVE_PERL_FALSE 772HAVE_PERL_TRUE 773PERL 774TRADITIONALCPPFLAGS 775RAWCPPFLAGS 776RAWCPP 777CPP 778HAVE_STYLESHEETS_FALSE 779HAVE_STYLESHEETS_TRUE 780XSL_STYLESHEET 781STYLESHEET_SRCDIR 782XORG_SGML_PATH 783HAVE_XSLTPROC_FALSE 784HAVE_XSLTPROC_TRUE 785XSLTPROC 786HAVE_FOP_FALSE 787HAVE_FOP_TRUE 788FOP 789HAVE_XMLTO_FALSE 790HAVE_XMLTO_TRUE 791HAVE_XMLTO_TEXT_FALSE 792HAVE_XMLTO_TEXT_TRUE 793XMLTO 794ENABLE_SPECS_FALSE 795ENABLE_SPECS_TRUE 796MAN_SUBSTS 797XORG_MAN_PAGE 798ADMIN_MAN_DIR 799DRIVER_MAN_DIR 800MISC_MAN_DIR 801FILE_MAN_DIR 802LIB_MAN_DIR 803APP_MAN_DIR 804ADMIN_MAN_SUFFIX 805DRIVER_MAN_SUFFIX 806MISC_MAN_SUFFIX 807FILE_MAN_SUFFIX 808LIB_MAN_SUFFIX 809APP_MAN_SUFFIX 810INSTALL_CMD 811PKG_CONFIG_LIBDIR 812PKG_CONFIG_PATH 813PKG_CONFIG 814CHANGELOG_CMD 815STRICT_CFLAGS 816CWARNFLAGS 817BASE_CFLAGS 818LT_SYS_LIBRARY_PATH 819OTOOL64 820OTOOL 821LIPO 822NMEDIT 823DSYMUTIL 824MANIFEST_TOOL 825RANLIB 826ac_ct_AR 827AR 828DLLTOOL 829OBJDUMP 830FILECMD 831LN_S 832NM 833ac_ct_DUMPBIN 834DUMPBIN 835LD 836FGREP 837EGREP 838GREP 839SED 840LIBTOOL 841am__xargs_n 842am__rm_f_notfound 843AM_BACKSLASH 844AM_DEFAULT_VERBOSITY 845AM_DEFAULT_V 846AM_V 847CSCOPE 848ETAGS 849CTAGS 850am__fastdepCC_FALSE 851am__fastdepCC_TRUE 852CCDEPMODE 853am__nodep 854AMDEPBACKSLASH 855AMDEP_FALSE 856AMDEP_TRUE 857am__include 858DEPDIR 859am__untar 860am__tar 861AMTAR 862am__leading_dot 863SET_MAKE 864AWK 865mkdir_p 866MKDIR_P 867INSTALL_STRIP_PROGRAM 868STRIP 869install_sh 870MAKEINFO 871AUTOHEADER 872AUTOMAKE 873AUTOCONF 874ACLOCAL 875VERSION 876PACKAGE 877CYGPATH_W 878am__isrc 879INSTALL_DATA 880INSTALL_SCRIPT 881INSTALL_PROGRAM 882OBJEXT 883EXEEXT 884ac_ct_CC 885CPPFLAGS 886LDFLAGS 887CFLAGS 888CC 889host_os 890host_vendor 891host_cpu 892host 893build_os 894build_vendor 895build_cpu 896build 897target_alias 898host_alias 899build_alias 900LIBS 901ECHO_T 902ECHO_N 903ECHO_C 904DEFS 905mandir 906localedir 907libdir 908psdir 909pdfdir 910dvidir 911htmldir 912infodir 913docdir 914oldincludedir 915includedir 916runstatedir 917localstatedir 918sharedstatedir 919sysconfdir 920datadir 921datarootdir 922libexecdir 923sbindir 924bindir 925program_transform_name 926prefix 927exec_prefix 928PACKAGE_URL 929PACKAGE_BUGREPORT 930PACKAGE_STRING 931PACKAGE_VERSION 932PACKAGE_TARNAME 933PACKAGE_NAME 934PATH_SEPARATOR 935SHELL 936am__quote' 937ac_subst_files='' 938ac_user_opts=' 939enable_option_checking 940enable_dependency_tracking 941enable_silent_rules 942enable_shared 943enable_static 944with_pic 945enable_fast_install 946with_aix_soname 947with_gnu_ld 948with_sysroot 949enable_libtool_lock 950enable_largefile 951enable_selective_werror 952enable_strict_compilation 953enable_specs 954with_xmlto 955with_fop 956with_xsltproc 957with_perl 958enable_unix_transport 959enable_tcp_transport 960enable_ipv6 961enable_local_transport 962enable_loadable_i18n 963enable_loadable_xcursor 964enable_thread_safety_constructor 965with_launchd 966enable_xthreads 967with_keysymdefdir 968enable_xcms 969enable_xlocale 970enable_xlocaledir 971enable_xf86bigfont 972enable_xkb 973enable_composecache 974with_lint 975enable_lint_library 976with_locale_lib_dir 977enable_malloc0returnsnull 978enable_year2038 979' 980 ac_precious_vars='build_alias 981host_alias 982target_alias 983CC 984CFLAGS 985LDFLAGS 986LIBS 987CPPFLAGS 988LT_SYS_LIBRARY_PATH 989PKG_CONFIG 990PKG_CONFIG_PATH 991PKG_CONFIG_LIBDIR 992XMLTO 993FOP 994XSLTPROC 995CPP 996PERL 997BIGFONT_CFLAGS 998BIGFONT_LIBS 999LINT 1000LINT_FLAGS 1001X11_CFLAGS 1002X11_LIBS' 1003 1004 1005# Initialize some variables set by options. 1006ac_init_help= 1007ac_init_version=false 1008ac_unrecognized_opts= 1009ac_unrecognized_sep= 1010# The variables have the same names as the options, with 1011# dashes changed to underlines. 1012cache_file=/dev/null 1013exec_prefix=NONE 1014no_create= 1015no_recursion= 1016prefix=NONE 1017program_prefix=NONE 1018program_suffix=NONE 1019program_transform_name=s,x,x, 1020silent= 1021site= 1022srcdir= 1023verbose= 1024x_includes=NONE 1025x_libraries=NONE 1026 1027# Installation directory options. 1028# These are left unexpanded so users can "make install exec_prefix=/foo" 1029# and all the variables that are supposed to be based on exec_prefix 1030# by default will actually change. 1031# Use braces instead of parens because sh, perl, etc. also accept them. 1032# (The list follows the same order as the GNU Coding Standards.) 1033bindir='${exec_prefix}/bin' 1034sbindir='${exec_prefix}/sbin' 1035libexecdir='${exec_prefix}/libexec' 1036datarootdir='${prefix}/share' 1037datadir='${datarootdir}' 1038sysconfdir='${prefix}/etc' 1039sharedstatedir='${prefix}/com' 1040localstatedir='${prefix}/var' 1041runstatedir='${localstatedir}/run' 1042includedir='${prefix}/include' 1043oldincludedir='/usr/include' 1044docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1045infodir='${datarootdir}/info' 1046htmldir='${docdir}' 1047dvidir='${docdir}' 1048pdfdir='${docdir}' 1049psdir='${docdir}' 1050libdir='${exec_prefix}/lib' 1051localedir='${datarootdir}/locale' 1052mandir='${datarootdir}/man' 1053 1054ac_prev= 1055ac_dashdash= 1056for ac_option 1057do 1058 # If the previous option needs an argument, assign it. 1059 if test -n "$ac_prev"; then 1060 eval $ac_prev=\$ac_option 1061 ac_prev= 1062 continue 1063 fi 1064 1065 case $ac_option in 1066 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1067 *=) ac_optarg= ;; 1068 *) ac_optarg=yes ;; 1069 esac 1070 1071 case $ac_dashdash$ac_option in 1072 --) 1073 ac_dashdash=yes ;; 1074 1075 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1076 ac_prev=bindir ;; 1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1078 bindir=$ac_optarg ;; 1079 1080 -build | --build | --buil | --bui | --bu) 1081 ac_prev=build_alias ;; 1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1083 build_alias=$ac_optarg ;; 1084 1085 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1087 ac_prev=cache_file ;; 1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1090 cache_file=$ac_optarg ;; 1091 1092 --config-cache | -C) 1093 cache_file=config.cache ;; 1094 1095 -datadir | --datadir | --datadi | --datad) 1096 ac_prev=datadir ;; 1097 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1098 datadir=$ac_optarg ;; 1099 1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1101 | --dataroo | --dataro | --datar) 1102 ac_prev=datarootdir ;; 1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1105 datarootdir=$ac_optarg ;; 1106 1107 -disable-* | --disable-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid feature name: '$ac_useropt'" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"enable_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval enable_$ac_useropt=no ;; 1122 1123 -docdir | --docdir | --docdi | --doc | --do) 1124 ac_prev=docdir ;; 1125 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1126 docdir=$ac_optarg ;; 1127 1128 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1129 ac_prev=dvidir ;; 1130 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1131 dvidir=$ac_optarg ;; 1132 1133 -enable-* | --enable-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid feature name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"enable_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval enable_$ac_useropt=\$ac_optarg ;; 1148 1149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1151 | --exec | --exe | --ex) 1152 ac_prev=exec_prefix ;; 1153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1155 | --exec=* | --exe=* | --ex=*) 1156 exec_prefix=$ac_optarg ;; 1157 1158 -gas | --gas | --ga | --g) 1159 # Obsolete; use --with-gas. 1160 with_gas=yes ;; 1161 1162 -help | --help | --hel | --he | -h) 1163 ac_init_help=long ;; 1164 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1165 ac_init_help=recursive ;; 1166 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1167 ac_init_help=short ;; 1168 1169 -host | --host | --hos | --ho) 1170 ac_prev=host_alias ;; 1171 -host=* | --host=* | --hos=* | --ho=*) 1172 host_alias=$ac_optarg ;; 1173 1174 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1175 ac_prev=htmldir ;; 1176 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1177 | --ht=*) 1178 htmldir=$ac_optarg ;; 1179 1180 -includedir | --includedir | --includedi | --included | --include \ 1181 | --includ | --inclu | --incl | --inc) 1182 ac_prev=includedir ;; 1183 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1184 | --includ=* | --inclu=* | --incl=* | --inc=*) 1185 includedir=$ac_optarg ;; 1186 1187 -infodir | --infodir | --infodi | --infod | --info | --inf) 1188 ac_prev=infodir ;; 1189 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1190 infodir=$ac_optarg ;; 1191 1192 -libdir | --libdir | --libdi | --libd) 1193 ac_prev=libdir ;; 1194 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1195 libdir=$ac_optarg ;; 1196 1197 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1198 | --libexe | --libex | --libe) 1199 ac_prev=libexecdir ;; 1200 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1201 | --libexe=* | --libex=* | --libe=*) 1202 libexecdir=$ac_optarg ;; 1203 1204 -localedir | --localedir | --localedi | --localed | --locale) 1205 ac_prev=localedir ;; 1206 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1207 localedir=$ac_optarg ;; 1208 1209 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1210 | --localstate | --localstat | --localsta | --localst | --locals) 1211 ac_prev=localstatedir ;; 1212 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1213 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1214 localstatedir=$ac_optarg ;; 1215 1216 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1217 ac_prev=mandir ;; 1218 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1219 mandir=$ac_optarg ;; 1220 1221 -nfp | --nfp | --nf) 1222 # Obsolete; use --without-fp. 1223 with_fp=no ;; 1224 1225 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1226 | --no-cr | --no-c | -n) 1227 no_create=yes ;; 1228 1229 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1230 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1231 no_recursion=yes ;; 1232 1233 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1234 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1235 | --oldin | --oldi | --old | --ol | --o) 1236 ac_prev=oldincludedir ;; 1237 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1238 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1239 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1240 oldincludedir=$ac_optarg ;; 1241 1242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1243 ac_prev=prefix ;; 1244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1245 prefix=$ac_optarg ;; 1246 1247 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1248 | --program-pre | --program-pr | --program-p) 1249 ac_prev=program_prefix ;; 1250 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1251 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1252 program_prefix=$ac_optarg ;; 1253 1254 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1255 | --program-suf | --program-su | --program-s) 1256 ac_prev=program_suffix ;; 1257 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1258 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1259 program_suffix=$ac_optarg ;; 1260 1261 -program-transform-name | --program-transform-name \ 1262 | --program-transform-nam | --program-transform-na \ 1263 | --program-transform-n | --program-transform- \ 1264 | --program-transform | --program-transfor \ 1265 | --program-transfo | --program-transf \ 1266 | --program-trans | --program-tran \ 1267 | --progr-tra | --program-tr | --program-t) 1268 ac_prev=program_transform_name ;; 1269 -program-transform-name=* | --program-transform-name=* \ 1270 | --program-transform-nam=* | --program-transform-na=* \ 1271 | --program-transform-n=* | --program-transform-=* \ 1272 | --program-transform=* | --program-transfor=* \ 1273 | --program-transfo=* | --program-transf=* \ 1274 | --program-trans=* | --program-tran=* \ 1275 | --progr-tra=* | --program-tr=* | --program-t=*) 1276 program_transform_name=$ac_optarg ;; 1277 1278 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1279 ac_prev=pdfdir ;; 1280 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1281 pdfdir=$ac_optarg ;; 1282 1283 -psdir | --psdir | --psdi | --psd | --ps) 1284 ac_prev=psdir ;; 1285 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1286 psdir=$ac_optarg ;; 1287 1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1289 | -silent | --silent | --silen | --sile | --sil) 1290 silent=yes ;; 1291 1292 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1293 | --runstate | --runstat | --runsta | --runst | --runs \ 1294 | --run | --ru | --r) 1295 ac_prev=runstatedir ;; 1296 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1297 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1298 | --run=* | --ru=* | --r=*) 1299 runstatedir=$ac_optarg ;; 1300 1301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1302 ac_prev=sbindir ;; 1303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1304 | --sbi=* | --sb=*) 1305 sbindir=$ac_optarg ;; 1306 1307 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1309 | --sharedst | --shareds | --shared | --share | --shar \ 1310 | --sha | --sh) 1311 ac_prev=sharedstatedir ;; 1312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1315 | --sha=* | --sh=*) 1316 sharedstatedir=$ac_optarg ;; 1317 1318 -site | --site | --sit) 1319 ac_prev=site ;; 1320 -site=* | --site=* | --sit=*) 1321 site=$ac_optarg ;; 1322 1323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1324 ac_prev=srcdir ;; 1325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1326 srcdir=$ac_optarg ;; 1327 1328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1329 | --syscon | --sysco | --sysc | --sys | --sy) 1330 ac_prev=sysconfdir ;; 1331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1333 sysconfdir=$ac_optarg ;; 1334 1335 -target | --target | --targe | --targ | --tar | --ta | --t) 1336 ac_prev=target_alias ;; 1337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1338 target_alias=$ac_optarg ;; 1339 1340 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1341 verbose=yes ;; 1342 1343 -version | --version | --versio | --versi | --vers | -V) 1344 ac_init_version=: ;; 1345 1346 -with-* | --with-*) 1347 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1348 # Reject names that are not valid shell variable names. 1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1350 as_fn_error $? "invalid package name: '$ac_useropt'" 1351 ac_useropt_orig=$ac_useropt 1352 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1353 case $ac_user_opts in 1354 *" 1355"with_$ac_useropt" 1356"*) ;; 1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1358 ac_unrecognized_sep=', ';; 1359 esac 1360 eval with_$ac_useropt=\$ac_optarg ;; 1361 1362 -without-* | --without-*) 1363 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1364 # Reject names that are not valid shell variable names. 1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1366 as_fn_error $? "invalid package name: '$ac_useropt'" 1367 ac_useropt_orig=$ac_useropt 1368 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1369 case $ac_user_opts in 1370 *" 1371"with_$ac_useropt" 1372"*) ;; 1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1374 ac_unrecognized_sep=', ';; 1375 esac 1376 eval with_$ac_useropt=no ;; 1377 1378 --x) 1379 # Obsolete; use --with-x. 1380 with_x=yes ;; 1381 1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1383 | --x-incl | --x-inc | --x-in | --x-i) 1384 ac_prev=x_includes ;; 1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1387 x_includes=$ac_optarg ;; 1388 1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1391 ac_prev=x_libraries ;; 1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1394 x_libraries=$ac_optarg ;; 1395 1396 -*) as_fn_error $? "unrecognized option: '$ac_option' 1397Try '$0 --help' for more information" 1398 ;; 1399 1400 *=*) 1401 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1402 # Reject names that are not valid shell variable names. 1403 case $ac_envvar in #( 1404 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1405 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1406 esac 1407 eval $ac_envvar=\$ac_optarg 1408 export $ac_envvar ;; 1409 1410 *) 1411 # FIXME: should be removed in autoconf 3.0. 1412 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1414 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1415 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1416 ;; 1417 1418 esac 1419done 1420 1421if test -n "$ac_prev"; then 1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1423 as_fn_error $? "missing argument to $ac_option" 1424fi 1425 1426if test -n "$ac_unrecognized_opts"; then 1427 case $enable_option_checking in 1428 no) ;; 1429 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1430 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1431 esac 1432fi 1433 1434# Check all directory arguments for consistency. 1435for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1436 datadir sysconfdir sharedstatedir localstatedir includedir \ 1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1438 libdir localedir mandir runstatedir 1439do 1440 eval ac_val=\$$ac_var 1441 # Remove trailing slashes. 1442 case $ac_val in 1443 */ ) 1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1445 eval $ac_var=\$ac_val;; 1446 esac 1447 # Be sure to have absolute directory names. 1448 case $ac_val in 1449 [\\/$]* | ?:[\\/]* ) continue;; 1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1451 esac 1452 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1453done 1454 1455# There might be people who depend on the old broken behavior: '$host' 1456# used to hold the argument of --host etc. 1457# FIXME: To remove some day. 1458build=$build_alias 1459host=$host_alias 1460target=$target_alias 1461 1462# FIXME: To remove some day. 1463if test "x$host_alias" != x; then 1464 if test "x$build_alias" = x; then 1465 cross_compiling=maybe 1466 elif test "x$build_alias" != "x$host_alias"; then 1467 cross_compiling=yes 1468 fi 1469fi 1470 1471ac_tool_prefix= 1472test -n "$host_alias" && ac_tool_prefix=$host_alias- 1473 1474test "$silent" = yes && exec 6>/dev/null 1475 1476 1477ac_pwd=`pwd` && test -n "$ac_pwd" && 1478ac_ls_di=`ls -di .` && 1479ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1480 as_fn_error $? "working directory cannot be determined" 1481test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1482 as_fn_error $? "pwd does not report name of working directory" 1483 1484 1485# Find the source files, if location was not specified. 1486if test -z "$srcdir"; then 1487 ac_srcdir_defaulted=yes 1488 # Try the directory containing this script, then the parent directory. 1489 ac_confdir=`$as_dirname -- "$as_myself" || 1490$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1491 X"$as_myself" : 'X\(//\)[^/]' \| \ 1492 X"$as_myself" : 'X\(//\)$' \| \ 1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1494printf "%s\n" X"$as_myself" | 1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1496 s//\1/ 1497 q 1498 } 1499 /^X\(\/\/\)[^/].*/{ 1500 s//\1/ 1501 q 1502 } 1503 /^X\(\/\/\)$/{ 1504 s//\1/ 1505 q 1506 } 1507 /^X\(\/\).*/{ 1508 s//\1/ 1509 q 1510 } 1511 s/.*/./; q'` 1512 srcdir=$ac_confdir 1513 if test ! -r "$srcdir/$ac_unique_file"; then 1514 srcdir=.. 1515 fi 1516else 1517 ac_srcdir_defaulted=no 1518fi 1519if test ! -r "$srcdir/$ac_unique_file"; then 1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1521 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1522fi 1523ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1524ac_abs_confdir=`( 1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1526 pwd)` 1527# When building in place, set srcdir=. 1528if test "$ac_abs_confdir" = "$ac_pwd"; then 1529 srcdir=. 1530fi 1531# Remove unnecessary trailing slashes from srcdir. 1532# Double slashes in file names in object file debugging info 1533# mess up M-x gdb in Emacs. 1534case $srcdir in 1535*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1536esac 1537for ac_var in $ac_precious_vars; do 1538 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1539 eval ac_env_${ac_var}_value=\$${ac_var} 1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1541 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1542done 1543 1544# 1545# Report the --help message. 1546# 1547if test "$ac_init_help" = "long"; then 1548 # Omit some internal or obsolete options to make the list less imposing. 1549 # This message is too long to be a string in the A/UX 3.1 sh. 1550 cat <<_ACEOF 1551'configure' configures libX11 1.8.10 to adapt to many kinds of systems. 1552 1553Usage: $0 [OPTION]... [VAR=VALUE]... 1554 1555To assign environment variables (e.g., CC, CFLAGS...), specify them as 1556VAR=VALUE. See below for descriptions of some of the useful variables. 1557 1558Defaults for the options are specified in brackets. 1559 1560Configuration: 1561 -h, --help display this help and exit 1562 --help=short display options specific to this package 1563 --help=recursive display the short help of all the included packages 1564 -V, --version display version information and exit 1565 -q, --quiet, --silent do not print 'checking ...' messages 1566 --cache-file=FILE cache test results in FILE [disabled] 1567 -C, --config-cache alias for '--cache-file=config.cache' 1568 -n, --no-create do not create output files 1569 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1570 1571Installation directories: 1572 --prefix=PREFIX install architecture-independent files in PREFIX 1573 [$ac_default_prefix] 1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1575 [PREFIX] 1576 1577By default, 'make install' will install all the files in 1578'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1579an installation prefix other than '$ac_default_prefix' using '--prefix', 1580for instance '--prefix=\$HOME'. 1581 1582For better control, use the options below. 1583 1584Fine tuning of the installation directories: 1585 --bindir=DIR user executables [EPREFIX/bin] 1586 --sbindir=DIR system admin executables [EPREFIX/sbin] 1587 --libexecdir=DIR program executables [EPREFIX/libexec] 1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1591 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1592 --libdir=DIR object code libraries [EPREFIX/lib] 1593 --includedir=DIR C header files [PREFIX/include] 1594 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1595 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1596 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1597 --infodir=DIR info documentation [DATAROOTDIR/info] 1598 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1599 --mandir=DIR man documentation [DATAROOTDIR/man] 1600 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1601 --htmldir=DIR html documentation [DOCDIR] 1602 --dvidir=DIR dvi documentation [DOCDIR] 1603 --pdfdir=DIR pdf documentation [DOCDIR] 1604 --psdir=DIR ps documentation [DOCDIR] 1605_ACEOF 1606 1607 cat <<\_ACEOF 1608 1609Program names: 1610 --program-prefix=PREFIX prepend PREFIX to installed program names 1611 --program-suffix=SUFFIX append SUFFIX to installed program names 1612 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1613 1614System types: 1615 --build=BUILD configure for building on BUILD [guessed] 1616 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1617_ACEOF 1618fi 1619 1620if test -n "$ac_init_help"; then 1621 case $ac_init_help in 1622 short | recursive ) echo "Configuration of libX11 1.8.10:";; 1623 esac 1624 cat <<\_ACEOF 1625 1626Optional Features: 1627 --disable-option-checking ignore unrecognized --enable/--with options 1628 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1629 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1630 --enable-dependency-tracking 1631 do not reject slow dependency extractors 1632 --disable-dependency-tracking 1633 speeds up one-time build 1634 --enable-silent-rules less verbose build output (undo: "make V=1") 1635 --disable-silent-rules verbose build output (undo: "make V=0") 1636 --enable-shared[=PKGS] build shared libraries [default=yes] 1637 --enable-static[=PKGS] build static libraries [default=yes] 1638 --enable-fast-install[=PKGS] 1639 optimize for fast installation [default=yes] 1640 --disable-libtool-lock avoid locking (might break parallel builds) 1641 --disable-largefile omit support for large files 1642 --disable-selective-werror 1643 Turn off selective compiler errors. (default: 1644 enabled) 1645 --enable-strict-compilation 1646 Enable all warnings from compiler and make them 1647 errors (default: disabled) 1648 --enable-specs Enable building the specs (default: yes) 1649 --enable-unix-transport Enable UNIX domain socket transport 1650 --enable-tcp-transport Enable TCP socket transport 1651 --enable-ipv6 Enable IPv6 support 1652 --enable-local-transport 1653 Enable os-specific local transport 1654 --enable-loadable-i18n Controls loadable i18n module support 1655 --disable-loadable-xcursor 1656 Controls loadable xcursor library support 1657 --disable-thread-safety-constructor 1658 Controls mandatory thread safety support 1659 --disable-xthreads Disable Xlib support for Multithreading 1660 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1661 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1662 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1663 --disable-xf86bigfont Disable XF86BigFont extension support 1664 --disable-xkb Disable XKB support *EXPERIMENTAL* 1665 --disable-composecache Disable compose table cache support 1666 --enable-lint-library Create lint library (default: disabled) 1667 --enable-malloc0returnsnull 1668 malloc(0) returns NULL (default: auto) 1669 --enable-year2038 support timestamps after 2038 1670 1671Optional Packages: 1672 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1673 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1674 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1675 both] 1676 --with-aix-soname=aix|svr4|both 1677 shared library versioning (aka "SONAME") variant to 1678 provide on AIX, [default=aix]. 1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1680 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1681 compiler's sysroot if not specified). 1682 --with-xmlto Use xmlto to regenerate documentation (default: 1683 auto) 1684 --with-fop Use fop to regenerate documentation (default: no) 1685 --with-xsltproc Use xsltproc for the transformation of XML documents 1686 (default: auto) 1687 --with-perl Use perl for extracting information from files 1688 (default: auto) 1689 --with-launchd Build with support for Apple's launchd (default: 1690 auto) 1691 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1692 include dir) 1693 --with-lint Use a lint-style source code checker (default: 1694 disabled) 1695 --with-locale-lib-dir=DIR 1696 Directory where locale libraries files are installed 1697 (default: $libdir/X11/locale) 1698 1699Some influential environment variables: 1700 CC C compiler command 1701 CFLAGS C compiler flags 1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1703 nonstandard directory <lib dir> 1704 LIBS libraries to pass to the linker, e.g. -l<library> 1705 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1706 you have headers in a nonstandard directory <include dir> 1707 LT_SYS_LIBRARY_PATH 1708 User-defined run-time library search path. 1709 PKG_CONFIG path to pkg-config utility 1710 PKG_CONFIG_PATH 1711 directories to add to pkg-config's search path 1712 PKG_CONFIG_LIBDIR 1713 path overriding pkg-config's built-in search path 1714 XMLTO Path to xmlto command 1715 FOP Path to fop command 1716 XSLTPROC Path to xsltproc command 1717 CPP C preprocessor 1718 PERL Path to perl command 1719 BIGFONT_CFLAGS 1720 C compiler flags for BIGFONT, overriding pkg-config 1721 BIGFONT_LIBS 1722 linker flags for BIGFONT, overriding pkg-config 1723 LINT Path to a lint-style command 1724 LINT_FLAGS Flags for the lint-style command 1725 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1726 X11_LIBS linker flags for X11, overriding pkg-config 1727 1728Use these variables to override the choices made by 'configure' or to help 1729it to find libraries and programs with nonstandard names/locations. 1730 1731Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>. 1732_ACEOF 1733ac_status=$? 1734fi 1735 1736if test "$ac_init_help" = "recursive"; then 1737 # If there are subdirs, report their specific --help. 1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1739 test -d "$ac_dir" || 1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1741 continue 1742 ac_builddir=. 1743 1744case "$ac_dir" in 1745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1746*) 1747 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1748 # A ".." for each directory in $ac_dir_suffix. 1749 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1750 case $ac_top_builddir_sub in 1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1753 esac ;; 1754esac 1755ac_abs_top_builddir=$ac_pwd 1756ac_abs_builddir=$ac_pwd$ac_dir_suffix 1757# for backward compatibility: 1758ac_top_builddir=$ac_top_build_prefix 1759 1760case $srcdir in 1761 .) # We are building in place. 1762 ac_srcdir=. 1763 ac_top_srcdir=$ac_top_builddir_sub 1764 ac_abs_top_srcdir=$ac_pwd ;; 1765 [\\/]* | ?:[\\/]* ) # Absolute name. 1766 ac_srcdir=$srcdir$ac_dir_suffix; 1767 ac_top_srcdir=$srcdir 1768 ac_abs_top_srcdir=$srcdir ;; 1769 *) # Relative name. 1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1771 ac_top_srcdir=$ac_top_build_prefix$srcdir 1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1773esac 1774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1775 1776 cd "$ac_dir" || { ac_status=$?; continue; } 1777 # Check for configure.gnu first; this name is used for a wrapper for 1778 # Metaconfig's "Configure" on case-insensitive file systems. 1779 if test -f "$ac_srcdir/configure.gnu"; then 1780 echo && 1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1782 elif test -f "$ac_srcdir/configure"; then 1783 echo && 1784 $SHELL "$ac_srcdir/configure" --help=recursive 1785 else 1786 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1787 fi || ac_status=$? 1788 cd "$ac_pwd" || { ac_status=$?; break; } 1789 done 1790fi 1791 1792test -n "$ac_init_help" && exit $ac_status 1793if $ac_init_version; then 1794 cat <<\_ACEOF 1795libX11 configure 1.8.10 1796generated by GNU Autoconf 2.72 1797 1798Copyright (C) 2023 Free Software Foundation, Inc. 1799This configure script is free software; the Free Software Foundation 1800gives unlimited permission to copy, distribute and modify it. 1801_ACEOF 1802 exit 1803fi 1804 1805## ------------------------ ## 1806## Autoconf initialization. ## 1807## ------------------------ ## 1808 1809# ac_fn_c_try_compile LINENO 1810# -------------------------- 1811# Try to compile conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_c_try_compile () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext conftest.beam 1816 if { { ac_try="$ac_compile" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822printf "%s\n" "$ac_try_echo"; } >&5 1823 (eval "$ac_compile") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_c_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest.$ac_objext 1835then : 1836 ac_retval=0 1837else case e in #( 1838 e) printf "%s\n" "$as_me: failed program was:" >&5 1839sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=1 ;; 1842esac 1843fi 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847} # ac_fn_c_try_compile 1848 1849# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1850# ------------------------------------------------------- 1851# Tests whether HEADER exists and can be compiled using the include files in 1852# INCLUDES, setting the cache variable VAR accordingly. 1853ac_fn_c_check_header_compile () 1854{ 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1857printf %s "checking for $2... " >&6; } 1858if eval test \${$3+y} 1859then : 1860 printf %s "(cached) " >&6 1861else case e in #( 1862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864$4 1865#include <$2> 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO" 1868then : 1869 eval "$3=yes" 1870else case e in #( 1871 e) eval "$3=no" ;; 1872esac 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1875esac 1876fi 1877eval ac_res=\$$3 1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879printf "%s\n" "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_compile 1883 1884# ac_fn_c_try_link LINENO 1885# ----------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. 1887ac_fn_c_try_link () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897printf "%s\n" "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { 1907 test -z "$ac_c_werror_flag" || 1908 test ! -s conftest.err 1909 } && test -s conftest$ac_exeext && { 1910 test "$cross_compiling" = yes || 1911 test -x conftest$ac_exeext 1912 } 1913then : 1914 ac_retval=0 1915else case e in #( 1916 e) printf "%s\n" "$as_me: failed program was:" >&5 1917sed 's/^/| /' conftest.$ac_ext >&5 1918 1919 ac_retval=1 ;; 1920esac 1921fi 1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1924 # interfere with the next link command; also delete a directory that is 1925 # left behind by Apple's compiler. We do this before executing the actions. 1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_c_try_link 1931 1932# ac_fn_c_check_func LINENO FUNC VAR 1933# ---------------------------------- 1934# Tests whether FUNC exists, setting the cache variable VAR accordingly 1935ac_fn_c_check_func () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1939printf %s "checking for $2... " >&6; } 1940if eval test \${$3+y} 1941then : 1942 printf %s "(cached) " >&6 1943else case e in #( 1944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1948#define $2 innocuous_$2 1949 1950/* System header to define __stub macros and hopefully few prototypes, 1951 which can conflict with char $2 (void); below. */ 1952 1953#include <limits.h> 1954#undef $2 1955 1956/* Override any GCC internal prototype to avoid an error. 1957 Use char because int might match the return type of a GCC 1958 builtin and then its argument prototype would still apply. */ 1959#ifdef __cplusplus 1960extern "C" 1961#endif 1962char $2 (void); 1963/* The GNU C library defines this for functions which it implements 1964 to always fail with ENOSYS. Some functions are actually named 1965 something starting with __ and the normal name is an alias. */ 1966#if defined __stub_$2 || defined __stub___$2 1967choke me 1968#endif 1969 1970int 1971main (void) 1972{ 1973return $2 (); 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978if ac_fn_c_try_link "$LINENO" 1979then : 1980 eval "$3=yes" 1981else case e in #( 1982 e) eval "$3=no" ;; 1983esac 1984fi 1985rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1986 conftest$ac_exeext conftest.$ac_ext ;; 1987esac 1988fi 1989eval ac_res=\$$3 1990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991printf "%s\n" "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} # ac_fn_c_check_func 1995 1996# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1997# ------------------------------------------------------------------ 1998# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1999# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2000ac_fn_check_decl () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 as_decl_name=`echo $2|sed 's/ *(.*//'` 2004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2005printf %s "checking whether $as_decl_name is declared... " >&6; } 2006if eval test \${$3+y} 2007then : 2008 printf %s "(cached) " >&6 2009else case e in #( 2010 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2011 eval ac_save_FLAGS=\$$6 2012 as_fn_append $6 " $5" 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$4 2016int 2017main (void) 2018{ 2019#ifndef $as_decl_name 2020#ifdef __cplusplus 2021 (void) $as_decl_use; 2022#else 2023 (void) $as_decl_name; 2024#endif 2025#endif 2026 2027 ; 2028 return 0; 2029} 2030_ACEOF 2031if ac_fn_c_try_compile "$LINENO" 2032then : 2033 eval "$3=yes" 2034else case e in #( 2035 e) eval "$3=no" ;; 2036esac 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2039 eval $6=\$ac_save_FLAGS 2040 ;; 2041esac 2042fi 2043eval ac_res=\$$3 2044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2045printf "%s\n" "$ac_res" >&6; } 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_check_decl 2049 2050# ac_fn_c_try_cpp LINENO 2051# ---------------------- 2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2053ac_fn_c_try_cpp () 2054{ 2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2056 if { { ac_try="$ac_cpp conftest.$ac_ext" 2057case "(($ac_try" in 2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2059 *) ac_try_echo=$ac_try;; 2060esac 2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2062printf "%s\n" "$ac_try_echo"; } >&5 2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2064 ac_status=$? 2065 if test -s conftest.err; then 2066 grep -v '^ *+' conftest.err >conftest.er1 2067 cat conftest.er1 >&5 2068 mv -f conftest.er1 conftest.err 2069 fi 2070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2071 test $ac_status = 0; } > conftest.i && { 2072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2073 test ! -s conftest.err 2074 } 2075then : 2076 ac_retval=0 2077else case e in #( 2078 e) printf "%s\n" "$as_me: failed program was:" >&5 2079sed 's/^/| /' conftest.$ac_ext >&5 2080 2081 ac_retval=1 ;; 2082esac 2083fi 2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2085 as_fn_set_status $ac_retval 2086 2087} # ac_fn_c_try_cpp 2088 2089# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2090# ---------------------------------------------------- 2091# Tries to find if the field MEMBER exists in type AGGR, after including 2092# INCLUDES, setting cache variable VAR accordingly. 2093ac_fn_c_check_member () 2094{ 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2097printf %s "checking for $2.$3... " >&6; } 2098if eval test \${$4+y} 2099then : 2100 printf %s "(cached) " >&6 2101else case e in #( 2102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103/* end confdefs.h. */ 2104$5 2105int 2106main (void) 2107{ 2108static $2 ac_aggr; 2109if (ac_aggr.$3) 2110return 0; 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115if ac_fn_c_try_compile "$LINENO" 2116then : 2117 eval "$4=yes" 2118else case e in #( 2119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$5 2122int 2123main (void) 2124{ 2125static $2 ac_aggr; 2126if (sizeof ac_aggr.$3) 2127return 0; 2128 ; 2129 return 0; 2130} 2131_ACEOF 2132if ac_fn_c_try_compile "$LINENO" 2133then : 2134 eval "$4=yes" 2135else case e in #( 2136 e) eval "$4=no" ;; 2137esac 2138fi 2139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2140esac 2141fi 2142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2143esac 2144fi 2145eval ac_res=\$$4 2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2147printf "%s\n" "$ac_res" >&6; } 2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2149 2150} # ac_fn_c_check_member 2151 2152# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2153# ------------------------------------------- 2154# Tests whether TYPE exists after having included INCLUDES, setting cache 2155# variable VAR accordingly. 2156ac_fn_c_check_type () 2157{ 2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2160printf %s "checking for $2... " >&6; } 2161if eval test \${$3+y} 2162then : 2163 printf %s "(cached) " >&6 2164else case e in #( 2165 e) eval "$3=no" 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169int 2170main (void) 2171{ 2172if (sizeof ($2)) 2173 return 0; 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_compile "$LINENO" 2179then : 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$4 2183int 2184main (void) 2185{ 2186if (sizeof (($2))) 2187 return 0; 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO" 2193then : 2194 2195else case e in #( 2196 e) eval "$3=yes" ;; 2197esac 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2202esac 2203fi 2204eval ac_res=\$$3 2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2206printf "%s\n" "$ac_res" >&6; } 2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2208 2209} # ac_fn_c_check_type 2210 2211# ac_fn_c_try_run LINENO 2212# ---------------------- 2213# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2214# executables *can* be run. 2215ac_fn_c_try_run () 2216{ 2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2218 if { { ac_try="$ac_link" 2219case "(($ac_try" in 2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2221 *) ac_try_echo=$ac_try;; 2222esac 2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2224printf "%s\n" "$ac_try_echo"; } >&5 2225 (eval "$ac_link") 2>&5 2226 ac_status=$? 2227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2228 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2229 { { case "(($ac_try" in 2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2231 *) ac_try_echo=$ac_try;; 2232esac 2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2234printf "%s\n" "$ac_try_echo"; } >&5 2235 (eval "$ac_try") 2>&5 2236 ac_status=$? 2237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2238 test $ac_status = 0; }; } 2239then : 2240 ac_retval=0 2241else case e in #( 2242 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2243 printf "%s\n" "$as_me: failed program was:" >&5 2244sed 's/^/| /' conftest.$ac_ext >&5 2245 2246 ac_retval=$ac_status ;; 2247esac 2248fi 2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2251 as_fn_set_status $ac_retval 2252 2253} # ac_fn_c_try_run 2254ac_configure_args_raw= 2255for ac_arg 2256do 2257 case $ac_arg in 2258 *\'*) 2259 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2260 esac 2261 as_fn_append ac_configure_args_raw " '$ac_arg'" 2262done 2263 2264case $ac_configure_args_raw in 2265 *$as_nl*) 2266 ac_safe_unquote= ;; 2267 *) 2268 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2269 ac_unsafe_a="$ac_unsafe_z#~" 2270 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2271 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2272esac 2273 2274cat >config.log <<_ACEOF 2275This file contains any messages produced by compilers while 2276running configure, to aid debugging if configure makes a mistake. 2277 2278It was created by libX11 $as_me 1.8.10, which was 2279generated by GNU Autoconf 2.72. Invocation command line was 2280 2281 $ $0$ac_configure_args_raw 2282 2283_ACEOF 2284exec 5>>config.log 2285{ 2286cat <<_ASUNAME 2287## --------- ## 2288## Platform. ## 2289## --------- ## 2290 2291hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2292uname -m = `(uname -m) 2>/dev/null || echo unknown` 2293uname -r = `(uname -r) 2>/dev/null || echo unknown` 2294uname -s = `(uname -s) 2>/dev/null || echo unknown` 2295uname -v = `(uname -v) 2>/dev/null || echo unknown` 2296 2297/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2298/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2299 2300/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2301/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2302/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2303/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2304/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2305/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2306/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2307 2308_ASUNAME 2309 2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2311for as_dir in $PATH 2312do 2313 IFS=$as_save_IFS 2314 case $as_dir in #((( 2315 '') as_dir=./ ;; 2316 */) ;; 2317 *) as_dir=$as_dir/ ;; 2318 esac 2319 printf "%s\n" "PATH: $as_dir" 2320 done 2321IFS=$as_save_IFS 2322 2323} >&5 2324 2325cat >&5 <<_ACEOF 2326 2327 2328## ----------- ## 2329## Core tests. ## 2330## ----------- ## 2331 2332_ACEOF 2333 2334 2335# Keep a trace of the command line. 2336# Strip out --no-create and --no-recursion so they do not pile up. 2337# Strip out --silent because we don't want to record it for future runs. 2338# Also quote any args containing shell meta-characters. 2339# Make two passes to allow for proper duplicate-argument suppression. 2340ac_configure_args= 2341ac_configure_args0= 2342ac_configure_args1= 2343ac_must_keep_next=false 2344for ac_pass in 1 2 2345do 2346 for ac_arg 2347 do 2348 case $ac_arg in 2349 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2351 | -silent | --silent | --silen | --sile | --sil) 2352 continue ;; 2353 *\'*) 2354 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2355 esac 2356 case $ac_pass in 2357 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2358 2) 2359 as_fn_append ac_configure_args1 " '$ac_arg'" 2360 if test $ac_must_keep_next = true; then 2361 ac_must_keep_next=false # Got value, back to normal. 2362 else 2363 case $ac_arg in 2364 *=* | --config-cache | -C | -disable-* | --disable-* \ 2365 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2366 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2367 | -with-* | --with-* | -without-* | --without-* | --x) 2368 case "$ac_configure_args0 " in 2369 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2370 esac 2371 ;; 2372 -* ) ac_must_keep_next=true ;; 2373 esac 2374 fi 2375 as_fn_append ac_configure_args " '$ac_arg'" 2376 ;; 2377 esac 2378 done 2379done 2380{ ac_configure_args0=; unset ac_configure_args0;} 2381{ ac_configure_args1=; unset ac_configure_args1;} 2382 2383# When interrupted or exit'd, cleanup temporary files, and complete 2384# config.log. We remove comments because anyway the quotes in there 2385# would cause problems or look ugly. 2386# WARNING: Use '\'' to represent an apostrophe within the trap. 2387# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2388trap 'exit_status=$? 2389 # Sanitize IFS. 2390 IFS=" "" $as_nl" 2391 # Save into config.log some information that might help in debugging. 2392 { 2393 echo 2394 2395 printf "%s\n" "## ---------------- ## 2396## Cache variables. ## 2397## ---------------- ##" 2398 echo 2399 # The following way of writing the cache mishandles newlines in values, 2400( 2401 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2402 eval ac_val=\$$ac_var 2403 case $ac_val in #( 2404 *${as_nl}*) 2405 case $ac_var in #( 2406 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2407printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2408 esac 2409 case $ac_var in #( 2410 _ | IFS | as_nl) ;; #( 2411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2412 *) { eval $ac_var=; unset $ac_var;} ;; 2413 esac ;; 2414 esac 2415 done 2416 (set) 2>&1 | 2417 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2418 *${as_nl}ac_space=\ *) 2419 sed -n \ 2420 "s/'\''/'\''\\\\'\'''\''/g; 2421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2422 ;; #( 2423 *) 2424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2425 ;; 2426 esac | 2427 sort 2428) 2429 echo 2430 2431 printf "%s\n" "## ----------------- ## 2432## Output variables. ## 2433## ----------------- ##" 2434 echo 2435 for ac_var in $ac_subst_vars 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 printf "%s\n" "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 2445 if test -n "$ac_subst_files"; then 2446 printf "%s\n" "## ------------------- ## 2447## File substitutions. ## 2448## ------------------- ##" 2449 echo 2450 for ac_var in $ac_subst_files 2451 do 2452 eval ac_val=\$$ac_var 2453 case $ac_val in 2454 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2455 esac 2456 printf "%s\n" "$ac_var='\''$ac_val'\''" 2457 done | sort 2458 echo 2459 fi 2460 2461 if test -s confdefs.h; then 2462 printf "%s\n" "## ----------- ## 2463## confdefs.h. ## 2464## ----------- ##" 2465 echo 2466 cat confdefs.h 2467 echo 2468 fi 2469 test "$ac_signal" != 0 && 2470 printf "%s\n" "$as_me: caught signal $ac_signal" 2471 printf "%s\n" "$as_me: exit $exit_status" 2472 } >&5 2473 rm -f core *.core core.conftest.* && 2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2475 exit $exit_status 2476' 0 2477for ac_signal in 1 2 13 15; do 2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2479done 2480ac_signal=0 2481 2482# confdefs.h avoids OS command line length limits that DEFS can exceed. 2483rm -f -r conftest* confdefs.h 2484 2485printf "%s\n" "/* confdefs.h */" > confdefs.h 2486 2487# Predefined preprocessor variables. 2488 2489printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2490 2491printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2492 2493printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2494 2495printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2496 2497printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2498 2499printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2500 2501 2502# Let the site file select an alternate cache file if it wants to. 2503# Prefer an explicitly selected file to automatically selected ones. 2504if test -n "$CONFIG_SITE"; then 2505 ac_site_files="$CONFIG_SITE" 2506elif test "x$prefix" != xNONE; then 2507 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2508else 2509 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2510fi 2511 2512for ac_site_file in $ac_site_files 2513do 2514 case $ac_site_file in #( 2515 */*) : 2516 ;; #( 2517 *) : 2518 ac_site_file=./$ac_site_file ;; 2519esac 2520 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2522printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2523 sed 's/^/| /' "$ac_site_file" >&5 2524 . "$ac_site_file" \ 2525 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2526printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2527as_fn_error $? "failed to load site script $ac_site_file 2528See 'config.log' for more details" "$LINENO" 5; } 2529 fi 2530done 2531 2532if test -r "$cache_file"; then 2533 # Some versions of bash will fail to source /dev/null (special files 2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2537printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2538 case $cache_file in 2539 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2540 *) . "./$cache_file";; 2541 esac 2542 fi 2543else 2544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2545printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2546 >$cache_file 2547fi 2548 2549as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2550# Test code for whether the C compiler supports C89 (global declarations) 2551ac_c_conftest_c89_globals=' 2552/* Does the compiler advertise C89 conformance? 2553 Do not test the value of __STDC__, because some compilers set it to 0 2554 while being otherwise adequately conformant. */ 2555#if !defined __STDC__ 2556# error "Compiler does not advertise C89 conformance" 2557#endif 2558 2559#include <stddef.h> 2560#include <stdarg.h> 2561struct stat; 2562/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2563struct buf { int x; }; 2564struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2565static char *e (char **p, int i) 2566{ 2567 return p[i]; 2568} 2569static char *f (char * (*g) (char **, int), char **p, ...) 2570{ 2571 char *s; 2572 va_list v; 2573 va_start (v,p); 2574 s = g (p, va_arg (v,int)); 2575 va_end (v); 2576 return s; 2577} 2578 2579/* C89 style stringification. */ 2580#define noexpand_stringify(a) #a 2581const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2582 2583/* C89 style token pasting. Exercises some of the corner cases that 2584 e.g. old MSVC gets wrong, but not very hard. */ 2585#define noexpand_concat(a,b) a##b 2586#define expand_concat(a,b) noexpand_concat(a,b) 2587extern int vA; 2588extern int vbee; 2589#define aye A 2590#define bee B 2591int *pvA = &expand_concat(v,aye); 2592int *pvbee = &noexpand_concat(v,bee); 2593 2594/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2595 function prototypes and stuff, but not \xHH hex character constants. 2596 These do not provoke an error unfortunately, instead are silently treated 2597 as an "x". The following induces an error, until -std is added to get 2598 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2599 array size at least. It is necessary to write \x00 == 0 to get something 2600 that is true only with -std. */ 2601int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2602 2603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2604 inside strings and character constants. */ 2605#define FOO(x) '\''x'\'' 2606int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2607 2608int test (int i, double x); 2609struct s1 {int (*f) (int a);}; 2610struct s2 {int (*f) (double a);}; 2611int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2612 int, int);' 2613 2614# Test code for whether the C compiler supports C89 (body of main). 2615ac_c_conftest_c89_main=' 2616ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2617' 2618 2619# Test code for whether the C compiler supports C99 (global declarations) 2620ac_c_conftest_c99_globals=' 2621/* Does the compiler advertise C99 conformance? */ 2622#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2623# error "Compiler does not advertise C99 conformance" 2624#endif 2625 2626// See if C++-style comments work. 2627 2628#include <stdbool.h> 2629extern int puts (const char *); 2630extern int printf (const char *, ...); 2631extern int dprintf (int, const char *, ...); 2632extern void *malloc (size_t); 2633extern void free (void *); 2634 2635// Check varargs macros. These examples are taken from C99 6.10.3.5. 2636// dprintf is used instead of fprintf to avoid needing to declare 2637// FILE and stderr. 2638#define debug(...) dprintf (2, __VA_ARGS__) 2639#define showlist(...) puts (#__VA_ARGS__) 2640#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2641static void 2642test_varargs_macros (void) 2643{ 2644 int x = 1234; 2645 int y = 5678; 2646 debug ("Flag"); 2647 debug ("X = %d\n", x); 2648 showlist (The first, second, and third items.); 2649 report (x>y, "x is %d but y is %d", x, y); 2650} 2651 2652// Check long long types. 2653#define BIG64 18446744073709551615ull 2654#define BIG32 4294967295ul 2655#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2656#if !BIG_OK 2657 #error "your preprocessor is broken" 2658#endif 2659#if BIG_OK 2660#else 2661 #error "your preprocessor is broken" 2662#endif 2663static long long int bignum = -9223372036854775807LL; 2664static unsigned long long int ubignum = BIG64; 2665 2666struct incomplete_array 2667{ 2668 int datasize; 2669 double data[]; 2670}; 2671 2672struct named_init { 2673 int number; 2674 const wchar_t *name; 2675 double average; 2676}; 2677 2678typedef const char *ccp; 2679 2680static inline int 2681test_restrict (ccp restrict text) 2682{ 2683 // Iterate through items via the restricted pointer. 2684 // Also check for declarations in for loops. 2685 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2686 continue; 2687 return 0; 2688} 2689 2690// Check varargs and va_copy. 2691static bool 2692test_varargs (const char *format, ...) 2693{ 2694 va_list args; 2695 va_start (args, format); 2696 va_list args_copy; 2697 va_copy (args_copy, args); 2698 2699 const char *str = ""; 2700 int number = 0; 2701 float fnumber = 0; 2702 2703 while (*format) 2704 { 2705 switch (*format++) 2706 { 2707 case '\''s'\'': // string 2708 str = va_arg (args_copy, const char *); 2709 break; 2710 case '\''d'\'': // int 2711 number = va_arg (args_copy, int); 2712 break; 2713 case '\''f'\'': // float 2714 fnumber = va_arg (args_copy, double); 2715 break; 2716 default: 2717 break; 2718 } 2719 } 2720 va_end (args_copy); 2721 va_end (args); 2722 2723 return *str && number && fnumber; 2724} 2725' 2726 2727# Test code for whether the C compiler supports C99 (body of main). 2728ac_c_conftest_c99_main=' 2729 // Check bool. 2730 _Bool success = false; 2731 success |= (argc != 0); 2732 2733 // Check restrict. 2734 if (test_restrict ("String literal") == 0) 2735 success = true; 2736 char *restrict newvar = "Another string"; 2737 2738 // Check varargs. 2739 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2740 test_varargs_macros (); 2741 2742 // Check flexible array members. 2743 struct incomplete_array *ia = 2744 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2745 ia->datasize = 10; 2746 for (int i = 0; i < ia->datasize; ++i) 2747 ia->data[i] = i * 1.234; 2748 // Work around memory leak warnings. 2749 free (ia); 2750 2751 // Check named initializers. 2752 struct named_init ni = { 2753 .number = 34, 2754 .name = L"Test wide string", 2755 .average = 543.34343, 2756 }; 2757 2758 ni.number = 58; 2759 2760 int dynamic_array[ni.number]; 2761 dynamic_array[0] = argv[0][0]; 2762 dynamic_array[ni.number - 1] = 543; 2763 2764 // work around unused variable warnings 2765 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2766 || dynamic_array[ni.number - 1] != 543); 2767' 2768 2769# Test code for whether the C compiler supports C11 (global declarations) 2770ac_c_conftest_c11_globals=' 2771/* Does the compiler advertise C11 conformance? */ 2772#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2773# error "Compiler does not advertise C11 conformance" 2774#endif 2775 2776// Check _Alignas. 2777char _Alignas (double) aligned_as_double; 2778char _Alignas (0) no_special_alignment; 2779extern char aligned_as_int; 2780char _Alignas (0) _Alignas (int) aligned_as_int; 2781 2782// Check _Alignof. 2783enum 2784{ 2785 int_alignment = _Alignof (int), 2786 int_array_alignment = _Alignof (int[100]), 2787 char_alignment = _Alignof (char) 2788}; 2789_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2790 2791// Check _Noreturn. 2792int _Noreturn does_not_return (void) { for (;;) continue; } 2793 2794// Check _Static_assert. 2795struct test_static_assert 2796{ 2797 int x; 2798 _Static_assert (sizeof (int) <= sizeof (long int), 2799 "_Static_assert does not work in struct"); 2800 long int y; 2801}; 2802 2803// Check UTF-8 literals. 2804#define u8 syntax error! 2805char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2806 2807// Check duplicate typedefs. 2808typedef long *long_ptr; 2809typedef long int *long_ptr; 2810typedef long_ptr long_ptr; 2811 2812// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2813struct anonymous 2814{ 2815 union { 2816 struct { int i; int j; }; 2817 struct { int k; long int l; } w; 2818 }; 2819 int m; 2820} v1; 2821' 2822 2823# Test code for whether the C compiler supports C11 (body of main). 2824ac_c_conftest_c11_main=' 2825 _Static_assert ((offsetof (struct anonymous, i) 2826 == offsetof (struct anonymous, w.k)), 2827 "Anonymous union alignment botch"); 2828 v1.i = 2; 2829 v1.w.k = 5; 2830 ok |= v1.i != 5; 2831' 2832 2833# Test code for whether the C compiler supports C11 (complete). 2834ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2835${ac_c_conftest_c99_globals} 2836${ac_c_conftest_c11_globals} 2837 2838int 2839main (int argc, char **argv) 2840{ 2841 int ok = 0; 2842 ${ac_c_conftest_c89_main} 2843 ${ac_c_conftest_c99_main} 2844 ${ac_c_conftest_c11_main} 2845 return ok; 2846} 2847" 2848 2849# Test code for whether the C compiler supports C99 (complete). 2850ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2851${ac_c_conftest_c99_globals} 2852 2853int 2854main (int argc, char **argv) 2855{ 2856 int ok = 0; 2857 ${ac_c_conftest_c89_main} 2858 ${ac_c_conftest_c99_main} 2859 return ok; 2860} 2861" 2862 2863# Test code for whether the C compiler supports C89 (complete). 2864ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2865 2866int 2867main (int argc, char **argv) 2868{ 2869 int ok = 0; 2870 ${ac_c_conftest_c89_main} 2871 return ok; 2872} 2873" 2874 2875as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2876as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2877as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2878as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2879as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2880as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2881as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2882as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2883as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2884as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2885as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2886as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2887 2888# Auxiliary files required by this configure script. 2889ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub" 2890 2891# Locations in which to look for auxiliary files. 2892ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2893 2894# Search for a directory containing all of the required auxiliary files, 2895# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2896# If we don't find one directory that contains all the files we need, 2897# we report the set of missing files from the *first* directory in 2898# $ac_aux_dir_candidates and give up. 2899ac_missing_aux_files="" 2900ac_first_candidate=: 2901printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903as_found=false 2904for as_dir in $ac_aux_dir_candidates 2905do 2906 IFS=$as_save_IFS 2907 case $as_dir in #((( 2908 '') as_dir=./ ;; 2909 */) ;; 2910 *) as_dir=$as_dir/ ;; 2911 esac 2912 as_found=: 2913 2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2915 ac_aux_dir_found=yes 2916 ac_install_sh= 2917 for ac_aux in $ac_aux_files 2918 do 2919 # As a special case, if "install-sh" is required, that requirement 2920 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2921 # and $ac_install_sh is set appropriately for whichever one is found. 2922 if test x"$ac_aux" = x"install-sh" 2923 then 2924 if test -f "${as_dir}install-sh"; then 2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2926 ac_install_sh="${as_dir}install-sh -c" 2927 elif test -f "${as_dir}install.sh"; then 2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2929 ac_install_sh="${as_dir}install.sh -c" 2930 elif test -f "${as_dir}shtool"; then 2931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2932 ac_install_sh="${as_dir}shtool install -c" 2933 else 2934 ac_aux_dir_found=no 2935 if $ac_first_candidate; then 2936 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2937 else 2938 break 2939 fi 2940 fi 2941 else 2942 if test -f "${as_dir}${ac_aux}"; then 2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2944 else 2945 ac_aux_dir_found=no 2946 if $ac_first_candidate; then 2947 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2948 else 2949 break 2950 fi 2951 fi 2952 fi 2953 done 2954 if test "$ac_aux_dir_found" = yes; then 2955 ac_aux_dir="$as_dir" 2956 break 2957 fi 2958 ac_first_candidate=false 2959 2960 as_found=false 2961done 2962IFS=$as_save_IFS 2963if $as_found 2964then : 2965 2966else case e in #( 2967 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2968esac 2969fi 2970 2971 2972# These three variables are undocumented and unsupported, 2973# and are intended to be withdrawn in a future Autoconf release. 2974# They can cause serious problems if a builder's source tree is in a directory 2975# whose full name contains unusual characters. 2976if test -f "${ac_aux_dir}config.guess"; then 2977 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2978fi 2979if test -f "${ac_aux_dir}config.sub"; then 2980 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2981fi 2982if test -f "$ac_aux_dir/configure"; then 2983 ac_configure="$SHELL ${ac_aux_dir}configure" 2984fi 2985 2986# Check that the precious variables saved in the cache have kept the same 2987# value. 2988ac_cache_corrupted=false 2989for ac_var in $ac_precious_vars; do 2990 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2991 eval ac_new_set=\$ac_env_${ac_var}_set 2992 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2993 eval ac_new_val=\$ac_env_${ac_var}_value 2994 case $ac_old_set,$ac_new_set in 2995 set,) 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2997printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2998 ac_cache_corrupted=: ;; 2999 ,set) 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3001printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3002 ac_cache_corrupted=: ;; 3003 ,);; 3004 *) 3005 if test "x$ac_old_val" != "x$ac_new_val"; then 3006 # differences in whitespace do not lead to failure. 3007 ac_old_val_w=`echo x $ac_old_val` 3008 ac_new_val_w=`echo x $ac_new_val` 3009 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3011printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3012 ac_cache_corrupted=: 3013 else 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3015printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3016 eval $ac_var=\$ac_old_val 3017 fi 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3019printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3021printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3022 fi;; 3023 esac 3024 # Pass precious variables to config.status. 3025 if test "$ac_new_set" = set; then 3026 case $ac_new_val in 3027 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3028 *) ac_arg=$ac_var=$ac_new_val ;; 3029 esac 3030 case " $ac_configure_args " in 3031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3032 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3033 esac 3034 fi 3035done 3036if $ac_cache_corrupted; then 3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3038printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3040printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3041 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3042 and start over" "$LINENO" 5 3043fi 3044## -------------------- ## 3045## Main body of script. ## 3046## -------------------- ## 3047 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053 3054 3055 3056ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 3057 3058 3059 3060 3061 3062 # Make sure we can run config.sub. 3063$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3064 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3065 3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3067printf %s "checking build system type... " >&6; } 3068if test ${ac_cv_build+y} 3069then : 3070 printf %s "(cached) " >&6 3071else case e in #( 3072 e) ac_build_alias=$build_alias 3073test "x$ac_build_alias" = x && 3074 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3075test "x$ac_build_alias" = x && 3076 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3077ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3078 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3079 ;; 3080esac 3081fi 3082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3083printf "%s\n" "$ac_cv_build" >&6; } 3084case $ac_cv_build in 3085*-*-*) ;; 3086*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3087esac 3088build=$ac_cv_build 3089ac_save_IFS=$IFS; IFS='-' 3090set x $ac_cv_build 3091shift 3092build_cpu=$1 3093build_vendor=$2 3094shift; shift 3095# Remember, the first character of IFS is used to create $*, 3096# except with old shells: 3097build_os=$* 3098IFS=$ac_save_IFS 3099case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3100 3101 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3103printf %s "checking host system type... " >&6; } 3104if test ${ac_cv_host+y} 3105then : 3106 printf %s "(cached) " >&6 3107else case e in #( 3108 e) if test "x$host_alias" = x; then 3109 ac_cv_host=$ac_cv_build 3110else 3111 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3112 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3113fi 3114 ;; 3115esac 3116fi 3117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3118printf "%s\n" "$ac_cv_host" >&6; } 3119case $ac_cv_host in 3120*-*-*) ;; 3121*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3122esac 3123host=$ac_cv_host 3124ac_save_IFS=$IFS; IFS='-' 3125set x $ac_cv_host 3126shift 3127host_cpu=$1 3128host_vendor=$2 3129shift; shift 3130# Remember, the first character of IFS is used to create $*, 3131# except with old shells: 3132host_os=$* 3133IFS=$ac_save_IFS 3134case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3135 3136 3137# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3138# Must be called before any macros that run the compiler (like LT_INIT) 3139# to avoid autoconf errors. 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150# Expand $ac_aux_dir to an absolute path. 3151am_aux_dir=`cd "$ac_aux_dir" && pwd` 3152 3153ac_ext=c 3154ac_cpp='$CPP $CPPFLAGS' 3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3157ac_compiler_gnu=$ac_cv_c_compiler_gnu 3158if test -n "$ac_tool_prefix"; then 3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3160set dummy ${ac_tool_prefix}gcc; ac_word=$2 3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3162printf %s "checking for $ac_word... " >&6; } 3163if test ${ac_cv_prog_CC+y} 3164then : 3165 printf %s "(cached) " >&6 3166else case e in #( 3167 e) if test -n "$CC"; then 3168 ac_cv_prog_CC="$CC" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 case $as_dir in #((( 3175 '') as_dir=./ ;; 3176 */) ;; 3177 *) as_dir=$as_dir/ ;; 3178 esac 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186 done 3187IFS=$as_save_IFS 3188 3189fi ;; 3190esac 3191fi 3192CC=$ac_cv_prog_CC 3193if test -n "$CC"; then 3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3195printf "%s\n" "$CC" >&6; } 3196else 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198printf "%s\n" "no" >&6; } 3199fi 3200 3201 3202fi 3203if test -z "$ac_cv_prog_CC"; then 3204 ac_ct_CC=$CC 3205 # Extract the first word of "gcc", so it can be a program name with args. 3206set dummy gcc; ac_word=$2 3207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3208printf %s "checking for $ac_word... " >&6; } 3209if test ${ac_cv_prog_ac_ct_CC+y} 3210then : 3211 printf %s "(cached) " >&6 3212else case e in #( 3213 e) if test -n "$ac_ct_CC"; then 3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3215else 3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3217for as_dir in $PATH 3218do 3219 IFS=$as_save_IFS 3220 case $as_dir in #((( 3221 '') as_dir=./ ;; 3222 */) ;; 3223 *) as_dir=$as_dir/ ;; 3224 esac 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3227 ac_cv_prog_ac_ct_CC="gcc" 3228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi ;; 3236esac 3237fi 3238ac_ct_CC=$ac_cv_prog_ac_ct_CC 3239if test -n "$ac_ct_CC"; then 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3241printf "%s\n" "$ac_ct_CC" >&6; } 3242else 3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244printf "%s\n" "no" >&6; } 3245fi 3246 3247 if test "x$ac_ct_CC" = x; then 3248 CC="" 3249 else 3250 case $cross_compiling:$ac_tool_warned in 3251yes:) 3252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3254ac_tool_warned=yes ;; 3255esac 3256 CC=$ac_ct_CC 3257 fi 3258else 3259 CC="$ac_cv_prog_CC" 3260fi 3261 3262if test -z "$CC"; then 3263 if test -n "$ac_tool_prefix"; then 3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3265set dummy ${ac_tool_prefix}cc; ac_word=$2 3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267printf %s "checking for $ac_word... " >&6; } 3268if test ${ac_cv_prog_CC+y} 3269then : 3270 printf %s "(cached) " >&6 3271else case e in #( 3272 e) if test -n "$CC"; then 3273 ac_cv_prog_CC="$CC" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 case $as_dir in #((( 3280 '') as_dir=./ ;; 3281 */) ;; 3282 *) as_dir=$as_dir/ ;; 3283 esac 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3286 ac_cv_prog_CC="${ac_tool_prefix}cc" 3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290done 3291 done 3292IFS=$as_save_IFS 3293 3294fi ;; 3295esac 3296fi 3297CC=$ac_cv_prog_CC 3298if test -n "$CC"; then 3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3300printf "%s\n" "$CC" >&6; } 3301else 3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303printf "%s\n" "no" >&6; } 3304fi 3305 3306 3307 fi 3308fi 3309if test -z "$CC"; then 3310 # Extract the first word of "cc", so it can be a program name with args. 3311set dummy cc; ac_word=$2 3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3313printf %s "checking for $ac_word... " >&6; } 3314if test ${ac_cv_prog_CC+y} 3315then : 3316 printf %s "(cached) " >&6 3317else case e in #( 3318 e) if test -n "$CC"; then 3319 ac_cv_prog_CC="$CC" # Let the user override the test. 3320else 3321 ac_prog_rejected=no 3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3323for as_dir in $PATH 3324do 3325 IFS=$as_save_IFS 3326 case $as_dir in #((( 3327 '') as_dir=./ ;; 3328 */) ;; 3329 *) as_dir=$as_dir/ ;; 3330 esac 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3333 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3334 ac_prog_rejected=yes 3335 continue 3336 fi 3337 ac_cv_prog_CC="cc" 3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3339 break 2 3340 fi 3341done 3342 done 3343IFS=$as_save_IFS 3344 3345if test $ac_prog_rejected = yes; then 3346 # We found a bogon in the path, so make sure we never use it. 3347 set dummy $ac_cv_prog_CC 3348 shift 3349 if test $# != 0; then 3350 # We chose a different compiler from the bogus one. 3351 # However, it has the same basename, so the bogon will be chosen 3352 # first if we set CC to just the basename; use the full file name. 3353 shift 3354 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3355 fi 3356fi 3357fi ;; 3358esac 3359fi 3360CC=$ac_cv_prog_CC 3361if test -n "$CC"; then 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3363printf "%s\n" "$CC" >&6; } 3364else 3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366printf "%s\n" "no" >&6; } 3367fi 3368 3369 3370fi 3371if test -z "$CC"; then 3372 if test -n "$ac_tool_prefix"; then 3373 for ac_prog in cl.exe 3374 do 3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3376set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3378printf %s "checking for $ac_word... " >&6; } 3379if test ${ac_cv_prog_CC+y} 3380then : 3381 printf %s "(cached) " >&6 3382else case e in #( 3383 e) if test -n "$CC"; then 3384 ac_cv_prog_CC="$CC" # Let the user override the test. 3385else 3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3387for as_dir in $PATH 3388do 3389 IFS=$as_save_IFS 3390 case $as_dir in #((( 3391 '') as_dir=./ ;; 3392 */) ;; 3393 *) as_dir=$as_dir/ ;; 3394 esac 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402 done 3403IFS=$as_save_IFS 3404 3405fi ;; 3406esac 3407fi 3408CC=$ac_cv_prog_CC 3409if test -n "$CC"; then 3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3411printf "%s\n" "$CC" >&6; } 3412else 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3414printf "%s\n" "no" >&6; } 3415fi 3416 3417 3418 test -n "$CC" && break 3419 done 3420fi 3421if test -z "$CC"; then 3422 ac_ct_CC=$CC 3423 for ac_prog in cl.exe 3424do 3425 # Extract the first word of "$ac_prog", so it can be a program name with args. 3426set dummy $ac_prog; ac_word=$2 3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428printf %s "checking for $ac_word... " >&6; } 3429if test ${ac_cv_prog_ac_ct_CC+y} 3430then : 3431 printf %s "(cached) " >&6 3432else case e in #( 3433 e) if test -n "$ac_ct_CC"; then 3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3435else 3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH 3438do 3439 IFS=$as_save_IFS 3440 case $as_dir in #((( 3441 '') as_dir=./ ;; 3442 */) ;; 3443 *) as_dir=$as_dir/ ;; 3444 esac 3445 for ac_exec_ext in '' $ac_executable_extensions; do 3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3447 ac_cv_prog_ac_ct_CC="$ac_prog" 3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3449 break 2 3450 fi 3451done 3452 done 3453IFS=$as_save_IFS 3454 3455fi ;; 3456esac 3457fi 3458ac_ct_CC=$ac_cv_prog_ac_ct_CC 3459if test -n "$ac_ct_CC"; then 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3461printf "%s\n" "$ac_ct_CC" >&6; } 3462else 3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464printf "%s\n" "no" >&6; } 3465fi 3466 3467 3468 test -n "$ac_ct_CC" && break 3469done 3470 3471 if test "x$ac_ct_CC" = x; then 3472 CC="" 3473 else 3474 case $cross_compiling:$ac_tool_warned in 3475yes:) 3476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3478ac_tool_warned=yes ;; 3479esac 3480 CC=$ac_ct_CC 3481 fi 3482fi 3483 3484fi 3485if test -z "$CC"; then 3486 if test -n "$ac_tool_prefix"; then 3487 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3488set dummy ${ac_tool_prefix}clang; ac_word=$2 3489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490printf %s "checking for $ac_word... " >&6; } 3491if test ${ac_cv_prog_CC+y} 3492then : 3493 printf %s "(cached) " >&6 3494else case e in #( 3495 e) if test -n "$CC"; then 3496 ac_cv_prog_CC="$CC" # Let the user override the test. 3497else 3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499for as_dir in $PATH 3500do 3501 IFS=$as_save_IFS 3502 case $as_dir in #((( 3503 '') as_dir=./ ;; 3504 */) ;; 3505 *) as_dir=$as_dir/ ;; 3506 esac 3507 for ac_exec_ext in '' $ac_executable_extensions; do 3508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3509 ac_cv_prog_CC="${ac_tool_prefix}clang" 3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513done 3514 done 3515IFS=$as_save_IFS 3516 3517fi ;; 3518esac 3519fi 3520CC=$ac_cv_prog_CC 3521if test -n "$CC"; then 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3523printf "%s\n" "$CC" >&6; } 3524else 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3526printf "%s\n" "no" >&6; } 3527fi 3528 3529 3530fi 3531if test -z "$ac_cv_prog_CC"; then 3532 ac_ct_CC=$CC 3533 # Extract the first word of "clang", so it can be a program name with args. 3534set dummy clang; ac_word=$2 3535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3536printf %s "checking for $ac_word... " >&6; } 3537if test ${ac_cv_prog_ac_ct_CC+y} 3538then : 3539 printf %s "(cached) " >&6 3540else case e in #( 3541 e) if test -n "$ac_ct_CC"; then 3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 case $as_dir in #((( 3549 '') as_dir=./ ;; 3550 */) ;; 3551 *) as_dir=$as_dir/ ;; 3552 esac 3553 for ac_exec_ext in '' $ac_executable_extensions; do 3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3555 ac_cv_prog_ac_ct_CC="clang" 3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3557 break 2 3558 fi 3559done 3560 done 3561IFS=$as_save_IFS 3562 3563fi ;; 3564esac 3565fi 3566ac_ct_CC=$ac_cv_prog_ac_ct_CC 3567if test -n "$ac_ct_CC"; then 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3569printf "%s\n" "$ac_ct_CC" >&6; } 3570else 3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3572printf "%s\n" "no" >&6; } 3573fi 3574 3575 if test "x$ac_ct_CC" = x; then 3576 CC="" 3577 else 3578 case $cross_compiling:$ac_tool_warned in 3579yes:) 3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3582ac_tool_warned=yes ;; 3583esac 3584 CC=$ac_ct_CC 3585 fi 3586else 3587 CC="$ac_cv_prog_CC" 3588fi 3589 3590fi 3591 3592 3593test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3594printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3595as_fn_error $? "no acceptable C compiler found in \$PATH 3596See 'config.log' for more details" "$LINENO" 5; } 3597 3598# Provide some information about the compiler. 3599printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3600set X $ac_compile 3601ac_compiler=$2 3602for ac_option in --version -v -V -qversion -version; do 3603 { { ac_try="$ac_compiler $ac_option >&5" 3604case "(($ac_try" in 3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3606 *) ac_try_echo=$ac_try;; 3607esac 3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3609printf "%s\n" "$ac_try_echo"; } >&5 3610 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3611 ac_status=$? 3612 if test -s conftest.err; then 3613 sed '10a\ 3614... rest of stderr output deleted ... 3615 10q' conftest.err >conftest.er1 3616 cat conftest.er1 >&5 3617 fi 3618 rm -f conftest.er1 conftest.err 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3620 test $ac_status = 0; } 3621done 3622 3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625 3626int 3627main (void) 3628{ 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634ac_clean_files_save=$ac_clean_files 3635ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3636# Try to create an executable without -o first, disregard a.out. 3637# It will help us diagnose broken compilers, and finding out an intuition 3638# of exeext. 3639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3640printf %s "checking whether the C compiler works... " >&6; } 3641ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3642 3643# The possible output files: 3644ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3645 3646ac_rmfiles= 3647for ac_file in $ac_files 3648do 3649 case $ac_file in 3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3652 esac 3653done 3654rm -f $ac_rmfiles 3655 3656if { { ac_try="$ac_link_default" 3657case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660esac 3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3662printf "%s\n" "$ac_try_echo"; } >&5 3663 (eval "$ac_link_default") 2>&5 3664 ac_status=$? 3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3666 test $ac_status = 0; } 3667then : 3668 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3669# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3670# in a Makefile. We should not override ac_cv_exeext if it was cached, 3671# so that the user can short-circuit this test for compilers unknown to 3672# Autoconf. 3673for ac_file in $ac_files '' 3674do 3675 test -f "$ac_file" || continue 3676 case $ac_file in 3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3678 ;; 3679 [ab].out ) 3680 # We found the default executable, but exeext='' is most 3681 # certainly right. 3682 break;; 3683 *.* ) 3684 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3685 then :; else 3686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3687 fi 3688 # We set ac_cv_exeext here because the later test for it is not 3689 # safe: cross compilers may not add the suffix if given an '-o' 3690 # argument, so we may need to know it at that point already. 3691 # Even if this section looks crufty: it has the advantage of 3692 # actually working. 3693 break;; 3694 * ) 3695 break;; 3696 esac 3697done 3698test "$ac_cv_exeext" = no && ac_cv_exeext= 3699 3700else case e in #( 3701 e) ac_file='' ;; 3702esac 3703fi 3704if test -z "$ac_file" 3705then : 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707printf "%s\n" "no" >&6; } 3708printf "%s\n" "$as_me: failed program was:" >&5 3709sed 's/^/| /' conftest.$ac_ext >&5 3710 3711{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3712printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3713as_fn_error 77 "C compiler cannot create executables 3714See 'config.log' for more details" "$LINENO" 5; } 3715else case e in #( 3716 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3717printf "%s\n" "yes" >&6; } ;; 3718esac 3719fi 3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3721printf %s "checking for C compiler default output file name... " >&6; } 3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3723printf "%s\n" "$ac_file" >&6; } 3724ac_exeext=$ac_cv_exeext 3725 3726rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3727ac_clean_files=$ac_clean_files_save 3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3729printf %s "checking for suffix of executables... " >&6; } 3730if { { ac_try="$ac_link" 3731case "(($ac_try" in 3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3733 *) ac_try_echo=$ac_try;; 3734esac 3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3736printf "%s\n" "$ac_try_echo"; } >&5 3737 (eval "$ac_link") 2>&5 3738 ac_status=$? 3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3740 test $ac_status = 0; } 3741then : 3742 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3743# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3744# work properly (i.e., refer to 'conftest.exe'), while it won't with 3745# 'rm'. 3746for ac_file in conftest.exe conftest conftest.*; do 3747 test -f "$ac_file" || continue 3748 case $ac_file in 3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3751 break;; 3752 * ) break;; 3753 esac 3754done 3755else case e in #( 3756 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3757printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3758as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3759See 'config.log' for more details" "$LINENO" 5; } ;; 3760esac 3761fi 3762rm -f conftest conftest$ac_cv_exeext 3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3764printf "%s\n" "$ac_cv_exeext" >&6; } 3765 3766rm -f conftest.$ac_ext 3767EXEEXT=$ac_cv_exeext 3768ac_exeext=$EXEEXT 3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771#include <stdio.h> 3772int 3773main (void) 3774{ 3775FILE *f = fopen ("conftest.out", "w"); 3776 if (!f) 3777 return 1; 3778 return ferror (f) || fclose (f) != 0; 3779 3780 ; 3781 return 0; 3782} 3783_ACEOF 3784ac_clean_files="$ac_clean_files conftest.out" 3785# Check that the compiler produces executables we can run. If not, either 3786# the compiler is broken, or we cross compile. 3787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3788printf %s "checking whether we are cross compiling... " >&6; } 3789if test "$cross_compiling" != yes; then 3790 { { ac_try="$ac_link" 3791case "(($ac_try" in 3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3793 *) ac_try_echo=$ac_try;; 3794esac 3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3796printf "%s\n" "$ac_try_echo"; } >&5 3797 (eval "$ac_link") 2>&5 3798 ac_status=$? 3799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3800 test $ac_status = 0; } 3801 if { ac_try='./conftest$ac_cv_exeext' 3802 { { case "(($ac_try" in 3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3804 *) ac_try_echo=$ac_try;; 3805esac 3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3807printf "%s\n" "$ac_try_echo"; } >&5 3808 (eval "$ac_try") 2>&5 3809 ac_status=$? 3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3811 test $ac_status = 0; }; }; then 3812 cross_compiling=no 3813 else 3814 if test "$cross_compiling" = maybe; then 3815 cross_compiling=yes 3816 else 3817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3819as_fn_error 77 "cannot run C compiled programs. 3820If you meant to cross compile, use '--host'. 3821See 'config.log' for more details" "$LINENO" 5; } 3822 fi 3823 fi 3824fi 3825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3826printf "%s\n" "$cross_compiling" >&6; } 3827 3828rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3829 conftest.o conftest.obj conftest.out 3830ac_clean_files=$ac_clean_files_save 3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3832printf %s "checking for suffix of object files... " >&6; } 3833if test ${ac_cv_objext+y} 3834then : 3835 printf %s "(cached) " >&6 3836else case e in #( 3837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840int 3841main (void) 3842{ 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848rm -f conftest.o conftest.obj 3849if { { ac_try="$ac_compile" 3850case "(($ac_try" in 3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3852 *) ac_try_echo=$ac_try;; 3853esac 3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3855printf "%s\n" "$ac_try_echo"; } >&5 3856 (eval "$ac_compile") 2>&5 3857 ac_status=$? 3858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3859 test $ac_status = 0; } 3860then : 3861 for ac_file in conftest.o conftest.obj conftest.*; do 3862 test -f "$ac_file" || continue; 3863 case $ac_file in 3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3866 break;; 3867 esac 3868done 3869else case e in #( 3870 e) printf "%s\n" "$as_me: failed program was:" >&5 3871sed 's/^/| /' conftest.$ac_ext >&5 3872 3873{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3874printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3875as_fn_error $? "cannot compute suffix of object files: cannot compile 3876See 'config.log' for more details" "$LINENO" 5; } ;; 3877esac 3878fi 3879rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3880esac 3881fi 3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3883printf "%s\n" "$ac_cv_objext" >&6; } 3884OBJEXT=$ac_cv_objext 3885ac_objext=$OBJEXT 3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3887printf %s "checking whether the compiler supports GNU C... " >&6; } 3888if test ${ac_cv_c_compiler_gnu+y} 3889then : 3890 printf %s "(cached) " >&6 3891else case e in #( 3892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894 3895int 3896main (void) 3897{ 3898#ifndef __GNUC__ 3899 choke me 3900#endif 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906if ac_fn_c_try_compile "$LINENO" 3907then : 3908 ac_compiler_gnu=yes 3909else case e in #( 3910 e) ac_compiler_gnu=no ;; 3911esac 3912fi 3913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3914ac_cv_c_compiler_gnu=$ac_compiler_gnu 3915 ;; 3916esac 3917fi 3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3919printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3920ac_compiler_gnu=$ac_cv_c_compiler_gnu 3921 3922if test $ac_compiler_gnu = yes; then 3923 GCC=yes 3924else 3925 GCC= 3926fi 3927ac_test_CFLAGS=${CFLAGS+y} 3928ac_save_CFLAGS=$CFLAGS 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3930printf %s "checking whether $CC accepts -g... " >&6; } 3931if test ${ac_cv_prog_cc_g+y} 3932then : 3933 printf %s "(cached) " >&6 3934else case e in #( 3935 e) ac_save_c_werror_flag=$ac_c_werror_flag 3936 ac_c_werror_flag=yes 3937 ac_cv_prog_cc_g=no 3938 CFLAGS="-g" 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main (void) 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_compile "$LINENO" 3951then : 3952 ac_cv_prog_cc_g=yes 3953else case e in #( 3954 e) CFLAGS="" 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957 3958int 3959main (void) 3960{ 3961 3962 ; 3963 return 0; 3964} 3965_ACEOF 3966if ac_fn_c_try_compile "$LINENO" 3967then : 3968 3969else case e in #( 3970 e) ac_c_werror_flag=$ac_save_c_werror_flag 3971 CFLAGS="-g" 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974 3975int 3976main (void) 3977{ 3978 3979 ; 3980 return 0; 3981} 3982_ACEOF 3983if ac_fn_c_try_compile "$LINENO" 3984then : 3985 ac_cv_prog_cc_g=yes 3986fi 3987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3988esac 3989fi 3990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3991esac 3992fi 3993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3994 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3995esac 3996fi 3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3998printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3999if test $ac_test_CFLAGS; then 4000 CFLAGS=$ac_save_CFLAGS 4001elif test $ac_cv_prog_cc_g = yes; then 4002 if test "$GCC" = yes; then 4003 CFLAGS="-g -O2" 4004 else 4005 CFLAGS="-g" 4006 fi 4007else 4008 if test "$GCC" = yes; then 4009 CFLAGS="-O2" 4010 else 4011 CFLAGS= 4012 fi 4013fi 4014ac_prog_cc_stdc=no 4015if test x$ac_prog_cc_stdc = xno 4016then : 4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4018printf %s "checking for $CC option to enable C11 features... " >&6; } 4019if test ${ac_cv_prog_cc_c11+y} 4020then : 4021 printf %s "(cached) " >&6 4022else case e in #( 4023 e) ac_cv_prog_cc_c11=no 4024ac_save_CC=$CC 4025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4026/* end confdefs.h. */ 4027$ac_c_conftest_c11_program 4028_ACEOF 4029for ac_arg in '' -std=gnu11 4030do 4031 CC="$ac_save_CC $ac_arg" 4032 if ac_fn_c_try_compile "$LINENO" 4033then : 4034 ac_cv_prog_cc_c11=$ac_arg 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.beam 4037 test "x$ac_cv_prog_cc_c11" != "xno" && break 4038done 4039rm -f conftest.$ac_ext 4040CC=$ac_save_CC ;; 4041esac 4042fi 4043 4044if test "x$ac_cv_prog_cc_c11" = xno 4045then : 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4047printf "%s\n" "unsupported" >&6; } 4048else case e in #( 4049 e) if test "x$ac_cv_prog_cc_c11" = x 4050then : 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4052printf "%s\n" "none needed" >&6; } 4053else case e in #( 4054 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4055printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4056 CC="$CC $ac_cv_prog_cc_c11" ;; 4057esac 4058fi 4059 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4060 ac_prog_cc_stdc=c11 ;; 4061esac 4062fi 4063fi 4064if test x$ac_prog_cc_stdc = xno 4065then : 4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4067printf %s "checking for $CC option to enable C99 features... " >&6; } 4068if test ${ac_cv_prog_cc_c99+y} 4069then : 4070 printf %s "(cached) " >&6 4071else case e in #( 4072 e) ac_cv_prog_cc_c99=no 4073ac_save_CC=$CC 4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076$ac_c_conftest_c99_program 4077_ACEOF 4078for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4079do 4080 CC="$ac_save_CC $ac_arg" 4081 if ac_fn_c_try_compile "$LINENO" 4082then : 4083 ac_cv_prog_cc_c99=$ac_arg 4084fi 4085rm -f core conftest.err conftest.$ac_objext conftest.beam 4086 test "x$ac_cv_prog_cc_c99" != "xno" && break 4087done 4088rm -f conftest.$ac_ext 4089CC=$ac_save_CC ;; 4090esac 4091fi 4092 4093if test "x$ac_cv_prog_cc_c99" = xno 4094then : 4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4096printf "%s\n" "unsupported" >&6; } 4097else case e in #( 4098 e) if test "x$ac_cv_prog_cc_c99" = x 4099then : 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4101printf "%s\n" "none needed" >&6; } 4102else case e in #( 4103 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4104printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4105 CC="$CC $ac_cv_prog_cc_c99" ;; 4106esac 4107fi 4108 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4109 ac_prog_cc_stdc=c99 ;; 4110esac 4111fi 4112fi 4113if test x$ac_prog_cc_stdc = xno 4114then : 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4116printf %s "checking for $CC option to enable C89 features... " >&6; } 4117if test ${ac_cv_prog_cc_c89+y} 4118then : 4119 printf %s "(cached) " >&6 4120else case e in #( 4121 e) ac_cv_prog_cc_c89=no 4122ac_save_CC=$CC 4123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125$ac_c_conftest_c89_program 4126_ACEOF 4127for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4128do 4129 CC="$ac_save_CC $ac_arg" 4130 if ac_fn_c_try_compile "$LINENO" 4131then : 4132 ac_cv_prog_cc_c89=$ac_arg 4133fi 4134rm -f core conftest.err conftest.$ac_objext conftest.beam 4135 test "x$ac_cv_prog_cc_c89" != "xno" && break 4136done 4137rm -f conftest.$ac_ext 4138CC=$ac_save_CC ;; 4139esac 4140fi 4141 4142if test "x$ac_cv_prog_cc_c89" = xno 4143then : 4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4145printf "%s\n" "unsupported" >&6; } 4146else case e in #( 4147 e) if test "x$ac_cv_prog_cc_c89" = x 4148then : 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4150printf "%s\n" "none needed" >&6; } 4151else case e in #( 4152 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4153printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4154 CC="$CC $ac_cv_prog_cc_c89" ;; 4155esac 4156fi 4157 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4158 ac_prog_cc_stdc=c89 ;; 4159esac 4160fi 4161fi 4162 4163ac_ext=c 4164ac_cpp='$CPP $CPPFLAGS' 4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4167ac_compiler_gnu=$ac_cv_c_compiler_gnu 4168 4169 4170 ac_ext=c 4171ac_cpp='$CPP $CPPFLAGS' 4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4174ac_compiler_gnu=$ac_cv_c_compiler_gnu 4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4176printf %s "checking whether $CC understands -c and -o together... " >&6; } 4177if test ${am_cv_prog_cc_c_o+y} 4178then : 4179 printf %s "(cached) " >&6 4180else case e in #( 4181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183 4184int 4185main (void) 4186{ 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192 # Make sure it works both with $CC and with simple cc. 4193 # Following AC_PROG_CC_C_O, we do the test twice because some 4194 # compilers refuse to overwrite an existing .o file with -o, 4195 # though they will create one. 4196 am_cv_prog_cc_c_o=yes 4197 for am_i in 1 2; do 4198 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4199 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4200 ac_status=$? 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); } \ 4203 && test -f conftest2.$ac_objext; then 4204 : OK 4205 else 4206 am_cv_prog_cc_c_o=no 4207 break 4208 fi 4209 done 4210 rm -f core conftest* 4211 unset am_i ;; 4212esac 4213fi 4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4215printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4216if test "$am_cv_prog_cc_c_o" != yes; then 4217 # Losing compiler, so override with the script. 4218 # FIXME: It is wrong to rewrite CC. 4219 # But if we don't then we get into trouble of one sort or another. 4220 # A longer-term fix would be to have automake use am__CC in this case, 4221 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4222 CC="$am_aux_dir/compile $CC" 4223fi 4224ac_ext=c 4225ac_cpp='$CPP $CPPFLAGS' 4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4228ac_compiler_gnu=$ac_cv_c_compiler_gnu 4229 4230 4231 4232ac_header= ac_cache= 4233for ac_item in $ac_header_c_list 4234do 4235 if test $ac_cache; then 4236 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4237 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4238 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4239 fi 4240 ac_header= ac_cache= 4241 elif test $ac_header; then 4242 ac_cache=$ac_item 4243 else 4244 ac_header=$ac_item 4245 fi 4246done 4247 4248 4249 4250 4251 4252 4253 4254 4255if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4256then : 4257 4258printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4259 4260fi 4261 4262 4263 4264 4265 4266 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4268printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4269if test ${ac_cv_safe_to_define___extensions__+y} 4270then : 4271 printf %s "(cached) " >&6 4272else case e in #( 4273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4274/* end confdefs.h. */ 4275 4276# define __EXTENSIONS__ 1 4277 $ac_includes_default 4278int 4279main (void) 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286if ac_fn_c_try_compile "$LINENO" 4287then : 4288 ac_cv_safe_to_define___extensions__=yes 4289else case e in #( 4290 e) ac_cv_safe_to_define___extensions__=no ;; 4291esac 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4294esac 4295fi 4296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4297printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4298 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4300printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4301if test ${ac_cv_should_define__xopen_source+y} 4302then : 4303 printf %s "(cached) " >&6 4304else case e in #( 4305 e) ac_cv_should_define__xopen_source=no 4306 if test $ac_cv_header_wchar_h = yes 4307then : 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310 4311 #include <wchar.h> 4312 mbstate_t x; 4313int 4314main (void) 4315{ 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO" 4322then : 4323 4324else case e in #( 4325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328 #define _XOPEN_SOURCE 500 4329 #include <wchar.h> 4330 mbstate_t x; 4331int 4332main (void) 4333{ 4334 4335 ; 4336 return 0; 4337} 4338_ACEOF 4339if ac_fn_c_try_compile "$LINENO" 4340then : 4341 ac_cv_should_define__xopen_source=yes 4342fi 4343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4344esac 4345fi 4346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4347fi ;; 4348esac 4349fi 4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4351printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4352 4353 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4354 4355 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4356 4357 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4358 4359 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4360 4361 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4362 4363 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4364 4365 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4366 4367 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4368 4369 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4370 4371 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4372 4373 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4374 4375 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4376 4377 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4378 4379 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4380 4381 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4382 4383 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4384 4385 if test $ac_cv_header_minix_config_h = yes 4386then : 4387 MINIX=yes 4388 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4389 4390 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4391 4392 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4393 4394else case e in #( 4395 e) MINIX= ;; 4396esac 4397fi 4398 if test $ac_cv_safe_to_define___extensions__ = yes 4399then : 4400 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4401 4402fi 4403 if test $ac_cv_should_define__xopen_source = yes 4404then : 4405 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4406 4407fi 4408 4409 4410# Initialize Automake 4411am__api_version='1.17' 4412 4413 4414 # Find a good install program. We prefer a C program (faster), 4415# so one script is as good as another. But avoid the broken or 4416# incompatible versions: 4417# SysV /etc/install, /usr/sbin/install 4418# SunOS /usr/etc/install 4419# IRIX /sbin/install 4420# AIX /bin/install 4421# AmigaOS /C/install, which installs bootblocks on floppy discs 4422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4423# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4425# OS/2's system install, which has a completely different semantic 4426# ./install, which can be erroneously created by make from ./install.sh. 4427# Reject install programs that cannot install multiple files. 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4429printf %s "checking for a BSD-compatible install... " >&6; } 4430if test -z "$INSTALL"; then 4431if test ${ac_cv_path_install+y} 4432then : 4433 printf %s "(cached) " >&6 4434else case e in #( 4435 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4436for as_dir in $PATH 4437do 4438 IFS=$as_save_IFS 4439 case $as_dir in #((( 4440 '') as_dir=./ ;; 4441 */) ;; 4442 *) as_dir=$as_dir/ ;; 4443 esac 4444 # Account for fact that we put trailing slashes in our PATH walk. 4445case $as_dir in #(( 4446 ./ | /[cC]/* | \ 4447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4448 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4449 /usr/ucb/* ) ;; 4450 *) 4451 # OSF1 and SCO ODT 3.0 have their own names for install. 4452 # Don't use installbsd from OSF since it installs stuff as root 4453 # by default. 4454 for ac_prog in ginstall scoinst install; do 4455 for ac_exec_ext in '' $ac_executable_extensions; do 4456 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4457 if test $ac_prog = install && 4458 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4459 # AIX install. It has an incompatible calling convention. 4460 : 4461 elif test $ac_prog = install && 4462 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4463 # program-specific install script used by HP pwplus--don't use. 4464 : 4465 else 4466 rm -rf conftest.one conftest.two conftest.dir 4467 echo one > conftest.one 4468 echo two > conftest.two 4469 mkdir conftest.dir 4470 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4471 test -s conftest.one && test -s conftest.two && 4472 test -s conftest.dir/conftest.one && 4473 test -s conftest.dir/conftest.two 4474 then 4475 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4476 break 3 4477 fi 4478 fi 4479 fi 4480 done 4481 done 4482 ;; 4483esac 4484 4485 done 4486IFS=$as_save_IFS 4487 4488rm -rf conftest.one conftest.two conftest.dir 4489 ;; 4490esac 4491fi 4492 if test ${ac_cv_path_install+y}; then 4493 INSTALL=$ac_cv_path_install 4494 else 4495 # As a last resort, use the slow shell script. Don't cache a 4496 # value for INSTALL within a source directory, because that will 4497 # break other packages using the cache if that directory is 4498 # removed, or if the value is a relative name. 4499 INSTALL=$ac_install_sh 4500 fi 4501fi 4502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4503printf "%s\n" "$INSTALL" >&6; } 4504 4505# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4506# It thinks the first close brace ends the variable substitution. 4507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4508 4509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4510 4511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4512 4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4514printf %s "checking whether sleep supports fractional seconds... " >&6; } 4515if test ${am_cv_sleep_fractional_seconds+y} 4516then : 4517 printf %s "(cached) " >&6 4518else case e in #( 4519 e) if sleep 0.001 2>/dev/null 4520then : 4521 am_cv_sleep_fractional_seconds=yes 4522else case e in #( 4523 e) am_cv_sleep_fractional_seconds=no ;; 4524esac 4525fi 4526 ;; 4527esac 4528fi 4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4530printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4531 4532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4533printf %s "checking filesystem timestamp resolution... " >&6; } 4534if test ${am_cv_filesystem_timestamp_resolution+y} 4535then : 4536 printf %s "(cached) " >&6 4537else case e in #( 4538 e) # Default to the worst case. 4539am_cv_filesystem_timestamp_resolution=2 4540 4541# Only try to go finer than 1 sec if sleep can do it. 4542# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4543# - 1 sec is not much of a win compared to 2 sec, and 4544# - it takes 2 seconds to perform the test whether 1 sec works. 4545# 4546# Instead, just use the default 2s on platforms that have 1s resolution, 4547# accept the extra 1s delay when using $sleep in the Automake tests, in 4548# exchange for not incurring the 2s delay for running the test for all 4549# packages. 4550# 4551am_try_resolutions= 4552if test "$am_cv_sleep_fractional_seconds" = yes; then 4553 # Even a millisecond often causes a bunch of false positives, 4554 # so just try a hundredth of a second. The time saved between .001 and 4555 # .01 is not terribly consequential. 4556 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4557fi 4558 4559# In order to catch current-generation FAT out, we must *modify* files 4560# that already exist; the *creation* timestamp is finer. Use names 4561# that make ls -t sort them differently when they have equal 4562# timestamps than when they have distinct timestamps, keeping 4563# in mind that ls -t prints the *newest* file first. 4564rm -f conftest.ts? 4565: > conftest.ts1 4566: > conftest.ts2 4567: > conftest.ts3 4568 4569# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4570# clobber the current shell's arguments. (Outer-level square brackets 4571# are removed by m4; they're present so that m4 does not expand 4572# <dollar><star>; be careful, easy to get confused.) 4573if ( 4574 set X `ls -t conftest.ts[12]` && 4575 { 4576 test "$*" != "X conftest.ts1 conftest.ts2" || 4577 test "$*" != "X conftest.ts2 conftest.ts1"; 4578 } 4579); then :; else 4580 # If neither matched, then we have a broken ls. This can happen 4581 # if, for instance, CONFIG_SHELL is bash and it inherits a 4582 # broken ls alias from the environment. This has actually 4583 # happened. Such a system could not be considered "sane". 4584 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4586printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4587as_fn_error $? "ls -t produces unexpected output. 4588Make sure there is not a broken ls alias in your environment. 4589See 'config.log' for more details" "$LINENO" 5; } 4590fi 4591 4592for am_try_res in $am_try_resolutions; do 4593 # Any one fine-grained sleep might happen to cross the boundary 4594 # between two values of a coarser actual resolution, but if we do 4595 # two fine-grained sleeps in a row, at least one of them will fall 4596 # entirely within a coarse interval. 4597 echo alpha > conftest.ts1 4598 sleep $am_try_res 4599 echo beta > conftest.ts2 4600 sleep $am_try_res 4601 echo gamma > conftest.ts3 4602 4603 # We assume that 'ls -t' will make use of high-resolution 4604 # timestamps if the operating system supports them at all. 4605 if (set X `ls -t conftest.ts?` && 4606 test "$2" = conftest.ts3 && 4607 test "$3" = conftest.ts2 && 4608 test "$4" = conftest.ts1); then 4609 # 4610 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4611 # because we don't need to test make. 4612 make_ok=true 4613 if test $am_try_res != 1; then 4614 # But if we've succeeded so far with a subsecond resolution, we 4615 # have one more thing to check: make. It can happen that 4616 # everything else supports the subsecond mtimes, but make doesn't; 4617 # notably on macOS, which ships make 3.81 from 2006 (the last one 4618 # released under GPLv2). https://bugs.gnu.org/68808 4619 # 4620 # We test $MAKE if it is defined in the environment, else "make". 4621 # It might get overridden later, but our hope is that in practice 4622 # it does not matter: it is the system "make" which is (by far) 4623 # the most likely to be broken, whereas if the user overrides it, 4624 # probably they did so with a better, or at least not worse, make. 4625 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4626 # 4627 # Create a Makefile (real tab character here): 4628 rm -f conftest.mk 4629 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4630 echo ' touch conftest.ts2' >>conftest.mk 4631 # 4632 # Now, running 4633 # touch conftest.ts1; touch conftest.ts2; make 4634 # should touch ts1 because ts2 is newer. This could happen by luck, 4635 # but most often, it will fail if make's support is insufficient. So 4636 # test for several consecutive successes. 4637 # 4638 # (We reuse conftest.ts[12] because we still want to modify existing 4639 # files, not create new ones, per above.) 4640 n=0 4641 make=${MAKE-make} 4642 until test $n -eq 3; do 4643 echo one > conftest.ts1 4644 sleep $am_try_res 4645 echo two > conftest.ts2 # ts2 should now be newer than ts1 4646 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4647 make_ok=false 4648 break # out of $n loop 4649 fi 4650 n=`expr $n + 1` 4651 done 4652 fi 4653 # 4654 if $make_ok; then 4655 # Everything we know to check worked out, so call this resolution good. 4656 am_cv_filesystem_timestamp_resolution=$am_try_res 4657 break # out of $am_try_res loop 4658 fi 4659 # Otherwise, we'll go on to check the next resolution. 4660 fi 4661done 4662rm -f conftest.ts? 4663# (end _am_filesystem_timestamp_resolution) 4664 ;; 4665esac 4666fi 4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4668printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4669 4670# This check should not be cached, as it may vary across builds of 4671# different projects. 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4673printf %s "checking whether build environment is sane... " >&6; } 4674# Reject unsafe characters in $srcdir or the absolute working directory 4675# name. Accept space and tab only in the latter. 4676am_lf=' 4677' 4678case `pwd` in 4679 *[\\\"\#\$\&\'\`$am_lf]*) 4680 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4681esac 4682case $srcdir in 4683 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4684 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4685esac 4686 4687# Do 'set' in a subshell so we don't clobber the current shell's 4688# arguments. Must try -L first in case configure is actually a 4689# symlink; some systems play weird games with the mod time of symlinks 4690# (eg FreeBSD returns the mod time of the symlink's containing 4691# directory). 4692am_build_env_is_sane=no 4693am_has_slept=no 4694rm -f conftest.file 4695for am_try in 1 2; do 4696 echo "timestamp, slept: $am_has_slept" > conftest.file 4697 if ( 4698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4699 if test "$*" = "X"; then 4700 # -L didn't work. 4701 set X `ls -t "$srcdir/configure" conftest.file` 4702 fi 4703 test "$2" = conftest.file 4704 ); then 4705 am_build_env_is_sane=yes 4706 break 4707 fi 4708 # Just in case. 4709 sleep "$am_cv_filesystem_timestamp_resolution" 4710 am_has_slept=yes 4711done 4712 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4714printf "%s\n" "$am_build_env_is_sane" >&6; } 4715if test "$am_build_env_is_sane" = no; then 4716 as_fn_error $? "newly created file is older than distributed files! 4717Check your system clock" "$LINENO" 5 4718fi 4719 4720# If we didn't sleep, we still need to ensure time stamps of config.status and 4721# generated files are strictly newer. 4722am_sleep_pid= 4723if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4724then : 4725 4726else case e in #( 4727 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4728 am_sleep_pid=$! 4729 ;; 4730esac 4731fi 4732 4733rm -f conftest.file 4734 4735test "$program_prefix" != NONE && 4736 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4737# Use a double $ so make ignores it. 4738test "$program_suffix" != NONE && 4739 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4740# Double any \ or $. 4741# By default was 's,x,x', remove it if useless. 4742ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4743program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4744 4745 4746 if test x"${MISSING+set}" != xset; then 4747 MISSING="\${SHELL} '$am_aux_dir/missing'" 4748fi 4749# Use eval to expand $SHELL 4750if eval "$MISSING --is-lightweight"; then 4751 am_missing_run="$MISSING " 4752else 4753 am_missing_run= 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4755printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4756fi 4757 4758if test x"${install_sh+set}" != xset; then 4759 case $am_aux_dir in 4760 *\ * | *\ *) 4761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4762 *) 4763 install_sh="\${SHELL} $am_aux_dir/install-sh" 4764 esac 4765fi 4766 4767# Installed binaries are usually stripped using 'strip' when the user 4768# run "make install-strip". However 'strip' might not be the right 4769# tool to use in cross-compilation environments, therefore Automake 4770# will honor the 'STRIP' environment variable to overrule this program. 4771if test "$cross_compiling" != no; then 4772 if test -n "$ac_tool_prefix"; then 4773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4774set dummy ${ac_tool_prefix}strip; ac_word=$2 4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4776printf %s "checking for $ac_word... " >&6; } 4777if test ${ac_cv_prog_STRIP+y} 4778then : 4779 printf %s "(cached) " >&6 4780else case e in #( 4781 e) if test -n "$STRIP"; then 4782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4783else 4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 case $as_dir in #((( 4789 '') as_dir=./ ;; 4790 */) ;; 4791 *) as_dir=$as_dir/ ;; 4792 esac 4793 for ac_exec_ext in '' $ac_executable_extensions; do 4794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4795 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4797 break 2 4798 fi 4799done 4800 done 4801IFS=$as_save_IFS 4802 4803fi ;; 4804esac 4805fi 4806STRIP=$ac_cv_prog_STRIP 4807if test -n "$STRIP"; then 4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4809printf "%s\n" "$STRIP" >&6; } 4810else 4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4812printf "%s\n" "no" >&6; } 4813fi 4814 4815 4816fi 4817if test -z "$ac_cv_prog_STRIP"; then 4818 ac_ct_STRIP=$STRIP 4819 # Extract the first word of "strip", so it can be a program name with args. 4820set dummy strip; ac_word=$2 4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4822printf %s "checking for $ac_word... " >&6; } 4823if test ${ac_cv_prog_ac_ct_STRIP+y} 4824then : 4825 printf %s "(cached) " >&6 4826else case e in #( 4827 e) if test -n "$ac_ct_STRIP"; then 4828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4829else 4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831for as_dir in $PATH 4832do 4833 IFS=$as_save_IFS 4834 case $as_dir in #((( 4835 '') as_dir=./ ;; 4836 */) ;; 4837 *) as_dir=$as_dir/ ;; 4838 esac 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4841 ac_cv_prog_ac_ct_STRIP="strip" 4842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4843 break 2 4844 fi 4845done 4846 done 4847IFS=$as_save_IFS 4848 4849fi ;; 4850esac 4851fi 4852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4853if test -n "$ac_ct_STRIP"; then 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4855printf "%s\n" "$ac_ct_STRIP" >&6; } 4856else 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4858printf "%s\n" "no" >&6; } 4859fi 4860 4861 if test "x$ac_ct_STRIP" = x; then 4862 STRIP=":" 4863 else 4864 case $cross_compiling:$ac_tool_warned in 4865yes:) 4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4867printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4868ac_tool_warned=yes ;; 4869esac 4870 STRIP=$ac_ct_STRIP 4871 fi 4872else 4873 STRIP="$ac_cv_prog_STRIP" 4874fi 4875 4876fi 4877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4878 4879 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4881printf %s "checking for a race-free mkdir -p... " >&6; } 4882if test -z "$MKDIR_P"; then 4883 if test ${ac_cv_path_mkdir+y} 4884then : 4885 printf %s "(cached) " >&6 4886else case e in #( 4887 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4889do 4890 IFS=$as_save_IFS 4891 case $as_dir in #((( 4892 '') as_dir=./ ;; 4893 */) ;; 4894 *) as_dir=$as_dir/ ;; 4895 esac 4896 for ac_prog in mkdir gmkdir; do 4897 for ac_exec_ext in '' $ac_executable_extensions; do 4898 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4899 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4900 'mkdir ('*'coreutils) '* | \ 4901 *'BusyBox '* | \ 4902 'mkdir (fileutils) '4.1*) 4903 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4904 break 3;; 4905 esac 4906 done 4907 done 4908 done 4909IFS=$as_save_IFS 4910 ;; 4911esac 4912fi 4913 4914 test -d ./--version && rmdir ./--version 4915 if test ${ac_cv_path_mkdir+y}; then 4916 MKDIR_P="$ac_cv_path_mkdir -p" 4917 else 4918 # As a last resort, use plain mkdir -p, 4919 # in the hope it doesn't have the bugs of ancient mkdir. 4920 MKDIR_P='mkdir -p' 4921 fi 4922fi 4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4924printf "%s\n" "$MKDIR_P" >&6; } 4925 4926for ac_prog in gawk mawk nawk awk 4927do 4928 # Extract the first word of "$ac_prog", so it can be a program name with args. 4929set dummy $ac_prog; ac_word=$2 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4931printf %s "checking for $ac_word... " >&6; } 4932if test ${ac_cv_prog_AWK+y} 4933then : 4934 printf %s "(cached) " >&6 4935else case e in #( 4936 e) if test -n "$AWK"; then 4937 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4938else 4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4940for as_dir in $PATH 4941do 4942 IFS=$as_save_IFS 4943 case $as_dir in #((( 4944 '') as_dir=./ ;; 4945 */) ;; 4946 *) as_dir=$as_dir/ ;; 4947 esac 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4950 ac_cv_prog_AWK="$ac_prog" 4951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4952 break 2 4953 fi 4954done 4955 done 4956IFS=$as_save_IFS 4957 4958fi ;; 4959esac 4960fi 4961AWK=$ac_cv_prog_AWK 4962if test -n "$AWK"; then 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4964printf "%s\n" "$AWK" >&6; } 4965else 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4967printf "%s\n" "no" >&6; } 4968fi 4969 4970 4971 test -n "$AWK" && break 4972done 4973 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4975printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4976set x ${MAKE-make} 4977ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4978if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4979then : 4980 printf %s "(cached) " >&6 4981else case e in #( 4982 e) cat >conftest.make <<\_ACEOF 4983SHELL = /bin/sh 4984all: 4985 @echo '@@@%%%=$(MAKE)=@@@%%%' 4986_ACEOF 4987# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4988case `${MAKE-make} -f conftest.make 2>/dev/null` in 4989 *@@@%%%=?*=@@@%%%*) 4990 eval ac_cv_prog_make_${ac_make}_set=yes;; 4991 *) 4992 eval ac_cv_prog_make_${ac_make}_set=no;; 4993esac 4994rm -f conftest.make ;; 4995esac 4996fi 4997if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4999printf "%s\n" "yes" >&6; } 5000 SET_MAKE= 5001else 5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003printf "%s\n" "no" >&6; } 5004 SET_MAKE="MAKE=${MAKE-make}" 5005fi 5006 5007rm -rf .tst 2>/dev/null 5008mkdir .tst 2>/dev/null 5009if test -d .tst; then 5010 am__leading_dot=. 5011else 5012 am__leading_dot=_ 5013fi 5014rmdir .tst 2>/dev/null 5015 5016DEPDIR="${am__leading_dot}deps" 5017 5018ac_config_commands="$ac_config_commands depfiles" 5019 5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5021printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5022cat > confinc.mk << 'END' 5023am__doit: 5024 @echo this is the am__doit target >confinc.out 5025.PHONY: am__doit 5026END 5027am__include="#" 5028am__quote= 5029# BSD make does it like this. 5030echo '.include "confinc.mk" # ignored' > confmf.BSD 5031# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5032echo 'include confinc.mk # ignored' > confmf.GNU 5033_am_result=no 5034for s in GNU BSD; do 5035 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5036 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5037 ac_status=$? 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } 5040 case $?:`cat confinc.out 2>/dev/null` in #( 5041 '0:this is the am__doit target') : 5042 case $s in #( 5043 BSD) : 5044 am__include='.include' am__quote='"' ;; #( 5045 *) : 5046 am__include='include' am__quote='' ;; 5047esac ;; #( 5048 *) : 5049 ;; 5050esac 5051 if test "$am__include" != "#"; then 5052 _am_result="yes ($s style)" 5053 break 5054 fi 5055done 5056rm -f confinc.* confmf.* 5057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5058printf "%s\n" "${_am_result}" >&6; } 5059 5060# Check whether --enable-dependency-tracking was given. 5061if test ${enable_dependency_tracking+y} 5062then : 5063 enableval=$enable_dependency_tracking; 5064fi 5065 5066if test "x$enable_dependency_tracking" != xno; then 5067 am_depcomp="$ac_aux_dir/depcomp" 5068 AMDEPBACKSLASH='\' 5069 am__nodep='_no' 5070fi 5071 if test "x$enable_dependency_tracking" != xno; then 5072 AMDEP_TRUE= 5073 AMDEP_FALSE='#' 5074else 5075 AMDEP_TRUE='#' 5076 AMDEP_FALSE= 5077fi 5078 5079 5080AM_DEFAULT_VERBOSITY=1 5081# Check whether --enable-silent-rules was given. 5082if test ${enable_silent_rules+y} 5083then : 5084 enableval=$enable_silent_rules; 5085fi 5086 5087am_make=${MAKE-make} 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5089printf %s "checking whether $am_make supports nested variables... " >&6; } 5090if test ${am_cv_make_support_nested_variables+y} 5091then : 5092 printf %s "(cached) " >&6 5093else case e in #( 5094 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 5095BAR0=false 5096BAR1=true 5097V=1 5098am__doit: 5099 @$(TRUE) 5100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5101 am_cv_make_support_nested_variables=yes 5102else 5103 am_cv_make_support_nested_variables=no 5104fi ;; 5105esac 5106fi 5107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5108printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 5109AM_BACKSLASH='\' 5110 5111am__rm_f_notfound= 5112if (rm -f && rm -fr && rm -rf) 2>/dev/null 5113then : 5114 5115else case e in #( 5116 e) am__rm_f_notfound='""' ;; 5117esac 5118fi 5119 5120 5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 5122printf %s "checking xargs -n works... " >&6; } 5123if test ${am_cv_xargs_n_works+y} 5124then : 5125 printf %s "(cached) " >&6 5126else case e in #( 5127 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 51283" 5129then : 5130 am_cv_xargs_n_works=yes 5131else case e in #( 5132 e) am_cv_xargs_n_works=no ;; 5133esac 5134fi ;; 5135esac 5136fi 5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 5138printf "%s\n" "$am_cv_xargs_n_works" >&6; } 5139if test "$am_cv_xargs_n_works" = yes 5140then : 5141 am__xargs_n='xargs -n' 5142else case e in #( 5143 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 5144 ;; 5145esac 5146fi 5147 5148if test "`cd $srcdir && pwd`" != "`pwd`"; then 5149 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5150 # is not polluted with repeated "-I." 5151 am__isrc=' -I$(srcdir)' 5152 # test to see if srcdir already configured 5153 if test -f $srcdir/config.status; then 5154 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5155 fi 5156fi 5157 5158# test whether we have cygpath 5159if test -z "$CYGPATH_W"; then 5160 if (cygpath --version) >/dev/null 2>/dev/null; then 5161 CYGPATH_W='cygpath -w' 5162 else 5163 CYGPATH_W=echo 5164 fi 5165fi 5166 5167 5168# Define the identity of the package. 5169 PACKAGE='libX11' 5170 VERSION='1.8.10' 5171 5172 5173printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 5174 5175 5176printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 5177 5178# Some tools Automake needs. 5179 5180ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5181 5182 5183AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5184 5185 5186AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5187 5188 5189AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5190 5191 5192MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5193 5194# For better backward compatibility. To be removed once Automake 1.9.x 5195# dies out for good. For more background, see: 5196# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5197# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5198mkdir_p='$(MKDIR_P)' 5199 5200# We need awk for the "check" target (and possibly the TAP driver). The 5201# system "awk" is bad on some platforms. 5202# Always define AMTAR for backward compatibility. Yes, it's still used 5203# in the wild :-( We should find a proper way to deprecate it ... 5204AMTAR='$${TAR-tar}' 5205 5206 5207# We'll loop over all known methods to create a tar archive until one works. 5208_am_tools='gnutar pax cpio none' 5209 5210am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5211 5212 5213 5214 5215 5216depcc="$CC" am_compiler_list= 5217 5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5219printf %s "checking dependency style of $depcc... " >&6; } 5220if test ${am_cv_CC_dependencies_compiler_type+y} 5221then : 5222 printf %s "(cached) " >&6 5223else case e in #( 5224 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5225 # We make a subdir and do the tests there. Otherwise we can end up 5226 # making bogus files that we don't know about and never remove. For 5227 # instance it was reported that on HP-UX the gcc test will end up 5228 # making a dummy file named 'D' -- because '-MD' means "put the output 5229 # in D". 5230 rm -rf conftest.dir 5231 mkdir conftest.dir 5232 # Copy depcomp to subdir because otherwise we won't find it if we're 5233 # using a relative directory. 5234 cp "$am_depcomp" conftest.dir 5235 cd conftest.dir 5236 # We will build objects and dependencies in a subdirectory because 5237 # it helps to detect inapplicable dependency modes. For instance 5238 # both Tru64's cc and ICC support -MD to output dependencies as a 5239 # side effect of compilation, but ICC will put the dependencies in 5240 # the current directory while Tru64 will put them in the object 5241 # directory. 5242 mkdir sub 5243 5244 am_cv_CC_dependencies_compiler_type=none 5245 if test "$am_compiler_list" = ""; then 5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5247 fi 5248 am__universal=false 5249 case " $depcc " in #( 5250 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5251 esac 5252 5253 for depmode in $am_compiler_list; do 5254 # Setup a source with many dependencies, because some compilers 5255 # like to wrap large dependency lists on column 80 (with \), and 5256 # we should not choose a depcomp mode which is confused by this. 5257 # 5258 # We need to recreate these files for each test, as the compiler may 5259 # overwrite some of them when testing with obscure command lines. 5260 # This happens at least with the AIX C compiler. 5261 : > sub/conftest.c 5262 for i in 1 2 3 4 5 6; do 5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5265 # Solaris 10 /bin/sh. 5266 echo '/* dummy */' > sub/conftst$i.h 5267 done 5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5269 5270 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5271 # mode. It turns out that the SunPro C++ compiler does not properly 5272 # handle '-M -o', and we need to detect this. Also, some Intel 5273 # versions had trouble with output in subdirs. 5274 am__obj=sub/conftest.${OBJEXT-o} 5275 am__minus_obj="-o $am__obj" 5276 case $depmode in 5277 gcc) 5278 # This depmode causes a compiler race in universal mode. 5279 test "$am__universal" = false || continue 5280 ;; 5281 nosideeffect) 5282 # After this tag, mechanisms are not by side-effect, so they'll 5283 # only be used when explicitly requested. 5284 if test "x$enable_dependency_tracking" = xyes; then 5285 continue 5286 else 5287 break 5288 fi 5289 ;; 5290 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5291 # This compiler won't grok '-c -o', but also, the minuso test has 5292 # not run yet. These depmodes are late enough in the game, and 5293 # so weak that their functioning should not be impacted. 5294 am__obj=conftest.${OBJEXT-o} 5295 am__minus_obj= 5296 ;; 5297 none) break ;; 5298 esac 5299 if depmode=$depmode \ 5300 source=sub/conftest.c object=$am__obj \ 5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5303 >/dev/null 2>conftest.err && 5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5308 # icc doesn't choke on unknown options, it will just issue warnings 5309 # or remarks (even with -Werror). So we grep stderr for any message 5310 # that says an option was ignored or not supported. 5311 # When given -MP, icc 7.0 and 7.1 complain thus: 5312 # icc: Command line warning: ignoring option '-M'; no argument required 5313 # The diagnosis changed in icc 8.0: 5314 # icc: Command line remark: option '-MP' not supported 5315 if (grep 'ignoring option' conftest.err || 5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5317 am_cv_CC_dependencies_compiler_type=$depmode 5318 break 5319 fi 5320 fi 5321 done 5322 5323 cd .. 5324 rm -rf conftest.dir 5325else 5326 am_cv_CC_dependencies_compiler_type=none 5327fi 5328 ;; 5329esac 5330fi 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5332printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5333CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5334 5335 if 5336 test "x$enable_dependency_tracking" != xno \ 5337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5338 am__fastdepCC_TRUE= 5339 am__fastdepCC_FALSE='#' 5340else 5341 am__fastdepCC_TRUE='#' 5342 am__fastdepCC_FALSE= 5343fi 5344 5345 5346# Variables for tags utilities; see am/tags.am 5347if test -z "$CTAGS"; then 5348 CTAGS=ctags 5349fi 5350 5351if test -z "$ETAGS"; then 5352 ETAGS=etags 5353fi 5354 5355if test -z "$CSCOPE"; then 5356 CSCOPE=cscope 5357fi 5358 5359 5360 5361 5362 5363 5364 5365 5366# Initialize libtool 5367case `pwd` in 5368 *\ * | *\ *) 5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5370printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5371esac 5372 5373 5374 5375macro_version='2.4.7' 5376macro_revision='2.4.7' 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391ltmain=$ac_aux_dir/ltmain.sh 5392 5393# Backslashify metacharacters that are still active within 5394# double-quoted strings. 5395sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5396 5397# Same as above, but do not quote variable references. 5398double_quote_subst='s/\(["`\\]\)/\\\1/g' 5399 5400# Sed substitution to delay expansion of an escaped shell variable in a 5401# double_quote_subst'ed string. 5402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5403 5404# Sed substitution to delay expansion of an escaped single quote. 5405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5406 5407# Sed substitution to avoid accidental globbing in evaled expressions 5408no_glob_subst='s/\*/\\\*/g' 5409 5410ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5411ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5413 5414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5415printf %s "checking how to print strings... " >&6; } 5416# Test print first, because it will be a builtin if present. 5417if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5418 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5419 ECHO='print -r --' 5420elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5421 ECHO='printf %s\n' 5422else 5423 # Use this function as a fallback that always works. 5424 func_fallback_echo () 5425 { 5426 eval 'cat <<_LTECHO_EOF 5427$1 5428_LTECHO_EOF' 5429 } 5430 ECHO='func_fallback_echo' 5431fi 5432 5433# func_echo_all arg... 5434# Invoke $ECHO with all args, space-separated. 5435func_echo_all () 5436{ 5437 $ECHO "" 5438} 5439 5440case $ECHO in 5441 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5442printf "%s\n" "printf" >&6; } ;; 5443 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5444printf "%s\n" "print -r" >&6; } ;; 5445 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5446printf "%s\n" "cat" >&6; } ;; 5447esac 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5463printf %s "checking for a sed that does not truncate output... " >&6; } 5464if test ${ac_cv_path_SED+y} 5465then : 5466 printf %s "(cached) " >&6 5467else case e in #( 5468 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5469 for ac_i in 1 2 3 4 5 6 7; do 5470 ac_script="$ac_script$as_nl$ac_script" 5471 done 5472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5473 { ac_script=; unset ac_script;} 5474 if test -z "$SED"; then 5475 ac_path_SED_found=false 5476 # Loop through the user's path and test for each of PROGNAME-LIST 5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 case $as_dir in #((( 5482 '') as_dir=./ ;; 5483 */) ;; 5484 *) as_dir=$as_dir/ ;; 5485 esac 5486 for ac_prog in sed gsed 5487 do 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5490 as_fn_executable_p "$ac_path_SED" || continue 5491# Check for GNU ac_path_SED and select it if it is found. 5492 # Check for GNU $ac_path_SED 5493case `"$ac_path_SED" --version 2>&1` in #( 5494*GNU*) 5495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5496#( 5497*) 5498 ac_count=0 5499 printf %s 0123456789 >"conftest.in" 5500 while : 5501 do 5502 cat "conftest.in" "conftest.in" >"conftest.tmp" 5503 mv "conftest.tmp" "conftest.in" 5504 cp "conftest.in" "conftest.nl" 5505 printf "%s\n" '' >> "conftest.nl" 5506 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5508 as_fn_arith $ac_count + 1 && ac_count=$as_val 5509 if test $ac_count -gt ${ac_path_SED_max-0}; then 5510 # Best one so far, save it but keep looking for a better one 5511 ac_cv_path_SED="$ac_path_SED" 5512 ac_path_SED_max=$ac_count 5513 fi 5514 # 10*(2^10) chars as input seems more than enough 5515 test $ac_count -gt 10 && break 5516 done 5517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5518esac 5519 5520 $ac_path_SED_found && break 3 5521 done 5522 done 5523 done 5524IFS=$as_save_IFS 5525 if test -z "$ac_cv_path_SED"; then 5526 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5527 fi 5528else 5529 ac_cv_path_SED=$SED 5530fi 5531 ;; 5532esac 5533fi 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5535printf "%s\n" "$ac_cv_path_SED" >&6; } 5536 SED="$ac_cv_path_SED" 5537 rm -f conftest.sed 5538 5539test -z "$SED" && SED=sed 5540Xsed="$SED -e 1s/^X//" 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5553printf %s "checking for grep that handles long lines and -e... " >&6; } 5554if test ${ac_cv_path_GREP+y} 5555then : 5556 printf %s "(cached) " >&6 5557else case e in #( 5558 e) if test -z "$GREP"; then 5559 ac_path_GREP_found=false 5560 # Loop through the user's path and test for each of PROGNAME-LIST 5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5563do 5564 IFS=$as_save_IFS 5565 case $as_dir in #((( 5566 '') as_dir=./ ;; 5567 */) ;; 5568 *) as_dir=$as_dir/ ;; 5569 esac 5570 for ac_prog in grep ggrep 5571 do 5572 for ac_exec_ext in '' $ac_executable_extensions; do 5573 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5574 as_fn_executable_p "$ac_path_GREP" || continue 5575# Check for GNU ac_path_GREP and select it if it is found. 5576 # Check for GNU $ac_path_GREP 5577case `"$ac_path_GREP" --version 2>&1` in #( 5578*GNU*) 5579 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5580#( 5581*) 5582 ac_count=0 5583 printf %s 0123456789 >"conftest.in" 5584 while : 5585 do 5586 cat "conftest.in" "conftest.in" >"conftest.tmp" 5587 mv "conftest.tmp" "conftest.in" 5588 cp "conftest.in" "conftest.nl" 5589 printf "%s\n" 'GREP' >> "conftest.nl" 5590 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5592 as_fn_arith $ac_count + 1 && ac_count=$as_val 5593 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5594 # Best one so far, save it but keep looking for a better one 5595 ac_cv_path_GREP="$ac_path_GREP" 5596 ac_path_GREP_max=$ac_count 5597 fi 5598 # 10*(2^10) chars as input seems more than enough 5599 test $ac_count -gt 10 && break 5600 done 5601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5602esac 5603 5604 $ac_path_GREP_found && break 3 5605 done 5606 done 5607 done 5608IFS=$as_save_IFS 5609 if test -z "$ac_cv_path_GREP"; then 5610 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5611 fi 5612else 5613 ac_cv_path_GREP=$GREP 5614fi 5615 ;; 5616esac 5617fi 5618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5619printf "%s\n" "$ac_cv_path_GREP" >&6; } 5620 GREP="$ac_cv_path_GREP" 5621 5622 5623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5624printf %s "checking for egrep... " >&6; } 5625if test ${ac_cv_path_EGREP+y} 5626then : 5627 printf %s "(cached) " >&6 5628else case e in #( 5629 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5630 then ac_cv_path_EGREP="$GREP -E" 5631 else 5632 if test -z "$EGREP"; then 5633 ac_path_EGREP_found=false 5634 # Loop through the user's path and test for each of PROGNAME-LIST 5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5637do 5638 IFS=$as_save_IFS 5639 case $as_dir in #((( 5640 '') as_dir=./ ;; 5641 */) ;; 5642 *) as_dir=$as_dir/ ;; 5643 esac 5644 for ac_prog in egrep 5645 do 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5648 as_fn_executable_p "$ac_path_EGREP" || continue 5649# Check for GNU ac_path_EGREP and select it if it is found. 5650 # Check for GNU $ac_path_EGREP 5651case `"$ac_path_EGREP" --version 2>&1` in #( 5652*GNU*) 5653 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5654#( 5655*) 5656 ac_count=0 5657 printf %s 0123456789 >"conftest.in" 5658 while : 5659 do 5660 cat "conftest.in" "conftest.in" >"conftest.tmp" 5661 mv "conftest.tmp" "conftest.in" 5662 cp "conftest.in" "conftest.nl" 5663 printf "%s\n" 'EGREP' >> "conftest.nl" 5664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5666 as_fn_arith $ac_count + 1 && ac_count=$as_val 5667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5668 # Best one so far, save it but keep looking for a better one 5669 ac_cv_path_EGREP="$ac_path_EGREP" 5670 ac_path_EGREP_max=$ac_count 5671 fi 5672 # 10*(2^10) chars as input seems more than enough 5673 test $ac_count -gt 10 && break 5674 done 5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5676esac 5677 5678 $ac_path_EGREP_found && break 3 5679 done 5680 done 5681 done 5682IFS=$as_save_IFS 5683 if test -z "$ac_cv_path_EGREP"; then 5684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5685 fi 5686else 5687 ac_cv_path_EGREP=$EGREP 5688fi 5689 5690 fi ;; 5691esac 5692fi 5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5694printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5695 EGREP="$ac_cv_path_EGREP" 5696 5697 EGREP_TRADITIONAL=$EGREP 5698 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5699 5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5701printf %s "checking for fgrep... " >&6; } 5702if test ${ac_cv_path_FGREP+y} 5703then : 5704 printf %s "(cached) " >&6 5705else case e in #( 5706 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5707 then ac_cv_path_FGREP="$GREP -F" 5708 else 5709 if test -z "$FGREP"; then 5710 ac_path_FGREP_found=false 5711 # Loop through the user's path and test for each of PROGNAME-LIST 5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5714do 5715 IFS=$as_save_IFS 5716 case $as_dir in #((( 5717 '') as_dir=./ ;; 5718 */) ;; 5719 *) as_dir=$as_dir/ ;; 5720 esac 5721 for ac_prog in fgrep 5722 do 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5725 as_fn_executable_p "$ac_path_FGREP" || continue 5726# Check for GNU ac_path_FGREP and select it if it is found. 5727 # Check for GNU $ac_path_FGREP 5728case `"$ac_path_FGREP" --version 2>&1` in #( 5729*GNU*) 5730 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5731#( 5732*) 5733 ac_count=0 5734 printf %s 0123456789 >"conftest.in" 5735 while : 5736 do 5737 cat "conftest.in" "conftest.in" >"conftest.tmp" 5738 mv "conftest.tmp" "conftest.in" 5739 cp "conftest.in" "conftest.nl" 5740 printf "%s\n" 'FGREP' >> "conftest.nl" 5741 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5743 as_fn_arith $ac_count + 1 && ac_count=$as_val 5744 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5745 # Best one so far, save it but keep looking for a better one 5746 ac_cv_path_FGREP="$ac_path_FGREP" 5747 ac_path_FGREP_max=$ac_count 5748 fi 5749 # 10*(2^10) chars as input seems more than enough 5750 test $ac_count -gt 10 && break 5751 done 5752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5753esac 5754 5755 $ac_path_FGREP_found && break 3 5756 done 5757 done 5758 done 5759IFS=$as_save_IFS 5760 if test -z "$ac_cv_path_FGREP"; then 5761 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5762 fi 5763else 5764 ac_cv_path_FGREP=$FGREP 5765fi 5766 5767 fi ;; 5768esac 5769fi 5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5771printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5772 FGREP="$ac_cv_path_FGREP" 5773 5774 5775test -z "$GREP" && GREP=grep 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795# Check whether --with-gnu-ld was given. 5796if test ${with_gnu_ld+y} 5797then : 5798 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5799else case e in #( 5800 e) with_gnu_ld=no ;; 5801esac 5802fi 5803 5804ac_prog=ld 5805if test yes = "$GCC"; then 5806 # Check if gcc -print-prog-name=ld gives a path. 5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5808printf %s "checking for ld used by $CC... " >&6; } 5809 case $host in 5810 *-*-mingw*) 5811 # gcc leaves a trailing carriage return, which upsets mingw 5812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5813 *) 5814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5815 esac 5816 case $ac_prog in 5817 # Accept absolute paths. 5818 [\\/]* | ?:[\\/]*) 5819 re_direlt='/[^/][^/]*/\.\./' 5820 # Canonicalize the pathname of ld 5821 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5822 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5823 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5824 done 5825 test -z "$LD" && LD=$ac_prog 5826 ;; 5827 "") 5828 # If it fails, then pretend we aren't using GCC. 5829 ac_prog=ld 5830 ;; 5831 *) 5832 # If it is relative, then search for the first ld in PATH. 5833 with_gnu_ld=unknown 5834 ;; 5835 esac 5836elif test yes = "$with_gnu_ld"; then 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5838printf %s "checking for GNU ld... " >&6; } 5839else 5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5841printf %s "checking for non-GNU ld... " >&6; } 5842fi 5843if test ${lt_cv_path_LD+y} 5844then : 5845 printf %s "(cached) " >&6 5846else case e in #( 5847 e) if test -z "$LD"; then 5848 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5849 for ac_dir in $PATH; do 5850 IFS=$lt_save_ifs 5851 test -z "$ac_dir" && ac_dir=. 5852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5853 lt_cv_path_LD=$ac_dir/$ac_prog 5854 # Check to see if the program is GNU ld. I'd rather use --version, 5855 # but apparently some variants of GNU ld only accept -v. 5856 # Break only if it was the GNU/non-GNU ld that we prefer. 5857 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5858 *GNU* | *'with BFD'*) 5859 test no != "$with_gnu_ld" && break 5860 ;; 5861 *) 5862 test yes != "$with_gnu_ld" && break 5863 ;; 5864 esac 5865 fi 5866 done 5867 IFS=$lt_save_ifs 5868else 5869 lt_cv_path_LD=$LD # Let the user override the test with a path. 5870fi ;; 5871esac 5872fi 5873 5874LD=$lt_cv_path_LD 5875if test -n "$LD"; then 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5877printf "%s\n" "$LD" >&6; } 5878else 5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5880printf "%s\n" "no" >&6; } 5881fi 5882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5884printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5885if test ${lt_cv_prog_gnu_ld+y} 5886then : 5887 printf %s "(cached) " >&6 5888else case e in #( 5889 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5890case `$LD -v 2>&1 </dev/null` in 5891*GNU* | *'with BFD'*) 5892 lt_cv_prog_gnu_ld=yes 5893 ;; 5894*) 5895 lt_cv_prog_gnu_ld=no 5896 ;; 5897esac ;; 5898esac 5899fi 5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5901printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5902with_gnu_ld=$lt_cv_prog_gnu_ld 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5913printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5914if test ${lt_cv_path_NM+y} 5915then : 5916 printf %s "(cached) " >&6 5917else case e in #( 5918 e) if test -n "$NM"; then 5919 # Let the user override the test. 5920 lt_cv_path_NM=$NM 5921else 5922 lt_nm_to_check=${ac_tool_prefix}nm 5923 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5924 lt_nm_to_check="$lt_nm_to_check nm" 5925 fi 5926 for lt_tmp_nm in $lt_nm_to_check; do 5927 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5928 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5929 IFS=$lt_save_ifs 5930 test -z "$ac_dir" && ac_dir=. 5931 tmp_nm=$ac_dir/$lt_tmp_nm 5932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5933 # Check to see if the nm accepts a BSD-compat flag. 5934 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5935 # nm: unknown option "B" ignored 5936 # Tru64's nm complains that /dev/null is an invalid object file 5937 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5938 case $build_os in 5939 mingw*) lt_bad_file=conftest.nm/nofile ;; 5940 *) lt_bad_file=/dev/null ;; 5941 esac 5942 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5943 *$lt_bad_file* | *'Invalid file or object type'*) 5944 lt_cv_path_NM="$tmp_nm -B" 5945 break 2 5946 ;; 5947 *) 5948 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5949 */dev/null*) 5950 lt_cv_path_NM="$tmp_nm -p" 5951 break 2 5952 ;; 5953 *) 5954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5955 continue # so that we can try to find one that supports BSD flags 5956 ;; 5957 esac 5958 ;; 5959 esac 5960 fi 5961 done 5962 IFS=$lt_save_ifs 5963 done 5964 : ${lt_cv_path_NM=no} 5965fi ;; 5966esac 5967fi 5968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5969printf "%s\n" "$lt_cv_path_NM" >&6; } 5970if test no != "$lt_cv_path_NM"; then 5971 NM=$lt_cv_path_NM 5972else 5973 # Didn't find any BSD compatible name lister, look for dumpbin. 5974 if test -n "$DUMPBIN"; then : 5975 # Let the user override the test. 5976 else 5977 if test -n "$ac_tool_prefix"; then 5978 for ac_prog in dumpbin "link -dump" 5979 do 5980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5981set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5983printf %s "checking for $ac_word... " >&6; } 5984if test ${ac_cv_prog_DUMPBIN+y} 5985then : 5986 printf %s "(cached) " >&6 5987else case e in #( 5988 e) if test -n "$DUMPBIN"; then 5989 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 case $as_dir in #((( 5996 '') as_dir=./ ;; 5997 */) ;; 5998 *) as_dir=$as_dir/ ;; 5999 esac 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006done 6007 done 6008IFS=$as_save_IFS 6009 6010fi ;; 6011esac 6012fi 6013DUMPBIN=$ac_cv_prog_DUMPBIN 6014if test -n "$DUMPBIN"; then 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6016printf "%s\n" "$DUMPBIN" >&6; } 6017else 6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019printf "%s\n" "no" >&6; } 6020fi 6021 6022 6023 test -n "$DUMPBIN" && break 6024 done 6025fi 6026if test -z "$DUMPBIN"; then 6027 ac_ct_DUMPBIN=$DUMPBIN 6028 for ac_prog in dumpbin "link -dump" 6029do 6030 # Extract the first word of "$ac_prog", so it can be a program name with args. 6031set dummy $ac_prog; ac_word=$2 6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6033printf %s "checking for $ac_word... " >&6; } 6034if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6035then : 6036 printf %s "(cached) " >&6 6037else case e in #( 6038 e) if test -n "$ac_ct_DUMPBIN"; then 6039 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6040else 6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6042for as_dir in $PATH 6043do 6044 IFS=$as_save_IFS 6045 case $as_dir in #((( 6046 '') as_dir=./ ;; 6047 */) ;; 6048 *) as_dir=$as_dir/ ;; 6049 esac 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6052 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056done 6057 done 6058IFS=$as_save_IFS 6059 6060fi ;; 6061esac 6062fi 6063ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6064if test -n "$ac_ct_DUMPBIN"; then 6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6066printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6067else 6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069printf "%s\n" "no" >&6; } 6070fi 6071 6072 6073 test -n "$ac_ct_DUMPBIN" && break 6074done 6075 6076 if test "x$ac_ct_DUMPBIN" = x; then 6077 DUMPBIN=":" 6078 else 6079 case $cross_compiling:$ac_tool_warned in 6080yes:) 6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6083ac_tool_warned=yes ;; 6084esac 6085 DUMPBIN=$ac_ct_DUMPBIN 6086 fi 6087fi 6088 6089 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6090 *COFF*) 6091 DUMPBIN="$DUMPBIN -symbols -headers" 6092 ;; 6093 *) 6094 DUMPBIN=: 6095 ;; 6096 esac 6097 fi 6098 6099 if test : != "$DUMPBIN"; then 6100 NM=$DUMPBIN 6101 fi 6102fi 6103test -z "$NM" && NM=nm 6104 6105 6106 6107 6108 6109 6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6111printf %s "checking the name lister ($NM) interface... " >&6; } 6112if test ${lt_cv_nm_interface+y} 6113then : 6114 printf %s "(cached) " >&6 6115else case e in #( 6116 e) lt_cv_nm_interface="BSD nm" 6117 echo "int some_variable = 0;" > conftest.$ac_ext 6118 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6119 (eval "$ac_compile" 2>conftest.err) 6120 cat conftest.err >&5 6121 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6122 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6123 cat conftest.err >&5 6124 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6125 cat conftest.out >&5 6126 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6127 lt_cv_nm_interface="MS dumpbin" 6128 fi 6129 rm -f conftest* ;; 6130esac 6131fi 6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6133printf "%s\n" "$lt_cv_nm_interface" >&6; } 6134 6135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6136printf %s "checking whether ln -s works... " >&6; } 6137LN_S=$as_ln_s 6138if test "$LN_S" = "ln -s"; then 6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6140printf "%s\n" "yes" >&6; } 6141else 6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6143printf "%s\n" "no, using $LN_S" >&6; } 6144fi 6145 6146# find the maximum length of command line arguments 6147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6148printf %s "checking the maximum length of command line arguments... " >&6; } 6149if test ${lt_cv_sys_max_cmd_len+y} 6150then : 6151 printf %s "(cached) " >&6 6152else case e in #( 6153 e) i=0 6154 teststring=ABCD 6155 6156 case $build_os in 6157 msdosdjgpp*) 6158 # On DJGPP, this test can blow up pretty badly due to problems in libc 6159 # (any single argument exceeding 2000 bytes causes a buffer overrun 6160 # during glob expansion). Even if it were fixed, the result of this 6161 # check would be larger than it should be. 6162 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6163 ;; 6164 6165 gnu*) 6166 # Under GNU Hurd, this test is not required because there is 6167 # no limit to the length of command line arguments. 6168 # Libtool will interpret -1 as no limit whatsoever 6169 lt_cv_sys_max_cmd_len=-1; 6170 ;; 6171 6172 cygwin* | mingw* | cegcc*) 6173 # On Win9x/ME, this test blows up -- it succeeds, but takes 6174 # about 5 minutes as the teststring grows exponentially. 6175 # Worse, since 9x/ME are not pre-emptively multitasking, 6176 # you end up with a "frozen" computer, even though with patience 6177 # the test eventually succeeds (with a max line length of 256k). 6178 # Instead, let's just punt: use the minimum linelength reported by 6179 # all of the supported platforms: 8192 (on NT/2K/XP). 6180 lt_cv_sys_max_cmd_len=8192; 6181 ;; 6182 6183 mint*) 6184 # On MiNT this can take a long time and run out of memory. 6185 lt_cv_sys_max_cmd_len=8192; 6186 ;; 6187 6188 amigaos*) 6189 # On AmigaOS with pdksh, this test takes hours, literally. 6190 # So we just punt and use a minimum line length of 8192. 6191 lt_cv_sys_max_cmd_len=8192; 6192 ;; 6193 6194 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6195 # This has been around since 386BSD, at least. Likely further. 6196 if test -x /sbin/sysctl; then 6197 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6198 elif test -x /usr/sbin/sysctl; then 6199 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6200 else 6201 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6202 fi 6203 # And add a safety zone 6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6206 ;; 6207 6208 interix*) 6209 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6210 lt_cv_sys_max_cmd_len=196608 6211 ;; 6212 6213 os2*) 6214 # The test takes a long time on OS/2. 6215 lt_cv_sys_max_cmd_len=8192 6216 ;; 6217 6218 osf*) 6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6221 # nice to cause kernel panics so lets avoid the loop below. 6222 # First set a reasonable default. 6223 lt_cv_sys_max_cmd_len=16384 6224 # 6225 if test -x /sbin/sysconfig; then 6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6227 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6228 esac 6229 fi 6230 ;; 6231 sco3.2v5*) 6232 lt_cv_sys_max_cmd_len=102400 6233 ;; 6234 sysv5* | sco5v6* | sysv4.2uw2*) 6235 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6236 if test -n "$kargmax"; then 6237 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6238 else 6239 lt_cv_sys_max_cmd_len=32768 6240 fi 6241 ;; 6242 *) 6243 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6244 if test -n "$lt_cv_sys_max_cmd_len" && \ 6245 test undefined != "$lt_cv_sys_max_cmd_len"; then 6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6248 else 6249 # Make teststring a little bigger before we do anything with it. 6250 # a 1K string should be a reasonable start. 6251 for i in 1 2 3 4 5 6 7 8; do 6252 teststring=$teststring$teststring 6253 done 6254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6255 # If test is not a shell built-in, we'll probably end up computing a 6256 # maximum length that is only half of the actual maximum length, but 6257 # we can't tell. 6258 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6259 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6260 test 17 != "$i" # 1/2 MB should be enough 6261 do 6262 i=`expr $i + 1` 6263 teststring=$teststring$teststring 6264 done 6265 # Only check the string length outside the loop. 6266 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6267 teststring= 6268 # Add a significant safety factor because C++ compilers can tack on 6269 # massive amounts of additional arguments before passing them to the 6270 # linker. It appears as though 1/2 is a usable value. 6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6272 fi 6273 ;; 6274 esac 6275 ;; 6276esac 6277fi 6278 6279if test -n "$lt_cv_sys_max_cmd_len"; then 6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6281printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6282else 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6284printf "%s\n" "none" >&6; } 6285fi 6286max_cmd_len=$lt_cv_sys_max_cmd_len 6287 6288 6289 6290 6291 6292 6293: ${CP="cp -f"} 6294: ${MV="mv -f"} 6295: ${RM="rm -f"} 6296 6297if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6298 lt_unset=unset 6299else 6300 lt_unset=false 6301fi 6302 6303 6304 6305 6306 6307# test EBCDIC or ASCII 6308case `echo X|tr X '\101'` in 6309 A) # ASCII based system 6310 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6311 lt_SP2NL='tr \040 \012' 6312 lt_NL2SP='tr \015\012 \040\040' 6313 ;; 6314 *) # EBCDIC based system 6315 lt_SP2NL='tr \100 \n' 6316 lt_NL2SP='tr \r\n \100\100' 6317 ;; 6318esac 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6329printf %s "checking how to convert $build file names to $host format... " >&6; } 6330if test ${lt_cv_to_host_file_cmd+y} 6331then : 6332 printf %s "(cached) " >&6 6333else case e in #( 6334 e) case $host in 6335 *-*-mingw* ) 6336 case $build in 6337 *-*-mingw* ) # actually msys 6338 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6339 ;; 6340 *-*-cygwin* ) 6341 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6342 ;; 6343 * ) # otherwise, assume *nix 6344 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6345 ;; 6346 esac 6347 ;; 6348 *-*-cygwin* ) 6349 case $build in 6350 *-*-mingw* ) # actually msys 6351 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6352 ;; 6353 *-*-cygwin* ) 6354 lt_cv_to_host_file_cmd=func_convert_file_noop 6355 ;; 6356 * ) # otherwise, assume *nix 6357 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6358 ;; 6359 esac 6360 ;; 6361 * ) # unhandled hosts (and "normal" native builds) 6362 lt_cv_to_host_file_cmd=func_convert_file_noop 6363 ;; 6364esac 6365 ;; 6366esac 6367fi 6368 6369to_host_file_cmd=$lt_cv_to_host_file_cmd 6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6371printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6372 6373 6374 6375 6376 6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6378printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6379if test ${lt_cv_to_tool_file_cmd+y} 6380then : 6381 printf %s "(cached) " >&6 6382else case e in #( 6383 e) #assume ordinary cross tools, or native build. 6384lt_cv_to_tool_file_cmd=func_convert_file_noop 6385case $host in 6386 *-*-mingw* ) 6387 case $build in 6388 *-*-mingw* ) # actually msys 6389 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6390 ;; 6391 esac 6392 ;; 6393esac 6394 ;; 6395esac 6396fi 6397 6398to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6400printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6401 6402 6403 6404 6405 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6407printf %s "checking for $LD option to reload object files... " >&6; } 6408if test ${lt_cv_ld_reload_flag+y} 6409then : 6410 printf %s "(cached) " >&6 6411else case e in #( 6412 e) lt_cv_ld_reload_flag='-r' ;; 6413esac 6414fi 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6416printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6417reload_flag=$lt_cv_ld_reload_flag 6418case $reload_flag in 6419"" | " "*) ;; 6420*) reload_flag=" $reload_flag" ;; 6421esac 6422reload_cmds='$LD$reload_flag -o $output$reload_objs' 6423case $host_os in 6424 cygwin* | mingw* | pw32* | cegcc*) 6425 if test yes != "$GCC"; then 6426 reload_cmds=false 6427 fi 6428 ;; 6429 darwin*) 6430 if test yes = "$GCC"; then 6431 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6432 else 6433 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6434 fi 6435 ;; 6436esac 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6448set dummy ${ac_tool_prefix}file; ac_word=$2 6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450printf %s "checking for $ac_word... " >&6; } 6451if test ${ac_cv_prog_FILECMD+y} 6452then : 6453 printf %s "(cached) " >&6 6454else case e in #( 6455 e) if test -n "$FILECMD"; then 6456 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6457else 6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459for as_dir in $PATH 6460do 6461 IFS=$as_save_IFS 6462 case $as_dir in #((( 6463 '') as_dir=./ ;; 6464 */) ;; 6465 *) as_dir=$as_dir/ ;; 6466 esac 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6469 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474 done 6475IFS=$as_save_IFS 6476 6477fi ;; 6478esac 6479fi 6480FILECMD=$ac_cv_prog_FILECMD 6481if test -n "$FILECMD"; then 6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6483printf "%s\n" "$FILECMD" >&6; } 6484else 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6486printf "%s\n" "no" >&6; } 6487fi 6488 6489 6490fi 6491if test -z "$ac_cv_prog_FILECMD"; then 6492 ac_ct_FILECMD=$FILECMD 6493 # Extract the first word of "file", so it can be a program name with args. 6494set dummy file; ac_word=$2 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6496printf %s "checking for $ac_word... " >&6; } 6497if test ${ac_cv_prog_ac_ct_FILECMD+y} 6498then : 6499 printf %s "(cached) " >&6 6500else case e in #( 6501 e) if test -n "$ac_ct_FILECMD"; then 6502 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 case $as_dir in #((( 6509 '') as_dir=./ ;; 6510 */) ;; 6511 *) as_dir=$as_dir/ ;; 6512 esac 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6515 ac_cv_prog_ac_ct_FILECMD="file" 6516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519done 6520 done 6521IFS=$as_save_IFS 6522 6523fi ;; 6524esac 6525fi 6526ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6527if test -n "$ac_ct_FILECMD"; then 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6529printf "%s\n" "$ac_ct_FILECMD" >&6; } 6530else 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532printf "%s\n" "no" >&6; } 6533fi 6534 6535 if test "x$ac_ct_FILECMD" = x; then 6536 FILECMD=":" 6537 else 6538 case $cross_compiling:$ac_tool_warned in 6539yes:) 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 FILECMD=$ac_ct_FILECMD 6545 fi 6546else 6547 FILECMD="$ac_cv_prog_FILECMD" 6548fi 6549 6550 6551 6552 6553 6554 6555 6556if test -n "$ac_tool_prefix"; then 6557 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6558set dummy ${ac_tool_prefix}objdump; ac_word=$2 6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6560printf %s "checking for $ac_word... " >&6; } 6561if test ${ac_cv_prog_OBJDUMP+y} 6562then : 6563 printf %s "(cached) " >&6 6564else case e in #( 6565 e) if test -n "$OBJDUMP"; then 6566 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 case $as_dir in #((( 6573 '') as_dir=./ ;; 6574 */) ;; 6575 *) as_dir=$as_dir/ ;; 6576 esac 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6579 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584 done 6585IFS=$as_save_IFS 6586 6587fi ;; 6588esac 6589fi 6590OBJDUMP=$ac_cv_prog_OBJDUMP 6591if test -n "$OBJDUMP"; then 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6593printf "%s\n" "$OBJDUMP" >&6; } 6594else 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596printf "%s\n" "no" >&6; } 6597fi 6598 6599 6600fi 6601if test -z "$ac_cv_prog_OBJDUMP"; then 6602 ac_ct_OBJDUMP=$OBJDUMP 6603 # Extract the first word of "objdump", so it can be a program name with args. 6604set dummy objdump; ac_word=$2 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606printf %s "checking for $ac_word... " >&6; } 6607if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6608then : 6609 printf %s "(cached) " >&6 6610else case e in #( 6611 e) if test -n "$ac_ct_OBJDUMP"; then 6612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 case $as_dir in #((( 6619 '') as_dir=./ ;; 6620 */) ;; 6621 *) as_dir=$as_dir/ ;; 6622 esac 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi ;; 6634esac 6635fi 6636ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6637if test -n "$ac_ct_OBJDUMP"; then 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6639printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6640else 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6642printf "%s\n" "no" >&6; } 6643fi 6644 6645 if test "x$ac_ct_OBJDUMP" = x; then 6646 OBJDUMP="false" 6647 else 6648 case $cross_compiling:$ac_tool_warned in 6649yes:) 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6651printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6652ac_tool_warned=yes ;; 6653esac 6654 OBJDUMP=$ac_ct_OBJDUMP 6655 fi 6656else 6657 OBJDUMP="$ac_cv_prog_OBJDUMP" 6658fi 6659 6660test -z "$OBJDUMP" && OBJDUMP=objdump 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6671printf %s "checking how to recognize dependent libraries... " >&6; } 6672if test ${lt_cv_deplibs_check_method+y} 6673then : 6674 printf %s "(cached) " >&6 6675else case e in #( 6676 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6677lt_cv_file_magic_test_file= 6678lt_cv_deplibs_check_method='unknown' 6679# Need to set the preceding variable on all platforms that support 6680# interlibrary dependencies. 6681# 'none' -- dependencies not supported. 6682# 'unknown' -- same as none, but documents that we really don't know. 6683# 'pass_all' -- all dependencies passed with no checks. 6684# 'test_compile' -- check by making test program. 6685# 'file_magic [[regex]]' -- check by looking for files in library path 6686# that responds to the $file_magic_cmd with a given extended regex. 6687# If you have 'file' or equivalent on your system and you're not sure 6688# whether 'pass_all' will *always* work, you probably want this one. 6689 6690case $host_os in 6691aix[4-9]*) 6692 lt_cv_deplibs_check_method=pass_all 6693 ;; 6694 6695beos*) 6696 lt_cv_deplibs_check_method=pass_all 6697 ;; 6698 6699bsdi[45]*) 6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6701 lt_cv_file_magic_cmd='$FILECMD -L' 6702 lt_cv_file_magic_test_file=/shlib/libc.so 6703 ;; 6704 6705cygwin*) 6706 # func_win32_libid is a shell function defined in ltmain.sh 6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6708 lt_cv_file_magic_cmd='func_win32_libid' 6709 ;; 6710 6711mingw* | pw32*) 6712 # Base MSYS/MinGW do not provide the 'file' command needed by 6713 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6714 # unless we find 'file', for example because we are cross-compiling. 6715 if ( file / ) >/dev/null 2>&1; then 6716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6717 lt_cv_file_magic_cmd='func_win32_libid' 6718 else 6719 # Keep this pattern in sync with the one in func_win32_libid. 6720 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6721 lt_cv_file_magic_cmd='$OBJDUMP -f' 6722 fi 6723 ;; 6724 6725cegcc*) 6726 # use the weaker test based on 'objdump'. See mingw*. 6727 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6728 lt_cv_file_magic_cmd='$OBJDUMP -f' 6729 ;; 6730 6731darwin* | rhapsody*) 6732 lt_cv_deplibs_check_method=pass_all 6733 ;; 6734 6735freebsd* | dragonfly* | midnightbsd*) 6736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6737 case $host_cpu in 6738 i*86 ) 6739 # Not sure whether the presence of OpenBSD here was a mistake. 6740 # Let's accept both of them until this is cleared up. 6741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6742 lt_cv_file_magic_cmd=$FILECMD 6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6744 ;; 6745 esac 6746 else 6747 lt_cv_deplibs_check_method=pass_all 6748 fi 6749 ;; 6750 6751haiku*) 6752 lt_cv_deplibs_check_method=pass_all 6753 ;; 6754 6755hpux10.20* | hpux11*) 6756 lt_cv_file_magic_cmd=$FILECMD 6757 case $host_cpu in 6758 ia64*) 6759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6760 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6761 ;; 6762 hppa*64*) 6763 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]' 6764 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6765 ;; 6766 *) 6767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6768 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6769 ;; 6770 esac 6771 ;; 6772 6773interix[3-9]*) 6774 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6776 ;; 6777 6778irix5* | irix6* | nonstopux*) 6779 case $LD in 6780 *-32|*"-32 ") libmagic=32-bit;; 6781 *-n32|*"-n32 ") libmagic=N32;; 6782 *-64|*"-64 ") libmagic=64-bit;; 6783 *) libmagic=never-match;; 6784 esac 6785 lt_cv_deplibs_check_method=pass_all 6786 ;; 6787 6788# This must be glibc/ELF. 6789linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6790 lt_cv_deplibs_check_method=pass_all 6791 ;; 6792 6793netbsd*) 6794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6796 else 6797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6798 fi 6799 ;; 6800 6801newos6*) 6802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6803 lt_cv_file_magic_cmd=$FILECMD 6804 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6805 ;; 6806 6807*nto* | *qnx*) 6808 lt_cv_deplibs_check_method=pass_all 6809 ;; 6810 6811openbsd* | bitrig*) 6812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6814 else 6815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6816 fi 6817 ;; 6818 6819osf3* | osf4* | osf5*) 6820 lt_cv_deplibs_check_method=pass_all 6821 ;; 6822 6823rdos*) 6824 lt_cv_deplibs_check_method=pass_all 6825 ;; 6826 6827solaris*) 6828 lt_cv_deplibs_check_method=pass_all 6829 ;; 6830 6831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6832 lt_cv_deplibs_check_method=pass_all 6833 ;; 6834 6835sysv4 | sysv4.3*) 6836 case $host_vendor in 6837 motorola) 6838 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]' 6839 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6840 ;; 6841 ncr) 6842 lt_cv_deplibs_check_method=pass_all 6843 ;; 6844 sequent) 6845 lt_cv_file_magic_cmd='/bin/file' 6846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6847 ;; 6848 sni) 6849 lt_cv_file_magic_cmd='/bin/file' 6850 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6851 lt_cv_file_magic_test_file=/lib/libc.so 6852 ;; 6853 siemens) 6854 lt_cv_deplibs_check_method=pass_all 6855 ;; 6856 pc) 6857 lt_cv_deplibs_check_method=pass_all 6858 ;; 6859 esac 6860 ;; 6861 6862tpf*) 6863 lt_cv_deplibs_check_method=pass_all 6864 ;; 6865os2*) 6866 lt_cv_deplibs_check_method=pass_all 6867 ;; 6868esac 6869 ;; 6870esac 6871fi 6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6873printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6874 6875file_magic_glob= 6876want_nocaseglob=no 6877if test "$build" = "$host"; then 6878 case $host_os in 6879 mingw* | pw32*) 6880 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6881 want_nocaseglob=yes 6882 else 6883 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6884 fi 6885 ;; 6886 esac 6887fi 6888 6889file_magic_cmd=$lt_cv_file_magic_cmd 6890deplibs_check_method=$lt_cv_deplibs_check_method 6891test -z "$deplibs_check_method" && deplibs_check_method=unknown 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914if test -n "$ac_tool_prefix"; then 6915 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6916set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6918printf %s "checking for $ac_word... " >&6; } 6919if test ${ac_cv_prog_DLLTOOL+y} 6920then : 6921 printf %s "(cached) " >&6 6922else case e in #( 6923 e) if test -n "$DLLTOOL"; then 6924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 case $as_dir in #((( 6931 '') as_dir=./ ;; 6932 */) ;; 6933 *) as_dir=$as_dir/ ;; 6934 esac 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6937 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi ;; 6946esac 6947fi 6948DLLTOOL=$ac_cv_prog_DLLTOOL 6949if test -n "$DLLTOOL"; then 6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6951printf "%s\n" "$DLLTOOL" >&6; } 6952else 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6954printf "%s\n" "no" >&6; } 6955fi 6956 6957 6958fi 6959if test -z "$ac_cv_prog_DLLTOOL"; then 6960 ac_ct_DLLTOOL=$DLLTOOL 6961 # Extract the first word of "dlltool", so it can be a program name with args. 6962set dummy dlltool; ac_word=$2 6963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6964printf %s "checking for $ac_word... " >&6; } 6965if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6966then : 6967 printf %s "(cached) " >&6 6968else case e in #( 6969 e) if test -n "$ac_ct_DLLTOOL"; then 6970 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6971else 6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6973for as_dir in $PATH 6974do 6975 IFS=$as_save_IFS 6976 case $as_dir in #((( 6977 '') as_dir=./ ;; 6978 */) ;; 6979 *) as_dir=$as_dir/ ;; 6980 esac 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988 done 6989IFS=$as_save_IFS 6990 6991fi ;; 6992esac 6993fi 6994ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6995if test -n "$ac_ct_DLLTOOL"; then 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6997printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6998else 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7000printf "%s\n" "no" >&6; } 7001fi 7002 7003 if test "x$ac_ct_DLLTOOL" = x; then 7004 DLLTOOL="false" 7005 else 7006 case $cross_compiling:$ac_tool_warned in 7007yes:) 7008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7010ac_tool_warned=yes ;; 7011esac 7012 DLLTOOL=$ac_ct_DLLTOOL 7013 fi 7014else 7015 DLLTOOL="$ac_cv_prog_DLLTOOL" 7016fi 7017 7018test -z "$DLLTOOL" && DLLTOOL=dlltool 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7030printf %s "checking how to associate runtime and link libraries... " >&6; } 7031if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7032then : 7033 printf %s "(cached) " >&6 7034else case e in #( 7035 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 7036 7037case $host_os in 7038cygwin* | mingw* | pw32* | cegcc*) 7039 # two different shell functions defined in ltmain.sh; 7040 # decide which one to use based on capabilities of $DLLTOOL 7041 case `$DLLTOOL --help 2>&1` in 7042 *--identify-strict*) 7043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7044 ;; 7045 *) 7046 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7047 ;; 7048 esac 7049 ;; 7050*) 7051 # fallback: assume linklib IS sharedlib 7052 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7053 ;; 7054esac 7055 ;; 7056esac 7057fi 7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7059printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7060sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7061test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7062 7063 7064 7065 7066 7067 7068 7069if test -n "$ac_tool_prefix"; then 7070 for ac_prog in ar 7071 do 7072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7073set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7075printf %s "checking for $ac_word... " >&6; } 7076if test ${ac_cv_prog_AR+y} 7077then : 7078 printf %s "(cached) " >&6 7079else case e in #( 7080 e) if test -n "$AR"; then 7081 ac_cv_prog_AR="$AR" # Let the user override the test. 7082else 7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7084for as_dir in $PATH 7085do 7086 IFS=$as_save_IFS 7087 case $as_dir in #((( 7088 '') as_dir=./ ;; 7089 */) ;; 7090 *) as_dir=$as_dir/ ;; 7091 esac 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7094 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098done 7099 done 7100IFS=$as_save_IFS 7101 7102fi ;; 7103esac 7104fi 7105AR=$ac_cv_prog_AR 7106if test -n "$AR"; then 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7108printf "%s\n" "$AR" >&6; } 7109else 7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111printf "%s\n" "no" >&6; } 7112fi 7113 7114 7115 test -n "$AR" && break 7116 done 7117fi 7118if test -z "$AR"; then 7119 ac_ct_AR=$AR 7120 for ac_prog in ar 7121do 7122 # Extract the first word of "$ac_prog", so it can be a program name with args. 7123set dummy $ac_prog; ac_word=$2 7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7125printf %s "checking for $ac_word... " >&6; } 7126if test ${ac_cv_prog_ac_ct_AR+y} 7127then : 7128 printf %s "(cached) " >&6 7129else case e in #( 7130 e) if test -n "$ac_ct_AR"; then 7131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7132else 7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134for as_dir in $PATH 7135do 7136 IFS=$as_save_IFS 7137 case $as_dir in #((( 7138 '') as_dir=./ ;; 7139 */) ;; 7140 *) as_dir=$as_dir/ ;; 7141 esac 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_ac_ct_AR="$ac_prog" 7145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi ;; 7153esac 7154fi 7155ac_ct_AR=$ac_cv_prog_ac_ct_AR 7156if test -n "$ac_ct_AR"; then 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7158printf "%s\n" "$ac_ct_AR" >&6; } 7159else 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7161printf "%s\n" "no" >&6; } 7162fi 7163 7164 7165 test -n "$ac_ct_AR" && break 7166done 7167 7168 if test "x$ac_ct_AR" = x; then 7169 AR="false" 7170 else 7171 case $cross_compiling:$ac_tool_warned in 7172yes:) 7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7174printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7175ac_tool_warned=yes ;; 7176esac 7177 AR=$ac_ct_AR 7178 fi 7179fi 7180 7181: ${AR=ar} 7182 7183 7184 7185 7186 7187 7188# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7189# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7190# higher priority because thats what people were doing historically (setting 7191# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7192# variable obsoleted/removed. 7193 7194test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7195lt_ar_flags=$AR_FLAGS 7196 7197 7198 7199 7200 7201 7202# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7203# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7204 7205 7206 7207 7208 7209 7210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7211printf %s "checking for archiver @FILE support... " >&6; } 7212if test ${lt_cv_ar_at_file+y} 7213then : 7214 printf %s "(cached) " >&6 7215else case e in #( 7216 e) lt_cv_ar_at_file=no 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219 7220int 7221main (void) 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_compile "$LINENO" 7229then : 7230 echo conftest.$ac_objext > conftest.lst 7231 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7233 (eval $lt_ar_try) 2>&5 7234 ac_status=$? 7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7236 test $ac_status = 0; } 7237 if test 0 -eq "$ac_status"; then 7238 # Ensure the archiver fails upon bogus file names. 7239 rm -f conftest.$ac_objext libconftest.a 7240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7241 (eval $lt_ar_try) 2>&5 7242 ac_status=$? 7243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7244 test $ac_status = 0; } 7245 if test 0 -ne "$ac_status"; then 7246 lt_cv_ar_at_file=@ 7247 fi 7248 fi 7249 rm -f conftest.* libconftest.a 7250 7251fi 7252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7253 ;; 7254esac 7255fi 7256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7257printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7258 7259if test no = "$lt_cv_ar_at_file"; then 7260 archiver_list_spec= 7261else 7262 archiver_list_spec=$lt_cv_ar_at_file 7263fi 7264 7265 7266 7267 7268 7269 7270 7271if test -n "$ac_tool_prefix"; then 7272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7273set dummy ${ac_tool_prefix}strip; ac_word=$2 7274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7275printf %s "checking for $ac_word... " >&6; } 7276if test ${ac_cv_prog_STRIP+y} 7277then : 7278 printf %s "(cached) " >&6 7279else case e in #( 7280 e) if test -n "$STRIP"; then 7281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7282else 7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 case $as_dir in #((( 7288 '') as_dir=./ ;; 7289 */) ;; 7290 *) as_dir=$as_dir/ ;; 7291 esac 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7294 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302fi ;; 7303esac 7304fi 7305STRIP=$ac_cv_prog_STRIP 7306if test -n "$STRIP"; then 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7308printf "%s\n" "$STRIP" >&6; } 7309else 7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311printf "%s\n" "no" >&6; } 7312fi 7313 7314 7315fi 7316if test -z "$ac_cv_prog_STRIP"; then 7317 ac_ct_STRIP=$STRIP 7318 # Extract the first word of "strip", so it can be a program name with args. 7319set dummy strip; ac_word=$2 7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321printf %s "checking for $ac_word... " >&6; } 7322if test ${ac_cv_prog_ac_ct_STRIP+y} 7323then : 7324 printf %s "(cached) " >&6 7325else case e in #( 7326 e) if test -n "$ac_ct_STRIP"; then 7327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7328else 7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 case $as_dir in #((( 7334 '') as_dir=./ ;; 7335 */) ;; 7336 *) as_dir=$as_dir/ ;; 7337 esac 7338 for ac_exec_ext in '' $ac_executable_extensions; do 7339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7340 ac_cv_prog_ac_ct_STRIP="strip" 7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7342 break 2 7343 fi 7344done 7345 done 7346IFS=$as_save_IFS 7347 7348fi ;; 7349esac 7350fi 7351ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7352if test -n "$ac_ct_STRIP"; then 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7354printf "%s\n" "$ac_ct_STRIP" >&6; } 7355else 7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7357printf "%s\n" "no" >&6; } 7358fi 7359 7360 if test "x$ac_ct_STRIP" = x; then 7361 STRIP=":" 7362 else 7363 case $cross_compiling:$ac_tool_warned in 7364yes:) 7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7366printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7367ac_tool_warned=yes ;; 7368esac 7369 STRIP=$ac_ct_STRIP 7370 fi 7371else 7372 STRIP="$ac_cv_prog_STRIP" 7373fi 7374 7375test -z "$STRIP" && STRIP=: 7376 7377 7378 7379 7380 7381 7382if test -n "$ac_tool_prefix"; then 7383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7384set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7386printf %s "checking for $ac_word... " >&6; } 7387if test ${ac_cv_prog_RANLIB+y} 7388then : 7389 printf %s "(cached) " >&6 7390else case e in #( 7391 e) if test -n "$RANLIB"; then 7392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7393else 7394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7395for as_dir in $PATH 7396do 7397 IFS=$as_save_IFS 7398 case $as_dir in #((( 7399 '') as_dir=./ ;; 7400 */) ;; 7401 *) as_dir=$as_dir/ ;; 7402 esac 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413fi ;; 7414esac 7415fi 7416RANLIB=$ac_cv_prog_RANLIB 7417if test -n "$RANLIB"; then 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7419printf "%s\n" "$RANLIB" >&6; } 7420else 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7422printf "%s\n" "no" >&6; } 7423fi 7424 7425 7426fi 7427if test -z "$ac_cv_prog_RANLIB"; then 7428 ac_ct_RANLIB=$RANLIB 7429 # Extract the first word of "ranlib", so it can be a program name with args. 7430set dummy ranlib; ac_word=$2 7431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432printf %s "checking for $ac_word... " >&6; } 7433if test ${ac_cv_prog_ac_ct_RANLIB+y} 7434then : 7435 printf %s "(cached) " >&6 7436else case e in #( 7437 e) if test -n "$ac_ct_RANLIB"; then 7438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 case $as_dir in #((( 7445 '') as_dir=./ ;; 7446 */) ;; 7447 *) as_dir=$as_dir/ ;; 7448 esac 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7451 ac_cv_prog_ac_ct_RANLIB="ranlib" 7452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456 done 7457IFS=$as_save_IFS 7458 7459fi ;; 7460esac 7461fi 7462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7463if test -n "$ac_ct_RANLIB"; then 7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7465printf "%s\n" "$ac_ct_RANLIB" >&6; } 7466else 7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468printf "%s\n" "no" >&6; } 7469fi 7470 7471 if test "x$ac_ct_RANLIB" = x; then 7472 RANLIB=":" 7473 else 7474 case $cross_compiling:$ac_tool_warned in 7475yes:) 7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7478ac_tool_warned=yes ;; 7479esac 7480 RANLIB=$ac_ct_RANLIB 7481 fi 7482else 7483 RANLIB="$ac_cv_prog_RANLIB" 7484fi 7485 7486test -z "$RANLIB" && RANLIB=: 7487 7488 7489 7490 7491 7492 7493# Determine commands to create old-style static archives. 7494old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7495old_postinstall_cmds='chmod 644 $oldlib' 7496old_postuninstall_cmds= 7497 7498if test -n "$RANLIB"; then 7499 case $host_os in 7500 bitrig* | openbsd*) 7501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7502 ;; 7503 *) 7504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7505 ;; 7506 esac 7507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7508fi 7509 7510case $host_os in 7511 darwin*) 7512 lock_old_archive_extraction=yes ;; 7513 *) 7514 lock_old_archive_extraction=no ;; 7515esac 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555# If no C compiler was specified, use CC. 7556LTCC=${LTCC-"$CC"} 7557 7558# If no C compiler flags were specified, use CFLAGS. 7559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7560 7561# Allow CC to be a program name with arguments. 7562compiler=$CC 7563 7564 7565# Check for command to grab the raw symbol name followed by C symbol from nm. 7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7567printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7568if test ${lt_cv_sys_global_symbol_pipe+y} 7569then : 7570 printf %s "(cached) " >&6 7571else case e in #( 7572 e) 7573# These are sane defaults that work on at least a few old systems. 7574# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7575 7576# Character class describing NM global symbol codes. 7577symcode='[BCDEGRST]' 7578 7579# Regexp to match symbols that can be accessed directly from C. 7580sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7581 7582# Define system-specific variables. 7583case $host_os in 7584aix*) 7585 symcode='[BCDT]' 7586 ;; 7587cygwin* | mingw* | pw32* | cegcc*) 7588 symcode='[ABCDGISTW]' 7589 ;; 7590hpux*) 7591 if test ia64 = "$host_cpu"; then 7592 symcode='[ABCDEGRST]' 7593 fi 7594 ;; 7595irix* | nonstopux*) 7596 symcode='[BCDEGRST]' 7597 ;; 7598osf*) 7599 symcode='[BCDEGQRST]' 7600 ;; 7601solaris*) 7602 symcode='[BDRT]' 7603 ;; 7604sco3.2v5*) 7605 symcode='[DT]' 7606 ;; 7607sysv4.2uw2*) 7608 symcode='[DT]' 7609 ;; 7610sysv5* | sco5v6* | unixware* | OpenUNIX*) 7611 symcode='[ABDT]' 7612 ;; 7613sysv4) 7614 symcode='[DFNSTU]' 7615 ;; 7616esac 7617 7618# If we're using GNU nm, then use its standard symbol codes. 7619case `$NM -V 2>&1` in 7620*GNU* | *'with BFD'*) 7621 symcode='[ABCDGIRSTW]' ;; 7622esac 7623 7624if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7625 # Gets list of data symbols to import. 7626 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7627 # Adjust the below global symbol transforms to fixup imported variables. 7628 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7629 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7630 lt_c_name_lib_hook="\ 7631 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7632 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7633else 7634 # Disable hooks by default. 7635 lt_cv_sys_global_symbol_to_import= 7636 lt_cdecl_hook= 7637 lt_c_name_hook= 7638 lt_c_name_lib_hook= 7639fi 7640 7641# Transform an extracted symbol line into a proper C declaration. 7642# Some systems (esp. on ia64) link data and code symbols differently, 7643# so use this general approach. 7644lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7645$lt_cdecl_hook\ 7646" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7647" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7648 7649# Transform an extracted symbol line into symbol name and symbol address 7650lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7651$lt_c_name_hook\ 7652" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7653" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7654 7655# Transform an extracted symbol line into symbol name with lib prefix and 7656# symbol address. 7657lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7658$lt_c_name_lib_hook\ 7659" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7660" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7661" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7662 7663# Handle CRLF in mingw tool chain 7664opt_cr= 7665case $build_os in 7666mingw*) 7667 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7668 ;; 7669esac 7670 7671# Try without a prefix underscore, then with it. 7672for ac_symprfx in "" "_"; do 7673 7674 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7675 symxfrm="\\1 $ac_symprfx\\2 \\2" 7676 7677 # Write the raw and C identifiers. 7678 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7679 # Fake it for dumpbin and say T for any non-static function, 7680 # D for any global variable and I for any imported variable. 7681 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7682 # which start with @ or ?. 7683 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7684" {last_section=section; section=\$ 3};"\ 7685" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7686" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7687" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7688" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7689" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7690" \$ 0!~/External *\|/{next};"\ 7691" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7692" {if(hide[section]) next};"\ 7693" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7694" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7695" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7696" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7697" ' prfx=^$ac_symprfx" 7698 else 7699 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7700 fi 7701 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7702 7703 # Check to see that the pipe works correctly. 7704 pipe_works=no 7705 7706 rm -f conftest* 7707 cat > conftest.$ac_ext <<_LT_EOF 7708#ifdef __cplusplus 7709extern "C" { 7710#endif 7711char nm_test_var; 7712void nm_test_func(void); 7713void nm_test_func(void){} 7714#ifdef __cplusplus 7715} 7716#endif 7717int main(){nm_test_var='a';nm_test_func();return(0);} 7718_LT_EOF 7719 7720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7721 (eval $ac_compile) 2>&5 7722 ac_status=$? 7723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7724 test $ac_status = 0; }; then 7725 # Now try to grab the symbols. 7726 nlist=conftest.nm 7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7728 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7729 ac_status=$? 7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7731 test $ac_status = 0; } && test -s "$nlist"; then 7732 # Try sorting and uniquifying the output. 7733 if sort "$nlist" | uniq > "$nlist"T; then 7734 mv -f "$nlist"T "$nlist" 7735 else 7736 rm -f "$nlist"T 7737 fi 7738 7739 # Make sure that we snagged all the symbols we need. 7740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7742 cat <<_LT_EOF > conftest.$ac_ext 7743/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7744#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7745/* DATA imports from DLLs on WIN32 can't be const, because runtime 7746 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7747# define LT_DLSYM_CONST 7748#elif defined __osf__ 7749/* This system does not cope well with relocations in const data. */ 7750# define LT_DLSYM_CONST 7751#else 7752# define LT_DLSYM_CONST const 7753#endif 7754 7755#ifdef __cplusplus 7756extern "C" { 7757#endif 7758 7759_LT_EOF 7760 # Now generate the symbol file. 7761 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7762 7763 cat <<_LT_EOF >> conftest.$ac_ext 7764 7765/* The mapping between symbol names and symbols. */ 7766LT_DLSYM_CONST struct { 7767 const char *name; 7768 void *address; 7769} 7770lt__PROGRAM__LTX_preloaded_symbols[] = 7771{ 7772 { "@PROGRAM@", (void *) 0 }, 7773_LT_EOF 7774 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7775 cat <<\_LT_EOF >> conftest.$ac_ext 7776 {0, (void *) 0} 7777}; 7778 7779/* This works around a problem in FreeBSD linker */ 7780#ifdef FREEBSD_WORKAROUND 7781static const void *lt_preloaded_setup() { 7782 return lt__PROGRAM__LTX_preloaded_symbols; 7783} 7784#endif 7785 7786#ifdef __cplusplus 7787} 7788#endif 7789_LT_EOF 7790 # Now try linking the two files. 7791 mv conftest.$ac_objext conftstm.$ac_objext 7792 lt_globsym_save_LIBS=$LIBS 7793 lt_globsym_save_CFLAGS=$CFLAGS 7794 LIBS=conftstm.$ac_objext 7795 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7797 (eval $ac_link) 2>&5 7798 ac_status=$? 7799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7800 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7801 pipe_works=yes 7802 fi 7803 LIBS=$lt_globsym_save_LIBS 7804 CFLAGS=$lt_globsym_save_CFLAGS 7805 else 7806 echo "cannot find nm_test_func in $nlist" >&5 7807 fi 7808 else 7809 echo "cannot find nm_test_var in $nlist" >&5 7810 fi 7811 else 7812 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7813 fi 7814 else 7815 echo "$progname: failed program was:" >&5 7816 cat conftest.$ac_ext >&5 7817 fi 7818 rm -rf conftest* conftst* 7819 7820 # Do not use the global_symbol_pipe unless it works. 7821 if test yes = "$pipe_works"; then 7822 break 7823 else 7824 lt_cv_sys_global_symbol_pipe= 7825 fi 7826done 7827 ;; 7828esac 7829fi 7830 7831if test -z "$lt_cv_sys_global_symbol_pipe"; then 7832 lt_cv_sys_global_symbol_to_cdecl= 7833fi 7834if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7836printf "%s\n" "failed" >&6; } 7837else 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7839printf "%s\n" "ok" >&6; } 7840fi 7841 7842# Response file support. 7843if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7844 nm_file_list_spec='@' 7845elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7846 nm_file_list_spec='@' 7847fi 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7886printf %s "checking for sysroot... " >&6; } 7887 7888# Check whether --with-sysroot was given. 7889if test ${with_sysroot+y} 7890then : 7891 withval=$with_sysroot; 7892else case e in #( 7893 e) with_sysroot=no ;; 7894esac 7895fi 7896 7897 7898lt_sysroot= 7899case $with_sysroot in #( 7900 yes) 7901 if test yes = "$GCC"; then 7902 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7903 fi 7904 ;; #( 7905 /*) 7906 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7907 ;; #( 7908 no|'') 7909 ;; #( 7910 *) 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7912printf "%s\n" "$with_sysroot" >&6; } 7913 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7914 ;; 7915esac 7916 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7918printf "%s\n" "${lt_sysroot:-no}" >&6; } 7919 7920 7921 7922 7923 7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7925printf %s "checking for a working dd... " >&6; } 7926if test ${ac_cv_path_lt_DD+y} 7927then : 7928 printf %s "(cached) " >&6 7929else case e in #( 7930 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7931cat conftest.i conftest.i >conftest2.i 7932: ${lt_DD:=$DD} 7933if test -z "$lt_DD"; then 7934 ac_path_lt_DD_found=false 7935 # Loop through the user's path and test for each of PROGNAME-LIST 7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937for as_dir in $PATH 7938do 7939 IFS=$as_save_IFS 7940 case $as_dir in #((( 7941 '') as_dir=./ ;; 7942 */) ;; 7943 *) as_dir=$as_dir/ ;; 7944 esac 7945 for ac_prog in dd 7946 do 7947 for ac_exec_ext in '' $ac_executable_extensions; do 7948 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7949 as_fn_executable_p "$ac_path_lt_DD" || continue 7950if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7951 cmp -s conftest.i conftest.out \ 7952 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7953fi 7954 $ac_path_lt_DD_found && break 3 7955 done 7956 done 7957 done 7958IFS=$as_save_IFS 7959 if test -z "$ac_cv_path_lt_DD"; then 7960 : 7961 fi 7962else 7963 ac_cv_path_lt_DD=$lt_DD 7964fi 7965 7966rm -f conftest.i conftest2.i conftest.out ;; 7967esac 7968fi 7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7970printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7971 7972 7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7974printf %s "checking how to truncate binary pipes... " >&6; } 7975if test ${lt_cv_truncate_bin+y} 7976then : 7977 printf %s "(cached) " >&6 7978else case e in #( 7979 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7980cat conftest.i conftest.i >conftest2.i 7981lt_cv_truncate_bin= 7982if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7983 cmp -s conftest.i conftest.out \ 7984 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7985fi 7986rm -f conftest.i conftest2.i conftest.out 7987test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7988esac 7989fi 7990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7991printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7992 7993 7994 7995 7996 7997 7998 7999# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8000func_cc_basename () 8001{ 8002 for cc_temp in $*""; do 8003 case $cc_temp in 8004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8006 \-*) ;; 8007 *) break;; 8008 esac 8009 done 8010 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8011} 8012 8013# Check whether --enable-libtool-lock was given. 8014if test ${enable_libtool_lock+y} 8015then : 8016 enableval=$enable_libtool_lock; 8017fi 8018 8019test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8020 8021# Some flags need to be propagated to the compiler or linker for good 8022# libtool support. 8023case $host in 8024ia64-*-hpux*) 8025 # Find out what ABI is being produced by ac_compile, and set mode 8026 # options accordingly. 8027 echo 'int i;' > conftest.$ac_ext 8028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8029 (eval $ac_compile) 2>&5 8030 ac_status=$? 8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8032 test $ac_status = 0; }; then 8033 case `$FILECMD conftest.$ac_objext` in 8034 *ELF-32*) 8035 HPUX_IA64_MODE=32 8036 ;; 8037 *ELF-64*) 8038 HPUX_IA64_MODE=64 8039 ;; 8040 esac 8041 fi 8042 rm -rf conftest* 8043 ;; 8044*-*-irix6*) 8045 # Find out what ABI is being produced by ac_compile, and set linker 8046 # options accordingly. 8047 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8049 (eval $ac_compile) 2>&5 8050 ac_status=$? 8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8052 test $ac_status = 0; }; then 8053 if test yes = "$lt_cv_prog_gnu_ld"; then 8054 case `$FILECMD conftest.$ac_objext` in 8055 *32-bit*) 8056 LD="${LD-ld} -melf32bsmip" 8057 ;; 8058 *N32*) 8059 LD="${LD-ld} -melf32bmipn32" 8060 ;; 8061 *64-bit*) 8062 LD="${LD-ld} -melf64bmip" 8063 ;; 8064 esac 8065 else 8066 case `$FILECMD conftest.$ac_objext` in 8067 *32-bit*) 8068 LD="${LD-ld} -32" 8069 ;; 8070 *N32*) 8071 LD="${LD-ld} -n32" 8072 ;; 8073 *64-bit*) 8074 LD="${LD-ld} -64" 8075 ;; 8076 esac 8077 fi 8078 fi 8079 rm -rf conftest* 8080 ;; 8081 8082mips64*-*linux*) 8083 # Find out what ABI is being produced by ac_compile, and set linker 8084 # options accordingly. 8085 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8087 (eval $ac_compile) 2>&5 8088 ac_status=$? 8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8090 test $ac_status = 0; }; then 8091 emul=elf 8092 case `$FILECMD conftest.$ac_objext` in 8093 *32-bit*) 8094 emul="${emul}32" 8095 ;; 8096 *64-bit*) 8097 emul="${emul}64" 8098 ;; 8099 esac 8100 case `$FILECMD conftest.$ac_objext` in 8101 *MSB*) 8102 emul="${emul}btsmip" 8103 ;; 8104 *LSB*) 8105 emul="${emul}ltsmip" 8106 ;; 8107 esac 8108 case `$FILECMD conftest.$ac_objext` in 8109 *N32*) 8110 emul="${emul}n32" 8111 ;; 8112 esac 8113 LD="${LD-ld} -m $emul" 8114 fi 8115 rm -rf conftest* 8116 ;; 8117 8118x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8119s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8120 # Find out what ABI is being produced by ac_compile, and set linker 8121 # options accordingly. Note that the listed cases only cover the 8122 # situations where additional linker options are needed (such as when 8123 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8124 # vice versa); the common cases where no linker options are needed do 8125 # not appear in the list. 8126 echo 'int i;' > conftest.$ac_ext 8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8128 (eval $ac_compile) 2>&5 8129 ac_status=$? 8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8131 test $ac_status = 0; }; then 8132 case `$FILECMD conftest.o` in 8133 *32-bit*) 8134 case $host in 8135 x86_64-*kfreebsd*-gnu) 8136 LD="${LD-ld} -m elf_i386_fbsd" 8137 ;; 8138 x86_64-*linux*) 8139 case `$FILECMD conftest.o` in 8140 *x86-64*) 8141 LD="${LD-ld} -m elf32_x86_64" 8142 ;; 8143 *) 8144 LD="${LD-ld} -m elf_i386" 8145 ;; 8146 esac 8147 ;; 8148 powerpc64le-*linux*) 8149 LD="${LD-ld} -m elf32lppclinux" 8150 ;; 8151 powerpc64-*linux*) 8152 LD="${LD-ld} -m elf32ppclinux" 8153 ;; 8154 s390x-*linux*) 8155 LD="${LD-ld} -m elf_s390" 8156 ;; 8157 sparc64-*linux*) 8158 LD="${LD-ld} -m elf32_sparc" 8159 ;; 8160 esac 8161 ;; 8162 *64-bit*) 8163 case $host in 8164 x86_64-*kfreebsd*-gnu) 8165 LD="${LD-ld} -m elf_x86_64_fbsd" 8166 ;; 8167 x86_64-*linux*) 8168 LD="${LD-ld} -m elf_x86_64" 8169 ;; 8170 powerpcle-*linux*) 8171 LD="${LD-ld} -m elf64lppc" 8172 ;; 8173 powerpc-*linux*) 8174 LD="${LD-ld} -m elf64ppc" 8175 ;; 8176 s390*-*linux*|s390*-*tpf*) 8177 LD="${LD-ld} -m elf64_s390" 8178 ;; 8179 sparc*-*linux*) 8180 LD="${LD-ld} -m elf64_sparc" 8181 ;; 8182 esac 8183 ;; 8184 esac 8185 fi 8186 rm -rf conftest* 8187 ;; 8188 8189*-*-sco3.2v5*) 8190 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8191 SAVE_CFLAGS=$CFLAGS 8192 CFLAGS="$CFLAGS -belf" 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8194printf %s "checking whether the C compiler needs -belf... " >&6; } 8195if test ${lt_cv_cc_needs_belf+y} 8196then : 8197 printf %s "(cached) " >&6 8198else case e in #( 8199 e) ac_ext=c 8200ac_cpp='$CPP $CPPFLAGS' 8201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8203ac_compiler_gnu=$ac_cv_c_compiler_gnu 8204 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206/* end confdefs.h. */ 8207 8208int 8209main (void) 8210{ 8211 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216if ac_fn_c_try_link "$LINENO" 8217then : 8218 lt_cv_cc_needs_belf=yes 8219else case e in #( 8220 e) lt_cv_cc_needs_belf=no ;; 8221esac 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8224 conftest$ac_exeext conftest.$ac_ext 8225 ac_ext=c 8226ac_cpp='$CPP $CPPFLAGS' 8227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8229ac_compiler_gnu=$ac_cv_c_compiler_gnu 8230 ;; 8231esac 8232fi 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8234printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8235 if test yes != "$lt_cv_cc_needs_belf"; then 8236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8237 CFLAGS=$SAVE_CFLAGS 8238 fi 8239 ;; 8240*-*solaris*) 8241 # Find out what ABI is being produced by ac_compile, and set linker 8242 # options accordingly. 8243 echo 'int i;' > conftest.$ac_ext 8244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8245 (eval $ac_compile) 2>&5 8246 ac_status=$? 8247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8248 test $ac_status = 0; }; then 8249 case `$FILECMD conftest.o` in 8250 *64-bit*) 8251 case $lt_cv_prog_gnu_ld in 8252 yes*) 8253 case $host in 8254 i?86-*-solaris*|x86_64-*-solaris*) 8255 LD="${LD-ld} -m elf_x86_64" 8256 ;; 8257 sparc*-*-solaris*) 8258 LD="${LD-ld} -m elf64_sparc" 8259 ;; 8260 esac 8261 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8262 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8263 LD=${LD-ld}_sol2 8264 fi 8265 ;; 8266 *) 8267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8268 LD="${LD-ld} -64" 8269 fi 8270 ;; 8271 esac 8272 ;; 8273 esac 8274 fi 8275 rm -rf conftest* 8276 ;; 8277esac 8278 8279need_locks=$enable_libtool_lock 8280 8281if test -n "$ac_tool_prefix"; then 8282 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8283set dummy ${ac_tool_prefix}mt; ac_word=$2 8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285printf %s "checking for $ac_word... " >&6; } 8286if test ${ac_cv_prog_MANIFEST_TOOL+y} 8287then : 8288 printf %s "(cached) " >&6 8289else case e in #( 8290 e) if test -n "$MANIFEST_TOOL"; then 8291 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8292else 8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294for as_dir in $PATH 8295do 8296 IFS=$as_save_IFS 8297 case $as_dir in #((( 8298 '') as_dir=./ ;; 8299 */) ;; 8300 *) as_dir=$as_dir/ ;; 8301 esac 8302 for ac_exec_ext in '' $ac_executable_extensions; do 8303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8304 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8306 break 2 8307 fi 8308done 8309 done 8310IFS=$as_save_IFS 8311 8312fi ;; 8313esac 8314fi 8315MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8316if test -n "$MANIFEST_TOOL"; then 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8318printf "%s\n" "$MANIFEST_TOOL" >&6; } 8319else 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321printf "%s\n" "no" >&6; } 8322fi 8323 8324 8325fi 8326if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8327 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8328 # Extract the first word of "mt", so it can be a program name with args. 8329set dummy mt; ac_word=$2 8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331printf %s "checking for $ac_word... " >&6; } 8332if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8333then : 8334 printf %s "(cached) " >&6 8335else case e in #( 8336 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8337 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8338else 8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 case $as_dir in #((( 8344 '') as_dir=./ ;; 8345 */) ;; 8346 *) as_dir=$as_dir/ ;; 8347 esac 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354done 8355 done 8356IFS=$as_save_IFS 8357 8358fi ;; 8359esac 8360fi 8361ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8362if test -n "$ac_ct_MANIFEST_TOOL"; then 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8364printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8365else 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8367printf "%s\n" "no" >&6; } 8368fi 8369 8370 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8371 MANIFEST_TOOL=":" 8372 else 8373 case $cross_compiling:$ac_tool_warned in 8374yes:) 8375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8377ac_tool_warned=yes ;; 8378esac 8379 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8380 fi 8381else 8382 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8383fi 8384 8385test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8387printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8388if test ${lt_cv_path_mainfest_tool+y} 8389then : 8390 printf %s "(cached) " >&6 8391else case e in #( 8392 e) lt_cv_path_mainfest_tool=no 8393 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8394 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8395 cat conftest.err >&5 8396 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8397 lt_cv_path_mainfest_tool=yes 8398 fi 8399 rm -f conftest* ;; 8400esac 8401fi 8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8403printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8404if test yes != "$lt_cv_path_mainfest_tool"; then 8405 MANIFEST_TOOL=: 8406fi 8407 8408 8409 8410 8411 8412 8413 case $host_os in 8414 rhapsody* | darwin*) 8415 if test -n "$ac_tool_prefix"; then 8416 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8417set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8419printf %s "checking for $ac_word... " >&6; } 8420if test ${ac_cv_prog_DSYMUTIL+y} 8421then : 8422 printf %s "(cached) " >&6 8423else case e in #( 8424 e) if test -n "$DSYMUTIL"; then 8425 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8426else 8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8428for as_dir in $PATH 8429do 8430 IFS=$as_save_IFS 8431 case $as_dir in #((( 8432 '') as_dir=./ ;; 8433 */) ;; 8434 *) as_dir=$as_dir/ ;; 8435 esac 8436 for ac_exec_ext in '' $ac_executable_extensions; do 8437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8440 break 2 8441 fi 8442done 8443 done 8444IFS=$as_save_IFS 8445 8446fi ;; 8447esac 8448fi 8449DSYMUTIL=$ac_cv_prog_DSYMUTIL 8450if test -n "$DSYMUTIL"; then 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8452printf "%s\n" "$DSYMUTIL" >&6; } 8453else 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455printf "%s\n" "no" >&6; } 8456fi 8457 8458 8459fi 8460if test -z "$ac_cv_prog_DSYMUTIL"; then 8461 ac_ct_DSYMUTIL=$DSYMUTIL 8462 # Extract the first word of "dsymutil", so it can be a program name with args. 8463set dummy dsymutil; ac_word=$2 8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8465printf %s "checking for $ac_word... " >&6; } 8466if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8467then : 8468 printf %s "(cached) " >&6 8469else case e in #( 8470 e) if test -n "$ac_ct_DSYMUTIL"; then 8471 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8472else 8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8474for as_dir in $PATH 8475do 8476 IFS=$as_save_IFS 8477 case $as_dir in #((( 8478 '') as_dir=./ ;; 8479 */) ;; 8480 *) as_dir=$as_dir/ ;; 8481 esac 8482 for ac_exec_ext in '' $ac_executable_extensions; do 8483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8486 break 2 8487 fi 8488done 8489 done 8490IFS=$as_save_IFS 8491 8492fi ;; 8493esac 8494fi 8495ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8496if test -n "$ac_ct_DSYMUTIL"; then 8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8498printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8499else 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501printf "%s\n" "no" >&6; } 8502fi 8503 8504 if test "x$ac_ct_DSYMUTIL" = x; then 8505 DSYMUTIL=":" 8506 else 8507 case $cross_compiling:$ac_tool_warned in 8508yes:) 8509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8511ac_tool_warned=yes ;; 8512esac 8513 DSYMUTIL=$ac_ct_DSYMUTIL 8514 fi 8515else 8516 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8517fi 8518 8519 if test -n "$ac_tool_prefix"; then 8520 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8521set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8523printf %s "checking for $ac_word... " >&6; } 8524if test ${ac_cv_prog_NMEDIT+y} 8525then : 8526 printf %s "(cached) " >&6 8527else case e in #( 8528 e) if test -n "$NMEDIT"; then 8529 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8530else 8531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8532for as_dir in $PATH 8533do 8534 IFS=$as_save_IFS 8535 case $as_dir in #((( 8536 '') as_dir=./ ;; 8537 */) ;; 8538 *) as_dir=$as_dir/ ;; 8539 esac 8540 for ac_exec_ext in '' $ac_executable_extensions; do 8541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8542 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8544 break 2 8545 fi 8546done 8547 done 8548IFS=$as_save_IFS 8549 8550fi ;; 8551esac 8552fi 8553NMEDIT=$ac_cv_prog_NMEDIT 8554if test -n "$NMEDIT"; then 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8556printf "%s\n" "$NMEDIT" >&6; } 8557else 8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8559printf "%s\n" "no" >&6; } 8560fi 8561 8562 8563fi 8564if test -z "$ac_cv_prog_NMEDIT"; then 8565 ac_ct_NMEDIT=$NMEDIT 8566 # Extract the first word of "nmedit", so it can be a program name with args. 8567set dummy nmedit; ac_word=$2 8568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8569printf %s "checking for $ac_word... " >&6; } 8570if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8571then : 8572 printf %s "(cached) " >&6 8573else case e in #( 8574 e) if test -n "$ac_ct_NMEDIT"; then 8575 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8576else 8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8578for as_dir in $PATH 8579do 8580 IFS=$as_save_IFS 8581 case $as_dir in #((( 8582 '') as_dir=./ ;; 8583 */) ;; 8584 *) as_dir=$as_dir/ ;; 8585 esac 8586 for ac_exec_ext in '' $ac_executable_extensions; do 8587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8588 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8590 break 2 8591 fi 8592done 8593 done 8594IFS=$as_save_IFS 8595 8596fi ;; 8597esac 8598fi 8599ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8600if test -n "$ac_ct_NMEDIT"; then 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8602printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8603else 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8605printf "%s\n" "no" >&6; } 8606fi 8607 8608 if test "x$ac_ct_NMEDIT" = x; then 8609 NMEDIT=":" 8610 else 8611 case $cross_compiling:$ac_tool_warned in 8612yes:) 8613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8614printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8615ac_tool_warned=yes ;; 8616esac 8617 NMEDIT=$ac_ct_NMEDIT 8618 fi 8619else 8620 NMEDIT="$ac_cv_prog_NMEDIT" 8621fi 8622 8623 if test -n "$ac_tool_prefix"; then 8624 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8625set dummy ${ac_tool_prefix}lipo; ac_word=$2 8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8627printf %s "checking for $ac_word... " >&6; } 8628if test ${ac_cv_prog_LIPO+y} 8629then : 8630 printf %s "(cached) " >&6 8631else case e in #( 8632 e) if test -n "$LIPO"; then 8633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 case $as_dir in #((( 8640 '') as_dir=./ ;; 8641 */) ;; 8642 *) as_dir=$as_dir/ ;; 8643 esac 8644 for ac_exec_ext in '' $ac_executable_extensions; do 8645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8648 break 2 8649 fi 8650done 8651 done 8652IFS=$as_save_IFS 8653 8654fi ;; 8655esac 8656fi 8657LIPO=$ac_cv_prog_LIPO 8658if test -n "$LIPO"; then 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8660printf "%s\n" "$LIPO" >&6; } 8661else 8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663printf "%s\n" "no" >&6; } 8664fi 8665 8666 8667fi 8668if test -z "$ac_cv_prog_LIPO"; then 8669 ac_ct_LIPO=$LIPO 8670 # Extract the first word of "lipo", so it can be a program name with args. 8671set dummy lipo; ac_word=$2 8672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673printf %s "checking for $ac_word... " >&6; } 8674if test ${ac_cv_prog_ac_ct_LIPO+y} 8675then : 8676 printf %s "(cached) " >&6 8677else case e in #( 8678 e) if test -n "$ac_ct_LIPO"; then 8679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8680else 8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8682for as_dir in $PATH 8683do 8684 IFS=$as_save_IFS 8685 case $as_dir in #((( 8686 '') as_dir=./ ;; 8687 */) ;; 8688 *) as_dir=$as_dir/ ;; 8689 esac 8690 for ac_exec_ext in '' $ac_executable_extensions; do 8691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8692 ac_cv_prog_ac_ct_LIPO="lipo" 8693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8694 break 2 8695 fi 8696done 8697 done 8698IFS=$as_save_IFS 8699 8700fi ;; 8701esac 8702fi 8703ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8704if test -n "$ac_ct_LIPO"; then 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8706printf "%s\n" "$ac_ct_LIPO" >&6; } 8707else 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709printf "%s\n" "no" >&6; } 8710fi 8711 8712 if test "x$ac_ct_LIPO" = x; then 8713 LIPO=":" 8714 else 8715 case $cross_compiling:$ac_tool_warned in 8716yes:) 8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8719ac_tool_warned=yes ;; 8720esac 8721 LIPO=$ac_ct_LIPO 8722 fi 8723else 8724 LIPO="$ac_cv_prog_LIPO" 8725fi 8726 8727 if test -n "$ac_tool_prefix"; then 8728 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8729set dummy ${ac_tool_prefix}otool; ac_word=$2 8730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8731printf %s "checking for $ac_word... " >&6; } 8732if test ${ac_cv_prog_OTOOL+y} 8733then : 8734 printf %s "(cached) " >&6 8735else case e in #( 8736 e) if test -n "$OTOOL"; then 8737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8738else 8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8740for as_dir in $PATH 8741do 8742 IFS=$as_save_IFS 8743 case $as_dir in #((( 8744 '') as_dir=./ ;; 8745 */) ;; 8746 *) as_dir=$as_dir/ ;; 8747 esac 8748 for ac_exec_ext in '' $ac_executable_extensions; do 8749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8750 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8752 break 2 8753 fi 8754done 8755 done 8756IFS=$as_save_IFS 8757 8758fi ;; 8759esac 8760fi 8761OTOOL=$ac_cv_prog_OTOOL 8762if test -n "$OTOOL"; then 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8764printf "%s\n" "$OTOOL" >&6; } 8765else 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8767printf "%s\n" "no" >&6; } 8768fi 8769 8770 8771fi 8772if test -z "$ac_cv_prog_OTOOL"; then 8773 ac_ct_OTOOL=$OTOOL 8774 # Extract the first word of "otool", so it can be a program name with args. 8775set dummy otool; ac_word=$2 8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8777printf %s "checking for $ac_word... " >&6; } 8778if test ${ac_cv_prog_ac_ct_OTOOL+y} 8779then : 8780 printf %s "(cached) " >&6 8781else case e in #( 8782 e) if test -n "$ac_ct_OTOOL"; then 8783 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8784else 8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8786for as_dir in $PATH 8787do 8788 IFS=$as_save_IFS 8789 case $as_dir in #((( 8790 '') as_dir=./ ;; 8791 */) ;; 8792 *) as_dir=$as_dir/ ;; 8793 esac 8794 for ac_exec_ext in '' $ac_executable_extensions; do 8795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8796 ac_cv_prog_ac_ct_OTOOL="otool" 8797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8798 break 2 8799 fi 8800done 8801 done 8802IFS=$as_save_IFS 8803 8804fi ;; 8805esac 8806fi 8807ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8808if test -n "$ac_ct_OTOOL"; then 8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8810printf "%s\n" "$ac_ct_OTOOL" >&6; } 8811else 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8813printf "%s\n" "no" >&6; } 8814fi 8815 8816 if test "x$ac_ct_OTOOL" = x; then 8817 OTOOL=":" 8818 else 8819 case $cross_compiling:$ac_tool_warned in 8820yes:) 8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8823ac_tool_warned=yes ;; 8824esac 8825 OTOOL=$ac_ct_OTOOL 8826 fi 8827else 8828 OTOOL="$ac_cv_prog_OTOOL" 8829fi 8830 8831 if test -n "$ac_tool_prefix"; then 8832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8833set dummy ${ac_tool_prefix}otool64; ac_word=$2 8834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8835printf %s "checking for $ac_word... " >&6; } 8836if test ${ac_cv_prog_OTOOL64+y} 8837then : 8838 printf %s "(cached) " >&6 8839else case e in #( 8840 e) if test -n "$OTOOL64"; then 8841 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8842else 8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8844for as_dir in $PATH 8845do 8846 IFS=$as_save_IFS 8847 case $as_dir in #((( 8848 '') as_dir=./ ;; 8849 */) ;; 8850 *) as_dir=$as_dir/ ;; 8851 esac 8852 for ac_exec_ext in '' $ac_executable_extensions; do 8853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8854 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8856 break 2 8857 fi 8858done 8859 done 8860IFS=$as_save_IFS 8861 8862fi ;; 8863esac 8864fi 8865OTOOL64=$ac_cv_prog_OTOOL64 8866if test -n "$OTOOL64"; then 8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8868printf "%s\n" "$OTOOL64" >&6; } 8869else 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8871printf "%s\n" "no" >&6; } 8872fi 8873 8874 8875fi 8876if test -z "$ac_cv_prog_OTOOL64"; then 8877 ac_ct_OTOOL64=$OTOOL64 8878 # Extract the first word of "otool64", so it can be a program name with args. 8879set dummy otool64; ac_word=$2 8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8881printf %s "checking for $ac_word... " >&6; } 8882if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8883then : 8884 printf %s "(cached) " >&6 8885else case e in #( 8886 e) if test -n "$ac_ct_OTOOL64"; then 8887 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8888else 8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8890for as_dir in $PATH 8891do 8892 IFS=$as_save_IFS 8893 case $as_dir in #((( 8894 '') as_dir=./ ;; 8895 */) ;; 8896 *) as_dir=$as_dir/ ;; 8897 esac 8898 for ac_exec_ext in '' $ac_executable_extensions; do 8899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8900 ac_cv_prog_ac_ct_OTOOL64="otool64" 8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8902 break 2 8903 fi 8904done 8905 done 8906IFS=$as_save_IFS 8907 8908fi ;; 8909esac 8910fi 8911ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8912if test -n "$ac_ct_OTOOL64"; then 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8914printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8915else 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8917printf "%s\n" "no" >&6; } 8918fi 8919 8920 if test "x$ac_ct_OTOOL64" = x; then 8921 OTOOL64=":" 8922 else 8923 case $cross_compiling:$ac_tool_warned in 8924yes:) 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8926printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8927ac_tool_warned=yes ;; 8928esac 8929 OTOOL64=$ac_ct_OTOOL64 8930 fi 8931else 8932 OTOOL64="$ac_cv_prog_OTOOL64" 8933fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8962printf %s "checking for -single_module linker flag... " >&6; } 8963if test ${lt_cv_apple_cc_single_mod+y} 8964then : 8965 printf %s "(cached) " >&6 8966else case e in #( 8967 e) lt_cv_apple_cc_single_mod=no 8968 if test -z "$LT_MULTI_MODULE"; then 8969 # By default we will add the -single_module flag. You can override 8970 # by either setting the environment variable LT_MULTI_MODULE 8971 # non-empty at configure time, or by adding -multi_module to the 8972 # link flags. 8973 rm -rf libconftest.dylib* 8974 echo "int foo(void){return 1;}" > conftest.c 8975 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8976-dynamiclib -Wl,-single_module conftest.c" >&5 8977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8978 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8979 _lt_result=$? 8980 # If there is a non-empty error log, and "single_module" 8981 # appears in it, assume the flag caused a linker warning 8982 if test -s conftest.err && $GREP single_module conftest.err; then 8983 cat conftest.err >&5 8984 # Otherwise, if the output was created with a 0 exit code from 8985 # the compiler, it worked. 8986 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8987 lt_cv_apple_cc_single_mod=yes 8988 else 8989 cat conftest.err >&5 8990 fi 8991 rm -rf libconftest.dylib* 8992 rm -f conftest.* 8993 fi ;; 8994esac 8995fi 8996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8997printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8998 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9000printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9001if test ${lt_cv_ld_exported_symbols_list+y} 9002then : 9003 printf %s "(cached) " >&6 9004else case e in #( 9005 e) lt_cv_ld_exported_symbols_list=no 9006 save_LDFLAGS=$LDFLAGS 9007 echo "_main" > conftest.sym 9008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011 9012int 9013main (void) 9014{ 9015 9016 ; 9017 return 0; 9018} 9019_ACEOF 9020if ac_fn_c_try_link "$LINENO" 9021then : 9022 lt_cv_ld_exported_symbols_list=yes 9023else case e in #( 9024 e) lt_cv_ld_exported_symbols_list=no ;; 9025esac 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9028 conftest$ac_exeext conftest.$ac_ext 9029 LDFLAGS=$save_LDFLAGS 9030 ;; 9031esac 9032fi 9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9034printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9035 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9037printf %s "checking for -force_load linker flag... " >&6; } 9038if test ${lt_cv_ld_force_load+y} 9039then : 9040 printf %s "(cached) " >&6 9041else case e in #( 9042 e) lt_cv_ld_force_load=no 9043 cat > conftest.c << _LT_EOF 9044int forced_loaded() { return 2;} 9045_LT_EOF 9046 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9047 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9048 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9049 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9050 echo "$RANLIB libconftest.a" >&5 9051 $RANLIB libconftest.a 2>&5 9052 cat > conftest.c << _LT_EOF 9053int main() { return 0;} 9054_LT_EOF 9055 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9056 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9057 _lt_result=$? 9058 if test -s conftest.err && $GREP force_load conftest.err; then 9059 cat conftest.err >&5 9060 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9061 lt_cv_ld_force_load=yes 9062 else 9063 cat conftest.err >&5 9064 fi 9065 rm -f conftest.err libconftest.a conftest conftest.c 9066 rm -rf conftest.dSYM 9067 ;; 9068esac 9069fi 9070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9071printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9072 case $host_os in 9073 rhapsody* | darwin1.[012]) 9074 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9075 darwin1.*) 9076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9077 darwin*) 9078 case $MACOSX_DEPLOYMENT_TARGET,$host in 9079 10.[012],*|,*powerpc*-darwin[5-8]*) 9080 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9081 *) 9082 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9083 esac 9084 ;; 9085 esac 9086 if test yes = "$lt_cv_apple_cc_single_mod"; then 9087 _lt_dar_single_mod='$single_module' 9088 fi 9089 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9090 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9091 else 9092 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9093 fi 9094 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9095 _lt_dsymutil='~$DSYMUTIL $lib || :' 9096 else 9097 _lt_dsymutil= 9098 fi 9099 ;; 9100 esac 9101 9102# func_munge_path_list VARIABLE PATH 9103# ----------------------------------- 9104# VARIABLE is name of variable containing _space_ separated list of 9105# directories to be munged by the contents of PATH, which is string 9106# having a format: 9107# "DIR[:DIR]:" 9108# string "DIR[ DIR]" will be prepended to VARIABLE 9109# ":DIR[:DIR]" 9110# string "DIR[ DIR]" will be appended to VARIABLE 9111# "DIRP[:DIRP]::[DIRA:]DIRA" 9112# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9113# "DIRA[ DIRA]" will be appended to VARIABLE 9114# "DIR[:DIR]" 9115# VARIABLE will be replaced by "DIR[ DIR]" 9116func_munge_path_list () 9117{ 9118 case x$2 in 9119 x) 9120 ;; 9121 *:) 9122 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9123 ;; 9124 x:*) 9125 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9126 ;; 9127 *::*) 9128 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9129 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9130 ;; 9131 *) 9132 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9133 ;; 9134 esac 9135} 9136 9137ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9138" 9139if test "x$ac_cv_header_dlfcn_h" = xyes 9140then : 9141 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9142 9143fi 9144 9145 9146 9147 9148 9149# Set options 9150 9151 9152 9153 enable_dlopen=no 9154 9155 9156 enable_win32_dll=no 9157 9158 9159 # Check whether --enable-shared was given. 9160if test ${enable_shared+y} 9161then : 9162 enableval=$enable_shared; p=${PACKAGE-default} 9163 case $enableval in 9164 yes) enable_shared=yes ;; 9165 no) enable_shared=no ;; 9166 *) 9167 enable_shared=no 9168 # Look at the argument we got. We use all the common list separators. 9169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9170 for pkg in $enableval; do 9171 IFS=$lt_save_ifs 9172 if test "X$pkg" = "X$p"; then 9173 enable_shared=yes 9174 fi 9175 done 9176 IFS=$lt_save_ifs 9177 ;; 9178 esac 9179else case e in #( 9180 e) enable_shared=yes ;; 9181esac 9182fi 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 # Check whether --enable-static was given. 9193if test ${enable_static+y} 9194then : 9195 enableval=$enable_static; p=${PACKAGE-default} 9196 case $enableval in 9197 yes) enable_static=yes ;; 9198 no) enable_static=no ;; 9199 *) 9200 enable_static=no 9201 # Look at the argument we got. We use all the common list separators. 9202 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9203 for pkg in $enableval; do 9204 IFS=$lt_save_ifs 9205 if test "X$pkg" = "X$p"; then 9206 enable_static=yes 9207 fi 9208 done 9209 IFS=$lt_save_ifs 9210 ;; 9211 esac 9212else case e in #( 9213 e) enable_static=yes ;; 9214esac 9215fi 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226# Check whether --with-pic was given. 9227if test ${with_pic+y} 9228then : 9229 withval=$with_pic; lt_p=${PACKAGE-default} 9230 case $withval in 9231 yes|no) pic_mode=$withval ;; 9232 *) 9233 pic_mode=default 9234 # Look at the argument we got. We use all the common list separators. 9235 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9236 for lt_pkg in $withval; do 9237 IFS=$lt_save_ifs 9238 if test "X$lt_pkg" = "X$lt_p"; then 9239 pic_mode=yes 9240 fi 9241 done 9242 IFS=$lt_save_ifs 9243 ;; 9244 esac 9245else case e in #( 9246 e) pic_mode=default ;; 9247esac 9248fi 9249 9250 9251 9252 9253 9254 9255 9256 9257 # Check whether --enable-fast-install was given. 9258if test ${enable_fast_install+y} 9259then : 9260 enableval=$enable_fast_install; p=${PACKAGE-default} 9261 case $enableval in 9262 yes) enable_fast_install=yes ;; 9263 no) enable_fast_install=no ;; 9264 *) 9265 enable_fast_install=no 9266 # Look at the argument we got. We use all the common list separators. 9267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9268 for pkg in $enableval; do 9269 IFS=$lt_save_ifs 9270 if test "X$pkg" = "X$p"; then 9271 enable_fast_install=yes 9272 fi 9273 done 9274 IFS=$lt_save_ifs 9275 ;; 9276 esac 9277else case e in #( 9278 e) enable_fast_install=yes ;; 9279esac 9280fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 shared_archive_member_spec= 9290case $host,$enable_shared in 9291power*-*-aix[5-9]*,yes) 9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9293printf %s "checking which variant of shared library versioning to provide... " >&6; } 9294 9295# Check whether --with-aix-soname was given. 9296if test ${with_aix_soname+y} 9297then : 9298 withval=$with_aix_soname; case $withval in 9299 aix|svr4|both) 9300 ;; 9301 *) 9302 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9303 ;; 9304 esac 9305 lt_cv_with_aix_soname=$with_aix_soname 9306else case e in #( 9307 e) if test ${lt_cv_with_aix_soname+y} 9308then : 9309 printf %s "(cached) " >&6 9310else case e in #( 9311 e) lt_cv_with_aix_soname=aix ;; 9312esac 9313fi 9314 9315 with_aix_soname=$lt_cv_with_aix_soname ;; 9316esac 9317fi 9318 9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9320printf "%s\n" "$with_aix_soname" >&6; } 9321 if test aix != "$with_aix_soname"; then 9322 # For the AIX way of multilib, we name the shared archive member 9323 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9324 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9325 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9326 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9327 if test 64 = "${OBJECT_MODE-32}"; then 9328 shared_archive_member_spec=shr_64 9329 else 9330 shared_archive_member_spec=shr 9331 fi 9332 fi 9333 ;; 9334*) 9335 with_aix_soname=aix 9336 ;; 9337esac 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348# This can be used to rebuild libtool when needed 9349LIBTOOL_DEPS=$ltmain 9350 9351# Always use our own libtool. 9352LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383test -z "$LN_S" && LN_S="ln -s" 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398if test -n "${ZSH_VERSION+set}"; then 9399 setopt NO_GLOB_SUBST 9400fi 9401 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9403printf %s "checking for objdir... " >&6; } 9404if test ${lt_cv_objdir+y} 9405then : 9406 printf %s "(cached) " >&6 9407else case e in #( 9408 e) rm -f .libs 2>/dev/null 9409mkdir .libs 2>/dev/null 9410if test -d .libs; then 9411 lt_cv_objdir=.libs 9412else 9413 # MS-DOS does not allow filenames that begin with a dot. 9414 lt_cv_objdir=_libs 9415fi 9416rmdir .libs 2>/dev/null ;; 9417esac 9418fi 9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9420printf "%s\n" "$lt_cv_objdir" >&6; } 9421objdir=$lt_cv_objdir 9422 9423 9424 9425 9426 9427printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9428 9429 9430 9431 9432case $host_os in 9433aix3*) 9434 # AIX sometimes has problems with the GCC collect2 program. For some 9435 # reason, if we set the COLLECT_NAMES environment variable, the problems 9436 # vanish in a puff of smoke. 9437 if test set != "${COLLECT_NAMES+set}"; then 9438 COLLECT_NAMES= 9439 export COLLECT_NAMES 9440 fi 9441 ;; 9442esac 9443 9444# Global variables: 9445ofile=libtool 9446can_build_shared=yes 9447 9448# All known linkers require a '.a' archive for static linking (except MSVC and 9449# ICC, which need '.lib'). 9450libext=a 9451 9452with_gnu_ld=$lt_cv_prog_gnu_ld 9453 9454old_CC=$CC 9455old_CFLAGS=$CFLAGS 9456 9457# Set sane defaults for various variables 9458test -z "$CC" && CC=cc 9459test -z "$LTCC" && LTCC=$CC 9460test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9461test -z "$LD" && LD=ld 9462test -z "$ac_objext" && ac_objext=o 9463 9464func_cc_basename $compiler 9465cc_basename=$func_cc_basename_result 9466 9467 9468# Only perform the check for file, if the check method requires it 9469test -z "$MAGIC_CMD" && MAGIC_CMD=file 9470case $deplibs_check_method in 9471file_magic*) 9472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9474printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9475if test ${lt_cv_path_MAGIC_CMD+y} 9476then : 9477 printf %s "(cached) " >&6 9478else case e in #( 9479 e) case $MAGIC_CMD in 9480[\\/*] | ?:[\\/]*) 9481 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9482 ;; 9483*) 9484 lt_save_MAGIC_CMD=$MAGIC_CMD 9485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9486 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9487 for ac_dir in $ac_dummy; do 9488 IFS=$lt_save_ifs 9489 test -z "$ac_dir" && ac_dir=. 9490 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9491 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9492 if test -n "$file_magic_test_file"; then 9493 case $deplibs_check_method in 9494 "file_magic "*) 9495 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9497 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9498 $EGREP "$file_magic_regex" > /dev/null; then 9499 : 9500 else 9501 cat <<_LT_EOF 1>&2 9502 9503*** Warning: the command libtool uses to detect shared libraries, 9504*** $file_magic_cmd, produces output that libtool cannot recognize. 9505*** The result is that libtool may fail to recognize shared libraries 9506*** as such. This will affect the creation of libtool libraries that 9507*** depend on shared libraries, but programs linked with such libtool 9508*** libraries will work regardless of this problem. Nevertheless, you 9509*** may want to report the problem to your system manager and/or to 9510*** bug-libtool@gnu.org 9511 9512_LT_EOF 9513 fi ;; 9514 esac 9515 fi 9516 break 9517 fi 9518 done 9519 IFS=$lt_save_ifs 9520 MAGIC_CMD=$lt_save_MAGIC_CMD 9521 ;; 9522esac ;; 9523esac 9524fi 9525 9526MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9527if test -n "$MAGIC_CMD"; then 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9529printf "%s\n" "$MAGIC_CMD" >&6; } 9530else 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9532printf "%s\n" "no" >&6; } 9533fi 9534 9535 9536 9537 9538 9539if test -z "$lt_cv_path_MAGIC_CMD"; then 9540 if test -n "$ac_tool_prefix"; then 9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9542printf %s "checking for file... " >&6; } 9543if test ${lt_cv_path_MAGIC_CMD+y} 9544then : 9545 printf %s "(cached) " >&6 9546else case e in #( 9547 e) case $MAGIC_CMD in 9548[\\/*] | ?:[\\/]*) 9549 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9550 ;; 9551*) 9552 lt_save_MAGIC_CMD=$MAGIC_CMD 9553 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9555 for ac_dir in $ac_dummy; do 9556 IFS=$lt_save_ifs 9557 test -z "$ac_dir" && ac_dir=. 9558 if test -f "$ac_dir/file"; then 9559 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9560 if test -n "$file_magic_test_file"; then 9561 case $deplibs_check_method in 9562 "file_magic "*) 9563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9564 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9566 $EGREP "$file_magic_regex" > /dev/null; then 9567 : 9568 else 9569 cat <<_LT_EOF 1>&2 9570 9571*** Warning: the command libtool uses to detect shared libraries, 9572*** $file_magic_cmd, produces output that libtool cannot recognize. 9573*** The result is that libtool may fail to recognize shared libraries 9574*** as such. This will affect the creation of libtool libraries that 9575*** depend on shared libraries, but programs linked with such libtool 9576*** libraries will work regardless of this problem. Nevertheless, you 9577*** may want to report the problem to your system manager and/or to 9578*** bug-libtool@gnu.org 9579 9580_LT_EOF 9581 fi ;; 9582 esac 9583 fi 9584 break 9585 fi 9586 done 9587 IFS=$lt_save_ifs 9588 MAGIC_CMD=$lt_save_MAGIC_CMD 9589 ;; 9590esac ;; 9591esac 9592fi 9593 9594MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9595if test -n "$MAGIC_CMD"; then 9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9597printf "%s\n" "$MAGIC_CMD" >&6; } 9598else 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9600printf "%s\n" "no" >&6; } 9601fi 9602 9603 9604 else 9605 MAGIC_CMD=: 9606 fi 9607fi 9608 9609 fi 9610 ;; 9611esac 9612 9613# Use C for the default configuration in the libtool script 9614 9615lt_save_CC=$CC 9616ac_ext=c 9617ac_cpp='$CPP $CPPFLAGS' 9618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9620ac_compiler_gnu=$ac_cv_c_compiler_gnu 9621 9622 9623# Source file extension for C test sources. 9624ac_ext=c 9625 9626# Object file extension for compiled C test sources. 9627objext=o 9628objext=$objext 9629 9630# Code to be used in simple compile tests 9631lt_simple_compile_test_code="int some_variable = 0;" 9632 9633# Code to be used in simple link tests 9634lt_simple_link_test_code='int main(){return(0);}' 9635 9636 9637 9638 9639 9640 9641 9642# If no C compiler was specified, use CC. 9643LTCC=${LTCC-"$CC"} 9644 9645# If no C compiler flags were specified, use CFLAGS. 9646LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9647 9648# Allow CC to be a program name with arguments. 9649compiler=$CC 9650 9651# Save the default compiler, since it gets overwritten when the other 9652# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9653compiler_DEFAULT=$CC 9654 9655# save warnings/boilerplate of simple test code 9656ac_outfile=conftest.$ac_objext 9657echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9658eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9659_lt_compiler_boilerplate=`cat conftest.err` 9660$RM conftest* 9661 9662ac_outfile=conftest.$ac_objext 9663echo "$lt_simple_link_test_code" >conftest.$ac_ext 9664eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9665_lt_linker_boilerplate=`cat conftest.err` 9666$RM -r conftest* 9667 9668 9669## CAVEAT EMPTOR: 9670## There is no encapsulation within the following macros, do not change 9671## the running order or otherwise move them around unless you know exactly 9672## what you are doing... 9673if test -n "$compiler"; then 9674 9675lt_prog_compiler_no_builtin_flag= 9676 9677if test yes = "$GCC"; then 9678 case $cc_basename in 9679 nvcc*) 9680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9681 *) 9682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9683 esac 9684 9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9686printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9687if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9688then : 9689 printf %s "(cached) " >&6 9690else case e in #( 9691 e) lt_cv_prog_compiler_rtti_exceptions=no 9692 ac_outfile=conftest.$ac_objext 9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9694 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9695 # Insert the option either (1) after the last *FLAGS variable, or 9696 # (2) before a word containing "conftest.", or (3) at the end. 9697 # Note that $ac_compile itself does not contain backslashes and begins 9698 # with a dollar sign (not a hyphen), so the echo should work correctly. 9699 # The option is referenced via a variable to avoid confusing sed. 9700 lt_compile=`echo "$ac_compile" | $SED \ 9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9703 -e 's:$: $lt_compiler_flag:'` 9704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9705 (eval "$lt_compile" 2>conftest.err) 9706 ac_status=$? 9707 cat conftest.err >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 if (exit $ac_status) && test -s "$ac_outfile"; then 9710 # The compiler can only warn and ignore the option if not recognized 9711 # So say no if there are warnings other than the usual output. 9712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9715 lt_cv_prog_compiler_rtti_exceptions=yes 9716 fi 9717 fi 9718 $RM conftest* 9719 ;; 9720esac 9721fi 9722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9723printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9724 9725if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9727else 9728 : 9729fi 9730 9731fi 9732 9733 9734 9735 9736 9737 9738 lt_prog_compiler_wl= 9739lt_prog_compiler_pic= 9740lt_prog_compiler_static= 9741 9742 9743 if test yes = "$GCC"; then 9744 lt_prog_compiler_wl='-Wl,' 9745 lt_prog_compiler_static='-static' 9746 9747 case $host_os in 9748 aix*) 9749 # All AIX code is PIC. 9750 if test ia64 = "$host_cpu"; then 9751 # AIX 5 now supports IA64 processor 9752 lt_prog_compiler_static='-Bstatic' 9753 fi 9754 lt_prog_compiler_pic='-fPIC' 9755 ;; 9756 9757 amigaos*) 9758 case $host_cpu in 9759 powerpc) 9760 # see comment about AmigaOS4 .so support 9761 lt_prog_compiler_pic='-fPIC' 9762 ;; 9763 m68k) 9764 # FIXME: we need at least 68020 code to build shared libraries, but 9765 # adding the '-m68020' flag to GCC prevents building anything better, 9766 # like '-m68040'. 9767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9768 ;; 9769 esac 9770 ;; 9771 9772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9773 # PIC is the default for these OSes. 9774 ;; 9775 9776 mingw* | cygwin* | pw32* | os2* | cegcc*) 9777 # This hack is so that the source file can tell whether it is being 9778 # built for inclusion in a dll (and should export symbols for example). 9779 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9780 # (--disable-auto-import) libraries 9781 lt_prog_compiler_pic='-DDLL_EXPORT' 9782 case $host_os in 9783 os2*) 9784 lt_prog_compiler_static='$wl-static' 9785 ;; 9786 esac 9787 ;; 9788 9789 darwin* | rhapsody*) 9790 # PIC is the default on this platform 9791 # Common symbols not allowed in MH_DYLIB files 9792 lt_prog_compiler_pic='-fno-common' 9793 ;; 9794 9795 haiku*) 9796 # PIC is the default for Haiku. 9797 # The "-static" flag exists, but is broken. 9798 lt_prog_compiler_static= 9799 ;; 9800 9801 hpux*) 9802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9804 # sets the default TLS model and affects inlining. 9805 case $host_cpu in 9806 hppa*64*) 9807 # +Z the default 9808 ;; 9809 *) 9810 lt_prog_compiler_pic='-fPIC' 9811 ;; 9812 esac 9813 ;; 9814 9815 interix[3-9]*) 9816 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9817 # Instead, we relocate shared libraries at runtime. 9818 ;; 9819 9820 msdosdjgpp*) 9821 # Just because we use GCC doesn't mean we suddenly get shared libraries 9822 # on systems that don't support them. 9823 lt_prog_compiler_can_build_shared=no 9824 enable_shared=no 9825 ;; 9826 9827 *nto* | *qnx*) 9828 # QNX uses GNU C++, but need to define -shared option too, otherwise 9829 # it will coredump. 9830 lt_prog_compiler_pic='-fPIC -shared' 9831 ;; 9832 9833 sysv4*MP*) 9834 if test -d /usr/nec; then 9835 lt_prog_compiler_pic=-Kconform_pic 9836 fi 9837 ;; 9838 9839 *) 9840 lt_prog_compiler_pic='-fPIC' 9841 ;; 9842 esac 9843 9844 case $cc_basename in 9845 nvcc*) # Cuda Compiler Driver 2.2 9846 lt_prog_compiler_wl='-Xlinker ' 9847 if test -n "$lt_prog_compiler_pic"; then 9848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9849 fi 9850 ;; 9851 esac 9852 else 9853 # PORTME Check for flag to pass linker flags through the system compiler. 9854 case $host_os in 9855 aix*) 9856 lt_prog_compiler_wl='-Wl,' 9857 if test ia64 = "$host_cpu"; then 9858 # AIX 5 now supports IA64 processor 9859 lt_prog_compiler_static='-Bstatic' 9860 else 9861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9862 fi 9863 ;; 9864 9865 darwin* | rhapsody*) 9866 # PIC is the default on this platform 9867 # Common symbols not allowed in MH_DYLIB files 9868 lt_prog_compiler_pic='-fno-common' 9869 case $cc_basename in 9870 nagfor*) 9871 # NAG Fortran compiler 9872 lt_prog_compiler_wl='-Wl,-Wl,,' 9873 lt_prog_compiler_pic='-PIC' 9874 lt_prog_compiler_static='-Bstatic' 9875 ;; 9876 esac 9877 ;; 9878 9879 mingw* | cygwin* | pw32* | os2* | cegcc*) 9880 # This hack is so that the source file can tell whether it is being 9881 # built for inclusion in a dll (and should export symbols for example). 9882 lt_prog_compiler_pic='-DDLL_EXPORT' 9883 case $host_os in 9884 os2*) 9885 lt_prog_compiler_static='$wl-static' 9886 ;; 9887 esac 9888 ;; 9889 9890 hpux9* | hpux10* | hpux11*) 9891 lt_prog_compiler_wl='-Wl,' 9892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9893 # not for PA HP-UX. 9894 case $host_cpu in 9895 hppa*64*|ia64*) 9896 # +Z the default 9897 ;; 9898 *) 9899 lt_prog_compiler_pic='+Z' 9900 ;; 9901 esac 9902 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9903 lt_prog_compiler_static='$wl-a ${wl}archive' 9904 ;; 9905 9906 irix5* | irix6* | nonstopux*) 9907 lt_prog_compiler_wl='-Wl,' 9908 # PIC (with -KPIC) is the default. 9909 lt_prog_compiler_static='-non_shared' 9910 ;; 9911 9912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9913 case $cc_basename in 9914 # old Intel for x86_64, which still supported -KPIC. 9915 ecc*) 9916 lt_prog_compiler_wl='-Wl,' 9917 lt_prog_compiler_pic='-KPIC' 9918 lt_prog_compiler_static='-static' 9919 ;; 9920 # icc used to be incompatible with GCC. 9921 # ICC 10 doesn't accept -KPIC any more. 9922 icc* | ifort*) 9923 lt_prog_compiler_wl='-Wl,' 9924 lt_prog_compiler_pic='-fPIC' 9925 lt_prog_compiler_static='-static' 9926 ;; 9927 # Lahey Fortran 8.1. 9928 lf95*) 9929 lt_prog_compiler_wl='-Wl,' 9930 lt_prog_compiler_pic='--shared' 9931 lt_prog_compiler_static='--static' 9932 ;; 9933 nagfor*) 9934 # NAG Fortran compiler 9935 lt_prog_compiler_wl='-Wl,-Wl,,' 9936 lt_prog_compiler_pic='-PIC' 9937 lt_prog_compiler_static='-Bstatic' 9938 ;; 9939 tcc*) 9940 # Fabrice Bellard et al's Tiny C Compiler 9941 lt_prog_compiler_wl='-Wl,' 9942 lt_prog_compiler_pic='-fPIC' 9943 lt_prog_compiler_static='-static' 9944 ;; 9945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9946 # Portland Group compilers (*not* the Pentium gcc compiler, 9947 # which looks to be a dead project) 9948 lt_prog_compiler_wl='-Wl,' 9949 lt_prog_compiler_pic='-fpic' 9950 lt_prog_compiler_static='-Bstatic' 9951 ;; 9952 ccc*) 9953 lt_prog_compiler_wl='-Wl,' 9954 # All Alpha code is PIC. 9955 lt_prog_compiler_static='-non_shared' 9956 ;; 9957 xl* | bgxl* | bgf* | mpixl*) 9958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9959 lt_prog_compiler_wl='-Wl,' 9960 lt_prog_compiler_pic='-qpic' 9961 lt_prog_compiler_static='-qstaticlink' 9962 ;; 9963 *) 9964 case `$CC -V 2>&1 | $SED 5q` in 9965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9966 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9967 lt_prog_compiler_pic='-KPIC' 9968 lt_prog_compiler_static='-Bstatic' 9969 lt_prog_compiler_wl='' 9970 ;; 9971 *Sun\ F* | *Sun*Fortran*) 9972 lt_prog_compiler_pic='-KPIC' 9973 lt_prog_compiler_static='-Bstatic' 9974 lt_prog_compiler_wl='-Qoption ld ' 9975 ;; 9976 *Sun\ C*) 9977 # Sun C 5.9 9978 lt_prog_compiler_pic='-KPIC' 9979 lt_prog_compiler_static='-Bstatic' 9980 lt_prog_compiler_wl='-Wl,' 9981 ;; 9982 *Intel*\ [CF]*Compiler*) 9983 lt_prog_compiler_wl='-Wl,' 9984 lt_prog_compiler_pic='-fPIC' 9985 lt_prog_compiler_static='-static' 9986 ;; 9987 *Portland\ Group*) 9988 lt_prog_compiler_wl='-Wl,' 9989 lt_prog_compiler_pic='-fpic' 9990 lt_prog_compiler_static='-Bstatic' 9991 ;; 9992 esac 9993 ;; 9994 esac 9995 ;; 9996 9997 newsos6) 9998 lt_prog_compiler_pic='-KPIC' 9999 lt_prog_compiler_static='-Bstatic' 10000 ;; 10001 10002 *nto* | *qnx*) 10003 # QNX uses GNU C++, but need to define -shared option too, otherwise 10004 # it will coredump. 10005 lt_prog_compiler_pic='-fPIC -shared' 10006 ;; 10007 10008 osf3* | osf4* | osf5*) 10009 lt_prog_compiler_wl='-Wl,' 10010 # All OSF/1 code is PIC. 10011 lt_prog_compiler_static='-non_shared' 10012 ;; 10013 10014 rdos*) 10015 lt_prog_compiler_static='-non_shared' 10016 ;; 10017 10018 solaris*) 10019 lt_prog_compiler_pic='-KPIC' 10020 lt_prog_compiler_static='-Bstatic' 10021 case $cc_basename in 10022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10023 lt_prog_compiler_wl='-Qoption ld ';; 10024 *) 10025 lt_prog_compiler_wl='-Wl,';; 10026 esac 10027 ;; 10028 10029 sunos4*) 10030 lt_prog_compiler_wl='-Qoption ld ' 10031 lt_prog_compiler_pic='-PIC' 10032 lt_prog_compiler_static='-Bstatic' 10033 ;; 10034 10035 sysv4 | sysv4.2uw2* | sysv4.3*) 10036 lt_prog_compiler_wl='-Wl,' 10037 lt_prog_compiler_pic='-KPIC' 10038 lt_prog_compiler_static='-Bstatic' 10039 ;; 10040 10041 sysv4*MP*) 10042 if test -d /usr/nec; then 10043 lt_prog_compiler_pic='-Kconform_pic' 10044 lt_prog_compiler_static='-Bstatic' 10045 fi 10046 ;; 10047 10048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10049 lt_prog_compiler_wl='-Wl,' 10050 lt_prog_compiler_pic='-KPIC' 10051 lt_prog_compiler_static='-Bstatic' 10052 ;; 10053 10054 unicos*) 10055 lt_prog_compiler_wl='-Wl,' 10056 lt_prog_compiler_can_build_shared=no 10057 ;; 10058 10059 uts4*) 10060 lt_prog_compiler_pic='-pic' 10061 lt_prog_compiler_static='-Bstatic' 10062 ;; 10063 10064 *) 10065 lt_prog_compiler_can_build_shared=no 10066 ;; 10067 esac 10068 fi 10069 10070case $host_os in 10071 # For platforms that do not support PIC, -DPIC is meaningless: 10072 *djgpp*) 10073 lt_prog_compiler_pic= 10074 ;; 10075 *) 10076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10077 ;; 10078esac 10079 10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10081printf %s "checking for $compiler option to produce PIC... " >&6; } 10082if test ${lt_cv_prog_compiler_pic+y} 10083then : 10084 printf %s "(cached) " >&6 10085else case e in #( 10086 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10087esac 10088fi 10089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10090printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10091lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10092 10093# 10094# Check to make sure the PIC flag actually works. 10095# 10096if test -n "$lt_prog_compiler_pic"; then 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10098printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10099if test ${lt_cv_prog_compiler_pic_works+y} 10100then : 10101 printf %s "(cached) " >&6 10102else case e in #( 10103 e) lt_cv_prog_compiler_pic_works=no 10104 ac_outfile=conftest.$ac_objext 10105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10106 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10107 # Insert the option either (1) after the last *FLAGS variable, or 10108 # (2) before a word containing "conftest.", or (3) at the end. 10109 # Note that $ac_compile itself does not contain backslashes and begins 10110 # with a dollar sign (not a hyphen), so the echo should work correctly. 10111 # The option is referenced via a variable to avoid confusing sed. 10112 lt_compile=`echo "$ac_compile" | $SED \ 10113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10115 -e 's:$: $lt_compiler_flag:'` 10116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10117 (eval "$lt_compile" 2>conftest.err) 10118 ac_status=$? 10119 cat conftest.err >&5 10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10121 if (exit $ac_status) && test -s "$ac_outfile"; then 10122 # The compiler can only warn and ignore the option if not recognized 10123 # So say no if there are warnings other than the usual output. 10124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10127 lt_cv_prog_compiler_pic_works=yes 10128 fi 10129 fi 10130 $RM conftest* 10131 ;; 10132esac 10133fi 10134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10135printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10136 10137if test yes = "$lt_cv_prog_compiler_pic_works"; then 10138 case $lt_prog_compiler_pic in 10139 "" | " "*) ;; 10140 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10141 esac 10142else 10143 lt_prog_compiler_pic= 10144 lt_prog_compiler_can_build_shared=no 10145fi 10146 10147fi 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159# 10160# Check to make sure the static flag actually works. 10161# 10162wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10164printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10165if test ${lt_cv_prog_compiler_static_works+y} 10166then : 10167 printf %s "(cached) " >&6 10168else case e in #( 10169 e) lt_cv_prog_compiler_static_works=no 10170 save_LDFLAGS=$LDFLAGS 10171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10172 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10174 # The linker can only warn and ignore the option if not recognized 10175 # So say no if there are warnings 10176 if test -s conftest.err; then 10177 # Append any errors to the config.log. 10178 cat conftest.err 1>&5 10179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10181 if diff conftest.exp conftest.er2 >/dev/null; then 10182 lt_cv_prog_compiler_static_works=yes 10183 fi 10184 else 10185 lt_cv_prog_compiler_static_works=yes 10186 fi 10187 fi 10188 $RM -r conftest* 10189 LDFLAGS=$save_LDFLAGS 10190 ;; 10191esac 10192fi 10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10194printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10195 10196if test yes = "$lt_cv_prog_compiler_static_works"; then 10197 : 10198else 10199 lt_prog_compiler_static= 10200fi 10201 10202 10203 10204 10205 10206 10207 10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10209printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10210if test ${lt_cv_prog_compiler_c_o+y} 10211then : 10212 printf %s "(cached) " >&6 10213else case e in #( 10214 e) lt_cv_prog_compiler_c_o=no 10215 $RM -r conftest 2>/dev/null 10216 mkdir conftest 10217 cd conftest 10218 mkdir out 10219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10220 10221 lt_compiler_flag="-o out/conftest2.$ac_objext" 10222 # Insert the option either (1) after the last *FLAGS variable, or 10223 # (2) before a word containing "conftest.", or (3) at the end. 10224 # Note that $ac_compile itself does not contain backslashes and begins 10225 # with a dollar sign (not a hyphen), so the echo should work correctly. 10226 lt_compile=`echo "$ac_compile" | $SED \ 10227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10229 -e 's:$: $lt_compiler_flag:'` 10230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10231 (eval "$lt_compile" 2>out/conftest.err) 10232 ac_status=$? 10233 cat out/conftest.err >&5 10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10236 then 10237 # The compiler can only warn and ignore the option if not recognized 10238 # So say no if there are warnings 10239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10242 lt_cv_prog_compiler_c_o=yes 10243 fi 10244 fi 10245 chmod u+w . 2>&5 10246 $RM conftest* 10247 # SGI C++ compiler will create directory out/ii_files/ for 10248 # template instantiation 10249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10250 $RM out/* && rmdir out 10251 cd .. 10252 $RM -r conftest 10253 $RM conftest* 10254 ;; 10255esac 10256fi 10257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10258printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10259 10260 10261 10262 10263 10264 10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10266printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10267if test ${lt_cv_prog_compiler_c_o+y} 10268then : 10269 printf %s "(cached) " >&6 10270else case e in #( 10271 e) lt_cv_prog_compiler_c_o=no 10272 $RM -r conftest 2>/dev/null 10273 mkdir conftest 10274 cd conftest 10275 mkdir out 10276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10277 10278 lt_compiler_flag="-o out/conftest2.$ac_objext" 10279 # Insert the option either (1) after the last *FLAGS variable, or 10280 # (2) before a word containing "conftest.", or (3) at the end. 10281 # Note that $ac_compile itself does not contain backslashes and begins 10282 # with a dollar sign (not a hyphen), so the echo should work correctly. 10283 lt_compile=`echo "$ac_compile" | $SED \ 10284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10286 -e 's:$: $lt_compiler_flag:'` 10287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10288 (eval "$lt_compile" 2>out/conftest.err) 10289 ac_status=$? 10290 cat out/conftest.err >&5 10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10292 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10293 then 10294 # The compiler can only warn and ignore the option if not recognized 10295 # So say no if there are warnings 10296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10299 lt_cv_prog_compiler_c_o=yes 10300 fi 10301 fi 10302 chmod u+w . 2>&5 10303 $RM conftest* 10304 # SGI C++ compiler will create directory out/ii_files/ for 10305 # template instantiation 10306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10307 $RM out/* && rmdir out 10308 cd .. 10309 $RM -r conftest 10310 $RM conftest* 10311 ;; 10312esac 10313fi 10314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10315printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10316 10317 10318 10319 10320hard_links=nottested 10321if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10322 # do not overwrite the value of need_locks provided by the user 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10324printf %s "checking if we can lock with hard links... " >&6; } 10325 hard_links=yes 10326 $RM conftest* 10327 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10328 touch conftest.a 10329 ln conftest.a conftest.b 2>&5 || hard_links=no 10330 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10332printf "%s\n" "$hard_links" >&6; } 10333 if test no = "$hard_links"; then 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10335printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10336 need_locks=warn 10337 fi 10338else 10339 need_locks=no 10340fi 10341 10342 10343 10344 10345 10346 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10348printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10349 10350 runpath_var= 10351 allow_undefined_flag= 10352 always_export_symbols=no 10353 archive_cmds= 10354 archive_expsym_cmds= 10355 compiler_needs_object=no 10356 enable_shared_with_static_runtimes=no 10357 export_dynamic_flag_spec= 10358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10359 hardcode_automatic=no 10360 hardcode_direct=no 10361 hardcode_direct_absolute=no 10362 hardcode_libdir_flag_spec= 10363 hardcode_libdir_separator= 10364 hardcode_minus_L=no 10365 hardcode_shlibpath_var=unsupported 10366 inherit_rpath=no 10367 link_all_deplibs=unknown 10368 module_cmds= 10369 module_expsym_cmds= 10370 old_archive_from_new_cmds= 10371 old_archive_from_expsyms_cmds= 10372 thread_safe_flag_spec= 10373 whole_archive_flag_spec= 10374 # include_expsyms should be a list of space-separated symbols to be *always* 10375 # included in the symbol list 10376 include_expsyms= 10377 # exclude_expsyms can be an extended regexp of symbols to exclude 10378 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10379 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10380 # as well as any symbol that contains 'd'. 10381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10383 # platforms (ab)use it in PIC code, but their linkers get confused if 10384 # the symbol is explicitly referenced. Since portable code cannot 10385 # rely on this symbol name, it's probably fine to never include it in 10386 # preloaded symbol tables. 10387 # Exclude shared library initialization/finalization symbols. 10388 extract_expsyms_cmds= 10389 10390 case $host_os in 10391 cygwin* | mingw* | pw32* | cegcc*) 10392 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10393 # When not using gcc, we currently assume that we are using 10394 # Microsoft Visual C++ or Intel C++ Compiler. 10395 if test yes != "$GCC"; then 10396 with_gnu_ld=no 10397 fi 10398 ;; 10399 interix*) 10400 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10401 with_gnu_ld=yes 10402 ;; 10403 openbsd* | bitrig*) 10404 with_gnu_ld=no 10405 ;; 10406 esac 10407 10408 ld_shlibs=yes 10409 10410 # On some targets, GNU ld is compatible enough with the native linker 10411 # that we're better off using the native interface for both. 10412 lt_use_gnu_ld_interface=no 10413 if test yes = "$with_gnu_ld"; then 10414 case $host_os in 10415 aix*) 10416 # The AIX port of GNU ld has always aspired to compatibility 10417 # with the native linker. However, as the warning in the GNU ld 10418 # block says, versions before 2.19.5* couldn't really create working 10419 # shared libraries, regardless of the interface used. 10420 case `$LD -v 2>&1` in 10421 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10422 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10423 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10424 *) 10425 lt_use_gnu_ld_interface=yes 10426 ;; 10427 esac 10428 ;; 10429 *) 10430 lt_use_gnu_ld_interface=yes 10431 ;; 10432 esac 10433 fi 10434 10435 if test yes = "$lt_use_gnu_ld_interface"; then 10436 # If archive_cmds runs LD, not CC, wlarc should be empty 10437 wlarc='$wl' 10438 10439 # Set some defaults for GNU ld with shared library support. These 10440 # are reset later if shared libraries are not supported. Putting them 10441 # here allows them to be overridden if necessary. 10442 runpath_var=LD_RUN_PATH 10443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10444 export_dynamic_flag_spec='$wl--export-dynamic' 10445 # ancient GNU ld didn't support --whole-archive et. al. 10446 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10447 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10448 else 10449 whole_archive_flag_spec= 10450 fi 10451 supports_anon_versioning=no 10452 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10453 *GNU\ gold*) supports_anon_versioning=yes ;; 10454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10457 *\ 2.11.*) ;; # other 2.11 versions 10458 *) supports_anon_versioning=yes ;; 10459 esac 10460 10461 # See if GNU ld supports shared libraries. 10462 case $host_os in 10463 aix[3-9]*) 10464 # On AIX/PPC, the GNU linker is very broken 10465 if test ia64 != "$host_cpu"; then 10466 ld_shlibs=no 10467 cat <<_LT_EOF 1>&2 10468 10469*** Warning: the GNU linker, at least up to release 2.19, is reported 10470*** to be unable to reliably create shared libraries on AIX. 10471*** Therefore, libtool is disabling shared libraries support. If you 10472*** really care for shared libraries, you may want to install binutils 10473*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10474*** You will then need to restart the configuration process. 10475 10476_LT_EOF 10477 fi 10478 ;; 10479 10480 amigaos*) 10481 case $host_cpu in 10482 powerpc) 10483 # see comment about AmigaOS4 .so support 10484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10485 archive_expsym_cmds='' 10486 ;; 10487 m68k) 10488 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)' 10489 hardcode_libdir_flag_spec='-L$libdir' 10490 hardcode_minus_L=yes 10491 ;; 10492 esac 10493 ;; 10494 10495 beos*) 10496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10497 allow_undefined_flag=unsupported 10498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10499 # support --undefined. This deserves some investigation. FIXME 10500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10501 else 10502 ld_shlibs=no 10503 fi 10504 ;; 10505 10506 cygwin* | mingw* | pw32* | cegcc*) 10507 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10508 # as there is no search path for DLLs. 10509 hardcode_libdir_flag_spec='-L$libdir' 10510 export_dynamic_flag_spec='$wl--export-all-symbols' 10511 allow_undefined_flag=unsupported 10512 always_export_symbols=no 10513 enable_shared_with_static_runtimes=yes 10514 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' 10515 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10516 10517 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10519 # If the export-symbols file already is a .def file, use it as 10520 # is; otherwise, prepend EXPORTS... 10521 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10522 cp $export_symbols $output_objdir/$soname.def; 10523 else 10524 echo EXPORTS > $output_objdir/$soname.def; 10525 cat $export_symbols >> $output_objdir/$soname.def; 10526 fi~ 10527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10528 else 10529 ld_shlibs=no 10530 fi 10531 ;; 10532 10533 haiku*) 10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10535 link_all_deplibs=yes 10536 ;; 10537 10538 os2*) 10539 hardcode_libdir_flag_spec='-L$libdir' 10540 hardcode_minus_L=yes 10541 allow_undefined_flag=unsupported 10542 shrext_cmds=.dll 10543 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10546 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10547 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10549 emximp -o $lib $output_objdir/$libname.def' 10550 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10551 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10552 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10553 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10554 prefix_cmds="$SED"~ 10555 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10556 prefix_cmds="$prefix_cmds -e 1d"; 10557 fi~ 10558 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10559 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10560 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10561 emximp -o $lib $output_objdir/$libname.def' 10562 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10563 enable_shared_with_static_runtimes=yes 10564 file_list_spec='@' 10565 ;; 10566 10567 interix[3-9]*) 10568 hardcode_direct=no 10569 hardcode_shlibpath_var=no 10570 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10571 export_dynamic_flag_spec='$wl-E' 10572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10573 # Instead, shared libraries are loaded at an image base (0x10000000 by 10574 # default) and relocated if they conflict, which is a slow very memory 10575 # consuming and fragmenting process. To avoid this, we pick a random, 10576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10577 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10579 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' 10580 ;; 10581 10582 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10583 tmp_diet=no 10584 if test linux-dietlibc = "$host_os"; then 10585 case $cc_basename in 10586 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10587 esac 10588 fi 10589 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10590 && test no = "$tmp_diet" 10591 then 10592 tmp_addflag=' $pic_flag' 10593 tmp_sharedflag='-shared' 10594 case $cc_basename,$host_cpu in 10595 pgcc*) # Portland Group C compiler 10596 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' 10597 tmp_addflag=' $pic_flag' 10598 ;; 10599 pgf77* | pgf90* | pgf95* | pgfortran*) 10600 # Portland Group f77 and f90 compilers 10601 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' 10602 tmp_addflag=' $pic_flag -Mnomain' ;; 10603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10604 tmp_addflag=' -i_dynamic' ;; 10605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10606 tmp_addflag=' -i_dynamic -nofor_main' ;; 10607 ifc* | ifort*) # Intel Fortran compiler 10608 tmp_addflag=' -nofor_main' ;; 10609 lf95*) # Lahey Fortran 8.1 10610 whole_archive_flag_spec= 10611 tmp_sharedflag='--shared' ;; 10612 nagfor*) # NAGFOR 5.3 10613 tmp_sharedflag='-Wl,-shared' ;; 10614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10615 tmp_sharedflag='-qmkshrobj' 10616 tmp_addflag= ;; 10617 nvcc*) # Cuda Compiler Driver 2.2 10618 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' 10619 compiler_needs_object=yes 10620 ;; 10621 esac 10622 case `$CC -V 2>&1 | $SED 5q` in 10623 *Sun\ C*) # Sun C 5.9 10624 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' 10625 compiler_needs_object=yes 10626 tmp_sharedflag='-G' ;; 10627 *Sun\ F*) # Sun Fortran 8.3 10628 tmp_sharedflag='-G' ;; 10629 esac 10630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10631 10632 if test yes = "$supports_anon_versioning"; then 10633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10634 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10635 echo "local: *; };" >> $output_objdir/$libname.ver~ 10636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10637 fi 10638 10639 case $cc_basename in 10640 tcc*) 10641 export_dynamic_flag_spec='-rdynamic' 10642 ;; 10643 xlf* | bgf* | bgxlf* | mpixlf*) 10644 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10645 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10647 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10648 if test yes = "$supports_anon_versioning"; then 10649 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10650 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10651 echo "local: *; };" >> $output_objdir/$libname.ver~ 10652 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10653 fi 10654 ;; 10655 esac 10656 else 10657 ld_shlibs=no 10658 fi 10659 ;; 10660 10661 netbsd*) 10662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10663 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10664 wlarc= 10665 else 10666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10667 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10668 fi 10669 ;; 10670 10671 solaris*) 10672 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10673 ld_shlibs=no 10674 cat <<_LT_EOF 1>&2 10675 10676*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10677*** create shared libraries on Solaris systems. Therefore, libtool 10678*** is disabling shared libraries support. We urge you to upgrade GNU 10679*** binutils to release 2.9.1 or newer. Another option is to modify 10680*** your PATH or compiler configuration so that the native linker is 10681*** used, and then restart. 10682 10683_LT_EOF 10684 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10686 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10687 else 10688 ld_shlibs=no 10689 fi 10690 ;; 10691 10692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10693 case `$LD -v 2>&1` in 10694 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10695 ld_shlibs=no 10696 cat <<_LT_EOF 1>&2 10697 10698*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10699*** reliably create shared libraries on SCO systems. Therefore, libtool 10700*** is disabling shared libraries support. We urge you to upgrade GNU 10701*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10702*** your PATH or compiler configuration so that the native linker is 10703*** used, and then restart. 10704 10705_LT_EOF 10706 ;; 10707 *) 10708 # For security reasons, it is highly recommended that you always 10709 # use absolute paths for naming shared libraries, and exclude the 10710 # DT_RUNPATH tag from executables and libraries. But doing so 10711 # requires that you compile everything twice, which is a pain. 10712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10713 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10716 else 10717 ld_shlibs=no 10718 fi 10719 ;; 10720 esac 10721 ;; 10722 10723 sunos4*) 10724 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10725 wlarc= 10726 hardcode_direct=yes 10727 hardcode_shlibpath_var=no 10728 ;; 10729 10730 *) 10731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10734 else 10735 ld_shlibs=no 10736 fi 10737 ;; 10738 esac 10739 10740 if test no = "$ld_shlibs"; then 10741 runpath_var= 10742 hardcode_libdir_flag_spec= 10743 export_dynamic_flag_spec= 10744 whole_archive_flag_spec= 10745 fi 10746 else 10747 # PORTME fill in a description of your system's linker (not GNU ld) 10748 case $host_os in 10749 aix3*) 10750 allow_undefined_flag=unsupported 10751 always_export_symbols=yes 10752 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' 10753 # Note: this linker hardcodes the directories in LIBPATH if there 10754 # are no directories specified by -L. 10755 hardcode_minus_L=yes 10756 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10757 # Neither direct hardcoding nor static linking is supported with a 10758 # broken collect2. 10759 hardcode_direct=unsupported 10760 fi 10761 ;; 10762 10763 aix[4-9]*) 10764 if test ia64 = "$host_cpu"; then 10765 # On IA64, the linker does run time linking by default, so we don't 10766 # have to do anything special. 10767 aix_use_runtimelinking=no 10768 exp_sym_flag='-Bexport' 10769 no_entry_flag= 10770 else 10771 # If we're using GNU nm, then we don't want the "-C" option. 10772 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10773 # Without the "-l" option, or with the "-B" option, AIX nm treats 10774 # weak defined symbols like other global defined symbols, whereas 10775 # GNU nm marks them as "W". 10776 # While the 'weak' keyword is ignored in the Export File, we need 10777 # it in the Import File for the 'aix-soname' feature, so we have 10778 # to replace the "-B" option with "-P" for AIX nm. 10779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10780 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' 10781 else 10782 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' 10783 fi 10784 aix_use_runtimelinking=no 10785 10786 # Test if we are trying to use run time linking or normal 10787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10788 # have runtime linking enabled, and use it for executables. 10789 # For shared libraries, we enable/disable runtime linking 10790 # depending on the kind of the shared library created - 10791 # when "with_aix_soname,aix_use_runtimelinking" is: 10792 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10793 # "aix,yes" lib.so shared, rtl:yes, for executables 10794 # lib.a static archive 10795 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10796 # lib.a(lib.so.V) shared, rtl:no, for executables 10797 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10798 # lib.a(lib.so.V) shared, rtl:no 10799 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10800 # lib.a static archive 10801 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10802 for ld_flag in $LDFLAGS; do 10803 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10804 aix_use_runtimelinking=yes 10805 break 10806 fi 10807 done 10808 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10809 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10810 # so we don't have lib.a shared libs to link our executables. 10811 # We have to force runtime linking in this case. 10812 aix_use_runtimelinking=yes 10813 LDFLAGS="$LDFLAGS -Wl,-brtl" 10814 fi 10815 ;; 10816 esac 10817 10818 exp_sym_flag='-bexport' 10819 no_entry_flag='-bnoentry' 10820 fi 10821 10822 # When large executables or shared objects are built, AIX ld can 10823 # have problems creating the table of contents. If linking a library 10824 # or program results in "error TOC overflow" add -mminimal-toc to 10825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10827 10828 archive_cmds='' 10829 hardcode_direct=yes 10830 hardcode_direct_absolute=yes 10831 hardcode_libdir_separator=':' 10832 link_all_deplibs=yes 10833 file_list_spec='$wl-f,' 10834 case $with_aix_soname,$aix_use_runtimelinking in 10835 aix,*) ;; # traditional, no import file 10836 svr4,* | *,yes) # use import file 10837 # The Import File defines what to hardcode. 10838 hardcode_direct=no 10839 hardcode_direct_absolute=no 10840 ;; 10841 esac 10842 10843 if test yes = "$GCC"; then 10844 case $host_os in aix4.[012]|aix4.[012].*) 10845 # We only want to do this on AIX 4.2 and lower, the check 10846 # below for broken collect2 doesn't work under 4.3+ 10847 collect2name=`$CC -print-prog-name=collect2` 10848 if test -f "$collect2name" && 10849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10850 then 10851 # We have reworked collect2 10852 : 10853 else 10854 # We have old collect2 10855 hardcode_direct=unsupported 10856 # It fails to find uninstalled libraries when the uninstalled 10857 # path is not listed in the libpath. Setting hardcode_minus_L 10858 # to unsupported forces relinking 10859 hardcode_minus_L=yes 10860 hardcode_libdir_flag_spec='-L$libdir' 10861 hardcode_libdir_separator= 10862 fi 10863 ;; 10864 esac 10865 shared_flag='-shared' 10866 if test yes = "$aix_use_runtimelinking"; then 10867 shared_flag="$shared_flag "'$wl-G' 10868 fi 10869 # Need to ensure runtime linking is disabled for the traditional 10870 # shared library, or the linker may eventually find shared libraries 10871 # /with/ Import File - we do not want to mix them. 10872 shared_flag_aix='-shared' 10873 shared_flag_svr4='-shared $wl-G' 10874 else 10875 # not using gcc 10876 if test ia64 = "$host_cpu"; then 10877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10878 # chokes on -Wl,-G. The following line is correct: 10879 shared_flag='-G' 10880 else 10881 if test yes = "$aix_use_runtimelinking"; then 10882 shared_flag='$wl-G' 10883 else 10884 shared_flag='$wl-bM:SRE' 10885 fi 10886 shared_flag_aix='$wl-bM:SRE' 10887 shared_flag_svr4='$wl-G' 10888 fi 10889 fi 10890 10891 export_dynamic_flag_spec='$wl-bexpall' 10892 # It seems that -bexpall does not export symbols beginning with 10893 # underscore (_), so it is better to generate a list of symbols to export. 10894 always_export_symbols=yes 10895 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10896 # Warning - without using the other runtime loading flags (-brtl), 10897 # -berok will link without error, but may produce a broken library. 10898 allow_undefined_flag='-berok' 10899 # Determine the default libpath from the value encoded in an 10900 # empty executable. 10901 if test set = "${lt_cv_aix_libpath+set}"; then 10902 aix_libpath=$lt_cv_aix_libpath 10903else 10904 if test ${lt_cv_aix_libpath_+y} 10905then : 10906 printf %s "(cached) " >&6 10907else case e in #( 10908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909/* end confdefs.h. */ 10910 10911int 10912main (void) 10913{ 10914 10915 ; 10916 return 0; 10917} 10918_ACEOF 10919if ac_fn_c_try_link "$LINENO" 10920then : 10921 10922 lt_aix_libpath_sed=' 10923 /Import File Strings/,/^$/ { 10924 /^0/ { 10925 s/^0 *\([^ ]*\) *$/\1/ 10926 p 10927 } 10928 }' 10929 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10930 # Check for a 64-bit object if we didn't find anything. 10931 if test -z "$lt_cv_aix_libpath_"; then 10932 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10933 fi 10934fi 10935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10936 conftest$ac_exeext conftest.$ac_ext 10937 if test -z "$lt_cv_aix_libpath_"; then 10938 lt_cv_aix_libpath_=/usr/lib:/lib 10939 fi 10940 ;; 10941esac 10942fi 10943 10944 aix_libpath=$lt_cv_aix_libpath_ 10945fi 10946 10947 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10948 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 10949 else 10950 if test ia64 = "$host_cpu"; then 10951 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10952 allow_undefined_flag="-z nodefs" 10953 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" 10954 else 10955 # Determine the default libpath from the value encoded in an 10956 # empty executable. 10957 if test set = "${lt_cv_aix_libpath+set}"; then 10958 aix_libpath=$lt_cv_aix_libpath 10959else 10960 if test ${lt_cv_aix_libpath_+y} 10961then : 10962 printf %s "(cached) " >&6 10963else case e in #( 10964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10965/* end confdefs.h. */ 10966 10967int 10968main (void) 10969{ 10970 10971 ; 10972 return 0; 10973} 10974_ACEOF 10975if ac_fn_c_try_link "$LINENO" 10976then : 10977 10978 lt_aix_libpath_sed=' 10979 /Import File Strings/,/^$/ { 10980 /^0/ { 10981 s/^0 *\([^ ]*\) *$/\1/ 10982 p 10983 } 10984 }' 10985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10986 # Check for a 64-bit object if we didn't find anything. 10987 if test -z "$lt_cv_aix_libpath_"; then 10988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10989 fi 10990fi 10991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10992 conftest$ac_exeext conftest.$ac_ext 10993 if test -z "$lt_cv_aix_libpath_"; then 10994 lt_cv_aix_libpath_=/usr/lib:/lib 10995 fi 10996 ;; 10997esac 10998fi 10999 11000 aix_libpath=$lt_cv_aix_libpath_ 11001fi 11002 11003 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11004 # Warning - without using the other run time loading flags, 11005 # -berok will link without error, but may produce a broken library. 11006 no_undefined_flag=' $wl-bernotok' 11007 allow_undefined_flag=' $wl-berok' 11008 if test yes = "$with_gnu_ld"; then 11009 # We only use this code for GNU lds that support --whole-archive. 11010 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11011 else 11012 # Exported symbols can be pulled into shared objects from archives 11013 whole_archive_flag_spec='$convenience' 11014 fi 11015 archive_cmds_need_lc=yes 11016 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11017 # -brtl affects multiple linker settings, -berok does not and is overridden later 11018 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11019 if test svr4 != "$with_aix_soname"; then 11020 # This is similar to how AIX traditionally builds its shared libraries. 11021 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' 11022 fi 11023 if test aix != "$with_aix_soname"; then 11024 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' 11025 else 11026 # used by -dlpreopen to get the symbols 11027 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11028 fi 11029 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11030 fi 11031 fi 11032 ;; 11033 11034 amigaos*) 11035 case $host_cpu in 11036 powerpc) 11037 # see comment about AmigaOS4 .so support 11038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11039 archive_expsym_cmds='' 11040 ;; 11041 m68k) 11042 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)' 11043 hardcode_libdir_flag_spec='-L$libdir' 11044 hardcode_minus_L=yes 11045 ;; 11046 esac 11047 ;; 11048 11049 bsdi[45]*) 11050 export_dynamic_flag_spec=-rdynamic 11051 ;; 11052 11053 cygwin* | mingw* | pw32* | cegcc*) 11054 # When not using gcc, we currently assume that we are using 11055 # Microsoft Visual C++ or Intel C++ Compiler. 11056 # hardcode_libdir_flag_spec is actually meaningless, as there is 11057 # no search path for DLLs. 11058 case $cc_basename in 11059 cl* | icl*) 11060 # Native MSVC or ICC 11061 hardcode_libdir_flag_spec=' ' 11062 allow_undefined_flag=unsupported 11063 always_export_symbols=yes 11064 file_list_spec='@' 11065 # Tell ltmain to make .lib files, not .a files. 11066 libext=lib 11067 # Tell ltmain to make .dll files, not .so files. 11068 shrext_cmds=.dll 11069 # FIXME: Setting linknames here is a bad hack. 11070 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11071 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11072 cp "$export_symbols" "$output_objdir/$soname.def"; 11073 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11074 else 11075 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11076 fi~ 11077 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11078 linknames=' 11079 # The linker will not automatically build a static lib if we build a DLL. 11080 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11081 enable_shared_with_static_runtimes=yes 11082 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11084 # Don't use ranlib 11085 old_postinstall_cmds='chmod 644 $oldlib' 11086 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11087 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11088 case $lt_outputfile in 11089 *.exe|*.EXE) ;; 11090 *) 11091 lt_outputfile=$lt_outputfile.exe 11092 lt_tool_outputfile=$lt_tool_outputfile.exe 11093 ;; 11094 esac~ 11095 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11096 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11097 $RM "$lt_outputfile.manifest"; 11098 fi' 11099 ;; 11100 *) 11101 # Assume MSVC and ICC wrapper 11102 hardcode_libdir_flag_spec=' ' 11103 allow_undefined_flag=unsupported 11104 # Tell ltmain to make .lib files, not .a files. 11105 libext=lib 11106 # Tell ltmain to make .dll files, not .so files. 11107 shrext_cmds=.dll 11108 # FIXME: Setting linknames here is a bad hack. 11109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11110 # The linker will automatically build a .lib file if we build a DLL. 11111 old_archive_from_new_cmds='true' 11112 # FIXME: Should let the user specify the lib program. 11113 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11114 enable_shared_with_static_runtimes=yes 11115 ;; 11116 esac 11117 ;; 11118 11119 darwin* | rhapsody*) 11120 11121 11122 archive_cmds_need_lc=no 11123 hardcode_direct=no 11124 hardcode_automatic=yes 11125 hardcode_shlibpath_var=unsupported 11126 if test yes = "$lt_cv_ld_force_load"; then 11127 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\"`' 11128 11129 else 11130 whole_archive_flag_spec='' 11131 fi 11132 link_all_deplibs=yes 11133 allow_undefined_flag=$_lt_dar_allow_undefined 11134 case $cc_basename in 11135 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11136 *) _lt_dar_can_shared=$GCC ;; 11137 esac 11138 if test yes = "$_lt_dar_can_shared"; then 11139 output_verbose_link_cmd=func_echo_all 11140 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11141 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11142 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" 11143 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" 11144 11145 else 11146 ld_shlibs=no 11147 fi 11148 11149 ;; 11150 11151 dgux*) 11152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11153 hardcode_libdir_flag_spec='-L$libdir' 11154 hardcode_shlibpath_var=no 11155 ;; 11156 11157 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11158 # support. Future versions do this automatically, but an explicit c++rt0.o 11159 # does not break anything, and helps significantly (at the cost of a little 11160 # extra space). 11161 freebsd2.2*) 11162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11163 hardcode_libdir_flag_spec='-R$libdir' 11164 hardcode_direct=yes 11165 hardcode_shlibpath_var=no 11166 ;; 11167 11168 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11169 freebsd2.*) 11170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11171 hardcode_direct=yes 11172 hardcode_minus_L=yes 11173 hardcode_shlibpath_var=no 11174 ;; 11175 11176 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11177 freebsd* | dragonfly* | midnightbsd*) 11178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11179 hardcode_libdir_flag_spec='-R$libdir' 11180 hardcode_direct=yes 11181 hardcode_shlibpath_var=no 11182 ;; 11183 11184 hpux9*) 11185 if test yes = "$GCC"; then 11186 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' 11187 else 11188 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' 11189 fi 11190 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11191 hardcode_libdir_separator=: 11192 hardcode_direct=yes 11193 11194 # hardcode_minus_L: Not really in the search PATH, 11195 # but as the default location of the library. 11196 hardcode_minus_L=yes 11197 export_dynamic_flag_spec='$wl-E' 11198 ;; 11199 11200 hpux10*) 11201 if test yes,no = "$GCC,$with_gnu_ld"; then 11202 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11203 else 11204 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11205 fi 11206 if test no = "$with_gnu_ld"; then 11207 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11208 hardcode_libdir_separator=: 11209 hardcode_direct=yes 11210 hardcode_direct_absolute=yes 11211 export_dynamic_flag_spec='$wl-E' 11212 # hardcode_minus_L: Not really in the search PATH, 11213 # but as the default location of the library. 11214 hardcode_minus_L=yes 11215 fi 11216 ;; 11217 11218 hpux11*) 11219 if test yes,no = "$GCC,$with_gnu_ld"; then 11220 case $host_cpu in 11221 hppa*64*) 11222 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11223 ;; 11224 ia64*) 11225 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11226 ;; 11227 *) 11228 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11229 ;; 11230 esac 11231 else 11232 case $host_cpu in 11233 hppa*64*) 11234 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11235 ;; 11236 ia64*) 11237 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11238 ;; 11239 *) 11240 11241 # Older versions of the 11.00 compiler do not understand -b yet 11242 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11244printf %s "checking if $CC understands -b... " >&6; } 11245if test ${lt_cv_prog_compiler__b+y} 11246then : 11247 printf %s "(cached) " >&6 11248else case e in #( 11249 e) lt_cv_prog_compiler__b=no 11250 save_LDFLAGS=$LDFLAGS 11251 LDFLAGS="$LDFLAGS -b" 11252 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11254 # The linker can only warn and ignore the option if not recognized 11255 # So say no if there are warnings 11256 if test -s conftest.err; then 11257 # Append any errors to the config.log. 11258 cat conftest.err 1>&5 11259 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11261 if diff conftest.exp conftest.er2 >/dev/null; then 11262 lt_cv_prog_compiler__b=yes 11263 fi 11264 else 11265 lt_cv_prog_compiler__b=yes 11266 fi 11267 fi 11268 $RM -r conftest* 11269 LDFLAGS=$save_LDFLAGS 11270 ;; 11271esac 11272fi 11273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11274printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11275 11276if test yes = "$lt_cv_prog_compiler__b"; then 11277 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11278else 11279 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11280fi 11281 11282 ;; 11283 esac 11284 fi 11285 if test no = "$with_gnu_ld"; then 11286 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11287 hardcode_libdir_separator=: 11288 11289 case $host_cpu in 11290 hppa*64*|ia64*) 11291 hardcode_direct=no 11292 hardcode_shlibpath_var=no 11293 ;; 11294 *) 11295 hardcode_direct=yes 11296 hardcode_direct_absolute=yes 11297 export_dynamic_flag_spec='$wl-E' 11298 11299 # hardcode_minus_L: Not really in the search PATH, 11300 # but as the default location of the library. 11301 hardcode_minus_L=yes 11302 ;; 11303 esac 11304 fi 11305 ;; 11306 11307 irix5* | irix6* | nonstopux*) 11308 if test yes = "$GCC"; then 11309 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' 11310 # Try to use the -exported_symbol ld option, if it does not 11311 # work, assume that -exports_file does not work either and 11312 # implicitly export all symbols. 11313 # This should be the same for all languages, so no per-tag cache variable. 11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11315printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11316if test ${lt_cv_irix_exported_symbol+y} 11317then : 11318 printf %s "(cached) " >&6 11319else case e in #( 11320 e) save_LDFLAGS=$LDFLAGS 11321 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11323/* end confdefs.h. */ 11324int foo (void) { return 0; } 11325_ACEOF 11326if ac_fn_c_try_link "$LINENO" 11327then : 11328 lt_cv_irix_exported_symbol=yes 11329else case e in #( 11330 e) lt_cv_irix_exported_symbol=no ;; 11331esac 11332fi 11333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11334 conftest$ac_exeext conftest.$ac_ext 11335 LDFLAGS=$save_LDFLAGS ;; 11336esac 11337fi 11338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11339printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11340 if test yes = "$lt_cv_irix_exported_symbol"; then 11341 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' 11342 fi 11343 else 11344 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' 11345 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' 11346 fi 11347 archive_cmds_need_lc='no' 11348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11349 hardcode_libdir_separator=: 11350 inherit_rpath=yes 11351 link_all_deplibs=yes 11352 ;; 11353 11354 linux*) 11355 case $cc_basename in 11356 tcc*) 11357 # Fabrice Bellard et al's Tiny C Compiler 11358 ld_shlibs=yes 11359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11360 ;; 11361 esac 11362 ;; 11363 11364 netbsd*) 11365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11367 else 11368 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11369 fi 11370 hardcode_libdir_flag_spec='-R$libdir' 11371 hardcode_direct=yes 11372 hardcode_shlibpath_var=no 11373 ;; 11374 11375 newsos6) 11376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11377 hardcode_direct=yes 11378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11379 hardcode_libdir_separator=: 11380 hardcode_shlibpath_var=no 11381 ;; 11382 11383 *nto* | *qnx*) 11384 ;; 11385 11386 openbsd* | bitrig*) 11387 if test -f /usr/libexec/ld.so; then 11388 hardcode_direct=yes 11389 hardcode_shlibpath_var=no 11390 hardcode_direct_absolute=yes 11391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11393 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11394 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11395 export_dynamic_flag_spec='$wl-E' 11396 else 11397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11398 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11399 fi 11400 else 11401 ld_shlibs=no 11402 fi 11403 ;; 11404 11405 os2*) 11406 hardcode_libdir_flag_spec='-L$libdir' 11407 hardcode_minus_L=yes 11408 allow_undefined_flag=unsupported 11409 shrext_cmds=.dll 11410 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11413 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11416 emximp -o $lib $output_objdir/$libname.def' 11417 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11420 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11421 prefix_cmds="$SED"~ 11422 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11423 prefix_cmds="$prefix_cmds -e 1d"; 11424 fi~ 11425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11428 emximp -o $lib $output_objdir/$libname.def' 11429 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11430 enable_shared_with_static_runtimes=yes 11431 file_list_spec='@' 11432 ;; 11433 11434 osf3*) 11435 if test yes = "$GCC"; then 11436 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11437 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' 11438 else 11439 allow_undefined_flag=' -expect_unresolved \*' 11440 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' 11441 fi 11442 archive_cmds_need_lc='no' 11443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11444 hardcode_libdir_separator=: 11445 ;; 11446 11447 osf4* | osf5*) # as osf3* with the addition of -msym flag 11448 if test yes = "$GCC"; then 11449 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11450 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' 11451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11452 else 11453 allow_undefined_flag=' -expect_unresolved \*' 11454 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' 11455 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~ 11456 $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' 11457 11458 # Both c and cxx compiler support -rpath directly 11459 hardcode_libdir_flag_spec='-rpath $libdir' 11460 fi 11461 archive_cmds_need_lc='no' 11462 hardcode_libdir_separator=: 11463 ;; 11464 11465 solaris*) 11466 no_undefined_flag=' -z defs' 11467 if test yes = "$GCC"; then 11468 wlarc='$wl' 11469 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11471 $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' 11472 else 11473 case `$CC -V 2>&1` in 11474 *"Compilers 5.0"*) 11475 wlarc='' 11476 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11478 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11479 ;; 11480 *) 11481 wlarc='$wl' 11482 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11484 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11485 ;; 11486 esac 11487 fi 11488 hardcode_libdir_flag_spec='-R$libdir' 11489 hardcode_shlibpath_var=no 11490 case $host_os in 11491 solaris2.[0-5] | solaris2.[0-5].*) ;; 11492 *) 11493 # The compiler driver will combine and reorder linker options, 11494 # but understands '-z linker_flag'. GCC discards it without '$wl', 11495 # but is careful enough not to reorder. 11496 # Supported since Solaris 2.6 (maybe 2.5.1?) 11497 if test yes = "$GCC"; then 11498 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11499 else 11500 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11501 fi 11502 ;; 11503 esac 11504 link_all_deplibs=yes 11505 ;; 11506 11507 sunos4*) 11508 if test sequent = "$host_vendor"; then 11509 # Use $CC to link under sequent, because it throws in some extra .o 11510 # files that make .init and .fini sections work. 11511 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11512 else 11513 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11514 fi 11515 hardcode_libdir_flag_spec='-L$libdir' 11516 hardcode_direct=yes 11517 hardcode_minus_L=yes 11518 hardcode_shlibpath_var=no 11519 ;; 11520 11521 sysv4) 11522 case $host_vendor in 11523 sni) 11524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11525 hardcode_direct=yes # is this really true??? 11526 ;; 11527 siemens) 11528 ## LD is ld it makes a PLAMLIB 11529 ## CC just makes a GrossModule. 11530 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11531 reload_cmds='$CC -r -o $output$reload_objs' 11532 hardcode_direct=no 11533 ;; 11534 motorola) 11535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11536 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11537 ;; 11538 esac 11539 runpath_var='LD_RUN_PATH' 11540 hardcode_shlibpath_var=no 11541 ;; 11542 11543 sysv4.3*) 11544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11545 hardcode_shlibpath_var=no 11546 export_dynamic_flag_spec='-Bexport' 11547 ;; 11548 11549 sysv4*MP*) 11550 if test -d /usr/nec; then 11551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11552 hardcode_shlibpath_var=no 11553 runpath_var=LD_RUN_PATH 11554 hardcode_runpath_var=yes 11555 ld_shlibs=yes 11556 fi 11557 ;; 11558 11559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11560 no_undefined_flag='$wl-z,text' 11561 archive_cmds_need_lc=no 11562 hardcode_shlibpath_var=no 11563 runpath_var='LD_RUN_PATH' 11564 11565 if test yes = "$GCC"; then 11566 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11567 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11568 else 11569 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11570 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11571 fi 11572 ;; 11573 11574 sysv5* | sco3.2v5* | sco5v6*) 11575 # Note: We CANNOT use -z defs as we might desire, because we do not 11576 # link with -lc, and that would cause any symbols used from libc to 11577 # always be unresolved, which means just about no library would 11578 # ever link correctly. If we're not using GNU ld we use -z text 11579 # though, which does catch some bad symbols but isn't as heavy-handed 11580 # as -z defs. 11581 no_undefined_flag='$wl-z,text' 11582 allow_undefined_flag='$wl-z,nodefs' 11583 archive_cmds_need_lc=no 11584 hardcode_shlibpath_var=no 11585 hardcode_libdir_flag_spec='$wl-R,$libdir' 11586 hardcode_libdir_separator=':' 11587 link_all_deplibs=yes 11588 export_dynamic_flag_spec='$wl-Bexport' 11589 runpath_var='LD_RUN_PATH' 11590 11591 if test yes = "$GCC"; then 11592 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11593 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11594 else 11595 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11596 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11597 fi 11598 ;; 11599 11600 uts4*) 11601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11602 hardcode_libdir_flag_spec='-L$libdir' 11603 hardcode_shlibpath_var=no 11604 ;; 11605 11606 *) 11607 ld_shlibs=no 11608 ;; 11609 esac 11610 11611 if test sni = "$host_vendor"; then 11612 case $host in 11613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11614 export_dynamic_flag_spec='$wl-Blargedynsym' 11615 ;; 11616 esac 11617 fi 11618 fi 11619 11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11621printf "%s\n" "$ld_shlibs" >&6; } 11622test no = "$ld_shlibs" && can_build_shared=no 11623 11624with_gnu_ld=$with_gnu_ld 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640# 11641# Do we need to explicitly link libc? 11642# 11643case "x$archive_cmds_need_lc" in 11644x|xyes) 11645 # Assume -lc should be added 11646 archive_cmds_need_lc=yes 11647 11648 if test yes,yes = "$GCC,$enable_shared"; then 11649 case $archive_cmds in 11650 *'~'*) 11651 # FIXME: we may have to deal with multi-command sequences. 11652 ;; 11653 '$CC '*) 11654 # Test whether the compiler implicitly links with -lc since on some 11655 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11656 # to ld, don't add -lc before -lgcc. 11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11658printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11659if test ${lt_cv_archive_cmds_need_lc+y} 11660then : 11661 printf %s "(cached) " >&6 11662else case e in #( 11663 e) $RM conftest* 11664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11665 11666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11667 (eval $ac_compile) 2>&5 11668 ac_status=$? 11669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11670 test $ac_status = 0; } 2>conftest.err; then 11671 soname=conftest 11672 lib=conftest 11673 libobjs=conftest.$ac_objext 11674 deplibs= 11675 wl=$lt_prog_compiler_wl 11676 pic_flag=$lt_prog_compiler_pic 11677 compiler_flags=-v 11678 linker_flags=-v 11679 verstring= 11680 output_objdir=. 11681 libname=conftest 11682 lt_save_allow_undefined_flag=$allow_undefined_flag 11683 allow_undefined_flag= 11684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11686 ac_status=$? 11687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11688 test $ac_status = 0; } 11689 then 11690 lt_cv_archive_cmds_need_lc=no 11691 else 11692 lt_cv_archive_cmds_need_lc=yes 11693 fi 11694 allow_undefined_flag=$lt_save_allow_undefined_flag 11695 else 11696 cat conftest.err 1>&5 11697 fi 11698 $RM conftest* 11699 ;; 11700esac 11701fi 11702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11703printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11704 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11705 ;; 11706 esac 11707 fi 11708 ;; 11709esac 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11863printf %s "checking dynamic linker characteristics... " >&6; } 11864 11865if test yes = "$GCC"; then 11866 case $host_os in 11867 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11868 *) lt_awk_arg='/^libraries:/' ;; 11869 esac 11870 case $host_os in 11871 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11872 *) lt_sed_strip_eq='s|=/|/|g' ;; 11873 esac 11874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11875 case $lt_search_path_spec in 11876 *\;*) 11877 # if the path contains ";" then we assume it to be the separator 11878 # otherwise default to the standard path separator (i.e. ":") - it is 11879 # assumed that no part of a normal pathname contains ";" but that should 11880 # okay in the real world where ";" in dirpaths is itself problematic. 11881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11882 ;; 11883 *) 11884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11885 ;; 11886 esac 11887 # Ok, now we have the path, separated by spaces, we can step through it 11888 # and add multilib dir if necessary... 11889 lt_tmp_lt_search_path_spec= 11890 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11891 # ...but if some path component already ends with the multilib dir we assume 11892 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11893 case "$lt_multi_os_dir; $lt_search_path_spec " in 11894 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11895 lt_multi_os_dir= 11896 ;; 11897 esac 11898 for lt_sys_path in $lt_search_path_spec; do 11899 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11900 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11901 elif test -n "$lt_multi_os_dir"; then 11902 test -d "$lt_sys_path" && \ 11903 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11904 fi 11905 done 11906 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11907BEGIN {RS = " "; FS = "/|\n";} { 11908 lt_foo = ""; 11909 lt_count = 0; 11910 for (lt_i = NF; lt_i > 0; lt_i--) { 11911 if ($lt_i != "" && $lt_i != ".") { 11912 if ($lt_i == "..") { 11913 lt_count++; 11914 } else { 11915 if (lt_count == 0) { 11916 lt_foo = "/" $lt_i lt_foo; 11917 } else { 11918 lt_count--; 11919 } 11920 } 11921 } 11922 } 11923 if (lt_foo != "") { lt_freq[lt_foo]++; } 11924 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11925}'` 11926 # AWK program above erroneously prepends '/' to C:/dos/paths 11927 # for these hosts. 11928 case $host_os in 11929 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11930 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11931 esac 11932 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11933else 11934 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11935fi 11936library_names_spec= 11937libname_spec='lib$name' 11938soname_spec= 11939shrext_cmds=.so 11940postinstall_cmds= 11941postuninstall_cmds= 11942finish_cmds= 11943finish_eval= 11944shlibpath_var= 11945shlibpath_overrides_runpath=unknown 11946version_type=none 11947dynamic_linker="$host_os ld.so" 11948sys_lib_dlsearch_path_spec="/lib /usr/lib" 11949need_lib_prefix=unknown 11950hardcode_into_libs=no 11951 11952# when you set need_version to no, make sure it does not cause -set_version 11953# flags to be left without arguments 11954need_version=unknown 11955 11956 11957 11958case $host_os in 11959aix3*) 11960 version_type=linux # correct to gnu/linux during the next big refactor 11961 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11962 shlibpath_var=LIBPATH 11963 11964 # AIX 3 has no versioning support, so we append a major version to the name. 11965 soname_spec='$libname$release$shared_ext$major' 11966 ;; 11967 11968aix[4-9]*) 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 need_lib_prefix=no 11971 need_version=no 11972 hardcode_into_libs=yes 11973 if test ia64 = "$host_cpu"; then 11974 # AIX 5 supports IA64 11975 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11976 shlibpath_var=LD_LIBRARY_PATH 11977 else 11978 # With GCC up to 2.95.x, collect2 would create an import file 11979 # for dependence libraries. The import file would start with 11980 # the line '#! .'. This would cause the generated library to 11981 # depend on '.', always an invalid library. This was fixed in 11982 # development snapshots of GCC prior to 3.0. 11983 case $host_os in 11984 aix4 | aix4.[01] | aix4.[01].*) 11985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11986 echo ' yes ' 11987 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11988 : 11989 else 11990 can_build_shared=no 11991 fi 11992 ;; 11993 esac 11994 # Using Import Files as archive members, it is possible to support 11995 # filename-based versioning of shared library archives on AIX. While 11996 # this would work for both with and without runtime linking, it will 11997 # prevent static linking of such archives. So we do filename-based 11998 # shared library versioning with .so extension only, which is used 11999 # when both runtime linking and shared linking is enabled. 12000 # Unfortunately, runtime linking may impact performance, so we do 12001 # not want this to be the default eventually. Also, we use the 12002 # versioned .so libs for executables only if there is the -brtl 12003 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12004 # To allow for filename-based versioning support, we need to create 12005 # libNAME.so.V as an archive file, containing: 12006 # *) an Import File, referring to the versioned filename of the 12007 # archive as well as the shared archive member, telling the 12008 # bitwidth (32 or 64) of that shared object, and providing the 12009 # list of exported symbols of that shared object, eventually 12010 # decorated with the 'weak' keyword 12011 # *) the shared object with the F_LOADONLY flag set, to really avoid 12012 # it being seen by the linker. 12013 # At run time we better use the real file rather than another symlink, 12014 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12015 12016 case $with_aix_soname,$aix_use_runtimelinking in 12017 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12018 # soname into executable. Probably we can add versioning support to 12019 # collect2, so additional links can be useful in future. 12020 aix,yes) # traditional libtool 12021 dynamic_linker='AIX unversionable lib.so' 12022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12023 # instead of lib<name>.a to let people know that these are not 12024 # typical AIX shared libraries. 12025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12026 ;; 12027 aix,no) # traditional AIX only 12028 dynamic_linker='AIX lib.a(lib.so.V)' 12029 # We preserve .a as extension for shared libraries through AIX4.2 12030 # and later when we are not doing run time linking. 12031 library_names_spec='$libname$release.a $libname.a' 12032 soname_spec='$libname$release$shared_ext$major' 12033 ;; 12034 svr4,*) # full svr4 only 12035 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12036 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12037 # We do not specify a path in Import Files, so LIBPATH fires. 12038 shlibpath_overrides_runpath=yes 12039 ;; 12040 *,yes) # both, prefer svr4 12041 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12042 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12043 # unpreferred sharedlib libNAME.a needs extra handling 12044 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"' 12045 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"' 12046 # We do not specify a path in Import Files, so LIBPATH fires. 12047 shlibpath_overrides_runpath=yes 12048 ;; 12049 *,no) # both, prefer aix 12050 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12051 library_names_spec='$libname$release.a $libname.a' 12052 soname_spec='$libname$release$shared_ext$major' 12053 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12054 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)' 12055 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"' 12056 ;; 12057 esac 12058 shlibpath_var=LIBPATH 12059 fi 12060 ;; 12061 12062amigaos*) 12063 case $host_cpu in 12064 powerpc) 12065 # Since July 2007 AmigaOS4 officially supports .so libraries. 12066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12068 ;; 12069 m68k) 12070 library_names_spec='$libname.ixlibrary $libname.a' 12071 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12072 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' 12073 ;; 12074 esac 12075 ;; 12076 12077beos*) 12078 library_names_spec='$libname$shared_ext' 12079 dynamic_linker="$host_os ld.so" 12080 shlibpath_var=LIBRARY_PATH 12081 ;; 12082 12083bsdi[45]*) 12084 version_type=linux # correct to gnu/linux during the next big refactor 12085 need_version=no 12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12087 soname_spec='$libname$release$shared_ext$major' 12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12089 shlibpath_var=LD_LIBRARY_PATH 12090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12092 # the default ld.so.conf also contains /usr/contrib/lib and 12093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12094 # libtool to hard-code these into programs 12095 ;; 12096 12097cygwin* | mingw* | pw32* | cegcc*) 12098 version_type=windows 12099 shrext_cmds=.dll 12100 need_version=no 12101 need_lib_prefix=no 12102 12103 case $GCC,$cc_basename in 12104 yes,*) 12105 # gcc 12106 library_names_spec='$libname.dll.a' 12107 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12108 postinstall_cmds='base_file=`basename \$file`~ 12109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12110 dldir=$destdir/`dirname \$dlpath`~ 12111 test -d \$dldir || mkdir -p \$dldir~ 12112 $install_prog $dir/$dlname \$dldir/$dlname~ 12113 chmod a+x \$dldir/$dlname~ 12114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12116 fi' 12117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12118 dlpath=$dir/\$dldll~ 12119 $RM \$dlpath' 12120 shlibpath_overrides_runpath=yes 12121 12122 case $host_os in 12123 cygwin*) 12124 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12125 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12126 12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12128 ;; 12129 mingw* | cegcc*) 12130 # MinGW DLLs use traditional 'lib' prefix 12131 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12132 ;; 12133 pw32*) 12134 # pw32 DLLs use 'pw' prefix rather than 'lib' 12135 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12136 ;; 12137 esac 12138 dynamic_linker='Win32 ld.exe' 12139 ;; 12140 12141 *,cl* | *,icl*) 12142 # Native MSVC or ICC 12143 libname_spec='$name' 12144 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12145 library_names_spec='$libname.dll.lib' 12146 12147 case $build_os in 12148 mingw*) 12149 sys_lib_search_path_spec= 12150 lt_save_ifs=$IFS 12151 IFS=';' 12152 for lt_path in $LIB 12153 do 12154 IFS=$lt_save_ifs 12155 # Let DOS variable expansion print the short 8.3 style file name. 12156 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12157 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12158 done 12159 IFS=$lt_save_ifs 12160 # Convert to MSYS style. 12161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12162 ;; 12163 cygwin*) 12164 # Convert to unix form, then to dos form, then back to unix form 12165 # but this time dos style (no spaces!) so that the unix form looks 12166 # like /cygdrive/c/PROGRA~1:/cygdr... 12167 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12168 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12169 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12170 ;; 12171 *) 12172 sys_lib_search_path_spec=$LIB 12173 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12174 # It is most probably a Windows format PATH. 12175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12176 else 12177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12178 fi 12179 # FIXME: find the short name or the path components, as spaces are 12180 # common. (e.g. "Program Files" -> "PROGRA~1") 12181 ;; 12182 esac 12183 12184 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12185 postinstall_cmds='base_file=`basename \$file`~ 12186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12187 dldir=$destdir/`dirname \$dlpath`~ 12188 test -d \$dldir || mkdir -p \$dldir~ 12189 $install_prog $dir/$dlname \$dldir/$dlname' 12190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12191 dlpath=$dir/\$dldll~ 12192 $RM \$dlpath' 12193 shlibpath_overrides_runpath=yes 12194 dynamic_linker='Win32 link.exe' 12195 ;; 12196 12197 *) 12198 # Assume MSVC and ICC wrapper 12199 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12200 dynamic_linker='Win32 ld.exe' 12201 ;; 12202 esac 12203 # FIXME: first we should search . and the directory the executable is in 12204 shlibpath_var=PATH 12205 ;; 12206 12207darwin* | rhapsody*) 12208 dynamic_linker="$host_os dyld" 12209 version_type=darwin 12210 need_lib_prefix=no 12211 need_version=no 12212 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12213 soname_spec='$libname$release$major$shared_ext' 12214 shlibpath_overrides_runpath=yes 12215 shlibpath_var=DYLD_LIBRARY_PATH 12216 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12217 12218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12220 ;; 12221 12222dgux*) 12223 version_type=linux # correct to gnu/linux during the next big refactor 12224 need_lib_prefix=no 12225 need_version=no 12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12227 soname_spec='$libname$release$shared_ext$major' 12228 shlibpath_var=LD_LIBRARY_PATH 12229 ;; 12230 12231freebsd* | dragonfly* | midnightbsd*) 12232 # DragonFly does not have aout. When/if they implement a new 12233 # versioning mechanism, adjust this. 12234 if test -x /usr/bin/objformat; then 12235 objformat=`/usr/bin/objformat` 12236 else 12237 case $host_os in 12238 freebsd[23].*) objformat=aout ;; 12239 *) objformat=elf ;; 12240 esac 12241 fi 12242 version_type=freebsd-$objformat 12243 case $version_type in 12244 freebsd-elf*) 12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12246 soname_spec='$libname$release$shared_ext$major' 12247 need_version=no 12248 need_lib_prefix=no 12249 ;; 12250 freebsd-*) 12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12252 need_version=yes 12253 ;; 12254 esac 12255 shlibpath_var=LD_LIBRARY_PATH 12256 case $host_os in 12257 freebsd2.*) 12258 shlibpath_overrides_runpath=yes 12259 ;; 12260 freebsd3.[01]* | freebsdelf3.[01]*) 12261 shlibpath_overrides_runpath=yes 12262 hardcode_into_libs=yes 12263 ;; 12264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12266 shlibpath_overrides_runpath=no 12267 hardcode_into_libs=yes 12268 ;; 12269 *) # from 4.6 on, and DragonFly 12270 shlibpath_overrides_runpath=yes 12271 hardcode_into_libs=yes 12272 ;; 12273 esac 12274 ;; 12275 12276haiku*) 12277 version_type=linux # correct to gnu/linux during the next big refactor 12278 need_lib_prefix=no 12279 need_version=no 12280 dynamic_linker="$host_os runtime_loader" 12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12282 soname_spec='$libname$release$shared_ext$major' 12283 shlibpath_var=LIBRARY_PATH 12284 shlibpath_overrides_runpath=no 12285 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12286 hardcode_into_libs=yes 12287 ;; 12288 12289hpux9* | hpux10* | hpux11*) 12290 # Give a soname corresponding to the major version so that dld.sl refuses to 12291 # link against other versions. 12292 version_type=sunos 12293 need_lib_prefix=no 12294 need_version=no 12295 case $host_cpu in 12296 ia64*) 12297 shrext_cmds='.so' 12298 hardcode_into_libs=yes 12299 dynamic_linker="$host_os dld.so" 12300 shlibpath_var=LD_LIBRARY_PATH 12301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12303 soname_spec='$libname$release$shared_ext$major' 12304 if test 32 = "$HPUX_IA64_MODE"; then 12305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12306 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12307 else 12308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12309 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12310 fi 12311 ;; 12312 hppa*64*) 12313 shrext_cmds='.sl' 12314 hardcode_into_libs=yes 12315 dynamic_linker="$host_os dld.sl" 12316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12319 soname_spec='$libname$release$shared_ext$major' 12320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12322 ;; 12323 *) 12324 shrext_cmds='.sl' 12325 dynamic_linker="$host_os dld.sl" 12326 shlibpath_var=SHLIB_PATH 12327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12329 soname_spec='$libname$release$shared_ext$major' 12330 ;; 12331 esac 12332 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12333 postinstall_cmds='chmod 555 $lib' 12334 # or fails outright, so override atomically: 12335 install_override_mode=555 12336 ;; 12337 12338interix[3-9]*) 12339 version_type=linux # correct to gnu/linux during the next big refactor 12340 need_lib_prefix=no 12341 need_version=no 12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12343 soname_spec='$libname$release$shared_ext$major' 12344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12345 shlibpath_var=LD_LIBRARY_PATH 12346 shlibpath_overrides_runpath=no 12347 hardcode_into_libs=yes 12348 ;; 12349 12350irix5* | irix6* | nonstopux*) 12351 case $host_os in 12352 nonstopux*) version_type=nonstopux ;; 12353 *) 12354 if test yes = "$lt_cv_prog_gnu_ld"; then 12355 version_type=linux # correct to gnu/linux during the next big refactor 12356 else 12357 version_type=irix 12358 fi ;; 12359 esac 12360 need_lib_prefix=no 12361 need_version=no 12362 soname_spec='$libname$release$shared_ext$major' 12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12364 case $host_os in 12365 irix5* | nonstopux*) 12366 libsuff= shlibsuff= 12367 ;; 12368 *) 12369 case $LD in # libtool.m4 will add one of these switches to LD 12370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12371 libsuff= shlibsuff= libmagic=32-bit;; 12372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12373 libsuff=32 shlibsuff=N32 libmagic=N32;; 12374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12375 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12376 *) libsuff= shlibsuff= libmagic=never-match;; 12377 esac 12378 ;; 12379 esac 12380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12381 shlibpath_overrides_runpath=no 12382 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12383 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12384 hardcode_into_libs=yes 12385 ;; 12386 12387# No shared lib support for Linux oldld, aout, or coff. 12388linux*oldld* | linux*aout* | linux*coff*) 12389 dynamic_linker=no 12390 ;; 12391 12392linux*android*) 12393 version_type=none # Android doesn't support versioned libraries. 12394 need_lib_prefix=no 12395 need_version=no 12396 library_names_spec='$libname$release$shared_ext' 12397 soname_spec='$libname$release$shared_ext' 12398 finish_cmds= 12399 shlibpath_var=LD_LIBRARY_PATH 12400 shlibpath_overrides_runpath=yes 12401 12402 # This implies no fast_install, which is unacceptable. 12403 # Some rework will be needed to allow for fast_install 12404 # before this can be enabled. 12405 hardcode_into_libs=yes 12406 12407 dynamic_linker='Android linker' 12408 # Don't embed -rpath directories since the linker doesn't support them. 12409 hardcode_libdir_flag_spec='-L$libdir' 12410 ;; 12411 12412# This must be glibc/ELF. 12413linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12414 version_type=linux # correct to gnu/linux during the next big refactor 12415 need_lib_prefix=no 12416 need_version=no 12417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12418 soname_spec='$libname$release$shared_ext$major' 12419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12420 shlibpath_var=LD_LIBRARY_PATH 12421 shlibpath_overrides_runpath=no 12422 12423 # Some binutils ld are patched to set DT_RUNPATH 12424 if test ${lt_cv_shlibpath_overrides_runpath+y} 12425then : 12426 printf %s "(cached) " >&6 12427else case e in #( 12428 e) lt_cv_shlibpath_overrides_runpath=no 12429 save_LDFLAGS=$LDFLAGS 12430 save_libdir=$libdir 12431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12434/* end confdefs.h. */ 12435 12436int 12437main (void) 12438{ 12439 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444if ac_fn_c_try_link "$LINENO" 12445then : 12446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12447then : 12448 lt_cv_shlibpath_overrides_runpath=yes 12449fi 12450fi 12451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12452 conftest$ac_exeext conftest.$ac_ext 12453 LDFLAGS=$save_LDFLAGS 12454 libdir=$save_libdir 12455 ;; 12456esac 12457fi 12458 12459 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12460 12461 # This implies no fast_install, which is unacceptable. 12462 # Some rework will be needed to allow for fast_install 12463 # before this can be enabled. 12464 hardcode_into_libs=yes 12465 12466 # Ideally, we could use ldconfig to report *all* directores which are 12467 # searched for libraries, however this is still not possible. Aside from not 12468 # being certain /sbin/ldconfig is available, command 12469 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12470 # even though it is searched at run-time. Try to do the best guess by 12471 # appending ld.so.conf contents (and includes) to the search path. 12472 if test -f /etc/ld.so.conf; then 12473 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' ' '` 12474 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12475 fi 12476 12477 # We used to test for /lib/ld.so.1 and disable shared libraries on 12478 # powerpc, because MkLinux only supported shared libraries with the 12479 # GNU dynamic linker. Since this was broken with cross compilers, 12480 # most powerpc-linux boxes support dynamic linking these days and 12481 # people can always --disable-shared, the test was removed, and we 12482 # assume the GNU/Linux dynamic linker is in use. 12483 dynamic_linker='GNU/Linux ld.so' 12484 ;; 12485 12486netbsd*) 12487 version_type=sunos 12488 need_lib_prefix=no 12489 need_version=no 12490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12493 dynamic_linker='NetBSD (a.out) ld.so' 12494 else 12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12496 soname_spec='$libname$release$shared_ext$major' 12497 dynamic_linker='NetBSD ld.elf_so' 12498 fi 12499 shlibpath_var=LD_LIBRARY_PATH 12500 shlibpath_overrides_runpath=yes 12501 hardcode_into_libs=yes 12502 ;; 12503 12504newsos6) 12505 version_type=linux # correct to gnu/linux during the next big refactor 12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12507 shlibpath_var=LD_LIBRARY_PATH 12508 shlibpath_overrides_runpath=yes 12509 ;; 12510 12511*nto* | *qnx*) 12512 version_type=qnx 12513 need_lib_prefix=no 12514 need_version=no 12515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12516 soname_spec='$libname$release$shared_ext$major' 12517 shlibpath_var=LD_LIBRARY_PATH 12518 shlibpath_overrides_runpath=no 12519 hardcode_into_libs=yes 12520 dynamic_linker='ldqnx.so' 12521 ;; 12522 12523openbsd* | bitrig*) 12524 version_type=sunos 12525 sys_lib_dlsearch_path_spec=/usr/lib 12526 need_lib_prefix=no 12527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12528 need_version=no 12529 else 12530 need_version=yes 12531 fi 12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12534 shlibpath_var=LD_LIBRARY_PATH 12535 shlibpath_overrides_runpath=yes 12536 ;; 12537 12538os2*) 12539 libname_spec='$name' 12540 version_type=windows 12541 shrext_cmds=.dll 12542 need_version=no 12543 need_lib_prefix=no 12544 # OS/2 can only load a DLL with a base name of 8 characters or less. 12545 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12546 v=$($ECHO $release$versuffix | tr -d .-); 12547 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12548 $ECHO $n$v`$shared_ext' 12549 library_names_spec='${libname}_dll.$libext' 12550 dynamic_linker='OS/2 ld.exe' 12551 shlibpath_var=BEGINLIBPATH 12552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12554 postinstall_cmds='base_file=`basename \$file`~ 12555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12556 dldir=$destdir/`dirname \$dlpath`~ 12557 test -d \$dldir || mkdir -p \$dldir~ 12558 $install_prog $dir/$dlname \$dldir/$dlname~ 12559 chmod a+x \$dldir/$dlname~ 12560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12562 fi' 12563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12564 dlpath=$dir/\$dldll~ 12565 $RM \$dlpath' 12566 ;; 12567 12568osf3* | osf4* | osf5*) 12569 version_type=osf 12570 need_lib_prefix=no 12571 need_version=no 12572 soname_spec='$libname$release$shared_ext$major' 12573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12577 ;; 12578 12579rdos*) 12580 dynamic_linker=no 12581 ;; 12582 12583solaris*) 12584 version_type=linux # correct to gnu/linux during the next big refactor 12585 need_lib_prefix=no 12586 need_version=no 12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12588 soname_spec='$libname$release$shared_ext$major' 12589 shlibpath_var=LD_LIBRARY_PATH 12590 shlibpath_overrides_runpath=yes 12591 hardcode_into_libs=yes 12592 # ldd complains unless libraries are executable 12593 postinstall_cmds='chmod +x $lib' 12594 ;; 12595 12596sunos4*) 12597 version_type=sunos 12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12600 shlibpath_var=LD_LIBRARY_PATH 12601 shlibpath_overrides_runpath=yes 12602 if test yes = "$with_gnu_ld"; then 12603 need_lib_prefix=no 12604 fi 12605 need_version=yes 12606 ;; 12607 12608sysv4 | sysv4.3*) 12609 version_type=linux # correct to gnu/linux during the next big refactor 12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12611 soname_spec='$libname$release$shared_ext$major' 12612 shlibpath_var=LD_LIBRARY_PATH 12613 case $host_vendor in 12614 sni) 12615 shlibpath_overrides_runpath=no 12616 need_lib_prefix=no 12617 runpath_var=LD_RUN_PATH 12618 ;; 12619 siemens) 12620 need_lib_prefix=no 12621 ;; 12622 motorola) 12623 need_lib_prefix=no 12624 need_version=no 12625 shlibpath_overrides_runpath=no 12626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12627 ;; 12628 esac 12629 ;; 12630 12631sysv4*MP*) 12632 if test -d /usr/nec; then 12633 version_type=linux # correct to gnu/linux during the next big refactor 12634 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12635 soname_spec='$libname$shared_ext.$major' 12636 shlibpath_var=LD_LIBRARY_PATH 12637 fi 12638 ;; 12639 12640sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12641 version_type=sco 12642 need_lib_prefix=no 12643 need_version=no 12644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12645 soname_spec='$libname$release$shared_ext$major' 12646 shlibpath_var=LD_LIBRARY_PATH 12647 shlibpath_overrides_runpath=yes 12648 hardcode_into_libs=yes 12649 if test yes = "$with_gnu_ld"; then 12650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12651 else 12652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12653 case $host_os in 12654 sco3.2v5*) 12655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12656 ;; 12657 esac 12658 fi 12659 sys_lib_dlsearch_path_spec='/usr/lib' 12660 ;; 12661 12662tpf*) 12663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12664 version_type=linux # correct to gnu/linux during the next big refactor 12665 need_lib_prefix=no 12666 need_version=no 12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12668 shlibpath_var=LD_LIBRARY_PATH 12669 shlibpath_overrides_runpath=no 12670 hardcode_into_libs=yes 12671 ;; 12672 12673uts4*) 12674 version_type=linux # correct to gnu/linux during the next big refactor 12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12676 soname_spec='$libname$release$shared_ext$major' 12677 shlibpath_var=LD_LIBRARY_PATH 12678 ;; 12679 12680*) 12681 dynamic_linker=no 12682 ;; 12683esac 12684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12685printf "%s\n" "$dynamic_linker" >&6; } 12686test no = "$dynamic_linker" && can_build_shared=no 12687 12688variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12689if test yes = "$GCC"; then 12690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12691fi 12692 12693if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12694 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12695fi 12696 12697if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12698 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12699fi 12700 12701# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12702configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12703 12704# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12705func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12706 12707# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12708configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12807printf %s "checking how to hardcode library paths into programs... " >&6; } 12808hardcode_action= 12809if test -n "$hardcode_libdir_flag_spec" || 12810 test -n "$runpath_var" || 12811 test yes = "$hardcode_automatic"; then 12812 12813 # We can hardcode non-existent directories. 12814 if test no != "$hardcode_direct" && 12815 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12816 # have to relink, otherwise we might link with an installed library 12817 # when we should be linking with a yet-to-be-installed one 12818 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12819 test no != "$hardcode_minus_L"; then 12820 # Linking always hardcodes the temporary library directory. 12821 hardcode_action=relink 12822 else 12823 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12824 hardcode_action=immediate 12825 fi 12826else 12827 # We cannot hardcode anything, or else we can only hardcode existing 12828 # directories. 12829 hardcode_action=unsupported 12830fi 12831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12832printf "%s\n" "$hardcode_action" >&6; } 12833 12834if test relink = "$hardcode_action" || 12835 test yes = "$inherit_rpath"; then 12836 # Fast installation is not supported 12837 enable_fast_install=no 12838elif test yes = "$shlibpath_overrides_runpath" || 12839 test no = "$enable_shared"; then 12840 # Fast installation is not necessary 12841 enable_fast_install=needless 12842fi 12843 12844 12845 12846 12847 12848 12849 if test yes != "$enable_dlopen"; then 12850 enable_dlopen=unknown 12851 enable_dlopen_self=unknown 12852 enable_dlopen_self_static=unknown 12853else 12854 lt_cv_dlopen=no 12855 lt_cv_dlopen_libs= 12856 12857 case $host_os in 12858 beos*) 12859 lt_cv_dlopen=load_add_on 12860 lt_cv_dlopen_libs= 12861 lt_cv_dlopen_self=yes 12862 ;; 12863 12864 mingw* | pw32* | cegcc*) 12865 lt_cv_dlopen=LoadLibrary 12866 lt_cv_dlopen_libs= 12867 ;; 12868 12869 cygwin*) 12870 lt_cv_dlopen=dlopen 12871 lt_cv_dlopen_libs= 12872 ;; 12873 12874 darwin*) 12875 # if libdl is installed we need to link against it 12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12877printf %s "checking for dlopen in -ldl... " >&6; } 12878if test ${ac_cv_lib_dl_dlopen+y} 12879then : 12880 printf %s "(cached) " >&6 12881else case e in #( 12882 e) ac_check_lib_save_LIBS=$LIBS 12883LIBS="-ldl $LIBS" 12884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12885/* end confdefs.h. */ 12886 12887/* Override any GCC internal prototype to avoid an error. 12888 Use char because int might match the return type of a GCC 12889 builtin and then its argument prototype would still apply. 12890 The 'extern "C"' is for builds by C++ compilers; 12891 although this is not generally supported in C code supporting it here 12892 has little cost and some practical benefit (sr 110532). */ 12893#ifdef __cplusplus 12894extern "C" 12895#endif 12896char dlopen (void); 12897int 12898main (void) 12899{ 12900return dlopen (); 12901 ; 12902 return 0; 12903} 12904_ACEOF 12905if ac_fn_c_try_link "$LINENO" 12906then : 12907 ac_cv_lib_dl_dlopen=yes 12908else case e in #( 12909 e) ac_cv_lib_dl_dlopen=no ;; 12910esac 12911fi 12912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12913 conftest$ac_exeext conftest.$ac_ext 12914LIBS=$ac_check_lib_save_LIBS ;; 12915esac 12916fi 12917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12918printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12919if test "x$ac_cv_lib_dl_dlopen" = xyes 12920then : 12921 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12922else case e in #( 12923 e) 12924 lt_cv_dlopen=dyld 12925 lt_cv_dlopen_libs= 12926 lt_cv_dlopen_self=yes 12927 ;; 12928esac 12929fi 12930 12931 ;; 12932 12933 tpf*) 12934 # Don't try to run any link tests for TPF. We know it's impossible 12935 # because TPF is a cross-compiler, and we know how we open DSOs. 12936 lt_cv_dlopen=dlopen 12937 lt_cv_dlopen_libs= 12938 lt_cv_dlopen_self=no 12939 ;; 12940 12941 *) 12942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12943if test "x$ac_cv_func_shl_load" = xyes 12944then : 12945 lt_cv_dlopen=shl_load 12946else case e in #( 12947 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12948printf %s "checking for shl_load in -ldld... " >&6; } 12949if test ${ac_cv_lib_dld_shl_load+y} 12950then : 12951 printf %s "(cached) " >&6 12952else case e in #( 12953 e) ac_check_lib_save_LIBS=$LIBS 12954LIBS="-ldld $LIBS" 12955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957 12958/* Override any GCC internal prototype to avoid an error. 12959 Use char because int might match the return type of a GCC 12960 builtin and then its argument prototype would still apply. 12961 The 'extern "C"' is for builds by C++ compilers; 12962 although this is not generally supported in C code supporting it here 12963 has little cost and some practical benefit (sr 110532). */ 12964#ifdef __cplusplus 12965extern "C" 12966#endif 12967char shl_load (void); 12968int 12969main (void) 12970{ 12971return shl_load (); 12972 ; 12973 return 0; 12974} 12975_ACEOF 12976if ac_fn_c_try_link "$LINENO" 12977then : 12978 ac_cv_lib_dld_shl_load=yes 12979else case e in #( 12980 e) ac_cv_lib_dld_shl_load=no ;; 12981esac 12982fi 12983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12984 conftest$ac_exeext conftest.$ac_ext 12985LIBS=$ac_check_lib_save_LIBS ;; 12986esac 12987fi 12988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12989printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12990if test "x$ac_cv_lib_dld_shl_load" = xyes 12991then : 12992 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12993else case e in #( 12994 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12995if test "x$ac_cv_func_dlopen" = xyes 12996then : 12997 lt_cv_dlopen=dlopen 12998else case e in #( 12999 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13000printf %s "checking for dlopen in -ldl... " >&6; } 13001if test ${ac_cv_lib_dl_dlopen+y} 13002then : 13003 printf %s "(cached) " >&6 13004else case e in #( 13005 e) ac_check_lib_save_LIBS=$LIBS 13006LIBS="-ldl $LIBS" 13007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009 13010/* Override any GCC internal prototype to avoid an error. 13011 Use char because int might match the return type of a GCC 13012 builtin and then its argument prototype would still apply. 13013 The 'extern "C"' is for builds by C++ compilers; 13014 although this is not generally supported in C code supporting it here 13015 has little cost and some practical benefit (sr 110532). */ 13016#ifdef __cplusplus 13017extern "C" 13018#endif 13019char dlopen (void); 13020int 13021main (void) 13022{ 13023return dlopen (); 13024 ; 13025 return 0; 13026} 13027_ACEOF 13028if ac_fn_c_try_link "$LINENO" 13029then : 13030 ac_cv_lib_dl_dlopen=yes 13031else case e in #( 13032 e) ac_cv_lib_dl_dlopen=no ;; 13033esac 13034fi 13035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13036 conftest$ac_exeext conftest.$ac_ext 13037LIBS=$ac_check_lib_save_LIBS ;; 13038esac 13039fi 13040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13041printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13042if test "x$ac_cv_lib_dl_dlopen" = xyes 13043then : 13044 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13045else case e in #( 13046 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13047printf %s "checking for dlopen in -lsvld... " >&6; } 13048if test ${ac_cv_lib_svld_dlopen+y} 13049then : 13050 printf %s "(cached) " >&6 13051else case e in #( 13052 e) ac_check_lib_save_LIBS=$LIBS 13053LIBS="-lsvld $LIBS" 13054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13055/* end confdefs.h. */ 13056 13057/* Override any GCC internal prototype to avoid an error. 13058 Use char because int might match the return type of a GCC 13059 builtin and then its argument prototype would still apply. 13060 The 'extern "C"' is for builds by C++ compilers; 13061 although this is not generally supported in C code supporting it here 13062 has little cost and some practical benefit (sr 110532). */ 13063#ifdef __cplusplus 13064extern "C" 13065#endif 13066char dlopen (void); 13067int 13068main (void) 13069{ 13070return dlopen (); 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075if ac_fn_c_try_link "$LINENO" 13076then : 13077 ac_cv_lib_svld_dlopen=yes 13078else case e in #( 13079 e) ac_cv_lib_svld_dlopen=no ;; 13080esac 13081fi 13082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13083 conftest$ac_exeext conftest.$ac_ext 13084LIBS=$ac_check_lib_save_LIBS ;; 13085esac 13086fi 13087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13088printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13089if test "x$ac_cv_lib_svld_dlopen" = xyes 13090then : 13091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13092else case e in #( 13093 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13094printf %s "checking for dld_link in -ldld... " >&6; } 13095if test ${ac_cv_lib_dld_dld_link+y} 13096then : 13097 printf %s "(cached) " >&6 13098else case e in #( 13099 e) ac_check_lib_save_LIBS=$LIBS 13100LIBS="-ldld $LIBS" 13101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103 13104/* Override any GCC internal prototype to avoid an error. 13105 Use char because int might match the return type of a GCC 13106 builtin and then its argument prototype would still apply. 13107 The 'extern "C"' is for builds by C++ compilers; 13108 although this is not generally supported in C code supporting it here 13109 has little cost and some practical benefit (sr 110532). */ 13110#ifdef __cplusplus 13111extern "C" 13112#endif 13113char dld_link (void); 13114int 13115main (void) 13116{ 13117return dld_link (); 13118 ; 13119 return 0; 13120} 13121_ACEOF 13122if ac_fn_c_try_link "$LINENO" 13123then : 13124 ac_cv_lib_dld_dld_link=yes 13125else case e in #( 13126 e) ac_cv_lib_dld_dld_link=no ;; 13127esac 13128fi 13129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13130 conftest$ac_exeext conftest.$ac_ext 13131LIBS=$ac_check_lib_save_LIBS ;; 13132esac 13133fi 13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13135printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13136if test "x$ac_cv_lib_dld_dld_link" = xyes 13137then : 13138 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13139fi 13140 13141 ;; 13142esac 13143fi 13144 13145 ;; 13146esac 13147fi 13148 13149 ;; 13150esac 13151fi 13152 13153 ;; 13154esac 13155fi 13156 13157 ;; 13158esac 13159fi 13160 13161 ;; 13162 esac 13163 13164 if test no = "$lt_cv_dlopen"; then 13165 enable_dlopen=no 13166 else 13167 enable_dlopen=yes 13168 fi 13169 13170 case $lt_cv_dlopen in 13171 dlopen) 13172 save_CPPFLAGS=$CPPFLAGS 13173 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13174 13175 save_LDFLAGS=$LDFLAGS 13176 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13177 13178 save_LIBS=$LIBS 13179 LIBS="$lt_cv_dlopen_libs $LIBS" 13180 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13182printf %s "checking whether a program can dlopen itself... " >&6; } 13183if test ${lt_cv_dlopen_self+y} 13184then : 13185 printf %s "(cached) " >&6 13186else case e in #( 13187 e) if test yes = "$cross_compiling"; then : 13188 lt_cv_dlopen_self=cross 13189else 13190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13191 lt_status=$lt_dlunknown 13192 cat > conftest.$ac_ext <<_LT_EOF 13193#line $LINENO "configure" 13194#include "confdefs.h" 13195 13196#if HAVE_DLFCN_H 13197#include <dlfcn.h> 13198#endif 13199 13200#include <stdio.h> 13201 13202#ifdef RTLD_GLOBAL 13203# define LT_DLGLOBAL RTLD_GLOBAL 13204#else 13205# ifdef DL_GLOBAL 13206# define LT_DLGLOBAL DL_GLOBAL 13207# else 13208# define LT_DLGLOBAL 0 13209# endif 13210#endif 13211 13212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13213 find out it does not work in some platform. */ 13214#ifndef LT_DLLAZY_OR_NOW 13215# ifdef RTLD_LAZY 13216# define LT_DLLAZY_OR_NOW RTLD_LAZY 13217# else 13218# ifdef DL_LAZY 13219# define LT_DLLAZY_OR_NOW DL_LAZY 13220# else 13221# ifdef RTLD_NOW 13222# define LT_DLLAZY_OR_NOW RTLD_NOW 13223# else 13224# ifdef DL_NOW 13225# define LT_DLLAZY_OR_NOW DL_NOW 13226# else 13227# define LT_DLLAZY_OR_NOW 0 13228# endif 13229# endif 13230# endif 13231# endif 13232#endif 13233 13234/* When -fvisibility=hidden is used, assume the code has been annotated 13235 correspondingly for the symbols needed. */ 13236#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13237int fnord () __attribute__((visibility("default"))); 13238#endif 13239 13240int fnord () { return 42; } 13241int main () 13242{ 13243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13244 int status = $lt_dlunknown; 13245 13246 if (self) 13247 { 13248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13249 else 13250 { 13251 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13252 else puts (dlerror ()); 13253 } 13254 /* dlclose (self); */ 13255 } 13256 else 13257 puts (dlerror ()); 13258 13259 return status; 13260} 13261_LT_EOF 13262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13263 (eval $ac_link) 2>&5 13264 ac_status=$? 13265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13266 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13267 (./conftest; exit; ) >&5 2>/dev/null 13268 lt_status=$? 13269 case x$lt_status in 13270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13272 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13273 esac 13274 else : 13275 # compilation failed 13276 lt_cv_dlopen_self=no 13277 fi 13278fi 13279rm -fr conftest* 13280 13281 ;; 13282esac 13283fi 13284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13285printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13286 13287 if test yes = "$lt_cv_dlopen_self"; then 13288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13290printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13291if test ${lt_cv_dlopen_self_static+y} 13292then : 13293 printf %s "(cached) " >&6 13294else case e in #( 13295 e) if test yes = "$cross_compiling"; then : 13296 lt_cv_dlopen_self_static=cross 13297else 13298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13299 lt_status=$lt_dlunknown 13300 cat > conftest.$ac_ext <<_LT_EOF 13301#line $LINENO "configure" 13302#include "confdefs.h" 13303 13304#if HAVE_DLFCN_H 13305#include <dlfcn.h> 13306#endif 13307 13308#include <stdio.h> 13309 13310#ifdef RTLD_GLOBAL 13311# define LT_DLGLOBAL RTLD_GLOBAL 13312#else 13313# ifdef DL_GLOBAL 13314# define LT_DLGLOBAL DL_GLOBAL 13315# else 13316# define LT_DLGLOBAL 0 13317# endif 13318#endif 13319 13320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13321 find out it does not work in some platform. */ 13322#ifndef LT_DLLAZY_OR_NOW 13323# ifdef RTLD_LAZY 13324# define LT_DLLAZY_OR_NOW RTLD_LAZY 13325# else 13326# ifdef DL_LAZY 13327# define LT_DLLAZY_OR_NOW DL_LAZY 13328# else 13329# ifdef RTLD_NOW 13330# define LT_DLLAZY_OR_NOW RTLD_NOW 13331# else 13332# ifdef DL_NOW 13333# define LT_DLLAZY_OR_NOW DL_NOW 13334# else 13335# define LT_DLLAZY_OR_NOW 0 13336# endif 13337# endif 13338# endif 13339# endif 13340#endif 13341 13342/* When -fvisibility=hidden is used, assume the code has been annotated 13343 correspondingly for the symbols needed. */ 13344#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13345int fnord () __attribute__((visibility("default"))); 13346#endif 13347 13348int fnord () { return 42; } 13349int main () 13350{ 13351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13352 int status = $lt_dlunknown; 13353 13354 if (self) 13355 { 13356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13357 else 13358 { 13359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13360 else puts (dlerror ()); 13361 } 13362 /* dlclose (self); */ 13363 } 13364 else 13365 puts (dlerror ()); 13366 13367 return status; 13368} 13369_LT_EOF 13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13371 (eval $ac_link) 2>&5 13372 ac_status=$? 13373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13374 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13375 (./conftest; exit; ) >&5 2>/dev/null 13376 lt_status=$? 13377 case x$lt_status in 13378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13381 esac 13382 else : 13383 # compilation failed 13384 lt_cv_dlopen_self_static=no 13385 fi 13386fi 13387rm -fr conftest* 13388 13389 ;; 13390esac 13391fi 13392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13393printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13394 fi 13395 13396 CPPFLAGS=$save_CPPFLAGS 13397 LDFLAGS=$save_LDFLAGS 13398 LIBS=$save_LIBS 13399 ;; 13400 esac 13401 13402 case $lt_cv_dlopen_self in 13403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13404 *) enable_dlopen_self=unknown ;; 13405 esac 13406 13407 case $lt_cv_dlopen_self_static in 13408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13409 *) enable_dlopen_self_static=unknown ;; 13410 esac 13411fi 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429striplib= 13430old_striplib= 13431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13432printf %s "checking whether stripping libraries is possible... " >&6; } 13433if test -z "$STRIP"; then 13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13435printf "%s\n" "no" >&6; } 13436else 13437 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13438 old_striplib="$STRIP --strip-debug" 13439 striplib="$STRIP --strip-unneeded" 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13441printf "%s\n" "yes" >&6; } 13442 else 13443 case $host_os in 13444 darwin*) 13445 # FIXME - insert some real tests, host_os isn't really good enough 13446 striplib="$STRIP -x" 13447 old_striplib="$STRIP -S" 13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13449printf "%s\n" "yes" >&6; } 13450 ;; 13451 freebsd*) 13452 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13453 old_striplib="$STRIP --strip-debug" 13454 striplib="$STRIP --strip-unneeded" 13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13456printf "%s\n" "yes" >&6; } 13457 else 13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13459printf "%s\n" "no" >&6; } 13460 fi 13461 ;; 13462 *) 13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13464printf "%s\n" "no" >&6; } 13465 ;; 13466 esac 13467 fi 13468fi 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 # Report what library types will actually be built 13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13483printf %s "checking if libtool supports shared libraries... " >&6; } 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13485printf "%s\n" "$can_build_shared" >&6; } 13486 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13488printf %s "checking whether to build shared libraries... " >&6; } 13489 test no = "$can_build_shared" && enable_shared=no 13490 13491 # On AIX, shared libraries and static libraries use the same namespace, and 13492 # are all built from PIC. 13493 case $host_os in 13494 aix3*) 13495 test yes = "$enable_shared" && enable_static=no 13496 if test -n "$RANLIB"; then 13497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13498 postinstall_cmds='$RANLIB $lib' 13499 fi 13500 ;; 13501 13502 aix[4-9]*) 13503 if test ia64 != "$host_cpu"; then 13504 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13505 yes,aix,yes) ;; # shared object as lib.so file only 13506 yes,svr4,*) ;; # shared object as lib.so archive member only 13507 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13508 esac 13509 fi 13510 ;; 13511 esac 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13513printf "%s\n" "$enable_shared" >&6; } 13514 13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13516printf %s "checking whether to build static libraries... " >&6; } 13517 # Make sure either enable_shared or enable_static is yes. 13518 test yes = "$enable_shared" || enable_static=yes 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13520printf "%s\n" "$enable_static" >&6; } 13521 13522 13523 13524 13525fi 13526ac_ext=c 13527ac_cpp='$CPP $CPPFLAGS' 13528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13530ac_compiler_gnu=$ac_cv_c_compiler_gnu 13531 13532CC=$lt_save_CC 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 ac_config_commands="$ac_config_commands libtool" 13549 13550 13551 13552 13553# Only expand once: 13554 13555 13556 13557# Check whether --enable-largefile was given. 13558if test ${enable_largefile+y} 13559then : 13560 enableval=$enable_largefile; 13561fi 13562if test "$enable_largefile,$enable_year2038" != no,no 13563then : 13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 13565printf %s "checking for $CC option to enable large file support... " >&6; } 13566if test ${ac_cv_sys_largefile_opts+y} 13567then : 13568 printf %s "(cached) " >&6 13569else case e in #( 13570 e) ac_save_CC="$CC" 13571 ac_opt_found=no 13572 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 13573 if test x"$ac_opt" != x"none needed" 13574then : 13575 CC="$ac_save_CC $ac_opt" 13576fi 13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13578/* end confdefs.h. */ 13579#include <sys/types.h> 13580#ifndef FTYPE 13581# define FTYPE off_t 13582#endif 13583 /* Check that FTYPE can represent 2**63 - 1 correctly. 13584 We can't simply define LARGE_FTYPE to be 9223372036854775807, 13585 since some C++ compilers masquerading as C compilers 13586 incorrectly reject 9223372036854775807. */ 13587#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 13588 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 13589 && LARGE_FTYPE % 2147483647 == 1) 13590 ? 1 : -1]; 13591int 13592main (void) 13593{ 13594 13595 ; 13596 return 0; 13597} 13598_ACEOF 13599if ac_fn_c_try_compile "$LINENO" 13600then : 13601 if test x"$ac_opt" = x"none needed" 13602then : 13603 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 13604 CC="$CC -DFTYPE=ino_t" 13605 if ac_fn_c_try_compile "$LINENO" 13606then : 13607 13608else case e in #( 13609 e) CC="$CC -D_FILE_OFFSET_BITS=64" 13610 if ac_fn_c_try_compile "$LINENO" 13611then : 13612 ac_opt='-D_FILE_OFFSET_BITS=64' 13613fi 13614rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 13615esac 13616fi 13617rm -f core conftest.err conftest.$ac_objext conftest.beam 13618fi 13619 ac_cv_sys_largefile_opts=$ac_opt 13620 ac_opt_found=yes 13621fi 13622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13623 test $ac_opt_found = no || break 13624 done 13625 CC="$ac_save_CC" 13626 13627 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 13628esac 13629fi 13630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 13631printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 13632 13633ac_have_largefile=yes 13634case $ac_cv_sys_largefile_opts in #( 13635 "none needed") : 13636 ;; #( 13637 "supported through gnulib") : 13638 ;; #( 13639 "support not detected") : 13640 ac_have_largefile=no ;; #( 13641 "-D_FILE_OFFSET_BITS=64") : 13642 13643printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 13644 ;; #( 13645 "-D_LARGE_FILES=1") : 13646 13647printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 13648 ;; #( 13649 "-n32") : 13650 CC="$CC -n32" ;; #( 13651 *) : 13652 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 13653esac 13654 13655if test "$enable_year2038" != no 13656then : 13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 13658printf %s "checking for $CC option for timestamps after 2038... " >&6; } 13659if test ${ac_cv_sys_year2038_opts+y} 13660then : 13661 printf %s "(cached) " >&6 13662else case e in #( 13663 e) ac_save_CPPFLAGS="$CPPFLAGS" 13664 ac_opt_found=no 13665 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 13666 if test x"$ac_opt" != x"none needed" 13667then : 13668 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 13669fi 13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13671/* end confdefs.h. */ 13672 13673 #include <time.h> 13674 /* Check that time_t can represent 2**32 - 1 correctly. */ 13675 #define LARGE_TIME_T \\ 13676 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 13677 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 13678 && LARGE_TIME_T % 65537 == 0) 13679 ? 1 : -1]; 13680 13681int 13682main (void) 13683{ 13684 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_compile "$LINENO" 13690then : 13691 ac_cv_sys_year2038_opts="$ac_opt" 13692 ac_opt_found=yes 13693fi 13694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13695 test $ac_opt_found = no || break 13696 done 13697 CPPFLAGS="$ac_save_CPPFLAGS" 13698 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 13699esac 13700fi 13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 13702printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 13703 13704ac_have_year2038=yes 13705case $ac_cv_sys_year2038_opts in #( 13706 "none needed") : 13707 ;; #( 13708 "support not detected") : 13709 ac_have_year2038=no ;; #( 13710 "-D_TIME_BITS=64") : 13711 13712printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 13713 ;; #( 13714 "-D__MINGW_USE_VC2005_COMPAT") : 13715 13716printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 13717 ;; #( 13718 "-U_USE_32_BIT_TIME_T"*) : 13719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13720printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13721as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 13722will stop working after mid-January 2038. Remove 13723_USE_32BIT_TIME_T from the compiler flags. 13724See 'config.log' for more details" "$LINENO" 5; } ;; #( 13725 *) : 13726 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 13727esac 13728 13729fi 13730 13731fi 13732 13733# Require xorg-macros minimum of 1.15 for fop minimum version 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13746printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13747if test ${ac_cv_c_undeclared_builtin_options+y} 13748then : 13749 printf %s "(cached) " >&6 13750else case e in #( 13751 e) ac_save_CFLAGS=$CFLAGS 13752 ac_cv_c_undeclared_builtin_options='cannot detect' 13753 for ac_arg in '' -fno-builtin; do 13754 CFLAGS="$ac_save_CFLAGS $ac_arg" 13755 # This test program should *not* compile successfully. 13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13757/* end confdefs.h. */ 13758 13759int 13760main (void) 13761{ 13762(void) strchr; 13763 ; 13764 return 0; 13765} 13766_ACEOF 13767if ac_fn_c_try_compile "$LINENO" 13768then : 13769 13770else case e in #( 13771 e) # This test program should compile successfully. 13772 # No library function is consistently available on 13773 # freestanding implementations, so test against a dummy 13774 # declaration. Include always-available headers on the 13775 # off chance that they somehow elicit warnings. 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778#include <float.h> 13779#include <limits.h> 13780#include <stdarg.h> 13781#include <stddef.h> 13782extern void ac_decl (int, char *); 13783 13784int 13785main (void) 13786{ 13787(void) ac_decl (0, (char *) 0); 13788 (void) ac_decl; 13789 13790 ; 13791 return 0; 13792} 13793_ACEOF 13794if ac_fn_c_try_compile "$LINENO" 13795then : 13796 if test x"$ac_arg" = x 13797then : 13798 ac_cv_c_undeclared_builtin_options='none needed' 13799else case e in #( 13800 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13801esac 13802fi 13803 break 13804fi 13805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13806esac 13807fi 13808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13809 done 13810 CFLAGS=$ac_save_CFLAGS 13811 ;; 13812esac 13813fi 13814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13815printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13816 case $ac_cv_c_undeclared_builtin_options in #( 13817 'cannot detect') : 13818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13819printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13820as_fn_error $? "cannot make $CC report undeclared builtins 13821See 'config.log' for more details" "$LINENO" 5; } ;; #( 13822 'none needed') : 13823 ac_c_undeclared_builtin_options='' ;; #( 13824 *) : 13825 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13826esac 13827 13828 13829 13830 13831 13832ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13833if test "x$ac_cv_have_decl___clang__" = xyes 13834then : 13835 CLANGCC="yes" 13836else case e in #( 13837 e) CLANGCC="no" ;; 13838esac 13839fi 13840ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13841if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13842then : 13843 INTELCC="yes" 13844else case e in #( 13845 e) INTELCC="no" ;; 13846esac 13847fi 13848ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13849if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13850then : 13851 SUNCC="yes" 13852else case e in #( 13853 e) SUNCC="no" ;; 13854esac 13855fi 13856 13857 13858 13859 13860 13861 13862 13863 13864if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13865 if test -n "$ac_tool_prefix"; then 13866 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13867set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13869printf %s "checking for $ac_word... " >&6; } 13870if test ${ac_cv_path_PKG_CONFIG+y} 13871then : 13872 printf %s "(cached) " >&6 13873else case e in #( 13874 e) case $PKG_CONFIG in 13875 [\\/]* | ?:[\\/]*) 13876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13877 ;; 13878 *) 13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13880for as_dir in $PATH 13881do 13882 IFS=$as_save_IFS 13883 case $as_dir in #((( 13884 '') as_dir=./ ;; 13885 */) ;; 13886 *) as_dir=$as_dir/ ;; 13887 esac 13888 for ac_exec_ext in '' $ac_executable_extensions; do 13889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13890 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13892 break 2 13893 fi 13894done 13895 done 13896IFS=$as_save_IFS 13897 13898 ;; 13899esac ;; 13900esac 13901fi 13902PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13903if test -n "$PKG_CONFIG"; then 13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13905printf "%s\n" "$PKG_CONFIG" >&6; } 13906else 13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13908printf "%s\n" "no" >&6; } 13909fi 13910 13911 13912fi 13913if test -z "$ac_cv_path_PKG_CONFIG"; then 13914 ac_pt_PKG_CONFIG=$PKG_CONFIG 13915 # Extract the first word of "pkg-config", so it can be a program name with args. 13916set dummy pkg-config; ac_word=$2 13917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13918printf %s "checking for $ac_word... " >&6; } 13919if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13920then : 13921 printf %s "(cached) " >&6 13922else case e in #( 13923 e) case $ac_pt_PKG_CONFIG in 13924 [\\/]* | ?:[\\/]*) 13925 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13926 ;; 13927 *) 13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13929for as_dir in $PATH 13930do 13931 IFS=$as_save_IFS 13932 case $as_dir in #((( 13933 '') as_dir=./ ;; 13934 */) ;; 13935 *) as_dir=$as_dir/ ;; 13936 esac 13937 for ac_exec_ext in '' $ac_executable_extensions; do 13938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13939 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13941 break 2 13942 fi 13943done 13944 done 13945IFS=$as_save_IFS 13946 13947 ;; 13948esac ;; 13949esac 13950fi 13951ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13952if test -n "$ac_pt_PKG_CONFIG"; then 13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13954printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13955else 13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13957printf "%s\n" "no" >&6; } 13958fi 13959 13960 if test "x$ac_pt_PKG_CONFIG" = x; then 13961 PKG_CONFIG="" 13962 else 13963 case $cross_compiling:$ac_tool_warned in 13964yes:) 13965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13966printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13967ac_tool_warned=yes ;; 13968esac 13969 PKG_CONFIG=$ac_pt_PKG_CONFIG 13970 fi 13971else 13972 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13973fi 13974 13975fi 13976if test -n "$PKG_CONFIG"; then 13977 _pkg_min_version=0.9.0 13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13979printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13980 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13982printf "%s\n" "yes" >&6; } 13983 else 13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13985printf "%s\n" "no" >&6; } 13986 PKG_CONFIG="" 13987 fi 13988fi 13989 13990 13991 13992 13993 13994# Check whether --enable-selective-werror was given. 13995if test ${enable_selective_werror+y} 13996then : 13997 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13998else case e in #( 13999 e) SELECTIVE_WERROR=yes ;; 14000esac 14001fi 14002 14003 14004 14005 14006 14007# -v is too short to test reliably with XORG_TESTSET_CFLAG 14008if test "x$SUNCC" = "xyes"; then 14009 BASE_CFLAGS="-v" 14010else 14011 BASE_CFLAGS="" 14012fi 14013 14014# This chunk of warnings were those that existed in the legacy CWARNFLAGS 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028xorg_testset_save_CFLAGS="$CFLAGS" 14029 14030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14034if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14035then : 14036 printf %s "(cached) " >&6 14037else case e in #( 14038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14039/* end confdefs.h. */ 14040int i; 14041_ACEOF 14042if ac_fn_c_try_compile "$LINENO" 14043then : 14044 xorg_cv_cc_flag_unknown_warning_option=yes 14045else case e in #( 14046 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14047esac 14048fi 14049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14050esac 14051fi 14052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14055 CFLAGS="$xorg_testset_save_CFLAGS" 14056fi 14057 14058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14061 fi 14062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14065if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14066then : 14067 printf %s "(cached) " >&6 14068else case e in #( 14069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14070/* end confdefs.h. */ 14071int i; 14072_ACEOF 14073if ac_fn_c_try_compile "$LINENO" 14074then : 14075 xorg_cv_cc_flag_unused_command_line_argument=yes 14076else case e in #( 14077 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14078esac 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14081esac 14082fi 14083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14086 CFLAGS="$xorg_testset_save_CFLAGS" 14087fi 14088 14089found="no" 14090 14091 if test $found = "no" ; then 14092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14094 fi 14095 14096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14098 fi 14099 14100 CFLAGS="$CFLAGS -Wall" 14101 14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14103printf %s "checking if $CC supports -Wall... " >&6; } 14104 cacheid=xorg_cv_cc_flag__Wall 14105 if eval test \${$cacheid+y} 14106then : 14107 printf %s "(cached) " >&6 14108else case e in #( 14109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14110/* end confdefs.h. */ 14111int i; 14112int 14113main (void) 14114{ 14115 14116 ; 14117 return 0; 14118} 14119_ACEOF 14120if ac_fn_c_try_link "$LINENO" 14121then : 14122 eval $cacheid=yes 14123else case e in #( 14124 e) eval $cacheid=no ;; 14125esac 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14128 conftest$ac_exeext conftest.$ac_ext ;; 14129esac 14130fi 14131 14132 14133 CFLAGS="$xorg_testset_save_CFLAGS" 14134 14135 eval supported=\$$cacheid 14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14137printf "%s\n" "$supported" >&6; } 14138 if test "$supported" = "yes" ; then 14139 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14140 found="yes" 14141 fi 14142 fi 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158xorg_testset_save_CFLAGS="$CFLAGS" 14159 14160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14163printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14164if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14165then : 14166 printf %s "(cached) " >&6 14167else case e in #( 14168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169/* end confdefs.h. */ 14170int i; 14171_ACEOF 14172if ac_fn_c_try_compile "$LINENO" 14173then : 14174 xorg_cv_cc_flag_unknown_warning_option=yes 14175else case e in #( 14176 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14177esac 14178fi 14179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14180esac 14181fi 14182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14183printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14185 CFLAGS="$xorg_testset_save_CFLAGS" 14186fi 14187 14188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14191 fi 14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14194printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14195if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14196then : 14197 printf %s "(cached) " >&6 14198else case e in #( 14199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201int i; 14202_ACEOF 14203if ac_fn_c_try_compile "$LINENO" 14204then : 14205 xorg_cv_cc_flag_unused_command_line_argument=yes 14206else case e in #( 14207 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14208esac 14209fi 14210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14211esac 14212fi 14213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14214printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14216 CFLAGS="$xorg_testset_save_CFLAGS" 14217fi 14218 14219found="no" 14220 14221 if test $found = "no" ; then 14222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14224 fi 14225 14226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14228 fi 14229 14230 CFLAGS="$CFLAGS -Wpointer-arith" 14231 14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14233printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14234 cacheid=xorg_cv_cc_flag__Wpointer_arith 14235 if eval test \${$cacheid+y} 14236then : 14237 printf %s "(cached) " >&6 14238else case e in #( 14239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241int i; 14242int 14243main (void) 14244{ 14245 14246 ; 14247 return 0; 14248} 14249_ACEOF 14250if ac_fn_c_try_link "$LINENO" 14251then : 14252 eval $cacheid=yes 14253else case e in #( 14254 e) eval $cacheid=no ;; 14255esac 14256fi 14257rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14258 conftest$ac_exeext conftest.$ac_ext ;; 14259esac 14260fi 14261 14262 14263 CFLAGS="$xorg_testset_save_CFLAGS" 14264 14265 eval supported=\$$cacheid 14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14267printf "%s\n" "$supported" >&6; } 14268 if test "$supported" = "yes" ; then 14269 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14270 found="yes" 14271 fi 14272 fi 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288xorg_testset_save_CFLAGS="$CFLAGS" 14289 14290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14294if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14295then : 14296 printf %s "(cached) " >&6 14297else case e in #( 14298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300int i; 14301_ACEOF 14302if ac_fn_c_try_compile "$LINENO" 14303then : 14304 xorg_cv_cc_flag_unknown_warning_option=yes 14305else case e in #( 14306 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14307esac 14308fi 14309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14310esac 14311fi 14312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14315 CFLAGS="$xorg_testset_save_CFLAGS" 14316fi 14317 14318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 fi 14322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14325if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14326then : 14327 printf %s "(cached) " >&6 14328else case e in #( 14329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330/* end confdefs.h. */ 14331int i; 14332_ACEOF 14333if ac_fn_c_try_compile "$LINENO" 14334then : 14335 xorg_cv_cc_flag_unused_command_line_argument=yes 14336else case e in #( 14337 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14338esac 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14341esac 14342fi 14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14344printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347fi 14348 14349found="no" 14350 14351 if test $found = "no" ; then 14352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14354 fi 14355 14356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14358 fi 14359 14360 CFLAGS="$CFLAGS -Wmissing-declarations" 14361 14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14363printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14364 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14365 if eval test \${$cacheid+y} 14366then : 14367 printf %s "(cached) " >&6 14368else case e in #( 14369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371int i; 14372int 14373main (void) 14374{ 14375 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380if ac_fn_c_try_link "$LINENO" 14381then : 14382 eval $cacheid=yes 14383else case e in #( 14384 e) eval $cacheid=no ;; 14385esac 14386fi 14387rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14388 conftest$ac_exeext conftest.$ac_ext ;; 14389esac 14390fi 14391 14392 14393 CFLAGS="$xorg_testset_save_CFLAGS" 14394 14395 eval supported=\$$cacheid 14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14397printf "%s\n" "$supported" >&6; } 14398 if test "$supported" = "yes" ; then 14399 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14400 found="yes" 14401 fi 14402 fi 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418xorg_testset_save_CFLAGS="$CFLAGS" 14419 14420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14424if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14425then : 14426 printf %s "(cached) " >&6 14427else case e in #( 14428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14429/* end confdefs.h. */ 14430int i; 14431_ACEOF 14432if ac_fn_c_try_compile "$LINENO" 14433then : 14434 xorg_cv_cc_flag_unknown_warning_option=yes 14435else case e in #( 14436 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14437esac 14438fi 14439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14440esac 14441fi 14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14445 CFLAGS="$xorg_testset_save_CFLAGS" 14446fi 14447 14448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14451 fi 14452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14456then : 14457 printf %s "(cached) " >&6 14458else case e in #( 14459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460/* end confdefs.h. */ 14461int i; 14462_ACEOF 14463if ac_fn_c_try_compile "$LINENO" 14464then : 14465 xorg_cv_cc_flag_unused_command_line_argument=yes 14466else case e in #( 14467 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14468esac 14469fi 14470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14471esac 14472fi 14473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14476 CFLAGS="$xorg_testset_save_CFLAGS" 14477fi 14478 14479found="no" 14480 14481 if test $found = "no" ; then 14482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14484 fi 14485 14486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14488 fi 14489 14490 CFLAGS="$CFLAGS -Wformat=2" 14491 14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14493printf %s "checking if $CC supports -Wformat=2... " >&6; } 14494 cacheid=xorg_cv_cc_flag__Wformat_2 14495 if eval test \${$cacheid+y} 14496then : 14497 printf %s "(cached) " >&6 14498else case e in #( 14499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501int i; 14502int 14503main (void) 14504{ 14505 14506 ; 14507 return 0; 14508} 14509_ACEOF 14510if ac_fn_c_try_link "$LINENO" 14511then : 14512 eval $cacheid=yes 14513else case e in #( 14514 e) eval $cacheid=no ;; 14515esac 14516fi 14517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14518 conftest$ac_exeext conftest.$ac_ext ;; 14519esac 14520fi 14521 14522 14523 CFLAGS="$xorg_testset_save_CFLAGS" 14524 14525 eval supported=\$$cacheid 14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14527printf "%s\n" "$supported" >&6; } 14528 if test "$supported" = "yes" ; then 14529 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14530 found="yes" 14531 fi 14532 fi 14533 14534 if test $found = "no" ; then 14535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14537 fi 14538 14539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14541 fi 14542 14543 CFLAGS="$CFLAGS -Wformat" 14544 14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14546printf %s "checking if $CC supports -Wformat... " >&6; } 14547 cacheid=xorg_cv_cc_flag__Wformat 14548 if eval test \${$cacheid+y} 14549then : 14550 printf %s "(cached) " >&6 14551else case e in #( 14552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14553/* end confdefs.h. */ 14554int i; 14555int 14556main (void) 14557{ 14558 14559 ; 14560 return 0; 14561} 14562_ACEOF 14563if ac_fn_c_try_link "$LINENO" 14564then : 14565 eval $cacheid=yes 14566else case e in #( 14567 e) eval $cacheid=no ;; 14568esac 14569fi 14570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14571 conftest$ac_exeext conftest.$ac_ext ;; 14572esac 14573fi 14574 14575 14576 CFLAGS="$xorg_testset_save_CFLAGS" 14577 14578 eval supported=\$$cacheid 14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14580printf "%s\n" "$supported" >&6; } 14581 if test "$supported" = "yes" ; then 14582 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14583 found="yes" 14584 fi 14585 fi 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603xorg_testset_save_CFLAGS="$CFLAGS" 14604 14605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14610then : 14611 printf %s "(cached) " >&6 14612else case e in #( 14613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14614/* end confdefs.h. */ 14615int i; 14616_ACEOF 14617if ac_fn_c_try_compile "$LINENO" 14618then : 14619 xorg_cv_cc_flag_unknown_warning_option=yes 14620else case e in #( 14621 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14622esac 14623fi 14624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14625esac 14626fi 14627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14630 CFLAGS="$xorg_testset_save_CFLAGS" 14631fi 14632 14633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14636 fi 14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14641then : 14642 printf %s "(cached) " >&6 14643else case e in #( 14644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647_ACEOF 14648if ac_fn_c_try_compile "$LINENO" 14649then : 14650 xorg_cv_cc_flag_unused_command_line_argument=yes 14651else case e in #( 14652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14653esac 14654fi 14655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14656esac 14657fi 14658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14661 CFLAGS="$xorg_testset_save_CFLAGS" 14662fi 14663 14664found="no" 14665 14666 if test $found = "no" ; then 14667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14669 fi 14670 14671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14673 fi 14674 14675 CFLAGS="$CFLAGS -Wstrict-prototypes" 14676 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14678printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14679 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14680 if eval test \${$cacheid+y} 14681then : 14682 printf %s "(cached) " >&6 14683else case e in #( 14684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685/* end confdefs.h. */ 14686int i; 14687int 14688main (void) 14689{ 14690 14691 ; 14692 return 0; 14693} 14694_ACEOF 14695if ac_fn_c_try_link "$LINENO" 14696then : 14697 eval $cacheid=yes 14698else case e in #( 14699 e) eval $cacheid=no ;; 14700esac 14701fi 14702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14703 conftest$ac_exeext conftest.$ac_ext ;; 14704esac 14705fi 14706 14707 14708 CFLAGS="$xorg_testset_save_CFLAGS" 14709 14710 eval supported=\$$cacheid 14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14712printf "%s\n" "$supported" >&6; } 14713 if test "$supported" = "yes" ; then 14714 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14715 found="yes" 14716 fi 14717 fi 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733xorg_testset_save_CFLAGS="$CFLAGS" 14734 14735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14739if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14740then : 14741 printf %s "(cached) " >&6 14742else case e in #( 14743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746_ACEOF 14747if ac_fn_c_try_compile "$LINENO" 14748then : 14749 xorg_cv_cc_flag_unknown_warning_option=yes 14750else case e in #( 14751 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14752esac 14753fi 14754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14755esac 14756fi 14757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14760 CFLAGS="$xorg_testset_save_CFLAGS" 14761fi 14762 14763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14766 fi 14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14770if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14771then : 14772 printf %s "(cached) " >&6 14773else case e in #( 14774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14775/* end confdefs.h. */ 14776int i; 14777_ACEOF 14778if ac_fn_c_try_compile "$LINENO" 14779then : 14780 xorg_cv_cc_flag_unused_command_line_argument=yes 14781else case e in #( 14782 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14783esac 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14786esac 14787fi 14788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14791 CFLAGS="$xorg_testset_save_CFLAGS" 14792fi 14793 14794found="no" 14795 14796 if test $found = "no" ; then 14797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14799 fi 14800 14801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14803 fi 14804 14805 CFLAGS="$CFLAGS -Wmissing-prototypes" 14806 14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14808printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14809 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14810 if eval test \${$cacheid+y} 14811then : 14812 printf %s "(cached) " >&6 14813else case e in #( 14814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14815/* end confdefs.h. */ 14816int i; 14817int 14818main (void) 14819{ 14820 14821 ; 14822 return 0; 14823} 14824_ACEOF 14825if ac_fn_c_try_link "$LINENO" 14826then : 14827 eval $cacheid=yes 14828else case e in #( 14829 e) eval $cacheid=no ;; 14830esac 14831fi 14832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14833 conftest$ac_exeext conftest.$ac_ext ;; 14834esac 14835fi 14836 14837 14838 CFLAGS="$xorg_testset_save_CFLAGS" 14839 14840 eval supported=\$$cacheid 14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14842printf "%s\n" "$supported" >&6; } 14843 if test "$supported" = "yes" ; then 14844 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14845 found="yes" 14846 fi 14847 fi 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863xorg_testset_save_CFLAGS="$CFLAGS" 14864 14865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14869if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14870then : 14871 printf %s "(cached) " >&6 14872else case e in #( 14873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14874/* end confdefs.h. */ 14875int i; 14876_ACEOF 14877if ac_fn_c_try_compile "$LINENO" 14878then : 14879 xorg_cv_cc_flag_unknown_warning_option=yes 14880else case e in #( 14881 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14882esac 14883fi 14884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14885esac 14886fi 14887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14890 CFLAGS="$xorg_testset_save_CFLAGS" 14891fi 14892 14893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14896 fi 14897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14900if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14901then : 14902 printf %s "(cached) " >&6 14903else case e in #( 14904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14905/* end confdefs.h. */ 14906int i; 14907_ACEOF 14908if ac_fn_c_try_compile "$LINENO" 14909then : 14910 xorg_cv_cc_flag_unused_command_line_argument=yes 14911else case e in #( 14912 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14913esac 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14916esac 14917fi 14918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922fi 14923 14924found="no" 14925 14926 if test $found = "no" ; then 14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14929 fi 14930 14931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14933 fi 14934 14935 CFLAGS="$CFLAGS -Wnested-externs" 14936 14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14938printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14939 cacheid=xorg_cv_cc_flag__Wnested_externs 14940 if eval test \${$cacheid+y} 14941then : 14942 printf %s "(cached) " >&6 14943else case e in #( 14944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946int i; 14947int 14948main (void) 14949{ 14950 14951 ; 14952 return 0; 14953} 14954_ACEOF 14955if ac_fn_c_try_link "$LINENO" 14956then : 14957 eval $cacheid=yes 14958else case e in #( 14959 e) eval $cacheid=no ;; 14960esac 14961fi 14962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14963 conftest$ac_exeext conftest.$ac_ext ;; 14964esac 14965fi 14966 14967 14968 CFLAGS="$xorg_testset_save_CFLAGS" 14969 14970 eval supported=\$$cacheid 14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14972printf "%s\n" "$supported" >&6; } 14973 if test "$supported" = "yes" ; then 14974 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14975 found="yes" 14976 fi 14977 fi 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993xorg_testset_save_CFLAGS="$CFLAGS" 14994 14995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15000then : 15001 printf %s "(cached) " >&6 15002else case e in #( 15003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005int i; 15006_ACEOF 15007if ac_fn_c_try_compile "$LINENO" 15008then : 15009 xorg_cv_cc_flag_unknown_warning_option=yes 15010else case e in #( 15011 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15012esac 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15015esac 15016fi 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021fi 15022 15023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15026 fi 15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15030if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15031then : 15032 printf %s "(cached) " >&6 15033else case e in #( 15034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035/* end confdefs.h. */ 15036int i; 15037_ACEOF 15038if ac_fn_c_try_compile "$LINENO" 15039then : 15040 xorg_cv_cc_flag_unused_command_line_argument=yes 15041else case e in #( 15042 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15043esac 15044fi 15045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15046esac 15047fi 15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15051 CFLAGS="$xorg_testset_save_CFLAGS" 15052fi 15053 15054found="no" 15055 15056 if test $found = "no" ; then 15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15059 fi 15060 15061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15063 fi 15064 15065 CFLAGS="$CFLAGS -Wbad-function-cast" 15066 15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15068printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15069 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15070 if eval test \${$cacheid+y} 15071then : 15072 printf %s "(cached) " >&6 15073else case e in #( 15074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076int i; 15077int 15078main (void) 15079{ 15080 15081 ; 15082 return 0; 15083} 15084_ACEOF 15085if ac_fn_c_try_link "$LINENO" 15086then : 15087 eval $cacheid=yes 15088else case e in #( 15089 e) eval $cacheid=no ;; 15090esac 15091fi 15092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15093 conftest$ac_exeext conftest.$ac_ext ;; 15094esac 15095fi 15096 15097 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099 15100 eval supported=\$$cacheid 15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15102printf "%s\n" "$supported" >&6; } 15103 if test "$supported" = "yes" ; then 15104 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15105 found="yes" 15106 fi 15107 fi 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123xorg_testset_save_CFLAGS="$CFLAGS" 15124 15125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15129if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15130then : 15131 printf %s "(cached) " >&6 15132else case e in #( 15133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15134/* end confdefs.h. */ 15135int i; 15136_ACEOF 15137if ac_fn_c_try_compile "$LINENO" 15138then : 15139 xorg_cv_cc_flag_unknown_warning_option=yes 15140else case e in #( 15141 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15142esac 15143fi 15144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15145esac 15146fi 15147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15150 CFLAGS="$xorg_testset_save_CFLAGS" 15151fi 15152 15153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15156 fi 15157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15160if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15161then : 15162 printf %s "(cached) " >&6 15163else case e in #( 15164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165/* end confdefs.h. */ 15166int i; 15167_ACEOF 15168if ac_fn_c_try_compile "$LINENO" 15169then : 15170 xorg_cv_cc_flag_unused_command_line_argument=yes 15171else case e in #( 15172 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15173esac 15174fi 15175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15176esac 15177fi 15178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15181 CFLAGS="$xorg_testset_save_CFLAGS" 15182fi 15183 15184found="no" 15185 15186 if test $found = "no" ; then 15187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15189 fi 15190 15191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15193 fi 15194 15195 CFLAGS="$CFLAGS -Wold-style-definition" 15196 15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15198printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15199 cacheid=xorg_cv_cc_flag__Wold_style_definition 15200 if eval test \${$cacheid+y} 15201then : 15202 printf %s "(cached) " >&6 15203else case e in #( 15204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205/* end confdefs.h. */ 15206int i; 15207int 15208main (void) 15209{ 15210 15211 ; 15212 return 0; 15213} 15214_ACEOF 15215if ac_fn_c_try_link "$LINENO" 15216then : 15217 eval $cacheid=yes 15218else case e in #( 15219 e) eval $cacheid=no ;; 15220esac 15221fi 15222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15223 conftest$ac_exeext conftest.$ac_ext ;; 15224esac 15225fi 15226 15227 15228 CFLAGS="$xorg_testset_save_CFLAGS" 15229 15230 eval supported=\$$cacheid 15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15232printf "%s\n" "$supported" >&6; } 15233 if test "$supported" = "yes" ; then 15234 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15235 found="yes" 15236 fi 15237 fi 15238 15239 if test $found = "no" ; then 15240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15242 fi 15243 15244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15246 fi 15247 15248 CFLAGS="$CFLAGS -fd" 15249 15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15251printf %s "checking if $CC supports -fd... " >&6; } 15252 cacheid=xorg_cv_cc_flag__fd 15253 if eval test \${$cacheid+y} 15254then : 15255 printf %s "(cached) " >&6 15256else case e in #( 15257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259int i; 15260int 15261main (void) 15262{ 15263 15264 ; 15265 return 0; 15266} 15267_ACEOF 15268if ac_fn_c_try_link "$LINENO" 15269then : 15270 eval $cacheid=yes 15271else case e in #( 15272 e) eval $cacheid=no ;; 15273esac 15274fi 15275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15276 conftest$ac_exeext conftest.$ac_ext ;; 15277esac 15278fi 15279 15280 15281 CFLAGS="$xorg_testset_save_CFLAGS" 15282 15283 eval supported=\$$cacheid 15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15285printf "%s\n" "$supported" >&6; } 15286 if test "$supported" = "yes" ; then 15287 BASE_CFLAGS="$BASE_CFLAGS -fd" 15288 found="yes" 15289 fi 15290 fi 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306xorg_testset_save_CFLAGS="$CFLAGS" 15307 15308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15312if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15313then : 15314 printf %s "(cached) " >&6 15315else case e in #( 15316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15317/* end confdefs.h. */ 15318int i; 15319_ACEOF 15320if ac_fn_c_try_compile "$LINENO" 15321then : 15322 xorg_cv_cc_flag_unknown_warning_option=yes 15323else case e in #( 15324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15325esac 15326fi 15327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15328esac 15329fi 15330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15333 CFLAGS="$xorg_testset_save_CFLAGS" 15334fi 15335 15336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15339 fi 15340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15344then : 15345 printf %s "(cached) " >&6 15346else case e in #( 15347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349int i; 15350_ACEOF 15351if ac_fn_c_try_compile "$LINENO" 15352then : 15353 xorg_cv_cc_flag_unused_command_line_argument=yes 15354else case e in #( 15355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15356esac 15357fi 15358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15359esac 15360fi 15361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15364 CFLAGS="$xorg_testset_save_CFLAGS" 15365fi 15366 15367found="no" 15368 15369 if test $found = "no" ; then 15370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15372 fi 15373 15374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15376 fi 15377 15378 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15379 15380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15381printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15382 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15383 if eval test \${$cacheid+y} 15384then : 15385 printf %s "(cached) " >&6 15386else case e in #( 15387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390int 15391main (void) 15392{ 15393 15394 ; 15395 return 0; 15396} 15397_ACEOF 15398if ac_fn_c_try_link "$LINENO" 15399then : 15400 eval $cacheid=yes 15401else case e in #( 15402 e) eval $cacheid=no ;; 15403esac 15404fi 15405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15406 conftest$ac_exeext conftest.$ac_ext ;; 15407esac 15408fi 15409 15410 15411 CFLAGS="$xorg_testset_save_CFLAGS" 15412 15413 eval supported=\$$cacheid 15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15415printf "%s\n" "$supported" >&6; } 15416 if test "$supported" = "yes" ; then 15417 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15418 found="yes" 15419 fi 15420 fi 15421 15422 15423 15424 15425 15426# This chunk adds additional warnings that could catch undesired effects. 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440xorg_testset_save_CFLAGS="$CFLAGS" 15441 15442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15447then : 15448 printf %s "(cached) " >&6 15449else case e in #( 15450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452int i; 15453_ACEOF 15454if ac_fn_c_try_compile "$LINENO" 15455then : 15456 xorg_cv_cc_flag_unknown_warning_option=yes 15457else case e in #( 15458 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15459esac 15460fi 15461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15462esac 15463fi 15464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15467 CFLAGS="$xorg_testset_save_CFLAGS" 15468fi 15469 15470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15473 fi 15474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15478then : 15479 printf %s "(cached) " >&6 15480else case e in #( 15481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15482/* end confdefs.h. */ 15483int i; 15484_ACEOF 15485if ac_fn_c_try_compile "$LINENO" 15486then : 15487 xorg_cv_cc_flag_unused_command_line_argument=yes 15488else case e in #( 15489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15490esac 15491fi 15492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15493esac 15494fi 15495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15498 CFLAGS="$xorg_testset_save_CFLAGS" 15499fi 15500 15501found="no" 15502 15503 if test $found = "no" ; then 15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15506 fi 15507 15508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15510 fi 15511 15512 CFLAGS="$CFLAGS -Wunused" 15513 15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15515printf %s "checking if $CC supports -Wunused... " >&6; } 15516 cacheid=xorg_cv_cc_flag__Wunused 15517 if eval test \${$cacheid+y} 15518then : 15519 printf %s "(cached) " >&6 15520else case e in #( 15521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523int i; 15524int 15525main (void) 15526{ 15527 15528 ; 15529 return 0; 15530} 15531_ACEOF 15532if ac_fn_c_try_link "$LINENO" 15533then : 15534 eval $cacheid=yes 15535else case e in #( 15536 e) eval $cacheid=no ;; 15537esac 15538fi 15539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15540 conftest$ac_exeext conftest.$ac_ext ;; 15541esac 15542fi 15543 15544 15545 CFLAGS="$xorg_testset_save_CFLAGS" 15546 15547 eval supported=\$$cacheid 15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15549printf "%s\n" "$supported" >&6; } 15550 if test "$supported" = "yes" ; then 15551 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15552 found="yes" 15553 fi 15554 fi 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570xorg_testset_save_CFLAGS="$CFLAGS" 15571 15572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15576if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15577then : 15578 printf %s "(cached) " >&6 15579else case e in #( 15580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15581/* end confdefs.h. */ 15582int i; 15583_ACEOF 15584if ac_fn_c_try_compile "$LINENO" 15585then : 15586 xorg_cv_cc_flag_unknown_warning_option=yes 15587else case e in #( 15588 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15589esac 15590fi 15591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15592esac 15593fi 15594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15597 CFLAGS="$xorg_testset_save_CFLAGS" 15598fi 15599 15600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 fi 15604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15607if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15608then : 15609 printf %s "(cached) " >&6 15610else case e in #( 15611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612/* end confdefs.h. */ 15613int i; 15614_ACEOF 15615if ac_fn_c_try_compile "$LINENO" 15616then : 15617 xorg_cv_cc_flag_unused_command_line_argument=yes 15618else case e in #( 15619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15620esac 15621fi 15622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15623esac 15624fi 15625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629fi 15630 15631found="no" 15632 15633 if test $found = "no" ; then 15634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15636 fi 15637 15638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15640 fi 15641 15642 CFLAGS="$CFLAGS -Wuninitialized" 15643 15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15645printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15646 cacheid=xorg_cv_cc_flag__Wuninitialized 15647 if eval test \${$cacheid+y} 15648then : 15649 printf %s "(cached) " >&6 15650else case e in #( 15651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654int 15655main (void) 15656{ 15657 15658 ; 15659 return 0; 15660} 15661_ACEOF 15662if ac_fn_c_try_link "$LINENO" 15663then : 15664 eval $cacheid=yes 15665else case e in #( 15666 e) eval $cacheid=no ;; 15667esac 15668fi 15669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15670 conftest$ac_exeext conftest.$ac_ext ;; 15671esac 15672fi 15673 15674 15675 CFLAGS="$xorg_testset_save_CFLAGS" 15676 15677 eval supported=\$$cacheid 15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15679printf "%s\n" "$supported" >&6; } 15680 if test "$supported" = "yes" ; then 15681 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15682 found="yes" 15683 fi 15684 fi 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700xorg_testset_save_CFLAGS="$CFLAGS" 15701 15702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15706if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15707then : 15708 printf %s "(cached) " >&6 15709else case e in #( 15710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15711/* end confdefs.h. */ 15712int i; 15713_ACEOF 15714if ac_fn_c_try_compile "$LINENO" 15715then : 15716 xorg_cv_cc_flag_unknown_warning_option=yes 15717else case e in #( 15718 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15719esac 15720fi 15721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15722esac 15723fi 15724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728fi 15729 15730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15733 fi 15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15738then : 15739 printf %s "(cached) " >&6 15740else case e in #( 15741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15742/* end confdefs.h. */ 15743int i; 15744_ACEOF 15745if ac_fn_c_try_compile "$LINENO" 15746then : 15747 xorg_cv_cc_flag_unused_command_line_argument=yes 15748else case e in #( 15749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15750esac 15751fi 15752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15753esac 15754fi 15755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15758 CFLAGS="$xorg_testset_save_CFLAGS" 15759fi 15760 15761found="no" 15762 15763 if test $found = "no" ; then 15764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15766 fi 15767 15768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15770 fi 15771 15772 CFLAGS="$CFLAGS -Wshadow" 15773 15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15775printf %s "checking if $CC supports -Wshadow... " >&6; } 15776 cacheid=xorg_cv_cc_flag__Wshadow 15777 if eval test \${$cacheid+y} 15778then : 15779 printf %s "(cached) " >&6 15780else case e in #( 15781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783int i; 15784int 15785main (void) 15786{ 15787 15788 ; 15789 return 0; 15790} 15791_ACEOF 15792if ac_fn_c_try_link "$LINENO" 15793then : 15794 eval $cacheid=yes 15795else case e in #( 15796 e) eval $cacheid=no ;; 15797esac 15798fi 15799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15800 conftest$ac_exeext conftest.$ac_ext ;; 15801esac 15802fi 15803 15804 15805 CFLAGS="$xorg_testset_save_CFLAGS" 15806 15807 eval supported=\$$cacheid 15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15809printf "%s\n" "$supported" >&6; } 15810 if test "$supported" = "yes" ; then 15811 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15812 found="yes" 15813 fi 15814 fi 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830xorg_testset_save_CFLAGS="$CFLAGS" 15831 15832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15837then : 15838 printf %s "(cached) " >&6 15839else case e in #( 15840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15841/* end confdefs.h. */ 15842int i; 15843_ACEOF 15844if ac_fn_c_try_compile "$LINENO" 15845then : 15846 xorg_cv_cc_flag_unknown_warning_option=yes 15847else case e in #( 15848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15849esac 15850fi 15851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15852esac 15853fi 15854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15857 CFLAGS="$xorg_testset_save_CFLAGS" 15858fi 15859 15860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15863 fi 15864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15867if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15868then : 15869 printf %s "(cached) " >&6 15870else case e in #( 15871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15872/* end confdefs.h. */ 15873int i; 15874_ACEOF 15875if ac_fn_c_try_compile "$LINENO" 15876then : 15877 xorg_cv_cc_flag_unused_command_line_argument=yes 15878else case e in #( 15879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15880esac 15881fi 15882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15883esac 15884fi 15885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15888 CFLAGS="$xorg_testset_save_CFLAGS" 15889fi 15890 15891found="no" 15892 15893 if test $found = "no" ; then 15894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15896 fi 15897 15898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15900 fi 15901 15902 CFLAGS="$CFLAGS -Wmissing-noreturn" 15903 15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15905printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15906 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15907 if eval test \${$cacheid+y} 15908then : 15909 printf %s "(cached) " >&6 15910else case e in #( 15911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913int i; 15914int 15915main (void) 15916{ 15917 15918 ; 15919 return 0; 15920} 15921_ACEOF 15922if ac_fn_c_try_link "$LINENO" 15923then : 15924 eval $cacheid=yes 15925else case e in #( 15926 e) eval $cacheid=no ;; 15927esac 15928fi 15929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15930 conftest$ac_exeext conftest.$ac_ext ;; 15931esac 15932fi 15933 15934 15935 CFLAGS="$xorg_testset_save_CFLAGS" 15936 15937 eval supported=\$$cacheid 15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15939printf "%s\n" "$supported" >&6; } 15940 if test "$supported" = "yes" ; then 15941 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15942 found="yes" 15943 fi 15944 fi 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960xorg_testset_save_CFLAGS="$CFLAGS" 15961 15962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15967then : 15968 printf %s "(cached) " >&6 15969else case e in #( 15970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971/* end confdefs.h. */ 15972int i; 15973_ACEOF 15974if ac_fn_c_try_compile "$LINENO" 15975then : 15976 xorg_cv_cc_flag_unknown_warning_option=yes 15977else case e in #( 15978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15979esac 15980fi 15981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15982esac 15983fi 15984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15987 CFLAGS="$xorg_testset_save_CFLAGS" 15988fi 15989 15990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15993 fi 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15998then : 15999 printf %s "(cached) " >&6 16000else case e in #( 16001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002/* end confdefs.h. */ 16003int i; 16004_ACEOF 16005if ac_fn_c_try_compile "$LINENO" 16006then : 16007 xorg_cv_cc_flag_unused_command_line_argument=yes 16008else case e in #( 16009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16010esac 16011fi 16012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16013esac 16014fi 16015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019fi 16020 16021found="no" 16022 16023 if test $found = "no" ; then 16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16026 fi 16027 16028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16030 fi 16031 16032 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16033 16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16035printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16036 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16037 if eval test \${$cacheid+y} 16038then : 16039 printf %s "(cached) " >&6 16040else case e in #( 16041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043int i; 16044int 16045main (void) 16046{ 16047 16048 ; 16049 return 0; 16050} 16051_ACEOF 16052if ac_fn_c_try_link "$LINENO" 16053then : 16054 eval $cacheid=yes 16055else case e in #( 16056 e) eval $cacheid=no ;; 16057esac 16058fi 16059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16060 conftest$ac_exeext conftest.$ac_ext ;; 16061esac 16062fi 16063 16064 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066 16067 eval supported=\$$cacheid 16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16069printf "%s\n" "$supported" >&6; } 16070 if test "$supported" = "yes" ; then 16071 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16072 found="yes" 16073 fi 16074 fi 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090xorg_testset_save_CFLAGS="$CFLAGS" 16091 16092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16097then : 16098 printf %s "(cached) " >&6 16099else case e in #( 16100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102int i; 16103_ACEOF 16104if ac_fn_c_try_compile "$LINENO" 16105then : 16106 xorg_cv_cc_flag_unknown_warning_option=yes 16107else case e in #( 16108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16109esac 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16112esac 16113fi 16114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16117 CFLAGS="$xorg_testset_save_CFLAGS" 16118fi 16119 16120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16123 fi 16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16128then : 16129 printf %s "(cached) " >&6 16130else case e in #( 16131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16132/* end confdefs.h. */ 16133int i; 16134_ACEOF 16135if ac_fn_c_try_compile "$LINENO" 16136then : 16137 xorg_cv_cc_flag_unused_command_line_argument=yes 16138else case e in #( 16139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16140esac 16141fi 16142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16143esac 16144fi 16145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16148 CFLAGS="$xorg_testset_save_CFLAGS" 16149fi 16150 16151found="no" 16152 16153 if test $found = "no" ; then 16154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16156 fi 16157 16158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16160 fi 16161 16162 CFLAGS="$CFLAGS -Wredundant-decls" 16163 16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16165printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16166 cacheid=xorg_cv_cc_flag__Wredundant_decls 16167 if eval test \${$cacheid+y} 16168then : 16169 printf %s "(cached) " >&6 16170else case e in #( 16171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172/* end confdefs.h. */ 16173int i; 16174int 16175main (void) 16176{ 16177 16178 ; 16179 return 0; 16180} 16181_ACEOF 16182if ac_fn_c_try_link "$LINENO" 16183then : 16184 eval $cacheid=yes 16185else case e in #( 16186 e) eval $cacheid=no ;; 16187esac 16188fi 16189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16190 conftest$ac_exeext conftest.$ac_ext ;; 16191esac 16192fi 16193 16194 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196 16197 eval supported=\$$cacheid 16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16199printf "%s\n" "$supported" >&6; } 16200 if test "$supported" = "yes" ; then 16201 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16202 found="yes" 16203 fi 16204 fi 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220xorg_testset_save_CFLAGS="$CFLAGS" 16221 16222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16227then : 16228 printf %s "(cached) " >&6 16229else case e in #( 16230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16231/* end confdefs.h. */ 16232int i; 16233_ACEOF 16234if ac_fn_c_try_compile "$LINENO" 16235then : 16236 xorg_cv_cc_flag_unknown_warning_option=yes 16237else case e in #( 16238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16239esac 16240fi 16241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16242esac 16243fi 16244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16247 CFLAGS="$xorg_testset_save_CFLAGS" 16248fi 16249 16250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16253 fi 16254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16258then : 16259 printf %s "(cached) " >&6 16260else case e in #( 16261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263int i; 16264_ACEOF 16265if ac_fn_c_try_compile "$LINENO" 16266then : 16267 xorg_cv_cc_flag_unused_command_line_argument=yes 16268else case e in #( 16269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16270esac 16271fi 16272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16273esac 16274fi 16275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16278 CFLAGS="$xorg_testset_save_CFLAGS" 16279fi 16280 16281found="no" 16282 16283 if test $found = "no" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 16288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16290 fi 16291 16292 CFLAGS="$CFLAGS -Wlogical-op" 16293 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16295printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16296 cacheid=xorg_cv_cc_flag__Wlogical_op 16297 if eval test \${$cacheid+y} 16298then : 16299 printf %s "(cached) " >&6 16300else case e in #( 16301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16302/* end confdefs.h. */ 16303int i; 16304int 16305main (void) 16306{ 16307 16308 ; 16309 return 0; 16310} 16311_ACEOF 16312if ac_fn_c_try_link "$LINENO" 16313then : 16314 eval $cacheid=yes 16315else case e in #( 16316 e) eval $cacheid=no ;; 16317esac 16318fi 16319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16320 conftest$ac_exeext conftest.$ac_ext ;; 16321esac 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 -Wlogical-op" 16332 found="yes" 16333 fi 16334 fi 16335 16336 16337 16338# These are currently disabled because they are noisy. They will be enabled 16339# in the future once the codebase is sufficiently modernized to silence 16340# them. For now, I don't want them to drown out the other warnings. 16341# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16342# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16343# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16344 16345# Turn some warnings into errors, so we don't accidentally get successful builds 16346# when there are problems that should be fixed. 16347 16348if test "x$SELECTIVE_WERROR" = "xyes" ; then 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362xorg_testset_save_CFLAGS="$CFLAGS" 16363 16364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16368if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16369then : 16370 printf %s "(cached) " >&6 16371else case e in #( 16372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374int i; 16375_ACEOF 16376if ac_fn_c_try_compile "$LINENO" 16377then : 16378 xorg_cv_cc_flag_unknown_warning_option=yes 16379else case e in #( 16380 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16381esac 16382fi 16383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16384esac 16385fi 16386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16387printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16389 CFLAGS="$xorg_testset_save_CFLAGS" 16390fi 16391 16392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16395 fi 16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16398printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16399if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16400then : 16401 printf %s "(cached) " >&6 16402else case e in #( 16403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404/* end confdefs.h. */ 16405int i; 16406_ACEOF 16407if ac_fn_c_try_compile "$LINENO" 16408then : 16409 xorg_cv_cc_flag_unused_command_line_argument=yes 16410else case e in #( 16411 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16412esac 16413fi 16414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16415esac 16416fi 16417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16420 CFLAGS="$xorg_testset_save_CFLAGS" 16421fi 16422 16423found="no" 16424 16425 if test $found = "no" ; then 16426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16428 fi 16429 16430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16432 fi 16433 16434 CFLAGS="$CFLAGS -Werror=implicit" 16435 16436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16437printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16438 cacheid=xorg_cv_cc_flag__Werror_implicit 16439 if eval test \${$cacheid+y} 16440then : 16441 printf %s "(cached) " >&6 16442else case e in #( 16443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16444/* end confdefs.h. */ 16445int i; 16446int 16447main (void) 16448{ 16449 16450 ; 16451 return 0; 16452} 16453_ACEOF 16454if ac_fn_c_try_link "$LINENO" 16455then : 16456 eval $cacheid=yes 16457else case e in #( 16458 e) eval $cacheid=no ;; 16459esac 16460fi 16461rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16462 conftest$ac_exeext conftest.$ac_ext ;; 16463esac 16464fi 16465 16466 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468 16469 eval supported=\$$cacheid 16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16471printf "%s\n" "$supported" >&6; } 16472 if test "$supported" = "yes" ; then 16473 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16474 found="yes" 16475 fi 16476 fi 16477 16478 if test $found = "no" ; then 16479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16481 fi 16482 16483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16485 fi 16486 16487 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16488 16489 { 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 16490printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16491 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16492 if eval test \${$cacheid+y} 16493then : 16494 printf %s "(cached) " >&6 16495else case e in #( 16496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498int i; 16499int 16500main (void) 16501{ 16502 16503 ; 16504 return 0; 16505} 16506_ACEOF 16507if ac_fn_c_try_link "$LINENO" 16508then : 16509 eval $cacheid=yes 16510else case e in #( 16511 e) eval $cacheid=no ;; 16512esac 16513fi 16514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16515 conftest$ac_exeext conftest.$ac_ext ;; 16516esac 16517fi 16518 16519 16520 CFLAGS="$xorg_testset_save_CFLAGS" 16521 16522 eval supported=\$$cacheid 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16524printf "%s\n" "$supported" >&6; } 16525 if test "$supported" = "yes" ; then 16526 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16527 found="yes" 16528 fi 16529 fi 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545xorg_testset_save_CFLAGS="$CFLAGS" 16546 16547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16552then : 16553 printf %s "(cached) " >&6 16554else case e in #( 16555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16556/* end confdefs.h. */ 16557int i; 16558_ACEOF 16559if ac_fn_c_try_compile "$LINENO" 16560then : 16561 xorg_cv_cc_flag_unknown_warning_option=yes 16562else case e in #( 16563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16564esac 16565fi 16566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16567esac 16568fi 16569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573fi 16574 16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16578 fi 16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16583then : 16584 printf %s "(cached) " >&6 16585else case e in #( 16586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587/* end confdefs.h. */ 16588int i; 16589_ACEOF 16590if ac_fn_c_try_compile "$LINENO" 16591then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593else case e in #( 16594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16595esac 16596fi 16597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16598esac 16599fi 16600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16603 CFLAGS="$xorg_testset_save_CFLAGS" 16604fi 16605 16606found="no" 16607 16608 if test $found = "no" ; then 16609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16611 fi 16612 16613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16615 fi 16616 16617 CFLAGS="$CFLAGS -Werror=nonnull" 16618 16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16620printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16621 cacheid=xorg_cv_cc_flag__Werror_nonnull 16622 if eval test \${$cacheid+y} 16623then : 16624 printf %s "(cached) " >&6 16625else case e in #( 16626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628int i; 16629int 16630main (void) 16631{ 16632 16633 ; 16634 return 0; 16635} 16636_ACEOF 16637if ac_fn_c_try_link "$LINENO" 16638then : 16639 eval $cacheid=yes 16640else case e in #( 16641 e) eval $cacheid=no ;; 16642esac 16643fi 16644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16645 conftest$ac_exeext conftest.$ac_ext ;; 16646esac 16647fi 16648 16649 16650 CFLAGS="$xorg_testset_save_CFLAGS" 16651 16652 eval supported=\$$cacheid 16653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16654printf "%s\n" "$supported" >&6; } 16655 if test "$supported" = "yes" ; then 16656 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16657 found="yes" 16658 fi 16659 fi 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675xorg_testset_save_CFLAGS="$CFLAGS" 16676 16677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16681if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16682then : 16683 printf %s "(cached) " >&6 16684else case e in #( 16685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687int i; 16688_ACEOF 16689if ac_fn_c_try_compile "$LINENO" 16690then : 16691 xorg_cv_cc_flag_unknown_warning_option=yes 16692else case e in #( 16693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16694esac 16695fi 16696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16697esac 16698fi 16699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16702 CFLAGS="$xorg_testset_save_CFLAGS" 16703fi 16704 16705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16708 fi 16709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16713then : 16714 printf %s "(cached) " >&6 16715else case e in #( 16716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16717/* end confdefs.h. */ 16718int i; 16719_ACEOF 16720if ac_fn_c_try_compile "$LINENO" 16721then : 16722 xorg_cv_cc_flag_unused_command_line_argument=yes 16723else case e in #( 16724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16725esac 16726fi 16727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16728esac 16729fi 16730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16733 CFLAGS="$xorg_testset_save_CFLAGS" 16734fi 16735 16736found="no" 16737 16738 if test $found = "no" ; then 16739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16741 fi 16742 16743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16745 fi 16746 16747 CFLAGS="$CFLAGS -Werror=init-self" 16748 16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16750printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16751 cacheid=xorg_cv_cc_flag__Werror_init_self 16752 if eval test \${$cacheid+y} 16753then : 16754 printf %s "(cached) " >&6 16755else case e in #( 16756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757/* end confdefs.h. */ 16758int i; 16759int 16760main (void) 16761{ 16762 16763 ; 16764 return 0; 16765} 16766_ACEOF 16767if ac_fn_c_try_link "$LINENO" 16768then : 16769 eval $cacheid=yes 16770else case e in #( 16771 e) eval $cacheid=no ;; 16772esac 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16775 conftest$ac_exeext conftest.$ac_ext ;; 16776esac 16777fi 16778 16779 16780 CFLAGS="$xorg_testset_save_CFLAGS" 16781 16782 eval supported=\$$cacheid 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16784printf "%s\n" "$supported" >&6; } 16785 if test "$supported" = "yes" ; then 16786 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16787 found="yes" 16788 fi 16789 fi 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805xorg_testset_save_CFLAGS="$CFLAGS" 16806 16807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16812then : 16813 printf %s "(cached) " >&6 16814else case e in #( 16815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818_ACEOF 16819if ac_fn_c_try_compile "$LINENO" 16820then : 16821 xorg_cv_cc_flag_unknown_warning_option=yes 16822else case e in #( 16823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16824esac 16825fi 16826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16827esac 16828fi 16829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16832 CFLAGS="$xorg_testset_save_CFLAGS" 16833fi 16834 16835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16838 fi 16839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16843then : 16844 printf %s "(cached) " >&6 16845else case e in #( 16846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16847/* end confdefs.h. */ 16848int i; 16849_ACEOF 16850if ac_fn_c_try_compile "$LINENO" 16851then : 16852 xorg_cv_cc_flag_unused_command_line_argument=yes 16853else case e in #( 16854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16855esac 16856fi 16857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16858esac 16859fi 16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16863 CFLAGS="$xorg_testset_save_CFLAGS" 16864fi 16865 16866found="no" 16867 16868 if test $found = "no" ; then 16869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 fi 16872 16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16875 fi 16876 16877 CFLAGS="$CFLAGS -Werror=main" 16878 16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16880printf %s "checking if $CC supports -Werror=main... " >&6; } 16881 cacheid=xorg_cv_cc_flag__Werror_main 16882 if eval test \${$cacheid+y} 16883then : 16884 printf %s "(cached) " >&6 16885else case e in #( 16886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887/* end confdefs.h. */ 16888int i; 16889int 16890main (void) 16891{ 16892 16893 ; 16894 return 0; 16895} 16896_ACEOF 16897if ac_fn_c_try_link "$LINENO" 16898then : 16899 eval $cacheid=yes 16900else case e in #( 16901 e) eval $cacheid=no ;; 16902esac 16903fi 16904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16905 conftest$ac_exeext conftest.$ac_ext ;; 16906esac 16907fi 16908 16909 16910 CFLAGS="$xorg_testset_save_CFLAGS" 16911 16912 eval supported=\$$cacheid 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16914printf "%s\n" "$supported" >&6; } 16915 if test "$supported" = "yes" ; then 16916 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16917 found="yes" 16918 fi 16919 fi 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935xorg_testset_save_CFLAGS="$CFLAGS" 16936 16937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16942then : 16943 printf %s "(cached) " >&6 16944else case e in #( 16945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16946/* end confdefs.h. */ 16947int i; 16948_ACEOF 16949if ac_fn_c_try_compile "$LINENO" 16950then : 16951 xorg_cv_cc_flag_unknown_warning_option=yes 16952else case e in #( 16953 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16954esac 16955fi 16956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16957esac 16958fi 16959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963fi 16964 16965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 fi 16969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16972if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16973then : 16974 printf %s "(cached) " >&6 16975else case e in #( 16976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978int i; 16979_ACEOF 16980if ac_fn_c_try_compile "$LINENO" 16981then : 16982 xorg_cv_cc_flag_unused_command_line_argument=yes 16983else case e in #( 16984 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16985esac 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16988esac 16989fi 16990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994fi 16995 16996found="no" 16997 16998 if test $found = "no" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17005 fi 17006 17007 CFLAGS="$CFLAGS -Werror=missing-braces" 17008 17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17010printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17011 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17012 if eval test \${$cacheid+y} 17013then : 17014 printf %s "(cached) " >&6 17015else case e in #( 17016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017/* end confdefs.h. */ 17018int i; 17019int 17020main (void) 17021{ 17022 17023 ; 17024 return 0; 17025} 17026_ACEOF 17027if ac_fn_c_try_link "$LINENO" 17028then : 17029 eval $cacheid=yes 17030else case e in #( 17031 e) eval $cacheid=no ;; 17032esac 17033fi 17034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17035 conftest$ac_exeext conftest.$ac_ext ;; 17036esac 17037fi 17038 17039 17040 CFLAGS="$xorg_testset_save_CFLAGS" 17041 17042 eval supported=\$$cacheid 17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17044printf "%s\n" "$supported" >&6; } 17045 if test "$supported" = "yes" ; then 17046 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17047 found="yes" 17048 fi 17049 fi 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065xorg_testset_save_CFLAGS="$CFLAGS" 17066 17067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17072then : 17073 printf %s "(cached) " >&6 17074else case e in #( 17075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17076/* end confdefs.h. */ 17077int i; 17078_ACEOF 17079if ac_fn_c_try_compile "$LINENO" 17080then : 17081 xorg_cv_cc_flag_unknown_warning_option=yes 17082else case e in #( 17083 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17084esac 17085fi 17086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17087esac 17088fi 17089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17092 CFLAGS="$xorg_testset_save_CFLAGS" 17093fi 17094 17095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17098 fi 17099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17103then : 17104 printf %s "(cached) " >&6 17105else case e in #( 17106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107/* end confdefs.h. */ 17108int i; 17109_ACEOF 17110if ac_fn_c_try_compile "$LINENO" 17111then : 17112 xorg_cv_cc_flag_unused_command_line_argument=yes 17113else case e in #( 17114 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17115esac 17116fi 17117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17118esac 17119fi 17120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17123 CFLAGS="$xorg_testset_save_CFLAGS" 17124fi 17125 17126found="no" 17127 17128 if test $found = "no" ; then 17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17131 fi 17132 17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17135 fi 17136 17137 CFLAGS="$CFLAGS -Werror=sequence-point" 17138 17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17140printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17141 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17142 if eval test \${$cacheid+y} 17143then : 17144 printf %s "(cached) " >&6 17145else case e in #( 17146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17147/* end confdefs.h. */ 17148int i; 17149int 17150main (void) 17151{ 17152 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157if ac_fn_c_try_link "$LINENO" 17158then : 17159 eval $cacheid=yes 17160else case e in #( 17161 e) eval $cacheid=no ;; 17162esac 17163fi 17164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17165 conftest$ac_exeext conftest.$ac_ext ;; 17166esac 17167fi 17168 17169 17170 CFLAGS="$xorg_testset_save_CFLAGS" 17171 17172 eval supported=\$$cacheid 17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17174printf "%s\n" "$supported" >&6; } 17175 if test "$supported" = "yes" ; then 17176 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17177 found="yes" 17178 fi 17179 fi 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195xorg_testset_save_CFLAGS="$CFLAGS" 17196 17197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17202then : 17203 printf %s "(cached) " >&6 17204else case e in #( 17205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17206/* end confdefs.h. */ 17207int i; 17208_ACEOF 17209if ac_fn_c_try_compile "$LINENO" 17210then : 17211 xorg_cv_cc_flag_unknown_warning_option=yes 17212else case e in #( 17213 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17214esac 17215fi 17216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17217esac 17218fi 17219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17222 CFLAGS="$xorg_testset_save_CFLAGS" 17223fi 17224 17225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17228 fi 17229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17233then : 17234 printf %s "(cached) " >&6 17235else case e in #( 17236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238int i; 17239_ACEOF 17240if ac_fn_c_try_compile "$LINENO" 17241then : 17242 xorg_cv_cc_flag_unused_command_line_argument=yes 17243else case e in #( 17244 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17245esac 17246fi 17247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17248esac 17249fi 17250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17253 CFLAGS="$xorg_testset_save_CFLAGS" 17254fi 17255 17256found="no" 17257 17258 if test $found = "no" ; then 17259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17261 fi 17262 17263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17265 fi 17266 17267 CFLAGS="$CFLAGS -Werror=return-type" 17268 17269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17270printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17271 cacheid=xorg_cv_cc_flag__Werror_return_type 17272 if eval test \${$cacheid+y} 17273then : 17274 printf %s "(cached) " >&6 17275else case e in #( 17276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17277/* end confdefs.h. */ 17278int i; 17279int 17280main (void) 17281{ 17282 17283 ; 17284 return 0; 17285} 17286_ACEOF 17287if ac_fn_c_try_link "$LINENO" 17288then : 17289 eval $cacheid=yes 17290else case e in #( 17291 e) eval $cacheid=no ;; 17292esac 17293fi 17294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17295 conftest$ac_exeext conftest.$ac_ext ;; 17296esac 17297fi 17298 17299 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301 17302 eval supported=\$$cacheid 17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17304printf "%s\n" "$supported" >&6; } 17305 if test "$supported" = "yes" ; then 17306 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17307 found="yes" 17308 fi 17309 fi 17310 17311 if test $found = "no" ; then 17312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17314 fi 17315 17316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17318 fi 17319 17320 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17321 17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17323printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17324 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17325 if eval test \${$cacheid+y} 17326then : 17327 printf %s "(cached) " >&6 17328else case e in #( 17329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17330/* end confdefs.h. */ 17331int i; 17332int 17333main (void) 17334{ 17335 17336 ; 17337 return 0; 17338} 17339_ACEOF 17340if ac_fn_c_try_link "$LINENO" 17341then : 17342 eval $cacheid=yes 17343else case e in #( 17344 e) eval $cacheid=no ;; 17345esac 17346fi 17347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17348 conftest$ac_exeext conftest.$ac_ext ;; 17349esac 17350fi 17351 17352 17353 CFLAGS="$xorg_testset_save_CFLAGS" 17354 17355 eval supported=\$$cacheid 17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17357printf "%s\n" "$supported" >&6; } 17358 if test "$supported" = "yes" ; then 17359 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17360 found="yes" 17361 fi 17362 fi 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378xorg_testset_save_CFLAGS="$CFLAGS" 17379 17380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17385then : 17386 printf %s "(cached) " >&6 17387else case e in #( 17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17389/* end confdefs.h. */ 17390int i; 17391_ACEOF 17392if ac_fn_c_try_compile "$LINENO" 17393then : 17394 xorg_cv_cc_flag_unknown_warning_option=yes 17395else case e in #( 17396 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17397esac 17398fi 17399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17400esac 17401fi 17402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17403printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17405 CFLAGS="$xorg_testset_save_CFLAGS" 17406fi 17407 17408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17411 fi 17412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17414printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17415if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17416then : 17417 printf %s "(cached) " >&6 17418else case e in #( 17419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421int i; 17422_ACEOF 17423if ac_fn_c_try_compile "$LINENO" 17424then : 17425 xorg_cv_cc_flag_unused_command_line_argument=yes 17426else case e in #( 17427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17428esac 17429fi 17430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17431esac 17432fi 17433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17436 CFLAGS="$xorg_testset_save_CFLAGS" 17437fi 17438 17439found="no" 17440 17441 if test $found = "no" ; then 17442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17444 fi 17445 17446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17448 fi 17449 17450 CFLAGS="$CFLAGS -Werror=trigraphs" 17451 17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17453printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17454 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17455 if eval test \${$cacheid+y} 17456then : 17457 printf %s "(cached) " >&6 17458else case e in #( 17459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17460/* end confdefs.h. */ 17461int i; 17462int 17463main (void) 17464{ 17465 17466 ; 17467 return 0; 17468} 17469_ACEOF 17470if ac_fn_c_try_link "$LINENO" 17471then : 17472 eval $cacheid=yes 17473else case e in #( 17474 e) eval $cacheid=no ;; 17475esac 17476fi 17477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17478 conftest$ac_exeext conftest.$ac_ext ;; 17479esac 17480fi 17481 17482 17483 CFLAGS="$xorg_testset_save_CFLAGS" 17484 17485 eval supported=\$$cacheid 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17487printf "%s\n" "$supported" >&6; } 17488 if test "$supported" = "yes" ; then 17489 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17490 found="yes" 17491 fi 17492 fi 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508xorg_testset_save_CFLAGS="$CFLAGS" 17509 17510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17514if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17515then : 17516 printf %s "(cached) " >&6 17517else case e in #( 17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17519/* end confdefs.h. */ 17520int i; 17521_ACEOF 17522if ac_fn_c_try_compile "$LINENO" 17523then : 17524 xorg_cv_cc_flag_unknown_warning_option=yes 17525else case e in #( 17526 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17527esac 17528fi 17529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17530esac 17531fi 17532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17535 CFLAGS="$xorg_testset_save_CFLAGS" 17536fi 17537 17538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17541 fi 17542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17545if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17546then : 17547 printf %s "(cached) " >&6 17548else case e in #( 17549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17550/* end confdefs.h. */ 17551int i; 17552_ACEOF 17553if ac_fn_c_try_compile "$LINENO" 17554then : 17555 xorg_cv_cc_flag_unused_command_line_argument=yes 17556else case e in #( 17557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17558esac 17559fi 17560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17561esac 17562fi 17563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17566 CFLAGS="$xorg_testset_save_CFLAGS" 17567fi 17568 17569found="no" 17570 17571 if test $found = "no" ; then 17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17574 fi 17575 17576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17578 fi 17579 17580 CFLAGS="$CFLAGS -Werror=array-bounds" 17581 17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17583printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17584 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17585 if eval test \${$cacheid+y} 17586then : 17587 printf %s "(cached) " >&6 17588else case e in #( 17589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17590/* end confdefs.h. */ 17591int i; 17592int 17593main (void) 17594{ 17595 17596 ; 17597 return 0; 17598} 17599_ACEOF 17600if ac_fn_c_try_link "$LINENO" 17601then : 17602 eval $cacheid=yes 17603else case e in #( 17604 e) eval $cacheid=no ;; 17605esac 17606fi 17607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17608 conftest$ac_exeext conftest.$ac_ext ;; 17609esac 17610fi 17611 17612 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 17615 eval supported=\$$cacheid 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17617printf "%s\n" "$supported" >&6; } 17618 if test "$supported" = "yes" ; then 17619 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17620 found="yes" 17621 fi 17622 fi 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638xorg_testset_save_CFLAGS="$CFLAGS" 17639 17640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17644if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17645then : 17646 printf %s "(cached) " >&6 17647else case e in #( 17648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17649/* end confdefs.h. */ 17650int i; 17651_ACEOF 17652if ac_fn_c_try_compile "$LINENO" 17653then : 17654 xorg_cv_cc_flag_unknown_warning_option=yes 17655else case e in #( 17656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17657esac 17658fi 17659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17660esac 17661fi 17662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17665 CFLAGS="$xorg_testset_save_CFLAGS" 17666fi 17667 17668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17671 fi 17672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17675if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17676then : 17677 printf %s "(cached) " >&6 17678else case e in #( 17679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17680/* end confdefs.h. */ 17681int i; 17682_ACEOF 17683if ac_fn_c_try_compile "$LINENO" 17684then : 17685 xorg_cv_cc_flag_unused_command_line_argument=yes 17686else case e in #( 17687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17688esac 17689fi 17690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17691esac 17692fi 17693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17696 CFLAGS="$xorg_testset_save_CFLAGS" 17697fi 17698 17699found="no" 17700 17701 if test $found = "no" ; then 17702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17704 fi 17705 17706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17708 fi 17709 17710 CFLAGS="$CFLAGS -Werror=write-strings" 17711 17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17713printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17714 cacheid=xorg_cv_cc_flag__Werror_write_strings 17715 if eval test \${$cacheid+y} 17716then : 17717 printf %s "(cached) " >&6 17718else case e in #( 17719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17720/* end confdefs.h. */ 17721int i; 17722int 17723main (void) 17724{ 17725 17726 ; 17727 return 0; 17728} 17729_ACEOF 17730if ac_fn_c_try_link "$LINENO" 17731then : 17732 eval $cacheid=yes 17733else case e in #( 17734 e) eval $cacheid=no ;; 17735esac 17736fi 17737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17738 conftest$ac_exeext conftest.$ac_ext ;; 17739esac 17740fi 17741 17742 17743 CFLAGS="$xorg_testset_save_CFLAGS" 17744 17745 eval supported=\$$cacheid 17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17747printf "%s\n" "$supported" >&6; } 17748 if test "$supported" = "yes" ; then 17749 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17750 found="yes" 17751 fi 17752 fi 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768xorg_testset_save_CFLAGS="$CFLAGS" 17769 17770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17774if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17775then : 17776 printf %s "(cached) " >&6 17777else case e in #( 17778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780int i; 17781_ACEOF 17782if ac_fn_c_try_compile "$LINENO" 17783then : 17784 xorg_cv_cc_flag_unknown_warning_option=yes 17785else case e in #( 17786 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17787esac 17788fi 17789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17790esac 17791fi 17792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17795 CFLAGS="$xorg_testset_save_CFLAGS" 17796fi 17797 17798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17801 fi 17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17805if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17806then : 17807 printf %s "(cached) " >&6 17808else case e in #( 17809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17810/* end confdefs.h. */ 17811int i; 17812_ACEOF 17813if ac_fn_c_try_compile "$LINENO" 17814then : 17815 xorg_cv_cc_flag_unused_command_line_argument=yes 17816else case e in #( 17817 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17818esac 17819fi 17820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17821esac 17822fi 17823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17826 CFLAGS="$xorg_testset_save_CFLAGS" 17827fi 17828 17829found="no" 17830 17831 if test $found = "no" ; then 17832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17834 fi 17835 17836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17838 fi 17839 17840 CFLAGS="$CFLAGS -Werror=address" 17841 17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17843printf %s "checking if $CC supports -Werror=address... " >&6; } 17844 cacheid=xorg_cv_cc_flag__Werror_address 17845 if eval test \${$cacheid+y} 17846then : 17847 printf %s "(cached) " >&6 17848else case e in #( 17849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17850/* end confdefs.h. */ 17851int i; 17852int 17853main (void) 17854{ 17855 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860if ac_fn_c_try_link "$LINENO" 17861then : 17862 eval $cacheid=yes 17863else case e in #( 17864 e) eval $cacheid=no ;; 17865esac 17866fi 17867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17868 conftest$ac_exeext conftest.$ac_ext ;; 17869esac 17870fi 17871 17872 17873 CFLAGS="$xorg_testset_save_CFLAGS" 17874 17875 eval supported=\$$cacheid 17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17877printf "%s\n" "$supported" >&6; } 17878 if test "$supported" = "yes" ; then 17879 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17880 found="yes" 17881 fi 17882 fi 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898xorg_testset_save_CFLAGS="$CFLAGS" 17899 17900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17905then : 17906 printf %s "(cached) " >&6 17907else case e in #( 17908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17909/* end confdefs.h. */ 17910int i; 17911_ACEOF 17912if ac_fn_c_try_compile "$LINENO" 17913then : 17914 xorg_cv_cc_flag_unknown_warning_option=yes 17915else case e in #( 17916 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17917esac 17918fi 17919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17920esac 17921fi 17922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17923printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17925 CFLAGS="$xorg_testset_save_CFLAGS" 17926fi 17927 17928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17931 fi 17932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17934printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17935if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17936then : 17937 printf %s "(cached) " >&6 17938else case e in #( 17939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17940/* end confdefs.h. */ 17941int i; 17942_ACEOF 17943if ac_fn_c_try_compile "$LINENO" 17944then : 17945 xorg_cv_cc_flag_unused_command_line_argument=yes 17946else case e in #( 17947 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17948esac 17949fi 17950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17951esac 17952fi 17953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17956 CFLAGS="$xorg_testset_save_CFLAGS" 17957fi 17958 17959found="no" 17960 17961 if test $found = "no" ; then 17962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 fi 17965 17966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17968 fi 17969 17970 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17971 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17973printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17974 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17975 if eval test \${$cacheid+y} 17976then : 17977 printf %s "(cached) " >&6 17978else case e in #( 17979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17980/* end confdefs.h. */ 17981int i; 17982int 17983main (void) 17984{ 17985 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990if ac_fn_c_try_link "$LINENO" 17991then : 17992 eval $cacheid=yes 17993else case e in #( 17994 e) eval $cacheid=no ;; 17995esac 17996fi 17997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17998 conftest$ac_exeext conftest.$ac_ext ;; 17999esac 18000fi 18001 18002 18003 CFLAGS="$xorg_testset_save_CFLAGS" 18004 18005 eval supported=\$$cacheid 18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18007printf "%s\n" "$supported" >&6; } 18008 if test "$supported" = "yes" ; then 18009 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18010 found="yes" 18011 fi 18012 fi 18013 18014 if test $found = "no" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 18019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18021 fi 18022 18023 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18024 18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18026printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18027 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18028 if eval test \${$cacheid+y} 18029then : 18030 printf %s "(cached) " >&6 18031else case e in #( 18032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18033/* end confdefs.h. */ 18034int i; 18035int 18036main (void) 18037{ 18038 18039 ; 18040 return 0; 18041} 18042_ACEOF 18043if ac_fn_c_try_link "$LINENO" 18044then : 18045 eval $cacheid=yes 18046else case e in #( 18047 e) eval $cacheid=no ;; 18048esac 18049fi 18050rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18051 conftest$ac_exeext conftest.$ac_ext ;; 18052esac 18053fi 18054 18055 18056 CFLAGS="$xorg_testset_save_CFLAGS" 18057 18058 eval supported=\$$cacheid 18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18060printf "%s\n" "$supported" >&6; } 18061 if test "$supported" = "yes" ; then 18062 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18063 found="yes" 18064 fi 18065 fi 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081xorg_testset_save_CFLAGS="$CFLAGS" 18082 18083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18087if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18088then : 18089 printf %s "(cached) " >&6 18090else case e in #( 18091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18092/* end confdefs.h. */ 18093int i; 18094_ACEOF 18095if ac_fn_c_try_compile "$LINENO" 18096then : 18097 xorg_cv_cc_flag_unknown_warning_option=yes 18098else case e in #( 18099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18100esac 18101fi 18102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18103esac 18104fi 18105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18108 CFLAGS="$xorg_testset_save_CFLAGS" 18109fi 18110 18111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18114 fi 18115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18118if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18119then : 18120 printf %s "(cached) " >&6 18121else case e in #( 18122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18123/* end confdefs.h. */ 18124int i; 18125_ACEOF 18126if ac_fn_c_try_compile "$LINENO" 18127then : 18128 xorg_cv_cc_flag_unused_command_line_argument=yes 18129else case e in #( 18130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18131esac 18132fi 18133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18134esac 18135fi 18136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18139 CFLAGS="$xorg_testset_save_CFLAGS" 18140fi 18141 18142found="no" 18143 18144 if test $found = "no" ; then 18145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18147 fi 18148 18149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18151 fi 18152 18153 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18154 18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18156printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18157 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18158 if eval test \${$cacheid+y} 18159then : 18160 printf %s "(cached) " >&6 18161else case e in #( 18162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18163/* end confdefs.h. */ 18164int i; 18165int 18166main (void) 18167{ 18168 18169 ; 18170 return 0; 18171} 18172_ACEOF 18173if ac_fn_c_try_link "$LINENO" 18174then : 18175 eval $cacheid=yes 18176else case e in #( 18177 e) eval $cacheid=no ;; 18178esac 18179fi 18180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18181 conftest$ac_exeext conftest.$ac_ext ;; 18182esac 18183fi 18184 18185 18186 CFLAGS="$xorg_testset_save_CFLAGS" 18187 18188 eval supported=\$$cacheid 18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18190printf "%s\n" "$supported" >&6; } 18191 if test "$supported" = "yes" ; then 18192 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18193 found="yes" 18194 fi 18195 fi 18196 18197 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18198else 18199{ 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 18200printf "%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;} 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214xorg_testset_save_CFLAGS="$CFLAGS" 18215 18216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18221then : 18222 printf %s "(cached) " >&6 18223else case e in #( 18224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18225/* end confdefs.h. */ 18226int i; 18227_ACEOF 18228if ac_fn_c_try_compile "$LINENO" 18229then : 18230 xorg_cv_cc_flag_unknown_warning_option=yes 18231else case e in #( 18232 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18233esac 18234fi 18235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18236esac 18237fi 18238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18241 CFLAGS="$xorg_testset_save_CFLAGS" 18242fi 18243 18244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18247 fi 18248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18251if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18252then : 18253 printf %s "(cached) " >&6 18254else case e in #( 18255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18256/* end confdefs.h. */ 18257int i; 18258_ACEOF 18259if ac_fn_c_try_compile "$LINENO" 18260then : 18261 xorg_cv_cc_flag_unused_command_line_argument=yes 18262else case e in #( 18263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18264esac 18265fi 18266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18267esac 18268fi 18269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18272 CFLAGS="$xorg_testset_save_CFLAGS" 18273fi 18274 18275found="no" 18276 18277 if test $found = "no" ; then 18278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18280 fi 18281 18282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18284 fi 18285 18286 CFLAGS="$CFLAGS -Wimplicit" 18287 18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18289printf %s "checking if $CC supports -Wimplicit... " >&6; } 18290 cacheid=xorg_cv_cc_flag__Wimplicit 18291 if eval test \${$cacheid+y} 18292then : 18293 printf %s "(cached) " >&6 18294else case e in #( 18295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18296/* end confdefs.h. */ 18297int i; 18298int 18299main (void) 18300{ 18301 18302 ; 18303 return 0; 18304} 18305_ACEOF 18306if ac_fn_c_try_link "$LINENO" 18307then : 18308 eval $cacheid=yes 18309else case e in #( 18310 e) eval $cacheid=no ;; 18311esac 18312fi 18313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18314 conftest$ac_exeext conftest.$ac_ext ;; 18315esac 18316fi 18317 18318 18319 CFLAGS="$xorg_testset_save_CFLAGS" 18320 18321 eval supported=\$$cacheid 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18323printf "%s\n" "$supported" >&6; } 18324 if test "$supported" = "yes" ; then 18325 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18326 found="yes" 18327 fi 18328 fi 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344xorg_testset_save_CFLAGS="$CFLAGS" 18345 18346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18351then : 18352 printf %s "(cached) " >&6 18353else case e in #( 18354 e) 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_unknown_warning_option=yes 18361else case e in #( 18362 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18363esac 18364fi 18365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18366esac 18367fi 18368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18371 CFLAGS="$xorg_testset_save_CFLAGS" 18372fi 18373 18374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18377 fi 18378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18381if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18382then : 18383 printf %s "(cached) " >&6 18384else case e in #( 18385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18386/* end confdefs.h. */ 18387int i; 18388_ACEOF 18389if ac_fn_c_try_compile "$LINENO" 18390then : 18391 xorg_cv_cc_flag_unused_command_line_argument=yes 18392else case e in #( 18393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18394esac 18395fi 18396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18397esac 18398fi 18399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18402 CFLAGS="$xorg_testset_save_CFLAGS" 18403fi 18404 18405found="no" 18406 18407 if test $found = "no" ; then 18408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18410 fi 18411 18412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18414 fi 18415 18416 CFLAGS="$CFLAGS -Wnonnull" 18417 18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18419printf %s "checking if $CC supports -Wnonnull... " >&6; } 18420 cacheid=xorg_cv_cc_flag__Wnonnull 18421 if eval test \${$cacheid+y} 18422then : 18423 printf %s "(cached) " >&6 18424else case e in #( 18425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18426/* end confdefs.h. */ 18427int i; 18428int 18429main (void) 18430{ 18431 18432 ; 18433 return 0; 18434} 18435_ACEOF 18436if ac_fn_c_try_link "$LINENO" 18437then : 18438 eval $cacheid=yes 18439else case e in #( 18440 e) eval $cacheid=no ;; 18441esac 18442fi 18443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18444 conftest$ac_exeext conftest.$ac_ext ;; 18445esac 18446fi 18447 18448 18449 CFLAGS="$xorg_testset_save_CFLAGS" 18450 18451 eval supported=\$$cacheid 18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18453printf "%s\n" "$supported" >&6; } 18454 if test "$supported" = "yes" ; then 18455 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18456 found="yes" 18457 fi 18458 fi 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474xorg_testset_save_CFLAGS="$CFLAGS" 18475 18476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18480if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18481then : 18482 printf %s "(cached) " >&6 18483else case e in #( 18484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18485/* end confdefs.h. */ 18486int i; 18487_ACEOF 18488if ac_fn_c_try_compile "$LINENO" 18489then : 18490 xorg_cv_cc_flag_unknown_warning_option=yes 18491else case e in #( 18492 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18493esac 18494fi 18495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18496esac 18497fi 18498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18501 CFLAGS="$xorg_testset_save_CFLAGS" 18502fi 18503 18504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18507 fi 18508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18511if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18512then : 18513 printf %s "(cached) " >&6 18514else case e in #( 18515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516/* end confdefs.h. */ 18517int i; 18518_ACEOF 18519if ac_fn_c_try_compile "$LINENO" 18520then : 18521 xorg_cv_cc_flag_unused_command_line_argument=yes 18522else case e in #( 18523 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18524esac 18525fi 18526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18527esac 18528fi 18529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18532 CFLAGS="$xorg_testset_save_CFLAGS" 18533fi 18534 18535found="no" 18536 18537 if test $found = "no" ; then 18538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18540 fi 18541 18542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18544 fi 18545 18546 CFLAGS="$CFLAGS -Winit-self" 18547 18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18549printf %s "checking if $CC supports -Winit-self... " >&6; } 18550 cacheid=xorg_cv_cc_flag__Winit_self 18551 if eval test \${$cacheid+y} 18552then : 18553 printf %s "(cached) " >&6 18554else case e in #( 18555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557int i; 18558int 18559main (void) 18560{ 18561 18562 ; 18563 return 0; 18564} 18565_ACEOF 18566if ac_fn_c_try_link "$LINENO" 18567then : 18568 eval $cacheid=yes 18569else case e in #( 18570 e) eval $cacheid=no ;; 18571esac 18572fi 18573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18574 conftest$ac_exeext conftest.$ac_ext ;; 18575esac 18576fi 18577 18578 18579 CFLAGS="$xorg_testset_save_CFLAGS" 18580 18581 eval supported=\$$cacheid 18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18583printf "%s\n" "$supported" >&6; } 18584 if test "$supported" = "yes" ; then 18585 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18586 found="yes" 18587 fi 18588 fi 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604xorg_testset_save_CFLAGS="$CFLAGS" 18605 18606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18610if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18611then : 18612 printf %s "(cached) " >&6 18613else case e in #( 18614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18615/* end confdefs.h. */ 18616int i; 18617_ACEOF 18618if ac_fn_c_try_compile "$LINENO" 18619then : 18620 xorg_cv_cc_flag_unknown_warning_option=yes 18621else case e in #( 18622 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18623esac 18624fi 18625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18626esac 18627fi 18628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18631 CFLAGS="$xorg_testset_save_CFLAGS" 18632fi 18633 18634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18637 fi 18638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18641if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18642then : 18643 printf %s "(cached) " >&6 18644else case e in #( 18645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646/* end confdefs.h. */ 18647int i; 18648_ACEOF 18649if ac_fn_c_try_compile "$LINENO" 18650then : 18651 xorg_cv_cc_flag_unused_command_line_argument=yes 18652else case e in #( 18653 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18654esac 18655fi 18656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18657esac 18658fi 18659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18662 CFLAGS="$xorg_testset_save_CFLAGS" 18663fi 18664 18665found="no" 18666 18667 if test $found = "no" ; then 18668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18670 fi 18671 18672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18674 fi 18675 18676 CFLAGS="$CFLAGS -Wmain" 18677 18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18679printf %s "checking if $CC supports -Wmain... " >&6; } 18680 cacheid=xorg_cv_cc_flag__Wmain 18681 if eval test \${$cacheid+y} 18682then : 18683 printf %s "(cached) " >&6 18684else case e in #( 18685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686/* end confdefs.h. */ 18687int i; 18688int 18689main (void) 18690{ 18691 18692 ; 18693 return 0; 18694} 18695_ACEOF 18696if ac_fn_c_try_link "$LINENO" 18697then : 18698 eval $cacheid=yes 18699else case e in #( 18700 e) eval $cacheid=no ;; 18701esac 18702fi 18703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18704 conftest$ac_exeext conftest.$ac_ext ;; 18705esac 18706fi 18707 18708 18709 CFLAGS="$xorg_testset_save_CFLAGS" 18710 18711 eval supported=\$$cacheid 18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18713printf "%s\n" "$supported" >&6; } 18714 if test "$supported" = "yes" ; then 18715 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18716 found="yes" 18717 fi 18718 fi 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734xorg_testset_save_CFLAGS="$CFLAGS" 18735 18736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18740if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18741then : 18742 printf %s "(cached) " >&6 18743else case e in #( 18744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18745/* end confdefs.h. */ 18746int i; 18747_ACEOF 18748if ac_fn_c_try_compile "$LINENO" 18749then : 18750 xorg_cv_cc_flag_unknown_warning_option=yes 18751else case e in #( 18752 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18753esac 18754fi 18755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18756esac 18757fi 18758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18761 CFLAGS="$xorg_testset_save_CFLAGS" 18762fi 18763 18764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18767 fi 18768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18771if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18772then : 18773 printf %s "(cached) " >&6 18774else case e in #( 18775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18776/* end confdefs.h. */ 18777int i; 18778_ACEOF 18779if ac_fn_c_try_compile "$LINENO" 18780then : 18781 xorg_cv_cc_flag_unused_command_line_argument=yes 18782else case e in #( 18783 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18784esac 18785fi 18786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18787esac 18788fi 18789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18792 CFLAGS="$xorg_testset_save_CFLAGS" 18793fi 18794 18795found="no" 18796 18797 if test $found = "no" ; then 18798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18800 fi 18801 18802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18804 fi 18805 18806 CFLAGS="$CFLAGS -Wmissing-braces" 18807 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18809printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18810 cacheid=xorg_cv_cc_flag__Wmissing_braces 18811 if eval test \${$cacheid+y} 18812then : 18813 printf %s "(cached) " >&6 18814else case e in #( 18815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816/* end confdefs.h. */ 18817int i; 18818int 18819main (void) 18820{ 18821 18822 ; 18823 return 0; 18824} 18825_ACEOF 18826if ac_fn_c_try_link "$LINENO" 18827then : 18828 eval $cacheid=yes 18829else case e in #( 18830 e) eval $cacheid=no ;; 18831esac 18832fi 18833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18834 conftest$ac_exeext conftest.$ac_ext ;; 18835esac 18836fi 18837 18838 18839 CFLAGS="$xorg_testset_save_CFLAGS" 18840 18841 eval supported=\$$cacheid 18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18843printf "%s\n" "$supported" >&6; } 18844 if test "$supported" = "yes" ; then 18845 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18846 found="yes" 18847 fi 18848 fi 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864xorg_testset_save_CFLAGS="$CFLAGS" 18865 18866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18870if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18871then : 18872 printf %s "(cached) " >&6 18873else case e in #( 18874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18875/* end confdefs.h. */ 18876int i; 18877_ACEOF 18878if ac_fn_c_try_compile "$LINENO" 18879then : 18880 xorg_cv_cc_flag_unknown_warning_option=yes 18881else case e in #( 18882 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18883esac 18884fi 18885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18886esac 18887fi 18888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18891 CFLAGS="$xorg_testset_save_CFLAGS" 18892fi 18893 18894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18897 fi 18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18902then : 18903 printf %s "(cached) " >&6 18904else case e in #( 18905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18906/* end confdefs.h. */ 18907int i; 18908_ACEOF 18909if ac_fn_c_try_compile "$LINENO" 18910then : 18911 xorg_cv_cc_flag_unused_command_line_argument=yes 18912else case e in #( 18913 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18914esac 18915fi 18916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18917esac 18918fi 18919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18920printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18922 CFLAGS="$xorg_testset_save_CFLAGS" 18923fi 18924 18925found="no" 18926 18927 if test $found = "no" ; then 18928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18930 fi 18931 18932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18934 fi 18935 18936 CFLAGS="$CFLAGS -Wsequence-point" 18937 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18939printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18940 cacheid=xorg_cv_cc_flag__Wsequence_point 18941 if eval test \${$cacheid+y} 18942then : 18943 printf %s "(cached) " >&6 18944else case e in #( 18945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18946/* end confdefs.h. */ 18947int i; 18948int 18949main (void) 18950{ 18951 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956if ac_fn_c_try_link "$LINENO" 18957then : 18958 eval $cacheid=yes 18959else case e in #( 18960 e) eval $cacheid=no ;; 18961esac 18962fi 18963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18964 conftest$ac_exeext conftest.$ac_ext ;; 18965esac 18966fi 18967 18968 18969 CFLAGS="$xorg_testset_save_CFLAGS" 18970 18971 eval supported=\$$cacheid 18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18973printf "%s\n" "$supported" >&6; } 18974 if test "$supported" = "yes" ; then 18975 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18976 found="yes" 18977 fi 18978 fi 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994xorg_testset_save_CFLAGS="$CFLAGS" 18995 18996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19000if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19001then : 19002 printf %s "(cached) " >&6 19003else case e in #( 19004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19005/* end confdefs.h. */ 19006int i; 19007_ACEOF 19008if ac_fn_c_try_compile "$LINENO" 19009then : 19010 xorg_cv_cc_flag_unknown_warning_option=yes 19011else case e in #( 19012 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19013esac 19014fi 19015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19016esac 19017fi 19018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19021 CFLAGS="$xorg_testset_save_CFLAGS" 19022fi 19023 19024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19027 fi 19028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19031if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19032then : 19033 printf %s "(cached) " >&6 19034else case e in #( 19035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19036/* end confdefs.h. */ 19037int i; 19038_ACEOF 19039if ac_fn_c_try_compile "$LINENO" 19040then : 19041 xorg_cv_cc_flag_unused_command_line_argument=yes 19042else case e in #( 19043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19044esac 19045fi 19046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19047esac 19048fi 19049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19052 CFLAGS="$xorg_testset_save_CFLAGS" 19053fi 19054 19055found="no" 19056 19057 if test $found = "no" ; then 19058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19060 fi 19061 19062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19064 fi 19065 19066 CFLAGS="$CFLAGS -Wreturn-type" 19067 19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19069printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19070 cacheid=xorg_cv_cc_flag__Wreturn_type 19071 if eval test \${$cacheid+y} 19072then : 19073 printf %s "(cached) " >&6 19074else case e in #( 19075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19076/* end confdefs.h. */ 19077int i; 19078int 19079main (void) 19080{ 19081 19082 ; 19083 return 0; 19084} 19085_ACEOF 19086if ac_fn_c_try_link "$LINENO" 19087then : 19088 eval $cacheid=yes 19089else case e in #( 19090 e) eval $cacheid=no ;; 19091esac 19092fi 19093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19094 conftest$ac_exeext conftest.$ac_ext ;; 19095esac 19096fi 19097 19098 19099 CFLAGS="$xorg_testset_save_CFLAGS" 19100 19101 eval supported=\$$cacheid 19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19103printf "%s\n" "$supported" >&6; } 19104 if test "$supported" = "yes" ; then 19105 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19106 found="yes" 19107 fi 19108 fi 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124xorg_testset_save_CFLAGS="$CFLAGS" 19125 19126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19131then : 19132 printf %s "(cached) " >&6 19133else case e in #( 19134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19135/* end confdefs.h. */ 19136int i; 19137_ACEOF 19138if ac_fn_c_try_compile "$LINENO" 19139then : 19140 xorg_cv_cc_flag_unknown_warning_option=yes 19141else case e in #( 19142 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19143esac 19144fi 19145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19146esac 19147fi 19148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19149printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19151 CFLAGS="$xorg_testset_save_CFLAGS" 19152fi 19153 19154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19157 fi 19158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19160printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19161if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19162then : 19163 printf %s "(cached) " >&6 19164else case e in #( 19165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19166/* end confdefs.h. */ 19167int i; 19168_ACEOF 19169if ac_fn_c_try_compile "$LINENO" 19170then : 19171 xorg_cv_cc_flag_unused_command_line_argument=yes 19172else case e in #( 19173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19174esac 19175fi 19176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19177esac 19178fi 19179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19182 CFLAGS="$xorg_testset_save_CFLAGS" 19183fi 19184 19185found="no" 19186 19187 if test $found = "no" ; then 19188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19190 fi 19191 19192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19194 fi 19195 19196 CFLAGS="$CFLAGS -Wtrigraphs" 19197 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19199printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19200 cacheid=xorg_cv_cc_flag__Wtrigraphs 19201 if eval test \${$cacheid+y} 19202then : 19203 printf %s "(cached) " >&6 19204else case e in #( 19205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19206/* end confdefs.h. */ 19207int i; 19208int 19209main (void) 19210{ 19211 19212 ; 19213 return 0; 19214} 19215_ACEOF 19216if ac_fn_c_try_link "$LINENO" 19217then : 19218 eval $cacheid=yes 19219else case e in #( 19220 e) eval $cacheid=no ;; 19221esac 19222fi 19223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19224 conftest$ac_exeext conftest.$ac_ext ;; 19225esac 19226fi 19227 19228 19229 CFLAGS="$xorg_testset_save_CFLAGS" 19230 19231 eval supported=\$$cacheid 19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19233printf "%s\n" "$supported" >&6; } 19234 if test "$supported" = "yes" ; then 19235 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19236 found="yes" 19237 fi 19238 fi 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254xorg_testset_save_CFLAGS="$CFLAGS" 19255 19256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19261then : 19262 printf %s "(cached) " >&6 19263else case e in #( 19264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19265/* end confdefs.h. */ 19266int i; 19267_ACEOF 19268if ac_fn_c_try_compile "$LINENO" 19269then : 19270 xorg_cv_cc_flag_unknown_warning_option=yes 19271else case e in #( 19272 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19273esac 19274fi 19275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19276esac 19277fi 19278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19281 CFLAGS="$xorg_testset_save_CFLAGS" 19282fi 19283 19284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19287 fi 19288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19292then : 19293 printf %s "(cached) " >&6 19294else case e in #( 19295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19296/* end confdefs.h. */ 19297int i; 19298_ACEOF 19299if ac_fn_c_try_compile "$LINENO" 19300then : 19301 xorg_cv_cc_flag_unused_command_line_argument=yes 19302else case e in #( 19303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19304esac 19305fi 19306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19307esac 19308fi 19309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19312 CFLAGS="$xorg_testset_save_CFLAGS" 19313fi 19314 19315found="no" 19316 19317 if test $found = "no" ; then 19318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19320 fi 19321 19322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19324 fi 19325 19326 CFLAGS="$CFLAGS -Warray-bounds" 19327 19328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19329printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19330 cacheid=xorg_cv_cc_flag__Warray_bounds 19331 if eval test \${$cacheid+y} 19332then : 19333 printf %s "(cached) " >&6 19334else case e in #( 19335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19336/* end confdefs.h. */ 19337int i; 19338int 19339main (void) 19340{ 19341 19342 ; 19343 return 0; 19344} 19345_ACEOF 19346if ac_fn_c_try_link "$LINENO" 19347then : 19348 eval $cacheid=yes 19349else case e in #( 19350 e) eval $cacheid=no ;; 19351esac 19352fi 19353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19354 conftest$ac_exeext conftest.$ac_ext ;; 19355esac 19356fi 19357 19358 19359 CFLAGS="$xorg_testset_save_CFLAGS" 19360 19361 eval supported=\$$cacheid 19362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19363printf "%s\n" "$supported" >&6; } 19364 if test "$supported" = "yes" ; then 19365 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19366 found="yes" 19367 fi 19368 fi 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384xorg_testset_save_CFLAGS="$CFLAGS" 19385 19386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19390if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19391then : 19392 printf %s "(cached) " >&6 19393else case e in #( 19394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395/* end confdefs.h. */ 19396int i; 19397_ACEOF 19398if ac_fn_c_try_compile "$LINENO" 19399then : 19400 xorg_cv_cc_flag_unknown_warning_option=yes 19401else case e in #( 19402 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19403esac 19404fi 19405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19406esac 19407fi 19408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19409printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19411 CFLAGS="$xorg_testset_save_CFLAGS" 19412fi 19413 19414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19417 fi 19418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19420printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19421if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19422then : 19423 printf %s "(cached) " >&6 19424else case e in #( 19425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19426/* end confdefs.h. */ 19427int i; 19428_ACEOF 19429if ac_fn_c_try_compile "$LINENO" 19430then : 19431 xorg_cv_cc_flag_unused_command_line_argument=yes 19432else case e in #( 19433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19434esac 19435fi 19436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19437esac 19438fi 19439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19440printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19442 CFLAGS="$xorg_testset_save_CFLAGS" 19443fi 19444 19445found="no" 19446 19447 if test $found = "no" ; then 19448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19450 fi 19451 19452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19454 fi 19455 19456 CFLAGS="$CFLAGS -Wwrite-strings" 19457 19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19459printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19460 cacheid=xorg_cv_cc_flag__Wwrite_strings 19461 if eval test \${$cacheid+y} 19462then : 19463 printf %s "(cached) " >&6 19464else case e in #( 19465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19466/* end confdefs.h. */ 19467int i; 19468int 19469main (void) 19470{ 19471 19472 ; 19473 return 0; 19474} 19475_ACEOF 19476if ac_fn_c_try_link "$LINENO" 19477then : 19478 eval $cacheid=yes 19479else case e in #( 19480 e) eval $cacheid=no ;; 19481esac 19482fi 19483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19484 conftest$ac_exeext conftest.$ac_ext ;; 19485esac 19486fi 19487 19488 19489 CFLAGS="$xorg_testset_save_CFLAGS" 19490 19491 eval supported=\$$cacheid 19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19493printf "%s\n" "$supported" >&6; } 19494 if test "$supported" = "yes" ; then 19495 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19496 found="yes" 19497 fi 19498 fi 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514xorg_testset_save_CFLAGS="$CFLAGS" 19515 19516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19520if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19521then : 19522 printf %s "(cached) " >&6 19523else case e in #( 19524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19525/* end confdefs.h. */ 19526int i; 19527_ACEOF 19528if ac_fn_c_try_compile "$LINENO" 19529then : 19530 xorg_cv_cc_flag_unknown_warning_option=yes 19531else case e in #( 19532 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19533esac 19534fi 19535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19536esac 19537fi 19538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19541 CFLAGS="$xorg_testset_save_CFLAGS" 19542fi 19543 19544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19547 fi 19548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19551if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19552then : 19553 printf %s "(cached) " >&6 19554else case e in #( 19555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19556/* end confdefs.h. */ 19557int i; 19558_ACEOF 19559if ac_fn_c_try_compile "$LINENO" 19560then : 19561 xorg_cv_cc_flag_unused_command_line_argument=yes 19562else case e in #( 19563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19564esac 19565fi 19566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19567esac 19568fi 19569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19572 CFLAGS="$xorg_testset_save_CFLAGS" 19573fi 19574 19575found="no" 19576 19577 if test $found = "no" ; then 19578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19580 fi 19581 19582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19584 fi 19585 19586 CFLAGS="$CFLAGS -Waddress" 19587 19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19589printf %s "checking if $CC supports -Waddress... " >&6; } 19590 cacheid=xorg_cv_cc_flag__Waddress 19591 if eval test \${$cacheid+y} 19592then : 19593 printf %s "(cached) " >&6 19594else case e in #( 19595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19596/* end confdefs.h. */ 19597int i; 19598int 19599main (void) 19600{ 19601 19602 ; 19603 return 0; 19604} 19605_ACEOF 19606if ac_fn_c_try_link "$LINENO" 19607then : 19608 eval $cacheid=yes 19609else case e in #( 19610 e) eval $cacheid=no ;; 19611esac 19612fi 19613rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19614 conftest$ac_exeext conftest.$ac_ext ;; 19615esac 19616fi 19617 19618 19619 CFLAGS="$xorg_testset_save_CFLAGS" 19620 19621 eval supported=\$$cacheid 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19623printf "%s\n" "$supported" >&6; } 19624 if test "$supported" = "yes" ; then 19625 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19626 found="yes" 19627 fi 19628 fi 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644xorg_testset_save_CFLAGS="$CFLAGS" 19645 19646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19650if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19651then : 19652 printf %s "(cached) " >&6 19653else case e in #( 19654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19655/* end confdefs.h. */ 19656int i; 19657_ACEOF 19658if ac_fn_c_try_compile "$LINENO" 19659then : 19660 xorg_cv_cc_flag_unknown_warning_option=yes 19661else case e in #( 19662 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19663esac 19664fi 19665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19666esac 19667fi 19668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19671 CFLAGS="$xorg_testset_save_CFLAGS" 19672fi 19673 19674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19677 fi 19678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19681if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19682then : 19683 printf %s "(cached) " >&6 19684else case e in #( 19685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19686/* end confdefs.h. */ 19687int i; 19688_ACEOF 19689if ac_fn_c_try_compile "$LINENO" 19690then : 19691 xorg_cv_cc_flag_unused_command_line_argument=yes 19692else case e in #( 19693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19694esac 19695fi 19696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19697esac 19698fi 19699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19702 CFLAGS="$xorg_testset_save_CFLAGS" 19703fi 19704 19705found="no" 19706 19707 if test $found = "no" ; then 19708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19710 fi 19711 19712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19714 fi 19715 19716 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19717 19718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19719printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19720 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19721 if eval test \${$cacheid+y} 19722then : 19723 printf %s "(cached) " >&6 19724else case e in #( 19725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19726/* end confdefs.h. */ 19727int i; 19728int 19729main (void) 19730{ 19731 19732 ; 19733 return 0; 19734} 19735_ACEOF 19736if ac_fn_c_try_link "$LINENO" 19737then : 19738 eval $cacheid=yes 19739else case e in #( 19740 e) eval $cacheid=no ;; 19741esac 19742fi 19743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19744 conftest$ac_exeext conftest.$ac_ext ;; 19745esac 19746fi 19747 19748 19749 CFLAGS="$xorg_testset_save_CFLAGS" 19750 19751 eval supported=\$$cacheid 19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19753printf "%s\n" "$supported" >&6; } 19754 if test "$supported" = "yes" ; then 19755 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19756 found="yes" 19757 fi 19758 fi 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774xorg_testset_save_CFLAGS="$CFLAGS" 19775 19776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19780if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19781then : 19782 printf %s "(cached) " >&6 19783else case e in #( 19784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19785/* end confdefs.h. */ 19786int i; 19787_ACEOF 19788if ac_fn_c_try_compile "$LINENO" 19789then : 19790 xorg_cv_cc_flag_unknown_warning_option=yes 19791else case e in #( 19792 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19793esac 19794fi 19795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19796esac 19797fi 19798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19801 CFLAGS="$xorg_testset_save_CFLAGS" 19802fi 19803 19804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19807 fi 19808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19811if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19812then : 19813 printf %s "(cached) " >&6 19814else case e in #( 19815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19816/* end confdefs.h. */ 19817int i; 19818_ACEOF 19819if ac_fn_c_try_compile "$LINENO" 19820then : 19821 xorg_cv_cc_flag_unused_command_line_argument=yes 19822else case e in #( 19823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19824esac 19825fi 19826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19827esac 19828fi 19829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19830printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19832 CFLAGS="$xorg_testset_save_CFLAGS" 19833fi 19834 19835found="no" 19836 19837 if test $found = "no" ; then 19838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19840 fi 19841 19842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19844 fi 19845 19846 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19847 19848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19849printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19850 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19851 if eval test \${$cacheid+y} 19852then : 19853 printf %s "(cached) " >&6 19854else case e in #( 19855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19856/* end confdefs.h. */ 19857int i; 19858int 19859main (void) 19860{ 19861 19862 ; 19863 return 0; 19864} 19865_ACEOF 19866if ac_fn_c_try_link "$LINENO" 19867then : 19868 eval $cacheid=yes 19869else case e in #( 19870 e) eval $cacheid=no ;; 19871esac 19872fi 19873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19874 conftest$ac_exeext conftest.$ac_ext ;; 19875esac 19876fi 19877 19878 19879 CFLAGS="$xorg_testset_save_CFLAGS" 19880 19881 eval supported=\$$cacheid 19882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19883printf "%s\n" "$supported" >&6; } 19884 if test "$supported" = "yes" ; then 19885 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19886 found="yes" 19887 fi 19888 fi 19889 19890 19891fi 19892 19893 19894 19895 19896 19897 19898 19899 CWARNFLAGS="$BASE_CFLAGS" 19900 if test "x$GCC" = xyes ; then 19901 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19902 fi 19903 19904 19905 19906 19907 19908 19909 19910 19911# Check whether --enable-strict-compilation was given. 19912if test ${enable_strict_compilation+y} 19913then : 19914 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19915else case e in #( 19916 e) STRICT_COMPILE=no ;; 19917esac 19918fi 19919 19920 19921 19922 19923 19924 19925STRICT_CFLAGS="" 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939xorg_testset_save_CFLAGS="$CFLAGS" 19940 19941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19946then : 19947 printf %s "(cached) " >&6 19948else case e in #( 19949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19950/* end confdefs.h. */ 19951int i; 19952_ACEOF 19953if ac_fn_c_try_compile "$LINENO" 19954then : 19955 xorg_cv_cc_flag_unknown_warning_option=yes 19956else case e in #( 19957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19958esac 19959fi 19960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19961esac 19962fi 19963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19966 CFLAGS="$xorg_testset_save_CFLAGS" 19967fi 19968 19969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19972 fi 19973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19977then : 19978 printf %s "(cached) " >&6 19979else case e in #( 19980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19981/* end confdefs.h. */ 19982int i; 19983_ACEOF 19984if ac_fn_c_try_compile "$LINENO" 19985then : 19986 xorg_cv_cc_flag_unused_command_line_argument=yes 19987else case e in #( 19988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19989esac 19990fi 19991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19992esac 19993fi 19994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19997 CFLAGS="$xorg_testset_save_CFLAGS" 19998fi 19999 20000found="no" 20001 20002 if test $found = "no" ; then 20003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20005 fi 20006 20007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20009 fi 20010 20011 CFLAGS="$CFLAGS -pedantic" 20012 20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20014printf %s "checking if $CC supports -pedantic... " >&6; } 20015 cacheid=xorg_cv_cc_flag__pedantic 20016 if eval test \${$cacheid+y} 20017then : 20018 printf %s "(cached) " >&6 20019else case e in #( 20020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021/* end confdefs.h. */ 20022int i; 20023int 20024main (void) 20025{ 20026 20027 ; 20028 return 0; 20029} 20030_ACEOF 20031if ac_fn_c_try_link "$LINENO" 20032then : 20033 eval $cacheid=yes 20034else case e in #( 20035 e) eval $cacheid=no ;; 20036esac 20037fi 20038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20039 conftest$ac_exeext conftest.$ac_ext ;; 20040esac 20041fi 20042 20043 20044 CFLAGS="$xorg_testset_save_CFLAGS" 20045 20046 eval supported=\$$cacheid 20047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20048printf "%s\n" "$supported" >&6; } 20049 if test "$supported" = "yes" ; then 20050 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20051 found="yes" 20052 fi 20053 fi 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069xorg_testset_save_CFLAGS="$CFLAGS" 20070 20071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20076then : 20077 printf %s "(cached) " >&6 20078else case e in #( 20079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20080/* end confdefs.h. */ 20081int i; 20082_ACEOF 20083if ac_fn_c_try_compile "$LINENO" 20084then : 20085 xorg_cv_cc_flag_unknown_warning_option=yes 20086else case e in #( 20087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20088esac 20089fi 20090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20091esac 20092fi 20093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20096 CFLAGS="$xorg_testset_save_CFLAGS" 20097fi 20098 20099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20102 fi 20103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20107then : 20108 printf %s "(cached) " >&6 20109else case e in #( 20110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20111/* end confdefs.h. */ 20112int i; 20113_ACEOF 20114if ac_fn_c_try_compile "$LINENO" 20115then : 20116 xorg_cv_cc_flag_unused_command_line_argument=yes 20117else case e in #( 20118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20119esac 20120fi 20121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20122esac 20123fi 20124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20127 CFLAGS="$xorg_testset_save_CFLAGS" 20128fi 20129 20130found="no" 20131 20132 if test $found = "no" ; then 20133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20135 fi 20136 20137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20139 fi 20140 20141 CFLAGS="$CFLAGS -Werror" 20142 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20144printf %s "checking if $CC supports -Werror... " >&6; } 20145 cacheid=xorg_cv_cc_flag__Werror 20146 if eval test \${$cacheid+y} 20147then : 20148 printf %s "(cached) " >&6 20149else case e in #( 20150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20151/* end confdefs.h. */ 20152int i; 20153int 20154main (void) 20155{ 20156 20157 ; 20158 return 0; 20159} 20160_ACEOF 20161if ac_fn_c_try_link "$LINENO" 20162then : 20163 eval $cacheid=yes 20164else case e in #( 20165 e) eval $cacheid=no ;; 20166esac 20167fi 20168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20169 conftest$ac_exeext conftest.$ac_ext ;; 20170esac 20171fi 20172 20173 20174 CFLAGS="$xorg_testset_save_CFLAGS" 20175 20176 eval supported=\$$cacheid 20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20178printf "%s\n" "$supported" >&6; } 20179 if test "$supported" = "yes" ; then 20180 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20181 found="yes" 20182 fi 20183 fi 20184 20185 if test $found = "no" ; then 20186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20188 fi 20189 20190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20192 fi 20193 20194 CFLAGS="$CFLAGS -errwarn" 20195 20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20197printf %s "checking if $CC supports -errwarn... " >&6; } 20198 cacheid=xorg_cv_cc_flag__errwarn 20199 if eval test \${$cacheid+y} 20200then : 20201 printf %s "(cached) " >&6 20202else case e in #( 20203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20204/* end confdefs.h. */ 20205int i; 20206int 20207main (void) 20208{ 20209 20210 ; 20211 return 0; 20212} 20213_ACEOF 20214if ac_fn_c_try_link "$LINENO" 20215then : 20216 eval $cacheid=yes 20217else case e in #( 20218 e) eval $cacheid=no ;; 20219esac 20220fi 20221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20222 conftest$ac_exeext conftest.$ac_ext ;; 20223esac 20224fi 20225 20226 20227 CFLAGS="$xorg_testset_save_CFLAGS" 20228 20229 eval supported=\$$cacheid 20230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20231printf "%s\n" "$supported" >&6; } 20232 if test "$supported" = "yes" ; then 20233 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20234 found="yes" 20235 fi 20236 fi 20237 20238 20239 20240# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20241# activate it with -Werror, so we add it here explicitly. 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255xorg_testset_save_CFLAGS="$CFLAGS" 20256 20257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20261if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20262then : 20263 printf %s "(cached) " >&6 20264else case e in #( 20265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20266/* end confdefs.h. */ 20267int i; 20268_ACEOF 20269if ac_fn_c_try_compile "$LINENO" 20270then : 20271 xorg_cv_cc_flag_unknown_warning_option=yes 20272else case e in #( 20273 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20274esac 20275fi 20276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20277esac 20278fi 20279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20282 CFLAGS="$xorg_testset_save_CFLAGS" 20283fi 20284 20285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20288 fi 20289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20292if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20293then : 20294 printf %s "(cached) " >&6 20295else case e in #( 20296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20297/* end confdefs.h. */ 20298int i; 20299_ACEOF 20300if ac_fn_c_try_compile "$LINENO" 20301then : 20302 xorg_cv_cc_flag_unused_command_line_argument=yes 20303else case e in #( 20304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20305esac 20306fi 20307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20308esac 20309fi 20310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20313 CFLAGS="$xorg_testset_save_CFLAGS" 20314fi 20315 20316found="no" 20317 20318 if test $found = "no" ; then 20319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20321 fi 20322 20323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20325 fi 20326 20327 CFLAGS="$CFLAGS -Werror=attributes" 20328 20329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20330printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20331 cacheid=xorg_cv_cc_flag__Werror_attributes 20332 if eval test \${$cacheid+y} 20333then : 20334 printf %s "(cached) " >&6 20335else case e in #( 20336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20337/* end confdefs.h. */ 20338int i; 20339int 20340main (void) 20341{ 20342 20343 ; 20344 return 0; 20345} 20346_ACEOF 20347if ac_fn_c_try_link "$LINENO" 20348then : 20349 eval $cacheid=yes 20350else case e in #( 20351 e) eval $cacheid=no ;; 20352esac 20353fi 20354rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20355 conftest$ac_exeext conftest.$ac_ext ;; 20356esac 20357fi 20358 20359 20360 CFLAGS="$xorg_testset_save_CFLAGS" 20361 20362 eval supported=\$$cacheid 20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20364printf "%s\n" "$supported" >&6; } 20365 if test "$supported" = "yes" ; then 20366 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20367 found="yes" 20368 fi 20369 fi 20370 20371 20372 20373if test "x$STRICT_COMPILE" = "xyes"; then 20374 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20375 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20376fi 20377 20378 20379 20380 20381 20382 20383 20384 20385cat >>confdefs.h <<_ACEOF 20386#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20387_ACEOF 20388 20389 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20390 if test "x$PVM" = "x"; then 20391 PVM="0" 20392 fi 20393 20394printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20395 20396 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20397 if test "x$PVP" = "x"; then 20398 PVP="0" 20399 fi 20400 20401printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20402 20403 20404 20405CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20406mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20407|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20408touch \$(top_srcdir)/ChangeLog; \ 20409echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20410 20411 20412 20413 20414macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20415INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20416mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20417|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20418touch \$(top_srcdir)/INSTALL; \ 20419echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20420 20421 20422 20423 20424 20425 20426case $host_os in 20427 solaris*) 20428 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20429 # check for a man page file found in later versions that use 20430 # traditional section numbers instead 20431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20432printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20433if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20434then : 20435 printf %s "(cached) " >&6 20436else case e in #( 20437 e) test "$cross_compiling" = yes && 20438 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20439if test -r "/usr/share/man/man7/attributes.7"; then 20440 ac_cv_file__usr_share_man_man7_attributes_7=yes 20441else 20442 ac_cv_file__usr_share_man_man7_attributes_7=no 20443fi ;; 20444esac 20445fi 20446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20447printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20448if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20449then : 20450 SYSV_MAN_SECTIONS=false 20451else case e in #( 20452 e) SYSV_MAN_SECTIONS=true ;; 20453esac 20454fi 20455 20456 ;; 20457 *) SYSV_MAN_SECTIONS=false ;; 20458esac 20459 20460if test x$APP_MAN_SUFFIX = x ; then 20461 APP_MAN_SUFFIX=1 20462fi 20463if test x$APP_MAN_DIR = x ; then 20464 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20465fi 20466 20467if test x$LIB_MAN_SUFFIX = x ; then 20468 LIB_MAN_SUFFIX=3 20469fi 20470if test x$LIB_MAN_DIR = x ; then 20471 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20472fi 20473 20474if test x$FILE_MAN_SUFFIX = x ; then 20475 case $SYSV_MAN_SECTIONS in 20476 true) FILE_MAN_SUFFIX=4 ;; 20477 *) FILE_MAN_SUFFIX=5 ;; 20478 esac 20479fi 20480if test x$FILE_MAN_DIR = x ; then 20481 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20482fi 20483 20484if test x$MISC_MAN_SUFFIX = x ; then 20485 case $SYSV_MAN_SECTIONS in 20486 true) MISC_MAN_SUFFIX=5 ;; 20487 *) MISC_MAN_SUFFIX=7 ;; 20488 esac 20489fi 20490if test x$MISC_MAN_DIR = x ; then 20491 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20492fi 20493 20494if test x$DRIVER_MAN_SUFFIX = x ; then 20495 case $SYSV_MAN_SECTIONS in 20496 true) DRIVER_MAN_SUFFIX=7 ;; 20497 *) DRIVER_MAN_SUFFIX=4 ;; 20498 esac 20499fi 20500if test x$DRIVER_MAN_DIR = x ; then 20501 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20502fi 20503 20504if test x$ADMIN_MAN_SUFFIX = x ; then 20505 case $SYSV_MAN_SECTIONS in 20506 true) ADMIN_MAN_SUFFIX=1m ;; 20507 *) ADMIN_MAN_SUFFIX=8 ;; 20508 esac 20509fi 20510if test x$ADMIN_MAN_DIR = x ; then 20511 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20512fi 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528XORG_MAN_PAGE="X Version 11" 20529 20530MAN_SUBSTS="\ 20531 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20532 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20533 -e 's|__xservername__|Xorg|g' \ 20534 -e 's|__xconfigfile__|xorg.conf|g' \ 20535 -e 's|__projectroot__|\$(prefix)|g' \ 20536 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20537 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20538 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20539 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20540 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20541 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20542 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20543 20544 20545 20546 20547AM_DEFAULT_VERBOSITY=0 20548 20549 20550 20551 20552# Check whether --enable-specs was given. 20553if test ${enable_specs+y} 20554then : 20555 enableval=$enable_specs; build_specs=$enableval 20556else case e in #( 20557 e) build_specs=yes ;; 20558esac 20559fi 20560 20561 20562 if test x$build_specs = xyes; then 20563 ENABLE_SPECS_TRUE= 20564 ENABLE_SPECS_FALSE='#' 20565else 20566 ENABLE_SPECS_TRUE='#' 20567 ENABLE_SPECS_FALSE= 20568fi 20569 20570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20571printf %s "checking whether to build functional specifications... " >&6; } 20572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20573printf "%s\n" "$build_specs" >&6; } 20574 20575 20576 20577 20578 20579# Check whether --with-xmlto was given. 20580if test ${with_xmlto+y} 20581then : 20582 withval=$with_xmlto; use_xmlto=$withval 20583else case e in #( 20584 e) use_xmlto=auto ;; 20585esac 20586fi 20587 20588 20589 20590if test "x$use_xmlto" = x"auto"; then 20591 # Extract the first word of "xmlto", so it can be a program name with args. 20592set dummy xmlto; ac_word=$2 20593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20594printf %s "checking for $ac_word... " >&6; } 20595if test ${ac_cv_path_XMLTO+y} 20596then : 20597 printf %s "(cached) " >&6 20598else case e in #( 20599 e) case $XMLTO in 20600 [\\/]* | ?:[\\/]*) 20601 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20602 ;; 20603 *) 20604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20605for as_dir in $PATH 20606do 20607 IFS=$as_save_IFS 20608 case $as_dir in #((( 20609 '') as_dir=./ ;; 20610 */) ;; 20611 *) as_dir=$as_dir/ ;; 20612 esac 20613 for ac_exec_ext in '' $ac_executable_extensions; do 20614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20615 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20617 break 2 20618 fi 20619done 20620 done 20621IFS=$as_save_IFS 20622 20623 ;; 20624esac ;; 20625esac 20626fi 20627XMLTO=$ac_cv_path_XMLTO 20628if test -n "$XMLTO"; then 20629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20630printf "%s\n" "$XMLTO" >&6; } 20631else 20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20633printf "%s\n" "no" >&6; } 20634fi 20635 20636 20637 if test "x$XMLTO" = "x"; then 20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20639printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20640 have_xmlto=no 20641 else 20642 have_xmlto=yes 20643 fi 20644elif test "x$use_xmlto" = x"yes" ; then 20645 # Extract the first word of "xmlto", so it can be a program name with args. 20646set dummy xmlto; ac_word=$2 20647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20648printf %s "checking for $ac_word... " >&6; } 20649if test ${ac_cv_path_XMLTO+y} 20650then : 20651 printf %s "(cached) " >&6 20652else case e in #( 20653 e) case $XMLTO in 20654 [\\/]* | ?:[\\/]*) 20655 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20656 ;; 20657 *) 20658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20659for as_dir in $PATH 20660do 20661 IFS=$as_save_IFS 20662 case $as_dir in #((( 20663 '') as_dir=./ ;; 20664 */) ;; 20665 *) as_dir=$as_dir/ ;; 20666 esac 20667 for ac_exec_ext in '' $ac_executable_extensions; do 20668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20669 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20671 break 2 20672 fi 20673done 20674 done 20675IFS=$as_save_IFS 20676 20677 ;; 20678esac ;; 20679esac 20680fi 20681XMLTO=$ac_cv_path_XMLTO 20682if test -n "$XMLTO"; then 20683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20684printf "%s\n" "$XMLTO" >&6; } 20685else 20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20687printf "%s\n" "no" >&6; } 20688fi 20689 20690 20691 if test "x$XMLTO" = "x"; then 20692 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20693 fi 20694 have_xmlto=yes 20695elif test "x$use_xmlto" = x"no" ; then 20696 if test "x$XMLTO" != "x"; then 20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20698printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20699 fi 20700 have_xmlto=no 20701else 20702 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20703fi 20704 20705# Test for a minimum version of xmlto, if provided. 20706if test "$have_xmlto" = yes; then 20707 # scrape the xmlto version 20708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20709printf %s "checking the xmlto version... " >&6; } 20710 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20712printf "%s\n" "$xmlto_version" >&6; } 20713 as_arg_v1=$xmlto_version 20714as_arg_v2=0.0.22 20715awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20716case $? in #( 20717 1) : 20718 if test "x$use_xmlto" = xauto; then 20719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20720printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20721 have_xmlto=no 20722 else 20723 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20724 fi ;; #( 20725 0) : 20726 ;; #( 20727 2) : 20728 ;; #( 20729 *) : 20730 ;; 20731esac 20732fi 20733 20734# Test for the ability of xmlto to generate a text target 20735# 20736# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20737# following test for empty XML docbook files. 20738# For compatibility reasons use the following empty XML docbook file and if 20739# it fails try it again with a non-empty XML file. 20740have_xmlto_text=no 20741cat > conftest.xml << "EOF" 20742EOF 20743if test "$have_xmlto" = yes 20744then : 20745 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20746then : 20747 have_xmlto_text=yes 20748else case e in #( 20749 e) # Try it again with a non-empty XML file. 20750 cat > conftest.xml << "EOF" 20751<x></x> 20752EOF 20753 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20754then : 20755 have_xmlto_text=yes 20756else case e in #( 20757 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20758printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20759esac 20760fi ;; 20761esac 20762fi 20763fi 20764rm -f conftest.xml 20765 if test $have_xmlto_text = yes; then 20766 HAVE_XMLTO_TEXT_TRUE= 20767 HAVE_XMLTO_TEXT_FALSE='#' 20768else 20769 HAVE_XMLTO_TEXT_TRUE='#' 20770 HAVE_XMLTO_TEXT_FALSE= 20771fi 20772 20773 if test "$have_xmlto" = yes; then 20774 HAVE_XMLTO_TRUE= 20775 HAVE_XMLTO_FALSE='#' 20776else 20777 HAVE_XMLTO_TRUE='#' 20778 HAVE_XMLTO_FALSE= 20779fi 20780 20781 20782 20783 20784 20785 20786# Check whether --with-fop was given. 20787if test ${with_fop+y} 20788then : 20789 withval=$with_fop; use_fop=$withval 20790else case e in #( 20791 e) use_fop=no ;; 20792esac 20793fi 20794 20795 20796 20797if test "x$use_fop" = x"auto"; then 20798 # Extract the first word of "fop", so it can be a program name with args. 20799set dummy fop; ac_word=$2 20800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20801printf %s "checking for $ac_word... " >&6; } 20802if test ${ac_cv_path_FOP+y} 20803then : 20804 printf %s "(cached) " >&6 20805else case e in #( 20806 e) case $FOP in 20807 [\\/]* | ?:[\\/]*) 20808 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20809 ;; 20810 *) 20811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20812for as_dir in $PATH 20813do 20814 IFS=$as_save_IFS 20815 case $as_dir in #((( 20816 '') as_dir=./ ;; 20817 */) ;; 20818 *) as_dir=$as_dir/ ;; 20819 esac 20820 for ac_exec_ext in '' $ac_executable_extensions; do 20821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20822 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20824 break 2 20825 fi 20826done 20827 done 20828IFS=$as_save_IFS 20829 20830 ;; 20831esac ;; 20832esac 20833fi 20834FOP=$ac_cv_path_FOP 20835if test -n "$FOP"; then 20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20837printf "%s\n" "$FOP" >&6; } 20838else 20839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20840printf "%s\n" "no" >&6; } 20841fi 20842 20843 20844 if test "x$FOP" = "x"; then 20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20846printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20847 have_fop=no 20848 else 20849 have_fop=yes 20850 fi 20851elif test "x$use_fop" = x"yes" ; then 20852 # Extract the first word of "fop", so it can be a program name with args. 20853set dummy fop; ac_word=$2 20854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20855printf %s "checking for $ac_word... " >&6; } 20856if test ${ac_cv_path_FOP+y} 20857then : 20858 printf %s "(cached) " >&6 20859else case e in #( 20860 e) case $FOP in 20861 [\\/]* | ?:[\\/]*) 20862 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20863 ;; 20864 *) 20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20866for as_dir in $PATH 20867do 20868 IFS=$as_save_IFS 20869 case $as_dir in #((( 20870 '') as_dir=./ ;; 20871 */) ;; 20872 *) as_dir=$as_dir/ ;; 20873 esac 20874 for ac_exec_ext in '' $ac_executable_extensions; do 20875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20876 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20878 break 2 20879 fi 20880done 20881 done 20882IFS=$as_save_IFS 20883 20884 ;; 20885esac ;; 20886esac 20887fi 20888FOP=$ac_cv_path_FOP 20889if test -n "$FOP"; then 20890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20891printf "%s\n" "$FOP" >&6; } 20892else 20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20894printf "%s\n" "no" >&6; } 20895fi 20896 20897 20898 if test "x$FOP" = "x"; then 20899 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20900 fi 20901 have_fop=yes 20902elif test "x$use_fop" = x"no" ; then 20903 if test "x$FOP" != "x"; then 20904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20905printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20906 fi 20907 have_fop=no 20908else 20909 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20910fi 20911 20912# Test for a minimum version of fop, if provided. 20913 20914 if test "$have_fop" = yes; then 20915 HAVE_FOP_TRUE= 20916 HAVE_FOP_FALSE='#' 20917else 20918 HAVE_FOP_TRUE='#' 20919 HAVE_FOP_FALSE= 20920fi 20921 20922 20923 20924 20925# Preserves the interface, should it be implemented later 20926 20927 20928 20929# Check whether --with-xsltproc was given. 20930if test ${with_xsltproc+y} 20931then : 20932 withval=$with_xsltproc; use_xsltproc=$withval 20933else case e in #( 20934 e) use_xsltproc=auto ;; 20935esac 20936fi 20937 20938 20939 20940if test "x$use_xsltproc" = x"auto"; then 20941 # Extract the first word of "xsltproc", so it can be a program name with args. 20942set dummy xsltproc; ac_word=$2 20943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20944printf %s "checking for $ac_word... " >&6; } 20945if test ${ac_cv_path_XSLTPROC+y} 20946then : 20947 printf %s "(cached) " >&6 20948else case e in #( 20949 e) case $XSLTPROC in 20950 [\\/]* | ?:[\\/]*) 20951 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20952 ;; 20953 *) 20954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20955for as_dir in $PATH 20956do 20957 IFS=$as_save_IFS 20958 case $as_dir in #((( 20959 '') as_dir=./ ;; 20960 */) ;; 20961 *) as_dir=$as_dir/ ;; 20962 esac 20963 for ac_exec_ext in '' $ac_executable_extensions; do 20964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20965 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20967 break 2 20968 fi 20969done 20970 done 20971IFS=$as_save_IFS 20972 20973 ;; 20974esac ;; 20975esac 20976fi 20977XSLTPROC=$ac_cv_path_XSLTPROC 20978if test -n "$XSLTPROC"; then 20979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20980printf "%s\n" "$XSLTPROC" >&6; } 20981else 20982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20983printf "%s\n" "no" >&6; } 20984fi 20985 20986 20987 if test "x$XSLTPROC" = "x"; then 20988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20989printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20990 have_xsltproc=no 20991 else 20992 have_xsltproc=yes 20993 fi 20994elif test "x$use_xsltproc" = x"yes" ; then 20995 # Extract the first word of "xsltproc", so it can be a program name with args. 20996set dummy xsltproc; ac_word=$2 20997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20998printf %s "checking for $ac_word... " >&6; } 20999if test ${ac_cv_path_XSLTPROC+y} 21000then : 21001 printf %s "(cached) " >&6 21002else case e in #( 21003 e) case $XSLTPROC in 21004 [\\/]* | ?:[\\/]*) 21005 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21006 ;; 21007 *) 21008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21009for as_dir in $PATH 21010do 21011 IFS=$as_save_IFS 21012 case $as_dir in #((( 21013 '') as_dir=./ ;; 21014 */) ;; 21015 *) as_dir=$as_dir/ ;; 21016 esac 21017 for ac_exec_ext in '' $ac_executable_extensions; do 21018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21019 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21021 break 2 21022 fi 21023done 21024 done 21025IFS=$as_save_IFS 21026 21027 ;; 21028esac ;; 21029esac 21030fi 21031XSLTPROC=$ac_cv_path_XSLTPROC 21032if test -n "$XSLTPROC"; then 21033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21034printf "%s\n" "$XSLTPROC" >&6; } 21035else 21036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21037printf "%s\n" "no" >&6; } 21038fi 21039 21040 21041 if test "x$XSLTPROC" = "x"; then 21042 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21043 fi 21044 have_xsltproc=yes 21045elif test "x$use_xsltproc" = x"no" ; then 21046 if test "x$XSLTPROC" != "x"; then 21047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21048printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21049 fi 21050 have_xsltproc=no 21051else 21052 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21053fi 21054 21055 if test "$have_xsltproc" = yes; then 21056 HAVE_XSLTPROC_TRUE= 21057 HAVE_XSLTPROC_FALSE='#' 21058else 21059 HAVE_XSLTPROC_TRUE='#' 21060 HAVE_XSLTPROC_FALSE= 21061fi 21062 21063 21064 21065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 21066printf %s "checking for X.Org SGML entities >= 1.10... " >&6; } 21067XORG_SGML_PATH= 21068if test -n "$PKG_CONFIG" && \ 21069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 21070 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 21071 ac_status=$? 21072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21073 test $ac_status = 0; }; then 21074 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21075else 21076 : 21077 21078fi 21079 21080# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21081# the path and the name of the doc stylesheet 21082if test "x$XORG_SGML_PATH" != "x" ; then 21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21084printf "%s\n" "$XORG_SGML_PATH" >&6; } 21085 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21086 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21087else 21088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21089printf "%s\n" "no" >&6; } 21090fi 21091 21092 21093 21094 21095 if test "x$XSL_STYLESHEET" != "x"; then 21096 HAVE_STYLESHEETS_TRUE= 21097 HAVE_STYLESHEETS_FALSE='#' 21098else 21099 HAVE_STYLESHEETS_TRUE='#' 21100 HAVE_STYLESHEETS_FALSE= 21101fi 21102 21103 21104ac_ext=c 21105ac_cpp='$CPP $CPPFLAGS' 21106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21108ac_compiler_gnu=$ac_cv_c_compiler_gnu 21109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 21110printf %s "checking how to run the C preprocessor... " >&6; } 21111# On Suns, sometimes $CPP names a directory. 21112if test -n "$CPP" && test -d "$CPP"; then 21113 CPP= 21114fi 21115if test -z "$CPP"; then 21116 if test ${ac_cv_prog_CPP+y} 21117then : 21118 printf %s "(cached) " >&6 21119else case e in #( 21120 e) # Double quotes because $CC needs to be expanded 21121 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 21122 do 21123 ac_preproc_ok=false 21124for ac_c_preproc_warn_flag in '' yes 21125do 21126 # Use a header file that comes with gcc, so configuring glibc 21127 # with a fresh cross-compiler works. 21128 # On the NeXT, cc -E runs the code through the compiler's parser, 21129 # not just through cpp. "Syntax error" is here to catch this case. 21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21131/* end confdefs.h. */ 21132#include <limits.h> 21133 Syntax error 21134_ACEOF 21135if ac_fn_c_try_cpp "$LINENO" 21136then : 21137 21138else case e in #( 21139 e) # Broken: fails on valid input. 21140continue ;; 21141esac 21142fi 21143rm -f conftest.err conftest.i conftest.$ac_ext 21144 21145 # OK, works on sane cases. Now check whether nonexistent headers 21146 # can be detected and how. 21147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21148/* end confdefs.h. */ 21149#include <ac_nonexistent.h> 21150_ACEOF 21151if ac_fn_c_try_cpp "$LINENO" 21152then : 21153 # Broken: success on invalid input. 21154continue 21155else case e in #( 21156 e) # Passes both tests. 21157ac_preproc_ok=: 21158break ;; 21159esac 21160fi 21161rm -f conftest.err conftest.i conftest.$ac_ext 21162 21163done 21164# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 21165rm -f conftest.i conftest.err conftest.$ac_ext 21166if $ac_preproc_ok 21167then : 21168 break 21169fi 21170 21171 done 21172 ac_cv_prog_CPP=$CPP 21173 ;; 21174esac 21175fi 21176 CPP=$ac_cv_prog_CPP 21177else 21178 ac_cv_prog_CPP=$CPP 21179fi 21180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 21181printf "%s\n" "$CPP" >&6; } 21182ac_preproc_ok=false 21183for ac_c_preproc_warn_flag in '' yes 21184do 21185 # Use a header file that comes with gcc, so configuring glibc 21186 # with a fresh cross-compiler works. 21187 # On the NeXT, cc -E runs the code through the compiler's parser, 21188 # not just through cpp. "Syntax error" is here to catch this case. 21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21190/* end confdefs.h. */ 21191#include <limits.h> 21192 Syntax error 21193_ACEOF 21194if ac_fn_c_try_cpp "$LINENO" 21195then : 21196 21197else case e in #( 21198 e) # Broken: fails on valid input. 21199continue ;; 21200esac 21201fi 21202rm -f conftest.err conftest.i conftest.$ac_ext 21203 21204 # OK, works on sane cases. Now check whether nonexistent headers 21205 # can be detected and how. 21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21207/* end confdefs.h. */ 21208#include <ac_nonexistent.h> 21209_ACEOF 21210if ac_fn_c_try_cpp "$LINENO" 21211then : 21212 # Broken: success on invalid input. 21213continue 21214else case e in #( 21215 e) # Passes both tests. 21216ac_preproc_ok=: 21217break ;; 21218esac 21219fi 21220rm -f conftest.err conftest.i conftest.$ac_ext 21221 21222done 21223# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 21224rm -f conftest.i conftest.err conftest.$ac_ext 21225if $ac_preproc_ok 21226then : 21227 21228else case e in #( 21229 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21230printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21231as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 21232See 'config.log' for more details" "$LINENO" 5; } ;; 21233esac 21234fi 21235 21236ac_ext=c 21237ac_cpp='$CPP $CPPFLAGS' 21238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21240ac_compiler_gnu=$ac_cv_c_compiler_gnu 21241 21242 21243 21244if test -n "$ac_tool_prefix"; then 21245 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 21246set dummy ${ac_tool_prefix}cpp; ac_word=$2 21247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21248printf %s "checking for $ac_word... " >&6; } 21249if test ${ac_cv_path_RAWCPP+y} 21250then : 21251 printf %s "(cached) " >&6 21252else case e in #( 21253 e) case $RAWCPP in 21254 [\\/]* | ?:[\\/]*) 21255 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21256 ;; 21257 *) 21258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21259as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21260for as_dir in $as_dummy 21261do 21262 IFS=$as_save_IFS 21263 case $as_dir in #((( 21264 '') as_dir=./ ;; 21265 */) ;; 21266 *) as_dir=$as_dir/ ;; 21267 esac 21268 for ac_exec_ext in '' $ac_executable_extensions; do 21269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21270 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21272 break 2 21273 fi 21274done 21275 done 21276IFS=$as_save_IFS 21277 21278 ;; 21279esac ;; 21280esac 21281fi 21282RAWCPP=$ac_cv_path_RAWCPP 21283if test -n "$RAWCPP"; then 21284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21285printf "%s\n" "$RAWCPP" >&6; } 21286else 21287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21288printf "%s\n" "no" >&6; } 21289fi 21290 21291 21292fi 21293if test -z "$ac_cv_path_RAWCPP"; then 21294 ac_pt_RAWCPP=$RAWCPP 21295 # Extract the first word of "cpp", so it can be a program name with args. 21296set dummy cpp; ac_word=$2 21297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21298printf %s "checking for $ac_word... " >&6; } 21299if test ${ac_cv_path_ac_pt_RAWCPP+y} 21300then : 21301 printf %s "(cached) " >&6 21302else case e in #( 21303 e) case $ac_pt_RAWCPP in 21304 [\\/]* | ?:[\\/]*) 21305 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 21306 ;; 21307 *) 21308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21309as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21310for as_dir in $as_dummy 21311do 21312 IFS=$as_save_IFS 21313 case $as_dir in #((( 21314 '') as_dir=./ ;; 21315 */) ;; 21316 *) as_dir=$as_dir/ ;; 21317 esac 21318 for ac_exec_ext in '' $ac_executable_extensions; do 21319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21320 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21322 break 2 21323 fi 21324done 21325 done 21326IFS=$as_save_IFS 21327 21328 ;; 21329esac ;; 21330esac 21331fi 21332ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 21333if test -n "$ac_pt_RAWCPP"; then 21334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 21335printf "%s\n" "$ac_pt_RAWCPP" >&6; } 21336else 21337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21338printf "%s\n" "no" >&6; } 21339fi 21340 21341 if test "x$ac_pt_RAWCPP" = x; then 21342 RAWCPP="${CPP}" 21343 else 21344 case $cross_compiling:$ac_tool_warned in 21345yes:) 21346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21347printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21348ac_tool_warned=yes ;; 21349esac 21350 RAWCPP=$ac_pt_RAWCPP 21351 fi 21352else 21353 RAWCPP="$ac_cv_path_RAWCPP" 21354fi 21355 21356 21357# Check for flag to avoid builtin definitions - assumes unix is predefined, 21358# which is not the best choice for supporting other OS'es, but covers most 21359# of the ones we need for now. 21360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21361printf %s "checking if $RAWCPP requires -undef... " >&6; } 21362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21363/* end confdefs.h. */ 21364Does cpp redefine unix ? 21365_ACEOF 21366if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21368printf "%s\n" "no" >&6; } 21369else 21370 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21371 RAWCPPFLAGS=-undef 21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21373printf "%s\n" "yes" >&6; } 21374 # under Cygwin unix is still defined even with -undef 21375 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21376 RAWCPPFLAGS="-undef -ansi" 21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21378printf "%s\n" "yes, with -ansi" >&6; } 21379 else 21380 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21381 fi 21382fi 21383rm -f conftest.$ac_ext 21384 21385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21386printf %s "checking if $RAWCPP requires -traditional... " >&6; } 21387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21388/* end confdefs.h. */ 21389Does cpp preserve "whitespace"? 21390_ACEOF 21391if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21393printf "%s\n" "no" >&6; } 21394else 21395 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21396 TRADITIONALCPPFLAGS="-traditional" 21397 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21399printf "%s\n" "yes" >&6; } 21400 else 21401 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21402 fi 21403fi 21404rm -f conftest.$ac_ext 21405 21406 21407 21408 21409 21410# Preserves the interface, should it be implemented later 21411 21412 21413 21414# Check whether --with-perl was given. 21415if test ${with_perl+y} 21416then : 21417 withval=$with_perl; use_perl=$withval 21418else case e in #( 21419 e) use_perl=auto ;; 21420esac 21421fi 21422 21423 21424 21425if test "x$use_perl" = x"auto"; then 21426 # Extract the first word of "perl", so it can be a program name with args. 21427set dummy perl; ac_word=$2 21428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21429printf %s "checking for $ac_word... " >&6; } 21430if test ${ac_cv_path_PERL+y} 21431then : 21432 printf %s "(cached) " >&6 21433else case e in #( 21434 e) case $PERL in 21435 [\\/]* | ?:[\\/]*) 21436 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21437 ;; 21438 *) 21439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21440for as_dir in $PATH 21441do 21442 IFS=$as_save_IFS 21443 case $as_dir in #((( 21444 '') as_dir=./ ;; 21445 */) ;; 21446 *) as_dir=$as_dir/ ;; 21447 esac 21448 for ac_exec_ext in '' $ac_executable_extensions; do 21449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21450 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 21451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21452 break 2 21453 fi 21454done 21455 done 21456IFS=$as_save_IFS 21457 21458 ;; 21459esac ;; 21460esac 21461fi 21462PERL=$ac_cv_path_PERL 21463if test -n "$PERL"; then 21464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21465printf "%s\n" "$PERL" >&6; } 21466else 21467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21468printf "%s\n" "no" >&6; } 21469fi 21470 21471 21472 if test "x$PERL" = "x"; then 21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 21474printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 21475 have_perl=no 21476 else 21477 have_perl=yes 21478 fi 21479elif test "x$use_perl" = x"yes" ; then 21480 # Extract the first word of "perl", so it can be a program name with args. 21481set dummy perl; ac_word=$2 21482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21483printf %s "checking for $ac_word... " >&6; } 21484if test ${ac_cv_path_PERL+y} 21485then : 21486 printf %s "(cached) " >&6 21487else case e in #( 21488 e) case $PERL in 21489 [\\/]* | ?:[\\/]*) 21490 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 21491 ;; 21492 *) 21493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21494for as_dir in $PATH 21495do 21496 IFS=$as_save_IFS 21497 case $as_dir in #((( 21498 '') as_dir=./ ;; 21499 */) ;; 21500 *) as_dir=$as_dir/ ;; 21501 esac 21502 for ac_exec_ext in '' $ac_executable_extensions; do 21503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21504 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 21505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21506 break 2 21507 fi 21508done 21509 done 21510IFS=$as_save_IFS 21511 21512 ;; 21513esac ;; 21514esac 21515fi 21516PERL=$ac_cv_path_PERL 21517if test -n "$PERL"; then 21518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21519printf "%s\n" "$PERL" >&6; } 21520else 21521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21522printf "%s\n" "no" >&6; } 21523fi 21524 21525 21526 if test "x$PERL" = "x"; then 21527 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 21528 fi 21529 have_perl=yes 21530elif test "x$use_perl" = x"no" ; then 21531 if test "x$PERL" != "x"; then 21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 21533printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 21534 fi 21535 have_perl=no 21536else 21537 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 21538fi 21539 21540 if test "$have_perl" = yes; then 21541 HAVE_PERL_TRUE= 21542 HAVE_PERL_FALSE='#' 21543else 21544 HAVE_PERL_TRUE='#' 21545 HAVE_PERL_FALSE= 21546fi 21547 21548 21549 21550# Required when PKG_CHECK_MODULES called within an if statement 21551 21552 21553 21554 21555 21556 21557 21558if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21559 if test -n "$ac_tool_prefix"; then 21560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21561set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21563printf %s "checking for $ac_word... " >&6; } 21564if test ${ac_cv_path_PKG_CONFIG+y} 21565then : 21566 printf %s "(cached) " >&6 21567else case e in #( 21568 e) case $PKG_CONFIG in 21569 [\\/]* | ?:[\\/]*) 21570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21571 ;; 21572 *) 21573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21574for as_dir in $PATH 21575do 21576 IFS=$as_save_IFS 21577 case $as_dir in #((( 21578 '') as_dir=./ ;; 21579 */) ;; 21580 *) as_dir=$as_dir/ ;; 21581 esac 21582 for ac_exec_ext in '' $ac_executable_extensions; do 21583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21584 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21586 break 2 21587 fi 21588done 21589 done 21590IFS=$as_save_IFS 21591 21592 ;; 21593esac ;; 21594esac 21595fi 21596PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21597if test -n "$PKG_CONFIG"; then 21598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21599printf "%s\n" "$PKG_CONFIG" >&6; } 21600else 21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21602printf "%s\n" "no" >&6; } 21603fi 21604 21605 21606fi 21607if test -z "$ac_cv_path_PKG_CONFIG"; then 21608 ac_pt_PKG_CONFIG=$PKG_CONFIG 21609 # Extract the first word of "pkg-config", so it can be a program name with args. 21610set dummy pkg-config; ac_word=$2 21611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21612printf %s "checking for $ac_word... " >&6; } 21613if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21614then : 21615 printf %s "(cached) " >&6 21616else case e in #( 21617 e) case $ac_pt_PKG_CONFIG in 21618 [\\/]* | ?:[\\/]*) 21619 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21620 ;; 21621 *) 21622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21623for as_dir in $PATH 21624do 21625 IFS=$as_save_IFS 21626 case $as_dir in #((( 21627 '') as_dir=./ ;; 21628 */) ;; 21629 *) as_dir=$as_dir/ ;; 21630 esac 21631 for ac_exec_ext in '' $ac_executable_extensions; do 21632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21633 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21635 break 2 21636 fi 21637done 21638 done 21639IFS=$as_save_IFS 21640 21641 ;; 21642esac ;; 21643esac 21644fi 21645ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21646if test -n "$ac_pt_PKG_CONFIG"; then 21647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21648printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21649else 21650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21651printf "%s\n" "no" >&6; } 21652fi 21653 21654 if test "x$ac_pt_PKG_CONFIG" = x; then 21655 PKG_CONFIG="" 21656 else 21657 case $cross_compiling:$ac_tool_warned in 21658yes:) 21659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21660printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21661ac_tool_warned=yes ;; 21662esac 21663 PKG_CONFIG=$ac_pt_PKG_CONFIG 21664 fi 21665else 21666 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21667fi 21668 21669fi 21670if test -n "$PKG_CONFIG"; then 21671 _pkg_min_version=0.9.0 21672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21673printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21674 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21676printf "%s\n" "yes" >&6; } 21677 else 21678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21679printf "%s\n" "no" >&6; } 21680 PKG_CONFIG="" 21681 fi 21682fi 21683 21684if test x"$CC_FOR_BUILD" = x; then 21685 if test x"$cross_compiling" = xyes; then 21686 for ac_prog in gcc cc 21687do 21688 # Extract the first word of "$ac_prog", so it can be a program name with args. 21689set dummy $ac_prog; ac_word=$2 21690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21691printf %s "checking for $ac_word... " >&6; } 21692if test ${ac_cv_prog_CC_FOR_BUILD+y} 21693then : 21694 printf %s "(cached) " >&6 21695else case e in #( 21696 e) if test -n "$CC_FOR_BUILD"; then 21697 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 21698else 21699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21700for as_dir in $PATH 21701do 21702 IFS=$as_save_IFS 21703 case $as_dir in #((( 21704 '') as_dir=./ ;; 21705 */) ;; 21706 *) as_dir=$as_dir/ ;; 21707 esac 21708 for ac_exec_ext in '' $ac_executable_extensions; do 21709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21710 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 21711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21712 break 2 21713 fi 21714done 21715 done 21716IFS=$as_save_IFS 21717 21718fi ;; 21719esac 21720fi 21721CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 21722if test -n "$CC_FOR_BUILD"; then 21723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 21724printf "%s\n" "$CC_FOR_BUILD" >&6; } 21725else 21726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21727printf "%s\n" "no" >&6; } 21728fi 21729 21730 21731 test -n "$CC_FOR_BUILD" && break 21732done 21733 21734 else 21735 CC_FOR_BUILD="$CC" 21736 fi 21737fi 21738 21739 21740if test x"$CPPFLAGS_FOR_BUILD" = x; then 21741 if test ! x"$cross_compiling" = xyes; then 21742 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 21743 fi 21744fi 21745 21746 21747if test x"$CFLAGS_FOR_BUILD" = x; then 21748 if test ! x"$cross_compiling" = xyes; then 21749 CFLAGS_FOR_BUILD=${CFLAGS} 21750 fi 21751fi 21752 21753 21754if test x"$LDFLAGS_FOR_BUILD" = x; then 21755 if test ! x"$cross_compiling" = xyes; then 21756 LDFLAGS_FOR_BUILD=${LDFLAGS} 21757 fi 21758fi 21759 21760 21761if test x"$EXEEXT_FOR_BUILD" = x; then 21762 if test x"$cross_compiling" = xno; then 21763 EXEEXT_FOR_BUILD=${EXEEXT} 21764 fi 21765 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty 21766fi 21767 21768 21769# Checks for pkg-config packages 21770 21771# Always required 21772X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1' 21773X11_EXTRA_DEPS="xcb >= 1.11.1" 21774 21775 21776 21777 21778 21779 21780 21781 21782if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21783 if test -n "$ac_tool_prefix"; then 21784 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21785set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21787printf %s "checking for $ac_word... " >&6; } 21788if test ${ac_cv_path_PKG_CONFIG+y} 21789then : 21790 printf %s "(cached) " >&6 21791else case e in #( 21792 e) case $PKG_CONFIG in 21793 [\\/]* | ?:[\\/]*) 21794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21795 ;; 21796 *) 21797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21798for as_dir in $PATH 21799do 21800 IFS=$as_save_IFS 21801 case $as_dir in #((( 21802 '') as_dir=./ ;; 21803 */) ;; 21804 *) as_dir=$as_dir/ ;; 21805 esac 21806 for ac_exec_ext in '' $ac_executable_extensions; do 21807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21808 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21810 break 2 21811 fi 21812done 21813 done 21814IFS=$as_save_IFS 21815 21816 ;; 21817esac ;; 21818esac 21819fi 21820PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21821if test -n "$PKG_CONFIG"; then 21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21823printf "%s\n" "$PKG_CONFIG" >&6; } 21824else 21825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21826printf "%s\n" "no" >&6; } 21827fi 21828 21829 21830fi 21831if test -z "$ac_cv_path_PKG_CONFIG"; then 21832 ac_pt_PKG_CONFIG=$PKG_CONFIG 21833 # Extract the first word of "pkg-config", so it can be a program name with args. 21834set dummy pkg-config; ac_word=$2 21835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21836printf %s "checking for $ac_word... " >&6; } 21837if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21838then : 21839 printf %s "(cached) " >&6 21840else case e in #( 21841 e) case $ac_pt_PKG_CONFIG in 21842 [\\/]* | ?:[\\/]*) 21843 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21844 ;; 21845 *) 21846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21847for as_dir in $PATH 21848do 21849 IFS=$as_save_IFS 21850 case $as_dir in #((( 21851 '') as_dir=./ ;; 21852 */) ;; 21853 *) as_dir=$as_dir/ ;; 21854 esac 21855 for ac_exec_ext in '' $ac_executable_extensions; do 21856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21857 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21859 break 2 21860 fi 21861done 21862 done 21863IFS=$as_save_IFS 21864 21865 ;; 21866esac ;; 21867esac 21868fi 21869ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21870if test -n "$ac_pt_PKG_CONFIG"; then 21871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21872printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21873else 21874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21875printf "%s\n" "no" >&6; } 21876fi 21877 21878 if test "x$ac_pt_PKG_CONFIG" = x; then 21879 PKG_CONFIG="" 21880 else 21881 case $cross_compiling:$ac_tool_warned in 21882yes:) 21883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21885ac_tool_warned=yes ;; 21886esac 21887 PKG_CONFIG=$ac_pt_PKG_CONFIG 21888 fi 21889else 21890 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21891fi 21892 21893fi 21894if test -n "$PKG_CONFIG"; then 21895 _pkg_min_version=0.9.0 21896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21897printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21898 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21900printf "%s\n" "yes" >&6; } 21901 else 21902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21903printf "%s\n" "no" >&6; } 21904 PKG_CONFIG="" 21905 fi 21906fi 21907 21908 21909 21910# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 21911# was not expanded, since libX11 with no transport types is rather useless. 21912# 21913# If you're seeing an error here, be sure you installed the lib/xtrans module 21914# first and if it's not in the default location, that you set the ACLOCAL 21915# environment variable to find it, such as: 21916# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 21917 21918 21919# Transport selection macro from xtrans.m4 21920 21921 21922 case $host_os in 21923 mingw*) unixdef="no" ;; 21924 *) unixdef="yes" ;; 21925 esac 21926 # Check whether --enable-unix-transport was given. 21927if test ${enable_unix_transport+y} 21928then : 21929 enableval=$enable_unix_transport; UNIXCONN=$enableval 21930else case e in #( 21931 e) UNIXCONN=$unixdef ;; 21932esac 21933fi 21934 21935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21936printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21937 if test "$UNIXCONN" = "yes"; then 21938 21939printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21940 21941 fi 21942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21943printf "%s\n" "$UNIXCONN" >&6; } 21944 # Check whether --enable-tcp-transport was given. 21945if test ${enable_tcp_transport+y} 21946then : 21947 enableval=$enable_tcp_transport; TCPCONN=$enableval 21948else case e in #( 21949 e) TCPCONN=yes ;; 21950esac 21951fi 21952 21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21954printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21956printf "%s\n" "$TCPCONN" >&6; } 21957 if test "$TCPCONN" = "yes"; then 21958 21959printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21960 21961 21962 # SVR4 hides these in libraries other than libc 21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21964printf %s "checking for library containing socket... " >&6; } 21965if test ${ac_cv_search_socket+y} 21966then : 21967 printf %s "(cached) " >&6 21968else case e in #( 21969 e) ac_func_search_save_LIBS=$LIBS 21970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21971/* end confdefs.h. */ 21972 21973/* Override any GCC internal prototype to avoid an error. 21974 Use char because int might match the return type of a GCC 21975 builtin and then its argument prototype would still apply. 21976 The 'extern "C"' is for builds by C++ compilers; 21977 although this is not generally supported in C code supporting it here 21978 has little cost and some practical benefit (sr 110532). */ 21979#ifdef __cplusplus 21980extern "C" 21981#endif 21982char socket (void); 21983int 21984main (void) 21985{ 21986return socket (); 21987 ; 21988 return 0; 21989} 21990_ACEOF 21991for ac_lib in '' socket 21992do 21993 if test -z "$ac_lib"; then 21994 ac_res="none required" 21995 else 21996 ac_res=-l$ac_lib 21997 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21998 fi 21999 if ac_fn_c_try_link "$LINENO" 22000then : 22001 ac_cv_search_socket=$ac_res 22002fi 22003rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22004 conftest$ac_exeext 22005 if test ${ac_cv_search_socket+y} 22006then : 22007 break 22008fi 22009done 22010if test ${ac_cv_search_socket+y} 22011then : 22012 22013else case e in #( 22014 e) ac_cv_search_socket=no ;; 22015esac 22016fi 22017rm conftest.$ac_ext 22018LIBS=$ac_func_search_save_LIBS ;; 22019esac 22020fi 22021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 22022printf "%s\n" "$ac_cv_search_socket" >&6; } 22023ac_res=$ac_cv_search_socket 22024if test "$ac_res" != no 22025then : 22026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22027 22028fi 22029 22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 22031printf %s "checking for library containing gethostbyname... " >&6; } 22032if test ${ac_cv_search_gethostbyname+y} 22033then : 22034 printf %s "(cached) " >&6 22035else case e in #( 22036 e) ac_func_search_save_LIBS=$LIBS 22037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22038/* end confdefs.h. */ 22039 22040/* Override any GCC internal prototype to avoid an error. 22041 Use char because int might match the return type of a GCC 22042 builtin and then its argument prototype would still apply. 22043 The 'extern "C"' is for builds by C++ compilers; 22044 although this is not generally supported in C code supporting it here 22045 has little cost and some practical benefit (sr 110532). */ 22046#ifdef __cplusplus 22047extern "C" 22048#endif 22049char gethostbyname (void); 22050int 22051main (void) 22052{ 22053return gethostbyname (); 22054 ; 22055 return 0; 22056} 22057_ACEOF 22058for ac_lib in '' nsl 22059do 22060 if test -z "$ac_lib"; then 22061 ac_res="none required" 22062 else 22063 ac_res=-l$ac_lib 22064 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22065 fi 22066 if ac_fn_c_try_link "$LINENO" 22067then : 22068 ac_cv_search_gethostbyname=$ac_res 22069fi 22070rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22071 conftest$ac_exeext 22072 if test ${ac_cv_search_gethostbyname+y} 22073then : 22074 break 22075fi 22076done 22077if test ${ac_cv_search_gethostbyname+y} 22078then : 22079 22080else case e in #( 22081 e) ac_cv_search_gethostbyname=no ;; 22082esac 22083fi 22084rm conftest.$ac_ext 22085LIBS=$ac_func_search_save_LIBS ;; 22086esac 22087fi 22088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 22089printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 22090ac_res=$ac_cv_search_gethostbyname 22091if test "$ac_res" != no 22092then : 22093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22094 22095fi 22096 22097 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 22098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 22099printf %s "checking for main in -lws2_32... " >&6; } 22100if test ${ac_cv_lib_ws2_32_main+y} 22101then : 22102 printf %s "(cached) " >&6 22103else case e in #( 22104 e) ac_check_lib_save_LIBS=$LIBS 22105LIBS="-lws2_32 $LIBS" 22106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22107/* end confdefs.h. */ 22108 22109 22110int 22111main (void) 22112{ 22113return main (); 22114 ; 22115 return 0; 22116} 22117_ACEOF 22118if ac_fn_c_try_link "$LINENO" 22119then : 22120 ac_cv_lib_ws2_32_main=yes 22121else case e in #( 22122 e) ac_cv_lib_ws2_32_main=no ;; 22123esac 22124fi 22125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22126 conftest$ac_exeext conftest.$ac_ext 22127LIBS=$ac_check_lib_save_LIBS ;; 22128esac 22129fi 22130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22131printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22132if test "x$ac_cv_lib_ws2_32_main" = xyes 22133then : 22134 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22135 22136 LIBS="-lws2_32 $LIBS" 22137 22138fi 22139 22140 fi 22141 22142 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22143 # Check whether --enable-ipv6 was given. 22144if test ${enable_ipv6+y} 22145then : 22146 enableval=$enable_ipv6; IPV6CONN=$enableval 22147else case e in #( 22148 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22149if test "x$ac_cv_func_getaddrinfo" = xyes 22150then : 22151 IPV6CONN=yes 22152else case e in #( 22153 e) IPV6CONN=no ;; 22154esac 22155fi 22156 ;; 22157esac 22158fi 22159 22160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22161printf %s "checking if IPv6 support should be built... " >&6; } 22162 if test "$IPV6CONN" = "yes"; then 22163 22164printf "%s\n" "#define IPv6 1" >>confdefs.h 22165 22166 fi 22167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22168printf "%s\n" "$IPV6CONN" >&6; } 22169 22170 # 4.3BSD-Reno added a new member to struct sockaddr_in 22171 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22172#include <sys/types.h> 22173#include <sys/socket.h> 22174#include <netinet/in.h> 22175 22176" 22177if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22178then : 22179 22180printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22181 22182fi 22183 22184 22185 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22186 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22187$ac_includes_default 22188#include <sys/socket.h> 22189" 22190if test "x$ac_cv_type_socklen_t" = xyes 22191then : 22192 22193printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22194 22195 22196fi 22197 22198 22199 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22200 # _XOPEN_SOURCE to get it (such as on Solaris) 22201 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22202$ac_includes_default 22203#include <sys/socket.h> 22204 22205" 22206if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22207then : 22208 22209fi 22210 22211 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22212 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22213 unset ac_cv_member_struct_msghdr_msg_control 22214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22215printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22216 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22217#define _XOPEN_SOURCE 600 22218$ac_includes_default 22219#include <sys/socket.h> 22220 22221" 22222if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22223then : 22224 22225printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22226 22227 22228fi 22229 22230 fi 22231 # If that didn't work, fall back to XPG5/UNIX98 with C89 22232 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22233 unset ac_cv_member_struct_msghdr_msg_control 22234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22235printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22236 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22237#define _XOPEN_SOURCE 500 22238$ac_includes_default 22239#include <sys/socket.h> 22240 22241" 22242if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22243then : 22244 22245printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22246 22247 22248fi 22249 22250 fi 22251 22252 22253 22254 fi 22255 case $host_os in 22256 solaris*) localdef="yes" ;; 22257 *) localdef="no" ;; 22258 esac 22259 # Check whether --enable-local-transport was given. 22260if test ${enable_local_transport+y} 22261then : 22262 enableval=$enable_local_transport; LOCALCONN=$enableval 22263else case e in #( 22264 e) LOCALCONN=$localdef ;; 22265esac 22266fi 22267 22268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22269printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22271printf "%s\n" "$LOCALCONN" >&6; } 22272 if test "$LOCALCONN" = "yes"; then 22273 22274printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22275 22276 fi 22277 22278 # Other functions Xtrans may need 22279 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22280if test "x$ac_cv_func_strcasecmp" = xyes 22281then : 22282 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22283 22284fi 22285ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22286if test "x$ac_cv_func_strlcpy" = xyes 22287then : 22288 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22289 22290fi 22291 22292 22293 22294 22295# Check for dlopen 22296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 22297printf %s "checking for library containing dlopen... " >&6; } 22298if test ${ac_cv_search_dlopen+y} 22299then : 22300 printf %s "(cached) " >&6 22301else case e in #( 22302 e) ac_func_search_save_LIBS=$LIBS 22303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22304/* end confdefs.h. */ 22305 22306/* Override any GCC internal prototype to avoid an error. 22307 Use char because int might match the return type of a GCC 22308 builtin and then its argument prototype would still apply. 22309 The 'extern "C"' is for builds by C++ compilers; 22310 although this is not generally supported in C code supporting it here 22311 has little cost and some practical benefit (sr 110532). */ 22312#ifdef __cplusplus 22313extern "C" 22314#endif 22315char dlopen (void); 22316int 22317main (void) 22318{ 22319return dlopen (); 22320 ; 22321 return 0; 22322} 22323_ACEOF 22324for ac_lib in '' dl svld 22325do 22326 if test -z "$ac_lib"; then 22327 ac_res="none required" 22328 else 22329 ac_res=-l$ac_lib 22330 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22331 fi 22332 if ac_fn_c_try_link "$LINENO" 22333then : 22334 ac_cv_search_dlopen=$ac_res 22335fi 22336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22337 conftest$ac_exeext 22338 if test ${ac_cv_search_dlopen+y} 22339then : 22340 break 22341fi 22342done 22343if test ${ac_cv_search_dlopen+y} 22344then : 22345 22346else case e in #( 22347 e) ac_cv_search_dlopen=no ;; 22348esac 22349fi 22350rm conftest.$ac_ext 22351LIBS=$ac_func_search_save_LIBS ;; 22352esac 22353fi 22354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 22355printf "%s\n" "$ac_cv_search_dlopen" >&6; } 22356ac_res=$ac_cv_search_dlopen 22357if test "$ac_res" != no 22358then : 22359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22360 22361fi 22362 22363if test "x$ac_cv_search_dlopen" != xno; then 22364 22365printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 22366 22367 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 22368if test "x$ac_cv_header_dlfcn_h" = xyes 22369then : 22370 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 22371 22372fi 22373 22374fi 22375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 22376printf %s "checking if run-time linking is supported... " >&6; } 22377if test "x$ac_cv_header_dlfcn_h" = xyes; then 22378 HAVE_LOADABLE_MODULES=yes 22379else 22380 HAVE_LOADABLE_MODULES=no 22381fi 22382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 22383printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; } 22384 22385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 22386printf %s "checking if loadable i18n module support should be enabled... " >&6; } 22387# Check whether --enable-loadable-i18n was given. 22388if test ${enable_loadable_i18n+y} 22389then : 22390 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 22391else case e in #( 22392 e) XLIB_LOADABLE_I18N="no" ;; 22393esac 22394fi 22395 22396if test x$XLIB_LOADABLE_I18N = xyes; then 22397 if test x$HAVE_LOADABLE_MODULES = xno; then 22398 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 22399 fi 22400 22401printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h 22402 22403 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 22404 22405fi 22406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 22407printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; } 22408 22409 if test x$XLIB_LOADABLE_I18N = xyes; then 22410 XLIB_LOADABLE_I18N_TRUE= 22411 XLIB_LOADABLE_I18N_FALSE='#' 22412else 22413 XLIB_LOADABLE_I18N_TRUE='#' 22414 XLIB_LOADABLE_I18N_FALSE= 22415fi 22416 22417 22418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 22419printf %s "checking if loadable Xcursor library support should be enabled... " >&6; } 22420# Check whether --enable-loadable-xcursor was given. 22421if test ${enable_loadable_xcursor+y} 22422then : 22423 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 22424else case e in #( 22425 e) XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES ;; 22426esac 22427fi 22428 22429if test x$XLIB_LOADABLE_XCURSOR = xyes; then 22430 22431printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 22432 22433fi 22434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 22435printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; } 22436 22437# Check whether --enable-thread-safety-constructor was given. 22438if test ${enable_thread_safety_constructor+y} 22439then : 22440 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval 22441else case e in #( 22442 e) USE_THREAD_SAFETY_CONSTRUCTOR="yes" ;; 22443esac 22444fi 22445 22446if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 22447 22448printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h 22449 22450fi 22451 22452# Checks for header files. 22453ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 22454if test "x$ac_cv_header_sys_filio_h" = xyes 22455then : 22456 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 22457 22458fi 22459ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 22460if test "x$ac_cv_header_sys_select_h" = xyes 22461then : 22462 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 22463 22464fi 22465ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 22466if test "x$ac_cv_header_sys_ioctl_h" = xyes 22467then : 22468 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 22469 22470fi 22471ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 22472if test "x$ac_cv_header_sys_socket_h" = xyes 22473then : 22474 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 22475 22476fi 22477 22478 22479# Checks for typedefs, structures, and compiler characteristics. 22480 22481 22482 22483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5 22484printf %s "checking for __builtin_popcountl... " >&6; } 22485if test ${ax_cv_have___builtin_popcountl+y} 22486then : 22487 printf %s "(cached) " >&6 22488else case e in #( 22489 e) 22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22491/* end confdefs.h. */ 22492 22493int 22494main (void) 22495{ 22496 22497 __builtin_popcountl(0) 22498 22499 ; 22500 return 0; 22501} 22502_ACEOF 22503if ac_fn_c_try_link "$LINENO" 22504then : 22505 ax_cv_have___builtin_popcountl=yes 22506else case e in #( 22507 e) ax_cv_have___builtin_popcountl=no ;; 22508esac 22509fi 22510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22511 conftest$ac_exeext conftest.$ac_ext 22512 ;; 22513esac 22514fi 22515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5 22516printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; } 22517 22518 if test yes = $ax_cv_have___builtin_popcountl 22519then : 22520 22521printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h 22522 22523fi 22524 22525 22526 22527 22528# Checks for library functions. 22529ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 22530if test "x$ac_cv_func_strtol" = xyes 22531then : 22532 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 22533 22534fi 22535ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 22536if test "x$ac_cv_func_seteuid" = xyes 22537then : 22538 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 22539 22540fi 22541 22542ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22543if test "x$ac_cv_func_reallocarray" = xyes 22544then : 22545 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22546 22547else case e in #( 22548 e) case " $LIBOBJS " in 22549 *" reallocarray.$ac_objext "* ) ;; 22550 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22551 ;; 22552esac 22553 ;; 22554esac 22555fi 22556 22557# Used in lcFile.c (see also --enable-xlocaledir settings below) 22558XLOCALEDIR_IS_SAFE="no" 22559ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 22560if test "x$ac_cv_have_decl_issetugid" = xyes 22561then : 22562 22563fi 22564ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 22565if test "x$ac_cv_func_issetugid" = xyes 22566then : 22567 22568fi 22569 22570if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 22571 XLOCALEDIR_IS_SAFE="yes" 22572 22573printf "%s\n" "#define HASSETUGID 1" >>confdefs.h 22574 22575fi 22576ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 22577if test "x$ac_cv_func_getresuid" = xyes 22578then : 22579 XLOCALEDIR_IS_SAFE="yes" 22580 22581printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h 22582 22583fi 22584 22585# Used in Font.c 22586ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22587if test "x$ac_cv_func_shmat" = xyes 22588then : 22589 22590printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 22591 22592fi 22593 22594 22595# Checks for system services 22596# AC_PATH_XTRA 22597 22598# arch specific things 22599WCHAR32="1" 22600case $host_os in 22601 os2*) os2="true" ; WCHAR32="0" ;; 22602 *) ;; 22603esac 22604 22605 22606 if test x$os2 = xtrue; then 22607 OS2_TRUE= 22608 OS2_FALSE='#' 22609else 22610 OS2_TRUE='#' 22611 OS2_FALSE= 22612fi 22613 22614 22615 22616# Check whether --with-launchd was given. 22617if test ${with_launchd+y} 22618then : 22619 withval=$with_launchd; LAUNCHD=$withval 22620else case e in #( 22621 e) LAUNCHD=auto ;; 22622esac 22623fi 22624 22625if test "x$LAUNCHD" = xauto; then 22626 unset LAUNCHD 22627 # Extract the first word of "launchd", so it can be a program name with args. 22628set dummy launchd; ac_word=$2 22629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22630printf %s "checking for $ac_word... " >&6; } 22631if test ${ac_cv_prog_LAUNCHD+y} 22632then : 22633 printf %s "(cached) " >&6 22634else case e in #( 22635 e) if test -n "$LAUNCHD"; then 22636 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 22637else 22638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22639for as_dir in $PATH$PATH_SEPARATOR/sbin 22640do 22641 IFS=$as_save_IFS 22642 case $as_dir in #((( 22643 '') as_dir=./ ;; 22644 */) ;; 22645 *) as_dir=$as_dir/ ;; 22646 esac 22647 for ac_exec_ext in '' $ac_executable_extensions; do 22648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22649 ac_cv_prog_LAUNCHD="yes" 22650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22651 break 2 22652 fi 22653done 22654 done 22655IFS=$as_save_IFS 22656 22657 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 22658fi ;; 22659esac 22660fi 22661LAUNCHD=$ac_cv_prog_LAUNCHD 22662if test -n "$LAUNCHD"; then 22663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 22664printf "%s\n" "$LAUNCHD" >&6; } 22665else 22666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22667printf "%s\n" "no" >&6; } 22668fi 22669 22670 22671fi 22672 22673if test "x$LAUNCHD" = xyes ; then 22674 22675printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h 22676 22677 22678printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h 22679 22680fi 22681 22682# Check whether --enable-xthreads was given. 22683if test ${enable_xthreads+y} 22684then : 22685 enableval=$enable_xthreads; xthreads=$enableval 22686else case e in #( 22687 e) xthreads=yes ;; 22688esac 22689fi 22690 22691 22692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 22693printf %s "checking for getpwuid_r in -lc... " >&6; } 22694if test ${ac_cv_lib_c_getpwuid_r+y} 22695then : 22696 printf %s "(cached) " >&6 22697else case e in #( 22698 e) ac_check_lib_save_LIBS=$LIBS 22699LIBS="-lc $LIBS" 22700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22701/* end confdefs.h. */ 22702 22703/* Override any GCC internal prototype to avoid an error. 22704 Use char because int might match the return type of a GCC 22705 builtin and then its argument prototype would still apply. 22706 The 'extern "C"' is for builds by C++ compilers; 22707 although this is not generally supported in C code supporting it here 22708 has little cost and some practical benefit (sr 110532). */ 22709#ifdef __cplusplus 22710extern "C" 22711#endif 22712char getpwuid_r (void); 22713int 22714main (void) 22715{ 22716return getpwuid_r (); 22717 ; 22718 return 0; 22719} 22720_ACEOF 22721if ac_fn_c_try_link "$LINENO" 22722then : 22723 ac_cv_lib_c_getpwuid_r=yes 22724else case e in #( 22725 e) ac_cv_lib_c_getpwuid_r=no ;; 22726esac 22727fi 22728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22729 conftest$ac_exeext conftest.$ac_ext 22730LIBS=$ac_check_lib_save_LIBS ;; 22731esac 22732fi 22733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 22734printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; } 22735if test "x$ac_cv_lib_c_getpwuid_r" = xyes 22736then : 22737 mtsafeapi="yes" 22738else case e in #( 22739 e) mtsafeapi="no" ;; 22740esac 22741fi 22742 22743 22744case x$xthreads in 22745xyes) 22746 22747printf "%s\n" "#define XTHREADS 1" >>confdefs.h 22748 22749 if test x$mtsafeapi = xyes 22750 then 22751 22752printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h 22753 22754 fi 22755 ;; 22756*) 22757 ;; 22758esac 22759 22760# XXX incomplete, please fill this in 22761if test x$xthreads = xyes ; then 22762 case $host_os in 22763 linux*|gnu*|k*bsd*-gnu) 22764 XTHREADLIB=-lpthread ;; 22765 netbsd*) 22766 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 22767 XTHREADLIB="-lpthread" ;; 22768 freebsd*) 22769 XTHREAD_CFLAGS="-D_THREAD_SAFE" 22770 XTHREADLIB="-pthread" ;; 22771 dragonfly*|openbsd*) 22772 XTHREADLIB="-pthread" ;; 22773 solaris*) 22774 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 22775 esac 22776fi 22777 22778 22779 22780if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then 22781 USE_THREAD_LIBS="$XTHREADLIB" 22782else 22783 # This should be kept in sync with libxcb 22784 case $host_os in 22785 linux*|darwin*|solaris*) ;; 22786 *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;; 22787 esac 22788fi 22789 22790 22791ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 22792if test "x$ac_cv_func_poll" = xyes 22793then : 22794 22795printf "%s\n" "#define USE_POLL 1" >>confdefs.h 22796 22797fi 22798 22799 22800# 22801# Find keysymdef.h 22802# 22803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 22804printf %s "checking keysym definitions... " >&6; } 22805 22806# Check whether --with-keysymdefdir was given. 22807if test ${with_keysymdefdir+y} 22808then : 22809 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 22810else case e in #( 22811 e) KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 ;; 22812esac 22813fi 22814 22815 22816if test ! -d "$KEYSYMDEFDIR"; then 22817 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 22818fi 22819 22820FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 22821for i in $FILES; do 22822 if test -f "$KEYSYMDEFDIR/$i"; then 22823 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 22824 elif test "x$i" = "xkeysymdef.h"; then 22825 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 22826 fi 22827done 22828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 22829printf "%s\n" "$KEYSYMDEFS" >&6; } 22830 22831 22832# Check whether --enable-xcms was given. 22833if test ${enable_xcms+y} 22834then : 22835 enableval=$enable_xcms; XCMS=$enableval 22836else case e in #( 22837 e) XCMS=yes ;; 22838esac 22839fi 22840 22841 if test x$XCMS = xyes ; then 22842 XCMS_TRUE= 22843 XCMS_FALSE='#' 22844else 22845 XCMS_TRUE='#' 22846 XCMS_FALSE= 22847fi 22848 22849if test x"$XCMS" = "xyes"; then 22850 22851printf "%s\n" "#define XCMS 1" >>confdefs.h 22852 22853fi 22854 22855# Check whether --enable-xlocale was given. 22856if test ${enable_xlocale+y} 22857then : 22858 enableval=$enable_xlocale; XLOCALE=$enableval 22859else case e in #( 22860 e) XLOCALE=yes ;; 22861esac 22862fi 22863 22864 22865 if test x$XLOCALE = xyes ; then 22866 XLOCALE_TRUE= 22867 XLOCALE_FALSE='#' 22868else 22869 XLOCALE_TRUE='#' 22870 XLOCALE_FALSE= 22871fi 22872 22873if test x"$XLOCALE" = "xyes"; then 22874 22875printf "%s\n" "#define XLOCALE 1" >>confdefs.h 22876 22877fi 22878 22879# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 22880# don't have either issetugid() or getresuid(), and you need to protect 22881# clients that are setgid or setuid to an id other than 0. 22882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 22883printf %s "checking if XLOCALEDIR support should be enabled... " >&6; } 22884# Check whether --enable-xlocaledir was given. 22885if test ${enable_xlocaledir+y} 22886then : 22887 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 22888else case e in #( 22889 e) ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE ;; 22890esac 22891fi 22892 22893if test "x$ENABLE_XLOCALEDIR" = "xno"; then 22894 22895printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h 22896 22897fi 22898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 22899printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; } 22900 22901# Check whether --enable-xf86bigfont was given. 22902if test ${enable_xf86bigfont+y} 22903then : 22904 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 22905else case e in #( 22906 e) XF86BIGFONT="yes" ;; 22907esac 22908fi 22909 22910if test "x$XF86BIGFONT" = "xyes"; then 22911 22912pkg_failed=no 22913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 22914printf %s "checking for BIGFONT... " >&6; } 22915 22916if test -n "$BIGFONT_CFLAGS"; then 22917 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 22918 elif test -n "$PKG_CONFIG"; then 22919 if test -n "$PKG_CONFIG" && \ 22920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22921 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22922 ac_status=$? 22923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22924 test $ac_status = 0; }; then 22925 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22926 test "x$?" != "x0" && pkg_failed=yes 22927else 22928 pkg_failed=yes 22929fi 22930 else 22931 pkg_failed=untried 22932fi 22933if test -n "$BIGFONT_LIBS"; then 22934 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 22935 elif test -n "$PKG_CONFIG"; then 22936 if test -n "$PKG_CONFIG" && \ 22937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 22938 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 22939 ac_status=$? 22940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22941 test $ac_status = 0; }; then 22942 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 22943 test "x$?" != "x0" && pkg_failed=yes 22944else 22945 pkg_failed=yes 22946fi 22947 else 22948 pkg_failed=untried 22949fi 22950 22951 22952 22953if test $pkg_failed = yes; then 22954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22955printf "%s\n" "no" >&6; } 22956 22957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22958 _pkg_short_errors_supported=yes 22959else 22960 _pkg_short_errors_supported=no 22961fi 22962 if test $_pkg_short_errors_supported = yes; then 22963 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22964 else 22965 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 22966 fi 22967 # Put the nasty error message in config.log where it belongs 22968 echo "$BIGFONT_PKG_ERRORS" >&5 22969 22970 XF86BIGFONT="no" 22971elif test $pkg_failed = untried; then 22972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22973printf "%s\n" "no" >&6; } 22974 XF86BIGFONT="no" 22975else 22976 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 22977 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 22978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22979printf "%s\n" "yes" >&6; } 22980 22981printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 22982 22983fi 22984fi 22985 22986# Check whether --enable-xkb was given. 22987if test ${enable_xkb+y} 22988then : 22989 enableval=$enable_xkb; XKB=$enableval 22990else case e in #( 22991 e) XKB=yes ;; 22992esac 22993fi 22994 22995 22996 if test x$XKB = xyes ; then 22997 XKB_TRUE= 22998 XKB_FALSE='#' 22999else 23000 XKB_TRUE='#' 23001 XKB_FALSE= 23002fi 23003 23004if test x"$XKB" = "xyes"; then 23005 XKBPROTO_REQUIRES="kbproto" 23006 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 23007 23008printf "%s\n" "#define XKB 1" >>confdefs.h 23009 23010else 23011 XKBPROTO_REQUIRES="" 23012fi 23013 23014 23015 23016ac_func= 23017for ac_item in $ac_func_c_list 23018do 23019 if test $ac_func; then 23020 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 23021 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 23022 echo "#define $ac_item 1" >> confdefs.h 23023 fi 23024 ac_func= 23025 else 23026 ac_func=$ac_item 23027 fi 23028done 23029 23030 23031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 23032printf %s "checking for working mmap... " >&6; } 23033if test ${ac_cv_func_mmap_fixed_mapped+y} 23034then : 23035 printf %s "(cached) " >&6 23036else case e in #( 23037 e) if test "$cross_compiling" = yes 23038then : 23039 case "$host_os" in # (( 23040 # Guess yes on platforms where we know the result. 23041 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 23042 # If we don't know, assume the worst. 23043 *) ac_cv_func_mmap_fixed_mapped=no ;; 23044 esac 23045else case e in #( 23046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23047/* end confdefs.h. */ 23048$ac_includes_default 23049/* malloc might have been renamed as rpl_malloc. */ 23050#undef malloc 23051 23052/* Thanks to Mike Haertel and Jim Avera for this test. 23053 Here is a matrix of mmap possibilities: 23054 mmap private not fixed 23055 mmap private fixed at somewhere currently unmapped 23056 mmap private fixed at somewhere already mapped 23057 mmap shared not fixed 23058 mmap shared fixed at somewhere currently unmapped 23059 mmap shared fixed at somewhere already mapped 23060 For private mappings, we should verify that changes cannot be read() 23061 back from the file, nor mmap's back from the file at a different 23062 address. (There have been systems where private was not correctly 23063 implemented like the infamous i386 svr4.0, and systems where the 23064 VM page cache was not coherent with the file system buffer cache 23065 like early versions of FreeBSD and possibly contemporary NetBSD.) 23066 For shared mappings, we should conversely verify that changes get 23067 propagated back to all the places they're supposed to be. */ 23068 23069#include <fcntl.h> 23070#include <sys/mman.h> 23071 23072#ifndef getpagesize 23073/* Prefer sysconf to the legacy getpagesize function, as getpagesize has 23074 been removed from POSIX and is limited to page sizes that fit in 'int'. */ 23075# ifdef _SC_PAGESIZE 23076# define getpagesize() sysconf (_SC_PAGESIZE) 23077# elif defined _SC_PAGE_SIZE 23078# define getpagesize() sysconf (_SC_PAGE_SIZE) 23079# elif HAVE_GETPAGESIZE 23080int getpagesize (); 23081# else 23082# ifdef HAVE_SYS_PARAM_H 23083# include <sys/param.h> 23084# ifdef EXEC_PAGESIZE 23085# define getpagesize() EXEC_PAGESIZE 23086# else /* no EXEC_PAGESIZE */ 23087# ifdef NBPG 23088# define getpagesize() NBPG * CLSIZE 23089# ifndef CLSIZE 23090# define CLSIZE 1 23091# endif /* no CLSIZE */ 23092# else /* no NBPG */ 23093# ifdef NBPC 23094# define getpagesize() NBPC 23095# else /* no NBPC */ 23096# ifdef PAGESIZE 23097# define getpagesize() PAGESIZE 23098# endif /* PAGESIZE */ 23099# endif /* no NBPC */ 23100# endif /* no NBPG */ 23101# endif /* no EXEC_PAGESIZE */ 23102# else /* no HAVE_SYS_PARAM_H */ 23103# define getpagesize() 8192 /* punt totally */ 23104# endif /* no HAVE_SYS_PARAM_H */ 23105# endif 23106#endif 23107 23108int 23109main (void) 23110{ 23111 char *data, *data2, *data3; 23112 const char *cdata2; 23113 long i, pagesize; 23114 int fd, fd2; 23115 23116 pagesize = getpagesize (); 23117 23118 /* First, make a file with some known garbage in it. */ 23119 data = (char *) malloc (pagesize); 23120 if (!data) 23121 return 1; 23122 for (i = 0; i < pagesize; ++i) 23123 *(data + i) = rand (); 23124 umask (0); 23125 fd = creat ("conftest.mmap", 0600); 23126 if (fd < 0) 23127 return 2; 23128 if (write (fd, data, pagesize) != pagesize) 23129 return 3; 23130 close (fd); 23131 23132 /* Next, check that the tail of a page is zero-filled. File must have 23133 non-zero length, otherwise we risk SIGBUS for entire page. */ 23134 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 23135 if (fd2 < 0) 23136 return 4; 23137 cdata2 = ""; 23138 if (write (fd2, cdata2, 1) != 1) 23139 return 5; 23140 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 23141 if (data2 == MAP_FAILED) 23142 return 6; 23143 for (i = 0; i < pagesize; ++i) 23144 if (*(data2 + i)) 23145 return 7; 23146 close (fd2); 23147 /* 'return 8;' not currently used. */ 23148 23149 /* Next, try to mmap the file at a fixed address which already has 23150 something else allocated at it. If we can, also make sure that 23151 we see the same garbage. */ 23152 fd = open ("conftest.mmap", O_RDWR); 23153 if (fd < 0) 23154 return 9; 23155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 23156 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 23157 return 10; 23158 for (i = 0; i < pagesize; ++i) 23159 if (*(data + i) != *(data2 + i)) 23160 return 11; 23161 23162 /* Finally, make sure that changes to the mapped area do not 23163 percolate back to the file as seen by read(). (This is a bug on 23164 some variants of i386 svr4.0.) */ 23165 for (i = 0; i < pagesize; ++i) 23166 *(data2 + i) = *(data2 + i) + 1; 23167 data3 = (char *) malloc (pagesize); 23168 if (!data3) 23169 return 12; 23170 if (read (fd, data3, pagesize) != pagesize) 23171 return 13; 23172 for (i = 0; i < pagesize; ++i) 23173 if (*(data + i) != *(data3 + i)) 23174 return 14; 23175 close (fd); 23176 free (data); 23177 free (data3); 23178 return 0; 23179} 23180_ACEOF 23181if ac_fn_c_try_run "$LINENO" 23182then : 23183 ac_cv_func_mmap_fixed_mapped=yes 23184else case e in #( 23185 e) ac_cv_func_mmap_fixed_mapped=no ;; 23186esac 23187fi 23188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23189 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 23190esac 23191fi 23192 ;; 23193esac 23194fi 23195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 23196printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 23197if test $ac_cv_func_mmap_fixed_mapped = yes; then 23198 23199printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 23200 23201fi 23202rm -f conftest.mmap conftest.txt 23203 23204composecache_default=$ac_cv_func_mmap_fixed_mapped 23205ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 23206if test "x$ac_cv_func_nl_langinfo" = xyes 23207then : 23208 23209else case e in #( 23210 e) composecache_default=no ;; 23211esac 23212fi 23213 23214# Check whether --enable-composecache was given. 23215if test ${enable_composecache+y} 23216then : 23217 enableval=$enable_composecache; COMPOSECACHE=$enableval 23218else case e in #( 23219 e) COMPOSECACHE=$composecache_default ;; 23220esac 23221fi 23222 23223if test x"$COMPOSECACHE" = "xyes"; then 23224 23225printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h 23226 23227fi 23228 23229# Allow checking code with lint, sparse, etc. 23230 23231 23232 23233 23234 23235# Check whether --with-lint was given. 23236if test ${with_lint+y} 23237then : 23238 withval=$with_lint; use_lint=$withval 23239else case e in #( 23240 e) use_lint=no ;; 23241esac 23242fi 23243 23244 23245# Obtain platform specific info like program name and options 23246# The lint program on FreeBSD and NetBSD is different from the one on Solaris 23247case $host_os in 23248 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 23249 lint_name=splint 23250 lint_options="-badflag" 23251 ;; 23252 *freebsd* | *netbsd*) 23253 lint_name=lint 23254 lint_options="-u -b" 23255 ;; 23256 *solaris*) 23257 lint_name=lint 23258 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 23259 ;; 23260esac 23261 23262# Test for the presence of the program (either guessed by the code or spelled out by the user) 23263if test "x$use_lint" = x"yes" ; then 23264 # Extract the first word of "$lint_name", so it can be a program name with args. 23265set dummy $lint_name; ac_word=$2 23266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23267printf %s "checking for $ac_word... " >&6; } 23268if test ${ac_cv_path_LINT+y} 23269then : 23270 printf %s "(cached) " >&6 23271else case e in #( 23272 e) case $LINT in 23273 [\\/]* | ?:[\\/]*) 23274 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 23275 ;; 23276 *) 23277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23278for as_dir in $PATH 23279do 23280 IFS=$as_save_IFS 23281 case $as_dir in #((( 23282 '') as_dir=./ ;; 23283 */) ;; 23284 *) as_dir=$as_dir/ ;; 23285 esac 23286 for ac_exec_ext in '' $ac_executable_extensions; do 23287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23288 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 23289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23290 break 2 23291 fi 23292done 23293 done 23294IFS=$as_save_IFS 23295 23296 ;; 23297esac ;; 23298esac 23299fi 23300LINT=$ac_cv_path_LINT 23301if test -n "$LINT"; then 23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 23303printf "%s\n" "$LINT" >&6; } 23304else 23305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23306printf "%s\n" "no" >&6; } 23307fi 23308 23309 23310 if test "x$LINT" = "x"; then 23311 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 23312 fi 23313elif test "x$use_lint" = x"no" ; then 23314 if test "x$LINT" != "x"; then 23315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 23316printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 23317 fi 23318else 23319 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 23320fi 23321 23322# User supplied flags override default flags 23323if test "x$LINT_FLAGS" != "x"; then 23324 lint_options=$LINT_FLAGS 23325fi 23326 23327LINT_FLAGS=$lint_options 23328 23329 if test "x$LINT" != x; then 23330 LINT_TRUE= 23331 LINT_FALSE='#' 23332else 23333 LINT_TRUE='#' 23334 LINT_FALSE= 23335fi 23336 23337 23338 23339 23340 23341# Check whether --enable-lint-library was given. 23342if test ${enable_lint_library+y} 23343then : 23344 enableval=$enable_lint_library; make_lint_lib=$enableval 23345else case e in #( 23346 e) make_lint_lib=no ;; 23347esac 23348fi 23349 23350 23351if test "x$make_lint_lib" = x"yes" ; then 23352 LINTLIB=llib-lX11.ln 23353 if test "x$LINT" = "x"; then 23354 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 23355 fi 23356elif test "x$make_lint_lib" != x"no" ; then 23357 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 23358fi 23359 23360 23361 if test x$make_lint_lib != xno; then 23362 MAKE_LINT_LIB_TRUE= 23363 MAKE_LINT_LIB_FALSE='#' 23364else 23365 MAKE_LINT_LIB_TRUE='#' 23366 MAKE_LINT_LIB_FALSE= 23367fi 23368 23369 23370 23371 23372X11_DATADIR="${datadir}/X11" 23373 23374 prefix_NONE= 23375 exec_prefix_NONE= 23376 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23377 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23378 eval ax_define_dir="\"$X11_DATADIR\"" 23379 eval ax_define_dir="\"$ax_define_dir\"" 23380 X11_DATADIR="$ax_define_dir" 23381 23382 23383printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h 23384 23385 test "$prefix_NONE" && prefix=NONE 23386 test "$exec_prefix_NONE" && exec_prefix=NONE 23387 23388 23389 23390X11_LIBDIR="${libdir}/X11" 23391 23392 prefix_NONE= 23393 exec_prefix_NONE= 23394 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23395 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23396 eval ax_define_dir="\"$X11_LIBDIR\"" 23397 eval ax_define_dir="\"$ax_define_dir\"" 23398 X11_LIBDIR="$ax_define_dir" 23399 23400 23401printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h 23402 23403 test "$prefix_NONE" && prefix=NONE 23404 test "$exec_prefix_NONE" && exec_prefix=NONE 23405 23406 23407 23408 23409pkg_failed=no 23410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 23411printf %s "checking for X11... " >&6; } 23412 23413if test -n "$X11_CFLAGS"; then 23414 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 23415 elif test -n "$PKG_CONFIG"; then 23416 if test -n "$PKG_CONFIG" && \ 23417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 23418 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 23419 ac_status=$? 23420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23421 test $ac_status = 0; }; then 23422 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 23423 test "x$?" != "x0" && pkg_failed=yes 23424else 23425 pkg_failed=yes 23426fi 23427 else 23428 pkg_failed=untried 23429fi 23430if test -n "$X11_LIBS"; then 23431 pkg_cv_X11_LIBS="$X11_LIBS" 23432 elif test -n "$PKG_CONFIG"; then 23433 if test -n "$PKG_CONFIG" && \ 23434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 23435 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 23436 ac_status=$? 23437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23438 test $ac_status = 0; }; then 23439 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 23440 test "x$?" != "x0" && pkg_failed=yes 23441else 23442 pkg_failed=yes 23443fi 23444 else 23445 pkg_failed=untried 23446fi 23447 23448 23449 23450if test $pkg_failed = yes; then 23451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23452printf "%s\n" "no" >&6; } 23453 23454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23455 _pkg_short_errors_supported=yes 23456else 23457 _pkg_short_errors_supported=no 23458fi 23459 if test $_pkg_short_errors_supported = yes; then 23460 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 23461 else 23462 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 23463 fi 23464 # Put the nasty error message in config.log where it belongs 23465 echo "$X11_PKG_ERRORS" >&5 23466 23467 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 23468 23469$X11_PKG_ERRORS 23470 23471Consider adjusting the PKG_CONFIG_PATH environment variable if you 23472installed software in a non-standard prefix. 23473 23474Alternatively, you may set the environment variables X11_CFLAGS 23475and X11_LIBS to avoid the need to call pkg-config. 23476See the pkg-config man page for more details." "$LINENO" 5 23477elif test $pkg_failed = untried; then 23478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23479printf "%s\n" "no" >&6; } 23480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23481printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23482as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23483is in your PATH or set the PKG_CONFIG environment variable to the full 23484path to pkg-config. 23485 23486Alternatively, you may set the environment variables X11_CFLAGS 23487and X11_LIBS to avoid the need to call pkg-config. 23488See the pkg-config man page for more details. 23489 23490To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23491See 'config.log' for more details" "$LINENO" 5; } 23492else 23493 X11_CFLAGS=$pkg_cv_X11_CFLAGS 23494 X11_LIBS=$pkg_cv_X11_LIBS 23495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23496printf "%s\n" "yes" >&6; } 23497 23498fi 23499X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 23500 23501# 23502# Yes, it would be nice to put the locale data in 23503# /usr/share, but the locale stuff includes loadable 23504# libraries which must be located in the same directory 23505# as the other locale data, so for now, everything lives 23506# in ${libdir} 23507# 23508 23509X11_LOCALEDATADIR="${X11_DATADIR}/locale" 23510 23511 prefix_NONE= 23512 exec_prefix_NONE= 23513 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23514 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23515 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 23516 eval ax_define_dir="\"$ax_define_dir\"" 23517 XLOCALEDATADIR="$ax_define_dir" 23518 23519 23520printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h 23521 23522 test "$prefix_NONE" && prefix=NONE 23523 test "$exec_prefix_NONE" && exec_prefix=NONE 23524 23525 23526 23527 23528# Check whether --with-locale-lib-dir was given. 23529if test ${with_locale_lib_dir+y} 23530then : 23531 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 23532else case e in #( 23533 e) X11_LOCALELIBDIR="${X11_LIBDIR}/locale" ;; 23534esac 23535fi 23536 23537 23538 prefix_NONE= 23539 exec_prefix_NONE= 23540 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23541 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23542 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 23543 eval ax_define_dir="\"$ax_define_dir\"" 23544 XLOCALELIBDIR="$ax_define_dir" 23545 23546 23547printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h 23548 23549 test "$prefix_NONE" && prefix=NONE 23550 test "$exec_prefix_NONE" && exec_prefix=NONE 23551 23552 23553 23554X11_LOCALEDIR="${X11_LOCALEDATADIR}" 23555 23556 prefix_NONE= 23557 exec_prefix_NONE= 23558 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23559 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23560 eval ax_define_dir="\"$X11_LOCALEDIR\"" 23561 eval ax_define_dir="\"$ax_define_dir\"" 23562 XLOCALEDIR="$ax_define_dir" 23563 23564 23565printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h 23566 23567 test "$prefix_NONE" && prefix=NONE 23568 test "$exec_prefix_NONE" && exec_prefix=NONE 23569 23570 23571 23572locales="\ 23573 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 23574 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 23575 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 23576 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 23577 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 23578 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 23579 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 23580 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \ 23581 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ 23582 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \ 23583 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \ 23584 zh_TW zh_TW.big5 zh_TW.UTF-8" 23585 23586 23587XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 23588 23589 prefix_NONE= 23590 exec_prefix_NONE= 23591 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23592 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23593 eval ax_define_dir="\"$XKEYSYMDB\"" 23594 eval ax_define_dir="\"$ax_define_dir\"" 23595 XKEYSYMDB="$ax_define_dir" 23596 23597 23598printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h 23599 23600 test "$prefix_NONE" && prefix=NONE 23601 test "$exec_prefix_NONE" && exec_prefix=NONE 23602 23603 23604XERRORDB="${X11_DATADIR}/XErrorDB" 23605 23606 prefix_NONE= 23607 exec_prefix_NONE= 23608 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23609 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23610 eval ax_define_dir="\"$XERRORDB\"" 23611 eval ax_define_dir="\"$ax_define_dir\"" 23612 XERRORDB="$ax_define_dir" 23613 23614 23615printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h 23616 23617 test "$prefix_NONE" && prefix=NONE 23618 test "$exec_prefix_NONE" && exec_prefix=NONE 23619 23620 23621 23622# Check whether --enable-malloc0returnsnull was given. 23623if test ${enable_malloc0returnsnull+y} 23624then : 23625 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 23626else case e in #( 23627 e) MALLOC_ZERO_RETURNS_NULL=auto ;; 23628esac 23629fi 23630 23631 23632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 23633printf %s "checking whether malloc(0) returns NULL... " >&6; } 23634if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 23635if test ${xorg_cv_malloc0_returns_null+y} 23636then : 23637 printf %s "(cached) " >&6 23638else case e in #( 23639 e) if test "$cross_compiling" = yes 23640then : 23641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23642printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23643as_fn_error $? "cannot run test program while cross compiling 23644See 'config.log' for more details" "$LINENO" 5; } 23645else case e in #( 23646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23647/* end confdefs.h. */ 23648 23649#include <stdlib.h> 23650 23651int 23652main (void) 23653{ 23654 23655 char *m0, *r0, *c0, *p; 23656 m0 = malloc(0); 23657 p = malloc(10); 23658 r0 = realloc(p,0); 23659 c0 = calloc(0,10); 23660 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 23661 23662 ; 23663 return 0; 23664} 23665_ACEOF 23666if ac_fn_c_try_run "$LINENO" 23667then : 23668 xorg_cv_malloc0_returns_null=yes 23669else case e in #( 23670 e) xorg_cv_malloc0_returns_null=no ;; 23671esac 23672fi 23673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23674 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 23675esac 23676fi 23677 ;; 23678esac 23679fi 23680 23681MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 23682fi 23683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 23684printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 23685 23686if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 23687 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 23688 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 23689 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 23690else 23691 MALLOC_ZERO_CFLAGS="" 23692 XMALLOC_ZERO_CFLAGS="" 23693 XTMALLOC_ZERO_CFLAGS="" 23694fi 23695 23696 23697 23698 23699 23700 23701ac_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" 23702 23703cat >confcache <<\_ACEOF 23704# This file is a shell script that caches the results of configure 23705# tests run on this system so they can be shared between configure 23706# scripts and configure runs, see configure's option --config-cache. 23707# It is not useful on other systems. If it contains results you don't 23708# want to keep, you may remove or edit it. 23709# 23710# config.status only pays attention to the cache file if you give it 23711# the --recheck option to rerun configure. 23712# 23713# 'ac_cv_env_foo' variables (set or unset) will be overridden when 23714# loading this file, other *unset* 'ac_cv_foo' will be assigned the 23715# following values. 23716 23717_ACEOF 23718 23719# The following way of writing the cache mishandles newlines in values, 23720# but we know of no workaround that is simple, portable, and efficient. 23721# So, we kill variables containing newlines. 23722# Ultrix sh set writes to stderr and can't be redirected directly, 23723# and sets the high bit in the cache file unless we assign to the vars. 23724( 23725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23726 eval ac_val=\$$ac_var 23727 case $ac_val in #( 23728 *${as_nl}*) 23729 case $ac_var in #( 23730 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23731printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23732 esac 23733 case $ac_var in #( 23734 _ | IFS | as_nl) ;; #( 23735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23736 *) { eval $ac_var=; unset $ac_var;} ;; 23737 esac ;; 23738 esac 23739 done 23740 23741 (set) 2>&1 | 23742 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23743 *${as_nl}ac_space=\ *) 23744 # 'set' does not quote correctly, so add quotes: double-quote 23745 # substitution turns \\\\ into \\, and sed turns \\ into \. 23746 sed -n \ 23747 "s/'/'\\\\''/g; 23748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23749 ;; #( 23750 *) 23751 # 'set' quotes correctly as required by POSIX, so do not add quotes. 23752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23753 ;; 23754 esac | 23755 sort 23756) | 23757 sed ' 23758 /^ac_cv_env_/b end 23759 t clear 23760 :clear 23761 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 23762 t end 23763 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23764 :end' >>confcache 23765if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23766 if test -w "$cache_file"; then 23767 if test "x$cache_file" != "x/dev/null"; then 23768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23769printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 23770 if test ! -f "$cache_file" || test -h "$cache_file"; then 23771 cat confcache >"$cache_file" 23772 else 23773 case $cache_file in #( 23774 */* | ?:*) 23775 mv -f confcache "$cache_file"$$ && 23776 mv -f "$cache_file"$$ "$cache_file" ;; #( 23777 *) 23778 mv -f confcache "$cache_file" ;; 23779 esac 23780 fi 23781 fi 23782 else 23783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23784printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 23785 fi 23786fi 23787rm -f confcache 23788 23789test "x$prefix" = xNONE && prefix=$ac_default_prefix 23790# Let make expand exec_prefix. 23791test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23792 23793DEFS=-DHAVE_CONFIG_H 23794 23795ac_libobjs= 23796ac_ltlibobjs= 23797U= 23798for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23799 # 1. Remove the extension, and $U if already installed. 23800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23801 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 23802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23803 # will be set to the directory where LIBOBJS objects are built. 23804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23806done 23807LIBOBJS=$ac_libobjs 23808 23809LTLIBOBJS=$ac_ltlibobjs 23810 23811 23812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 23813printf %s "checking that generated files are newer than configure... " >&6; } 23814 if test -n "$am_sleep_pid"; then 23815 # Hide warnings about reused PIDs. 23816 wait $am_sleep_pid 2>/dev/null 23817 fi 23818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 23819printf "%s\n" "done" >&6; } 23820if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23821 as_fn_error $? "conditional \"AMDEP\" was never defined. 23822Usually this means the macro was only invoked conditionally." "$LINENO" 5 23823fi 23824if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23825 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23826Usually this means the macro was only invoked conditionally." "$LINENO" 5 23827fi 23828case $enable_silent_rules in # ((( 23829 yes) AM_DEFAULT_VERBOSITY=0;; 23830 no) AM_DEFAULT_VERBOSITY=1;; 23831esac 23832if test $am_cv_make_support_nested_variables = yes; then 23833 AM_V='$(V)' 23834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 23835else 23836 AM_V=$AM_DEFAULT_VERBOSITY 23837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 23838fi 23839 23840 if test -n "$EXEEXT"; then 23841 am__EXEEXT_TRUE= 23842 am__EXEEXT_FALSE='#' 23843else 23844 am__EXEEXT_TRUE='#' 23845 am__EXEEXT_FALSE= 23846fi 23847 23848# Check whether --enable-year2038 was given. 23849if test ${enable_year2038+y} 23850then : 23851 enableval=$enable_year2038; 23852fi 23853 23854if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 23855 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 23856Usually this means the macro was only invoked conditionally." "$LINENO" 5 23857fi 23858if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 23859 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 23860Usually this means the macro was only invoked conditionally." "$LINENO" 5 23861fi 23862if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 23863 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 23864Usually this means the macro was only invoked conditionally." "$LINENO" 5 23865fi 23866if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 23867 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 23868Usually this means the macro was only invoked conditionally." "$LINENO" 5 23869fi 23870if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 23871 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 23872Usually this means the macro was only invoked conditionally." "$LINENO" 5 23873fi 23874if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 23875 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 23876Usually this means the macro was only invoked conditionally." "$LINENO" 5 23877fi 23878if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 23879 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 23880Usually this means the macro was only invoked conditionally." "$LINENO" 5 23881fi 23882if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 23883 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 23884Usually this means the macro was only invoked conditionally." "$LINENO" 5 23885fi 23886if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 23887 as_fn_error $? "conditional \"OS2\" was never defined. 23888Usually this means the macro was only invoked conditionally." "$LINENO" 5 23889fi 23890if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 23891 as_fn_error $? "conditional \"XCMS\" was never defined. 23892Usually this means the macro was only invoked conditionally." "$LINENO" 5 23893fi 23894if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 23895 as_fn_error $? "conditional \"XLOCALE\" was never defined. 23896Usually this means the macro was only invoked conditionally." "$LINENO" 5 23897fi 23898if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 23899 as_fn_error $? "conditional \"XKB\" was never defined. 23900Usually this means the macro was only invoked conditionally." "$LINENO" 5 23901fi 23902if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 23903 as_fn_error $? "conditional \"LINT\" was never defined. 23904Usually this means the macro was only invoked conditionally." "$LINENO" 5 23905fi 23906if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 23907 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 23908Usually this means the macro was only invoked conditionally." "$LINENO" 5 23909fi 23910 23911: "${CONFIG_STATUS=./config.status}" 23912ac_write_fail=0 23913ac_clean_files_save=$ac_clean_files 23914ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23916printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 23917as_write_fail=0 23918cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23919#! $SHELL 23920# Generated by $as_me. 23921# Run this file to recreate the current configuration. 23922# Compiler output produced by configure, useful for debugging 23923# configure, is in config.log if it exists. 23924 23925debug=false 23926ac_cs_recheck=false 23927ac_cs_silent=false 23928 23929SHELL=\${CONFIG_SHELL-$SHELL} 23930export SHELL 23931_ASEOF 23932cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23933## -------------------- ## 23934## M4sh Initialization. ## 23935## -------------------- ## 23936 23937# Be more Bourne compatible 23938DUALCASE=1; export DUALCASE # for MKS sh 23939if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23940then : 23941 emulate sh 23942 NULLCMD=: 23943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23944 # is contrary to our usage. Disable this feature. 23945 alias -g '${1+"$@"}'='"$@"' 23946 setopt NO_GLOB_SUBST 23947else case e in #( 23948 e) case `(set -o) 2>/dev/null` in #( 23949 *posix*) : 23950 set -o posix ;; #( 23951 *) : 23952 ;; 23953esac ;; 23954esac 23955fi 23956 23957 23958 23959# Reset variables that may have inherited troublesome values from 23960# the environment. 23961 23962# IFS needs to be set, to space, tab, and newline, in precisely that order. 23963# (If _AS_PATH_WALK were called with IFS unset, it would have the 23964# side effect of setting IFS to empty, thus disabling word splitting.) 23965# Quoting is to prevent editors from complaining about space-tab. 23966as_nl=' 23967' 23968export as_nl 23969IFS=" "" $as_nl" 23970 23971PS1='$ ' 23972PS2='> ' 23973PS4='+ ' 23974 23975# Ensure predictable behavior from utilities with locale-dependent output. 23976LC_ALL=C 23977export LC_ALL 23978LANGUAGE=C 23979export LANGUAGE 23980 23981# We cannot yet rely on "unset" to work, but we need these variables 23982# to be unset--not just set to an empty or harmless value--now, to 23983# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 23984# also avoids known problems related to "unset" and subshell syntax 23985# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 23986for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 23987do eval test \${$as_var+y} \ 23988 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23989done 23990 23991# Ensure that fds 0, 1, and 2 are open. 23992if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 23993if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 23994if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 23995 23996# The user is always right. 23997if ${PATH_SEPARATOR+false} :; then 23998 PATH_SEPARATOR=: 23999 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24000 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24001 PATH_SEPARATOR=';' 24002 } 24003fi 24004 24005 24006# Find who we are. Look in the path if we contain no directory separator. 24007as_myself= 24008case $0 in #(( 24009 *[\\/]* ) as_myself=$0 ;; 24010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24011for as_dir in $PATH 24012do 24013 IFS=$as_save_IFS 24014 case $as_dir in #((( 24015 '') as_dir=./ ;; 24016 */) ;; 24017 *) as_dir=$as_dir/ ;; 24018 esac 24019 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 24020 done 24021IFS=$as_save_IFS 24022 24023 ;; 24024esac 24025# We did not find ourselves, most probably we were run as 'sh COMMAND' 24026# in which case we are not to be found in the path. 24027if test "x$as_myself" = x; then 24028 as_myself=$0 24029fi 24030if test ! -f "$as_myself"; then 24031 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24032 exit 1 24033fi 24034 24035 24036 24037# as_fn_error STATUS ERROR [LINENO LOG_FD] 24038# ---------------------------------------- 24039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24041# script with STATUS, using 1 if that was 0. 24042as_fn_error () 24043{ 24044 as_status=$1; test $as_status -eq 0 && as_status=1 24045 if test "$4"; then 24046 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24048 fi 24049 printf "%s\n" "$as_me: error: $2" >&2 24050 as_fn_exit $as_status 24051} # as_fn_error 24052 24053 24054# as_fn_set_status STATUS 24055# ----------------------- 24056# Set $? to STATUS, without forking. 24057as_fn_set_status () 24058{ 24059 return $1 24060} # as_fn_set_status 24061 24062# as_fn_exit STATUS 24063# ----------------- 24064# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24065as_fn_exit () 24066{ 24067 set +e 24068 as_fn_set_status $1 24069 exit $1 24070} # as_fn_exit 24071 24072# as_fn_unset VAR 24073# --------------- 24074# Portably unset VAR. 24075as_fn_unset () 24076{ 24077 { eval $1=; unset $1;} 24078} 24079as_unset=as_fn_unset 24080 24081# as_fn_append VAR VALUE 24082# ---------------------- 24083# Append the text in VALUE to the end of the definition contained in VAR. Take 24084# advantage of any shell optimizations that allow amortized linear growth over 24085# repeated appends, instead of the typical quadratic growth present in naive 24086# implementations. 24087if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 24088then : 24089 eval 'as_fn_append () 24090 { 24091 eval $1+=\$2 24092 }' 24093else case e in #( 24094 e) as_fn_append () 24095 { 24096 eval $1=\$$1\$2 24097 } ;; 24098esac 24099fi # as_fn_append 24100 24101# as_fn_arith ARG... 24102# ------------------ 24103# Perform arithmetic evaluation on the ARGs, and store the result in the 24104# global $as_val. Take advantage of shells that can avoid forks. The arguments 24105# must be portable across $(()) and expr. 24106if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 24107then : 24108 eval 'as_fn_arith () 24109 { 24110 as_val=$(( $* )) 24111 }' 24112else case e in #( 24113 e) as_fn_arith () 24114 { 24115 as_val=`expr "$@" || test $? -eq 1` 24116 } ;; 24117esac 24118fi # as_fn_arith 24119 24120 24121if expr a : '\(a\)' >/dev/null 2>&1 && 24122 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24123 as_expr=expr 24124else 24125 as_expr=false 24126fi 24127 24128if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24129 as_basename=basename 24130else 24131 as_basename=false 24132fi 24133 24134if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24135 as_dirname=dirname 24136else 24137 as_dirname=false 24138fi 24139 24140as_me=`$as_basename -- "$0" || 24141$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24142 X"$0" : 'X\(//\)$' \| \ 24143 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24144printf "%s\n" X/"$0" | 24145 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24146 s//\1/ 24147 q 24148 } 24149 /^X\/\(\/\/\)$/{ 24150 s//\1/ 24151 q 24152 } 24153 /^X\/\(\/\).*/{ 24154 s//\1/ 24155 q 24156 } 24157 s/.*/./; q'` 24158 24159# Avoid depending upon Character Ranges. 24160as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24161as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24162as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24163as_cr_digits='0123456789' 24164as_cr_alnum=$as_cr_Letters$as_cr_digits 24165 24166 24167# Determine whether it's possible to make 'echo' print without a newline. 24168# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 24169# for compatibility with existing Makefiles. 24170ECHO_C= ECHO_N= ECHO_T= 24171case `echo -n x` in #((((( 24172-n*) 24173 case `echo 'xy\c'` in 24174 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24175 xy) ECHO_C='\c';; 24176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24177 ECHO_T=' ';; 24178 esac;; 24179*) 24180 ECHO_N='-n';; 24181esac 24182 24183# For backward compatibility with old third-party macros, we provide 24184# the shell variables $as_echo and $as_echo_n. New code should use 24185# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 24186as_echo='printf %s\n' 24187as_echo_n='printf %s' 24188 24189rm -f conf$$ conf$$.exe conf$$.file 24190if test -d conf$$.dir; then 24191 rm -f conf$$.dir/conf$$.file 24192else 24193 rm -f conf$$.dir 24194 mkdir conf$$.dir 2>/dev/null 24195fi 24196if (echo >conf$$.file) 2>/dev/null; then 24197 if ln -s conf$$.file conf$$ 2>/dev/null; then 24198 as_ln_s='ln -s' 24199 # ... but there are two gotchas: 24200 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 24201 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 24202 # In both cases, we have to default to 'cp -pR'. 24203 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24204 as_ln_s='cp -pR' 24205 elif ln conf$$.file conf$$ 2>/dev/null; then 24206 as_ln_s=ln 24207 else 24208 as_ln_s='cp -pR' 24209 fi 24210else 24211 as_ln_s='cp -pR' 24212fi 24213rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24214rmdir conf$$.dir 2>/dev/null 24215 24216 24217# as_fn_mkdir_p 24218# ------------- 24219# Create "$as_dir" as a directory, including parents if necessary. 24220as_fn_mkdir_p () 24221{ 24222 24223 case $as_dir in #( 24224 -*) as_dir=./$as_dir;; 24225 esac 24226 test -d "$as_dir" || eval $as_mkdir_p || { 24227 as_dirs= 24228 while :; do 24229 case $as_dir in #( 24230 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24231 *) as_qdir=$as_dir;; 24232 esac 24233 as_dirs="'$as_qdir' $as_dirs" 24234 as_dir=`$as_dirname -- "$as_dir" || 24235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24236 X"$as_dir" : 'X\(//\)[^/]' \| \ 24237 X"$as_dir" : 'X\(//\)$' \| \ 24238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24239printf "%s\n" X"$as_dir" | 24240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24241 s//\1/ 24242 q 24243 } 24244 /^X\(\/\/\)[^/].*/{ 24245 s//\1/ 24246 q 24247 } 24248 /^X\(\/\/\)$/{ 24249 s//\1/ 24250 q 24251 } 24252 /^X\(\/\).*/{ 24253 s//\1/ 24254 q 24255 } 24256 s/.*/./; q'` 24257 test -d "$as_dir" && break 24258 done 24259 test -z "$as_dirs" || eval "mkdir $as_dirs" 24260 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24261 24262 24263} # as_fn_mkdir_p 24264if mkdir -p . 2>/dev/null; then 24265 as_mkdir_p='mkdir -p "$as_dir"' 24266else 24267 test -d ./-p && rmdir ./-p 24268 as_mkdir_p=false 24269fi 24270 24271 24272# as_fn_executable_p FILE 24273# ----------------------- 24274# Test if FILE is an executable regular file. 24275as_fn_executable_p () 24276{ 24277 test -f "$1" && test -x "$1" 24278} # as_fn_executable_p 24279as_test_x='test -x' 24280as_executable_p=as_fn_executable_p 24281 24282# Sed expression to map a string onto a valid CPP name. 24283as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 24284as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 24285 24286# Sed expression to map a string onto a valid variable name. 24287as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 24288as_tr_sh="eval sed '$as_sed_sh'" # deprecated 24289 24290 24291exec 6>&1 24292## ----------------------------------- ## 24293## Main body of $CONFIG_STATUS script. ## 24294## ----------------------------------- ## 24295_ASEOF 24296test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24297 24298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24299# Save the log message, to keep $0 and so on meaningful, and to 24300# report actual input values of CONFIG_FILES etc. instead of their 24301# values after options handling. 24302ac_log=" 24303This file was extended by libX11 $as_me 1.8.10, which was 24304generated by GNU Autoconf 2.72. Invocation command line was 24305 24306 CONFIG_FILES = $CONFIG_FILES 24307 CONFIG_HEADERS = $CONFIG_HEADERS 24308 CONFIG_LINKS = $CONFIG_LINKS 24309 CONFIG_COMMANDS = $CONFIG_COMMANDS 24310 $ $0 $@ 24311 24312on `(hostname || uname -n) 2>/dev/null | sed 1q` 24313" 24314 24315_ACEOF 24316 24317case $ac_config_files in *" 24318"*) set x $ac_config_files; shift; ac_config_files=$*;; 24319esac 24320 24321case $ac_config_headers in *" 24322"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24323esac 24324 24325 24326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24327# Files that config.status was made for. 24328config_files="$ac_config_files" 24329config_headers="$ac_config_headers" 24330config_commands="$ac_config_commands" 24331 24332_ACEOF 24333 24334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24335ac_cs_usage="\ 24336'$as_me' instantiates files and other configuration actions 24337from templates according to the current configuration. Unless the files 24338and actions are specified as TAGs, all are instantiated by default. 24339 24340Usage: $0 [OPTION]... [TAG]... 24341 24342 -h, --help print this help, then exit 24343 -V, --version print version number and configuration settings, then exit 24344 --config print configuration, then exit 24345 -q, --quiet, --silent 24346 do not print progress messages 24347 -d, --debug don't remove temporary files 24348 --recheck update $as_me by reconfiguring in the same conditions 24349 --file=FILE[:TEMPLATE] 24350 instantiate the configuration file FILE 24351 --header=FILE[:TEMPLATE] 24352 instantiate the configuration header FILE 24353 24354Configuration files: 24355$config_files 24356 24357Configuration headers: 24358$config_headers 24359 24360Configuration commands: 24361$config_commands 24362 24363Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>." 24364 24365_ACEOF 24366ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 24367ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 24368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24369ac_cs_config='$ac_cs_config_escaped' 24370ac_cs_version="\\ 24371libX11 config.status 1.8.10 24372configured by $0, generated by GNU Autoconf 2.72, 24373 with options \\"\$ac_cs_config\\" 24374 24375Copyright (C) 2023 Free Software Foundation, Inc. 24376This config.status script is free software; the Free Software Foundation 24377gives unlimited permission to copy, distribute and modify it." 24378 24379ac_pwd='$ac_pwd' 24380srcdir='$srcdir' 24381INSTALL='$INSTALL' 24382MKDIR_P='$MKDIR_P' 24383AWK='$AWK' 24384test -n "\$AWK" || AWK=awk 24385_ACEOF 24386 24387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24388# The default lists apply if the user does not specify any file. 24389ac_need_defaults=: 24390while test $# != 0 24391do 24392 case $1 in 24393 --*=?*) 24394 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24396 ac_shift=: 24397 ;; 24398 --*=) 24399 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24400 ac_optarg= 24401 ac_shift=: 24402 ;; 24403 *) 24404 ac_option=$1 24405 ac_optarg=$2 24406 ac_shift=shift 24407 ;; 24408 esac 24409 24410 case $ac_option in 24411 # Handling of the options. 24412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24413 ac_cs_recheck=: ;; 24414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24415 printf "%s\n" "$ac_cs_version"; exit ;; 24416 --config | --confi | --conf | --con | --co | --c ) 24417 printf "%s\n" "$ac_cs_config"; exit ;; 24418 --debug | --debu | --deb | --de | --d | -d ) 24419 debug=: ;; 24420 --file | --fil | --fi | --f ) 24421 $ac_shift 24422 case $ac_optarg in 24423 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24424 '') as_fn_error $? "missing file argument" ;; 24425 esac 24426 as_fn_append CONFIG_FILES " '$ac_optarg'" 24427 ac_need_defaults=false;; 24428 --header | --heade | --head | --hea ) 24429 $ac_shift 24430 case $ac_optarg in 24431 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24432 esac 24433 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24434 ac_need_defaults=false;; 24435 --he | --h) 24436 # Conflict between --help and --header 24437 as_fn_error $? "ambiguous option: '$1' 24438Try '$0 --help' for more information.";; 24439 --help | --hel | -h ) 24440 printf "%s\n" "$ac_cs_usage"; exit ;; 24441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24442 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24443 ac_cs_silent=: ;; 24444 24445 # This is an error. 24446 -*) as_fn_error $? "unrecognized option: '$1' 24447Try '$0 --help' for more information." ;; 24448 24449 *) as_fn_append ac_config_targets " $1" 24450 ac_need_defaults=false ;; 24451 24452 esac 24453 shift 24454done 24455 24456ac_configure_extra_args= 24457 24458if $ac_cs_silent; then 24459 exec 6>/dev/null 24460 ac_configure_extra_args="$ac_configure_extra_args --silent" 24461fi 24462 24463_ACEOF 24464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24465if \$ac_cs_recheck; then 24466 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24467 shift 24468 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 24469 CONFIG_SHELL='$SHELL' 24470 export CONFIG_SHELL 24471 exec "\$@" 24472fi 24473 24474_ACEOF 24475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24476exec 5>>config.log 24477{ 24478 echo 24479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24480## Running $as_me. ## 24481_ASBOX 24482 printf "%s\n" "$ac_log" 24483} >&5 24484 24485_ACEOF 24486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24487# 24488# INIT-COMMANDS 24489# 24490AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 24491 24492 24493# The HP-UX ksh and POSIX shell print the target directory to stdout 24494# if CDPATH is set. 24495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24496 24497sed_quote_subst='$sed_quote_subst' 24498double_quote_subst='$double_quote_subst' 24499delay_variable_subst='$delay_variable_subst' 24500macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24501macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24502enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24503enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24504pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24505enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24506shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 24507SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24508ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24509PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24510host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24511host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24512host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24513build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24514build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24515build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24516SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24517Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24518GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24519EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24520FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24521LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24522NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24523LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24524max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24525ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24526exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24527lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24528lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24529lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24530lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24531lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24532reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24533reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24534FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 24535OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24536deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24537file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24538file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24539want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24540DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24541sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24542AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24543lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 24544AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24545archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24546STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24547RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24548old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24549old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24550old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24551lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24552CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24553CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24554compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24555GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24556lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24557lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24558lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 24559lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24560lt_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"`' 24561lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 24562nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24563lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24564lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 24565objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24566MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24567lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24568lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24569lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24570lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24571lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24572need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24573MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24574DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24575NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24576LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24577OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24578OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24579libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24580shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24581extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24582archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24583enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24584export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24585whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24586compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24587old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24588old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24589archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24590archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24591module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24592module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24593with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24594allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24595no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24596hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24597hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24598hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24599hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24600hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24601hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24602hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24603inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24604link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24605always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24606export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24607exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24608include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24609prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24610postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24611file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24612variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24613need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24614need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24615version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24616runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24617shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24618shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24619libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24620library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24621soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24622install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24623postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24624postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24625finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24626finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24627hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24628sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24629configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 24630configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 24631hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24632enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24633enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24634enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24635old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24636striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24637 24638LTCC='$LTCC' 24639LTCFLAGS='$LTCFLAGS' 24640compiler='$compiler_DEFAULT' 24641 24642# A function that is used when there is no print builtin or printf. 24643func_fallback_echo () 24644{ 24645 eval 'cat <<_LTECHO_EOF 24646\$1 24647_LTECHO_EOF' 24648} 24649 24650# Quote evaled strings. 24651for var in SHELL \ 24652ECHO \ 24653PATH_SEPARATOR \ 24654SED \ 24655GREP \ 24656EGREP \ 24657FGREP \ 24658LD \ 24659NM \ 24660LN_S \ 24661lt_SP2NL \ 24662lt_NL2SP \ 24663reload_flag \ 24664FILECMD \ 24665OBJDUMP \ 24666deplibs_check_method \ 24667file_magic_cmd \ 24668file_magic_glob \ 24669want_nocaseglob \ 24670DLLTOOL \ 24671sharedlib_from_linklib_cmd \ 24672AR \ 24673archiver_list_spec \ 24674STRIP \ 24675RANLIB \ 24676CC \ 24677CFLAGS \ 24678compiler \ 24679lt_cv_sys_global_symbol_pipe \ 24680lt_cv_sys_global_symbol_to_cdecl \ 24681lt_cv_sys_global_symbol_to_import \ 24682lt_cv_sys_global_symbol_to_c_name_address \ 24683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24684lt_cv_nm_interface \ 24685nm_file_list_spec \ 24686lt_cv_truncate_bin \ 24687lt_prog_compiler_no_builtin_flag \ 24688lt_prog_compiler_pic \ 24689lt_prog_compiler_wl \ 24690lt_prog_compiler_static \ 24691lt_cv_prog_compiler_c_o \ 24692need_locks \ 24693MANIFEST_TOOL \ 24694DSYMUTIL \ 24695NMEDIT \ 24696LIPO \ 24697OTOOL \ 24698OTOOL64 \ 24699shrext_cmds \ 24700export_dynamic_flag_spec \ 24701whole_archive_flag_spec \ 24702compiler_needs_object \ 24703with_gnu_ld \ 24704allow_undefined_flag \ 24705no_undefined_flag \ 24706hardcode_libdir_flag_spec \ 24707hardcode_libdir_separator \ 24708exclude_expsyms \ 24709include_expsyms \ 24710file_list_spec \ 24711variables_saved_for_relink \ 24712libname_spec \ 24713library_names_spec \ 24714soname_spec \ 24715install_override_mode \ 24716finish_eval \ 24717old_striplib \ 24718striplib; do 24719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24720 *[\\\\\\\`\\"\\\$]*) 24721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24722 ;; 24723 *) 24724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24725 ;; 24726 esac 24727done 24728 24729# Double-quote double-evaled strings. 24730for var in reload_cmds \ 24731old_postinstall_cmds \ 24732old_postuninstall_cmds \ 24733old_archive_cmds \ 24734extract_expsyms_cmds \ 24735old_archive_from_new_cmds \ 24736old_archive_from_expsyms_cmds \ 24737archive_cmds \ 24738archive_expsym_cmds \ 24739module_cmds \ 24740module_expsym_cmds \ 24741export_symbols_cmds \ 24742prelink_cmds \ 24743postlink_cmds \ 24744postinstall_cmds \ 24745postuninstall_cmds \ 24746finish_cmds \ 24747sys_lib_search_path_spec \ 24748configure_time_dlsearch_path \ 24749configure_time_lt_sys_library_path; do 24750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24751 *[\\\\\\\`\\"\\\$]*) 24752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24753 ;; 24754 *) 24755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24756 ;; 24757 esac 24758done 24759 24760ac_aux_dir='$ac_aux_dir' 24761 24762# See if we are running on zsh, and set the options that allow our 24763# commands through without removal of \ escapes INIT. 24764if test -n "\${ZSH_VERSION+set}"; then 24765 setopt NO_GLOB_SUBST 24766fi 24767 24768 24769 PACKAGE='$PACKAGE' 24770 VERSION='$VERSION' 24771 RM='$RM' 24772 ofile='$ofile' 24773 24774 24775 24776 24777_ACEOF 24778 24779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24780 24781# Handling of arguments. 24782for ac_config_target in $ac_config_targets 24783do 24784 case $ac_config_target in 24785 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 24786 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 24787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24788 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24790 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24791 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24792 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 24793 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24794 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 24795 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 24796 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 24797 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 24798 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 24799 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 24800 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 24801 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 24802 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 24803 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 24804 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 24805 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 24806 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 24807 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 24808 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 24809 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 24810 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 24811 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 24812 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 24813 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 24814 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 24815 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 24816 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 24817 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 24818 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 24819 24820 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 24821 esac 24822done 24823 24824 24825# If the user did not use the arguments to specify the items to instantiate, 24826# then the envvar interface is used. Set only those that are not. 24827# We use the long form for the default assignment because of an extremely 24828# bizarre bug on SunOS 4.1.3. 24829if $ac_need_defaults; then 24830 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 24831 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 24832 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 24833fi 24834 24835# Have a temporary directory for convenience. Make it in the build tree 24836# simply because there is no reason against having it here, and in addition, 24837# creating and moving files from /tmp can sometimes cause problems. 24838# Hook for its removal unless debugging. 24839# Note that there is a small window in which the directory will not be cleaned: 24840# after its creation but before its name has been assigned to '$tmp'. 24841$debug || 24842{ 24843 tmp= ac_tmp= 24844 trap 'exit_status=$? 24845 : "${ac_tmp:=$tmp}" 24846 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24847' 0 24848 trap 'as_fn_exit 1' 1 2 13 15 24849} 24850# Create a (secure) tmp directory for tmp files. 24851 24852{ 24853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24854 test -d "$tmp" 24855} || 24856{ 24857 tmp=./conf$$-$RANDOM 24858 (umask 077 && mkdir "$tmp") 24859} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24860ac_tmp=$tmp 24861 24862# Set up the scripts for CONFIG_FILES section. 24863# No need to generate them if there are no CONFIG_FILES. 24864# This happens for instance with './config.status config.h'. 24865if test -n "$CONFIG_FILES"; then 24866 24867 24868ac_cr=`echo X | tr X '\015'` 24869# On cygwin, bash can eat \r inside `` if the user requested igncr. 24870# But we know of no other shell where ac_cr would be empty at this 24871# point, so we can use a bashism as a fallback. 24872if test "x$ac_cr" = x; then 24873 eval ac_cr=\$\'\\r\' 24874fi 24875ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24876if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24877 ac_cs_awk_cr='\\r' 24878else 24879 ac_cs_awk_cr=$ac_cr 24880fi 24881 24882echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24883_ACEOF 24884 24885 24886{ 24887 echo "cat >conf$$subs.awk <<_ACEOF" && 24888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24889 echo "_ACEOF" 24890} >conf$$subs.sh || 24891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24892ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24893ac_delim='%!_!# ' 24894for ac_last_try in false false false false false :; do 24895 . ./conf$$subs.sh || 24896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24897 24898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24899 if test $ac_delim_n = $ac_delim_num; then 24900 break 24901 elif $ac_last_try; then 24902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24903 else 24904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24905 fi 24906done 24907rm -f conf$$subs.sh 24908 24909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24910cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24911_ACEOF 24912sed -n ' 24913h 24914s/^/S["/; s/!.*/"]=/ 24915p 24916g 24917s/^[^!]*!// 24918:repl 24919t repl 24920s/'"$ac_delim"'$// 24921t delim 24922:nl 24923h 24924s/\(.\{148\}\)..*/\1/ 24925t more1 24926s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24927p 24928n 24929b repl 24930:more1 24931s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24932p 24933g 24934s/.\{148\}// 24935t nl 24936:delim 24937h 24938s/\(.\{148\}\)..*/\1/ 24939t more2 24940s/["\\]/\\&/g; s/^/"/; s/$/"/ 24941p 24942b 24943:more2 24944s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24945p 24946g 24947s/.\{148\}// 24948t delim 24949' <conf$$subs.awk | sed ' 24950/^[^""]/{ 24951 N 24952 s/\n// 24953} 24954' >>$CONFIG_STATUS || ac_write_fail=1 24955rm -f conf$$subs.awk 24956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24957_ACAWK 24958cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24959 for (key in S) S_is_set[key] = 1 24960 FS = "" 24961 24962} 24963{ 24964 line = $ 0 24965 nfields = split(line, field, "@") 24966 substed = 0 24967 len = length(field[1]) 24968 for (i = 2; i < nfields; i++) { 24969 key = field[i] 24970 keylen = length(key) 24971 if (S_is_set[key]) { 24972 value = S[key] 24973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24974 len += length(value) + length(field[++i]) 24975 substed = 1 24976 } else 24977 len += 1 + keylen 24978 } 24979 24980 print line 24981} 24982 24983_ACAWK 24984_ACEOF 24985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24986if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24987 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24988else 24989 cat 24990fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24991 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24992_ACEOF 24993 24994# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24995# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24996# trailing colons and then remove the whole line if VPATH becomes empty 24997# (actually we leave an empty line to preserve line numbers). 24998if test "x$srcdir" = x.; then 24999 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25000h 25001s/// 25002s/^/:/ 25003s/[ ]*$/:/ 25004s/:\$(srcdir):/:/g 25005s/:\${srcdir}:/:/g 25006s/:@srcdir@:/:/g 25007s/^:*// 25008s/:*$// 25009x 25010s/\(=[ ]*\).*/\1/ 25011G 25012s/\n// 25013s/^[^=]*=[ ]*$// 25014}' 25015fi 25016 25017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25018fi # test -n "$CONFIG_FILES" 25019 25020# Set up the scripts for CONFIG_HEADERS section. 25021# No need to generate them if there are no CONFIG_HEADERS. 25022# This happens for instance with './config.status Makefile'. 25023if test -n "$CONFIG_HEADERS"; then 25024cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25025BEGIN { 25026_ACEOF 25027 25028# Transform confdefs.h into an awk script 'defines.awk', embedded as 25029# here-document in config.status, that substitutes the proper values into 25030# config.h.in to produce config.h. 25031 25032# Create a delimiter string that does not exist in confdefs.h, to ease 25033# handling of long lines. 25034ac_delim='%!_!# ' 25035for ac_last_try in false false :; do 25036 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25037 if test -z "$ac_tt"; then 25038 break 25039 elif $ac_last_try; then 25040 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25041 else 25042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25043 fi 25044done 25045 25046# For the awk script, D is an array of macro values keyed by name, 25047# likewise P contains macro parameters if any. Preserve backslash 25048# newline sequences. 25049 25050ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25051sed -n ' 25052s/.\{148\}/&'"$ac_delim"'/g 25053t rset 25054:rset 25055s/^[ ]*#[ ]*define[ ][ ]*/ / 25056t def 25057d 25058:def 25059s/\\$// 25060t bsnl 25061s/["\\]/\\&/g 25062s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25063D["\1"]=" \3"/p 25064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25065d 25066:bsnl 25067s/["\\]/\\&/g 25068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25069D["\1"]=" \3\\\\\\n"\\/p 25070t cont 25071s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25072t cont 25073d 25074:cont 25075n 25076s/.\{148\}/&'"$ac_delim"'/g 25077t clear 25078:clear 25079s/\\$// 25080t bsnlc 25081s/["\\]/\\&/g; s/^/"/; s/$/"/p 25082d 25083:bsnlc 25084s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25085b cont 25086' <confdefs.h | sed ' 25087s/'"$ac_delim"'/"\\\ 25088"/g' >>$CONFIG_STATUS || ac_write_fail=1 25089 25090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25091 for (key in D) D_is_set[key] = 1 25092 FS = "" 25093} 25094/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25095 line = \$ 0 25096 split(line, arg, " ") 25097 if (arg[1] == "#") { 25098 defundef = arg[2] 25099 mac1 = arg[3] 25100 } else { 25101 defundef = substr(arg[1], 2) 25102 mac1 = arg[2] 25103 } 25104 split(mac1, mac2, "(") #) 25105 macro = mac2[1] 25106 prefix = substr(line, 1, index(line, defundef) - 1) 25107 if (D_is_set[macro]) { 25108 # Preserve the white space surrounding the "#". 25109 print prefix "define", macro P[macro] D[macro] 25110 next 25111 } else { 25112 # Replace #undef with comments. This is necessary, for example, 25113 # in the case of _POSIX_SOURCE, which is predefined and required 25114 # on some systems where configure will not decide to define it. 25115 if (defundef == "undef") { 25116 print "/*", prefix defundef, macro, "*/" 25117 next 25118 } 25119 } 25120} 25121{ print } 25122_ACAWK 25123_ACEOF 25124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25125 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25126fi # test -n "$CONFIG_HEADERS" 25127 25128 25129eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25130shift 25131for ac_tag 25132do 25133 case $ac_tag in 25134 :[FHLC]) ac_mode=$ac_tag; continue;; 25135 esac 25136 case $ac_mode$ac_tag in 25137 :[FHL]*:*);; 25138 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 25139 :[FH]-) ac_tag=-:-;; 25140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25141 esac 25142 ac_save_IFS=$IFS 25143 IFS=: 25144 set x $ac_tag 25145 IFS=$ac_save_IFS 25146 shift 25147 ac_file=$1 25148 shift 25149 25150 case $ac_mode in 25151 :L) ac_source=$1;; 25152 :[FH]) 25153 ac_file_inputs= 25154 for ac_f 25155 do 25156 case $ac_f in 25157 -) ac_f="$ac_tmp/stdin";; 25158 *) # Look for the file first in the build tree, then in the source tree 25159 # (if the path is not absolute). The absolute path cannot be DOS-style, 25160 # because $ac_f cannot contain ':'. 25161 test -f "$ac_f" || 25162 case $ac_f in 25163 [\\/$]*) false;; 25164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25165 esac || 25166 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 25167 esac 25168 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25169 as_fn_append ac_file_inputs " '$ac_f'" 25170 done 25171 25172 # Let's still pretend it is 'configure' which instantiates (i.e., don't 25173 # use $as_me), people would be surprised to read: 25174 # /* config.h. Generated by config.status. */ 25175 configure_input='Generated from '` 25176 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25177 `' by configure.' 25178 if test x"$ac_file" != x-; then 25179 configure_input="$ac_file. $configure_input" 25180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25181printf "%s\n" "$as_me: creating $ac_file" >&6;} 25182 fi 25183 # Neutralize special characters interpreted by sed in replacement strings. 25184 case $configure_input in #( 25185 *\&* | *\|* | *\\* ) 25186 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 25187 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25188 *) ac_sed_conf_input=$configure_input;; 25189 esac 25190 25191 case $ac_tag in 25192 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25194 esac 25195 ;; 25196 esac 25197 25198 ac_dir=`$as_dirname -- "$ac_file" || 25199$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25200 X"$ac_file" : 'X\(//\)[^/]' \| \ 25201 X"$ac_file" : 'X\(//\)$' \| \ 25202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25203printf "%s\n" X"$ac_file" | 25204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25205 s//\1/ 25206 q 25207 } 25208 /^X\(\/\/\)[^/].*/{ 25209 s//\1/ 25210 q 25211 } 25212 /^X\(\/\/\)$/{ 25213 s//\1/ 25214 q 25215 } 25216 /^X\(\/\).*/{ 25217 s//\1/ 25218 q 25219 } 25220 s/.*/./; q'` 25221 as_dir="$ac_dir"; as_fn_mkdir_p 25222 ac_builddir=. 25223 25224case "$ac_dir" in 25225.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25226*) 25227 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 25228 # A ".." for each directory in $ac_dir_suffix. 25229 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25230 case $ac_top_builddir_sub in 25231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25233 esac ;; 25234esac 25235ac_abs_top_builddir=$ac_pwd 25236ac_abs_builddir=$ac_pwd$ac_dir_suffix 25237# for backward compatibility: 25238ac_top_builddir=$ac_top_build_prefix 25239 25240case $srcdir in 25241 .) # We are building in place. 25242 ac_srcdir=. 25243 ac_top_srcdir=$ac_top_builddir_sub 25244 ac_abs_top_srcdir=$ac_pwd ;; 25245 [\\/]* | ?:[\\/]* ) # Absolute name. 25246 ac_srcdir=$srcdir$ac_dir_suffix; 25247 ac_top_srcdir=$srcdir 25248 ac_abs_top_srcdir=$srcdir ;; 25249 *) # Relative name. 25250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25251 ac_top_srcdir=$ac_top_build_prefix$srcdir 25252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25253esac 25254ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25255 25256 25257 case $ac_mode in 25258 :F) 25259 # 25260 # CONFIG_FILE 25261 # 25262 25263 case $INSTALL in 25264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25266 esac 25267 ac_MKDIR_P=$MKDIR_P 25268 case $MKDIR_P in 25269 [\\/$]* | ?:[\\/]* ) ;; 25270 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25271 esac 25272_ACEOF 25273 25274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25275# If the template does not know about datarootdir, expand it. 25276# FIXME: This hack should be removed a few years after 2.60. 25277ac_datarootdir_hack=; ac_datarootdir_seen= 25278ac_sed_dataroot=' 25279/datarootdir/ { 25280 p 25281 q 25282} 25283/@datadir@/p 25284/@docdir@/p 25285/@infodir@/p 25286/@localedir@/p 25287/@mandir@/p' 25288case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25289*datarootdir*) ac_datarootdir_seen=yes;; 25290*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25292printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25293_ACEOF 25294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25295 ac_datarootdir_hack=' 25296 s&@datadir@&$datadir&g 25297 s&@docdir@&$docdir&g 25298 s&@infodir@&$infodir&g 25299 s&@localedir@&$localedir&g 25300 s&@mandir@&$mandir&g 25301 s&\\\${datarootdir}&$datarootdir&g' ;; 25302esac 25303_ACEOF 25304 25305# Neutralize VPATH when '$srcdir' = '.'. 25306# Shell code in configure.ac might set extrasub. 25307# FIXME: do we really want to maintain this feature? 25308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25309ac_sed_extra="$ac_vpsub 25310$extrasub 25311_ACEOF 25312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25313:t 25314/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25315s|@configure_input@|$ac_sed_conf_input|;t t 25316s&@top_builddir@&$ac_top_builddir_sub&;t t 25317s&@top_build_prefix@&$ac_top_build_prefix&;t t 25318s&@srcdir@&$ac_srcdir&;t t 25319s&@abs_srcdir@&$ac_abs_srcdir&;t t 25320s&@top_srcdir@&$ac_top_srcdir&;t t 25321s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25322s&@builddir@&$ac_builddir&;t t 25323s&@abs_builddir@&$ac_abs_builddir&;t t 25324s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25325s&@INSTALL@&$ac_INSTALL&;t t 25326s&@MKDIR_P@&$ac_MKDIR_P&;t t 25327$ac_datarootdir_hack 25328" 25329eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25331 25332test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25335 "$ac_tmp/out"`; test -z "$ac_out"; } && 25336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 25337which seems to be undefined. Please make sure it is defined" >&5 25338printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 25339which seems to be undefined. Please make sure it is defined" >&2;} 25340 25341 rm -f "$ac_tmp/stdin" 25342 case $ac_file in 25343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25345 esac \ 25346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25347 ;; 25348 :H) 25349 # 25350 # CONFIG_HEADER 25351 # 25352 if test x"$ac_file" != x-; then 25353 { 25354 printf "%s\n" "/* $configure_input */" >&1 \ 25355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25356 } >"$ac_tmp/config.h" \ 25357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25358 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25360printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 25361 else 25362 rm -f "$ac_file" 25363 mv "$ac_tmp/config.h" "$ac_file" \ 25364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25365 fi 25366 else 25367 printf "%s\n" "/* $configure_input */" >&1 \ 25368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25369 || as_fn_error $? "could not create -" "$LINENO" 5 25370 fi 25371# Compute "$ac_file"'s index in $config_headers. 25372_am_arg="$ac_file" 25373_am_stamp_count=1 25374for _am_header in $config_headers :; do 25375 case $_am_header in 25376 $_am_arg | $_am_arg:* ) 25377 break ;; 25378 * ) 25379 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25380 esac 25381done 25382echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25383$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25384 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25385 X"$_am_arg" : 'X\(//\)$' \| \ 25386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25387printf "%s\n" X"$_am_arg" | 25388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25389 s//\1/ 25390 q 25391 } 25392 /^X\(\/\/\)[^/].*/{ 25393 s//\1/ 25394 q 25395 } 25396 /^X\(\/\/\)$/{ 25397 s//\1/ 25398 q 25399 } 25400 /^X\(\/\).*/{ 25401 s//\1/ 25402 q 25403 } 25404 s/.*/./; q'`/stamp-h$_am_stamp_count 25405 ;; 25406 25407 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25408printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 25409 ;; 25410 esac 25411 25412 25413 case $ac_file$ac_mode in 25414 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 25415 # Older Autoconf quotes --file arguments for eval, but not when files 25416 # are listed without --file. Let's play safe and only enable the eval 25417 # if we detect the quoting. 25418 # TODO: see whether this extra hack can be removed once we start 25419 # requiring Autoconf 2.70 or later. 25420 case $CONFIG_FILES in #( 25421 *\'*) : 25422 eval set x "$CONFIG_FILES" ;; #( 25423 *) : 25424 set x $CONFIG_FILES ;; #( 25425 *) : 25426 ;; 25427esac 25428 shift 25429 # Used to flag and report bootstrapping failures. 25430 am_rc=0 25431 for am_mf 25432 do 25433 # Strip MF so we end up with the name of the file. 25434 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 25435 # Check whether this is an Automake generated Makefile which includes 25436 # dependency-tracking related rules and includes. 25437 # Grep'ing the whole file directly is not great: AIX grep has a line 25438 # limit of 2048, but all sed's we know have understand at least 4000. 25439 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 25440 || continue 25441 am_dirpart=`$as_dirname -- "$am_mf" || 25442$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25443 X"$am_mf" : 'X\(//\)[^/]' \| \ 25444 X"$am_mf" : 'X\(//\)$' \| \ 25445 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25446printf "%s\n" X"$am_mf" | 25447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25448 s//\1/ 25449 q 25450 } 25451 /^X\(\/\/\)[^/].*/{ 25452 s//\1/ 25453 q 25454 } 25455 /^X\(\/\/\)$/{ 25456 s//\1/ 25457 q 25458 } 25459 /^X\(\/\).*/{ 25460 s//\1/ 25461 q 25462 } 25463 s/.*/./; q'` 25464 am_filepart=`$as_basename -- "$am_mf" || 25465$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 25466 X"$am_mf" : 'X\(//\)$' \| \ 25467 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25468printf "%s\n" X/"$am_mf" | 25469 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25470 s//\1/ 25471 q 25472 } 25473 /^X\/\(\/\/\)$/{ 25474 s//\1/ 25475 q 25476 } 25477 /^X\/\(\/\).*/{ 25478 s//\1/ 25479 q 25480 } 25481 s/.*/./; q'` 25482 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 25483 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25484 | $MAKE -f - am--depfiles" >&5 25485 (cd "$am_dirpart" \ 25486 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25487 | $MAKE -f - am--depfiles) >&5 2>&5 25488 ac_status=$? 25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25490 (exit $ac_status); } || am_rc=$? 25491 done 25492 if test $am_rc -ne 0; then 25493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25494printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25495as_fn_error $? "Something went wrong bootstrapping makefile fragments 25496 for automatic dependency tracking. If GNU make was not used, consider 25497 re-running the configure script with MAKE=\"gmake\" (or whatever is 25498 necessary). You can also try re-running configure with the 25499 '--disable-dependency-tracking' option to at least be able to build 25500 the package (albeit without support for automatic dependency tracking). 25501See 'config.log' for more details" "$LINENO" 5; } 25502 fi 25503 { am_dirpart=; unset am_dirpart;} 25504 { am_filepart=; unset am_filepart;} 25505 { am_mf=; unset am_mf;} 25506 { am_rc=; unset am_rc;} 25507 rm -f conftest-deps.mk 25508} 25509 ;; 25510 "libtool":C) 25511 25512 # See if we are running on zsh, and set the options that allow our 25513 # commands through without removal of \ escapes. 25514 if test -n "${ZSH_VERSION+set}"; then 25515 setopt NO_GLOB_SUBST 25516 fi 25517 25518 cfgfile=${ofile}T 25519 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25520 $RM "$cfgfile" 25521 25522 cat <<_LT_EOF >> "$cfgfile" 25523#! $SHELL 25524# Generated automatically by $as_me ($PACKAGE) $VERSION 25525# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25526# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25527 25528# Provide generalized library-building support services. 25529# Written by Gordon Matzigkeit, 1996 25530 25531# Copyright (C) 2014 Free Software Foundation, Inc. 25532# This is free software; see the source for copying conditions. There is NO 25533# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25534 25535# GNU Libtool is free software; you can redistribute it and/or modify 25536# it under the terms of the GNU General Public License as published by 25537# the Free Software Foundation; either version 2 of of the License, or 25538# (at your option) any later version. 25539# 25540# As a special exception to the GNU General Public License, if you 25541# distribute this file as part of a program or library that is built 25542# using GNU Libtool, you may include this file under the same 25543# distribution terms that you use for the rest of that program. 25544# 25545# GNU Libtool is distributed in the hope that it will be useful, but 25546# WITHOUT ANY WARRANTY; without even the implied warranty of 25547# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25548# GNU General Public License for more details. 25549# 25550# You should have received a copy of the GNU General Public License 25551# along with this program. If not, see <http://www.gnu.org/licenses/>. 25552 25553 25554# The names of the tagged configurations supported by this script. 25555available_tags='' 25556 25557# Configured defaults for sys_lib_dlsearch_path munging. 25558: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 25559 25560# ### BEGIN LIBTOOL CONFIG 25561 25562# Which release of libtool.m4 was used? 25563macro_version=$macro_version 25564macro_revision=$macro_revision 25565 25566# Whether or not to build shared libraries. 25567build_libtool_libs=$enable_shared 25568 25569# Whether or not to build static libraries. 25570build_old_libs=$enable_static 25571 25572# What type of objects to build. 25573pic_mode=$pic_mode 25574 25575# Whether or not to optimize for fast installation. 25576fast_install=$enable_fast_install 25577 25578# Shared archive member basename,for filename based shared library versioning on AIX. 25579shared_archive_member_spec=$shared_archive_member_spec 25580 25581# Shell to use when invoking shell scripts. 25582SHELL=$lt_SHELL 25583 25584# An echo program that protects backslashes. 25585ECHO=$lt_ECHO 25586 25587# The PATH separator for the build system. 25588PATH_SEPARATOR=$lt_PATH_SEPARATOR 25589 25590# The host system. 25591host_alias=$host_alias 25592host=$host 25593host_os=$host_os 25594 25595# The build system. 25596build_alias=$build_alias 25597build=$build 25598build_os=$build_os 25599 25600# A sed program that does not truncate output. 25601SED=$lt_SED 25602 25603# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25604Xsed="\$SED -e 1s/^X//" 25605 25606# A grep program that handles long lines. 25607GREP=$lt_GREP 25608 25609# An ERE matcher. 25610EGREP=$lt_EGREP 25611 25612# A literal string matcher. 25613FGREP=$lt_FGREP 25614 25615# A BSD- or MS-compatible name lister. 25616NM=$lt_NM 25617 25618# Whether we need soft or hard links. 25619LN_S=$lt_LN_S 25620 25621# What is the maximum length of a command? 25622max_cmd_len=$max_cmd_len 25623 25624# Object file suffix (normally "o"). 25625objext=$ac_objext 25626 25627# Executable file suffix (normally ""). 25628exeext=$exeext 25629 25630# whether the shell understands "unset". 25631lt_unset=$lt_unset 25632 25633# turn spaces into newlines. 25634SP2NL=$lt_lt_SP2NL 25635 25636# turn newlines into spaces. 25637NL2SP=$lt_lt_NL2SP 25638 25639# convert \$build file names to \$host format. 25640to_host_file_cmd=$lt_cv_to_host_file_cmd 25641 25642# convert \$build files to toolchain format. 25643to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25644 25645# A file(cmd) program that detects file types. 25646FILECMD=$lt_FILECMD 25647 25648# An object symbol dumper. 25649OBJDUMP=$lt_OBJDUMP 25650 25651# Method to check whether dependent libraries are shared objects. 25652deplibs_check_method=$lt_deplibs_check_method 25653 25654# Command to use when deplibs_check_method = "file_magic". 25655file_magic_cmd=$lt_file_magic_cmd 25656 25657# How to find potential files when deplibs_check_method = "file_magic". 25658file_magic_glob=$lt_file_magic_glob 25659 25660# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25661want_nocaseglob=$lt_want_nocaseglob 25662 25663# DLL creation program. 25664DLLTOOL=$lt_DLLTOOL 25665 25666# Command to associate shared and link libraries. 25667sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25668 25669# The archiver. 25670AR=$lt_AR 25671 25672# Flags to create an archive (by configure). 25673lt_ar_flags=$lt_ar_flags 25674 25675# Flags to create an archive. 25676AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 25677 25678# How to feed a file listing to the archiver. 25679archiver_list_spec=$lt_archiver_list_spec 25680 25681# A symbol stripping program. 25682STRIP=$lt_STRIP 25683 25684# Commands used to install an old-style archive. 25685RANLIB=$lt_RANLIB 25686old_postinstall_cmds=$lt_old_postinstall_cmds 25687old_postuninstall_cmds=$lt_old_postuninstall_cmds 25688 25689# Whether to use a lock for old archive extraction. 25690lock_old_archive_extraction=$lock_old_archive_extraction 25691 25692# A C compiler. 25693LTCC=$lt_CC 25694 25695# LTCC compiler flags. 25696LTCFLAGS=$lt_CFLAGS 25697 25698# Take the output of nm and produce a listing of raw symbols and C names. 25699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25700 25701# Transform the output of nm in a proper C declaration. 25702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25703 25704# Transform the output of nm into a list of symbols to manually relocate. 25705global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 25706 25707# Transform the output of nm in a C name address pair. 25708global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25709 25710# Transform the output of nm in a C name address pair when lib prefix is needed. 25711global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25712 25713# The name lister interface. 25714nm_interface=$lt_lt_cv_nm_interface 25715 25716# Specify filename containing input files for \$NM. 25717nm_file_list_spec=$lt_nm_file_list_spec 25718 25719# The root where to search for dependent libraries,and where our libraries should be installed. 25720lt_sysroot=$lt_sysroot 25721 25722# Command to truncate a binary pipe. 25723lt_truncate_bin=$lt_lt_cv_truncate_bin 25724 25725# The name of the directory that contains temporary libtool files. 25726objdir=$objdir 25727 25728# Used to examine libraries when file_magic_cmd begins with "file". 25729MAGIC_CMD=$MAGIC_CMD 25730 25731# Must we lock files when doing compilation? 25732need_locks=$lt_need_locks 25733 25734# Manifest tool. 25735MANIFEST_TOOL=$lt_MANIFEST_TOOL 25736 25737# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25738DSYMUTIL=$lt_DSYMUTIL 25739 25740# Tool to change global to local symbols on Mac OS X. 25741NMEDIT=$lt_NMEDIT 25742 25743# Tool to manipulate fat objects and archives on Mac OS X. 25744LIPO=$lt_LIPO 25745 25746# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25747OTOOL=$lt_OTOOL 25748 25749# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25750OTOOL64=$lt_OTOOL64 25751 25752# Old archive suffix (normally "a"). 25753libext=$libext 25754 25755# Shared library suffix (normally ".so"). 25756shrext_cmds=$lt_shrext_cmds 25757 25758# The commands to extract the exported symbol list from a shared archive. 25759extract_expsyms_cmds=$lt_extract_expsyms_cmds 25760 25761# Variables whose values should be saved in libtool wrapper scripts and 25762# restored at link time. 25763variables_saved_for_relink=$lt_variables_saved_for_relink 25764 25765# Do we need the "lib" prefix for modules? 25766need_lib_prefix=$need_lib_prefix 25767 25768# Do we need a version for libraries? 25769need_version=$need_version 25770 25771# Library versioning type. 25772version_type=$version_type 25773 25774# Shared library runtime path variable. 25775runpath_var=$runpath_var 25776 25777# Shared library path variable. 25778shlibpath_var=$shlibpath_var 25779 25780# Is shlibpath searched before the hard-coded library search path? 25781shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25782 25783# Format of library name prefix. 25784libname_spec=$lt_libname_spec 25785 25786# List of archive names. First name is the real one, the rest are links. 25787# The last name is the one that the linker finds with -lNAME 25788library_names_spec=$lt_library_names_spec 25789 25790# The coded name of the library, if different from the real name. 25791soname_spec=$lt_soname_spec 25792 25793# Permission mode override for installation of shared libraries. 25794install_override_mode=$lt_install_override_mode 25795 25796# Command to use after installation of a shared archive. 25797postinstall_cmds=$lt_postinstall_cmds 25798 25799# Command to use after uninstallation of a shared archive. 25800postuninstall_cmds=$lt_postuninstall_cmds 25801 25802# Commands used to finish a libtool library installation in a directory. 25803finish_cmds=$lt_finish_cmds 25804 25805# As "finish_cmds", except a single script fragment to be evaled but 25806# not shown. 25807finish_eval=$lt_finish_eval 25808 25809# Whether we should hardcode library paths into libraries. 25810hardcode_into_libs=$hardcode_into_libs 25811 25812# Compile-time system search path for libraries. 25813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25814 25815# Detected run-time system search path for libraries. 25816sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 25817 25818# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 25819configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 25820 25821# Whether dlopen is supported. 25822dlopen_support=$enable_dlopen 25823 25824# Whether dlopen of programs is supported. 25825dlopen_self=$enable_dlopen_self 25826 25827# Whether dlopen of statically linked programs is supported. 25828dlopen_self_static=$enable_dlopen_self_static 25829 25830# Commands to strip libraries. 25831old_striplib=$lt_old_striplib 25832striplib=$lt_striplib 25833 25834 25835# The linker used to build libraries. 25836LD=$lt_LD 25837 25838# How to create reloadable object files. 25839reload_flag=$lt_reload_flag 25840reload_cmds=$lt_reload_cmds 25841 25842# Commands used to build an old-style archive. 25843old_archive_cmds=$lt_old_archive_cmds 25844 25845# A language specific compiler. 25846CC=$lt_compiler 25847 25848# Is the compiler the GNU compiler? 25849with_gcc=$GCC 25850 25851# Compiler flag to turn off builtin functions. 25852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25853 25854# Additional compiler flags for building library objects. 25855pic_flag=$lt_lt_prog_compiler_pic 25856 25857# How to pass a linker flag through the compiler. 25858wl=$lt_lt_prog_compiler_wl 25859 25860# Compiler flag to prevent dynamic linking. 25861link_static_flag=$lt_lt_prog_compiler_static 25862 25863# Does compiler simultaneously support -c and -o options? 25864compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25865 25866# Whether or not to add -lc for building shared libraries. 25867build_libtool_need_lc=$archive_cmds_need_lc 25868 25869# Whether or not to disallow shared libs when runtime libs are static. 25870allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25871 25872# Compiler flag to allow reflexive dlopens. 25873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25874 25875# Compiler flag to generate shared objects directly from archives. 25876whole_archive_flag_spec=$lt_whole_archive_flag_spec 25877 25878# Whether the compiler copes with passing no objects directly. 25879compiler_needs_object=$lt_compiler_needs_object 25880 25881# Create an old-style archive from a shared archive. 25882old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25883 25884# Create a temporary old-style archive to link instead of a shared archive. 25885old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25886 25887# Commands used to build a shared archive. 25888archive_cmds=$lt_archive_cmds 25889archive_expsym_cmds=$lt_archive_expsym_cmds 25890 25891# Commands used to build a loadable module if different from building 25892# a shared archive. 25893module_cmds=$lt_module_cmds 25894module_expsym_cmds=$lt_module_expsym_cmds 25895 25896# Whether we are building with GNU ld or not. 25897with_gnu_ld=$lt_with_gnu_ld 25898 25899# Flag that allows shared libraries with undefined symbols to be built. 25900allow_undefined_flag=$lt_allow_undefined_flag 25901 25902# Flag that enforces no undefined symbols. 25903no_undefined_flag=$lt_no_undefined_flag 25904 25905# Flag to hardcode \$libdir into a binary during linking. 25906# This must work even if \$libdir does not exist 25907hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25908 25909# Whether we need a single "-rpath" flag with a separated argument. 25910hardcode_libdir_separator=$lt_hardcode_libdir_separator 25911 25912# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25913# DIR into the resulting binary. 25914hardcode_direct=$hardcode_direct 25915 25916# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25917# DIR into the resulting binary and the resulting library dependency is 25918# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25919# library is relocated. 25920hardcode_direct_absolute=$hardcode_direct_absolute 25921 25922# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25923# into the resulting binary. 25924hardcode_minus_L=$hardcode_minus_L 25925 25926# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25927# into the resulting binary. 25928hardcode_shlibpath_var=$hardcode_shlibpath_var 25929 25930# Set to "yes" if building a shared library automatically hardcodes DIR 25931# into the library and all subsequent libraries and executables linked 25932# against it. 25933hardcode_automatic=$hardcode_automatic 25934 25935# Set to yes if linker adds runtime paths of dependent libraries 25936# to runtime path list. 25937inherit_rpath=$inherit_rpath 25938 25939# Whether libtool must link a program against all its dependency libraries. 25940link_all_deplibs=$link_all_deplibs 25941 25942# Set to "yes" if exported symbols are required. 25943always_export_symbols=$always_export_symbols 25944 25945# The commands to list exported symbols. 25946export_symbols_cmds=$lt_export_symbols_cmds 25947 25948# Symbols that should not be listed in the preloaded symbols. 25949exclude_expsyms=$lt_exclude_expsyms 25950 25951# Symbols that must always be exported. 25952include_expsyms=$lt_include_expsyms 25953 25954# Commands necessary for linking programs (against libraries) with templates. 25955prelink_cmds=$lt_prelink_cmds 25956 25957# Commands necessary for finishing linking programs. 25958postlink_cmds=$lt_postlink_cmds 25959 25960# Specify filename containing input files. 25961file_list_spec=$lt_file_list_spec 25962 25963# How to hardcode a shared library path into an executable. 25964hardcode_action=$hardcode_action 25965 25966# ### END LIBTOOL CONFIG 25967 25968_LT_EOF 25969 25970 cat <<'_LT_EOF' >> "$cfgfile" 25971 25972# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25973 25974# func_munge_path_list VARIABLE PATH 25975# ----------------------------------- 25976# VARIABLE is name of variable containing _space_ separated list of 25977# directories to be munged by the contents of PATH, which is string 25978# having a format: 25979# "DIR[:DIR]:" 25980# string "DIR[ DIR]" will be prepended to VARIABLE 25981# ":DIR[:DIR]" 25982# string "DIR[ DIR]" will be appended to VARIABLE 25983# "DIRP[:DIRP]::[DIRA:]DIRA" 25984# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25985# "DIRA[ DIRA]" will be appended to VARIABLE 25986# "DIR[:DIR]" 25987# VARIABLE will be replaced by "DIR[ DIR]" 25988func_munge_path_list () 25989{ 25990 case x$2 in 25991 x) 25992 ;; 25993 *:) 25994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25995 ;; 25996 x:*) 25997 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25998 ;; 25999 *::*) 26000 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 26001 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 26002 ;; 26003 *) 26004 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 26005 ;; 26006 esac 26007} 26008 26009 26010# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 26011func_cc_basename () 26012{ 26013 for cc_temp in $*""; do 26014 case $cc_temp in 26015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26017 \-*) ;; 26018 *) break;; 26019 esac 26020 done 26021 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26022} 26023 26024 26025# ### END FUNCTIONS SHARED WITH CONFIGURE 26026 26027_LT_EOF 26028 26029 case $host_os in 26030 aix3*) 26031 cat <<\_LT_EOF >> "$cfgfile" 26032# AIX sometimes has problems with the GCC collect2 program. For some 26033# reason, if we set the COLLECT_NAMES environment variable, the problems 26034# vanish in a puff of smoke. 26035if test set != "${COLLECT_NAMES+set}"; then 26036 COLLECT_NAMES= 26037 export COLLECT_NAMES 26038fi 26039_LT_EOF 26040 ;; 26041 esac 26042 26043 26044 26045ltmain=$ac_aux_dir/ltmain.sh 26046 26047 26048 # We use sed instead of cat because bash on DJGPP gets confused if 26049 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26050 # text mode, it properly converts lines to CR/LF. This bash problem 26051 # is reportedly fixed, but why not run on old versions too? 26052 $SED '$q' "$ltmain" >> "$cfgfile" \ 26053 || (rm -f "$cfgfile"; exit 1) 26054 26055 mv -f "$cfgfile" "$ofile" || 26056 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26057 chmod +x "$ofile" 26058 26059 ;; 26060 26061 esac 26062done # for ac_tag 26063 26064 26065as_fn_exit 0 26066_ACEOF 26067ac_clean_files=$ac_clean_files_save 26068 26069test $ac_write_fail = 0 || 26070 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26071 26072 26073# configure is writing to config.log, and then calls config.status. 26074# config.status does its own redirection, appending to config.log. 26075# Unfortunately, on DOS this fails, as config.log is still kept open 26076# by configure, so config.status won't be able to write to it; its 26077# output is simply discarded. So we exec the FD to /dev/null, 26078# effectively closing config.log, so it can be properly (re)opened and 26079# appended to by config.status. When coming back to configure, we 26080# need to make the FD available again. 26081if test "$no_create" != yes; then 26082 ac_cs_success=: 26083 ac_config_status_args= 26084 test "$silent" = yes && 26085 ac_config_status_args="$ac_config_status_args --quiet" 26086 exec 5>/dev/null 26087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26088 exec 5>>config.log 26089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26090 # would make configure fail if this is the last instruction. 26091 $ac_cs_success || as_fn_exit 1 26092fi 26093if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26095printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26096fi 26097 26098 26099echo "" 26100echo "$PACKAGE_STRING will be built with the following settings:" 26101echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 26102echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 26103echo " Threading support: "$xthreads 26104echo " Use Threads safe API: "$mtsafeapi 26105echo " Use thread safety constructor: "$USE_THREAD_SAFETY_CONSTRUCTOR 26106echo " XCMS: "$XCMS 26107echo " Internationalization support: "$XLOCALE 26108echo " XF86BigFont support: "$XF86BIGFONT 26109echo " XKB support: "$XKB 26110echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 26111echo " Compose table cache enabled: "$COMPOSECACHE 26112echo " Functional specs building enabled: "$build_specs 26113echo "" 26114 26115