configure revision 6bea0e4f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libSM 1.2.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/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/libsm/-/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='libSM' 677PACKAGE_TARNAME='libSM' 678PACKAGE_VERSION='1.2.6' 679PACKAGE_STRING='libSM 1.2.6' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716ac_subst_vars='am__EXEEXT_FALSE 717am__EXEEXT_TRUE 718LTLIBOBJS 719LIBOBJS 720SM_LIBS 721SM_CFLAGS 722WITH_LIBUUID_FALSE 723WITH_LIBUUID_TRUE 724UUID_PC 725UUID_LIB_PRIVATE 726LIBUUID_LIBS 727LIBUUID_CFLAGS 728HAVE_STYLESHEETS_FALSE 729HAVE_STYLESHEETS_TRUE 730XSL_STYLESHEET 731STYLESHEET_SRCDIR 732XORG_SGML_PATH 733HAVE_XSLTPROC_FALSE 734HAVE_XSLTPROC_TRUE 735XSLTPROC 736HAVE_FOP_FALSE 737HAVE_FOP_TRUE 738FOP 739HAVE_XMLTO_FALSE 740HAVE_XMLTO_TRUE 741HAVE_XMLTO_TEXT_FALSE 742HAVE_XMLTO_TEXT_TRUE 743XMLTO 744ENABLE_DOCS_FALSE 745ENABLE_DOCS_TRUE 746MAN_SUBSTS 747XORG_MAN_PAGE 748ADMIN_MAN_DIR 749DRIVER_MAN_DIR 750MISC_MAN_DIR 751FILE_MAN_DIR 752LIB_MAN_DIR 753APP_MAN_DIR 754ADMIN_MAN_SUFFIX 755DRIVER_MAN_SUFFIX 756MISC_MAN_SUFFIX 757FILE_MAN_SUFFIX 758LIB_MAN_SUFFIX 759APP_MAN_SUFFIX 760INSTALL_CMD 761PKG_CONFIG_LIBDIR 762PKG_CONFIG_PATH 763PKG_CONFIG 764CHANGELOG_CMD 765STRICT_CFLAGS 766CWARNFLAGS 767BASE_CFLAGS 768LT_SYS_LIBRARY_PATH 769OTOOL64 770OTOOL 771LIPO 772NMEDIT 773DSYMUTIL 774MANIFEST_TOOL 775RANLIB 776ac_ct_AR 777AR 778DLLTOOL 779OBJDUMP 780FILECMD 781LN_S 782NM 783ac_ct_DUMPBIN 784DUMPBIN 785LD 786FGREP 787EGREP 788GREP 789SED 790am__fastdepCC_FALSE 791am__fastdepCC_TRUE 792CCDEPMODE 793am__nodep 794AMDEPBACKSLASH 795AMDEP_FALSE 796AMDEP_TRUE 797am__include 798DEPDIR 799OBJEXT 800EXEEXT 801ac_ct_CC 802CPPFLAGS 803LDFLAGS 804CFLAGS 805CC 806host_os 807host_vendor 808host_cpu 809host 810build_os 811build_vendor 812build_cpu 813build 814LIBTOOL 815am__xargs_n 816am__rm_f_notfound 817AM_BACKSLASH 818AM_DEFAULT_VERBOSITY 819AM_DEFAULT_V 820AM_V 821CSCOPE 822ETAGS 823CTAGS 824am__untar 825am__tar 826AMTAR 827am__leading_dot 828SET_MAKE 829AWK 830mkdir_p 831MKDIR_P 832INSTALL_STRIP_PROGRAM 833STRIP 834install_sh 835MAKEINFO 836AUTOHEADER 837AUTOMAKE 838AUTOCONF 839ACLOCAL 840VERSION 841PACKAGE 842CYGPATH_W 843am__isrc 844INSTALL_DATA 845INSTALL_SCRIPT 846INSTALL_PROGRAM 847target_alias 848host_alias 849build_alias 850LIBS 851ECHO_T 852ECHO_N 853ECHO_C 854DEFS 855mandir 856localedir 857libdir 858psdir 859pdfdir 860dvidir 861htmldir 862infodir 863docdir 864oldincludedir 865includedir 866runstatedir 867localstatedir 868sharedstatedir 869sysconfdir 870datadir 871datarootdir 872libexecdir 873sbindir 874bindir 875program_transform_name 876prefix 877exec_prefix 878PACKAGE_URL 879PACKAGE_BUGREPORT 880PACKAGE_STRING 881PACKAGE_VERSION 882PACKAGE_TARNAME 883PACKAGE_NAME 884PATH_SEPARATOR 885SHELL 886am__quote' 887ac_subst_files='' 888ac_user_opts=' 889enable_option_checking 890enable_silent_rules 891enable_shared 892enable_static 893enable_pic 894with_pic 895enable_fast_install 896enable_aix_soname 897with_aix_soname 898enable_dependency_tracking 899with_gnu_ld 900with_sysroot 901enable_libtool_lock 902enable_selective_werror 903enable_strict_compilation 904enable_docs 905with_xmlto 906with_fop 907with_xsltproc 908with_libuuid 909enable_unix_transport 910enable_tcp_transport 911enable_ipv6 912enable_local_transport 913' 914 ac_precious_vars='build_alias 915host_alias 916target_alias 917CC 918CFLAGS 919LDFLAGS 920LIBS 921CPPFLAGS 922LT_SYS_LIBRARY_PATH 923PKG_CONFIG 924PKG_CONFIG_PATH 925PKG_CONFIG_LIBDIR 926XMLTO 927FOP 928XSLTPROC 929LIBUUID_CFLAGS 930LIBUUID_LIBS 931SM_CFLAGS 932SM_LIBS' 933 934 935# Initialize some variables set by options. 936ac_init_help= 937ac_init_version=false 938ac_unrecognized_opts= 939ac_unrecognized_sep= 940# The variables have the same names as the options, with 941# dashes changed to underlines. 942cache_file=/dev/null 943exec_prefix=NONE 944no_create= 945no_recursion= 946prefix=NONE 947program_prefix=NONE 948program_suffix=NONE 949program_transform_name=s,x,x, 950silent= 951site= 952srcdir= 953verbose= 954x_includes=NONE 955x_libraries=NONE 956 957# Installation directory options. 958# These are left unexpanded so users can "make install exec_prefix=/foo" 959# and all the variables that are supposed to be based on exec_prefix 960# by default will actually change. 961# Use braces instead of parens because sh, perl, etc. also accept them. 962# (The list follows the same order as the GNU Coding Standards.) 963bindir='${exec_prefix}/bin' 964sbindir='${exec_prefix}/sbin' 965libexecdir='${exec_prefix}/libexec' 966datarootdir='${prefix}/share' 967datadir='${datarootdir}' 968sysconfdir='${prefix}/etc' 969sharedstatedir='${prefix}/com' 970localstatedir='${prefix}/var' 971runstatedir='${localstatedir}/run' 972includedir='${prefix}/include' 973oldincludedir='/usr/include' 974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 975infodir='${datarootdir}/info' 976htmldir='${docdir}' 977dvidir='${docdir}' 978pdfdir='${docdir}' 979psdir='${docdir}' 980libdir='${exec_prefix}/lib' 981localedir='${datarootdir}/locale' 982mandir='${datarootdir}/man' 983 984ac_prev= 985ac_dashdash= 986for ac_option 987do 988 # If the previous option needs an argument, assign it. 989 if test -n "$ac_prev"; then 990 eval $ac_prev=\$ac_option 991 ac_prev= 992 continue 993 fi 994 995 case $ac_option in 996 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 997 *=) ac_optarg= ;; 998 *) ac_optarg=yes ;; 999 esac 1000 1001 case $ac_dashdash$ac_option in 1002 --) 1003 ac_dashdash=yes ;; 1004 1005 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1006 ac_prev=bindir ;; 1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1008 bindir=$ac_optarg ;; 1009 1010 -build | --build | --buil | --bui | --bu) 1011 ac_prev=build_alias ;; 1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1013 build_alias=$ac_optarg ;; 1014 1015 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1017 ac_prev=cache_file ;; 1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1020 cache_file=$ac_optarg ;; 1021 1022 --config-cache | -C) 1023 cache_file=config.cache ;; 1024 1025 -datadir | --datadir | --datadi | --datad) 1026 ac_prev=datadir ;; 1027 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1028 datadir=$ac_optarg ;; 1029 1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1031 | --dataroo | --dataro | --datar) 1032 ac_prev=datarootdir ;; 1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1035 datarootdir=$ac_optarg ;; 1036 1037 -disable-* | --disable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: '$ac_useropt'" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=no ;; 1052 1053 -docdir | --docdir | --docdi | --doc | --do) 1054 ac_prev=docdir ;; 1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1056 docdir=$ac_optarg ;; 1057 1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1059 ac_prev=dvidir ;; 1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1061 dvidir=$ac_optarg ;; 1062 1063 -enable-* | --enable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 as_fn_error $? "invalid feature name: '$ac_useropt'" 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072"enable_$ac_useropt" 1073"*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=\$ac_optarg ;; 1078 1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1081 | --exec | --exe | --ex) 1082 ac_prev=exec_prefix ;; 1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1085 | --exec=* | --exe=* | --ex=*) 1086 exec_prefix=$ac_optarg ;; 1087 1088 -gas | --gas | --ga | --g) 1089 # Obsolete; use --with-gas. 1090 with_gas=yes ;; 1091 1092 -help | --help | --hel | --he | -h) 1093 ac_init_help=long ;; 1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1095 ac_init_help=recursive ;; 1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1097 ac_init_help=short ;; 1098 1099 -host | --host | --hos | --ho) 1100 ac_prev=host_alias ;; 1101 -host=* | --host=* | --hos=* | --ho=*) 1102 host_alias=$ac_optarg ;; 1103 1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1105 ac_prev=htmldir ;; 1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1107 | --ht=*) 1108 htmldir=$ac_optarg ;; 1109 1110 -includedir | --includedir | --includedi | --included | --include \ 1111 | --includ | --inclu | --incl | --inc) 1112 ac_prev=includedir ;; 1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1114 | --includ=* | --inclu=* | --incl=* | --inc=*) 1115 includedir=$ac_optarg ;; 1116 1117 -infodir | --infodir | --infodi | --infod | --info | --inf) 1118 ac_prev=infodir ;; 1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1120 infodir=$ac_optarg ;; 1121 1122 -libdir | --libdir | --libdi | --libd) 1123 ac_prev=libdir ;; 1124 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1125 libdir=$ac_optarg ;; 1126 1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1128 | --libexe | --libex | --libe) 1129 ac_prev=libexecdir ;; 1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1131 | --libexe=* | --libex=* | --libe=*) 1132 libexecdir=$ac_optarg ;; 1133 1134 -localedir | --localedir | --localedi | --localed | --locale) 1135 ac_prev=localedir ;; 1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1137 localedir=$ac_optarg ;; 1138 1139 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1140 | --localstate | --localstat | --localsta | --localst | --locals) 1141 ac_prev=localstatedir ;; 1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1144 localstatedir=$ac_optarg ;; 1145 1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1147 ac_prev=mandir ;; 1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1149 mandir=$ac_optarg ;; 1150 1151 -nfp | --nfp | --nf) 1152 # Obsolete; use --without-fp. 1153 with_fp=no ;; 1154 1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1156 | --no-cr | --no-c | -n) 1157 no_create=yes ;; 1158 1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1161 no_recursion=yes ;; 1162 1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1165 | --oldin | --oldi | --old | --ol | --o) 1166 ac_prev=oldincludedir ;; 1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1170 oldincludedir=$ac_optarg ;; 1171 1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1173 ac_prev=prefix ;; 1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1175 prefix=$ac_optarg ;; 1176 1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1178 | --program-pre | --program-pr | --program-p) 1179 ac_prev=program_prefix ;; 1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1182 program_prefix=$ac_optarg ;; 1183 1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1185 | --program-suf | --program-su | --program-s) 1186 ac_prev=program_suffix ;; 1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1189 program_suffix=$ac_optarg ;; 1190 1191 -program-transform-name | --program-transform-name \ 1192 | --program-transform-nam | --program-transform-na \ 1193 | --program-transform-n | --program-transform- \ 1194 | --program-transform | --program-transfor \ 1195 | --program-transfo | --program-transf \ 1196 | --program-trans | --program-tran \ 1197 | --progr-tra | --program-tr | --program-t) 1198 ac_prev=program_transform_name ;; 1199 -program-transform-name=* | --program-transform-name=* \ 1200 | --program-transform-nam=* | --program-transform-na=* \ 1201 | --program-transform-n=* | --program-transform-=* \ 1202 | --program-transform=* | --program-transfor=* \ 1203 | --program-transfo=* | --program-transf=* \ 1204 | --program-trans=* | --program-tran=* \ 1205 | --progr-tra=* | --program-tr=* | --program-t=*) 1206 program_transform_name=$ac_optarg ;; 1207 1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1209 ac_prev=pdfdir ;; 1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1211 pdfdir=$ac_optarg ;; 1212 1213 -psdir | --psdir | --psdi | --psd | --ps) 1214 ac_prev=psdir ;; 1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1216 psdir=$ac_optarg ;; 1217 1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1219 | -silent | --silent | --silen | --sile | --sil) 1220 silent=yes ;; 1221 1222 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1223 | --runstate | --runstat | --runsta | --runst | --runs \ 1224 | --run | --ru | --r) 1225 ac_prev=runstatedir ;; 1226 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1227 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1228 | --run=* | --ru=* | --r=*) 1229 runstatedir=$ac_optarg ;; 1230 1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1232 ac_prev=sbindir ;; 1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1234 | --sbi=* | --sb=*) 1235 sbindir=$ac_optarg ;; 1236 1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1239 | --sharedst | --shareds | --shared | --share | --shar \ 1240 | --sha | --sh) 1241 ac_prev=sharedstatedir ;; 1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1245 | --sha=* | --sh=*) 1246 sharedstatedir=$ac_optarg ;; 1247 1248 -site | --site | --sit) 1249 ac_prev=site ;; 1250 -site=* | --site=* | --sit=*) 1251 site=$ac_optarg ;; 1252 1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1254 ac_prev=srcdir ;; 1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1256 srcdir=$ac_optarg ;; 1257 1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1259 | --syscon | --sysco | --sysc | --sys | --sy) 1260 ac_prev=sysconfdir ;; 1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1263 sysconfdir=$ac_optarg ;; 1264 1265 -target | --target | --targe | --targ | --tar | --ta | --t) 1266 ac_prev=target_alias ;; 1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1268 target_alias=$ac_optarg ;; 1269 1270 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1271 verbose=yes ;; 1272 1273 -version | --version | --versio | --versi | --vers | -V) 1274 ac_init_version=: ;; 1275 1276 -with-* | --with-*) 1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1278 # Reject names that are not valid shell variable names. 1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1280 as_fn_error $? "invalid package name: '$ac_useropt'" 1281 ac_useropt_orig=$ac_useropt 1282 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1283 case $ac_user_opts in 1284 *" 1285"with_$ac_useropt" 1286"*) ;; 1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1288 ac_unrecognized_sep=', ';; 1289 esac 1290 eval with_$ac_useropt=\$ac_optarg ;; 1291 1292 -without-* | --without-*) 1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1296 as_fn_error $? "invalid package name: '$ac_useropt'" 1297 ac_useropt_orig=$ac_useropt 1298 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1299 case $ac_user_opts in 1300 *" 1301"with_$ac_useropt" 1302"*) ;; 1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1304 ac_unrecognized_sep=', ';; 1305 esac 1306 eval with_$ac_useropt=no ;; 1307 1308 --x) 1309 # Obsolete; use --with-x. 1310 with_x=yes ;; 1311 1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1313 | --x-incl | --x-inc | --x-in | --x-i) 1314 ac_prev=x_includes ;; 1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1317 x_includes=$ac_optarg ;; 1318 1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1321 ac_prev=x_libraries ;; 1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1324 x_libraries=$ac_optarg ;; 1325 1326 -*) as_fn_error $? "unrecognized option: '$ac_option' 1327Try '$0 --help' for more information" 1328 ;; 1329 1330 *=*) 1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1332 # Reject names that are not valid shell variable names. 1333 case $ac_envvar in #( 1334 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1335 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1336 esac 1337 eval $ac_envvar=\$ac_optarg 1338 export $ac_envvar ;; 1339 1340 *) 1341 # FIXME: should be removed in autoconf 3.0. 1342 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1344 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1346 ;; 1347 1348 esac 1349done 1350 1351if test -n "$ac_prev"; then 1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1353 as_fn_error $? "missing argument to $ac_option" 1354fi 1355 1356if test -n "$ac_unrecognized_opts"; then 1357 case $enable_option_checking in 1358 no) ;; 1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1360 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1361 esac 1362fi 1363 1364# Check all directory arguments for consistency. 1365for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1366 datadir sysconfdir sharedstatedir localstatedir includedir \ 1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1368 libdir localedir mandir runstatedir 1369do 1370 eval ac_val=\$$ac_var 1371 # Remove trailing slashes. 1372 case $ac_val in 1373 */ ) 1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1375 eval $ac_var=\$ac_val;; 1376 esac 1377 # Be sure to have absolute directory names. 1378 case $ac_val in 1379 [\\/$]* | ?:[\\/]* ) continue;; 1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1381 esac 1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1383done 1384 1385# There might be people who depend on the old broken behavior: '$host' 1386# used to hold the argument of --host etc. 1387# FIXME: To remove some day. 1388build=$build_alias 1389host=$host_alias 1390target=$target_alias 1391 1392# FIXME: To remove some day. 1393if test "x$host_alias" != x; then 1394 if test "x$build_alias" = x; then 1395 cross_compiling=maybe 1396 elif test "x$build_alias" != "x$host_alias"; then 1397 cross_compiling=yes 1398 fi 1399fi 1400 1401ac_tool_prefix= 1402test -n "$host_alias" && ac_tool_prefix=$host_alias- 1403 1404test "$silent" = yes && exec 6>/dev/null 1405 1406 1407ac_pwd=`pwd` && test -n "$ac_pwd" && 1408ac_ls_di=`ls -di .` && 1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1410 as_fn_error $? "working directory cannot be determined" 1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1412 as_fn_error $? "pwd does not report name of working directory" 1413 1414 1415# Find the source files, if location was not specified. 1416if test -z "$srcdir"; then 1417 ac_srcdir_defaulted=yes 1418 # Try the directory containing this script, then the parent directory. 1419 ac_confdir=`$as_dirname -- "$as_myself" || 1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1421 X"$as_myself" : 'X\(//\)[^/]' \| \ 1422 X"$as_myself" : 'X\(//\)$' \| \ 1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1424printf "%s\n" X"$as_myself" | 1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1426 s//\1/ 1427 q 1428 } 1429 /^X\(\/\/\)[^/].*/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)$/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\).*/{ 1438 s//\1/ 1439 q 1440 } 1441 s/.*/./; q'` 1442 srcdir=$ac_confdir 1443 if test ! -r "$srcdir/$ac_unique_file"; then 1444 srcdir=.. 1445 fi 1446else 1447 ac_srcdir_defaulted=no 1448fi 1449if test ! -r "$srcdir/$ac_unique_file"; then 1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1452fi 1453ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1454ac_abs_confdir=`( 1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1456 pwd)` 1457# When building in place, set srcdir=. 1458if test "$ac_abs_confdir" = "$ac_pwd"; then 1459 srcdir=. 1460fi 1461# Remove unnecessary trailing slashes from srcdir. 1462# Double slashes in file names in object file debugging info 1463# mess up M-x gdb in Emacs. 1464case $srcdir in 1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1466esac 1467for ac_var in $ac_precious_vars; do 1468 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_env_${ac_var}_value=\$${ac_var} 1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1472done 1473 1474# 1475# Report the --help message. 1476# 1477if test "$ac_init_help" = "long"; then 1478 # Omit some internal or obsolete options to make the list less imposing. 1479 # This message is too long to be a string in the A/UX 3.1 sh. 1480 cat <<_ACEOF 1481'configure' configures libSM 1.2.6 to adapt to many kinds of systems. 1482 1483Usage: $0 [OPTION]... [VAR=VALUE]... 1484 1485To assign environment variables (e.g., CC, CFLAGS...), specify them as 1486VAR=VALUE. See below for descriptions of some of the useful variables. 1487 1488Defaults for the options are specified in brackets. 1489 1490Configuration: 1491 -h, --help display this help and exit 1492 --help=short display options specific to this package 1493 --help=recursive display the short help of all the included packages 1494 -V, --version display version information and exit 1495 -q, --quiet, --silent do not print 'checking ...' messages 1496 --cache-file=FILE cache test results in FILE [disabled] 1497 -C, --config-cache alias for '--cache-file=config.cache' 1498 -n, --no-create do not create output files 1499 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1500 1501Installation directories: 1502 --prefix=PREFIX install architecture-independent files in PREFIX 1503 [$ac_default_prefix] 1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1505 [PREFIX] 1506 1507By default, 'make install' will install all the files in 1508'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1509an installation prefix other than '$ac_default_prefix' using '--prefix', 1510for instance '--prefix=\$HOME'. 1511 1512For better control, use the options below. 1513 1514Fine tuning of the installation directories: 1515 --bindir=DIR user executables [EPREFIX/bin] 1516 --sbindir=DIR system admin executables [EPREFIX/sbin] 1517 --libexecdir=DIR program executables [EPREFIX/libexec] 1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1521 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1522 --libdir=DIR object code libraries [EPREFIX/lib] 1523 --includedir=DIR C header files [PREFIX/include] 1524 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1527 --infodir=DIR info documentation [DATAROOTDIR/info] 1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1529 --mandir=DIR man documentation [DATAROOTDIR/man] 1530 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM] 1531 --htmldir=DIR html documentation [DOCDIR] 1532 --dvidir=DIR dvi documentation [DOCDIR] 1533 --pdfdir=DIR pdf documentation [DOCDIR] 1534 --psdir=DIR ps documentation [DOCDIR] 1535_ACEOF 1536 1537 cat <<\_ACEOF 1538 1539Program names: 1540 --program-prefix=PREFIX prepend PREFIX to installed program names 1541 --program-suffix=SUFFIX append SUFFIX to installed program names 1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1543 1544System types: 1545 --build=BUILD configure for building on BUILD [guessed] 1546 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1547_ACEOF 1548fi 1549 1550if test -n "$ac_init_help"; then 1551 case $ac_init_help in 1552 short | recursive ) echo "Configuration of libSM 1.2.6:";; 1553 esac 1554 cat <<\_ACEOF 1555 1556Optional Features: 1557 --disable-option-checking ignore unrecognized --enable/--with options 1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1560 --enable-silent-rules less verbose build output (undo: "make V=1") 1561 --disable-silent-rules verbose build output (undo: "make V=0") 1562 --enable-shared[=PKGS] build shared libraries [default=yes] 1563 --enable-static[=PKGS] build static libraries [default=yes] 1564 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1565 both] 1566 --enable-fast-install[=PKGS] 1567 optimize for fast installation [default=yes] 1568 --enable-aix-soname=aix|svr4|both 1569 shared library versioning (aka "SONAME") variant to 1570 provide on AIX, [default=aix]. 1571 --enable-dependency-tracking 1572 do not reject slow dependency extractors 1573 --disable-dependency-tracking 1574 speeds up one-time build 1575 --disable-libtool-lock avoid locking (might break parallel builds) 1576 --disable-selective-werror 1577 Turn off selective compiler errors. (default: 1578 enabled) 1579 --enable-strict-compilation 1580 Enable all warnings from compiler and make them 1581 errors (default: disabled) 1582 --enable-docs Enable building the documentation (default: yes) 1583 --enable-unix-transport Enable UNIX domain socket transport 1584 --enable-tcp-transport Enable TCP socket transport 1585 --enable-ipv6 Enable IPv6 support 1586 --enable-local-transport 1587 Enable os-specific local transport 1588 1589Optional Packages: 1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1593 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1594 compiler's sysroot if not specified). 1595 --with-xmlto Use xmlto to regenerate documentation (default: 1596 auto) 1597 --with-fop Use fop to regenerate documentation (default: auto) 1598 --with-xsltproc Use xsltproc for the transformation of XML documents 1599 (default: auto) 1600 --with-libuuid Build with libuuid support for client IDs 1601 1602Some influential environment variables: 1603 CC C compiler command 1604 CFLAGS C compiler flags 1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1606 nonstandard directory <lib dir> 1607 LIBS libraries to pass to the linker, e.g. -l<library> 1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1609 you have headers in a nonstandard directory <include dir> 1610 LT_SYS_LIBRARY_PATH 1611 User-defined run-time library search path. 1612 PKG_CONFIG path to pkg-config utility 1613 PKG_CONFIG_PATH 1614 directories to add to pkg-config's search path 1615 PKG_CONFIG_LIBDIR 1616 path overriding pkg-config's built-in search path 1617 XMLTO Path to xmlto command 1618 FOP Path to fop command 1619 XSLTPROC Path to xsltproc command 1620 LIBUUID_CFLAGS 1621 C compiler flags for LIBUUID, overriding pkg-config 1622 LIBUUID_LIBS 1623 linker flags for LIBUUID, overriding pkg-config 1624 SM_CFLAGS C compiler flags for SM, overriding pkg-config 1625 SM_LIBS linker flags for SM, overriding pkg-config 1626 1627Use these variables to override the choices made by 'configure' or to help 1628it to find libraries and programs with nonstandard names/locations. 1629 1630Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues>. 1631_ACEOF 1632ac_status=$? 1633fi 1634 1635if test "$ac_init_help" = "recursive"; then 1636 # If there are subdirs, report their specific --help. 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1638 test -d "$ac_dir" || 1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1640 continue 1641 ac_builddir=. 1642 1643case "$ac_dir" in 1644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645*) 1646 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1647 # A ".." for each directory in $ac_dir_suffix. 1648 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1649 case $ac_top_builddir_sub in 1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1652 esac ;; 1653esac 1654ac_abs_top_builddir=$ac_pwd 1655ac_abs_builddir=$ac_pwd$ac_dir_suffix 1656# for backward compatibility: 1657ac_top_builddir=$ac_top_build_prefix 1658 1659case $srcdir in 1660 .) # We are building in place. 1661 ac_srcdir=. 1662 ac_top_srcdir=$ac_top_builddir_sub 1663 ac_abs_top_srcdir=$ac_pwd ;; 1664 [\\/]* | ?:[\\/]* ) # Absolute name. 1665 ac_srcdir=$srcdir$ac_dir_suffix; 1666 ac_top_srcdir=$srcdir 1667 ac_abs_top_srcdir=$srcdir ;; 1668 *) # Relative name. 1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1670 ac_top_srcdir=$ac_top_build_prefix$srcdir 1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1672esac 1673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1674 1675 cd "$ac_dir" || { ac_status=$?; continue; } 1676 # Check for configure.gnu first; this name is used for a wrapper for 1677 # Metaconfig's "Configure" on case-insensitive file systems. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694libSM configure 1.2.6 1695generated by GNU Autoconf 2.72 1696 1697Copyright (C) 2023 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703 1704## ------------------------ ## 1705## Autoconf initialization. ## 1706## ------------------------ ## 1707 1708# ac_fn_c_try_compile LINENO 1709# -------------------------- 1710# Try to compile conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_compile () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest.beam 1715 if { { ac_try="$ac_compile" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721printf "%s\n" "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext 1734then : 1735 ac_retval=0 1736else case e in #( 1737 e) printf "%s\n" "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 ;; 1741esac 1742fi 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_compile 1747 1748# ac_fn_c_try_link LINENO 1749# ----------------------- 1750# Try to link conftest.$ac_ext, and return whether this succeeded. 1751ac_fn_c_try_link () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1755 if { { ac_try="$ac_link" 1756case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761printf "%s\n" "$ac_try_echo"; } >&5 1762 (eval "$ac_link") 2>conftest.err 1763 ac_status=$? 1764 if test -s conftest.err; then 1765 grep -v '^ *+' conftest.err >conftest.er1 1766 cat conftest.er1 >&5 1767 mv -f conftest.er1 conftest.err 1768 fi 1769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } && { 1771 test -z "$ac_c_werror_flag" || 1772 test ! -s conftest.err 1773 } && test -s conftest$ac_exeext && { 1774 test "$cross_compiling" = yes || 1775 test -x conftest$ac_exeext 1776 } 1777then : 1778 ac_retval=0 1779else case e in #( 1780 e) printf "%s\n" "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 ;; 1784esac 1785fi 1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1788 # interfere with the next link command; also delete a directory that is 1789 # left behind by Apple's compiler. We do this before executing the actions. 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 as_fn_set_status $ac_retval 1793 1794} # ac_fn_c_try_link 1795 1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1797# ------------------------------------------------------- 1798# Tests whether HEADER exists and can be compiled using the include files in 1799# INCLUDES, setting the cache variable VAR accordingly. 1800ac_fn_c_check_header_compile () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804printf %s "checking for $2... " >&6; } 1805if eval test \${$3+y} 1806then : 1807 printf %s "(cached) " >&6 1808else case e in #( 1809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812#include <$2> 1813_ACEOF 1814if ac_fn_c_try_compile "$LINENO" 1815then : 1816 eval "$3=yes" 1817else case e in #( 1818 e) eval "$3=no" ;; 1819esac 1820fi 1821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1822esac 1823fi 1824eval ac_res=\$$3 1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826printf "%s\n" "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_header_compile 1830 1831# ac_fn_c_check_func LINENO FUNC VAR 1832# ---------------------------------- 1833# Tests whether FUNC exists, setting the cache variable VAR accordingly 1834ac_fn_c_check_func () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838printf %s "checking for $2... " >&6; } 1839if eval test \${$3+y} 1840then : 1841 printf %s "(cached) " >&6 1842else case e in #( 1843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (void); below. */ 1851 1852#include <limits.h> 1853#undef $2 1854 1855/* Override any GCC internal prototype to avoid an error. 1856 Use char because int might match the return type of a GCC 1857 builtin and then its argument prototype would still apply. */ 1858#ifdef __cplusplus 1859extern "C" 1860#endif 1861char $2 (void); 1862/* The GNU C library defines this for functions which it implements 1863 to always fail with ENOSYS. Some functions are actually named 1864 something starting with __ and the normal name is an alias. */ 1865#if defined __stub_$2 || defined __stub___$2 1866choke me 1867#endif 1868 1869int 1870main (void) 1871{ 1872return $2 (); 1873 ; 1874 return 0; 1875} 1876_ACEOF 1877if ac_fn_c_try_link "$LINENO" 1878then : 1879 eval "$3=yes" 1880else case e in #( 1881 e) eval "$3=no" ;; 1882esac 1883fi 1884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1885 conftest$ac_exeext conftest.$ac_ext ;; 1886esac 1887fi 1888eval ac_res=\$$3 1889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890printf "%s\n" "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893} # ac_fn_c_check_func 1894 1895# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1896# ------------------------------------------------------------------ 1897# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1898# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1899ac_fn_check_decl () 1900{ 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 as_decl_name=`echo $2|sed 's/ *(.*//'` 1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1904printf %s "checking whether $as_decl_name is declared... " >&6; } 1905if eval test \${$3+y} 1906then : 1907 printf %s "(cached) " >&6 1908else case e in #( 1909 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1910 eval ac_save_FLAGS=\$$6 1911 as_fn_append $6 " $5" 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913/* end confdefs.h. */ 1914$4 1915int 1916main (void) 1917{ 1918#ifndef $as_decl_name 1919#ifdef __cplusplus 1920 (void) $as_decl_use; 1921#else 1922 (void) $as_decl_name; 1923#endif 1924#endif 1925 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO" 1931then : 1932 eval "$3=yes" 1933else case e in #( 1934 e) eval "$3=no" ;; 1935esac 1936fi 1937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1938 eval $6=\$ac_save_FLAGS 1939 ;; 1940esac 1941fi 1942eval ac_res=\$$3 1943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944printf "%s\n" "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947} # ac_fn_check_decl 1948 1949# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1950# ---------------------------------------------------- 1951# Tries to find if the field MEMBER exists in type AGGR, after including 1952# INCLUDES, setting cache variable VAR accordingly. 1953ac_fn_c_check_member () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1957printf %s "checking for $2.$3... " >&6; } 1958if eval test \${$4+y} 1959then : 1960 printf %s "(cached) " >&6 1961else case e in #( 1962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964$5 1965int 1966main (void) 1967{ 1968static $2 ac_aggr; 1969if (ac_aggr.$3) 1970return 0; 1971 ; 1972 return 0; 1973} 1974_ACEOF 1975if ac_fn_c_try_compile "$LINENO" 1976then : 1977 eval "$4=yes" 1978else case e in #( 1979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1980/* end confdefs.h. */ 1981$5 1982int 1983main (void) 1984{ 1985static $2 ac_aggr; 1986if (sizeof ac_aggr.$3) 1987return 0; 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO" 1993then : 1994 eval "$4=yes" 1995else case e in #( 1996 e) eval "$4=no" ;; 1997esac 1998fi 1999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2000esac 2001fi 2002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2003esac 2004fi 2005eval ac_res=\$$4 2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007printf "%s\n" "$ac_res" >&6; } 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010} # ac_fn_c_check_member 2011 2012# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2013# ------------------------------------------- 2014# Tests whether TYPE exists after having included INCLUDES, setting cache 2015# variable VAR accordingly. 2016ac_fn_c_check_type () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2020printf %s "checking for $2... " >&6; } 2021if eval test \${$3+y} 2022then : 2023 printf %s "(cached) " >&6 2024else case e in #( 2025 e) eval "$3=no" 2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027/* end confdefs.h. */ 2028$4 2029int 2030main (void) 2031{ 2032if (sizeof ($2)) 2033 return 0; 2034 ; 2035 return 0; 2036} 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO" 2039then : 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043int 2044main (void) 2045{ 2046if (sizeof (($2))) 2047 return 0; 2048 ; 2049 return 0; 2050} 2051_ACEOF 2052if ac_fn_c_try_compile "$LINENO" 2053then : 2054 2055else case e in #( 2056 e) eval "$3=yes" ;; 2057esac 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2060fi 2061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2062esac 2063fi 2064eval ac_res=\$$3 2065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2066printf "%s\n" "$ac_res" >&6; } 2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 2069} # ac_fn_c_check_type 2070ac_configure_args_raw= 2071for ac_arg 2072do 2073 case $ac_arg in 2074 *\'*) 2075 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2076 esac 2077 as_fn_append ac_configure_args_raw " '$ac_arg'" 2078done 2079 2080case $ac_configure_args_raw in 2081 *$as_nl*) 2082 ac_safe_unquote= ;; 2083 *) 2084 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2085 ac_unsafe_a="$ac_unsafe_z#~" 2086 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2087 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2088esac 2089 2090cat >config.log <<_ACEOF 2091This file contains any messages produced by compilers while 2092running configure, to aid debugging if configure makes a mistake. 2093 2094It was created by libSM $as_me 1.2.6, which was 2095generated by GNU Autoconf 2.72. Invocation command line was 2096 2097 $ $0$ac_configure_args_raw 2098 2099_ACEOF 2100exec 5>>config.log 2101{ 2102cat <<_ASUNAME 2103## --------- ## 2104## Platform. ## 2105## --------- ## 2106 2107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2108uname -m = `(uname -m) 2>/dev/null || echo unknown` 2109uname -r = `(uname -r) 2>/dev/null || echo unknown` 2110uname -s = `(uname -s) 2>/dev/null || echo unknown` 2111uname -v = `(uname -v) 2>/dev/null || echo unknown` 2112 2113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2114/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2115 2116/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2117/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2119/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2120/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2121/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2122/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2123 2124_ASUNAME 2125 2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2127for as_dir in $PATH 2128do 2129 IFS=$as_save_IFS 2130 case $as_dir in #((( 2131 '') as_dir=./ ;; 2132 */) ;; 2133 *) as_dir=$as_dir/ ;; 2134 esac 2135 printf "%s\n" "PATH: $as_dir" 2136 done 2137IFS=$as_save_IFS 2138 2139} >&5 2140 2141cat >&5 <<_ACEOF 2142 2143 2144## ----------- ## 2145## Core tests. ## 2146## ----------- ## 2147 2148_ACEOF 2149 2150 2151# Keep a trace of the command line. 2152# Strip out --no-create and --no-recursion so they do not pile up. 2153# Strip out --silent because we don't want to record it for future runs. 2154# Also quote any args containing shell meta-characters. 2155# Make two passes to allow for proper duplicate-argument suppression. 2156ac_configure_args= 2157ac_configure_args0= 2158ac_configure_args1= 2159ac_must_keep_next=false 2160for ac_pass in 1 2 2161do 2162 for ac_arg 2163 do 2164 case $ac_arg in 2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2167 | -silent | --silent | --silen | --sile | --sil) 2168 continue ;; 2169 *\'*) 2170 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2171 esac 2172 case $ac_pass in 2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2174 2) 2175 as_fn_append ac_configure_args1 " '$ac_arg'" 2176 if test $ac_must_keep_next = true; then 2177 ac_must_keep_next=false # Got value, back to normal. 2178 else 2179 case $ac_arg in 2180 *=* | --config-cache | -C | -disable-* | --disable-* \ 2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2183 | -with-* | --with-* | -without-* | --without-* | --x) 2184 case "$ac_configure_args0 " in 2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2186 esac 2187 ;; 2188 -* ) ac_must_keep_next=true ;; 2189 esac 2190 fi 2191 as_fn_append ac_configure_args " '$ac_arg'" 2192 ;; 2193 esac 2194 done 2195done 2196{ ac_configure_args0=; unset ac_configure_args0;} 2197{ ac_configure_args1=; unset ac_configure_args1;} 2198 2199# When interrupted or exit'd, cleanup temporary files, and complete 2200# config.log. We remove comments because anyway the quotes in there 2201# would cause problems or look ugly. 2202# WARNING: Use '\'' to represent an apostrophe within the trap. 2203# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2204trap 'exit_status=$? 2205 # Sanitize IFS. 2206 IFS=" "" $as_nl" 2207 # Save into config.log some information that might help in debugging. 2208 { 2209 echo 2210 2211 printf "%s\n" "## ---------------- ## 2212## Cache variables. ## 2213## ---------------- ##" 2214 echo 2215 # The following way of writing the cache mishandles newlines in values, 2216( 2217 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2218 eval ac_val=\$$ac_var 2219 case $ac_val in #( 2220 *${as_nl}*) 2221 case $ac_var in #( 2222 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2223printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2224 esac 2225 case $ac_var in #( 2226 _ | IFS | as_nl) ;; #( 2227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2228 *) { eval $ac_var=; unset $ac_var;} ;; 2229 esac ;; 2230 esac 2231 done 2232 (set) 2>&1 | 2233 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2234 *${as_nl}ac_space=\ *) 2235 sed -n \ 2236 "s/'\''/'\''\\\\'\'''\''/g; 2237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2238 ;; #( 2239 *) 2240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2241 ;; 2242 esac | 2243 sort 2244) 2245 echo 2246 2247 printf "%s\n" "## ----------------- ## 2248## Output variables. ## 2249## ----------------- ##" 2250 echo 2251 for ac_var in $ac_subst_vars 2252 do 2253 eval ac_val=\$$ac_var 2254 case $ac_val in 2255 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2256 esac 2257 printf "%s\n" "$ac_var='\''$ac_val'\''" 2258 done | sort 2259 echo 2260 2261 if test -n "$ac_subst_files"; then 2262 printf "%s\n" "## ------------------- ## 2263## File substitutions. ## 2264## ------------------- ##" 2265 echo 2266 for ac_var in $ac_subst_files 2267 do 2268 eval ac_val=\$$ac_var 2269 case $ac_val in 2270 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2271 esac 2272 printf "%s\n" "$ac_var='\''$ac_val'\''" 2273 done | sort 2274 echo 2275 fi 2276 2277 if test -s confdefs.h; then 2278 printf "%s\n" "## ----------- ## 2279## confdefs.h. ## 2280## ----------- ##" 2281 echo 2282 cat confdefs.h 2283 echo 2284 fi 2285 test "$ac_signal" != 0 && 2286 printf "%s\n" "$as_me: caught signal $ac_signal" 2287 printf "%s\n" "$as_me: exit $exit_status" 2288 } >&5 2289 rm -f core *.core core.conftest.* && 2290 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2291 exit $exit_status 2292' 0 2293for ac_signal in 1 2 13 15; do 2294 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2295done 2296ac_signal=0 2297 2298# confdefs.h avoids OS command line length limits that DEFS can exceed. 2299rm -f -r conftest* confdefs.h 2300 2301printf "%s\n" "/* confdefs.h */" > confdefs.h 2302 2303# Predefined preprocessor variables. 2304 2305printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2306 2307printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2308 2309printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2310 2311printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2312 2313printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2314 2315printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2316 2317 2318# Let the site file select an alternate cache file if it wants to. 2319# Prefer an explicitly selected file to automatically selected ones. 2320if test -n "$CONFIG_SITE"; then 2321 ac_site_files="$CONFIG_SITE" 2322elif test "x$prefix" != xNONE; then 2323 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2324else 2325 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2326fi 2327 2328for ac_site_file in $ac_site_files 2329do 2330 case $ac_site_file in #( 2331 */*) : 2332 ;; #( 2333 *) : 2334 ac_site_file=./$ac_site_file ;; 2335esac 2336 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2338printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2339 sed 's/^/| /' "$ac_site_file" >&5 2340 . "$ac_site_file" \ 2341 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2342printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2343as_fn_error $? "failed to load site script $ac_site_file 2344See 'config.log' for more details" "$LINENO" 5; } 2345 fi 2346done 2347 2348if test -r "$cache_file"; then 2349 # Some versions of bash will fail to source /dev/null (special files 2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2353printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2354 case $cache_file in 2355 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2356 *) . "./$cache_file";; 2357 esac 2358 fi 2359else 2360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2361printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2362 >$cache_file 2363fi 2364 2365# Test code for whether the C compiler supports C89 (global declarations) 2366ac_c_conftest_c89_globals=' 2367/* Does the compiler advertise C89 conformance? 2368 Do not test the value of __STDC__, because some compilers set it to 0 2369 while being otherwise adequately conformant. */ 2370#if !defined __STDC__ 2371# error "Compiler does not advertise C89 conformance" 2372#endif 2373 2374#include <stddef.h> 2375#include <stdarg.h> 2376struct stat; 2377/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2378struct buf { int x; }; 2379struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2380static char *e (char **p, int i) 2381{ 2382 return p[i]; 2383} 2384static char *f (char * (*g) (char **, int), char **p, ...) 2385{ 2386 char *s; 2387 va_list v; 2388 va_start (v,p); 2389 s = g (p, va_arg (v,int)); 2390 va_end (v); 2391 return s; 2392} 2393 2394/* C89 style stringification. */ 2395#define noexpand_stringify(a) #a 2396const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2397 2398/* C89 style token pasting. Exercises some of the corner cases that 2399 e.g. old MSVC gets wrong, but not very hard. */ 2400#define noexpand_concat(a,b) a##b 2401#define expand_concat(a,b) noexpand_concat(a,b) 2402extern int vA; 2403extern int vbee; 2404#define aye A 2405#define bee B 2406int *pvA = &expand_concat(v,aye); 2407int *pvbee = &noexpand_concat(v,bee); 2408 2409/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2410 function prototypes and stuff, but not \xHH hex character constants. 2411 These do not provoke an error unfortunately, instead are silently treated 2412 as an "x". The following induces an error, until -std is added to get 2413 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2414 array size at least. It is necessary to write \x00 == 0 to get something 2415 that is true only with -std. */ 2416int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2417 2418/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2419 inside strings and character constants. */ 2420#define FOO(x) '\''x'\'' 2421int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2422 2423int test (int i, double x); 2424struct s1 {int (*f) (int a);}; 2425struct s2 {int (*f) (double a);}; 2426int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2427 int, int);' 2428 2429# Test code for whether the C compiler supports C89 (body of main). 2430ac_c_conftest_c89_main=' 2431ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2432' 2433 2434# Test code for whether the C compiler supports C99 (global declarations) 2435ac_c_conftest_c99_globals=' 2436/* Does the compiler advertise C99 conformance? */ 2437#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2438# error "Compiler does not advertise C99 conformance" 2439#endif 2440 2441// See if C++-style comments work. 2442 2443#include <stdbool.h> 2444extern int puts (const char *); 2445extern int printf (const char *, ...); 2446extern int dprintf (int, const char *, ...); 2447extern void *malloc (size_t); 2448extern void free (void *); 2449 2450// Check varargs macros. These examples are taken from C99 6.10.3.5. 2451// dprintf is used instead of fprintf to avoid needing to declare 2452// FILE and stderr. 2453#define debug(...) dprintf (2, __VA_ARGS__) 2454#define showlist(...) puts (#__VA_ARGS__) 2455#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2456static void 2457test_varargs_macros (void) 2458{ 2459 int x = 1234; 2460 int y = 5678; 2461 debug ("Flag"); 2462 debug ("X = %d\n", x); 2463 showlist (The first, second, and third items.); 2464 report (x>y, "x is %d but y is %d", x, y); 2465} 2466 2467// Check long long types. 2468#define BIG64 18446744073709551615ull 2469#define BIG32 4294967295ul 2470#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2471#if !BIG_OK 2472 #error "your preprocessor is broken" 2473#endif 2474#if BIG_OK 2475#else 2476 #error "your preprocessor is broken" 2477#endif 2478static long long int bignum = -9223372036854775807LL; 2479static unsigned long long int ubignum = BIG64; 2480 2481struct incomplete_array 2482{ 2483 int datasize; 2484 double data[]; 2485}; 2486 2487struct named_init { 2488 int number; 2489 const wchar_t *name; 2490 double average; 2491}; 2492 2493typedef const char *ccp; 2494 2495static inline int 2496test_restrict (ccp restrict text) 2497{ 2498 // Iterate through items via the restricted pointer. 2499 // Also check for declarations in for loops. 2500 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2501 continue; 2502 return 0; 2503} 2504 2505// Check varargs and va_copy. 2506static bool 2507test_varargs (const char *format, ...) 2508{ 2509 va_list args; 2510 va_start (args, format); 2511 va_list args_copy; 2512 va_copy (args_copy, args); 2513 2514 const char *str = ""; 2515 int number = 0; 2516 float fnumber = 0; 2517 2518 while (*format) 2519 { 2520 switch (*format++) 2521 { 2522 case '\''s'\'': // string 2523 str = va_arg (args_copy, const char *); 2524 break; 2525 case '\''d'\'': // int 2526 number = va_arg (args_copy, int); 2527 break; 2528 case '\''f'\'': // float 2529 fnumber = va_arg (args_copy, double); 2530 break; 2531 default: 2532 break; 2533 } 2534 } 2535 va_end (args_copy); 2536 va_end (args); 2537 2538 return *str && number && fnumber; 2539} 2540' 2541 2542# Test code for whether the C compiler supports C99 (body of main). 2543ac_c_conftest_c99_main=' 2544 // Check bool. 2545 _Bool success = false; 2546 success |= (argc != 0); 2547 2548 // Check restrict. 2549 if (test_restrict ("String literal") == 0) 2550 success = true; 2551 char *restrict newvar = "Another string"; 2552 2553 // Check varargs. 2554 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2555 test_varargs_macros (); 2556 2557 // Check flexible array members. 2558 struct incomplete_array *ia = 2559 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2560 ia->datasize = 10; 2561 for (int i = 0; i < ia->datasize; ++i) 2562 ia->data[i] = i * 1.234; 2563 // Work around memory leak warnings. 2564 free (ia); 2565 2566 // Check named initializers. 2567 struct named_init ni = { 2568 .number = 34, 2569 .name = L"Test wide string", 2570 .average = 543.34343, 2571 }; 2572 2573 ni.number = 58; 2574 2575 int dynamic_array[ni.number]; 2576 dynamic_array[0] = argv[0][0]; 2577 dynamic_array[ni.number - 1] = 543; 2578 2579 // work around unused variable warnings 2580 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2581 || dynamic_array[ni.number - 1] != 543); 2582' 2583 2584# Test code for whether the C compiler supports C11 (global declarations) 2585ac_c_conftest_c11_globals=' 2586/* Does the compiler advertise C11 conformance? */ 2587#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2588# error "Compiler does not advertise C11 conformance" 2589#endif 2590 2591// Check _Alignas. 2592char _Alignas (double) aligned_as_double; 2593char _Alignas (0) no_special_alignment; 2594extern char aligned_as_int; 2595char _Alignas (0) _Alignas (int) aligned_as_int; 2596 2597// Check _Alignof. 2598enum 2599{ 2600 int_alignment = _Alignof (int), 2601 int_array_alignment = _Alignof (int[100]), 2602 char_alignment = _Alignof (char) 2603}; 2604_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2605 2606// Check _Noreturn. 2607int _Noreturn does_not_return (void) { for (;;) continue; } 2608 2609// Check _Static_assert. 2610struct test_static_assert 2611{ 2612 int x; 2613 _Static_assert (sizeof (int) <= sizeof (long int), 2614 "_Static_assert does not work in struct"); 2615 long int y; 2616}; 2617 2618// Check UTF-8 literals. 2619#define u8 syntax error! 2620char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2621 2622// Check duplicate typedefs. 2623typedef long *long_ptr; 2624typedef long int *long_ptr; 2625typedef long_ptr long_ptr; 2626 2627// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2628struct anonymous 2629{ 2630 union { 2631 struct { int i; int j; }; 2632 struct { int k; long int l; } w; 2633 }; 2634 int m; 2635} v1; 2636' 2637 2638# Test code for whether the C compiler supports C11 (body of main). 2639ac_c_conftest_c11_main=' 2640 _Static_assert ((offsetof (struct anonymous, i) 2641 == offsetof (struct anonymous, w.k)), 2642 "Anonymous union alignment botch"); 2643 v1.i = 2; 2644 v1.w.k = 5; 2645 ok |= v1.i != 5; 2646' 2647 2648# Test code for whether the C compiler supports C11 (complete). 2649ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2650${ac_c_conftest_c99_globals} 2651${ac_c_conftest_c11_globals} 2652 2653int 2654main (int argc, char **argv) 2655{ 2656 int ok = 0; 2657 ${ac_c_conftest_c89_main} 2658 ${ac_c_conftest_c99_main} 2659 ${ac_c_conftest_c11_main} 2660 return ok; 2661} 2662" 2663 2664# Test code for whether the C compiler supports C99 (complete). 2665ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2666${ac_c_conftest_c99_globals} 2667 2668int 2669main (int argc, char **argv) 2670{ 2671 int ok = 0; 2672 ${ac_c_conftest_c89_main} 2673 ${ac_c_conftest_c99_main} 2674 return ok; 2675} 2676" 2677 2678# Test code for whether the C compiler supports C89 (complete). 2679ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2680 2681int 2682main (int argc, char **argv) 2683{ 2684 int ok = 0; 2685 ${ac_c_conftest_c89_main} 2686 return ok; 2687} 2688" 2689 2690as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2691as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2692as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2693as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2694as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2695as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2696as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2697as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2698as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2699 2700# Auxiliary files required by this configure script. 2701ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2702 2703# Locations in which to look for auxiliary files. 2704ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2705 2706# Search for a directory containing all of the required auxiliary files, 2707# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2708# If we don't find one directory that contains all the files we need, 2709# we report the set of missing files from the *first* directory in 2710# $ac_aux_dir_candidates and give up. 2711ac_missing_aux_files="" 2712ac_first_candidate=: 2713printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715as_found=false 2716for as_dir in $ac_aux_dir_candidates 2717do 2718 IFS=$as_save_IFS 2719 case $as_dir in #((( 2720 '') as_dir=./ ;; 2721 */) ;; 2722 *) as_dir=$as_dir/ ;; 2723 esac 2724 as_found=: 2725 2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2727 ac_aux_dir_found=yes 2728 ac_install_sh= 2729 for ac_aux in $ac_aux_files 2730 do 2731 # As a special case, if "install-sh" is required, that requirement 2732 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2733 # and $ac_install_sh is set appropriately for whichever one is found. 2734 if test x"$ac_aux" = x"install-sh" 2735 then 2736 if test -f "${as_dir}install-sh"; then 2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2738 ac_install_sh="${as_dir}install-sh -c" 2739 elif test -f "${as_dir}install.sh"; then 2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2741 ac_install_sh="${as_dir}install.sh -c" 2742 elif test -f "${as_dir}shtool"; then 2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2744 ac_install_sh="${as_dir}shtool install -c" 2745 else 2746 ac_aux_dir_found=no 2747 if $ac_first_candidate; then 2748 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2749 else 2750 break 2751 fi 2752 fi 2753 else 2754 if test -f "${as_dir}${ac_aux}"; then 2755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2756 else 2757 ac_aux_dir_found=no 2758 if $ac_first_candidate; then 2759 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2760 else 2761 break 2762 fi 2763 fi 2764 fi 2765 done 2766 if test "$ac_aux_dir_found" = yes; then 2767 ac_aux_dir="$as_dir" 2768 break 2769 fi 2770 ac_first_candidate=false 2771 2772 as_found=false 2773done 2774IFS=$as_save_IFS 2775if $as_found 2776then : 2777 2778else case e in #( 2779 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2780esac 2781fi 2782 2783 2784# These three variables are undocumented and unsupported, 2785# and are intended to be withdrawn in a future Autoconf release. 2786# They can cause serious problems if a builder's source tree is in a directory 2787# whose full name contains unusual characters. 2788if test -f "${ac_aux_dir}config.guess"; then 2789 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2790fi 2791if test -f "${ac_aux_dir}config.sub"; then 2792 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2793fi 2794if test -f "$ac_aux_dir/configure"; then 2795 ac_configure="$SHELL ${ac_aux_dir}configure" 2796fi 2797 2798# Check that the precious variables saved in the cache have kept the same 2799# value. 2800ac_cache_corrupted=false 2801for ac_var in $ac_precious_vars; do 2802 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2803 eval ac_new_set=\$ac_env_${ac_var}_set 2804 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2805 eval ac_new_val=\$ac_env_${ac_var}_value 2806 case $ac_old_set,$ac_new_set in 2807 set,) 2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2809printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2810 ac_cache_corrupted=: ;; 2811 ,set) 2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2813printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2814 ac_cache_corrupted=: ;; 2815 ,);; 2816 *) 2817 if test "x$ac_old_val" != "x$ac_new_val"; then 2818 # differences in whitespace do not lead to failure. 2819 ac_old_val_w=`echo x $ac_old_val` 2820 ac_new_val_w=`echo x $ac_new_val` 2821 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2823printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2824 ac_cache_corrupted=: 2825 else 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2827printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2828 eval $ac_var=\$ac_old_val 2829 fi 2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2831printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2833printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2834 fi;; 2835 esac 2836 # Pass precious variables to config.status. 2837 if test "$ac_new_set" = set; then 2838 case $ac_new_val in 2839 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2840 *) ac_arg=$ac_var=$ac_new_val ;; 2841 esac 2842 case " $ac_configure_args " in 2843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2844 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2845 esac 2846 fi 2847done 2848if $ac_cache_corrupted; then 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2850printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2852printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2853 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2854 and start over" "$LINENO" 5 2855fi 2856## -------------------- ## 2857## Main body of script. ## 2858## -------------------- ## 2859 2860ac_ext=c 2861ac_cpp='$CPP $CPPFLAGS' 2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2864ac_compiler_gnu=$ac_cv_c_compiler_gnu 2865 2866 2867 2868ac_config_headers="$ac_config_headers config.h" 2869 2870 2871 2872# Initialize Automake 2873am__api_version='1.17' 2874 2875 2876 2877 # Find a good install program. We prefer a C program (faster), 2878# so one script is as good as another. But avoid the broken or 2879# incompatible versions: 2880# SysV /etc/install, /usr/sbin/install 2881# SunOS /usr/etc/install 2882# IRIX /sbin/install 2883# AIX /bin/install 2884# AmigaOS /C/install, which installs bootblocks on floppy discs 2885# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2886# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2887# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2888# OS/2's system install, which has a completely different semantic 2889# ./install, which can be erroneously created by make from ./install.sh. 2890# Reject install programs that cannot install multiple files. 2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2892printf %s "checking for a BSD-compatible install... " >&6; } 2893if test -z "$INSTALL"; then 2894if test ${ac_cv_path_install+y} 2895then : 2896 printf %s "(cached) " >&6 2897else case e in #( 2898 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 case $as_dir in #((( 2903 '') as_dir=./ ;; 2904 */) ;; 2905 *) as_dir=$as_dir/ ;; 2906 esac 2907 # Account for fact that we put trailing slashes in our PATH walk. 2908case $as_dir in #(( 2909 ./ | /[cC]/* | \ 2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2912 /usr/ucb/* ) ;; 2913 *) 2914 # OSF1 and SCO ODT 3.0 have their own names for install. 2915 # Don't use installbsd from OSF since it installs stuff as root 2916 # by default. 2917 for ac_prog in ginstall scoinst install; do 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2920 if test $ac_prog = install && 2921 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2922 # AIX install. It has an incompatible calling convention. 2923 : 2924 elif test $ac_prog = install && 2925 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2926 # program-specific install script used by HP pwplus--don't use. 2927 : 2928 else 2929 rm -rf conftest.one conftest.two conftest.dir 2930 echo one > conftest.one 2931 echo two > conftest.two 2932 mkdir conftest.dir 2933 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2934 test -s conftest.one && test -s conftest.two && 2935 test -s conftest.dir/conftest.one && 2936 test -s conftest.dir/conftest.two 2937 then 2938 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2939 break 3 2940 fi 2941 fi 2942 fi 2943 done 2944 done 2945 ;; 2946esac 2947 2948 done 2949IFS=$as_save_IFS 2950 2951rm -rf conftest.one conftest.two conftest.dir 2952 ;; 2953esac 2954fi 2955 if test ${ac_cv_path_install+y}; then 2956 INSTALL=$ac_cv_path_install 2957 else 2958 # As a last resort, use the slow shell script. Don't cache a 2959 # value for INSTALL within a source directory, because that will 2960 # break other packages using the cache if that directory is 2961 # removed, or if the value is a relative name. 2962 INSTALL=$ac_install_sh 2963 fi 2964fi 2965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2966printf "%s\n" "$INSTALL" >&6; } 2967 2968# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2969# It thinks the first close brace ends the variable substitution. 2970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2971 2972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2973 2974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2975 2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2977printf %s "checking whether sleep supports fractional seconds... " >&6; } 2978if test ${am_cv_sleep_fractional_seconds+y} 2979then : 2980 printf %s "(cached) " >&6 2981else case e in #( 2982 e) if sleep 0.001 2>/dev/null 2983then : 2984 am_cv_sleep_fractional_seconds=yes 2985else case e in #( 2986 e) am_cv_sleep_fractional_seconds=no ;; 2987esac 2988fi 2989 ;; 2990esac 2991fi 2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2993printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2994 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2996printf %s "checking filesystem timestamp resolution... " >&6; } 2997if test ${am_cv_filesystem_timestamp_resolution+y} 2998then : 2999 printf %s "(cached) " >&6 3000else case e in #( 3001 e) # Default to the worst case. 3002am_cv_filesystem_timestamp_resolution=2 3003 3004# Only try to go finer than 1 sec if sleep can do it. 3005# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3006# - 1 sec is not much of a win compared to 2 sec, and 3007# - it takes 2 seconds to perform the test whether 1 sec works. 3008# 3009# Instead, just use the default 2s on platforms that have 1s resolution, 3010# accept the extra 1s delay when using $sleep in the Automake tests, in 3011# exchange for not incurring the 2s delay for running the test for all 3012# packages. 3013# 3014am_try_resolutions= 3015if test "$am_cv_sleep_fractional_seconds" = yes; then 3016 # Even a millisecond often causes a bunch of false positives, 3017 # so just try a hundredth of a second. The time saved between .001 and 3018 # .01 is not terribly consequential. 3019 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3020fi 3021 3022# In order to catch current-generation FAT out, we must *modify* files 3023# that already exist; the *creation* timestamp is finer. Use names 3024# that make ls -t sort them differently when they have equal 3025# timestamps than when they have distinct timestamps, keeping 3026# in mind that ls -t prints the *newest* file first. 3027rm -f conftest.ts? 3028: > conftest.ts1 3029: > conftest.ts2 3030: > conftest.ts3 3031 3032# Make sure ls -t actually works. Do 'set' in a subshell so we don't 3033# clobber the current shell's arguments. (Outer-level square brackets 3034# are removed by m4; they're present so that m4 does not expand 3035# <dollar><star>; be careful, easy to get confused.) 3036if ( 3037 set X `ls -t conftest.ts[12]` && 3038 { 3039 test "$*" != "X conftest.ts1 conftest.ts2" || 3040 test "$*" != "X conftest.ts2 conftest.ts1"; 3041 } 3042); then :; else 3043 # If neither matched, then we have a broken ls. This can happen 3044 # if, for instance, CONFIG_SHELL is bash and it inherits a 3045 # broken ls alias from the environment. This has actually 3046 # happened. Such a system could not be considered "sane". 3047 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3049printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3050as_fn_error $? "ls -t produces unexpected output. 3051Make sure there is not a broken ls alias in your environment. 3052See 'config.log' for more details" "$LINENO" 5; } 3053fi 3054 3055for am_try_res in $am_try_resolutions; do 3056 # Any one fine-grained sleep might happen to cross the boundary 3057 # between two values of a coarser actual resolution, but if we do 3058 # two fine-grained sleeps in a row, at least one of them will fall 3059 # entirely within a coarse interval. 3060 echo alpha > conftest.ts1 3061 sleep $am_try_res 3062 echo beta > conftest.ts2 3063 sleep $am_try_res 3064 echo gamma > conftest.ts3 3065 3066 # We assume that 'ls -t' will make use of high-resolution 3067 # timestamps if the operating system supports them at all. 3068 if (set X `ls -t conftest.ts?` && 3069 test "$2" = conftest.ts3 && 3070 test "$3" = conftest.ts2 && 3071 test "$4" = conftest.ts1); then 3072 # 3073 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3074 # because we don't need to test make. 3075 make_ok=true 3076 if test $am_try_res != 1; then 3077 # But if we've succeeded so far with a subsecond resolution, we 3078 # have one more thing to check: make. It can happen that 3079 # everything else supports the subsecond mtimes, but make doesn't; 3080 # notably on macOS, which ships make 3.81 from 2006 (the last one 3081 # released under GPLv2). https://bugs.gnu.org/68808 3082 # 3083 # We test $MAKE if it is defined in the environment, else "make". 3084 # It might get overridden later, but our hope is that in practice 3085 # it does not matter: it is the system "make" which is (by far) 3086 # the most likely to be broken, whereas if the user overrides it, 3087 # probably they did so with a better, or at least not worse, make. 3088 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3089 # 3090 # Create a Makefile (real tab character here): 3091 rm -f conftest.mk 3092 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3093 echo ' touch conftest.ts2' >>conftest.mk 3094 # 3095 # Now, running 3096 # touch conftest.ts1; touch conftest.ts2; make 3097 # should touch ts1 because ts2 is newer. This could happen by luck, 3098 # but most often, it will fail if make's support is insufficient. So 3099 # test for several consecutive successes. 3100 # 3101 # (We reuse conftest.ts[12] because we still want to modify existing 3102 # files, not create new ones, per above.) 3103 n=0 3104 make=${MAKE-make} 3105 until test $n -eq 3; do 3106 echo one > conftest.ts1 3107 sleep $am_try_res 3108 echo two > conftest.ts2 # ts2 should now be newer than ts1 3109 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3110 make_ok=false 3111 break # out of $n loop 3112 fi 3113 n=`expr $n + 1` 3114 done 3115 fi 3116 # 3117 if $make_ok; then 3118 # Everything we know to check worked out, so call this resolution good. 3119 am_cv_filesystem_timestamp_resolution=$am_try_res 3120 break # out of $am_try_res loop 3121 fi 3122 # Otherwise, we'll go on to check the next resolution. 3123 fi 3124done 3125rm -f conftest.ts? 3126# (end _am_filesystem_timestamp_resolution) 3127 ;; 3128esac 3129fi 3130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3131printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3132 3133# This check should not be cached, as it may vary across builds of 3134# different projects. 3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3136printf %s "checking whether build environment is sane... " >&6; } 3137# Reject unsafe characters in $srcdir or the absolute working directory 3138# name. Accept space and tab only in the latter. 3139am_lf=' 3140' 3141case `pwd` in 3142 *[\\\"\#\$\&\'\`$am_lf]*) 3143 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3144esac 3145case $srcdir in 3146 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3147 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3148esac 3149 3150# Do 'set' in a subshell so we don't clobber the current shell's 3151# arguments. Must try -L first in case configure is actually a 3152# symlink; some systems play weird games with the mod time of symlinks 3153# (eg FreeBSD returns the mod time of the symlink's containing 3154# directory). 3155am_build_env_is_sane=no 3156am_has_slept=no 3157rm -f conftest.file 3158for am_try in 1 2; do 3159 echo "timestamp, slept: $am_has_slept" > conftest.file 3160 if ( 3161 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3162 if test "$*" = "X"; then 3163 # -L didn't work. 3164 set X `ls -t "$srcdir/configure" conftest.file` 3165 fi 3166 test "$2" = conftest.file 3167 ); then 3168 am_build_env_is_sane=yes 3169 break 3170 fi 3171 # Just in case. 3172 sleep "$am_cv_filesystem_timestamp_resolution" 3173 am_has_slept=yes 3174done 3175 3176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3177printf "%s\n" "$am_build_env_is_sane" >&6; } 3178if test "$am_build_env_is_sane" = no; then 3179 as_fn_error $? "newly created file is older than distributed files! 3180Check your system clock" "$LINENO" 5 3181fi 3182 3183# If we didn't sleep, we still need to ensure time stamps of config.status and 3184# generated files are strictly newer. 3185am_sleep_pid= 3186if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3187then : 3188 3189else case e in #( 3190 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3191 am_sleep_pid=$! 3192 ;; 3193esac 3194fi 3195 3196rm -f conftest.file 3197 3198test "$program_prefix" != NONE && 3199 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3200# Use a double $ so make ignores it. 3201test "$program_suffix" != NONE && 3202 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3203# Double any \ or $. 3204# By default was 's,x,x', remove it if useless. 3205ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3206program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3207 3208 3209# Expand $ac_aux_dir to an absolute path. 3210am_aux_dir=`cd "$ac_aux_dir" && pwd` 3211 3212 3213 if test x"${MISSING+set}" != xset; then 3214 MISSING="\${SHELL} '$am_aux_dir/missing'" 3215fi 3216# Use eval to expand $SHELL 3217if eval "$MISSING --is-lightweight"; then 3218 am_missing_run="$MISSING " 3219else 3220 am_missing_run= 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3222printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3223fi 3224 3225if test x"${install_sh+set}" != xset; then 3226 case $am_aux_dir in 3227 *\ * | *\ *) 3228 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3229 *) 3230 install_sh="\${SHELL} $am_aux_dir/install-sh" 3231 esac 3232fi 3233 3234# Installed binaries are usually stripped using 'strip' when the user 3235# run "make install-strip". However 'strip' might not be the right 3236# tool to use in cross-compilation environments, therefore Automake 3237# will honor the 'STRIP' environment variable to overrule this program. 3238if test "$cross_compiling" != no; then 3239 if test -n "$ac_tool_prefix"; then 3240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3241set dummy ${ac_tool_prefix}strip; ac_word=$2 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243printf %s "checking for $ac_word... " >&6; } 3244if test ${ac_cv_prog_STRIP+y} 3245then : 3246 printf %s "(cached) " >&6 3247else case e in #( 3248 e) if test -n "$STRIP"; then 3249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 case $as_dir in #((( 3256 '') as_dir=./ ;; 3257 */) ;; 3258 *) as_dir=$as_dir/ ;; 3259 esac 3260 for ac_exec_ext in '' $ac_executable_extensions; do 3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3262 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3264 break 2 3265 fi 3266done 3267 done 3268IFS=$as_save_IFS 3269 3270fi ;; 3271esac 3272fi 3273STRIP=$ac_cv_prog_STRIP 3274if test -n "$STRIP"; then 3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3276printf "%s\n" "$STRIP" >&6; } 3277else 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279printf "%s\n" "no" >&6; } 3280fi 3281 3282 3283fi 3284if test -z "$ac_cv_prog_STRIP"; then 3285 ac_ct_STRIP=$STRIP 3286 # Extract the first word of "strip", so it can be a program name with args. 3287set dummy strip; ac_word=$2 3288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289printf %s "checking for $ac_word... " >&6; } 3290if test ${ac_cv_prog_ac_ct_STRIP+y} 3291then : 3292 printf %s "(cached) " >&6 3293else case e in #( 3294 e) if test -n "$ac_ct_STRIP"; then 3295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3296else 3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH 3299do 3300 IFS=$as_save_IFS 3301 case $as_dir in #((( 3302 '') as_dir=./ ;; 3303 */) ;; 3304 *) as_dir=$as_dir/ ;; 3305 esac 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3308 ac_cv_prog_ac_ct_STRIP="strip" 3309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3310 break 2 3311 fi 3312done 3313 done 3314IFS=$as_save_IFS 3315 3316fi ;; 3317esac 3318fi 3319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3320if test -n "$ac_ct_STRIP"; then 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3322printf "%s\n" "$ac_ct_STRIP" >&6; } 3323else 3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3325printf "%s\n" "no" >&6; } 3326fi 3327 3328 if test "x$ac_ct_STRIP" = x; then 3329 STRIP=":" 3330 else 3331 case $cross_compiling:$ac_tool_warned in 3332yes:) 3333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3334printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3335ac_tool_warned=yes ;; 3336esac 3337 STRIP=$ac_ct_STRIP 3338 fi 3339else 3340 STRIP="$ac_cv_prog_STRIP" 3341fi 3342 3343fi 3344INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3345 3346 3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3348printf %s "checking for a race-free mkdir -p... " >&6; } 3349if test -z "$MKDIR_P"; then 3350 if test ${ac_cv_path_mkdir+y} 3351then : 3352 printf %s "(cached) " >&6 3353else case e in #( 3354 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3356do 3357 IFS=$as_save_IFS 3358 case $as_dir in #((( 3359 '') as_dir=./ ;; 3360 */) ;; 3361 *) as_dir=$as_dir/ ;; 3362 esac 3363 for ac_prog in mkdir gmkdir; do 3364 for ac_exec_ext in '' $ac_executable_extensions; do 3365 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3366 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3367 'mkdir ('*'coreutils) '* | \ 3368 *'BusyBox '* | \ 3369 'mkdir (fileutils) '4.1*) 3370 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3371 break 3;; 3372 esac 3373 done 3374 done 3375 done 3376IFS=$as_save_IFS 3377 ;; 3378esac 3379fi 3380 3381 test -d ./--version && rmdir ./--version 3382 if test ${ac_cv_path_mkdir+y}; then 3383 MKDIR_P="$ac_cv_path_mkdir -p" 3384 else 3385 # As a last resort, use plain mkdir -p, 3386 # in the hope it doesn't have the bugs of ancient mkdir. 3387 MKDIR_P='mkdir -p' 3388 fi 3389fi 3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3391printf "%s\n" "$MKDIR_P" >&6; } 3392 3393for ac_prog in gawk mawk nawk awk 3394do 3395 # Extract the first word of "$ac_prog", so it can be a program name with args. 3396set dummy $ac_prog; ac_word=$2 3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3398printf %s "checking for $ac_word... " >&6; } 3399if test ${ac_cv_prog_AWK+y} 3400then : 3401 printf %s "(cached) " >&6 3402else case e in #( 3403 e) if test -n "$AWK"; then 3404 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3405else 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 case $as_dir in #((( 3411 '') as_dir=./ ;; 3412 */) ;; 3413 *) as_dir=$as_dir/ ;; 3414 esac 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3417 ac_cv_prog_AWK="$ac_prog" 3418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421done 3422 done 3423IFS=$as_save_IFS 3424 3425fi ;; 3426esac 3427fi 3428AWK=$ac_cv_prog_AWK 3429if test -n "$AWK"; then 3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3431printf "%s\n" "$AWK" >&6; } 3432else 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434printf "%s\n" "no" >&6; } 3435fi 3436 3437 3438 test -n "$AWK" && break 3439done 3440 3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3442printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3443set x ${MAKE-make} 3444ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3445if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3446then : 3447 printf %s "(cached) " >&6 3448else case e in #( 3449 e) cat >conftest.make <<\_ACEOF 3450SHELL = /bin/sh 3451all: 3452 @echo '@@@%%%=$(MAKE)=@@@%%%' 3453_ACEOF 3454# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3455case `${MAKE-make} -f conftest.make 2>/dev/null` in 3456 *@@@%%%=?*=@@@%%%*) 3457 eval ac_cv_prog_make_${ac_make}_set=yes;; 3458 *) 3459 eval ac_cv_prog_make_${ac_make}_set=no;; 3460esac 3461rm -f conftest.make ;; 3462esac 3463fi 3464if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3466printf "%s\n" "yes" >&6; } 3467 SET_MAKE= 3468else 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470printf "%s\n" "no" >&6; } 3471 SET_MAKE="MAKE=${MAKE-make}" 3472fi 3473 3474rm -rf .tst 2>/dev/null 3475mkdir .tst 2>/dev/null 3476if test -d .tst; then 3477 am__leading_dot=. 3478else 3479 am__leading_dot=_ 3480fi 3481rmdir .tst 2>/dev/null 3482 3483AM_DEFAULT_VERBOSITY=1 3484# Check whether --enable-silent-rules was given. 3485if test ${enable_silent_rules+y} 3486then : 3487 enableval=$enable_silent_rules; 3488fi 3489 3490am_make=${MAKE-make} 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3492printf %s "checking whether $am_make supports nested variables... " >&6; } 3493if test ${am_cv_make_support_nested_variables+y} 3494then : 3495 printf %s "(cached) " >&6 3496else case e in #( 3497 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3498BAR0=false 3499BAR1=true 3500V=1 3501am__doit: 3502 @$(TRUE) 3503.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3504 am_cv_make_support_nested_variables=yes 3505else 3506 am_cv_make_support_nested_variables=no 3507fi ;; 3508esac 3509fi 3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3511printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3512AM_BACKSLASH='\' 3513 3514am__rm_f_notfound= 3515if (rm -f && rm -fr && rm -rf) 2>/dev/null 3516then : 3517 3518else case e in #( 3519 e) am__rm_f_notfound='""' ;; 3520esac 3521fi 3522 3523 3524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3525printf %s "checking xargs -n works... " >&6; } 3526if test ${am_cv_xargs_n_works+y} 3527then : 3528 printf %s "(cached) " >&6 3529else case e in #( 3530 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 35313" 3532then : 3533 am_cv_xargs_n_works=yes 3534else case e in #( 3535 e) am_cv_xargs_n_works=no ;; 3536esac 3537fi ;; 3538esac 3539fi 3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3541printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3542if test "$am_cv_xargs_n_works" = yes 3543then : 3544 am__xargs_n='xargs -n' 3545else case e in #( 3546 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3547 ;; 3548esac 3549fi 3550 3551if test "`cd $srcdir && pwd`" != "`pwd`"; then 3552 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3553 # is not polluted with repeated "-I." 3554 am__isrc=' -I$(srcdir)' 3555 # test to see if srcdir already configured 3556 if test -f $srcdir/config.status; then 3557 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3558 fi 3559fi 3560 3561# test whether we have cygpath 3562if test -z "$CYGPATH_W"; then 3563 if (cygpath --version) >/dev/null 2>/dev/null; then 3564 CYGPATH_W='cygpath -w' 3565 else 3566 CYGPATH_W=echo 3567 fi 3568fi 3569 3570 3571# Define the identity of the package. 3572 PACKAGE='libSM' 3573 VERSION='1.2.6' 3574 3575 3576printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3577 3578 3579printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3580 3581# Some tools Automake needs. 3582 3583ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3584 3585 3586AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3587 3588 3589AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3590 3591 3592AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3593 3594 3595MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3596 3597# For better backward compatibility. To be removed once Automake 1.9.x 3598# dies out for good. For more background, see: 3599# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3600# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3601mkdir_p='$(MKDIR_P)' 3602 3603# We need awk for the "check" target (and possibly the TAP driver). The 3604# system "awk" is bad on some platforms. 3605# Always define AMTAR for backward compatibility. Yes, it's still used 3606# in the wild :-( We should find a proper way to deprecate it ... 3607AMTAR='$${TAR-tar}' 3608 3609 3610# We'll loop over all known methods to create a tar archive until one works. 3611_am_tools='gnutar pax cpio none' 3612 3613am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3614 3615 3616 3617 3618 3619# Variables for tags utilities; see am/tags.am 3620if test -z "$CTAGS"; then 3621 CTAGS=ctags 3622fi 3623 3624if test -z "$ETAGS"; then 3625 ETAGS=etags 3626fi 3627 3628if test -z "$CSCOPE"; then 3629 CSCOPE=cscope 3630fi 3631 3632 3633 3634 3635 3636 3637 3638 3639# Initialize libtool 3640case `pwd` in 3641 *\ * | *\ *) 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3643printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3644esac 3645 3646 3647 3648macro_version='2.5.4' 3649macro_revision='2.5.4' 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664ltmain=$ac_aux_dir/ltmain.sh 3665 3666 3667 3668 # Make sure we can run config.sub. 3669$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3670 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3671 3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3673printf %s "checking build system type... " >&6; } 3674if test ${ac_cv_build+y} 3675then : 3676 printf %s "(cached) " >&6 3677else case e in #( 3678 e) ac_build_alias=$build_alias 3679test "x$ac_build_alias" = x && 3680 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3681test "x$ac_build_alias" = x && 3682 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3683ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3684 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3685 ;; 3686esac 3687fi 3688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3689printf "%s\n" "$ac_cv_build" >&6; } 3690case $ac_cv_build in 3691*-*-*) ;; 3692*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3693esac 3694build=$ac_cv_build 3695ac_save_IFS=$IFS; IFS='-' 3696set x $ac_cv_build 3697shift 3698build_cpu=$1 3699build_vendor=$2 3700shift; shift 3701# Remember, the first character of IFS is used to create $*, 3702# except with old shells: 3703build_os=$* 3704IFS=$ac_save_IFS 3705case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3706 3707 3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3709printf %s "checking host system type... " >&6; } 3710if test ${ac_cv_host+y} 3711then : 3712 printf %s "(cached) " >&6 3713else case e in #( 3714 e) if test "x$host_alias" = x; then 3715 ac_cv_host=$ac_cv_build 3716else 3717 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3719fi 3720 ;; 3721esac 3722fi 3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3724printf "%s\n" "$ac_cv_host" >&6; } 3725case $ac_cv_host in 3726*-*-*) ;; 3727*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3728esac 3729host=$ac_cv_host 3730ac_save_IFS=$IFS; IFS='-' 3731set x $ac_cv_host 3732shift 3733host_cpu=$1 3734host_vendor=$2 3735shift; shift 3736# Remember, the first character of IFS is used to create $*, 3737# except with old shells: 3738host_os=$* 3739IFS=$ac_save_IFS 3740case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3741 3742 3743# Backslashify metacharacters that are still active within 3744# double-quoted strings. 3745sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3746 3747# Same as above, but do not quote variable references. 3748double_quote_subst='s/\(["`\\]\)/\\\1/g' 3749 3750# Sed substitution to delay expansion of an escaped shell variable in a 3751# double_quote_subst'ed string. 3752delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3753 3754# Sed substitution to delay expansion of an escaped single quote. 3755delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3756 3757# Sed substitution to avoid accidental globbing in evaled expressions 3758no_glob_subst='s/\*/\\\*/g' 3759 3760ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3761ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3762ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3763 3764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3765printf %s "checking how to print strings... " >&6; } 3766# Test print first, because it will be a builtin if present. 3767if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3768 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3769 ECHO='print -r --' 3770elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3771 ECHO='printf %s\n' 3772else 3773 # Use this function as a fallback that always works. 3774 func_fallback_echo () 3775 { 3776 eval 'cat <<_LTECHO_EOF 3777$1 3778_LTECHO_EOF' 3779 } 3780 ECHO='func_fallback_echo' 3781fi 3782 3783# func_echo_all arg... 3784# Invoke $ECHO with all args, space-separated. 3785func_echo_all () 3786{ 3787 $ECHO "" 3788} 3789 3790case $ECHO in 3791 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3792printf "%s\n" "printf" >&6; } ;; 3793 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3794printf "%s\n" "print -r" >&6; } ;; 3795 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3796printf "%s\n" "cat" >&6; } ;; 3797esac 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821DEPDIR="${am__leading_dot}deps" 3822 3823ac_config_commands="$ac_config_commands depfiles" 3824 3825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3826printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3827cat > confinc.mk << 'END' 3828am__doit: 3829 @echo this is the am__doit target >confinc.out 3830.PHONY: am__doit 3831END 3832am__include="#" 3833am__quote= 3834# BSD make does it like this. 3835echo '.include "confinc.mk" # ignored' > confmf.BSD 3836# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3837echo 'include confinc.mk # ignored' > confmf.GNU 3838_am_result=no 3839for s in GNU BSD; do 3840 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3841 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } 3845 case $?:`cat confinc.out 2>/dev/null` in #( 3846 '0:this is the am__doit target') : 3847 case $s in #( 3848 BSD) : 3849 am__include='.include' am__quote='"' ;; #( 3850 *) : 3851 am__include='include' am__quote='' ;; 3852esac ;; #( 3853 *) : 3854 ;; 3855esac 3856 if test "$am__include" != "#"; then 3857 _am_result="yes ($s style)" 3858 break 3859 fi 3860done 3861rm -f confinc.* confmf.* 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3863printf "%s\n" "${_am_result}" >&6; } 3864 3865# Check whether --enable-dependency-tracking was given. 3866if test ${enable_dependency_tracking+y} 3867then : 3868 enableval=$enable_dependency_tracking; 3869fi 3870 3871if test "x$enable_dependency_tracking" != xno; then 3872 am_depcomp="$ac_aux_dir/depcomp" 3873 AMDEPBACKSLASH='\' 3874 am__nodep='_no' 3875fi 3876 if test "x$enable_dependency_tracking" != xno; then 3877 AMDEP_TRUE= 3878 AMDEP_FALSE='#' 3879else 3880 AMDEP_TRUE='#' 3881 AMDEP_FALSE= 3882fi 3883 3884 3885ac_ext=c 3886ac_cpp='$CPP $CPPFLAGS' 3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3889ac_compiler_gnu=$ac_cv_c_compiler_gnu 3890if test -n "$ac_tool_prefix"; then 3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3892set dummy ${ac_tool_prefix}gcc; ac_word=$2 3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3894printf %s "checking for $ac_word... " >&6; } 3895if test ${ac_cv_prog_CC+y} 3896then : 3897 printf %s "(cached) " >&6 3898else case e in #( 3899 e) if test -n "$CC"; then 3900 ac_cv_prog_CC="$CC" # Let the user override the test. 3901else 3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3903for as_dir in $PATH 3904do 3905 IFS=$as_save_IFS 3906 case $as_dir in #((( 3907 '') as_dir=./ ;; 3908 */) ;; 3909 *) as_dir=$as_dir/ ;; 3910 esac 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3913 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3915 break 2 3916 fi 3917done 3918 done 3919IFS=$as_save_IFS 3920 3921fi ;; 3922esac 3923fi 3924CC=$ac_cv_prog_CC 3925if test -n "$CC"; then 3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3927printf "%s\n" "$CC" >&6; } 3928else 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3930printf "%s\n" "no" >&6; } 3931fi 3932 3933 3934fi 3935if test -z "$ac_cv_prog_CC"; then 3936 ac_ct_CC=$CC 3937 # Extract the first word of "gcc", so it can be a program name with args. 3938set dummy gcc; ac_word=$2 3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3940printf %s "checking for $ac_word... " >&6; } 3941if test ${ac_cv_prog_ac_ct_CC+y} 3942then : 3943 printf %s "(cached) " >&6 3944else case e in #( 3945 e) if test -n "$ac_ct_CC"; then 3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3947else 3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3949for as_dir in $PATH 3950do 3951 IFS=$as_save_IFS 3952 case $as_dir in #((( 3953 '') as_dir=./ ;; 3954 */) ;; 3955 *) as_dir=$as_dir/ ;; 3956 esac 3957 for ac_exec_ext in '' $ac_executable_extensions; do 3958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3959 ac_cv_prog_ac_ct_CC="gcc" 3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3961 break 2 3962 fi 3963done 3964 done 3965IFS=$as_save_IFS 3966 3967fi ;; 3968esac 3969fi 3970ac_ct_CC=$ac_cv_prog_ac_ct_CC 3971if test -n "$ac_ct_CC"; then 3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3973printf "%s\n" "$ac_ct_CC" >&6; } 3974else 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3976printf "%s\n" "no" >&6; } 3977fi 3978 3979 if test "x$ac_ct_CC" = x; then 3980 CC="" 3981 else 3982 case $cross_compiling:$ac_tool_warned in 3983yes:) 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3986ac_tool_warned=yes ;; 3987esac 3988 CC=$ac_ct_CC 3989 fi 3990else 3991 CC="$ac_cv_prog_CC" 3992fi 3993 3994if test -z "$CC"; then 3995 if test -n "$ac_tool_prefix"; then 3996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3997set dummy ${ac_tool_prefix}cc; ac_word=$2 3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3999printf %s "checking for $ac_word... " >&6; } 4000if test ${ac_cv_prog_CC+y} 4001then : 4002 printf %s "(cached) " >&6 4003else case e in #( 4004 e) if test -n "$CC"; then 4005 ac_cv_prog_CC="$CC" # Let the user override the test. 4006else 4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH 4009do 4010 IFS=$as_save_IFS 4011 case $as_dir in #((( 4012 '') as_dir=./ ;; 4013 */) ;; 4014 *) as_dir=$as_dir/ ;; 4015 esac 4016 for ac_exec_ext in '' $ac_executable_extensions; do 4017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4018 ac_cv_prog_CC="${ac_tool_prefix}cc" 4019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4020 break 2 4021 fi 4022done 4023 done 4024IFS=$as_save_IFS 4025 4026fi ;; 4027esac 4028fi 4029CC=$ac_cv_prog_CC 4030if test -n "$CC"; then 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4032printf "%s\n" "$CC" >&6; } 4033else 4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4035printf "%s\n" "no" >&6; } 4036fi 4037 4038 4039 fi 4040fi 4041if test -z "$CC"; then 4042 # Extract the first word of "cc", so it can be a program name with args. 4043set dummy cc; ac_word=$2 4044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4045printf %s "checking for $ac_word... " >&6; } 4046if test ${ac_cv_prog_CC+y} 4047then : 4048 printf %s "(cached) " >&6 4049else case e in #( 4050 e) if test -n "$CC"; then 4051 ac_cv_prog_CC="$CC" # Let the user override the test. 4052else 4053 ac_prog_rejected=no 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 case $as_dir in #((( 4059 '') as_dir=./ ;; 4060 */) ;; 4061 *) as_dir=$as_dir/ ;; 4062 esac 4063 for ac_exec_ext in '' $ac_executable_extensions; do 4064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4065 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4066 ac_prog_rejected=yes 4067 continue 4068 fi 4069 ac_cv_prog_CC="cc" 4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4071 break 2 4072 fi 4073done 4074 done 4075IFS=$as_save_IFS 4076 4077if test $ac_prog_rejected = yes; then 4078 # We found a bogon in the path, so make sure we never use it. 4079 set dummy $ac_cv_prog_CC 4080 shift 4081 if test $# != 0; then 4082 # We chose a different compiler from the bogus one. 4083 # However, it has the same basename, so the bogon will be chosen 4084 # first if we set CC to just the basename; use the full file name. 4085 shift 4086 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4087 fi 4088fi 4089fi ;; 4090esac 4091fi 4092CC=$ac_cv_prog_CC 4093if test -n "$CC"; then 4094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4095printf "%s\n" "$CC" >&6; } 4096else 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098printf "%s\n" "no" >&6; } 4099fi 4100 4101 4102fi 4103if test -z "$CC"; then 4104 if test -n "$ac_tool_prefix"; then 4105 for ac_prog in cl.exe 4106 do 4107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4108set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4110printf %s "checking for $ac_word... " >&6; } 4111if test ${ac_cv_prog_CC+y} 4112then : 4113 printf %s "(cached) " >&6 4114else case e in #( 4115 e) if test -n "$CC"; then 4116 ac_cv_prog_CC="$CC" # Let the user override the test. 4117else 4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4119for as_dir in $PATH 4120do 4121 IFS=$as_save_IFS 4122 case $as_dir in #((( 4123 '') as_dir=./ ;; 4124 */) ;; 4125 *) as_dir=$as_dir/ ;; 4126 esac 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4131 break 2 4132 fi 4133done 4134 done 4135IFS=$as_save_IFS 4136 4137fi ;; 4138esac 4139fi 4140CC=$ac_cv_prog_CC 4141if test -n "$CC"; then 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4143printf "%s\n" "$CC" >&6; } 4144else 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146printf "%s\n" "no" >&6; } 4147fi 4148 4149 4150 test -n "$CC" && break 4151 done 4152fi 4153if test -z "$CC"; then 4154 ac_ct_CC=$CC 4155 for ac_prog in cl.exe 4156do 4157 # Extract the first word of "$ac_prog", so it can be a program name with args. 4158set dummy $ac_prog; ac_word=$2 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4160printf %s "checking for $ac_word... " >&6; } 4161if test ${ac_cv_prog_ac_ct_CC+y} 4162then : 4163 printf %s "(cached) " >&6 4164else case e in #( 4165 e) if test -n "$ac_ct_CC"; then 4166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4167else 4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169for as_dir in $PATH 4170do 4171 IFS=$as_save_IFS 4172 case $as_dir in #((( 4173 '') as_dir=./ ;; 4174 */) ;; 4175 *) as_dir=$as_dir/ ;; 4176 esac 4177 for ac_exec_ext in '' $ac_executable_extensions; do 4178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4179 ac_cv_prog_ac_ct_CC="$ac_prog" 4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4181 break 2 4182 fi 4183done 4184 done 4185IFS=$as_save_IFS 4186 4187fi ;; 4188esac 4189fi 4190ac_ct_CC=$ac_cv_prog_ac_ct_CC 4191if test -n "$ac_ct_CC"; then 4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4193printf "%s\n" "$ac_ct_CC" >&6; } 4194else 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4196printf "%s\n" "no" >&6; } 4197fi 4198 4199 4200 test -n "$ac_ct_CC" && break 4201done 4202 4203 if test "x$ac_ct_CC" = x; then 4204 CC="" 4205 else 4206 case $cross_compiling:$ac_tool_warned in 4207yes:) 4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4210ac_tool_warned=yes ;; 4211esac 4212 CC=$ac_ct_CC 4213 fi 4214fi 4215 4216fi 4217if test -z "$CC"; then 4218 if test -n "$ac_tool_prefix"; then 4219 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4220set dummy ${ac_tool_prefix}clang; ac_word=$2 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4222printf %s "checking for $ac_word... " >&6; } 4223if test ${ac_cv_prog_CC+y} 4224then : 4225 printf %s "(cached) " >&6 4226else case e in #( 4227 e) if test -n "$CC"; then 4228 ac_cv_prog_CC="$CC" # Let the user override the test. 4229else 4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4231for as_dir in $PATH 4232do 4233 IFS=$as_save_IFS 4234 case $as_dir in #((( 4235 '') as_dir=./ ;; 4236 */) ;; 4237 *) as_dir=$as_dir/ ;; 4238 esac 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4241 ac_cv_prog_CC="${ac_tool_prefix}clang" 4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245done 4246 done 4247IFS=$as_save_IFS 4248 4249fi ;; 4250esac 4251fi 4252CC=$ac_cv_prog_CC 4253if test -n "$CC"; then 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4255printf "%s\n" "$CC" >&6; } 4256else 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258printf "%s\n" "no" >&6; } 4259fi 4260 4261 4262fi 4263if test -z "$ac_cv_prog_CC"; then 4264 ac_ct_CC=$CC 4265 # Extract the first word of "clang", so it can be a program name with args. 4266set dummy clang; ac_word=$2 4267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268printf %s "checking for $ac_word... " >&6; } 4269if test ${ac_cv_prog_ac_ct_CC+y} 4270then : 4271 printf %s "(cached) " >&6 4272else case e in #( 4273 e) if test -n "$ac_ct_CC"; then 4274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4275else 4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4277for as_dir in $PATH 4278do 4279 IFS=$as_save_IFS 4280 case $as_dir in #((( 4281 '') as_dir=./ ;; 4282 */) ;; 4283 *) as_dir=$as_dir/ ;; 4284 esac 4285 for ac_exec_ext in '' $ac_executable_extensions; do 4286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4287 ac_cv_prog_ac_ct_CC="clang" 4288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4289 break 2 4290 fi 4291done 4292 done 4293IFS=$as_save_IFS 4294 4295fi ;; 4296esac 4297fi 4298ac_ct_CC=$ac_cv_prog_ac_ct_CC 4299if test -n "$ac_ct_CC"; then 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4301printf "%s\n" "$ac_ct_CC" >&6; } 4302else 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304printf "%s\n" "no" >&6; } 4305fi 4306 4307 if test "x$ac_ct_CC" = x; then 4308 CC="" 4309 else 4310 case $cross_compiling:$ac_tool_warned in 4311yes:) 4312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4313printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4314ac_tool_warned=yes ;; 4315esac 4316 CC=$ac_ct_CC 4317 fi 4318else 4319 CC="$ac_cv_prog_CC" 4320fi 4321 4322fi 4323 4324 4325test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4326printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4327as_fn_error $? "no acceptable C compiler found in \$PATH 4328See 'config.log' for more details" "$LINENO" 5; } 4329 4330# Provide some information about the compiler. 4331printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4332set X $ac_compile 4333ac_compiler=$2 4334for ac_option in --version -v -V -qversion -version; do 4335 { { ac_try="$ac_compiler $ac_option >&5" 4336case "(($ac_try" in 4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4338 *) ac_try_echo=$ac_try;; 4339esac 4340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4341printf "%s\n" "$ac_try_echo"; } >&5 4342 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4343 ac_status=$? 4344 if test -s conftest.err; then 4345 sed '10a\ 4346... rest of stderr output deleted ... 4347 10q' conftest.err >conftest.er1 4348 cat conftest.er1 >&5 4349 fi 4350 rm -f conftest.er1 conftest.err 4351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4352 test $ac_status = 0; } 4353done 4354 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356/* end confdefs.h. */ 4357 4358int 4359main (void) 4360{ 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366ac_clean_files_save=$ac_clean_files 4367ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4368# Try to create an executable without -o first, disregard a.out. 4369# It will help us diagnose broken compilers, and finding out an intuition 4370# of exeext. 4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4372printf %s "checking whether the C compiler works... " >&6; } 4373ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4374 4375# The possible output files: 4376ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4377 4378ac_rmfiles= 4379for ac_file in $ac_files 4380do 4381 case $ac_file in 4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4383 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4384 esac 4385done 4386rm -f $ac_rmfiles 4387 4388if { { ac_try="$ac_link_default" 4389case "(($ac_try" in 4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4391 *) ac_try_echo=$ac_try;; 4392esac 4393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4394printf "%s\n" "$ac_try_echo"; } >&5 4395 (eval "$ac_link_default") 2>&5 4396 ac_status=$? 4397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4398 test $ac_status = 0; } 4399then : 4400 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4401# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4402# in a Makefile. We should not override ac_cv_exeext if it was cached, 4403# so that the user can short-circuit this test for compilers unknown to 4404# Autoconf. 4405for ac_file in $ac_files '' 4406do 4407 test -f "$ac_file" || continue 4408 case $ac_file in 4409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4410 ;; 4411 [ab].out ) 4412 # We found the default executable, but exeext='' is most 4413 # certainly right. 4414 break;; 4415 *.* ) 4416 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4417 then :; else 4418 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4419 fi 4420 # We set ac_cv_exeext here because the later test for it is not 4421 # safe: cross compilers may not add the suffix if given an '-o' 4422 # argument, so we may need to know it at that point already. 4423 # Even if this section looks crufty: it has the advantage of 4424 # actually working. 4425 break;; 4426 * ) 4427 break;; 4428 esac 4429done 4430test "$ac_cv_exeext" = no && ac_cv_exeext= 4431 4432else case e in #( 4433 e) ac_file='' ;; 4434esac 4435fi 4436if test -z "$ac_file" 4437then : 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4439printf "%s\n" "no" >&6; } 4440printf "%s\n" "$as_me: failed program was:" >&5 4441sed 's/^/| /' conftest.$ac_ext >&5 4442 4443{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4444printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4445as_fn_error 77 "C compiler cannot create executables 4446See 'config.log' for more details" "$LINENO" 5; } 4447else case e in #( 4448 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4449printf "%s\n" "yes" >&6; } ;; 4450esac 4451fi 4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4453printf %s "checking for C compiler default output file name... " >&6; } 4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4455printf "%s\n" "$ac_file" >&6; } 4456ac_exeext=$ac_cv_exeext 4457 4458rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4459ac_clean_files=$ac_clean_files_save 4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4461printf %s "checking for suffix of executables... " >&6; } 4462if { { ac_try="$ac_link" 4463case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466esac 4467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4468printf "%s\n" "$ac_try_echo"; } >&5 4469 (eval "$ac_link") 2>&5 4470 ac_status=$? 4471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4472 test $ac_status = 0; } 4473then : 4474 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4475# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4476# work properly (i.e., refer to 'conftest.exe'), while it won't with 4477# 'rm'. 4478for ac_file in conftest.exe conftest conftest.*; do 4479 test -f "$ac_file" || continue 4480 case $ac_file in 4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4483 break;; 4484 * ) break;; 4485 esac 4486done 4487else case e in #( 4488 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4489printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4490as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4491See 'config.log' for more details" "$LINENO" 5; } ;; 4492esac 4493fi 4494rm -f conftest conftest$ac_cv_exeext 4495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4496printf "%s\n" "$ac_cv_exeext" >&6; } 4497 4498rm -f conftest.$ac_ext 4499EXEEXT=$ac_cv_exeext 4500ac_exeext=$EXEEXT 4501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503#include <stdio.h> 4504int 4505main (void) 4506{ 4507FILE *f = fopen ("conftest.out", "w"); 4508 if (!f) 4509 return 1; 4510 return ferror (f) || fclose (f) != 0; 4511 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516ac_clean_files="$ac_clean_files conftest.out" 4517# Check that the compiler produces executables we can run. If not, either 4518# the compiler is broken, or we cross compile. 4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4520printf %s "checking whether we are cross compiling... " >&6; } 4521if test "$cross_compiling" != yes; then 4522 { { ac_try="$ac_link" 4523case "(($ac_try" in 4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4525 *) ac_try_echo=$ac_try;; 4526esac 4527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4528printf "%s\n" "$ac_try_echo"; } >&5 4529 (eval "$ac_link") 2>&5 4530 ac_status=$? 4531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4532 test $ac_status = 0; } 4533 if { ac_try='./conftest$ac_cv_exeext' 4534 { { case "(($ac_try" in 4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4536 *) ac_try_echo=$ac_try;; 4537esac 4538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4539printf "%s\n" "$ac_try_echo"; } >&5 4540 (eval "$ac_try") 2>&5 4541 ac_status=$? 4542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4543 test $ac_status = 0; }; }; then 4544 cross_compiling=no 4545 else 4546 if test "$cross_compiling" = maybe; then 4547 cross_compiling=yes 4548 else 4549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4550printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4551as_fn_error 77 "cannot run C compiled programs. 4552If you meant to cross compile, use '--host'. 4553See 'config.log' for more details" "$LINENO" 5; } 4554 fi 4555 fi 4556fi 4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4558printf "%s\n" "$cross_compiling" >&6; } 4559 4560rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4561 conftest.o conftest.obj conftest.out 4562ac_clean_files=$ac_clean_files_save 4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4564printf %s "checking for suffix of object files... " >&6; } 4565if test ${ac_cv_objext+y} 4566then : 4567 printf %s "(cached) " >&6 4568else case e in #( 4569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571 4572int 4573main (void) 4574{ 4575 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580rm -f conftest.o conftest.obj 4581if { { ac_try="$ac_compile" 4582case "(($ac_try" in 4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4584 *) ac_try_echo=$ac_try;; 4585esac 4586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4587printf "%s\n" "$ac_try_echo"; } >&5 4588 (eval "$ac_compile") 2>&5 4589 ac_status=$? 4590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4591 test $ac_status = 0; } 4592then : 4593 for ac_file in conftest.o conftest.obj conftest.*; do 4594 test -f "$ac_file" || continue; 4595 case $ac_file in 4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4598 break;; 4599 esac 4600done 4601else case e in #( 4602 e) printf "%s\n" "$as_me: failed program was:" >&5 4603sed 's/^/| /' conftest.$ac_ext >&5 4604 4605{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4606printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4607as_fn_error $? "cannot compute suffix of object files: cannot compile 4608See 'config.log' for more details" "$LINENO" 5; } ;; 4609esac 4610fi 4611rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4612esac 4613fi 4614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4615printf "%s\n" "$ac_cv_objext" >&6; } 4616OBJEXT=$ac_cv_objext 4617ac_objext=$OBJEXT 4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4619printf %s "checking whether the compiler supports GNU C... " >&6; } 4620if test ${ac_cv_c_compiler_gnu+y} 4621then : 4622 printf %s "(cached) " >&6 4623else case e in #( 4624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626 4627int 4628main (void) 4629{ 4630#ifndef __GNUC__ 4631 choke me 4632#endif 4633 4634 ; 4635 return 0; 4636} 4637_ACEOF 4638if ac_fn_c_try_compile "$LINENO" 4639then : 4640 ac_compiler_gnu=yes 4641else case e in #( 4642 e) ac_compiler_gnu=no ;; 4643esac 4644fi 4645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4646ac_cv_c_compiler_gnu=$ac_compiler_gnu 4647 ;; 4648esac 4649fi 4650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4651printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4652ac_compiler_gnu=$ac_cv_c_compiler_gnu 4653 4654if test $ac_compiler_gnu = yes; then 4655 GCC=yes 4656else 4657 GCC= 4658fi 4659ac_test_CFLAGS=${CFLAGS+y} 4660ac_save_CFLAGS=$CFLAGS 4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4662printf %s "checking whether $CC accepts -g... " >&6; } 4663if test ${ac_cv_prog_cc_g+y} 4664then : 4665 printf %s "(cached) " >&6 4666else case e in #( 4667 e) ac_save_c_werror_flag=$ac_c_werror_flag 4668 ac_c_werror_flag=yes 4669 ac_cv_prog_cc_g=no 4670 CFLAGS="-g" 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673 4674int 4675main (void) 4676{ 4677 4678 ; 4679 return 0; 4680} 4681_ACEOF 4682if ac_fn_c_try_compile "$LINENO" 4683then : 4684 ac_cv_prog_cc_g=yes 4685else case e in #( 4686 e) CFLAGS="" 4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689 4690int 4691main (void) 4692{ 4693 4694 ; 4695 return 0; 4696} 4697_ACEOF 4698if ac_fn_c_try_compile "$LINENO" 4699then : 4700 4701else case e in #( 4702 e) ac_c_werror_flag=$ac_save_c_werror_flag 4703 CFLAGS="-g" 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706 4707int 4708main (void) 4709{ 4710 4711 ; 4712 return 0; 4713} 4714_ACEOF 4715if ac_fn_c_try_compile "$LINENO" 4716then : 4717 ac_cv_prog_cc_g=yes 4718fi 4719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4720esac 4721fi 4722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4723esac 4724fi 4725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4726 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4727esac 4728fi 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4730printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4731if test $ac_test_CFLAGS; then 4732 CFLAGS=$ac_save_CFLAGS 4733elif test $ac_cv_prog_cc_g = yes; then 4734 if test "$GCC" = yes; then 4735 CFLAGS="-g -O2" 4736 else 4737 CFLAGS="-g" 4738 fi 4739else 4740 if test "$GCC" = yes; then 4741 CFLAGS="-O2" 4742 else 4743 CFLAGS= 4744 fi 4745fi 4746ac_prog_cc_stdc=no 4747if test x$ac_prog_cc_stdc = xno 4748then : 4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4750printf %s "checking for $CC option to enable C11 features... " >&6; } 4751if test ${ac_cv_prog_cc_c11+y} 4752then : 4753 printf %s "(cached) " >&6 4754else case e in #( 4755 e) ac_cv_prog_cc_c11=no 4756ac_save_CC=$CC 4757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759$ac_c_conftest_c11_program 4760_ACEOF 4761for ac_arg in '' -std=gnu11 4762do 4763 CC="$ac_save_CC $ac_arg" 4764 if ac_fn_c_try_compile "$LINENO" 4765then : 4766 ac_cv_prog_cc_c11=$ac_arg 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.beam 4769 test "x$ac_cv_prog_cc_c11" != "xno" && break 4770done 4771rm -f conftest.$ac_ext 4772CC=$ac_save_CC ;; 4773esac 4774fi 4775 4776if test "x$ac_cv_prog_cc_c11" = xno 4777then : 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4779printf "%s\n" "unsupported" >&6; } 4780else case e in #( 4781 e) if test "x$ac_cv_prog_cc_c11" = x 4782then : 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4784printf "%s\n" "none needed" >&6; } 4785else case e in #( 4786 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4787printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4788 CC="$CC $ac_cv_prog_cc_c11" ;; 4789esac 4790fi 4791 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4792 ac_prog_cc_stdc=c11 ;; 4793esac 4794fi 4795fi 4796if test x$ac_prog_cc_stdc = xno 4797then : 4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4799printf %s "checking for $CC option to enable C99 features... " >&6; } 4800if test ${ac_cv_prog_cc_c99+y} 4801then : 4802 printf %s "(cached) " >&6 4803else case e in #( 4804 e) ac_cv_prog_cc_c99=no 4805ac_save_CC=$CC 4806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808$ac_c_conftest_c99_program 4809_ACEOF 4810for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4811do 4812 CC="$ac_save_CC $ac_arg" 4813 if ac_fn_c_try_compile "$LINENO" 4814then : 4815 ac_cv_prog_cc_c99=$ac_arg 4816fi 4817rm -f core conftest.err conftest.$ac_objext conftest.beam 4818 test "x$ac_cv_prog_cc_c99" != "xno" && break 4819done 4820rm -f conftest.$ac_ext 4821CC=$ac_save_CC ;; 4822esac 4823fi 4824 4825if test "x$ac_cv_prog_cc_c99" = xno 4826then : 4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4828printf "%s\n" "unsupported" >&6; } 4829else case e in #( 4830 e) if test "x$ac_cv_prog_cc_c99" = x 4831then : 4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4833printf "%s\n" "none needed" >&6; } 4834else case e in #( 4835 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4836printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4837 CC="$CC $ac_cv_prog_cc_c99" ;; 4838esac 4839fi 4840 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4841 ac_prog_cc_stdc=c99 ;; 4842esac 4843fi 4844fi 4845if test x$ac_prog_cc_stdc = xno 4846then : 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4848printf %s "checking for $CC option to enable C89 features... " >&6; } 4849if test ${ac_cv_prog_cc_c89+y} 4850then : 4851 printf %s "(cached) " >&6 4852else case e in #( 4853 e) ac_cv_prog_cc_c89=no 4854ac_save_CC=$CC 4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857$ac_c_conftest_c89_program 4858_ACEOF 4859for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4860do 4861 CC="$ac_save_CC $ac_arg" 4862 if ac_fn_c_try_compile "$LINENO" 4863then : 4864 ac_cv_prog_cc_c89=$ac_arg 4865fi 4866rm -f core conftest.err conftest.$ac_objext conftest.beam 4867 test "x$ac_cv_prog_cc_c89" != "xno" && break 4868done 4869rm -f conftest.$ac_ext 4870CC=$ac_save_CC ;; 4871esac 4872fi 4873 4874if test "x$ac_cv_prog_cc_c89" = xno 4875then : 4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4877printf "%s\n" "unsupported" >&6; } 4878else case e in #( 4879 e) if test "x$ac_cv_prog_cc_c89" = x 4880then : 4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4882printf "%s\n" "none needed" >&6; } 4883else case e in #( 4884 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4885printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4886 CC="$CC $ac_cv_prog_cc_c89" ;; 4887esac 4888fi 4889 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4890 ac_prog_cc_stdc=c89 ;; 4891esac 4892fi 4893fi 4894 4895ac_ext=c 4896ac_cpp='$CPP $CPPFLAGS' 4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4899ac_compiler_gnu=$ac_cv_c_compiler_gnu 4900 4901 4902 ac_ext=c 4903ac_cpp='$CPP $CPPFLAGS' 4904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4906ac_compiler_gnu=$ac_cv_c_compiler_gnu 4907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4908printf %s "checking whether $CC understands -c and -o together... " >&6; } 4909if test ${am_cv_prog_cc_c_o+y} 4910then : 4911 printf %s "(cached) " >&6 4912else case e in #( 4913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915 4916int 4917main (void) 4918{ 4919 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924 # Make sure it works both with $CC and with simple cc. 4925 # Following AC_PROG_CC_C_O, we do the test twice because some 4926 # compilers refuse to overwrite an existing .o file with -o, 4927 # though they will create one. 4928 am_cv_prog_cc_c_o=yes 4929 for am_i in 1 2; do 4930 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4931 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4932 ac_status=$? 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); } \ 4935 && test -f conftest2.$ac_objext; then 4936 : OK 4937 else 4938 am_cv_prog_cc_c_o=no 4939 break 4940 fi 4941 done 4942 rm -f core conftest* 4943 unset am_i ;; 4944esac 4945fi 4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4947printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4948if test "$am_cv_prog_cc_c_o" != yes; then 4949 # Losing compiler, so override with the script. 4950 # FIXME: It is wrong to rewrite CC. 4951 # But if we don't then we get into trouble of one sort or another. 4952 # A longer-term fix would be to have automake use am__CC in this case, 4953 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4954 CC="$am_aux_dir/compile $CC" 4955fi 4956ac_ext=c 4957ac_cpp='$CPP $CPPFLAGS' 4958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4960ac_compiler_gnu=$ac_cv_c_compiler_gnu 4961 4962 4963depcc="$CC" am_compiler_list= 4964 4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4966printf %s "checking dependency style of $depcc... " >&6; } 4967if test ${am_cv_CC_dependencies_compiler_type+y} 4968then : 4969 printf %s "(cached) " >&6 4970else case e in #( 4971 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4972 # We make a subdir and do the tests there. Otherwise we can end up 4973 # making bogus files that we don't know about and never remove. For 4974 # instance it was reported that on HP-UX the gcc test will end up 4975 # making a dummy file named 'D' -- because '-MD' means "put the output 4976 # in D". 4977 rm -rf conftest.dir 4978 mkdir conftest.dir 4979 # Copy depcomp to subdir because otherwise we won't find it if we're 4980 # using a relative directory. 4981 cp "$am_depcomp" conftest.dir 4982 cd conftest.dir 4983 # We will build objects and dependencies in a subdirectory because 4984 # it helps to detect inapplicable dependency modes. For instance 4985 # both Tru64's cc and ICC support -MD to output dependencies as a 4986 # side effect of compilation, but ICC will put the dependencies in 4987 # the current directory while Tru64 will put them in the object 4988 # directory. 4989 mkdir sub 4990 4991 am_cv_CC_dependencies_compiler_type=none 4992 if test "$am_compiler_list" = ""; then 4993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4994 fi 4995 am__universal=false 4996 case " $depcc " in #( 4997 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4998 esac 4999 5000 for depmode in $am_compiler_list; do 5001 # Setup a source with many dependencies, because some compilers 5002 # like to wrap large dependency lists on column 80 (with \), and 5003 # we should not choose a depcomp mode which is confused by this. 5004 # 5005 # We need to recreate these files for each test, as the compiler may 5006 # overwrite some of them when testing with obscure command lines. 5007 # This happens at least with the AIX C compiler. 5008 : > sub/conftest.c 5009 for i in 1 2 3 4 5 6; do 5010 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5011 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5012 # Solaris 10 /bin/sh. 5013 echo '/* dummy */' > sub/conftst$i.h 5014 done 5015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5016 5017 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5018 # mode. It turns out that the SunPro C++ compiler does not properly 5019 # handle '-M -o', and we need to detect this. Also, some Intel 5020 # versions had trouble with output in subdirs. 5021 am__obj=sub/conftest.${OBJEXT-o} 5022 am__minus_obj="-o $am__obj" 5023 case $depmode in 5024 gcc) 5025 # This depmode causes a compiler race in universal mode. 5026 test "$am__universal" = false || continue 5027 ;; 5028 nosideeffect) 5029 # After this tag, mechanisms are not by side-effect, so they'll 5030 # only be used when explicitly requested. 5031 if test "x$enable_dependency_tracking" = xyes; then 5032 continue 5033 else 5034 break 5035 fi 5036 ;; 5037 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5038 # This compiler won't grok '-c -o', but also, the minuso test has 5039 # not run yet. These depmodes are late enough in the game, and 5040 # so weak that their functioning should not be impacted. 5041 am__obj=conftest.${OBJEXT-o} 5042 am__minus_obj= 5043 ;; 5044 none) break ;; 5045 esac 5046 if depmode=$depmode \ 5047 source=sub/conftest.c object=$am__obj \ 5048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5049 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5050 >/dev/null 2>conftest.err && 5051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5053 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5055 # icc doesn't choke on unknown options, it will just issue warnings 5056 # or remarks (even with -Werror). So we grep stderr for any message 5057 # that says an option was ignored or not supported. 5058 # When given -MP, icc 7.0 and 7.1 complain thus: 5059 # icc: Command line warning: ignoring option '-M'; no argument required 5060 # The diagnosis changed in icc 8.0: 5061 # icc: Command line remark: option '-MP' not supported 5062 if (grep 'ignoring option' conftest.err || 5063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5064 am_cv_CC_dependencies_compiler_type=$depmode 5065 break 5066 fi 5067 fi 5068 done 5069 5070 cd .. 5071 rm -rf conftest.dir 5072else 5073 am_cv_CC_dependencies_compiler_type=none 5074fi 5075 ;; 5076esac 5077fi 5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5079printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5081 5082 if 5083 test "x$enable_dependency_tracking" != xno \ 5084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5085 am__fastdepCC_TRUE= 5086 am__fastdepCC_FALSE='#' 5087else 5088 am__fastdepCC_TRUE='#' 5089 am__fastdepCC_FALSE= 5090fi 5091 5092 5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5094printf %s "checking for a sed that does not truncate output... " >&6; } 5095if test ${ac_cv_path_SED+y} 5096then : 5097 printf %s "(cached) " >&6 5098else case e in #( 5099 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5100 for ac_i in 1 2 3 4 5 6 7; do 5101 ac_script="$ac_script$as_nl$ac_script" 5102 done 5103 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5104 { ac_script=; unset ac_script;} 5105 if test -z "$SED"; then 5106 ac_path_SED_found=false 5107 # Loop through the user's path and test for each of PROGNAME-LIST 5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5109for as_dir in $PATH 5110do 5111 IFS=$as_save_IFS 5112 case $as_dir in #((( 5113 '') as_dir=./ ;; 5114 */) ;; 5115 *) as_dir=$as_dir/ ;; 5116 esac 5117 for ac_prog in sed gsed 5118 do 5119 for ac_exec_ext in '' $ac_executable_extensions; do 5120 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5121 as_fn_executable_p "$ac_path_SED" || continue 5122# Check for GNU ac_path_SED and select it if it is found. 5123 # Check for GNU $ac_path_SED 5124case `"$ac_path_SED" --version 2>&1` in #( 5125*GNU*) 5126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5127#( 5128*) 5129 ac_count=0 5130 printf %s 0123456789 >"conftest.in" 5131 while : 5132 do 5133 cat "conftest.in" "conftest.in" >"conftest.tmp" 5134 mv "conftest.tmp" "conftest.in" 5135 cp "conftest.in" "conftest.nl" 5136 printf "%s\n" '' >> "conftest.nl" 5137 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5139 as_fn_arith $ac_count + 1 && ac_count=$as_val 5140 if test $ac_count -gt ${ac_path_SED_max-0}; then 5141 # Best one so far, save it but keep looking for a better one 5142 ac_cv_path_SED="$ac_path_SED" 5143 ac_path_SED_max=$ac_count 5144 fi 5145 # 10*(2^10) chars as input seems more than enough 5146 test $ac_count -gt 10 && break 5147 done 5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5149esac 5150 5151 $ac_path_SED_found && break 3 5152 done 5153 done 5154 done 5155IFS=$as_save_IFS 5156 if test -z "$ac_cv_path_SED"; then 5157 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5158 fi 5159else 5160 ac_cv_path_SED=$SED 5161fi 5162 ;; 5163esac 5164fi 5165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5166printf "%s\n" "$ac_cv_path_SED" >&6; } 5167 SED="$ac_cv_path_SED" 5168 rm -f conftest.sed 5169 5170test -z "$SED" && SED=sed 5171Xsed="$SED -e 1s/^X//" 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5184printf %s "checking for grep that handles long lines and -e... " >&6; } 5185if test ${ac_cv_path_GREP+y} 5186then : 5187 printf %s "(cached) " >&6 5188else case e in #( 5189 e) if test -z "$GREP"; then 5190 ac_path_GREP_found=false 5191 # Loop through the user's path and test for each of PROGNAME-LIST 5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5194do 5195 IFS=$as_save_IFS 5196 case $as_dir in #((( 5197 '') as_dir=./ ;; 5198 */) ;; 5199 *) as_dir=$as_dir/ ;; 5200 esac 5201 for ac_prog in grep ggrep 5202 do 5203 for ac_exec_ext in '' $ac_executable_extensions; do 5204 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5205 as_fn_executable_p "$ac_path_GREP" || continue 5206# Check for GNU ac_path_GREP and select it if it is found. 5207 # Check for GNU $ac_path_GREP 5208case `"$ac_path_GREP" --version 2>&1` in #( 5209*GNU*) 5210 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5211#( 5212*) 5213 ac_count=0 5214 printf %s 0123456789 >"conftest.in" 5215 while : 5216 do 5217 cat "conftest.in" "conftest.in" >"conftest.tmp" 5218 mv "conftest.tmp" "conftest.in" 5219 cp "conftest.in" "conftest.nl" 5220 printf "%s\n" 'GREP' >> "conftest.nl" 5221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5223 as_fn_arith $ac_count + 1 && ac_count=$as_val 5224 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5225 # Best one so far, save it but keep looking for a better one 5226 ac_cv_path_GREP="$ac_path_GREP" 5227 ac_path_GREP_max=$ac_count 5228 fi 5229 # 10*(2^10) chars as input seems more than enough 5230 test $ac_count -gt 10 && break 5231 done 5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5233esac 5234 5235 $ac_path_GREP_found && break 3 5236 done 5237 done 5238 done 5239IFS=$as_save_IFS 5240 if test -z "$ac_cv_path_GREP"; then 5241 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5242 fi 5243else 5244 ac_cv_path_GREP=$GREP 5245fi 5246 ;; 5247esac 5248fi 5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5250printf "%s\n" "$ac_cv_path_GREP" >&6; } 5251 GREP="$ac_cv_path_GREP" 5252 5253 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5255printf %s "checking for egrep... " >&6; } 5256if test ${ac_cv_path_EGREP+y} 5257then : 5258 printf %s "(cached) " >&6 5259else case e in #( 5260 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5261 then ac_cv_path_EGREP="$GREP -E" 5262 else 5263 if test -z "$EGREP"; then 5264 ac_path_EGREP_found=false 5265 # Loop through the user's path and test for each of PROGNAME-LIST 5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5268do 5269 IFS=$as_save_IFS 5270 case $as_dir in #((( 5271 '') as_dir=./ ;; 5272 */) ;; 5273 *) as_dir=$as_dir/ ;; 5274 esac 5275 for ac_prog in egrep 5276 do 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5279 as_fn_executable_p "$ac_path_EGREP" || continue 5280# Check for GNU ac_path_EGREP and select it if it is found. 5281 # Check for GNU $ac_path_EGREP 5282case `"$ac_path_EGREP" --version 2>&1` in #( 5283*GNU*) 5284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5285#( 5286*) 5287 ac_count=0 5288 printf %s 0123456789 >"conftest.in" 5289 while : 5290 do 5291 cat "conftest.in" "conftest.in" >"conftest.tmp" 5292 mv "conftest.tmp" "conftest.in" 5293 cp "conftest.in" "conftest.nl" 5294 printf "%s\n" 'EGREP' >> "conftest.nl" 5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5297 as_fn_arith $ac_count + 1 && ac_count=$as_val 5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5299 # Best one so far, save it but keep looking for a better one 5300 ac_cv_path_EGREP="$ac_path_EGREP" 5301 ac_path_EGREP_max=$ac_count 5302 fi 5303 # 10*(2^10) chars as input seems more than enough 5304 test $ac_count -gt 10 && break 5305 done 5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5307esac 5308 5309 $ac_path_EGREP_found && break 3 5310 done 5311 done 5312 done 5313IFS=$as_save_IFS 5314 if test -z "$ac_cv_path_EGREP"; then 5315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5316 fi 5317else 5318 ac_cv_path_EGREP=$EGREP 5319fi 5320 5321 fi ;; 5322esac 5323fi 5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5325printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5326 EGREP="$ac_cv_path_EGREP" 5327 5328 EGREP_TRADITIONAL=$EGREP 5329 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5330 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5332printf %s "checking for fgrep... " >&6; } 5333if test ${ac_cv_path_FGREP+y} 5334then : 5335 printf %s "(cached) " >&6 5336else case e in #( 5337 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5338 then ac_cv_path_FGREP="$GREP -F" 5339 else 5340 if test -z "$FGREP"; then 5341 ac_path_FGREP_found=false 5342 # Loop through the user's path and test for each of PROGNAME-LIST 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5345do 5346 IFS=$as_save_IFS 5347 case $as_dir in #((( 5348 '') as_dir=./ ;; 5349 */) ;; 5350 *) as_dir=$as_dir/ ;; 5351 esac 5352 for ac_prog in fgrep 5353 do 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5356 as_fn_executable_p "$ac_path_FGREP" || continue 5357# Check for GNU ac_path_FGREP and select it if it is found. 5358 # Check for GNU $ac_path_FGREP 5359case `"$ac_path_FGREP" --version 2>&1` in #( 5360*GNU*) 5361 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5362#( 5363*) 5364 ac_count=0 5365 printf %s 0123456789 >"conftest.in" 5366 while : 5367 do 5368 cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 mv "conftest.tmp" "conftest.in" 5370 cp "conftest.in" "conftest.nl" 5371 printf "%s\n" 'FGREP' >> "conftest.nl" 5372 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5376 # Best one so far, save it but keep looking for a better one 5377 ac_cv_path_FGREP="$ac_path_FGREP" 5378 ac_path_FGREP_max=$ac_count 5379 fi 5380 # 10*(2^10) chars as input seems more than enough 5381 test $ac_count -gt 10 && break 5382 done 5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384esac 5385 5386 $ac_path_FGREP_found && break 3 5387 done 5388 done 5389 done 5390IFS=$as_save_IFS 5391 if test -z "$ac_cv_path_FGREP"; then 5392 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5393 fi 5394else 5395 ac_cv_path_FGREP=$FGREP 5396fi 5397 5398 fi ;; 5399esac 5400fi 5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5402printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5403 FGREP="$ac_cv_path_FGREP" 5404 5405 5406test -z "$GREP" && GREP=grep 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426# Check whether --with-gnu-ld was given. 5427if test ${with_gnu_ld+y} 5428then : 5429 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5430else case e in #( 5431 e) with_gnu_ld=no ;; 5432esac 5433fi 5434 5435ac_prog=ld 5436if test yes = "$GCC"; then 5437 # Check if gcc -print-prog-name=ld gives a path. 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5439printf %s "checking for ld used by $CC... " >&6; } 5440 case $host in 5441 *-*-mingw* | *-*-windows*) 5442 # gcc leaves a trailing carriage return, which upsets mingw 5443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5444 *) 5445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5446 esac 5447 case $ac_prog in 5448 # Accept absolute paths. 5449 [\\/]* | ?:[\\/]*) 5450 re_direlt='/[^/][^/]*/\.\./' 5451 # Canonicalize the pathname of ld 5452 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5453 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5454 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5455 done 5456 test -z "$LD" && LD=$ac_prog 5457 ;; 5458 "") 5459 # If it fails, then pretend we aren't using GCC. 5460 ac_prog=ld 5461 ;; 5462 *) 5463 # If it is relative, then search for the first ld in PATH. 5464 with_gnu_ld=unknown 5465 ;; 5466 esac 5467elif test yes = "$with_gnu_ld"; then 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5469printf %s "checking for GNU ld... " >&6; } 5470else 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5472printf %s "checking for non-GNU ld... " >&6; } 5473fi 5474if test ${lt_cv_path_LD+y} 5475then : 5476 printf %s "(cached) " >&6 5477else case e in #( 5478 e) if test -z "$LD"; then 5479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5480 for ac_dir in $PATH; do 5481 IFS=$lt_save_ifs 5482 test -z "$ac_dir" && ac_dir=. 5483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5484 lt_cv_path_LD=$ac_dir/$ac_prog 5485 # Check to see if the program is GNU ld. I'd rather use --version, 5486 # but apparently some variants of GNU ld only accept -v. 5487 # Break only if it was the GNU/non-GNU ld that we prefer. 5488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5489 *GNU* | *'with BFD'*) 5490 test no != "$with_gnu_ld" && break 5491 ;; 5492 *) 5493 test yes != "$with_gnu_ld" && break 5494 ;; 5495 esac 5496 fi 5497 done 5498 IFS=$lt_save_ifs 5499else 5500 lt_cv_path_LD=$LD # Let the user override the test with a path. 5501fi ;; 5502esac 5503fi 5504 5505LD=$lt_cv_path_LD 5506if test -n "$LD"; then 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5508printf "%s\n" "$LD" >&6; } 5509else 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5511printf "%s\n" "no" >&6; } 5512fi 5513test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5515printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5516if test ${lt_cv_prog_gnu_ld+y} 5517then : 5518 printf %s "(cached) " >&6 5519else case e in #( 5520 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5521case `$LD -v 2>&1 </dev/null` in 5522*GNU* | *'with BFD'*) 5523 lt_cv_prog_gnu_ld=yes 5524 ;; 5525*) 5526 lt_cv_prog_gnu_ld=no 5527 ;; 5528esac ;; 5529esac 5530fi 5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5532printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5533with_gnu_ld=$lt_cv_prog_gnu_ld 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5544printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5545if test ${lt_cv_path_NM+y} 5546then : 5547 printf %s "(cached) " >&6 5548else case e in #( 5549 e) if test -n "$NM"; then 5550 # Let the user override the test. 5551 lt_cv_path_NM=$NM 5552else 5553 lt_nm_to_check=${ac_tool_prefix}nm 5554 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5555 lt_nm_to_check="$lt_nm_to_check nm" 5556 fi 5557 for lt_tmp_nm in $lt_nm_to_check; do 5558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5559 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5560 IFS=$lt_save_ifs 5561 test -z "$ac_dir" && ac_dir=. 5562 tmp_nm=$ac_dir/$lt_tmp_nm 5563 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5564 # Check to see if the nm accepts a BSD-compat flag. 5565 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5566 # nm: unknown option "B" ignored 5567 # Tru64's nm complains that /dev/null is an invalid object file 5568 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5569 case $build_os in 5570 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5571 *) lt_bad_file=/dev/null ;; 5572 esac 5573 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5574 *$lt_bad_file* | *'Invalid file or object type'*) 5575 lt_cv_path_NM="$tmp_nm -B" 5576 break 2 5577 ;; 5578 *) 5579 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5580 */dev/null*) 5581 lt_cv_path_NM="$tmp_nm -p" 5582 break 2 5583 ;; 5584 *) 5585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5586 continue # so that we can try to find one that supports BSD flags 5587 ;; 5588 esac 5589 ;; 5590 esac 5591 fi 5592 done 5593 IFS=$lt_save_ifs 5594 done 5595 : ${lt_cv_path_NM=no} 5596fi ;; 5597esac 5598fi 5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5600printf "%s\n" "$lt_cv_path_NM" >&6; } 5601if test no != "$lt_cv_path_NM"; then 5602 NM=$lt_cv_path_NM 5603else 5604 # Didn't find any BSD compatible name lister, look for dumpbin. 5605 if test -n "$DUMPBIN"; then : 5606 # Let the user override the test. 5607 else 5608 if test -n "$ac_tool_prefix"; then 5609 for ac_prog in dumpbin "link -dump" 5610 do 5611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5612set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5614printf %s "checking for $ac_word... " >&6; } 5615if test ${ac_cv_prog_DUMPBIN+y} 5616then : 5617 printf %s "(cached) " >&6 5618else case e in #( 5619 e) if test -n "$DUMPBIN"; then 5620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 case $as_dir in #((( 5627 '') as_dir=./ ;; 5628 */) ;; 5629 *) as_dir=$as_dir/ ;; 5630 esac 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi ;; 5642esac 5643fi 5644DUMPBIN=$ac_cv_prog_DUMPBIN 5645if test -n "$DUMPBIN"; then 5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5647printf "%s\n" "$DUMPBIN" >&6; } 5648else 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5650printf "%s\n" "no" >&6; } 5651fi 5652 5653 5654 test -n "$DUMPBIN" && break 5655 done 5656fi 5657if test -z "$DUMPBIN"; then 5658 ac_ct_DUMPBIN=$DUMPBIN 5659 for ac_prog in dumpbin "link -dump" 5660do 5661 # Extract the first word of "$ac_prog", so it can be a program name with args. 5662set dummy $ac_prog; ac_word=$2 5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664printf %s "checking for $ac_word... " >&6; } 5665if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5666then : 5667 printf %s "(cached) " >&6 5668else case e in #( 5669 e) if test -n "$ac_ct_DUMPBIN"; then 5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 case $as_dir in #((( 5677 '') as_dir=./ ;; 5678 */) ;; 5679 *) as_dir=$as_dir/ ;; 5680 esac 5681 for ac_exec_ext in '' $ac_executable_extensions; do 5682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5685 break 2 5686 fi 5687done 5688 done 5689IFS=$as_save_IFS 5690 5691fi ;; 5692esac 5693fi 5694ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5695if test -n "$ac_ct_DUMPBIN"; then 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5697printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5698else 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5700printf "%s\n" "no" >&6; } 5701fi 5702 5703 5704 test -n "$ac_ct_DUMPBIN" && break 5705done 5706 5707 if test "x$ac_ct_DUMPBIN" = x; then 5708 DUMPBIN=":" 5709 else 5710 case $cross_compiling:$ac_tool_warned in 5711yes:) 5712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5714ac_tool_warned=yes ;; 5715esac 5716 DUMPBIN=$ac_ct_DUMPBIN 5717 fi 5718fi 5719 5720 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5721 *COFF*) 5722 DUMPBIN="$DUMPBIN -symbols -headers" 5723 ;; 5724 *) 5725 DUMPBIN=: 5726 ;; 5727 esac 5728 fi 5729 5730 if test : != "$DUMPBIN"; then 5731 NM=$DUMPBIN 5732 fi 5733fi 5734test -z "$NM" && NM=nm 5735 5736 5737 5738 5739 5740 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5742printf %s "checking the name lister ($NM) interface... " >&6; } 5743if test ${lt_cv_nm_interface+y} 5744then : 5745 printf %s "(cached) " >&6 5746else case e in #( 5747 e) lt_cv_nm_interface="BSD nm" 5748 echo "int some_variable = 0;" > conftest.$ac_ext 5749 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5750 (eval "$ac_compile" 2>conftest.err) 5751 cat conftest.err >&5 5752 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5753 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5754 cat conftest.err >&5 5755 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5756 cat conftest.out >&5 5757 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5758 lt_cv_nm_interface="MS dumpbin" 5759 fi 5760 rm -f conftest* ;; 5761esac 5762fi 5763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5764printf "%s\n" "$lt_cv_nm_interface" >&6; } 5765 5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5767printf %s "checking whether ln -s works... " >&6; } 5768LN_S=$as_ln_s 5769if test "$LN_S" = "ln -s"; then 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5771printf "%s\n" "yes" >&6; } 5772else 5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5774printf "%s\n" "no, using $LN_S" >&6; } 5775fi 5776 5777# find the maximum length of command line arguments 5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5779printf %s "checking the maximum length of command line arguments... " >&6; } 5780if test ${lt_cv_sys_max_cmd_len+y} 5781then : 5782 printf %s "(cached) " >&6 5783else case e in #( 5784 e) i=0 5785 teststring=ABCD 5786 5787 case $build_os in 5788 msdosdjgpp*) 5789 # On DJGPP, this test can blow up pretty badly due to problems in libc 5790 # (any single argument exceeding 2000 bytes causes a buffer overrun 5791 # during glob expansion). Even if it were fixed, the result of this 5792 # check would be larger than it should be. 5793 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5794 ;; 5795 5796 gnu* | ironclad*) 5797 # Under GNU Hurd and Ironclad, this test is not required because there 5798 # is no limit to the length of command line arguments. 5799 # Libtool will interpret -1 as no limit whatsoever 5800 lt_cv_sys_max_cmd_len=-1; 5801 ;; 5802 5803 cygwin* | mingw* | windows* | cegcc*) 5804 # On Win9x/ME, this test blows up -- it succeeds, but takes 5805 # about 5 minutes as the teststring grows exponentially. 5806 # Worse, since 9x/ME are not pre-emptively multitasking, 5807 # you end up with a "frozen" computer, even though with patience 5808 # the test eventually succeeds (with a max line length of 256k). 5809 # Instead, let's just punt: use the minimum linelength reported by 5810 # all of the supported platforms: 8192 (on NT/2K/XP). 5811 lt_cv_sys_max_cmd_len=8192; 5812 ;; 5813 5814 mint*) 5815 # On MiNT this can take a long time and run out of memory. 5816 lt_cv_sys_max_cmd_len=8192; 5817 ;; 5818 5819 amigaos*) 5820 # On AmigaOS with pdksh, this test takes hours, literally. 5821 # So we just punt and use a minimum line length of 8192. 5822 lt_cv_sys_max_cmd_len=8192; 5823 ;; 5824 5825 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5826 # This has been around since 386BSD, at least. Likely further. 5827 if test -x /sbin/sysctl; then 5828 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5829 elif test -x /usr/sbin/sysctl; then 5830 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5831 else 5832 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5833 fi 5834 # And add a safety zone 5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5837 ;; 5838 5839 interix*) 5840 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5841 lt_cv_sys_max_cmd_len=196608 5842 ;; 5843 5844 os2*) 5845 # The test takes a long time on OS/2. 5846 lt_cv_sys_max_cmd_len=8192 5847 ;; 5848 5849 osf*) 5850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5852 # nice to cause kernel panics so lets avoid the loop below. 5853 # First set a reasonable default. 5854 lt_cv_sys_max_cmd_len=16384 5855 # 5856 if test -x /sbin/sysconfig; then 5857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5858 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5859 esac 5860 fi 5861 ;; 5862 sco3.2v5*) 5863 lt_cv_sys_max_cmd_len=102400 5864 ;; 5865 sysv5* | sco5v6* | sysv4.2uw2*) 5866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5867 if test -n "$kargmax"; then 5868 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5869 else 5870 lt_cv_sys_max_cmd_len=32768 5871 fi 5872 ;; 5873 *) 5874 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5875 if test -n "$lt_cv_sys_max_cmd_len" && \ 5876 test undefined != "$lt_cv_sys_max_cmd_len"; then 5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5879 else 5880 # Make teststring a little bigger before we do anything with it. 5881 # a 1K string should be a reasonable start. 5882 for i in 1 2 3 4 5 6 7 8; do 5883 teststring=$teststring$teststring 5884 done 5885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5886 # If test is not a shell built-in, we'll probably end up computing a 5887 # maximum length that is only half of the actual maximum length, but 5888 # we can't tell. 5889 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5890 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5891 test 17 != "$i" # 1/2 MB should be enough 5892 do 5893 i=`expr $i + 1` 5894 teststring=$teststring$teststring 5895 done 5896 # Only check the string length outside the loop. 5897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5898 teststring= 5899 # Add a significant safety factor because C++ compilers can tack on 5900 # massive amounts of additional arguments before passing them to the 5901 # linker. It appears as though 1/2 is a usable value. 5902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5903 fi 5904 ;; 5905 esac 5906 ;; 5907esac 5908fi 5909 5910if test -n "$lt_cv_sys_max_cmd_len"; then 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5912printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5913else 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5915printf "%s\n" "none" >&6; } 5916fi 5917max_cmd_len=$lt_cv_sys_max_cmd_len 5918 5919 5920 5921 5922 5923 5924: ${CP="cp -f"} 5925: ${MV="mv -f"} 5926: ${RM="rm -f"} 5927 5928if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5929 lt_unset=unset 5930else 5931 lt_unset=false 5932fi 5933 5934 5935 5936 5937 5938# test EBCDIC or ASCII 5939case `echo X|tr X '\101'` in 5940 A) # ASCII based system 5941 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5942 lt_SP2NL='tr \040 \012' 5943 lt_NL2SP='tr \015\012 \040\040' 5944 ;; 5945 *) # EBCDIC based system 5946 lt_SP2NL='tr \100 \n' 5947 lt_NL2SP='tr \r\n \100\100' 5948 ;; 5949esac 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5960printf %s "checking how to convert $build file names to $host format... " >&6; } 5961if test ${lt_cv_to_host_file_cmd+y} 5962then : 5963 printf %s "(cached) " >&6 5964else case e in #( 5965 e) case $host in 5966 *-*-mingw* ) 5967 case $build in 5968 *-*-mingw* | *-*-windows* ) # actually msys 5969 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5970 ;; 5971 *-*-cygwin* ) 5972 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5973 ;; 5974 * ) # otherwise, assume *nix 5975 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5976 ;; 5977 esac 5978 ;; 5979 *-*-cygwin* ) 5980 case $build in 5981 *-*-mingw* | *-*-windows* ) # actually msys 5982 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5983 ;; 5984 *-*-cygwin* ) 5985 lt_cv_to_host_file_cmd=func_convert_file_noop 5986 ;; 5987 * ) # otherwise, assume *nix 5988 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5989 ;; 5990 esac 5991 ;; 5992 * ) # unhandled hosts (and "normal" native builds) 5993 lt_cv_to_host_file_cmd=func_convert_file_noop 5994 ;; 5995esac 5996 ;; 5997esac 5998fi 5999 6000to_host_file_cmd=$lt_cv_to_host_file_cmd 6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6002printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6003 6004 6005 6006 6007 6008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6009printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6010if test ${lt_cv_to_tool_file_cmd+y} 6011then : 6012 printf %s "(cached) " >&6 6013else case e in #( 6014 e) #assume ordinary cross tools, or native build. 6015lt_cv_to_tool_file_cmd=func_convert_file_noop 6016case $host in 6017 *-*-mingw* | *-*-windows* ) 6018 case $build in 6019 *-*-mingw* | *-*-windows* ) # actually msys 6020 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6021 ;; 6022 esac 6023 ;; 6024esac 6025 ;; 6026esac 6027fi 6028 6029to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6031printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6032 6033 6034 6035 6036 6037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6038printf %s "checking for $LD option to reload object files... " >&6; } 6039if test ${lt_cv_ld_reload_flag+y} 6040then : 6041 printf %s "(cached) " >&6 6042else case e in #( 6043 e) lt_cv_ld_reload_flag='-r' ;; 6044esac 6045fi 6046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6047printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6048reload_flag=$lt_cv_ld_reload_flag 6049case $reload_flag in 6050"" | " "*) ;; 6051*) reload_flag=" $reload_flag" ;; 6052esac 6053reload_cmds='$LD$reload_flag -o $output$reload_objs' 6054case $host_os in 6055 cygwin* | mingw* | windows* | pw32* | cegcc*) 6056 if test yes != "$GCC"; then 6057 reload_cmds=false 6058 fi 6059 ;; 6060 darwin*) 6061 if test yes = "$GCC"; then 6062 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6063 else 6064 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6065 fi 6066 ;; 6067esac 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077# Extract the first word of "file", so it can be a program name with args. 6078set dummy file; ac_word=$2 6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080printf %s "checking for $ac_word... " >&6; } 6081if test ${ac_cv_prog_FILECMD+y} 6082then : 6083 printf %s "(cached) " >&6 6084else case e in #( 6085 e) if test -n "$FILECMD"; then 6086 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 case $as_dir in #((( 6093 '') as_dir=./ ;; 6094 */) ;; 6095 *) as_dir=$as_dir/ ;; 6096 esac 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6099 ac_cv_prog_FILECMD="file" 6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104 done 6105IFS=$as_save_IFS 6106 6107 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6108fi ;; 6109esac 6110fi 6111FILECMD=$ac_cv_prog_FILECMD 6112if test -n "$FILECMD"; then 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6114printf "%s\n" "$FILECMD" >&6; } 6115else 6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117printf "%s\n" "no" >&6; } 6118fi 6119 6120 6121 6122 6123 6124 6125 6126 6127if test -n "$ac_tool_prefix"; then 6128 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6129set dummy ${ac_tool_prefix}objdump; ac_word=$2 6130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131printf %s "checking for $ac_word... " >&6; } 6132if test ${ac_cv_prog_OBJDUMP+y} 6133then : 6134 printf %s "(cached) " >&6 6135else case e in #( 6136 e) if test -n "$OBJDUMP"; then 6137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 case $as_dir in #((( 6144 '') as_dir=./ ;; 6145 */) ;; 6146 *) as_dir=$as_dir/ ;; 6147 esac 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6150 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155 done 6156IFS=$as_save_IFS 6157 6158fi ;; 6159esac 6160fi 6161OBJDUMP=$ac_cv_prog_OBJDUMP 6162if test -n "$OBJDUMP"; then 6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6164printf "%s\n" "$OBJDUMP" >&6; } 6165else 6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6167printf "%s\n" "no" >&6; } 6168fi 6169 6170 6171fi 6172if test -z "$ac_cv_prog_OBJDUMP"; then 6173 ac_ct_OBJDUMP=$OBJDUMP 6174 # Extract the first word of "objdump", so it can be a program name with args. 6175set dummy objdump; ac_word=$2 6176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177printf %s "checking for $ac_word... " >&6; } 6178if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6179then : 6180 printf %s "(cached) " >&6 6181else case e in #( 6182 e) if test -n "$ac_ct_OBJDUMP"; then 6183 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 case $as_dir in #((( 6190 '') as_dir=./ ;; 6191 */) ;; 6192 *) as_dir=$as_dir/ ;; 6193 esac 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6196 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201 done 6202IFS=$as_save_IFS 6203 6204fi ;; 6205esac 6206fi 6207ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6208if test -n "$ac_ct_OBJDUMP"; then 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6210printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6211else 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6213printf "%s\n" "no" >&6; } 6214fi 6215 6216 if test "x$ac_ct_OBJDUMP" = x; then 6217 OBJDUMP="false" 6218 else 6219 case $cross_compiling:$ac_tool_warned in 6220yes:) 6221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6222printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6223ac_tool_warned=yes ;; 6224esac 6225 OBJDUMP=$ac_ct_OBJDUMP 6226 fi 6227else 6228 OBJDUMP="$ac_cv_prog_OBJDUMP" 6229fi 6230 6231test -z "$OBJDUMP" && OBJDUMP=objdump 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6242printf %s "checking how to recognize dependent libraries... " >&6; } 6243if test ${lt_cv_deplibs_check_method+y} 6244then : 6245 printf %s "(cached) " >&6 6246else case e in #( 6247 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6248lt_cv_file_magic_test_file= 6249lt_cv_deplibs_check_method='unknown' 6250# Need to set the preceding variable on all platforms that support 6251# interlibrary dependencies. 6252# 'none' -- dependencies not supported. 6253# 'unknown' -- same as none, but documents that we really don't know. 6254# 'pass_all' -- all dependencies passed with no checks. 6255# 'file_magic [[regex]]' -- check by looking for files in library path 6256# that responds to the $file_magic_cmd with a given extended regex. 6257# If you have 'file' or equivalent on your system and you're not sure 6258# whether 'pass_all' will *always* work, you probably want this one. 6259 6260case $host_os in 6261aix[4-9]*) 6262 lt_cv_deplibs_check_method=pass_all 6263 ;; 6264 6265beos*) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269bsdi[45]*) 6270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6271 lt_cv_file_magic_cmd='$FILECMD -L' 6272 lt_cv_file_magic_test_file=/shlib/libc.so 6273 ;; 6274 6275cygwin*) 6276 # func_win32_libid is a shell function defined in ltmain.sh 6277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6278 lt_cv_file_magic_cmd='func_win32_libid' 6279 ;; 6280 6281mingw* | windows* | pw32*) 6282 # Base MSYS/MinGW do not provide the 'file' command needed by 6283 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6284 # unless we find 'file', for example because we are cross-compiling. 6285 if ( file / ) >/dev/null 2>&1; then 6286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6287 lt_cv_file_magic_cmd='func_win32_libid' 6288 else 6289 # Keep this pattern in sync with the one in func_win32_libid. 6290 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6291 lt_cv_file_magic_cmd='$OBJDUMP -f' 6292 fi 6293 ;; 6294 6295cegcc*) 6296 # use the weaker test based on 'objdump'. See mingw*. 6297 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6298 lt_cv_file_magic_cmd='$OBJDUMP -f' 6299 ;; 6300 6301darwin* | rhapsody*) 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 6305freebsd* | dragonfly* | midnightbsd*) 6306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6307 case $host_cpu in 6308 i*86 ) 6309 # Not sure whether the presence of OpenBSD here was a mistake. 6310 # Let's accept both of them until this is cleared up. 6311 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6312 lt_cv_file_magic_cmd=$FILECMD 6313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6314 ;; 6315 esac 6316 else 6317 lt_cv_deplibs_check_method=pass_all 6318 fi 6319 ;; 6320 6321haiku*) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 6325hpux10.20* | hpux11*) 6326 lt_cv_file_magic_cmd=$FILECMD 6327 case $host_cpu in 6328 ia64*) 6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6330 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6331 ;; 6332 hppa*64*) 6333 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]' 6334 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6335 ;; 6336 *) 6337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6338 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6339 ;; 6340 esac 6341 ;; 6342 6343interix[3-9]*) 6344 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6346 ;; 6347 6348irix5* | irix6* | nonstopux*) 6349 case $LD in 6350 *-32|*"-32 ") libmagic=32-bit;; 6351 *-n32|*"-n32 ") libmagic=N32;; 6352 *-64|*"-64 ") libmagic=64-bit;; 6353 *) libmagic=never-match;; 6354 esac 6355 lt_cv_deplibs_check_method=pass_all 6356 ;; 6357 6358# This must be glibc/ELF. 6359linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6360 lt_cv_deplibs_check_method=pass_all 6361 ;; 6362 6363*-mlibc) 6364 lt_cv_deplibs_check_method=pass_all 6365 ;; 6366 6367netbsd* | netbsdelf*-gnu) 6368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6370 else 6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6372 fi 6373 ;; 6374 6375newos6*) 6376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6377 lt_cv_file_magic_cmd=$FILECMD 6378 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6379 ;; 6380 6381*nto* | *qnx*) 6382 lt_cv_deplibs_check_method=pass_all 6383 ;; 6384 6385openbsd*) 6386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6388 else 6389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6390 fi 6391 ;; 6392 6393osf3* | osf4* | osf5*) 6394 lt_cv_deplibs_check_method=pass_all 6395 ;; 6396 6397rdos*) 6398 lt_cv_deplibs_check_method=pass_all 6399 ;; 6400 6401serenity*) 6402 lt_cv_deplibs_check_method=pass_all 6403 ;; 6404 6405solaris*) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 6413sysv4 | sysv4.3*) 6414 case $host_vendor in 6415 motorola) 6416 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]' 6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6418 ;; 6419 ncr) 6420 lt_cv_deplibs_check_method=pass_all 6421 ;; 6422 sequent) 6423 lt_cv_file_magic_cmd='/bin/file' 6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6425 ;; 6426 sni) 6427 lt_cv_file_magic_cmd='/bin/file' 6428 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6429 lt_cv_file_magic_test_file=/lib/libc.so 6430 ;; 6431 siemens) 6432 lt_cv_deplibs_check_method=pass_all 6433 ;; 6434 pc) 6435 lt_cv_deplibs_check_method=pass_all 6436 ;; 6437 esac 6438 ;; 6439 6440tpf*) 6441 lt_cv_deplibs_check_method=pass_all 6442 ;; 6443os2*) 6444 lt_cv_deplibs_check_method=pass_all 6445 ;; 6446esac 6447 ;; 6448esac 6449fi 6450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6451printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6452 6453file_magic_glob= 6454want_nocaseglob=no 6455if test "$build" = "$host"; then 6456 case $host_os in 6457 mingw* | windows* | pw32*) 6458 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6459 want_nocaseglob=yes 6460 else 6461 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6462 fi 6463 ;; 6464 esac 6465fi 6466 6467file_magic_cmd=$lt_cv_file_magic_cmd 6468deplibs_check_method=$lt_cv_deplibs_check_method 6469test -z "$deplibs_check_method" && deplibs_check_method=unknown 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492if test -n "$ac_tool_prefix"; then 6493 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6494set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+y} 6498then : 6499 printf %s "(cached) " >&6 6500else case e in #( 6501 e) if test -n "$DLLTOOL"; then 6502 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" 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 6526DLLTOOL=$ac_cv_prog_DLLTOOL 6527if test -n "$DLLTOOL"; then 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6529printf "%s\n" "$DLLTOOL" >&6; } 6530else 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532printf "%s\n" "no" >&6; } 6533fi 6534 6535 6536fi 6537if test -z "$ac_cv_prog_DLLTOOL"; then 6538 ac_ct_DLLTOOL=$DLLTOOL 6539 # Extract the first word of "dlltool", so it can be a program name with args. 6540set dummy dlltool; ac_word=$2 6541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542printf %s "checking for $ac_word... " >&6; } 6543if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6544then : 6545 printf %s "(cached) " >&6 6546else case e in #( 6547 e) if test -n "$ac_ct_DLLTOOL"; then 6548 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6549else 6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551for as_dir in $PATH 6552do 6553 IFS=$as_save_IFS 6554 case $as_dir in #((( 6555 '') as_dir=./ ;; 6556 */) ;; 6557 *) as_dir=$as_dir/ ;; 6558 esac 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569fi ;; 6570esac 6571fi 6572ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6573if test -n "$ac_ct_DLLTOOL"; then 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6575printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6576else 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578printf "%s\n" "no" >&6; } 6579fi 6580 6581 if test "x$ac_ct_DLLTOOL" = x; then 6582 DLLTOOL="false" 6583 else 6584 case $cross_compiling:$ac_tool_warned in 6585yes:) 6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6587printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6588ac_tool_warned=yes ;; 6589esac 6590 DLLTOOL=$ac_ct_DLLTOOL 6591 fi 6592else 6593 DLLTOOL="$ac_cv_prog_DLLTOOL" 6594fi 6595 6596test -z "$DLLTOOL" && DLLTOOL=dlltool 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6608printf %s "checking how to associate runtime and link libraries... " >&6; } 6609if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6610then : 6611 printf %s "(cached) " >&6 6612else case e in #( 6613 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6614 6615case $host_os in 6616cygwin* | mingw* | windows* | pw32* | cegcc*) 6617 # two different shell functions defined in ltmain.sh; 6618 # decide which one to use based on capabilities of $DLLTOOL 6619 case `$DLLTOOL --help 2>&1` in 6620 *--identify-strict*) 6621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6622 ;; 6623 *) 6624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6625 ;; 6626 esac 6627 ;; 6628*) 6629 # fallback: assume linklib IS sharedlib 6630 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6631 ;; 6632esac 6633 ;; 6634esac 6635fi 6636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6637printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6638sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6639test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6640 6641 6642 6643 6644 6645 6646 6647 6648if test -n "$ac_tool_prefix"; then 6649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6650set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6652printf %s "checking for $ac_word... " >&6; } 6653if test ${ac_cv_prog_RANLIB+y} 6654then : 6655 printf %s "(cached) " >&6 6656else case e in #( 6657 e) if test -n "$RANLIB"; then 6658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 case $as_dir in #((( 6665 '') as_dir=./ ;; 6666 */) ;; 6667 *) as_dir=$as_dir/ ;; 6668 esac 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi ;; 6680esac 6681fi 6682RANLIB=$ac_cv_prog_RANLIB 6683if test -n "$RANLIB"; then 6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6685printf "%s\n" "$RANLIB" >&6; } 6686else 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688printf "%s\n" "no" >&6; } 6689fi 6690 6691 6692fi 6693if test -z "$ac_cv_prog_RANLIB"; then 6694 ac_ct_RANLIB=$RANLIB 6695 # Extract the first word of "ranlib", so it can be a program name with args. 6696set dummy ranlib; ac_word=$2 6697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698printf %s "checking for $ac_word... " >&6; } 6699if test ${ac_cv_prog_ac_ct_RANLIB+y} 6700then : 6701 printf %s "(cached) " >&6 6702else case e in #( 6703 e) if test -n "$ac_ct_RANLIB"; then 6704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 case $as_dir in #((( 6711 '') as_dir=./ ;; 6712 */) ;; 6713 *) as_dir=$as_dir/ ;; 6714 esac 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_ac_ct_RANLIB="ranlib" 6718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi ;; 6726esac 6727fi 6728ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6729if test -n "$ac_ct_RANLIB"; then 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6731printf "%s\n" "$ac_ct_RANLIB" >&6; } 6732else 6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6734printf "%s\n" "no" >&6; } 6735fi 6736 6737 if test "x$ac_ct_RANLIB" = x; then 6738 RANLIB=":" 6739 else 6740 case $cross_compiling:$ac_tool_warned in 6741yes:) 6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6743printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6744ac_tool_warned=yes ;; 6745esac 6746 RANLIB=$ac_ct_RANLIB 6747 fi 6748else 6749 RANLIB="$ac_cv_prog_RANLIB" 6750fi 6751 6752if test -n "$ac_tool_prefix"; then 6753 for ac_prog in ar 6754 do 6755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6756set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6758printf %s "checking for $ac_word... " >&6; } 6759if test ${ac_cv_prog_AR+y} 6760then : 6761 printf %s "(cached) " >&6 6762else case e in #( 6763 e) if test -n "$AR"; then 6764 ac_cv_prog_AR="$AR" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 case $as_dir in #((( 6771 '') as_dir=./ ;; 6772 */) ;; 6773 *) as_dir=$as_dir/ ;; 6774 esac 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6777 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781done 6782 done 6783IFS=$as_save_IFS 6784 6785fi ;; 6786esac 6787fi 6788AR=$ac_cv_prog_AR 6789if test -n "$AR"; then 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6791printf "%s\n" "$AR" >&6; } 6792else 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6794printf "%s\n" "no" >&6; } 6795fi 6796 6797 6798 test -n "$AR" && break 6799 done 6800fi 6801if test -z "$AR"; then 6802 ac_ct_AR=$AR 6803 for ac_prog in ar 6804do 6805 # Extract the first word of "$ac_prog", so it can be a program name with args. 6806set dummy $ac_prog; ac_word=$2 6807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808printf %s "checking for $ac_word... " >&6; } 6809if test ${ac_cv_prog_ac_ct_AR+y} 6810then : 6811 printf %s "(cached) " >&6 6812else case e in #( 6813 e) if test -n "$ac_ct_AR"; then 6814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 case $as_dir in #((( 6821 '') as_dir=./ ;; 6822 */) ;; 6823 *) as_dir=$as_dir/ ;; 6824 esac 6825 for ac_exec_ext in '' $ac_executable_extensions; do 6826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6827 ac_cv_prog_ac_ct_AR="$ac_prog" 6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6829 break 2 6830 fi 6831done 6832 done 6833IFS=$as_save_IFS 6834 6835fi ;; 6836esac 6837fi 6838ac_ct_AR=$ac_cv_prog_ac_ct_AR 6839if test -n "$ac_ct_AR"; then 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6841printf "%s\n" "$ac_ct_AR" >&6; } 6842else 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844printf "%s\n" "no" >&6; } 6845fi 6846 6847 6848 test -n "$ac_ct_AR" && break 6849done 6850 6851 if test "x$ac_ct_AR" = x; then 6852 AR="false" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 AR=$ac_ct_AR 6861 fi 6862fi 6863 6864: ${AR=ar} 6865 6866 6867 6868 6869 6870 6871# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6872# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6873# higher priority because that's what people were doing historically (setting 6874# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6875# variable obsoleted/removed. 6876 6877test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6878lt_ar_flags=$AR_FLAGS 6879 6880 6881 6882 6883 6884 6885# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6886# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6887 6888 6889 6890 6891 6892 6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6894printf %s "checking for archiver @FILE support... " >&6; } 6895if test ${lt_cv_ar_at_file+y} 6896then : 6897 printf %s "(cached) " >&6 6898else case e in #( 6899 e) lt_cv_ar_at_file=no 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902 6903int 6904main (void) 6905{ 6906 6907 ; 6908 return 0; 6909} 6910_ACEOF 6911if ac_fn_c_try_compile "$LINENO" 6912then : 6913 echo conftest.$ac_objext > conftest.lst 6914 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6916 (eval $lt_ar_try) 2>&5 6917 ac_status=$? 6918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6919 test $ac_status = 0; } 6920 if test 0 -eq "$ac_status"; then 6921 # Ensure the archiver fails upon bogus file names. 6922 rm -f conftest.$ac_objext libconftest.a 6923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6924 (eval $lt_ar_try) 2>&5 6925 ac_status=$? 6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6927 test $ac_status = 0; } 6928 if test 0 -ne "$ac_status"; then 6929 lt_cv_ar_at_file=@ 6930 fi 6931 fi 6932 rm -f conftest.* libconftest.a 6933 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6936 ;; 6937esac 6938fi 6939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6940printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6941 6942if test no = "$lt_cv_ar_at_file"; then 6943 archiver_list_spec= 6944else 6945 archiver_list_spec=$lt_cv_ar_at_file 6946fi 6947 6948 6949 6950 6951 6952 6953 6954if test -n "$ac_tool_prefix"; then 6955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6956set dummy ${ac_tool_prefix}strip; ac_word=$2 6957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6958printf %s "checking for $ac_word... " >&6; } 6959if test ${ac_cv_prog_STRIP+y} 6960then : 6961 printf %s "(cached) " >&6 6962else case e in #( 6963 e) if test -n "$STRIP"; then 6964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6965else 6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6967for as_dir in $PATH 6968do 6969 IFS=$as_save_IFS 6970 case $as_dir in #((( 6971 '') as_dir=./ ;; 6972 */) ;; 6973 *) as_dir=$as_dir/ ;; 6974 esac 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi ;; 6986esac 6987fi 6988STRIP=$ac_cv_prog_STRIP 6989if test -n "$STRIP"; then 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6991printf "%s\n" "$STRIP" >&6; } 6992else 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6994printf "%s\n" "no" >&6; } 6995fi 6996 6997 6998fi 6999if test -z "$ac_cv_prog_STRIP"; then 7000 ac_ct_STRIP=$STRIP 7001 # Extract the first word of "strip", so it can be a program name with args. 7002set dummy strip; ac_word=$2 7003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7004printf %s "checking for $ac_word... " >&6; } 7005if test ${ac_cv_prog_ac_ct_STRIP+y} 7006then : 7007 printf %s "(cached) " >&6 7008else case e in #( 7009 e) if test -n "$ac_ct_STRIP"; then 7010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7011else 7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013for as_dir in $PATH 7014do 7015 IFS=$as_save_IFS 7016 case $as_dir in #((( 7017 '') as_dir=./ ;; 7018 */) ;; 7019 *) as_dir=$as_dir/ ;; 7020 esac 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_ac_ct_STRIP="strip" 7024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi ;; 7032esac 7033fi 7034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7035if test -n "$ac_ct_STRIP"; then 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7037printf "%s\n" "$ac_ct_STRIP" >&6; } 7038else 7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7040printf "%s\n" "no" >&6; } 7041fi 7042 7043 if test "x$ac_ct_STRIP" = x; then 7044 STRIP=":" 7045 else 7046 case $cross_compiling:$ac_tool_warned in 7047yes:) 7048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7049printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7050ac_tool_warned=yes ;; 7051esac 7052 STRIP=$ac_ct_STRIP 7053 fi 7054else 7055 STRIP="$ac_cv_prog_STRIP" 7056fi 7057 7058test -z "$STRIP" && STRIP=: 7059 7060 7061 7062 7063 7064 7065 7066test -z "$RANLIB" && RANLIB=: 7067 7068 7069 7070 7071 7072 7073# Determine commands to create old-style static archives. 7074old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7075old_postinstall_cmds='chmod 644 $oldlib' 7076old_postuninstall_cmds= 7077 7078if test -n "$RANLIB"; then 7079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7081fi 7082 7083case $host_os in 7084 darwin*) 7085 lock_old_archive_extraction=yes ;; 7086 *) 7087 lock_old_archive_extraction=no ;; 7088esac 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128# If no C compiler was specified, use CC. 7129LTCC=${LTCC-"$CC"} 7130 7131# If no C compiler flags were specified, use CFLAGS. 7132LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7133 7134# Allow CC to be a program name with arguments. 7135compiler=$CC 7136 7137 7138# Check for command to grab the raw symbol name followed by C symbol from nm. 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7140printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7141if test ${lt_cv_sys_global_symbol_pipe+y} 7142then : 7143 printf %s "(cached) " >&6 7144else case e in #( 7145 e) 7146# These are sane defaults that work on at least a few old systems. 7147# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7148 7149# Character class describing NM global symbol codes. 7150symcode='[BCDEGRST]' 7151 7152# Regexp to match symbols that can be accessed directly from C. 7153sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7154 7155# Define system-specific variables. 7156case $host_os in 7157aix*) 7158 symcode='[BCDT]' 7159 ;; 7160cygwin* | mingw* | windows* | pw32* | cegcc*) 7161 symcode='[ABCDGISTW]' 7162 ;; 7163hpux*) 7164 if test ia64 = "$host_cpu"; then 7165 symcode='[ABCDEGRST]' 7166 fi 7167 ;; 7168irix* | nonstopux*) 7169 symcode='[BCDEGRST]' 7170 ;; 7171osf*) 7172 symcode='[BCDEGQRST]' 7173 ;; 7174solaris*) 7175 symcode='[BCDRT]' 7176 ;; 7177sco3.2v5*) 7178 symcode='[DT]' 7179 ;; 7180sysv4.2uw2*) 7181 symcode='[DT]' 7182 ;; 7183sysv5* | sco5v6* | unixware* | OpenUNIX*) 7184 symcode='[ABDT]' 7185 ;; 7186sysv4) 7187 symcode='[DFNSTU]' 7188 ;; 7189esac 7190 7191# If we're using GNU nm, then use its standard symbol codes. 7192case `$NM -V 2>&1` in 7193*GNU* | *'with BFD'*) 7194 symcode='[ABCDGIRSTW]' ;; 7195esac 7196 7197if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7198 # Gets list of data symbols to import. 7199 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7200 # Adjust the below global symbol transforms to fixup imported variables. 7201 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7202 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7203 lt_c_name_lib_hook="\ 7204 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7205 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7206else 7207 # Disable hooks by default. 7208 lt_cv_sys_global_symbol_to_import= 7209 lt_cdecl_hook= 7210 lt_c_name_hook= 7211 lt_c_name_lib_hook= 7212fi 7213 7214# Transform an extracted symbol line into a proper C declaration. 7215# Some systems (esp. on ia64) link data and code symbols differently, 7216# so use this general approach. 7217lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7218$lt_cdecl_hook\ 7219" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7220" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7221 7222# Transform an extracted symbol line into symbol name and symbol address 7223lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7224$lt_c_name_hook\ 7225" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7226" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7227 7228# Transform an extracted symbol line into symbol name with lib prefix and 7229# symbol address. 7230lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7231$lt_c_name_lib_hook\ 7232" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7233" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7234" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7235 7236# Handle CRLF in mingw tool chain 7237opt_cr= 7238case $build_os in 7239mingw* | windows*) 7240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7241 ;; 7242esac 7243 7244# Try without a prefix underscore, then with it. 7245for ac_symprfx in "" "_"; do 7246 7247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7248 symxfrm="\\1 $ac_symprfx\\2 \\2" 7249 7250 # Write the raw and C identifiers. 7251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7252 # Fake it for dumpbin and say T for any non-static function, 7253 # D for any global variable and I for any imported variable. 7254 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7255 # which start with @ or ?. 7256 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7257" {last_section=section; section=\$ 3};"\ 7258" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7259" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7260" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7261" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7262" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7263" \$ 0!~/External *\|/{next};"\ 7264" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7265" {if(hide[section]) next};"\ 7266" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7267" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7268" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7269" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7270" ' prfx=^$ac_symprfx" 7271 else 7272 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7273 fi 7274 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7275 7276 # Check to see that the pipe works correctly. 7277 pipe_works=no 7278 7279 rm -f conftest* 7280 cat > conftest.$ac_ext <<_LT_EOF 7281#ifdef __cplusplus 7282extern "C" { 7283#endif 7284char nm_test_var; 7285void nm_test_func(void); 7286void nm_test_func(void){} 7287#ifdef __cplusplus 7288} 7289#endif 7290int main(void){nm_test_var='a';nm_test_func();return(0);} 7291_LT_EOF 7292 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 # Now try to grab the symbols. 7299 nlist=conftest.nm 7300 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7301 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7302 # Try sorting and uniquifying the output. 7303 if sort "$nlist" | uniq > "$nlist"T; then 7304 mv -f "$nlist"T "$nlist" 7305 else 7306 rm -f "$nlist"T 7307 fi 7308 7309 # Make sure that we snagged all the symbols we need. 7310 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7311 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7312 cat <<_LT_EOF > conftest.$ac_ext 7313/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7314#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7315/* DATA imports from DLLs on WIN32 can't be const, because runtime 7316 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7317# define LT_DLSYM_CONST 7318#elif defined __osf__ 7319/* This system does not cope well with relocations in const data. */ 7320# define LT_DLSYM_CONST 7321#else 7322# define LT_DLSYM_CONST const 7323#endif 7324 7325#ifdef __cplusplus 7326extern "C" { 7327#endif 7328 7329_LT_EOF 7330 # Now generate the symbol file. 7331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7332 7333 cat <<_LT_EOF >> conftest.$ac_ext 7334 7335/* The mapping between symbol names and symbols. */ 7336LT_DLSYM_CONST struct { 7337 const char *name; 7338 void *address; 7339} 7340lt__PROGRAM__LTX_preloaded_symbols[] = 7341{ 7342 { "@PROGRAM@", (void *) 0 }, 7343_LT_EOF 7344 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7345 cat <<\_LT_EOF >> conftest.$ac_ext 7346 {0, (void *) 0} 7347}; 7348 7349/* This works around a problem in FreeBSD linker */ 7350#ifdef FREEBSD_WORKAROUND 7351static const void *lt_preloaded_setup() { 7352 return lt__PROGRAM__LTX_preloaded_symbols; 7353} 7354#endif 7355 7356#ifdef __cplusplus 7357} 7358#endif 7359_LT_EOF 7360 # Now try linking the two files. 7361 mv conftest.$ac_objext conftstm.$ac_objext 7362 lt_globsym_save_LIBS=$LIBS 7363 lt_globsym_save_CFLAGS=$CFLAGS 7364 LIBS=conftstm.$ac_objext 7365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7367 (eval $ac_link) 2>&5 7368 ac_status=$? 7369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7370 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7371 pipe_works=yes 7372 fi 7373 LIBS=$lt_globsym_save_LIBS 7374 CFLAGS=$lt_globsym_save_CFLAGS 7375 else 7376 echo "cannot find nm_test_func in $nlist" >&5 7377 fi 7378 else 7379 echo "cannot find nm_test_var in $nlist" >&5 7380 fi 7381 else 7382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7383 fi 7384 else 7385 echo "$progname: failed program was:" >&5 7386 cat conftest.$ac_ext >&5 7387 fi 7388 rm -rf conftest* conftst* 7389 7390 # Do not use the global_symbol_pipe unless it works. 7391 if test yes = "$pipe_works"; then 7392 break 7393 else 7394 lt_cv_sys_global_symbol_pipe= 7395 fi 7396done 7397 ;; 7398esac 7399fi 7400 7401if test -z "$lt_cv_sys_global_symbol_pipe"; then 7402 lt_cv_sys_global_symbol_to_cdecl= 7403fi 7404if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7406printf "%s\n" "failed" >&6; } 7407else 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7409printf "%s\n" "ok" >&6; } 7410fi 7411 7412# Response file support. 7413if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7414 nm_file_list_spec='@' 7415elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7416 nm_file_list_spec='@' 7417fi 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7456printf %s "checking for sysroot... " >&6; } 7457 7458# Check whether --with-sysroot was given. 7459if test ${with_sysroot+y} 7460then : 7461 withval=$with_sysroot; 7462else case e in #( 7463 e) with_sysroot=no ;; 7464esac 7465fi 7466 7467 7468lt_sysroot= 7469case $with_sysroot in #( 7470 yes) 7471 if test yes = "$GCC"; then 7472 # Trim trailing / since we'll always append absolute paths and we want 7473 # to avoid //, if only for less confusing output for the user. 7474 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7475 fi 7476 ;; #( 7477 /*) 7478 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7479 ;; #( 7480 no|'') 7481 ;; #( 7482 *) 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7484printf "%s\n" "$with_sysroot" >&6; } 7485 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7486 ;; 7487esac 7488 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7490printf "%s\n" "${lt_sysroot:-no}" >&6; } 7491 7492 7493 7494 7495 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7497printf %s "checking for a working dd... " >&6; } 7498if test ${ac_cv_path_lt_DD+y} 7499then : 7500 printf %s "(cached) " >&6 7501else case e in #( 7502 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7503cat conftest.i conftest.i >conftest2.i 7504: ${lt_DD:=$DD} 7505if test -z "$lt_DD"; then 7506 ac_path_lt_DD_found=false 7507 # Loop through the user's path and test for each of PROGNAME-LIST 7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7509for as_dir in $PATH 7510do 7511 IFS=$as_save_IFS 7512 case $as_dir in #((( 7513 '') as_dir=./ ;; 7514 */) ;; 7515 *) as_dir=$as_dir/ ;; 7516 esac 7517 for ac_prog in dd 7518 do 7519 for ac_exec_ext in '' $ac_executable_extensions; do 7520 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7521 as_fn_executable_p "$ac_path_lt_DD" || continue 7522if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7523 cmp -s conftest.i conftest.out \ 7524 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7525fi 7526 $ac_path_lt_DD_found && break 3 7527 done 7528 done 7529 done 7530IFS=$as_save_IFS 7531 if test -z "$ac_cv_path_lt_DD"; then 7532 : 7533 fi 7534else 7535 ac_cv_path_lt_DD=$lt_DD 7536fi 7537 7538rm -f conftest.i conftest2.i conftest.out ;; 7539esac 7540fi 7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7542printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7543 7544 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7546printf %s "checking how to truncate binary pipes... " >&6; } 7547if test ${lt_cv_truncate_bin+y} 7548then : 7549 printf %s "(cached) " >&6 7550else case e in #( 7551 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7552cat conftest.i conftest.i >conftest2.i 7553lt_cv_truncate_bin= 7554if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7555 cmp -s conftest.i conftest.out \ 7556 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7557fi 7558rm -f conftest.i conftest2.i conftest.out 7559test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7560esac 7561fi 7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7563printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7564 7565 7566 7567 7568 7569 7570 7571# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7572func_cc_basename () 7573{ 7574 for cc_temp in $*""; do 7575 case $cc_temp in 7576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7578 \-*) ;; 7579 *) break;; 7580 esac 7581 done 7582 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7583} 7584 7585# Check whether --enable-libtool-lock was given. 7586if test ${enable_libtool_lock+y} 7587then : 7588 enableval=$enable_libtool_lock; 7589fi 7590 7591test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7592 7593# Some flags need to be propagated to the compiler or linker for good 7594# libtool support. 7595case $host in 7596ia64-*-hpux*) 7597 # Find out what ABI is being produced by ac_compile, and set mode 7598 # options accordingly. 7599 echo 'int i;' > conftest.$ac_ext 7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7601 (eval $ac_compile) 2>&5 7602 ac_status=$? 7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7604 test $ac_status = 0; }; then 7605 case `$FILECMD conftest.$ac_objext` in 7606 *ELF-32*) 7607 HPUX_IA64_MODE=32 7608 ;; 7609 *ELF-64*) 7610 HPUX_IA64_MODE=64 7611 ;; 7612 esac 7613 fi 7614 rm -rf conftest* 7615 ;; 7616*-*-irix6*) 7617 # Find out what ABI is being produced by ac_compile, and set linker 7618 # options accordingly. 7619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7621 (eval $ac_compile) 2>&5 7622 ac_status=$? 7623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7624 test $ac_status = 0; }; then 7625 if test yes = "$lt_cv_prog_gnu_ld"; then 7626 case `$FILECMD conftest.$ac_objext` in 7627 *32-bit*) 7628 LD="${LD-ld} -melf32bsmip" 7629 ;; 7630 *N32*) 7631 LD="${LD-ld} -melf32bmipn32" 7632 ;; 7633 *64-bit*) 7634 LD="${LD-ld} -melf64bmip" 7635 ;; 7636 esac 7637 else 7638 case `$FILECMD conftest.$ac_objext` in 7639 *32-bit*) 7640 LD="${LD-ld} -32" 7641 ;; 7642 *N32*) 7643 LD="${LD-ld} -n32" 7644 ;; 7645 *64-bit*) 7646 LD="${LD-ld} -64" 7647 ;; 7648 esac 7649 fi 7650 fi 7651 rm -rf conftest* 7652 ;; 7653 7654mips64*-*linux*) 7655 # Find out what ABI is being produced by ac_compile, and set linker 7656 # options accordingly. 7657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7659 (eval $ac_compile) 2>&5 7660 ac_status=$? 7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7662 test $ac_status = 0; }; then 7663 emul=elf 7664 case `$FILECMD conftest.$ac_objext` in 7665 *32-bit*) 7666 emul="${emul}32" 7667 ;; 7668 *64-bit*) 7669 emul="${emul}64" 7670 ;; 7671 esac 7672 case `$FILECMD conftest.$ac_objext` in 7673 *MSB*) 7674 emul="${emul}btsmip" 7675 ;; 7676 *LSB*) 7677 emul="${emul}ltsmip" 7678 ;; 7679 esac 7680 case `$FILECMD conftest.$ac_objext` in 7681 *N32*) 7682 emul="${emul}n32" 7683 ;; 7684 esac 7685 LD="${LD-ld} -m $emul" 7686 fi 7687 rm -rf conftest* 7688 ;; 7689 7690x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7691s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7692 # Find out what ABI is being produced by ac_compile, and set linker 7693 # options accordingly. Note that the listed cases only cover the 7694 # situations where additional linker options are needed (such as when 7695 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7696 # vice versa); the common cases where no linker options are needed do 7697 # not appear in the list. 7698 echo 'int i;' > conftest.$ac_ext 7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7700 (eval $ac_compile) 2>&5 7701 ac_status=$? 7702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7703 test $ac_status = 0; }; then 7704 case `$FILECMD conftest.o` in 7705 *32-bit*) 7706 case $host in 7707 x86_64-*kfreebsd*-gnu) 7708 LD="${LD-ld} -m elf_i386_fbsd" 7709 ;; 7710 x86_64-*linux*|x86_64-gnu*) 7711 case `$FILECMD conftest.o` in 7712 *x86-64*) 7713 LD="${LD-ld} -m elf32_x86_64" 7714 ;; 7715 *) 7716 LD="${LD-ld} -m elf_i386" 7717 ;; 7718 esac 7719 ;; 7720 powerpc64le-*linux*) 7721 LD="${LD-ld} -m elf32lppclinux" 7722 ;; 7723 powerpc64-*linux*) 7724 LD="${LD-ld} -m elf32ppclinux" 7725 ;; 7726 s390x-*linux*) 7727 LD="${LD-ld} -m elf_s390" 7728 ;; 7729 sparc64-*linux*) 7730 LD="${LD-ld} -m elf32_sparc" 7731 ;; 7732 esac 7733 ;; 7734 *64-bit*) 7735 case $host in 7736 x86_64-*kfreebsd*-gnu) 7737 LD="${LD-ld} -m elf_x86_64_fbsd" 7738 ;; 7739 x86_64-*linux*|x86_64-gnu*) 7740 LD="${LD-ld} -m elf_x86_64" 7741 ;; 7742 powerpcle-*linux*) 7743 LD="${LD-ld} -m elf64lppc" 7744 ;; 7745 powerpc-*linux*) 7746 LD="${LD-ld} -m elf64ppc" 7747 ;; 7748 s390*-*linux*|s390*-*tpf*) 7749 LD="${LD-ld} -m elf64_s390" 7750 ;; 7751 sparc*-*linux*) 7752 LD="${LD-ld} -m elf64_sparc" 7753 ;; 7754 esac 7755 ;; 7756 esac 7757 fi 7758 rm -rf conftest* 7759 ;; 7760 7761*-*-sco3.2v5*) 7762 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7763 SAVE_CFLAGS=$CFLAGS 7764 CFLAGS="$CFLAGS -belf" 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7766printf %s "checking whether the C compiler needs -belf... " >&6; } 7767if test ${lt_cv_cc_needs_belf+y} 7768then : 7769 printf %s "(cached) " >&6 7770else case e in #( 7771 e) ac_ext=c 7772ac_cpp='$CPP $CPPFLAGS' 7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7775ac_compiler_gnu=$ac_cv_c_compiler_gnu 7776 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779 7780int 7781main (void) 7782{ 7783 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788if ac_fn_c_try_link "$LINENO" 7789then : 7790 lt_cv_cc_needs_belf=yes 7791else case e in #( 7792 e) lt_cv_cc_needs_belf=no ;; 7793esac 7794fi 7795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7796 conftest$ac_exeext conftest.$ac_ext 7797 ac_ext=c 7798ac_cpp='$CPP $CPPFLAGS' 7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7801ac_compiler_gnu=$ac_cv_c_compiler_gnu 7802 ;; 7803esac 7804fi 7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7806printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7807 if test yes != "$lt_cv_cc_needs_belf"; then 7808 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7809 CFLAGS=$SAVE_CFLAGS 7810 fi 7811 ;; 7812*-*solaris*) 7813 # Find out what ABI is being produced by ac_compile, and set linker 7814 # options accordingly. 7815 echo 'int i;' > conftest.$ac_ext 7816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7817 (eval $ac_compile) 2>&5 7818 ac_status=$? 7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7820 test $ac_status = 0; }; then 7821 case `$FILECMD conftest.o` in 7822 *64-bit*) 7823 case $lt_cv_prog_gnu_ld in 7824 yes*) 7825 case $host in 7826 i?86-*-solaris*|x86_64-*-solaris*) 7827 LD="${LD-ld} -m elf_x86_64" 7828 ;; 7829 sparc*-*-solaris*) 7830 LD="${LD-ld} -m elf64_sparc" 7831 ;; 7832 esac 7833 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7834 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7835 LD=${LD-ld}_sol2 7836 fi 7837 ;; 7838 *) 7839 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7840 LD="${LD-ld} -64" 7841 fi 7842 ;; 7843 esac 7844 ;; 7845 esac 7846 fi 7847 rm -rf conftest* 7848 ;; 7849esac 7850 7851need_locks=$enable_libtool_lock 7852 7853if test -n "$ac_tool_prefix"; then 7854 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7855set dummy ${ac_tool_prefix}mt; ac_word=$2 7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7857printf %s "checking for $ac_word... " >&6; } 7858if test ${ac_cv_prog_MANIFEST_TOOL+y} 7859then : 7860 printf %s "(cached) " >&6 7861else case e in #( 7862 e) if test -n "$MANIFEST_TOOL"; then 7863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7864else 7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866for as_dir in $PATH 7867do 7868 IFS=$as_save_IFS 7869 case $as_dir in #((( 7870 '') as_dir=./ ;; 7871 */) ;; 7872 *) as_dir=$as_dir/ ;; 7873 esac 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880done 7881 done 7882IFS=$as_save_IFS 7883 7884fi ;; 7885esac 7886fi 7887MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7888if test -n "$MANIFEST_TOOL"; then 7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7890printf "%s\n" "$MANIFEST_TOOL" >&6; } 7891else 7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893printf "%s\n" "no" >&6; } 7894fi 7895 7896 7897fi 7898if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7899 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7900 # Extract the first word of "mt", so it can be a program name with args. 7901set dummy mt; ac_word=$2 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7903printf %s "checking for $ac_word... " >&6; } 7904if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7905then : 7906 printf %s "(cached) " >&6 7907else case e in #( 7908 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7909 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7910else 7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7912for as_dir in $PATH 7913do 7914 IFS=$as_save_IFS 7915 case $as_dir in #((( 7916 '') as_dir=./ ;; 7917 */) ;; 7918 *) as_dir=$as_dir/ ;; 7919 esac 7920 for ac_exec_ext in '' $ac_executable_extensions; do 7921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7922 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7924 break 2 7925 fi 7926done 7927 done 7928IFS=$as_save_IFS 7929 7930fi ;; 7931esac 7932fi 7933ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7934if test -n "$ac_ct_MANIFEST_TOOL"; then 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7936printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7937else 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939printf "%s\n" "no" >&6; } 7940fi 7941 7942 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7943 MANIFEST_TOOL=":" 7944 else 7945 case $cross_compiling:$ac_tool_warned in 7946yes:) 7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7949ac_tool_warned=yes ;; 7950esac 7951 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7952 fi 7953else 7954 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7955fi 7956 7957test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7959printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7960if test ${lt_cv_path_manifest_tool+y} 7961then : 7962 printf %s "(cached) " >&6 7963else case e in #( 7964 e) lt_cv_path_manifest_tool=no 7965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7967 cat conftest.err >&5 7968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7969 lt_cv_path_manifest_tool=yes 7970 fi 7971 rm -f conftest* ;; 7972esac 7973fi 7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7975printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7976if test yes != "$lt_cv_path_manifest_tool"; then 7977 MANIFEST_TOOL=: 7978fi 7979 7980 7981 7982 7983 7984 7985 case $host_os in 7986 rhapsody* | darwin*) 7987 if test -n "$ac_tool_prefix"; then 7988 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7989set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7991printf %s "checking for $ac_word... " >&6; } 7992if test ${ac_cv_prog_DSYMUTIL+y} 7993then : 7994 printf %s "(cached) " >&6 7995else case e in #( 7996 e) if test -n "$DSYMUTIL"; then 7997 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7998else 7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8000for as_dir in $PATH 8001do 8002 IFS=$as_save_IFS 8003 case $as_dir in #((( 8004 '') as_dir=./ ;; 8005 */) ;; 8006 *) as_dir=$as_dir/ ;; 8007 esac 8008 for ac_exec_ext in '' $ac_executable_extensions; do 8009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8012 break 2 8013 fi 8014done 8015 done 8016IFS=$as_save_IFS 8017 8018fi ;; 8019esac 8020fi 8021DSYMUTIL=$ac_cv_prog_DSYMUTIL 8022if test -n "$DSYMUTIL"; then 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8024printf "%s\n" "$DSYMUTIL" >&6; } 8025else 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8027printf "%s\n" "no" >&6; } 8028fi 8029 8030 8031fi 8032if test -z "$ac_cv_prog_DSYMUTIL"; then 8033 ac_ct_DSYMUTIL=$DSYMUTIL 8034 # Extract the first word of "dsymutil", so it can be a program name with args. 8035set dummy dsymutil; ac_word=$2 8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8037printf %s "checking for $ac_word... " >&6; } 8038if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8039then : 8040 printf %s "(cached) " >&6 8041else case e in #( 8042 e) if test -n "$ac_ct_DSYMUTIL"; then 8043 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8044else 8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046for as_dir in $PATH 8047do 8048 IFS=$as_save_IFS 8049 case $as_dir in #((( 8050 '') as_dir=./ ;; 8051 */) ;; 8052 *) as_dir=$as_dir/ ;; 8053 esac 8054 for ac_exec_ext in '' $ac_executable_extensions; do 8055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8056 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8058 break 2 8059 fi 8060done 8061 done 8062IFS=$as_save_IFS 8063 8064fi ;; 8065esac 8066fi 8067ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8068if test -n "$ac_ct_DSYMUTIL"; then 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8070printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8071else 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8073printf "%s\n" "no" >&6; } 8074fi 8075 8076 if test "x$ac_ct_DSYMUTIL" = x; then 8077 DSYMUTIL=":" 8078 else 8079 case $cross_compiling:$ac_tool_warned in 8080yes:) 8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8083ac_tool_warned=yes ;; 8084esac 8085 DSYMUTIL=$ac_ct_DSYMUTIL 8086 fi 8087else 8088 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8089fi 8090 8091 if test -n "$ac_tool_prefix"; then 8092 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8093set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8095printf %s "checking for $ac_word... " >&6; } 8096if test ${ac_cv_prog_NMEDIT+y} 8097then : 8098 printf %s "(cached) " >&6 8099else case e in #( 8100 e) if test -n "$NMEDIT"; then 8101 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8102else 8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104for as_dir in $PATH 8105do 8106 IFS=$as_save_IFS 8107 case $as_dir in #((( 8108 '') as_dir=./ ;; 8109 */) ;; 8110 *) as_dir=$as_dir/ ;; 8111 esac 8112 for ac_exec_ext in '' $ac_executable_extensions; do 8113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8116 break 2 8117 fi 8118done 8119 done 8120IFS=$as_save_IFS 8121 8122fi ;; 8123esac 8124fi 8125NMEDIT=$ac_cv_prog_NMEDIT 8126if test -n "$NMEDIT"; then 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8128printf "%s\n" "$NMEDIT" >&6; } 8129else 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8131printf "%s\n" "no" >&6; } 8132fi 8133 8134 8135fi 8136if test -z "$ac_cv_prog_NMEDIT"; then 8137 ac_ct_NMEDIT=$NMEDIT 8138 # Extract the first word of "nmedit", so it can be a program name with args. 8139set dummy nmedit; ac_word=$2 8140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8141printf %s "checking for $ac_word... " >&6; } 8142if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8143then : 8144 printf %s "(cached) " >&6 8145else case e in #( 8146 e) if test -n "$ac_ct_NMEDIT"; then 8147 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8148else 8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8150for as_dir in $PATH 8151do 8152 IFS=$as_save_IFS 8153 case $as_dir in #((( 8154 '') as_dir=./ ;; 8155 */) ;; 8156 *) as_dir=$as_dir/ ;; 8157 esac 8158 for ac_exec_ext in '' $ac_executable_extensions; do 8159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8160 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8162 break 2 8163 fi 8164done 8165 done 8166IFS=$as_save_IFS 8167 8168fi ;; 8169esac 8170fi 8171ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8172if test -n "$ac_ct_NMEDIT"; then 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8174printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8175else 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8177printf "%s\n" "no" >&6; } 8178fi 8179 8180 if test "x$ac_ct_NMEDIT" = x; then 8181 NMEDIT=":" 8182 else 8183 case $cross_compiling:$ac_tool_warned in 8184yes:) 8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8186printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8187ac_tool_warned=yes ;; 8188esac 8189 NMEDIT=$ac_ct_NMEDIT 8190 fi 8191else 8192 NMEDIT="$ac_cv_prog_NMEDIT" 8193fi 8194 8195 if test -n "$ac_tool_prefix"; then 8196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8197set dummy ${ac_tool_prefix}lipo; ac_word=$2 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8199printf %s "checking for $ac_word... " >&6; } 8200if test ${ac_cv_prog_LIPO+y} 8201then : 8202 printf %s "(cached) " >&6 8203else case e in #( 8204 e) if test -n "$LIPO"; then 8205 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8206else 8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8208for as_dir in $PATH 8209do 8210 IFS=$as_save_IFS 8211 case $as_dir in #((( 8212 '') as_dir=./ ;; 8213 */) ;; 8214 *) as_dir=$as_dir/ ;; 8215 esac 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi ;; 8227esac 8228fi 8229LIPO=$ac_cv_prog_LIPO 8230if test -n "$LIPO"; then 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8232printf "%s\n" "$LIPO" >&6; } 8233else 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8235printf "%s\n" "no" >&6; } 8236fi 8237 8238 8239fi 8240if test -z "$ac_cv_prog_LIPO"; then 8241 ac_ct_LIPO=$LIPO 8242 # Extract the first word of "lipo", so it can be a program name with args. 8243set dummy lipo; ac_word=$2 8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8245printf %s "checking for $ac_word... " >&6; } 8246if test ${ac_cv_prog_ac_ct_LIPO+y} 8247then : 8248 printf %s "(cached) " >&6 8249else case e in #( 8250 e) if test -n "$ac_ct_LIPO"; then 8251 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8252else 8253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8254for as_dir in $PATH 8255do 8256 IFS=$as_save_IFS 8257 case $as_dir in #((( 8258 '') as_dir=./ ;; 8259 */) ;; 8260 *) as_dir=$as_dir/ ;; 8261 esac 8262 for ac_exec_ext in '' $ac_executable_extensions; do 8263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8264 ac_cv_prog_ac_ct_LIPO="lipo" 8265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8266 break 2 8267 fi 8268done 8269 done 8270IFS=$as_save_IFS 8271 8272fi ;; 8273esac 8274fi 8275ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8276if test -n "$ac_ct_LIPO"; then 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8278printf "%s\n" "$ac_ct_LIPO" >&6; } 8279else 8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8281printf "%s\n" "no" >&6; } 8282fi 8283 8284 if test "x$ac_ct_LIPO" = x; then 8285 LIPO=":" 8286 else 8287 case $cross_compiling:$ac_tool_warned in 8288yes:) 8289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8291ac_tool_warned=yes ;; 8292esac 8293 LIPO=$ac_ct_LIPO 8294 fi 8295else 8296 LIPO="$ac_cv_prog_LIPO" 8297fi 8298 8299 if test -n "$ac_tool_prefix"; then 8300 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8301set dummy ${ac_tool_prefix}otool; ac_word=$2 8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303printf %s "checking for $ac_word... " >&6; } 8304if test ${ac_cv_prog_OTOOL+y} 8305then : 8306 printf %s "(cached) " >&6 8307else case e in #( 8308 e) if test -n "$OTOOL"; then 8309 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8310else 8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8312for as_dir in $PATH 8313do 8314 IFS=$as_save_IFS 8315 case $as_dir in #((( 8316 '') as_dir=./ ;; 8317 */) ;; 8318 *) as_dir=$as_dir/ ;; 8319 esac 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327 done 8328IFS=$as_save_IFS 8329 8330fi ;; 8331esac 8332fi 8333OTOOL=$ac_cv_prog_OTOOL 8334if test -n "$OTOOL"; then 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8336printf "%s\n" "$OTOOL" >&6; } 8337else 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339printf "%s\n" "no" >&6; } 8340fi 8341 8342 8343fi 8344if test -z "$ac_cv_prog_OTOOL"; then 8345 ac_ct_OTOOL=$OTOOL 8346 # Extract the first word of "otool", so it can be a program name with args. 8347set dummy otool; ac_word=$2 8348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8349printf %s "checking for $ac_word... " >&6; } 8350if test ${ac_cv_prog_ac_ct_OTOOL+y} 8351then : 8352 printf %s "(cached) " >&6 8353else case e in #( 8354 e) if test -n "$ac_ct_OTOOL"; then 8355 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8356else 8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8358for as_dir in $PATH 8359do 8360 IFS=$as_save_IFS 8361 case $as_dir in #((( 8362 '') as_dir=./ ;; 8363 */) ;; 8364 *) as_dir=$as_dir/ ;; 8365 esac 8366 for ac_exec_ext in '' $ac_executable_extensions; do 8367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8368 ac_cv_prog_ac_ct_OTOOL="otool" 8369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8370 break 2 8371 fi 8372done 8373 done 8374IFS=$as_save_IFS 8375 8376fi ;; 8377esac 8378fi 8379ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8380if test -n "$ac_ct_OTOOL"; then 8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8382printf "%s\n" "$ac_ct_OTOOL" >&6; } 8383else 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8385printf "%s\n" "no" >&6; } 8386fi 8387 8388 if test "x$ac_ct_OTOOL" = x; then 8389 OTOOL=":" 8390 else 8391 case $cross_compiling:$ac_tool_warned in 8392yes:) 8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8394printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8395ac_tool_warned=yes ;; 8396esac 8397 OTOOL=$ac_ct_OTOOL 8398 fi 8399else 8400 OTOOL="$ac_cv_prog_OTOOL" 8401fi 8402 8403 if test -n "$ac_tool_prefix"; then 8404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8405set dummy ${ac_tool_prefix}otool64; ac_word=$2 8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8407printf %s "checking for $ac_word... " >&6; } 8408if test ${ac_cv_prog_OTOOL64+y} 8409then : 8410 printf %s "(cached) " >&6 8411else case e in #( 8412 e) if test -n "$OTOOL64"; then 8413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8414else 8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8416for as_dir in $PATH 8417do 8418 IFS=$as_save_IFS 8419 case $as_dir in #((( 8420 '') as_dir=./ ;; 8421 */) ;; 8422 *) as_dir=$as_dir/ ;; 8423 esac 8424 for ac_exec_ext in '' $ac_executable_extensions; do 8425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8426 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8428 break 2 8429 fi 8430done 8431 done 8432IFS=$as_save_IFS 8433 8434fi ;; 8435esac 8436fi 8437OTOOL64=$ac_cv_prog_OTOOL64 8438if test -n "$OTOOL64"; then 8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8440printf "%s\n" "$OTOOL64" >&6; } 8441else 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443printf "%s\n" "no" >&6; } 8444fi 8445 8446 8447fi 8448if test -z "$ac_cv_prog_OTOOL64"; then 8449 ac_ct_OTOOL64=$OTOOL64 8450 # Extract the first word of "otool64", so it can be a program name with args. 8451set dummy otool64; ac_word=$2 8452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453printf %s "checking for $ac_word... " >&6; } 8454if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8455then : 8456 printf %s "(cached) " >&6 8457else case e in #( 8458 e) if test -n "$ac_ct_OTOOL64"; then 8459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8460else 8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8462for as_dir in $PATH 8463do 8464 IFS=$as_save_IFS 8465 case $as_dir in #((( 8466 '') as_dir=./ ;; 8467 */) ;; 8468 *) as_dir=$as_dir/ ;; 8469 esac 8470 for ac_exec_ext in '' $ac_executable_extensions; do 8471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8472 ac_cv_prog_ac_ct_OTOOL64="otool64" 8473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8474 break 2 8475 fi 8476done 8477 done 8478IFS=$as_save_IFS 8479 8480fi ;; 8481esac 8482fi 8483ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8484if test -n "$ac_ct_OTOOL64"; then 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8486printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8487else 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8489printf "%s\n" "no" >&6; } 8490fi 8491 8492 if test "x$ac_ct_OTOOL64" = x; then 8493 OTOOL64=":" 8494 else 8495 case $cross_compiling:$ac_tool_warned in 8496yes:) 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8498printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8499ac_tool_warned=yes ;; 8500esac 8501 OTOOL64=$ac_ct_OTOOL64 8502 fi 8503else 8504 OTOOL64="$ac_cv_prog_OTOOL64" 8505fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8534printf %s "checking for -single_module linker flag... " >&6; } 8535if test ${lt_cv_apple_cc_single_mod+y} 8536then : 8537 printf %s "(cached) " >&6 8538else case e in #( 8539 e) lt_cv_apple_cc_single_mod=no 8540 if test -z "$LT_MULTI_MODULE"; then 8541 # By default we will add the -single_module flag. You can override 8542 # by either setting the environment variable LT_MULTI_MODULE 8543 # non-empty at configure time, or by adding -multi_module to the 8544 # link flags. 8545 rm -rf libconftest.dylib* 8546 echo "int foo(void){return 1;}" > conftest.c 8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8548-dynamiclib -Wl,-single_module conftest.c" >&5 8549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8551 _lt_result=$? 8552 # If there is a non-empty error log, and "single_module" 8553 # appears in it, assume the flag caused a linker warning 8554 if test -s conftest.err && $GREP single_module conftest.err; then 8555 cat conftest.err >&5 8556 # Otherwise, if the output was created with a 0 exit code from 8557 # the compiler, it worked. 8558 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8559 lt_cv_apple_cc_single_mod=yes 8560 else 8561 cat conftest.err >&5 8562 fi 8563 rm -rf libconftest.dylib* 8564 rm -f conftest.* 8565 fi ;; 8566esac 8567fi 8568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8569printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8570 8571 # Feature test to disable chained fixups since it is not 8572 # compatible with '-undefined dynamic_lookup' 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8574printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8575if test ${lt_cv_support_no_fixup_chains+y} 8576then : 8577 printf %s "(cached) " >&6 8578else case e in #( 8579 e) save_LDFLAGS=$LDFLAGS 8580 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583 8584int 8585main (void) 8586{ 8587 8588 ; 8589 return 0; 8590} 8591_ACEOF 8592if ac_fn_c_try_link "$LINENO" 8593then : 8594 lt_cv_support_no_fixup_chains=yes 8595else case e in #( 8596 e) lt_cv_support_no_fixup_chains=no 8597 ;; 8598esac 8599fi 8600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8601 conftest$ac_exeext conftest.$ac_ext 8602 LDFLAGS=$save_LDFLAGS 8603 8604 ;; 8605esac 8606fi 8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8608printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8609 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8611printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8612if test ${lt_cv_ld_exported_symbols_list+y} 8613then : 8614 printf %s "(cached) " >&6 8615else case e in #( 8616 e) lt_cv_ld_exported_symbols_list=no 8617 save_LDFLAGS=$LDFLAGS 8618 echo "_main" > conftest.sym 8619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622 8623int 8624main (void) 8625{ 8626 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631if ac_fn_c_try_link "$LINENO" 8632then : 8633 lt_cv_ld_exported_symbols_list=yes 8634else case e in #( 8635 e) lt_cv_ld_exported_symbols_list=no ;; 8636esac 8637fi 8638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8639 conftest$ac_exeext conftest.$ac_ext 8640 LDFLAGS=$save_LDFLAGS 8641 ;; 8642esac 8643fi 8644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8645printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8646 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8648printf %s "checking for -force_load linker flag... " >&6; } 8649if test ${lt_cv_ld_force_load+y} 8650then : 8651 printf %s "(cached) " >&6 8652else case e in #( 8653 e) lt_cv_ld_force_load=no 8654 cat > conftest.c << _LT_EOF 8655int forced_loaded() { return 2;} 8656_LT_EOF 8657 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8658 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8659 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8660 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8661 echo "$RANLIB libconftest.a" >&5 8662 $RANLIB libconftest.a 2>&5 8663 cat > conftest.c << _LT_EOF 8664int main(void) { return 0;} 8665_LT_EOF 8666 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8667 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8668 _lt_result=$? 8669 if test -s conftest.err && $GREP force_load conftest.err; then 8670 cat conftest.err >&5 8671 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8672 lt_cv_ld_force_load=yes 8673 else 8674 cat conftest.err >&5 8675 fi 8676 rm -f conftest.err libconftest.a conftest conftest.c 8677 rm -rf conftest.dSYM 8678 ;; 8679esac 8680fi 8681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8682printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8683 case $host_os in 8684 rhapsody* | darwin1.[012]) 8685 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8686 darwin1.*) 8687 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8688 darwin*) 8689 case $MACOSX_DEPLOYMENT_TARGET,$host in 8690 10.[012],*|,*powerpc*-darwin[5-8]*) 8691 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8692 *) 8693 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8694 if test yes = "$lt_cv_support_no_fixup_chains"; then 8695 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8696 fi 8697 ;; 8698 esac 8699 ;; 8700 esac 8701 if test yes = "$lt_cv_apple_cc_single_mod"; then 8702 _lt_dar_single_mod='$single_module' 8703 fi 8704 _lt_dar_needs_single_mod=no 8705 case $host_os in 8706 rhapsody* | darwin1.*) 8707 _lt_dar_needs_single_mod=yes ;; 8708 darwin*) 8709 # When targeting Mac OS X 10.4 (darwin 8) or later, 8710 # -single_module is the default and -multi_module is unsupported. 8711 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8712 # target any OS version that needs -single_module. 8713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8714 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8715 _lt_dar_needs_single_mod=yes ;; 8716 esac 8717 ;; 8718 esac 8719 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8720 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8721 else 8722 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8723 fi 8724 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8725 _lt_dsymutil='~$DSYMUTIL $lib || :' 8726 else 8727 _lt_dsymutil= 8728 fi 8729 ;; 8730 esac 8731 8732# func_munge_path_list VARIABLE PATH 8733# ----------------------------------- 8734# VARIABLE is name of variable containing _space_ separated list of 8735# directories to be munged by the contents of PATH, which is string 8736# having a format: 8737# "DIR[:DIR]:" 8738# string "DIR[ DIR]" will be prepended to VARIABLE 8739# ":DIR[:DIR]" 8740# string "DIR[ DIR]" will be appended to VARIABLE 8741# "DIRP[:DIRP]::[DIRA:]DIRA" 8742# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8743# "DIRA[ DIRA]" will be appended to VARIABLE 8744# "DIR[:DIR]" 8745# VARIABLE will be replaced by "DIR[ DIR]" 8746func_munge_path_list () 8747{ 8748 case x$2 in 8749 x) 8750 ;; 8751 *:) 8752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8753 ;; 8754 x:*) 8755 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8756 ;; 8757 *::*) 8758 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8759 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8760 ;; 8761 *) 8762 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8763 ;; 8764 esac 8765} 8766 8767ac_header= ac_cache= 8768for ac_item in $ac_header_c_list 8769do 8770 if test $ac_cache; then 8771 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8772 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8773 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8774 fi 8775 ac_header= ac_cache= 8776 elif test $ac_header; then 8777 ac_cache=$ac_item 8778 else 8779 ac_header=$ac_item 8780 fi 8781done 8782 8783 8784 8785 8786 8787 8788 8789 8790if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8791then : 8792 8793printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8794 8795fi 8796ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8797" 8798if test "x$ac_cv_header_dlfcn_h" = xyes 8799then : 8800 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8801 8802fi 8803 8804 8805 8806 8807 8808# Set options 8809 8810 8811 8812 enable_dlopen=no 8813 8814 8815 enable_win32_dll=no 8816 8817 8818 # Check whether --enable-shared was given. 8819if test ${enable_shared+y} 8820then : 8821 enableval=$enable_shared; p=${PACKAGE-default} 8822 case $enableval in 8823 yes) enable_shared=yes ;; 8824 no) enable_shared=no ;; 8825 *) 8826 enable_shared=no 8827 # Look at the argument we got. We use all the common list separators. 8828 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8829 for pkg in $enableval; do 8830 IFS=$lt_save_ifs 8831 if test "X$pkg" = "X$p"; then 8832 enable_shared=yes 8833 fi 8834 done 8835 IFS=$lt_save_ifs 8836 ;; 8837 esac 8838else case e in #( 8839 e) enable_shared=yes ;; 8840esac 8841fi 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 # Check whether --enable-static was given. 8852if test ${enable_static+y} 8853then : 8854 enableval=$enable_static; p=${PACKAGE-default} 8855 case $enableval in 8856 yes) enable_static=yes ;; 8857 no) enable_static=no ;; 8858 *) 8859 enable_static=no 8860 # Look at the argument we got. We use all the common list separators. 8861 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8862 for pkg in $enableval; do 8863 IFS=$lt_save_ifs 8864 if test "X$pkg" = "X$p"; then 8865 enable_static=yes 8866 fi 8867 done 8868 IFS=$lt_save_ifs 8869 ;; 8870 esac 8871else case e in #( 8872 e) enable_static=yes ;; 8873esac 8874fi 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 # Check whether --enable-pic was given. 8885if test ${enable_pic+y} 8886then : 8887 enableval=$enable_pic; lt_p=${PACKAGE-default} 8888 case $enableval in 8889 yes|no) pic_mode=$enableval ;; 8890 *) 8891 pic_mode=default 8892 # Look at the argument we got. We use all the common list separators. 8893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8894 for lt_pkg in $enableval; do 8895 IFS=$lt_save_ifs 8896 if test "X$lt_pkg" = "X$lt_p"; then 8897 pic_mode=yes 8898 fi 8899 done 8900 IFS=$lt_save_ifs 8901 ;; 8902 esac 8903else case e in #( 8904 e) # Check whether --with-pic was given. 8905if test ${with_pic+y} 8906then : 8907 withval=$with_pic; lt_p=${PACKAGE-default} 8908 case $withval in 8909 yes|no) pic_mode=$withval ;; 8910 *) 8911 pic_mode=default 8912 # Look at the argument we got. We use all the common list separators. 8913 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8914 for lt_pkg in $withval; do 8915 IFS=$lt_save_ifs 8916 if test "X$lt_pkg" = "X$lt_p"; then 8917 pic_mode=yes 8918 fi 8919 done 8920 IFS=$lt_save_ifs 8921 ;; 8922 esac 8923else case e in #( 8924 e) pic_mode=default ;; 8925esac 8926fi 8927 8928 ;; 8929esac 8930fi 8931 8932 8933 8934 8935 8936 8937 8938 8939 # Check whether --enable-fast-install was given. 8940if test ${enable_fast_install+y} 8941then : 8942 enableval=$enable_fast_install; p=${PACKAGE-default} 8943 case $enableval in 8944 yes) enable_fast_install=yes ;; 8945 no) enable_fast_install=no ;; 8946 *) 8947 enable_fast_install=no 8948 # Look at the argument we got. We use all the common list separators. 8949 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8950 for pkg in $enableval; do 8951 IFS=$lt_save_ifs 8952 if test "X$pkg" = "X$p"; then 8953 enable_fast_install=yes 8954 fi 8955 done 8956 IFS=$lt_save_ifs 8957 ;; 8958 esac 8959else case e in #( 8960 e) enable_fast_install=yes ;; 8961esac 8962fi 8963 8964 8965 8966 8967 8968 8969 8970 8971 shared_archive_member_spec= 8972case $host,$enable_shared in 8973power*-*-aix[5-9]*,yes) 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8975printf %s "checking which variant of shared library versioning to provide... " >&6; } 8976 # Check whether --enable-aix-soname was given. 8977if test ${enable_aix_soname+y} 8978then : 8979 enableval=$enable_aix_soname; case $enableval in 8980 aix|svr4|both) 8981 ;; 8982 *) 8983 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8984 ;; 8985 esac 8986 lt_cv_with_aix_soname=$enable_aix_soname 8987else case e in #( 8988 e) # Check whether --with-aix-soname was given. 8989if test ${with_aix_soname+y} 8990then : 8991 withval=$with_aix_soname; case $withval in 8992 aix|svr4|both) 8993 ;; 8994 *) 8995 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8996 ;; 8997 esac 8998 lt_cv_with_aix_soname=$with_aix_soname 8999else case e in #( 9000 e) if test ${lt_cv_with_aix_soname+y} 9001then : 9002 printf %s "(cached) " >&6 9003else case e in #( 9004 e) lt_cv_with_aix_soname=aix ;; 9005esac 9006fi 9007 ;; 9008esac 9009fi 9010 9011 enable_aix_soname=$lt_cv_with_aix_soname ;; 9012esac 9013fi 9014 9015 with_aix_soname=$enable_aix_soname 9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9017printf "%s\n" "$with_aix_soname" >&6; } 9018 if test aix != "$with_aix_soname"; then 9019 # For the AIX way of multilib, we name the shared archive member 9020 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9021 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9022 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9023 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9024 if test 64 = "${OBJECT_MODE-32}"; then 9025 shared_archive_member_spec=shr_64 9026 else 9027 shared_archive_member_spec=shr 9028 fi 9029 fi 9030 ;; 9031*) 9032 with_aix_soname=aix 9033 ;; 9034esac 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045# This can be used to rebuild libtool when needed 9046LIBTOOL_DEPS=$ltmain 9047 9048# Always use our own libtool. 9049LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080test -z "$LN_S" && LN_S="ln -s" 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095if test -n "${ZSH_VERSION+set}"; then 9096 setopt NO_GLOB_SUBST 9097fi 9098 9099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9100printf %s "checking for objdir... " >&6; } 9101if test ${lt_cv_objdir+y} 9102then : 9103 printf %s "(cached) " >&6 9104else case e in #( 9105 e) rm -f .libs 2>/dev/null 9106mkdir .libs 2>/dev/null 9107if test -d .libs; then 9108 lt_cv_objdir=.libs 9109else 9110 # MS-DOS does not allow filenames that begin with a dot. 9111 lt_cv_objdir=_libs 9112fi 9113rmdir .libs 2>/dev/null ;; 9114esac 9115fi 9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9117printf "%s\n" "$lt_cv_objdir" >&6; } 9118objdir=$lt_cv_objdir 9119 9120 9121 9122 9123 9124printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9125 9126 9127 9128 9129case $host_os in 9130aix3*) 9131 # AIX sometimes has problems with the GCC collect2 program. For some 9132 # reason, if we set the COLLECT_NAMES environment variable, the problems 9133 # vanish in a puff of smoke. 9134 if test set != "${COLLECT_NAMES+set}"; then 9135 COLLECT_NAMES= 9136 export COLLECT_NAMES 9137 fi 9138 ;; 9139esac 9140 9141# Global variables: 9142ofile=libtool 9143can_build_shared=yes 9144 9145# All known linkers require a '.a' archive for static linking (except MSVC and 9146# ICC, which need '.lib'). 9147libext=a 9148 9149with_gnu_ld=$lt_cv_prog_gnu_ld 9150 9151old_CC=$CC 9152old_CFLAGS=$CFLAGS 9153 9154# Set sane defaults for various variables 9155test -z "$CC" && CC=cc 9156test -z "$LTCC" && LTCC=$CC 9157test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9158test -z "$LD" && LD=ld 9159test -z "$ac_objext" && ac_objext=o 9160 9161func_cc_basename $compiler 9162cc_basename=$func_cc_basename_result 9163 9164 9165# Only perform the check for file, if the check method requires it 9166test -z "$MAGIC_CMD" && MAGIC_CMD=file 9167case $deplibs_check_method in 9168file_magic*) 9169 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9171printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9172if test ${lt_cv_path_MAGIC_CMD+y} 9173then : 9174 printf %s "(cached) " >&6 9175else case e in #( 9176 e) case $MAGIC_CMD in 9177[\\/*] | ?:[\\/]*) 9178 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9179 ;; 9180*) 9181 lt_save_MAGIC_CMD=$MAGIC_CMD 9182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9184 for ac_dir in $ac_dummy; do 9185 IFS=$lt_save_ifs 9186 test -z "$ac_dir" && ac_dir=. 9187 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9188 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9189 if test -n "$file_magic_test_file"; then 9190 case $deplibs_check_method in 9191 "file_magic "*) 9192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9193 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9195 $EGREP "$file_magic_regex" > /dev/null; then 9196 : 9197 else 9198 cat <<_LT_EOF 1>&2 9199 9200*** Warning: the command libtool uses to detect shared libraries, 9201*** $file_magic_cmd, produces output that libtool cannot recognize. 9202*** The result is that libtool may fail to recognize shared libraries 9203*** as such. This will affect the creation of libtool libraries that 9204*** depend on shared libraries, but programs linked with such libtool 9205*** libraries will work regardless of this problem. Nevertheless, you 9206*** may want to report the problem to your system manager and/or to 9207*** bug-libtool@gnu.org 9208 9209_LT_EOF 9210 fi ;; 9211 esac 9212 fi 9213 break 9214 fi 9215 done 9216 IFS=$lt_save_ifs 9217 MAGIC_CMD=$lt_save_MAGIC_CMD 9218 ;; 9219esac ;; 9220esac 9221fi 9222 9223MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9224if test -n "$MAGIC_CMD"; then 9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9226printf "%s\n" "$MAGIC_CMD" >&6; } 9227else 9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9229printf "%s\n" "no" >&6; } 9230fi 9231 9232 9233 9234 9235 9236if test -z "$lt_cv_path_MAGIC_CMD"; then 9237 if test -n "$ac_tool_prefix"; then 9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9239printf %s "checking for file... " >&6; } 9240if test ${lt_cv_path_MAGIC_CMD+y} 9241then : 9242 printf %s "(cached) " >&6 9243else case e in #( 9244 e) case $MAGIC_CMD in 9245[\\/*] | ?:[\\/]*) 9246 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9247 ;; 9248*) 9249 lt_save_MAGIC_CMD=$MAGIC_CMD 9250 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9252 for ac_dir in $ac_dummy; do 9253 IFS=$lt_save_ifs 9254 test -z "$ac_dir" && ac_dir=. 9255 if test -f "$ac_dir/file"; then 9256 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9257 if test -n "$file_magic_test_file"; then 9258 case $deplibs_check_method in 9259 "file_magic "*) 9260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9261 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9263 $EGREP "$file_magic_regex" > /dev/null; then 9264 : 9265 else 9266 cat <<_LT_EOF 1>&2 9267 9268*** Warning: the command libtool uses to detect shared libraries, 9269*** $file_magic_cmd, produces output that libtool cannot recognize. 9270*** The result is that libtool may fail to recognize shared libraries 9271*** as such. This will affect the creation of libtool libraries that 9272*** depend on shared libraries, but programs linked with such libtool 9273*** libraries will work regardless of this problem. Nevertheless, you 9274*** may want to report the problem to your system manager and/or to 9275*** bug-libtool@gnu.org 9276 9277_LT_EOF 9278 fi ;; 9279 esac 9280 fi 9281 break 9282 fi 9283 done 9284 IFS=$lt_save_ifs 9285 MAGIC_CMD=$lt_save_MAGIC_CMD 9286 ;; 9287esac ;; 9288esac 9289fi 9290 9291MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9292if test -n "$MAGIC_CMD"; then 9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9294printf "%s\n" "$MAGIC_CMD" >&6; } 9295else 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9297printf "%s\n" "no" >&6; } 9298fi 9299 9300 9301 else 9302 MAGIC_CMD=: 9303 fi 9304fi 9305 9306 fi 9307 ;; 9308esac 9309 9310# Use C for the default configuration in the libtool script 9311 9312lt_save_CC=$CC 9313ac_ext=c 9314ac_cpp='$CPP $CPPFLAGS' 9315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9317ac_compiler_gnu=$ac_cv_c_compiler_gnu 9318 9319 9320# Source file extension for C test sources. 9321ac_ext=c 9322 9323# Object file extension for compiled C test sources. 9324objext=o 9325objext=$objext 9326 9327# Code to be used in simple compile tests 9328lt_simple_compile_test_code="int some_variable = 0;" 9329 9330# Code to be used in simple link tests 9331lt_simple_link_test_code='int main(void){return(0);}' 9332 9333 9334 9335 9336 9337 9338 9339# If no C compiler was specified, use CC. 9340LTCC=${LTCC-"$CC"} 9341 9342# If no C compiler flags were specified, use CFLAGS. 9343LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9344 9345# Allow CC to be a program name with arguments. 9346compiler=$CC 9347 9348# Save the default compiler, since it gets overwritten when the other 9349# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9350compiler_DEFAULT=$CC 9351 9352# save warnings/boilerplate of simple test code 9353ac_outfile=conftest.$ac_objext 9354echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9356_lt_compiler_boilerplate=`cat conftest.err` 9357$RM conftest* 9358 9359ac_outfile=conftest.$ac_objext 9360echo "$lt_simple_link_test_code" >conftest.$ac_ext 9361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9362_lt_linker_boilerplate=`cat conftest.err` 9363$RM -r conftest* 9364 9365 9366## CAVEAT EMPTOR: 9367## There is no encapsulation within the following macros, do not change 9368## the running order or otherwise move them around unless you know exactly 9369## what you are doing... 9370if test -n "$compiler"; then 9371 9372lt_prog_compiler_no_builtin_flag= 9373 9374if test yes = "$GCC"; then 9375 case $cc_basename in 9376 nvcc*) 9377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9378 *) 9379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9380 esac 9381 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9383printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9384if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9385then : 9386 printf %s "(cached) " >&6 9387else case e in #( 9388 e) lt_cv_prog_compiler_rtti_exceptions=no 9389 ac_outfile=conftest.$ac_objext 9390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9391 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9392 # Insert the option either (1) after the last *FLAGS variable, or 9393 # (2) before a word containing "conftest.", or (3) at the end. 9394 # Note that $ac_compile itself does not contain backslashes and begins 9395 # with a dollar sign (not a hyphen), so the echo should work correctly. 9396 # The option is referenced via a variable to avoid confusing sed. 9397 lt_compile=`echo "$ac_compile" | $SED \ 9398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9400 -e 's:$: $lt_compiler_flag:'` 9401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9402 (eval "$lt_compile" 2>conftest.err) 9403 ac_status=$? 9404 cat conftest.err >&5 9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9406 if (exit $ac_status) && test -s "$ac_outfile"; then 9407 # The compiler can only warn and ignore the option if not recognized 9408 # So say no if there are warnings other than the usual output. 9409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9412 lt_cv_prog_compiler_rtti_exceptions=yes 9413 fi 9414 fi 9415 $RM conftest* 9416 ;; 9417esac 9418fi 9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9420printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9421 9422if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9423 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9424else 9425 : 9426fi 9427 9428fi 9429 9430 9431 9432 9433 9434 9435 lt_prog_compiler_wl= 9436lt_prog_compiler_pic= 9437lt_prog_compiler_static= 9438 9439 9440 if test yes = "$GCC"; then 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_static='-static' 9443 9444 case $host_os in 9445 aix*) 9446 # All AIX code is PIC. 9447 if test ia64 = "$host_cpu"; then 9448 # AIX 5 now supports IA64 processor 9449 lt_prog_compiler_static='-Bstatic' 9450 fi 9451 lt_prog_compiler_pic='-fPIC' 9452 ;; 9453 9454 amigaos*) 9455 case $host_cpu in 9456 powerpc) 9457 # see comment about AmigaOS4 .so support 9458 lt_prog_compiler_pic='-fPIC' 9459 ;; 9460 m68k) 9461 # FIXME: we need at least 68020 code to build shared libraries, but 9462 # adding the '-m68020' flag to GCC prevents building anything better, 9463 # like '-m68040'. 9464 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9465 ;; 9466 esac 9467 ;; 9468 9469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9470 # PIC is the default for these OSes. 9471 ;; 9472 9473 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9474 # This hack is so that the source file can tell whether it is being 9475 # built for inclusion in a dll (and should export symbols for example). 9476 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9477 # (--disable-auto-import) libraries 9478 lt_prog_compiler_pic='-DDLL_EXPORT' 9479 case $host_os in 9480 os2*) 9481 lt_prog_compiler_static='$wl-static' 9482 ;; 9483 esac 9484 ;; 9485 9486 darwin* | rhapsody*) 9487 # PIC is the default on this platform 9488 # Common symbols not allowed in MH_DYLIB files 9489 lt_prog_compiler_pic='-fno-common' 9490 ;; 9491 9492 haiku*) 9493 # PIC is the default for Haiku. 9494 # The "-static" flag exists, but is broken. 9495 lt_prog_compiler_static= 9496 ;; 9497 9498 hpux*) 9499 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9500 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9501 # sets the default TLS model and affects inlining. 9502 case $host_cpu in 9503 hppa*64*) 9504 # +Z the default 9505 ;; 9506 *) 9507 lt_prog_compiler_pic='-fPIC' 9508 ;; 9509 esac 9510 ;; 9511 9512 interix[3-9]*) 9513 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9514 # Instead, we relocate shared libraries at runtime. 9515 ;; 9516 9517 msdosdjgpp*) 9518 # Just because we use GCC doesn't mean we suddenly get shared libraries 9519 # on systems that don't support them. 9520 lt_prog_compiler_can_build_shared=no 9521 enable_shared=no 9522 ;; 9523 9524 *nto* | *qnx*) 9525 # QNX uses GNU C++, but need to define -shared option too, otherwise 9526 # it will coredump. 9527 lt_prog_compiler_pic='-fPIC -shared' 9528 ;; 9529 9530 sysv4*MP*) 9531 if test -d /usr/nec; then 9532 lt_prog_compiler_pic=-Kconform_pic 9533 fi 9534 ;; 9535 9536 *) 9537 lt_prog_compiler_pic='-fPIC' 9538 ;; 9539 esac 9540 9541 case $cc_basename in 9542 nvcc*) # Cuda Compiler Driver 2.2 9543 lt_prog_compiler_wl='-Xlinker ' 9544 if test -n "$lt_prog_compiler_pic"; then 9545 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9546 fi 9547 ;; 9548 esac 9549 else 9550 # PORTME Check for flag to pass linker flags through the system compiler. 9551 case $host_os in 9552 aix*) 9553 lt_prog_compiler_wl='-Wl,' 9554 if test ia64 = "$host_cpu"; then 9555 # AIX 5 now supports IA64 processor 9556 lt_prog_compiler_static='-Bstatic' 9557 else 9558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9559 fi 9560 ;; 9561 9562 darwin* | rhapsody*) 9563 # PIC is the default on this platform 9564 # Common symbols not allowed in MH_DYLIB files 9565 lt_prog_compiler_pic='-fno-common' 9566 case $cc_basename in 9567 nagfor*) 9568 # NAG Fortran compiler 9569 lt_prog_compiler_wl='-Wl,-Wl,,' 9570 lt_prog_compiler_pic='-PIC' 9571 lt_prog_compiler_static='-Bstatic' 9572 ;; 9573 esac 9574 ;; 9575 9576 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9577 # This hack is so that the source file can tell whether it is being 9578 # built for inclusion in a dll (and should export symbols for example). 9579 lt_prog_compiler_pic='-DDLL_EXPORT' 9580 case $host_os in 9581 os2*) 9582 lt_prog_compiler_static='$wl-static' 9583 ;; 9584 esac 9585 ;; 9586 9587 hpux9* | hpux10* | hpux11*) 9588 lt_prog_compiler_wl='-Wl,' 9589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9590 # not for PA HP-UX. 9591 case $host_cpu in 9592 hppa*64*|ia64*) 9593 # +Z the default 9594 ;; 9595 *) 9596 lt_prog_compiler_pic='+Z' 9597 ;; 9598 esac 9599 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9600 lt_prog_compiler_static='$wl-a ${wl}archive' 9601 ;; 9602 9603 irix5* | irix6* | nonstopux*) 9604 lt_prog_compiler_wl='-Wl,' 9605 # PIC (with -KPIC) is the default. 9606 lt_prog_compiler_static='-non_shared' 9607 ;; 9608 9609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9610 case $cc_basename in 9611 # old Intel for x86_64, which still supported -KPIC. 9612 ecc*) 9613 lt_prog_compiler_wl='-Wl,' 9614 lt_prog_compiler_pic='-KPIC' 9615 lt_prog_compiler_static='-static' 9616 ;; 9617 *flang* | ftn | f18* | f95*) 9618 # Flang compiler. 9619 lt_prog_compiler_wl='-Wl,' 9620 lt_prog_compiler_pic='-fPIC' 9621 lt_prog_compiler_static='-static' 9622 ;; 9623 # icc used to be incompatible with GCC. 9624 # ICC 10 doesn't accept -KPIC any more. 9625 icc* | ifort*) 9626 lt_prog_compiler_wl='-Wl,' 9627 lt_prog_compiler_pic='-fPIC' 9628 lt_prog_compiler_static='-static' 9629 ;; 9630 # Lahey Fortran 8.1. 9631 lf95*) 9632 lt_prog_compiler_wl='-Wl,' 9633 lt_prog_compiler_pic='--shared' 9634 lt_prog_compiler_static='--static' 9635 ;; 9636 nagfor*) 9637 # NAG Fortran compiler 9638 lt_prog_compiler_wl='-Wl,-Wl,,' 9639 lt_prog_compiler_pic='-PIC' 9640 lt_prog_compiler_static='-Bstatic' 9641 ;; 9642 tcc*) 9643 # Fabrice Bellard et al's Tiny C Compiler 9644 lt_prog_compiler_wl='-Wl,' 9645 lt_prog_compiler_pic='-fPIC' 9646 lt_prog_compiler_static='-static' 9647 ;; 9648 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9649 # Portland Group compilers (*not* the Pentium gcc compiler, 9650 # which looks to be a dead project) 9651 lt_prog_compiler_wl='-Wl,' 9652 lt_prog_compiler_pic='-fpic' 9653 lt_prog_compiler_static='-Bstatic' 9654 ;; 9655 ccc*) 9656 lt_prog_compiler_wl='-Wl,' 9657 # All Alpha code is PIC. 9658 lt_prog_compiler_static='-non_shared' 9659 ;; 9660 xl* | bgxl* | bgf* | mpixl*) 9661 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9662 lt_prog_compiler_wl='-Wl,' 9663 lt_prog_compiler_pic='-qpic' 9664 lt_prog_compiler_static='-qstaticlink' 9665 ;; 9666 *) 9667 case `$CC -V 2>&1 | $SED 5q` in 9668 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9669 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9670 lt_prog_compiler_pic='-KPIC' 9671 lt_prog_compiler_static='-Bstatic' 9672 lt_prog_compiler_wl='' 9673 ;; 9674 *Sun\ F* | *Sun*Fortran*) 9675 lt_prog_compiler_pic='-KPIC' 9676 lt_prog_compiler_static='-Bstatic' 9677 lt_prog_compiler_wl='-Qoption ld ' 9678 ;; 9679 *Sun\ C*) 9680 # Sun C 5.9 9681 lt_prog_compiler_pic='-KPIC' 9682 lt_prog_compiler_static='-Bstatic' 9683 lt_prog_compiler_wl='-Wl,' 9684 ;; 9685 *Intel*\ [CF]*Compiler*) 9686 lt_prog_compiler_wl='-Wl,' 9687 lt_prog_compiler_pic='-fPIC' 9688 lt_prog_compiler_static='-static' 9689 ;; 9690 *Portland\ Group*) 9691 lt_prog_compiler_wl='-Wl,' 9692 lt_prog_compiler_pic='-fpic' 9693 lt_prog_compiler_static='-Bstatic' 9694 ;; 9695 esac 9696 ;; 9697 esac 9698 ;; 9699 9700 newsos6) 9701 lt_prog_compiler_pic='-KPIC' 9702 lt_prog_compiler_static='-Bstatic' 9703 ;; 9704 9705 *-mlibc) 9706 lt_prog_compiler_wl='-Wl,' 9707 lt_prog_compiler_pic='-fPIC' 9708 lt_prog_compiler_static='-static' 9709 ;; 9710 9711 *nto* | *qnx*) 9712 # QNX uses GNU C++, but need to define -shared option too, otherwise 9713 # it will coredump. 9714 lt_prog_compiler_pic='-fPIC -shared' 9715 ;; 9716 9717 osf3* | osf4* | osf5*) 9718 lt_prog_compiler_wl='-Wl,' 9719 # All OSF/1 code is PIC. 9720 lt_prog_compiler_static='-non_shared' 9721 ;; 9722 9723 rdos*) 9724 lt_prog_compiler_static='-non_shared' 9725 ;; 9726 9727 serenity*) 9728 ;; 9729 9730 solaris*) 9731 lt_prog_compiler_pic='-KPIC' 9732 lt_prog_compiler_static='-Bstatic' 9733 case $cc_basename in 9734 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9735 lt_prog_compiler_wl='-Qoption ld ';; 9736 *) 9737 lt_prog_compiler_wl='-Wl,';; 9738 esac 9739 ;; 9740 9741 sunos4*) 9742 lt_prog_compiler_wl='-Qoption ld ' 9743 lt_prog_compiler_pic='-PIC' 9744 lt_prog_compiler_static='-Bstatic' 9745 ;; 9746 9747 sysv4 | sysv4.2uw2* | sysv4.3*) 9748 lt_prog_compiler_wl='-Wl,' 9749 lt_prog_compiler_pic='-KPIC' 9750 lt_prog_compiler_static='-Bstatic' 9751 ;; 9752 9753 sysv4*MP*) 9754 if test -d /usr/nec; then 9755 lt_prog_compiler_pic='-Kconform_pic' 9756 lt_prog_compiler_static='-Bstatic' 9757 fi 9758 ;; 9759 9760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9761 lt_prog_compiler_wl='-Wl,' 9762 lt_prog_compiler_pic='-KPIC' 9763 lt_prog_compiler_static='-Bstatic' 9764 ;; 9765 9766 unicos*) 9767 lt_prog_compiler_wl='-Wl,' 9768 lt_prog_compiler_can_build_shared=no 9769 ;; 9770 9771 uts4*) 9772 lt_prog_compiler_pic='-pic' 9773 lt_prog_compiler_static='-Bstatic' 9774 ;; 9775 9776 *) 9777 lt_prog_compiler_can_build_shared=no 9778 ;; 9779 esac 9780 fi 9781 9782case $host_os in 9783 # For platforms that do not support PIC, -DPIC is meaningless: 9784 *djgpp*) 9785 lt_prog_compiler_pic= 9786 ;; 9787 *) 9788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9789 ;; 9790esac 9791 9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9793printf %s "checking for $compiler option to produce PIC... " >&6; } 9794if test ${lt_cv_prog_compiler_pic+y} 9795then : 9796 printf %s "(cached) " >&6 9797else case e in #( 9798 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9799esac 9800fi 9801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9802printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9803lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9804 9805# 9806# Check to make sure the PIC flag actually works. 9807# 9808if test -n "$lt_prog_compiler_pic"; then 9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9810printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9811if test ${lt_cv_prog_compiler_pic_works+y} 9812then : 9813 printf %s "(cached) " >&6 9814else case e in #( 9815 e) lt_cv_prog_compiler_pic_works=no 9816 ac_outfile=conftest.$ac_objext 9817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9818 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9819 # Insert the option either (1) after the last *FLAGS variable, or 9820 # (2) before a word containing "conftest.", or (3) at the end. 9821 # Note that $ac_compile itself does not contain backslashes and begins 9822 # with a dollar sign (not a hyphen), so the echo should work correctly. 9823 # The option is referenced via a variable to avoid confusing sed. 9824 lt_compile=`echo "$ac_compile" | $SED \ 9825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9827 -e 's:$: $lt_compiler_flag:'` 9828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9829 (eval "$lt_compile" 2>conftest.err) 9830 ac_status=$? 9831 cat conftest.err >&5 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 if (exit $ac_status) && test -s "$ac_outfile"; then 9834 # The compiler can only warn and ignore the option if not recognized 9835 # So say no if there are warnings other than the usual output. 9836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9839 lt_cv_prog_compiler_pic_works=yes 9840 fi 9841 fi 9842 $RM conftest* 9843 ;; 9844esac 9845fi 9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9847printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9848 9849if test yes = "$lt_cv_prog_compiler_pic_works"; then 9850 case $lt_prog_compiler_pic in 9851 "" | " "*) ;; 9852 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9853 esac 9854else 9855 lt_prog_compiler_pic= 9856 lt_prog_compiler_can_build_shared=no 9857fi 9858 9859fi 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871# 9872# Check to make sure the static flag actually works. 9873# 9874wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9876printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9877if test ${lt_cv_prog_compiler_static_works+y} 9878then : 9879 printf %s "(cached) " >&6 9880else case e in #( 9881 e) lt_cv_prog_compiler_static_works=no 9882 save_LDFLAGS=$LDFLAGS 9883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9884 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9886 # The linker can only warn and ignore the option if not recognized 9887 # So say no if there are warnings 9888 if test -s conftest.err; then 9889 # Append any errors to the config.log. 9890 cat conftest.err 1>&5 9891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9893 if diff conftest.exp conftest.er2 >/dev/null; then 9894 lt_cv_prog_compiler_static_works=yes 9895 fi 9896 else 9897 lt_cv_prog_compiler_static_works=yes 9898 fi 9899 fi 9900 $RM -r conftest* 9901 LDFLAGS=$save_LDFLAGS 9902 ;; 9903esac 9904fi 9905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9906printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9907 9908if test yes = "$lt_cv_prog_compiler_static_works"; then 9909 : 9910else 9911 lt_prog_compiler_static= 9912fi 9913 9914 9915 9916 9917 9918 9919 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9921printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9922if test ${lt_cv_prog_compiler_c_o+y} 9923then : 9924 printf %s "(cached) " >&6 9925else case e in #( 9926 e) lt_cv_prog_compiler_c_o=no 9927 $RM -r conftest 2>/dev/null 9928 mkdir conftest 9929 cd conftest 9930 mkdir out 9931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9932 9933 lt_compiler_flag="-o out/conftest2.$ac_objext" 9934 # Insert the option either (1) after the last *FLAGS variable, or 9935 # (2) before a word containing "conftest.", or (3) at the end. 9936 # Note that $ac_compile itself does not contain backslashes and begins 9937 # with a dollar sign (not a hyphen), so the echo should work correctly. 9938 lt_compile=`echo "$ac_compile" | $SED \ 9939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9941 -e 's:$: $lt_compiler_flag:'` 9942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9943 (eval "$lt_compile" 2>out/conftest.err) 9944 ac_status=$? 9945 cat out/conftest.err >&5 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9947 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9948 then 9949 # The compiler can only warn and ignore the option if not recognized 9950 # So say no if there are warnings 9951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9954 lt_cv_prog_compiler_c_o=yes 9955 fi 9956 fi 9957 chmod u+w . 2>&5 9958 $RM conftest* 9959 # SGI C++ compiler will create directory out/ii_files/ for 9960 # template instantiation 9961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9962 $RM out/* && rmdir out 9963 cd .. 9964 $RM -r conftest 9965 $RM conftest* 9966 ;; 9967esac 9968fi 9969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9970printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9971 9972 9973 9974 9975 9976 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9978printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9979if test ${lt_cv_prog_compiler_c_o+y} 9980then : 9981 printf %s "(cached) " >&6 9982else case e in #( 9983 e) lt_cv_prog_compiler_c_o=no 9984 $RM -r conftest 2>/dev/null 9985 mkdir conftest 9986 cd conftest 9987 mkdir out 9988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9989 9990 lt_compiler_flag="-o out/conftest2.$ac_objext" 9991 # Insert the option either (1) after the last *FLAGS variable, or 9992 # (2) before a word containing "conftest.", or (3) at the end. 9993 # Note that $ac_compile itself does not contain backslashes and begins 9994 # with a dollar sign (not a hyphen), so the echo should work correctly. 9995 lt_compile=`echo "$ac_compile" | $SED \ 9996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9998 -e 's:$: $lt_compiler_flag:'` 9999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10000 (eval "$lt_compile" 2>out/conftest.err) 10001 ac_status=$? 10002 cat out/conftest.err >&5 10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10004 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10005 then 10006 # The compiler can only warn and ignore the option if not recognized 10007 # So say no if there are warnings 10008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10011 lt_cv_prog_compiler_c_o=yes 10012 fi 10013 fi 10014 chmod u+w . 2>&5 10015 $RM conftest* 10016 # SGI C++ compiler will create directory out/ii_files/ for 10017 # template instantiation 10018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10019 $RM out/* && rmdir out 10020 cd .. 10021 $RM -r conftest 10022 $RM conftest* 10023 ;; 10024esac 10025fi 10026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10027printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10028 10029 10030 10031 10032hard_links=nottested 10033if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10034 # do not overwrite the value of need_locks provided by the user 10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10036printf %s "checking if we can lock with hard links... " >&6; } 10037 hard_links=yes 10038 $RM conftest* 10039 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10040 touch conftest.a 10041 ln conftest.a conftest.b 2>&5 || hard_links=no 10042 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10044printf "%s\n" "$hard_links" >&6; } 10045 if test no = "$hard_links"; then 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10047printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10048 need_locks=warn 10049 fi 10050else 10051 need_locks=no 10052fi 10053 10054 10055 10056 10057 10058 10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10060printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10061 10062 runpath_var= 10063 allow_undefined_flag= 10064 always_export_symbols=no 10065 archive_cmds= 10066 archive_expsym_cmds= 10067 compiler_needs_object=no 10068 enable_shared_with_static_runtimes=no 10069 export_dynamic_flag_spec= 10070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10071 hardcode_automatic=no 10072 hardcode_direct=no 10073 hardcode_direct_absolute=no 10074 hardcode_libdir_flag_spec= 10075 hardcode_libdir_separator= 10076 hardcode_minus_L=no 10077 hardcode_shlibpath_var=unsupported 10078 inherit_rpath=no 10079 link_all_deplibs=unknown 10080 module_cmds= 10081 module_expsym_cmds= 10082 old_archive_from_new_cmds= 10083 old_archive_from_expsyms_cmds= 10084 thread_safe_flag_spec= 10085 whole_archive_flag_spec= 10086 # include_expsyms should be a list of space-separated symbols to be *always* 10087 # included in the symbol list 10088 include_expsyms= 10089 # exclude_expsyms can be an extended regexp of symbols to exclude 10090 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10091 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10092 # as well as any symbol that contains 'd'. 10093 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10095 # platforms (ab)use it in PIC code, but their linkers get confused if 10096 # the symbol is explicitly referenced. Since portable code cannot 10097 # rely on this symbol name, it's probably fine to never include it in 10098 # preloaded symbol tables. 10099 # Exclude shared library initialization/finalization symbols. 10100 extract_expsyms_cmds= 10101 10102 case $host_os in 10103 cygwin* | mingw* | windows* | pw32* | cegcc*) 10104 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10105 # When not using gcc, we currently assume that we are using 10106 # Microsoft Visual C++ or Intel C++ Compiler. 10107 if test yes != "$GCC"; then 10108 with_gnu_ld=no 10109 fi 10110 ;; 10111 interix*) 10112 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10113 with_gnu_ld=yes 10114 ;; 10115 esac 10116 10117 ld_shlibs=yes 10118 10119 # On some targets, GNU ld is compatible enough with the native linker 10120 # that we're better off using the native interface for both. 10121 lt_use_gnu_ld_interface=no 10122 if test yes = "$with_gnu_ld"; then 10123 case $host_os in 10124 aix*) 10125 # The AIX port of GNU ld has always aspired to compatibility 10126 # with the native linker. However, as the warning in the GNU ld 10127 # block says, versions before 2.19.5* couldn't really create working 10128 # shared libraries, regardless of the interface used. 10129 case `$LD -v 2>&1` in 10130 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10131 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10132 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10133 *) 10134 lt_use_gnu_ld_interface=yes 10135 ;; 10136 esac 10137 ;; 10138 *) 10139 lt_use_gnu_ld_interface=yes 10140 ;; 10141 esac 10142 fi 10143 10144 if test yes = "$lt_use_gnu_ld_interface"; then 10145 # If archive_cmds runs LD, not CC, wlarc should be empty 10146 wlarc='$wl' 10147 10148 # Set some defaults for GNU ld with shared library support. These 10149 # are reset later if shared libraries are not supported. Putting them 10150 # here allows them to be overridden if necessary. 10151 runpath_var=LD_RUN_PATH 10152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10153 export_dynamic_flag_spec='$wl--export-dynamic' 10154 # ancient GNU ld didn't support --whole-archive et. al. 10155 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10156 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10157 else 10158 whole_archive_flag_spec= 10159 fi 10160 supports_anon_versioning=no 10161 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10162 *GNU\ gold*) supports_anon_versioning=yes ;; 10163 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10166 *\ 2.11.*) ;; # other 2.11 versions 10167 *) supports_anon_versioning=yes ;; 10168 esac 10169 10170 # See if GNU ld supports shared libraries. 10171 case $host_os in 10172 aix[3-9]*) 10173 # On AIX/PPC, the GNU linker is very broken 10174 if test ia64 != "$host_cpu"; then 10175 ld_shlibs=no 10176 cat <<_LT_EOF 1>&2 10177 10178*** Warning: the GNU linker, at least up to release 2.19, is reported 10179*** to be unable to reliably create shared libraries on AIX. 10180*** Therefore, libtool is disabling shared libraries support. If you 10181*** really care for shared libraries, you may want to install binutils 10182*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10183*** You will then need to restart the configuration process. 10184 10185_LT_EOF 10186 fi 10187 ;; 10188 10189 amigaos*) 10190 case $host_cpu in 10191 powerpc) 10192 # see comment about AmigaOS4 .so support 10193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10194 archive_expsym_cmds='' 10195 ;; 10196 m68k) 10197 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)' 10198 hardcode_libdir_flag_spec='-L$libdir' 10199 hardcode_minus_L=yes 10200 ;; 10201 esac 10202 ;; 10203 10204 beos*) 10205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10206 allow_undefined_flag=unsupported 10207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10208 # support --undefined. This deserves some investigation. FIXME 10209 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10210 else 10211 ld_shlibs=no 10212 fi 10213 ;; 10214 10215 cygwin* | mingw* | windows* | pw32* | cegcc*) 10216 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10217 # as there is no search path for DLLs. 10218 hardcode_libdir_flag_spec='-L$libdir' 10219 export_dynamic_flag_spec='$wl--export-all-symbols' 10220 allow_undefined_flag=unsupported 10221 always_export_symbols=no 10222 enable_shared_with_static_runtimes=yes 10223 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' 10224 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10225 file_list_spec='@' 10226 10227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10229 # If the export-symbols file already is a .def file, use it as 10230 # is; otherwise, prepend EXPORTS... 10231 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10232 cp $export_symbols $output_objdir/$soname.def; 10233 else 10234 echo EXPORTS > $output_objdir/$soname.def; 10235 cat $export_symbols >> $output_objdir/$soname.def; 10236 fi~ 10237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10238 else 10239 ld_shlibs=no 10240 fi 10241 ;; 10242 10243 haiku*) 10244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10245 link_all_deplibs=no 10246 ;; 10247 10248 os2*) 10249 hardcode_libdir_flag_spec='-L$libdir' 10250 hardcode_minus_L=yes 10251 allow_undefined_flag=unsupported 10252 shrext_cmds=.dll 10253 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10256 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10257 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10259 emximp -o $lib $output_objdir/$libname.def' 10260 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10261 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10262 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10263 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10264 prefix_cmds="$SED"~ 10265 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10266 prefix_cmds="$prefix_cmds -e 1d"; 10267 fi~ 10268 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10269 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10271 emximp -o $lib $output_objdir/$libname.def' 10272 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10273 enable_shared_with_static_runtimes=yes 10274 file_list_spec='@' 10275 ;; 10276 10277 interix[3-9]*) 10278 hardcode_direct=no 10279 hardcode_shlibpath_var=no 10280 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10281 export_dynamic_flag_spec='$wl-E' 10282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10283 # Instead, shared libraries are loaded at an image base (0x10000000 by 10284 # default) and relocated if they conflict, which is a slow very memory 10285 # consuming and fragmenting process. To avoid this, we pick a random, 10286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10287 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10289 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' 10290 ;; 10291 10292 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10293 tmp_diet=no 10294 if test linux-dietlibc = "$host_os"; then 10295 case $cc_basename in 10296 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10297 esac 10298 fi 10299 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10300 && test no = "$tmp_diet" 10301 then 10302 tmp_addflag=' $pic_flag' 10303 tmp_sharedflag='-shared' 10304 case $cc_basename,$host_cpu in 10305 pgcc*) # Portland Group C compiler 10306 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' 10307 tmp_addflag=' $pic_flag' 10308 ;; 10309 pgf77* | pgf90* | pgf95* | pgfortran*) 10310 # Portland Group f77 and f90 compilers 10311 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' 10312 tmp_addflag=' $pic_flag -Mnomain' ;; 10313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10314 tmp_addflag=' -i_dynamic' ;; 10315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10316 tmp_addflag=' -i_dynamic -nofor_main' ;; 10317 ifc* | ifort*) # Intel Fortran compiler 10318 tmp_addflag=' -nofor_main' ;; 10319 lf95*) # Lahey Fortran 8.1 10320 whole_archive_flag_spec= 10321 tmp_sharedflag='--shared' ;; 10322 nagfor*) # NAGFOR 5.3 10323 tmp_sharedflag='-Wl,-shared' ;; 10324 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10325 tmp_sharedflag='-qmkshrobj' 10326 tmp_addflag= ;; 10327 nvcc*) # Cuda Compiler Driver 2.2 10328 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' 10329 compiler_needs_object=yes 10330 ;; 10331 esac 10332 case `$CC -V 2>&1 | $SED 5q` in 10333 *Sun\ C*) # Sun C 5.9 10334 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' 10335 compiler_needs_object=yes 10336 tmp_sharedflag='-G' ;; 10337 *Sun\ F*) # Sun Fortran 8.3 10338 tmp_sharedflag='-G' ;; 10339 esac 10340 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10341 10342 if test yes = "$supports_anon_versioning"; then 10343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10344 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10345 echo "local: *; };" >> $output_objdir/$libname.ver~ 10346 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10347 fi 10348 10349 case $cc_basename in 10350 tcc*) 10351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10352 export_dynamic_flag_spec='-rdynamic' 10353 ;; 10354 xlf* | bgf* | bgxlf* | mpixlf*) 10355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10358 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10359 if test yes = "$supports_anon_versioning"; then 10360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10361 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10362 echo "local: *; };" >> $output_objdir/$libname.ver~ 10363 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10364 fi 10365 ;; 10366 esac 10367 else 10368 ld_shlibs=no 10369 fi 10370 ;; 10371 10372 *-mlibc) 10373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10375 ;; 10376 10377 netbsd* | netbsdelf*-gnu) 10378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10379 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10380 wlarc= 10381 else 10382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10383 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10384 fi 10385 ;; 10386 10387 solaris*) 10388 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10389 ld_shlibs=no 10390 cat <<_LT_EOF 1>&2 10391 10392*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10393*** create shared libraries on Solaris systems. Therefore, libtool 10394*** is disabling shared libraries support. We urge you to upgrade GNU 10395*** binutils to release 2.9.1 or newer. Another option is to modify 10396*** your PATH or compiler configuration so that the native linker is 10397*** used, and then restart. 10398 10399_LT_EOF 10400 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10402 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10403 else 10404 ld_shlibs=no 10405 fi 10406 ;; 10407 10408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10409 case `$LD -v 2>&1` in 10410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10411 ld_shlibs=no 10412 cat <<_LT_EOF 1>&2 10413 10414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10415*** reliably create shared libraries on SCO systems. Therefore, libtool 10416*** is disabling shared libraries support. We urge you to upgrade GNU 10417*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10418*** your PATH or compiler configuration so that the native linker is 10419*** used, and then restart. 10420 10421_LT_EOF 10422 ;; 10423 *) 10424 # For security reasons, it is highly recommended that you always 10425 # use absolute paths for naming shared libraries, and exclude the 10426 # DT_RUNPATH tag from executables and libraries. But doing so 10427 # requires that you compile everything twice, which is a pain. 10428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10432 else 10433 ld_shlibs=no 10434 fi 10435 ;; 10436 esac 10437 ;; 10438 10439 sunos4*) 10440 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10441 wlarc= 10442 hardcode_direct=yes 10443 hardcode_shlibpath_var=no 10444 ;; 10445 10446 *) 10447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10450 else 10451 ld_shlibs=no 10452 fi 10453 ;; 10454 esac 10455 10456 if test no = "$ld_shlibs"; then 10457 runpath_var= 10458 hardcode_libdir_flag_spec= 10459 export_dynamic_flag_spec= 10460 whole_archive_flag_spec= 10461 fi 10462 else 10463 # PORTME fill in a description of your system's linker (not GNU ld) 10464 case $host_os in 10465 aix3*) 10466 allow_undefined_flag=unsupported 10467 always_export_symbols=yes 10468 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' 10469 # Note: this linker hardcodes the directories in LIBPATH if there 10470 # are no directories specified by -L. 10471 hardcode_minus_L=yes 10472 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10473 # Neither direct hardcoding nor static linking is supported with a 10474 # broken collect2. 10475 hardcode_direct=unsupported 10476 fi 10477 ;; 10478 10479 aix[4-9]*) 10480 if test ia64 = "$host_cpu"; then 10481 # On IA64, the linker does run time linking by default, so we don't 10482 # have to do anything special. 10483 aix_use_runtimelinking=no 10484 exp_sym_flag='-Bexport' 10485 no_entry_flag= 10486 else 10487 # If we're using GNU nm, then we don't want the "-C" option. 10488 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10489 # Without the "-l" option, or with the "-B" option, AIX nm treats 10490 # weak defined symbols like other global defined symbols, whereas 10491 # GNU nm marks them as "W". 10492 # While the 'weak' keyword is ignored in the Export File, we need 10493 # it in the Import File for the 'aix-soname' feature, so we have 10494 # to replace the "-B" option with "-P" for AIX nm. 10495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10496 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' 10497 else 10498 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' 10499 fi 10500 aix_use_runtimelinking=no 10501 10502 # Test if we are trying to use run time linking or normal 10503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10504 # have runtime linking enabled, and use it for executables. 10505 # For shared libraries, we enable/disable runtime linking 10506 # depending on the kind of the shared library created - 10507 # when "with_aix_soname,aix_use_runtimelinking" is: 10508 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10509 # "aix,yes" lib.so shared, rtl:yes, for executables 10510 # lib.a static archive 10511 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10512 # lib.a(lib.so.V) shared, rtl:no, for executables 10513 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10514 # lib.a(lib.so.V) shared, rtl:no 10515 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10516 # lib.a static archive 10517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10518 for ld_flag in $LDFLAGS; do 10519 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10520 aix_use_runtimelinking=yes 10521 break 10522 fi 10523 done 10524 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10525 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10526 # so we don't have lib.a shared libs to link our executables. 10527 # We have to force runtime linking in this case. 10528 aix_use_runtimelinking=yes 10529 LDFLAGS="$LDFLAGS -Wl,-brtl" 10530 fi 10531 ;; 10532 esac 10533 10534 exp_sym_flag='-bexport' 10535 no_entry_flag='-bnoentry' 10536 fi 10537 10538 # When large executables or shared objects are built, AIX ld can 10539 # have problems creating the table of contents. If linking a library 10540 # or program results in "error TOC overflow" add -mminimal-toc to 10541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10543 10544 archive_cmds='' 10545 hardcode_direct=yes 10546 hardcode_direct_absolute=yes 10547 hardcode_libdir_separator=':' 10548 link_all_deplibs=yes 10549 file_list_spec='$wl-f,' 10550 case $with_aix_soname,$aix_use_runtimelinking in 10551 aix,*) ;; # traditional, no import file 10552 svr4,* | *,yes) # use import file 10553 # The Import File defines what to hardcode. 10554 hardcode_direct=no 10555 hardcode_direct_absolute=no 10556 ;; 10557 esac 10558 10559 if test yes = "$GCC"; then 10560 case $host_os in aix4.[012]|aix4.[012].*) 10561 # We only want to do this on AIX 4.2 and lower, the check 10562 # below for broken collect2 doesn't work under 4.3+ 10563 collect2name=`$CC -print-prog-name=collect2` 10564 if test -f "$collect2name" && 10565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10566 then 10567 # We have reworked collect2 10568 : 10569 else 10570 # We have old collect2 10571 hardcode_direct=unsupported 10572 # It fails to find uninstalled libraries when the uninstalled 10573 # path is not listed in the libpath. Setting hardcode_minus_L 10574 # to unsupported forces relinking 10575 hardcode_minus_L=yes 10576 hardcode_libdir_flag_spec='-L$libdir' 10577 hardcode_libdir_separator= 10578 fi 10579 ;; 10580 esac 10581 shared_flag='-shared' 10582 if test yes = "$aix_use_runtimelinking"; then 10583 shared_flag="$shared_flag "'$wl-G' 10584 fi 10585 # Need to ensure runtime linking is disabled for the traditional 10586 # shared library, or the linker may eventually find shared libraries 10587 # /with/ Import File - we do not want to mix them. 10588 shared_flag_aix='-shared' 10589 shared_flag_svr4='-shared $wl-G' 10590 else 10591 # not using gcc 10592 if test ia64 = "$host_cpu"; then 10593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10594 # chokes on -Wl,-G. The following line is correct: 10595 shared_flag='-G' 10596 else 10597 if test yes = "$aix_use_runtimelinking"; then 10598 shared_flag='$wl-G' 10599 else 10600 shared_flag='$wl-bM:SRE' 10601 fi 10602 shared_flag_aix='$wl-bM:SRE' 10603 shared_flag_svr4='$wl-G' 10604 fi 10605 fi 10606 10607 export_dynamic_flag_spec='$wl-bexpall' 10608 # It seems that -bexpall does not export symbols beginning with 10609 # underscore (_), so it is better to generate a list of symbols to export. 10610 always_export_symbols=yes 10611 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10612 # Warning - without using the other runtime loading flags (-brtl), 10613 # -berok will link without error, but may produce a broken library. 10614 allow_undefined_flag='-berok' 10615 # Determine the default libpath from the value encoded in an 10616 # empty executable. 10617 if test set = "${lt_cv_aix_libpath+set}"; then 10618 aix_libpath=$lt_cv_aix_libpath 10619else 10620 if test ${lt_cv_aix_libpath_+y} 10621then : 10622 printf %s "(cached) " >&6 10623else case e in #( 10624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10625/* end confdefs.h. */ 10626 10627int 10628main (void) 10629{ 10630 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO" 10636then : 10637 10638 lt_aix_libpath_sed=' 10639 /Import File Strings/,/^$/ { 10640 /^0/ { 10641 s/^0 *\([^ ]*\) *$/\1/ 10642 p 10643 } 10644 }' 10645 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10646 # Check for a 64-bit object if we didn't find anything. 10647 if test -z "$lt_cv_aix_libpath_"; then 10648 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10649 fi 10650fi 10651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10652 conftest$ac_exeext conftest.$ac_ext 10653 if test -z "$lt_cv_aix_libpath_"; then 10654 lt_cv_aix_libpath_=/usr/lib:/lib 10655 fi 10656 ;; 10657esac 10658fi 10659 10660 aix_libpath=$lt_cv_aix_libpath_ 10661fi 10662 10663 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10664 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 10665 else 10666 if test ia64 = "$host_cpu"; then 10667 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10668 allow_undefined_flag="-z nodefs" 10669 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" 10670 else 10671 # Determine the default libpath from the value encoded in an 10672 # empty executable. 10673 if test set = "${lt_cv_aix_libpath+set}"; then 10674 aix_libpath=$lt_cv_aix_libpath 10675else 10676 if test ${lt_cv_aix_libpath_+y} 10677then : 10678 printf %s "(cached) " >&6 10679else case e in #( 10680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10681/* end confdefs.h. */ 10682 10683int 10684main (void) 10685{ 10686 10687 ; 10688 return 0; 10689} 10690_ACEOF 10691if ac_fn_c_try_link "$LINENO" 10692then : 10693 10694 lt_aix_libpath_sed=' 10695 /Import File Strings/,/^$/ { 10696 /^0/ { 10697 s/^0 *\([^ ]*\) *$/\1/ 10698 p 10699 } 10700 }' 10701 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10702 # Check for a 64-bit object if we didn't find anything. 10703 if test -z "$lt_cv_aix_libpath_"; then 10704 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10705 fi 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10708 conftest$ac_exeext conftest.$ac_ext 10709 if test -z "$lt_cv_aix_libpath_"; then 10710 lt_cv_aix_libpath_=/usr/lib:/lib 10711 fi 10712 ;; 10713esac 10714fi 10715 10716 aix_libpath=$lt_cv_aix_libpath_ 10717fi 10718 10719 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10720 # Warning - without using the other run time loading flags, 10721 # -berok will link without error, but may produce a broken library. 10722 no_undefined_flag=' $wl-bernotok' 10723 allow_undefined_flag=' $wl-berok' 10724 if test yes = "$with_gnu_ld"; then 10725 # We only use this code for GNU lds that support --whole-archive. 10726 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10727 else 10728 # Exported symbols can be pulled into shared objects from archives 10729 whole_archive_flag_spec='$convenience' 10730 fi 10731 archive_cmds_need_lc=yes 10732 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10733 # -brtl affects multiple linker settings, -berok does not and is overridden later 10734 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10735 if test svr4 != "$with_aix_soname"; then 10736 # This is similar to how AIX traditionally builds its shared libraries. 10737 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' 10738 fi 10739 if test aix != "$with_aix_soname"; then 10740 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' 10741 else 10742 # used by -dlpreopen to get the symbols 10743 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10744 fi 10745 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10746 fi 10747 fi 10748 ;; 10749 10750 amigaos*) 10751 case $host_cpu in 10752 powerpc) 10753 # see comment about AmigaOS4 .so support 10754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10755 archive_expsym_cmds='' 10756 ;; 10757 m68k) 10758 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)' 10759 hardcode_libdir_flag_spec='-L$libdir' 10760 hardcode_minus_L=yes 10761 ;; 10762 esac 10763 ;; 10764 10765 bsdi[45]*) 10766 export_dynamic_flag_spec=-rdynamic 10767 ;; 10768 10769 cygwin* | mingw* | windows* | pw32* | cegcc*) 10770 # When not using gcc, we currently assume that we are using 10771 # Microsoft Visual C++ or Intel C++ Compiler. 10772 # hardcode_libdir_flag_spec is actually meaningless, as there is 10773 # no search path for DLLs. 10774 case $cc_basename in 10775 cl* | icl*) 10776 # Native MSVC or ICC 10777 hardcode_libdir_flag_spec=' ' 10778 allow_undefined_flag=unsupported 10779 always_export_symbols=yes 10780 file_list_spec='@' 10781 # Tell ltmain to make .lib files, not .a files. 10782 libext=lib 10783 # Tell ltmain to make .dll files, not .so files. 10784 shrext_cmds=.dll 10785 # FIXME: Setting linknames here is a bad hack. 10786 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10787 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10788 cp "$export_symbols" "$output_objdir/$soname.def"; 10789 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10790 else 10791 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10792 fi~ 10793 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10794 linknames=' 10795 # The linker will not automatically build a static lib if we build a DLL. 10796 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10797 enable_shared_with_static_runtimes=yes 10798 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10800 # Don't use ranlib 10801 old_postinstall_cmds='chmod 644 $oldlib' 10802 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10803 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10804 case $lt_outputfile in 10805 *.exe|*.EXE) ;; 10806 *) 10807 lt_outputfile=$lt_outputfile.exe 10808 lt_tool_outputfile=$lt_tool_outputfile.exe 10809 ;; 10810 esac~ 10811 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10812 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10813 $RM "$lt_outputfile.manifest"; 10814 fi' 10815 ;; 10816 *) 10817 # Assume MSVC and ICC wrapper 10818 hardcode_libdir_flag_spec=' ' 10819 allow_undefined_flag=unsupported 10820 # Tell ltmain to make .lib files, not .a files. 10821 libext=lib 10822 # Tell ltmain to make .dll files, not .so files. 10823 shrext_cmds=.dll 10824 # FIXME: Setting linknames here is a bad hack. 10825 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10826 # The linker will automatically build a .lib file if we build a DLL. 10827 old_archive_from_new_cmds='true' 10828 # FIXME: Should let the user specify the lib program. 10829 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10830 enable_shared_with_static_runtimes=yes 10831 ;; 10832 esac 10833 ;; 10834 10835 darwin* | rhapsody*) 10836 10837 10838 archive_cmds_need_lc=no 10839 hardcode_direct=no 10840 hardcode_automatic=yes 10841 hardcode_shlibpath_var=unsupported 10842 if test yes = "$lt_cv_ld_force_load"; then 10843 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\"`' 10844 10845 else 10846 whole_archive_flag_spec='' 10847 fi 10848 link_all_deplibs=yes 10849 allow_undefined_flag=$_lt_dar_allow_undefined 10850 case $cc_basename in 10851 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10852 *) _lt_dar_can_shared=$GCC ;; 10853 esac 10854 if test yes = "$_lt_dar_can_shared"; then 10855 output_verbose_link_cmd=func_echo_all 10856 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10857 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10858 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" 10859 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" 10860 10861 else 10862 ld_shlibs=no 10863 fi 10864 10865 ;; 10866 10867 dgux*) 10868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10869 hardcode_libdir_flag_spec='-L$libdir' 10870 hardcode_shlibpath_var=no 10871 ;; 10872 10873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10874 # support. Future versions do this automatically, but an explicit c++rt0.o 10875 # does not break anything, and helps significantly (at the cost of a little 10876 # extra space). 10877 freebsd2.2*) 10878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10879 hardcode_libdir_flag_spec='-R$libdir' 10880 hardcode_direct=yes 10881 hardcode_shlibpath_var=no 10882 ;; 10883 10884 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10885 freebsd2.*) 10886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10887 hardcode_direct=yes 10888 hardcode_minus_L=yes 10889 hardcode_shlibpath_var=no 10890 ;; 10891 10892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10893 freebsd* | dragonfly* | midnightbsd*) 10894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10895 hardcode_libdir_flag_spec='-R$libdir' 10896 hardcode_direct=yes 10897 hardcode_shlibpath_var=no 10898 ;; 10899 10900 hpux9*) 10901 if test yes = "$GCC"; then 10902 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' 10903 else 10904 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' 10905 fi 10906 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10907 hardcode_libdir_separator=: 10908 hardcode_direct=yes 10909 10910 # hardcode_minus_L: Not really in the search PATH, 10911 # but as the default location of the library. 10912 hardcode_minus_L=yes 10913 export_dynamic_flag_spec='$wl-E' 10914 ;; 10915 10916 hpux10*) 10917 if test yes,no = "$GCC,$with_gnu_ld"; then 10918 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10919 else 10920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10921 fi 10922 if test no = "$with_gnu_ld"; then 10923 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10924 hardcode_libdir_separator=: 10925 hardcode_direct=yes 10926 hardcode_direct_absolute=yes 10927 export_dynamic_flag_spec='$wl-E' 10928 # hardcode_minus_L: Not really in the search PATH, 10929 # but as the default location of the library. 10930 hardcode_minus_L=yes 10931 fi 10932 ;; 10933 10934 hpux11*) 10935 if test yes,no = "$GCC,$with_gnu_ld"; then 10936 case $host_cpu in 10937 hppa*64*) 10938 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10939 ;; 10940 ia64*) 10941 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10942 ;; 10943 *) 10944 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10945 ;; 10946 esac 10947 else 10948 case $host_cpu in 10949 hppa*64*) 10950 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10951 ;; 10952 ia64*) 10953 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10954 ;; 10955 *) 10956 10957 # Older versions of the 11.00 compiler do not understand -b yet 10958 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10960printf %s "checking if $CC understands -b... " >&6; } 10961if test ${lt_cv_prog_compiler__b+y} 10962then : 10963 printf %s "(cached) " >&6 10964else case e in #( 10965 e) lt_cv_prog_compiler__b=no 10966 save_LDFLAGS=$LDFLAGS 10967 LDFLAGS="$LDFLAGS -b" 10968 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10970 # The linker can only warn and ignore the option if not recognized 10971 # So say no if there are warnings 10972 if test -s conftest.err; then 10973 # Append any errors to the config.log. 10974 cat conftest.err 1>&5 10975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10977 if diff conftest.exp conftest.er2 >/dev/null; then 10978 lt_cv_prog_compiler__b=yes 10979 fi 10980 else 10981 lt_cv_prog_compiler__b=yes 10982 fi 10983 fi 10984 $RM -r conftest* 10985 LDFLAGS=$save_LDFLAGS 10986 ;; 10987esac 10988fi 10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10990printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10991 10992if test yes = "$lt_cv_prog_compiler__b"; then 10993 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10994else 10995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10996fi 10997 10998 ;; 10999 esac 11000 fi 11001 if test no = "$with_gnu_ld"; then 11002 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11003 hardcode_libdir_separator=: 11004 11005 case $host_cpu in 11006 hppa*64*|ia64*) 11007 hardcode_direct=no 11008 hardcode_shlibpath_var=no 11009 ;; 11010 *) 11011 hardcode_direct=yes 11012 hardcode_direct_absolute=yes 11013 export_dynamic_flag_spec='$wl-E' 11014 11015 # hardcode_minus_L: Not really in the search PATH, 11016 # but as the default location of the library. 11017 hardcode_minus_L=yes 11018 ;; 11019 esac 11020 fi 11021 ;; 11022 11023 irix5* | irix6* | nonstopux*) 11024 if test yes = "$GCC"; then 11025 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' 11026 # Try to use the -exported_symbol ld option, if it does not 11027 # work, assume that -exports_file does not work either and 11028 # implicitly export all symbols. 11029 # This should be the same for all languages, so no per-tag cache variable. 11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11031printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11032if test ${lt_cv_irix_exported_symbol+y} 11033then : 11034 printf %s "(cached) " >&6 11035else case e in #( 11036 e) save_LDFLAGS=$LDFLAGS 11037 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039/* end confdefs.h. */ 11040int foo (void) { return 0; } 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO" 11043then : 11044 lt_cv_irix_exported_symbol=yes 11045else case e in #( 11046 e) lt_cv_irix_exported_symbol=no ;; 11047esac 11048fi 11049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11050 conftest$ac_exeext conftest.$ac_ext 11051 LDFLAGS=$save_LDFLAGS ;; 11052esac 11053fi 11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11055printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11056 if test yes = "$lt_cv_irix_exported_symbol"; then 11057 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' 11058 fi 11059 else 11060 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' 11061 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' 11062 fi 11063 archive_cmds_need_lc='no' 11064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11065 hardcode_libdir_separator=: 11066 inherit_rpath=yes 11067 link_all_deplibs=yes 11068 ;; 11069 11070 linux*) 11071 case $cc_basename in 11072 tcc*) 11073 # Fabrice Bellard et al's Tiny C Compiler 11074 ld_shlibs=yes 11075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11077 ;; 11078 esac 11079 ;; 11080 11081 *-mlibc) 11082 ;; 11083 11084 netbsd* | netbsdelf*-gnu) 11085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11087 else 11088 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11089 fi 11090 hardcode_libdir_flag_spec='-R$libdir' 11091 hardcode_direct=yes 11092 hardcode_shlibpath_var=no 11093 ;; 11094 11095 newsos6) 11096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11097 hardcode_direct=yes 11098 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11099 hardcode_libdir_separator=: 11100 hardcode_shlibpath_var=no 11101 ;; 11102 11103 *nto* | *qnx*) 11104 ;; 11105 11106 openbsd*) 11107 if test -f /usr/libexec/ld.so; then 11108 hardcode_direct=yes 11109 hardcode_shlibpath_var=no 11110 hardcode_direct_absolute=yes 11111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11113 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11114 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11115 export_dynamic_flag_spec='$wl-E' 11116 else 11117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11118 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11119 fi 11120 else 11121 ld_shlibs=no 11122 fi 11123 ;; 11124 11125 os2*) 11126 hardcode_libdir_flag_spec='-L$libdir' 11127 hardcode_minus_L=yes 11128 allow_undefined_flag=unsupported 11129 shrext_cmds=.dll 11130 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11131 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11132 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11133 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11134 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11135 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11136 emximp -o $lib $output_objdir/$libname.def' 11137 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11138 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11139 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11140 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11141 prefix_cmds="$SED"~ 11142 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11143 prefix_cmds="$prefix_cmds -e 1d"; 11144 fi~ 11145 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11146 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11147 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11148 emximp -o $lib $output_objdir/$libname.def' 11149 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11150 enable_shared_with_static_runtimes=yes 11151 file_list_spec='@' 11152 ;; 11153 11154 osf3*) 11155 if test yes = "$GCC"; then 11156 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11157 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' 11158 else 11159 allow_undefined_flag=' -expect_unresolved \*' 11160 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' 11161 fi 11162 archive_cmds_need_lc='no' 11163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11164 hardcode_libdir_separator=: 11165 ;; 11166 11167 osf4* | osf5*) # as osf3* with the addition of -msym flag 11168 if test yes = "$GCC"; then 11169 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11170 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' 11171 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11172 else 11173 allow_undefined_flag=' -expect_unresolved \*' 11174 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' 11175 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~ 11176 $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' 11177 11178 # Both c and cxx compiler support -rpath directly 11179 hardcode_libdir_flag_spec='-rpath $libdir' 11180 fi 11181 archive_cmds_need_lc='no' 11182 hardcode_libdir_separator=: 11183 ;; 11184 11185 serenity*) 11186 ;; 11187 11188 solaris*) 11189 no_undefined_flag=' -z defs' 11190 if test yes = "$GCC"; then 11191 wlarc='$wl' 11192 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11193 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11194 $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' 11195 else 11196 case `$CC -V 2>&1` in 11197 *"Compilers 5.0"*) 11198 wlarc='' 11199 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11200 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11201 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11202 ;; 11203 *) 11204 wlarc='$wl' 11205 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11207 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11208 ;; 11209 esac 11210 fi 11211 hardcode_libdir_flag_spec='-R$libdir' 11212 hardcode_shlibpath_var=no 11213 case $host_os in 11214 solaris2.[0-5] | solaris2.[0-5].*) ;; 11215 *) 11216 # The compiler driver will combine and reorder linker options, 11217 # but understands '-z linker_flag'. GCC discards it without '$wl', 11218 # but is careful enough not to reorder. 11219 # Supported since Solaris 2.6 (maybe 2.5.1?) 11220 if test yes = "$GCC"; then 11221 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11222 else 11223 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11224 fi 11225 ;; 11226 esac 11227 link_all_deplibs=yes 11228 ;; 11229 11230 sunos4*) 11231 if test sequent = "$host_vendor"; then 11232 # Use $CC to link under sequent, because it throws in some extra .o 11233 # files that make .init and .fini sections work. 11234 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11235 else 11236 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11237 fi 11238 hardcode_libdir_flag_spec='-L$libdir' 11239 hardcode_direct=yes 11240 hardcode_minus_L=yes 11241 hardcode_shlibpath_var=no 11242 ;; 11243 11244 sysv4) 11245 case $host_vendor in 11246 sni) 11247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11248 hardcode_direct=yes # is this really true??? 11249 ;; 11250 siemens) 11251 ## LD is ld it makes a PLAMLIB 11252 ## CC just makes a GrossModule. 11253 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11254 reload_cmds='$CC -r -o $output$reload_objs' 11255 hardcode_direct=no 11256 ;; 11257 motorola) 11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11259 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11260 ;; 11261 esac 11262 runpath_var='LD_RUN_PATH' 11263 hardcode_shlibpath_var=no 11264 ;; 11265 11266 sysv4.3*) 11267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11268 hardcode_shlibpath_var=no 11269 export_dynamic_flag_spec='-Bexport' 11270 ;; 11271 11272 sysv4*MP*) 11273 if test -d /usr/nec; then 11274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11275 hardcode_shlibpath_var=no 11276 runpath_var=LD_RUN_PATH 11277 hardcode_runpath_var=yes 11278 ld_shlibs=yes 11279 fi 11280 ;; 11281 11282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11283 no_undefined_flag='$wl-z,text' 11284 archive_cmds_need_lc=no 11285 hardcode_shlibpath_var=no 11286 runpath_var='LD_RUN_PATH' 11287 11288 if test yes = "$GCC"; then 11289 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11290 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11291 else 11292 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11293 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11294 fi 11295 ;; 11296 11297 sysv5* | sco3.2v5* | sco5v6*) 11298 # Note: We CANNOT use -z defs as we might desire, because we do not 11299 # link with -lc, and that would cause any symbols used from libc to 11300 # always be unresolved, which means just about no library would 11301 # ever link correctly. If we're not using GNU ld we use -z text 11302 # though, which does catch some bad symbols but isn't as heavy-handed 11303 # as -z defs. 11304 no_undefined_flag='$wl-z,text' 11305 allow_undefined_flag='$wl-z,nodefs' 11306 archive_cmds_need_lc=no 11307 hardcode_shlibpath_var=no 11308 hardcode_libdir_flag_spec='$wl-R,$libdir' 11309 hardcode_libdir_separator=':' 11310 link_all_deplibs=yes 11311 export_dynamic_flag_spec='$wl-Bexport' 11312 runpath_var='LD_RUN_PATH' 11313 11314 if test yes = "$GCC"; then 11315 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11316 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11317 else 11318 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11319 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11320 fi 11321 ;; 11322 11323 uts4*) 11324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11325 hardcode_libdir_flag_spec='-L$libdir' 11326 hardcode_shlibpath_var=no 11327 ;; 11328 11329 *) 11330 ld_shlibs=no 11331 ;; 11332 esac 11333 11334 if test sni = "$host_vendor"; then 11335 case $host in 11336 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11337 export_dynamic_flag_spec='$wl-Blargedynsym' 11338 ;; 11339 esac 11340 fi 11341 fi 11342 11343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11344printf "%s\n" "$ld_shlibs" >&6; } 11345test no = "$ld_shlibs" && can_build_shared=no 11346 11347with_gnu_ld=$with_gnu_ld 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363# 11364# Do we need to explicitly link libc? 11365# 11366case "x$archive_cmds_need_lc" in 11367x|xyes) 11368 # Assume -lc should be added 11369 archive_cmds_need_lc=yes 11370 11371 if test yes,yes = "$GCC,$enable_shared"; then 11372 case $archive_cmds in 11373 *'~'*) 11374 # FIXME: we may have to deal with multi-command sequences. 11375 ;; 11376 '$CC '*) 11377 # Test whether the compiler implicitly links with -lc since on some 11378 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11379 # to ld, don't add -lc before -lgcc. 11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11381printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11382if test ${lt_cv_archive_cmds_need_lc+y} 11383then : 11384 printf %s "(cached) " >&6 11385else case e in #( 11386 e) $RM conftest* 11387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11388 11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11390 (eval $ac_compile) 2>&5 11391 ac_status=$? 11392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11393 test $ac_status = 0; } 2>conftest.err; then 11394 soname=conftest 11395 lib=conftest 11396 libobjs=conftest.$ac_objext 11397 deplibs= 11398 wl=$lt_prog_compiler_wl 11399 pic_flag=$lt_prog_compiler_pic 11400 compiler_flags=-v 11401 linker_flags=-v 11402 verstring= 11403 output_objdir=. 11404 libname=conftest 11405 lt_save_allow_undefined_flag=$allow_undefined_flag 11406 allow_undefined_flag= 11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11409 ac_status=$? 11410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11411 test $ac_status = 0; } 11412 then 11413 lt_cv_archive_cmds_need_lc=no 11414 else 11415 lt_cv_archive_cmds_need_lc=yes 11416 fi 11417 allow_undefined_flag=$lt_save_allow_undefined_flag 11418 else 11419 cat conftest.err 1>&5 11420 fi 11421 $RM conftest* 11422 ;; 11423esac 11424fi 11425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11426printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11427 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11428 ;; 11429 esac 11430 fi 11431 ;; 11432esac 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11586printf %s "checking dynamic linker characteristics... " >&6; } 11587 11588if test yes = "$GCC"; then 11589 case $host_os in 11590 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11591 *) lt_awk_arg='/^libraries:/' ;; 11592 esac 11593 case $host_os in 11594 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11595 *) lt_sed_strip_eq='s|=/|/|g' ;; 11596 esac 11597 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11598 case $lt_search_path_spec in 11599 *\;*) 11600 # if the path contains ";" then we assume it to be the separator 11601 # otherwise default to the standard path separator (i.e. ":") - it is 11602 # assumed that no part of a normal pathname contains ";" but that should 11603 # okay in the real world where ";" in dirpaths is itself problematic. 11604 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11605 ;; 11606 *) 11607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11608 ;; 11609 esac 11610 # Ok, now we have the path, separated by spaces, we can step through it 11611 # and add multilib dir if necessary... 11612 lt_tmp_lt_search_path_spec= 11613 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11614 # ...but if some path component already ends with the multilib dir we assume 11615 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11616 case "$lt_multi_os_dir; $lt_search_path_spec " in 11617 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11618 lt_multi_os_dir= 11619 ;; 11620 esac 11621 for lt_sys_path in $lt_search_path_spec; do 11622 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11624 elif test -n "$lt_multi_os_dir"; then 11625 test -d "$lt_sys_path" && \ 11626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11627 fi 11628 done 11629 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11630BEGIN {RS = " "; FS = "/|\n";} { 11631 lt_foo = ""; 11632 lt_count = 0; 11633 for (lt_i = NF; lt_i > 0; lt_i--) { 11634 if ($lt_i != "" && $lt_i != ".") { 11635 if ($lt_i == "..") { 11636 lt_count++; 11637 } else { 11638 if (lt_count == 0) { 11639 lt_foo = "/" $lt_i lt_foo; 11640 } else { 11641 lt_count--; 11642 } 11643 } 11644 } 11645 } 11646 if (lt_foo != "") { lt_freq[lt_foo]++; } 11647 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11648}'` 11649 # AWK program above erroneously prepends '/' to C:/dos/paths 11650 # for these hosts. 11651 case $host_os in 11652 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11653 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11654 esac 11655 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11656else 11657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11658fi 11659library_names_spec= 11660libname_spec='lib$name' 11661soname_spec= 11662shrext_cmds=.so 11663postinstall_cmds= 11664postuninstall_cmds= 11665finish_cmds= 11666finish_eval= 11667shlibpath_var= 11668shlibpath_overrides_runpath=unknown 11669version_type=none 11670dynamic_linker="$host_os ld.so" 11671sys_lib_dlsearch_path_spec="/lib /usr/lib" 11672need_lib_prefix=unknown 11673hardcode_into_libs=no 11674 11675# when you set need_version to no, make sure it does not cause -set_version 11676# flags to be left without arguments 11677need_version=unknown 11678 11679 11680 11681case $host_os in 11682aix3*) 11683 version_type=linux # correct to gnu/linux during the next big refactor 11684 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11685 shlibpath_var=LIBPATH 11686 11687 # AIX 3 has no versioning support, so we append a major version to the name. 11688 soname_spec='$libname$release$shared_ext$major' 11689 ;; 11690 11691aix[4-9]*) 11692 version_type=linux # correct to gnu/linux during the next big refactor 11693 need_lib_prefix=no 11694 need_version=no 11695 hardcode_into_libs=yes 11696 if test ia64 = "$host_cpu"; then 11697 # AIX 5 supports IA64 11698 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11699 shlibpath_var=LD_LIBRARY_PATH 11700 else 11701 # With GCC up to 2.95.x, collect2 would create an import file 11702 # for dependence libraries. The import file would start with 11703 # the line '#! .'. This would cause the generated library to 11704 # depend on '.', always an invalid library. This was fixed in 11705 # development snapshots of GCC prior to 3.0. 11706 case $host_os in 11707 aix4 | aix4.[01] | aix4.[01].*) 11708 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11709 echo ' yes ' 11710 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11711 : 11712 else 11713 can_build_shared=no 11714 fi 11715 ;; 11716 esac 11717 # Using Import Files as archive members, it is possible to support 11718 # filename-based versioning of shared library archives on AIX. While 11719 # this would work for both with and without runtime linking, it will 11720 # prevent static linking of such archives. So we do filename-based 11721 # shared library versioning with .so extension only, which is used 11722 # when both runtime linking and shared linking is enabled. 11723 # Unfortunately, runtime linking may impact performance, so we do 11724 # not want this to be the default eventually. Also, we use the 11725 # versioned .so libs for executables only if there is the -brtl 11726 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11727 # To allow for filename-based versioning support, we need to create 11728 # libNAME.so.V as an archive file, containing: 11729 # *) an Import File, referring to the versioned filename of the 11730 # archive as well as the shared archive member, telling the 11731 # bitwidth (32 or 64) of that shared object, and providing the 11732 # list of exported symbols of that shared object, eventually 11733 # decorated with the 'weak' keyword 11734 # *) the shared object with the F_LOADONLY flag set, to really avoid 11735 # it being seen by the linker. 11736 # At run time we better use the real file rather than another symlink, 11737 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11738 11739 case $with_aix_soname,$aix_use_runtimelinking in 11740 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11741 # soname into executable. Probably we can add versioning support to 11742 # collect2, so additional links can be useful in future. 11743 aix,yes) # traditional libtool 11744 dynamic_linker='AIX unversionable lib.so' 11745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11746 # instead of lib<name>.a to let people know that these are not 11747 # typical AIX shared libraries. 11748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11749 ;; 11750 aix,no) # traditional AIX only 11751 dynamic_linker='AIX lib.a(lib.so.V)' 11752 # We preserve .a as extension for shared libraries through AIX4.2 11753 # and later when we are not doing run time linking. 11754 library_names_spec='$libname$release.a $libname.a' 11755 soname_spec='$libname$release$shared_ext$major' 11756 ;; 11757 svr4,*) # full svr4 only 11758 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11759 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11760 # We do not specify a path in Import Files, so LIBPATH fires. 11761 shlibpath_overrides_runpath=yes 11762 ;; 11763 *,yes) # both, prefer svr4 11764 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11765 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11766 # unpreferred sharedlib libNAME.a needs extra handling 11767 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"' 11768 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"' 11769 # We do not specify a path in Import Files, so LIBPATH fires. 11770 shlibpath_overrides_runpath=yes 11771 ;; 11772 *,no) # both, prefer aix 11773 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11774 library_names_spec='$libname$release.a $libname.a' 11775 soname_spec='$libname$release$shared_ext$major' 11776 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11777 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)' 11778 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"' 11779 ;; 11780 esac 11781 shlibpath_var=LIBPATH 11782 fi 11783 ;; 11784 11785amigaos*) 11786 case $host_cpu in 11787 powerpc) 11788 # Since July 2007 AmigaOS4 officially supports .so libraries. 11789 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11791 ;; 11792 m68k) 11793 library_names_spec='$libname.ixlibrary $libname.a' 11794 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11795 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' 11796 ;; 11797 esac 11798 ;; 11799 11800beos*) 11801 library_names_spec='$libname$shared_ext' 11802 dynamic_linker="$host_os ld.so" 11803 shlibpath_var=LIBRARY_PATH 11804 ;; 11805 11806bsdi[45]*) 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 need_version=no 11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11810 soname_spec='$libname$release$shared_ext$major' 11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11815 # the default ld.so.conf also contains /usr/contrib/lib and 11816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11817 # libtool to hard-code these into programs 11818 ;; 11819 11820cygwin* | mingw* | windows* | pw32* | cegcc*) 11821 version_type=windows 11822 shrext_cmds=.dll 11823 need_version=no 11824 need_lib_prefix=no 11825 11826 case $GCC,$cc_basename in 11827 yes,*) 11828 # gcc 11829 library_names_spec='$libname.dll.a' 11830 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11831 # If user builds GCC with multilib enabled, 11832 # it should just install on $(libdir) 11833 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11834 if test xyes = x"$multilib"; then 11835 postinstall_cmds='base_file=`basename \$file`~ 11836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11837 dldir=$destdir/`dirname \$dlpath`~ 11838 $install_prog $dir/$dlname $destdir/$dlname~ 11839 chmod a+x $destdir/$dlname~ 11840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11841 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11842 fi' 11843 else 11844 postinstall_cmds='base_file=`basename \$file`~ 11845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11846 dldir=$destdir/`dirname \$dlpath`~ 11847 test -d \$dldir || mkdir -p \$dldir~ 11848 $install_prog $dir/$dlname \$dldir/$dlname~ 11849 chmod a+x \$dldir/$dlname~ 11850 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11851 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11852 fi' 11853 fi 11854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11855 dlpath=$dir/\$dldll~ 11856 $RM \$dlpath' 11857 shlibpath_overrides_runpath=yes 11858 11859 case $host_os in 11860 cygwin*) 11861 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11862 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11863 11864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11865 ;; 11866 mingw* | windows* | cegcc*) 11867 # MinGW DLLs use traditional 'lib' prefix 11868 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11869 ;; 11870 pw32*) 11871 # pw32 DLLs use 'pw' prefix rather than 'lib' 11872 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11873 ;; 11874 esac 11875 dynamic_linker='Win32 ld.exe' 11876 ;; 11877 11878 *,cl* | *,icl*) 11879 # Native MSVC or ICC 11880 libname_spec='$name' 11881 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11882 library_names_spec='$libname.dll.lib' 11883 11884 case $build_os in 11885 mingw* | windows*) 11886 sys_lib_search_path_spec= 11887 lt_save_ifs=$IFS 11888 IFS=';' 11889 for lt_path in $LIB 11890 do 11891 IFS=$lt_save_ifs 11892 # Let DOS variable expansion print the short 8.3 style file name. 11893 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11894 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11895 done 11896 IFS=$lt_save_ifs 11897 # Convert to MSYS style. 11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11899 ;; 11900 cygwin*) 11901 # Convert to unix form, then to dos form, then back to unix form 11902 # but this time dos style (no spaces!) so that the unix form looks 11903 # like /cygdrive/c/PROGRA~1:/cygdr... 11904 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11905 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11906 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11907 ;; 11908 *) 11909 sys_lib_search_path_spec=$LIB 11910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11911 # It is most probably a Windows format PATH. 11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11913 else 11914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11915 fi 11916 # FIXME: find the short name or the path components, as spaces are 11917 # common. (e.g. "Program Files" -> "PROGRA~1") 11918 ;; 11919 esac 11920 11921 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11922 postinstall_cmds='base_file=`basename \$file`~ 11923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11924 dldir=$destdir/`dirname \$dlpath`~ 11925 test -d \$dldir || mkdir -p \$dldir~ 11926 $install_prog $dir/$dlname \$dldir/$dlname' 11927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11928 dlpath=$dir/\$dldll~ 11929 $RM \$dlpath' 11930 shlibpath_overrides_runpath=yes 11931 dynamic_linker='Win32 link.exe' 11932 ;; 11933 11934 *) 11935 # Assume MSVC and ICC wrapper 11936 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11937 dynamic_linker='Win32 ld.exe' 11938 ;; 11939 esac 11940 # FIXME: first we should search . and the directory the executable is in 11941 shlibpath_var=PATH 11942 ;; 11943 11944darwin* | rhapsody*) 11945 dynamic_linker="$host_os dyld" 11946 version_type=darwin 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11950 soname_spec='$libname$release$major$shared_ext' 11951 shlibpath_overrides_runpath=yes 11952 shlibpath_var=DYLD_LIBRARY_PATH 11953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11954 11955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11957 ;; 11958 11959dgux*) 11960 version_type=linux # correct to gnu/linux during the next big refactor 11961 need_lib_prefix=no 11962 need_version=no 11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11964 soname_spec='$libname$release$shared_ext$major' 11965 shlibpath_var=LD_LIBRARY_PATH 11966 ;; 11967 11968freebsd* | dragonfly* | midnightbsd*) 11969 # DragonFly does not have aout. When/if they implement a new 11970 # versioning mechanism, adjust this. 11971 if test -x /usr/bin/objformat; then 11972 objformat=`/usr/bin/objformat` 11973 else 11974 case $host_os in 11975 freebsd[23].*) objformat=aout ;; 11976 *) objformat=elf ;; 11977 esac 11978 fi 11979 version_type=freebsd-$objformat 11980 case $version_type in 11981 freebsd-elf*) 11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11983 soname_spec='$libname$release$shared_ext$major' 11984 need_version=no 11985 need_lib_prefix=no 11986 ;; 11987 freebsd-*) 11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11989 need_version=yes 11990 ;; 11991 esac 11992 case $host_cpu in 11993 powerpc64) 11994 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11995 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11997/* end confdefs.h. */ 11998int test_pointer_size[sizeof (void *) - 5]; 11999 12000_ACEOF 12001if ac_fn_c_try_compile "$LINENO" 12002then : 12003 shlibpath_var=LD_LIBRARY_PATH 12004else case e in #( 12005 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12006esac 12007fi 12008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12009 ;; 12010 *) 12011 shlibpath_var=LD_LIBRARY_PATH 12012 ;; 12013 esac 12014 case $host_os in 12015 freebsd2.*) 12016 shlibpath_overrides_runpath=yes 12017 ;; 12018 freebsd3.[01]* | freebsdelf3.[01]*) 12019 shlibpath_overrides_runpath=yes 12020 hardcode_into_libs=yes 12021 ;; 12022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12024 shlibpath_overrides_runpath=no 12025 hardcode_into_libs=yes 12026 ;; 12027 *) # from 4.6 on, and DragonFly 12028 shlibpath_overrides_runpath=yes 12029 hardcode_into_libs=yes 12030 ;; 12031 esac 12032 ;; 12033 12034haiku*) 12035 version_type=linux # correct to gnu/linux during the next big refactor 12036 need_lib_prefix=no 12037 need_version=no 12038 dynamic_linker="$host_os runtime_loader" 12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12040 soname_spec='$libname$release$shared_ext$major' 12041 shlibpath_var=LIBRARY_PATH 12042 shlibpath_overrides_runpath=no 12043 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12044 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12045 hardcode_into_libs=no 12046 ;; 12047 12048hpux9* | hpux10* | hpux11*) 12049 # Give a soname corresponding to the major version so that dld.sl refuses to 12050 # link against other versions. 12051 version_type=sunos 12052 need_lib_prefix=no 12053 need_version=no 12054 case $host_cpu in 12055 ia64*) 12056 shrext_cmds='.so' 12057 hardcode_into_libs=yes 12058 dynamic_linker="$host_os dld.so" 12059 shlibpath_var=LD_LIBRARY_PATH 12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12062 soname_spec='$libname$release$shared_ext$major' 12063 if test 32 = "$HPUX_IA64_MODE"; then 12064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12065 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12066 else 12067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12068 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12069 fi 12070 ;; 12071 hppa*64*) 12072 shrext_cmds='.sl' 12073 hardcode_into_libs=yes 12074 dynamic_linker="$host_os dld.sl" 12075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12078 soname_spec='$libname$release$shared_ext$major' 12079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12081 ;; 12082 *) 12083 shrext_cmds='.sl' 12084 dynamic_linker="$host_os dld.sl" 12085 shlibpath_var=SHLIB_PATH 12086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12088 soname_spec='$libname$release$shared_ext$major' 12089 ;; 12090 esac 12091 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12092 postinstall_cmds='chmod 555 $lib' 12093 # or fails outright, so override atomically: 12094 install_override_mode=555 12095 ;; 12096 12097interix[3-9]*) 12098 version_type=linux # correct to gnu/linux during the next big refactor 12099 need_lib_prefix=no 12100 need_version=no 12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12102 soname_spec='$libname$release$shared_ext$major' 12103 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12104 shlibpath_var=LD_LIBRARY_PATH 12105 shlibpath_overrides_runpath=no 12106 hardcode_into_libs=yes 12107 ;; 12108 12109irix5* | irix6* | nonstopux*) 12110 case $host_os in 12111 nonstopux*) version_type=nonstopux ;; 12112 *) 12113 if test yes = "$lt_cv_prog_gnu_ld"; then 12114 version_type=linux # correct to gnu/linux during the next big refactor 12115 else 12116 version_type=irix 12117 fi ;; 12118 esac 12119 need_lib_prefix=no 12120 need_version=no 12121 soname_spec='$libname$release$shared_ext$major' 12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12123 case $host_os in 12124 irix5* | nonstopux*) 12125 libsuff= shlibsuff= 12126 ;; 12127 *) 12128 case $LD in # libtool.m4 will add one of these switches to LD 12129 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12130 libsuff= shlibsuff= libmagic=32-bit;; 12131 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12132 libsuff=32 shlibsuff=N32 libmagic=N32;; 12133 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12134 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12135 *) libsuff= shlibsuff= libmagic=never-match;; 12136 esac 12137 ;; 12138 esac 12139 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12140 shlibpath_overrides_runpath=no 12141 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12142 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12143 hardcode_into_libs=yes 12144 ;; 12145 12146# No shared lib support for Linux oldld, aout, or coff. 12147linux*oldld* | linux*aout* | linux*coff*) 12148 dynamic_linker=no 12149 ;; 12150 12151linux*android*) 12152 version_type=none # Android doesn't support versioned libraries. 12153 need_lib_prefix=no 12154 need_version=no 12155 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12156 soname_spec='$libname$release$shared_ext' 12157 finish_cmds= 12158 shlibpath_var=LD_LIBRARY_PATH 12159 shlibpath_overrides_runpath=yes 12160 12161 # This implies no fast_install, which is unacceptable. 12162 # Some rework will be needed to allow for fast_install 12163 # before this can be enabled. 12164 hardcode_into_libs=yes 12165 12166 dynamic_linker='Android linker' 12167 # -rpath works at least for libraries that are not overridden by 12168 # libraries installed in system locations. 12169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12170 ;; 12171 12172# This must be glibc/ELF. 12173linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12174 version_type=linux # correct to gnu/linux during the next big refactor 12175 need_lib_prefix=no 12176 need_version=no 12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12178 soname_spec='$libname$release$shared_ext$major' 12179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 shlibpath_overrides_runpath=no 12182 12183 # Some binutils ld are patched to set DT_RUNPATH 12184 if test ${lt_cv_shlibpath_overrides_runpath+y} 12185then : 12186 printf %s "(cached) " >&6 12187else case e in #( 12188 e) lt_cv_shlibpath_overrides_runpath=no 12189 save_LDFLAGS=$LDFLAGS 12190 save_libdir=$libdir 12191 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12192 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195 12196int 12197main (void) 12198{ 12199 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12207then : 12208 lt_cv_shlibpath_overrides_runpath=yes 12209fi 12210fi 12211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12212 conftest$ac_exeext conftest.$ac_ext 12213 LDFLAGS=$save_LDFLAGS 12214 libdir=$save_libdir 12215 ;; 12216esac 12217fi 12218 12219 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12220 12221 # This implies no fast_install, which is unacceptable. 12222 # Some rework will be needed to allow for fast_install 12223 # before this can be enabled. 12224 hardcode_into_libs=yes 12225 12226 # Ideally, we could use ldconfig to report *all* directories which are 12227 # searched for libraries, however this is still not possible. Aside from not 12228 # being certain /sbin/ldconfig is available, command 12229 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12230 # even though it is searched at run-time. Try to do the best guess by 12231 # appending ld.so.conf contents (and includes) to the search path. 12232 if test -f /etc/ld.so.conf; then 12233 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' ' '` 12234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12235 fi 12236 12237 # We used to test for /lib/ld.so.1 and disable shared libraries on 12238 # powerpc, because MkLinux only supported shared libraries with the 12239 # GNU dynamic linker. Since this was broken with cross compilers, 12240 # most powerpc-linux boxes support dynamic linking these days and 12241 # people can always --disable-shared, the test was removed, and we 12242 # assume the GNU/Linux dynamic linker is in use. 12243 dynamic_linker='GNU/Linux ld.so' 12244 ;; 12245 12246netbsdelf*-gnu) 12247 version_type=linux 12248 need_lib_prefix=no 12249 need_version=no 12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12251 soname_spec='$libname$release$shared_ext$major' 12252 shlibpath_var=LD_LIBRARY_PATH 12253 shlibpath_overrides_runpath=no 12254 hardcode_into_libs=yes 12255 dynamic_linker='NetBSD ld.elf_so' 12256 ;; 12257 12258netbsd*) 12259 version_type=sunos 12260 need_lib_prefix=no 12261 need_version=no 12262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12265 dynamic_linker='NetBSD (a.out) ld.so' 12266 else 12267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12268 soname_spec='$libname$release$shared_ext$major' 12269 dynamic_linker='NetBSD ld.elf_so' 12270 fi 12271 shlibpath_var=LD_LIBRARY_PATH 12272 shlibpath_overrides_runpath=yes 12273 hardcode_into_libs=yes 12274 ;; 12275 12276*-mlibc) 12277 version_type=linux # correct to gnu/linux during the next big refactor 12278 need_lib_prefix=no 12279 need_version=no 12280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12281 soname_spec='$libname$release$shared_ext$major' 12282 dynamic_linker='mlibc ld.so' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=no 12285 hardcode_into_libs=yes 12286 ;; 12287 12288newsos6) 12289 version_type=linux # correct to gnu/linux during the next big refactor 12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12291 shlibpath_var=LD_LIBRARY_PATH 12292 shlibpath_overrides_runpath=yes 12293 ;; 12294 12295*nto* | *qnx*) 12296 version_type=qnx 12297 need_lib_prefix=no 12298 need_version=no 12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12300 soname_spec='$libname$release$shared_ext$major' 12301 shlibpath_var=LD_LIBRARY_PATH 12302 shlibpath_overrides_runpath=no 12303 hardcode_into_libs=yes 12304 dynamic_linker='ldqnx.so' 12305 ;; 12306 12307openbsd*) 12308 version_type=sunos 12309 sys_lib_dlsearch_path_spec=/usr/lib 12310 need_lib_prefix=no 12311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12312 need_version=no 12313 else 12314 need_version=yes 12315 fi 12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12318 shlibpath_var=LD_LIBRARY_PATH 12319 shlibpath_overrides_runpath=yes 12320 ;; 12321 12322os2*) 12323 libname_spec='$name' 12324 version_type=windows 12325 shrext_cmds=.dll 12326 need_version=no 12327 need_lib_prefix=no 12328 # OS/2 can only load a DLL with a base name of 8 characters or less. 12329 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12330 v=$($ECHO $release$versuffix | tr -d .-); 12331 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12332 $ECHO $n$v`$shared_ext' 12333 library_names_spec='${libname}_dll.$libext' 12334 dynamic_linker='OS/2 ld.exe' 12335 shlibpath_var=BEGINLIBPATH 12336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12338 postinstall_cmds='base_file=`basename \$file`~ 12339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12340 dldir=$destdir/`dirname \$dlpath`~ 12341 test -d \$dldir || mkdir -p \$dldir~ 12342 $install_prog $dir/$dlname \$dldir/$dlname~ 12343 chmod a+x \$dldir/$dlname~ 12344 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12345 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12346 fi' 12347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12348 dlpath=$dir/\$dldll~ 12349 $RM \$dlpath' 12350 ;; 12351 12352osf3* | osf4* | osf5*) 12353 version_type=osf 12354 need_lib_prefix=no 12355 need_version=no 12356 soname_spec='$libname$release$shared_ext$major' 12357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12358 shlibpath_var=LD_LIBRARY_PATH 12359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12361 ;; 12362 12363rdos*) 12364 dynamic_linker=no 12365 ;; 12366 12367serenity*) 12368 version_type=linux # correct to gnu/linux during the next big refactor 12369 need_lib_prefix=no 12370 need_version=no 12371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12372 soname_spec='$libname$release$shared_ext$major' 12373 shlibpath_var=LD_LIBRARY_PATH 12374 shlibpath_overrides_runpath=no 12375 dynamic_linker='SerenityOS LibELF' 12376 ;; 12377 12378solaris*) 12379 version_type=linux # correct to gnu/linux during the next big refactor 12380 need_lib_prefix=no 12381 need_version=no 12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12383 soname_spec='$libname$release$shared_ext$major' 12384 shlibpath_var=LD_LIBRARY_PATH 12385 shlibpath_overrides_runpath=yes 12386 hardcode_into_libs=yes 12387 # ldd complains unless libraries are executable 12388 postinstall_cmds='chmod +x $lib' 12389 ;; 12390 12391sunos4*) 12392 version_type=sunos 12393 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12395 shlibpath_var=LD_LIBRARY_PATH 12396 shlibpath_overrides_runpath=yes 12397 if test yes = "$with_gnu_ld"; then 12398 need_lib_prefix=no 12399 fi 12400 need_version=yes 12401 ;; 12402 12403sysv4 | sysv4.3*) 12404 version_type=linux # correct to gnu/linux during the next big refactor 12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12406 soname_spec='$libname$release$shared_ext$major' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 case $host_vendor in 12409 sni) 12410 shlibpath_overrides_runpath=no 12411 need_lib_prefix=no 12412 runpath_var=LD_RUN_PATH 12413 ;; 12414 siemens) 12415 need_lib_prefix=no 12416 ;; 12417 motorola) 12418 need_lib_prefix=no 12419 need_version=no 12420 shlibpath_overrides_runpath=no 12421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12422 ;; 12423 esac 12424 ;; 12425 12426sysv4*MP*) 12427 if test -d /usr/nec; then 12428 version_type=linux # correct to gnu/linux during the next big refactor 12429 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12430 soname_spec='$libname$shared_ext.$major' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 fi 12433 ;; 12434 12435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12436 version_type=sco 12437 need_lib_prefix=no 12438 need_version=no 12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12440 soname_spec='$libname$release$shared_ext$major' 12441 shlibpath_var=LD_LIBRARY_PATH 12442 shlibpath_overrides_runpath=yes 12443 hardcode_into_libs=yes 12444 if test yes = "$with_gnu_ld"; then 12445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12446 else 12447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12448 case $host_os in 12449 sco3.2v5*) 12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12451 ;; 12452 esac 12453 fi 12454 sys_lib_dlsearch_path_spec='/usr/lib' 12455 ;; 12456 12457tpf*) 12458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12459 version_type=linux # correct to gnu/linux during the next big refactor 12460 need_lib_prefix=no 12461 need_version=no 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12463 shlibpath_var=LD_LIBRARY_PATH 12464 shlibpath_overrides_runpath=no 12465 hardcode_into_libs=yes 12466 ;; 12467 12468uts4*) 12469 version_type=linux # correct to gnu/linux during the next big refactor 12470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12471 soname_spec='$libname$release$shared_ext$major' 12472 shlibpath_var=LD_LIBRARY_PATH 12473 ;; 12474 12475emscripten*) 12476 version_type=none 12477 need_lib_prefix=no 12478 need_version=no 12479 library_names_spec='$libname$release$shared_ext' 12480 soname_spec='$libname$release$shared_ext' 12481 finish_cmds= 12482 dynamic_linker="Emscripten linker" 12483 lt_prog_compiler_wl= 12484lt_prog_compiler_pic= 12485lt_prog_compiler_static= 12486 12487 12488 if test yes = "$GCC"; then 12489 lt_prog_compiler_wl='-Wl,' 12490 lt_prog_compiler_static='-static' 12491 12492 case $host_os in 12493 aix*) 12494 # All AIX code is PIC. 12495 if test ia64 = "$host_cpu"; then 12496 # AIX 5 now supports IA64 processor 12497 lt_prog_compiler_static='-Bstatic' 12498 fi 12499 lt_prog_compiler_pic='-fPIC' 12500 ;; 12501 12502 amigaos*) 12503 case $host_cpu in 12504 powerpc) 12505 # see comment about AmigaOS4 .so support 12506 lt_prog_compiler_pic='-fPIC' 12507 ;; 12508 m68k) 12509 # FIXME: we need at least 68020 code to build shared libraries, but 12510 # adding the '-m68020' flag to GCC prevents building anything better, 12511 # like '-m68040'. 12512 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12513 ;; 12514 esac 12515 ;; 12516 12517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12518 # PIC is the default for these OSes. 12519 ;; 12520 12521 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12522 # This hack is so that the source file can tell whether it is being 12523 # built for inclusion in a dll (and should export symbols for example). 12524 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12525 # (--disable-auto-import) libraries 12526 lt_prog_compiler_pic='-DDLL_EXPORT' 12527 case $host_os in 12528 os2*) 12529 lt_prog_compiler_static='$wl-static' 12530 ;; 12531 esac 12532 ;; 12533 12534 darwin* | rhapsody*) 12535 # PIC is the default on this platform 12536 # Common symbols not allowed in MH_DYLIB files 12537 lt_prog_compiler_pic='-fno-common' 12538 ;; 12539 12540 haiku*) 12541 # PIC is the default for Haiku. 12542 # The "-static" flag exists, but is broken. 12543 lt_prog_compiler_static= 12544 ;; 12545 12546 hpux*) 12547 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12548 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12549 # sets the default TLS model and affects inlining. 12550 case $host_cpu in 12551 hppa*64*) 12552 # +Z the default 12553 ;; 12554 *) 12555 lt_prog_compiler_pic='-fPIC' 12556 ;; 12557 esac 12558 ;; 12559 12560 interix[3-9]*) 12561 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12562 # Instead, we relocate shared libraries at runtime. 12563 ;; 12564 12565 msdosdjgpp*) 12566 # Just because we use GCC doesn't mean we suddenly get shared libraries 12567 # on systems that don't support them. 12568 lt_prog_compiler_can_build_shared=no 12569 enable_shared=no 12570 ;; 12571 12572 *nto* | *qnx*) 12573 # QNX uses GNU C++, but need to define -shared option too, otherwise 12574 # it will coredump. 12575 lt_prog_compiler_pic='-fPIC -shared' 12576 ;; 12577 12578 sysv4*MP*) 12579 if test -d /usr/nec; then 12580 lt_prog_compiler_pic=-Kconform_pic 12581 fi 12582 ;; 12583 12584 *) 12585 lt_prog_compiler_pic='-fPIC' 12586 ;; 12587 esac 12588 12589 case $cc_basename in 12590 nvcc*) # Cuda Compiler Driver 2.2 12591 lt_prog_compiler_wl='-Xlinker ' 12592 if test -n "$lt_prog_compiler_pic"; then 12593 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12594 fi 12595 ;; 12596 esac 12597 else 12598 # PORTME Check for flag to pass linker flags through the system compiler. 12599 case $host_os in 12600 aix*) 12601 lt_prog_compiler_wl='-Wl,' 12602 if test ia64 = "$host_cpu"; then 12603 # AIX 5 now supports IA64 processor 12604 lt_prog_compiler_static='-Bstatic' 12605 else 12606 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12607 fi 12608 ;; 12609 12610 darwin* | rhapsody*) 12611 # PIC is the default on this platform 12612 # Common symbols not allowed in MH_DYLIB files 12613 lt_prog_compiler_pic='-fno-common' 12614 case $cc_basename in 12615 nagfor*) 12616 # NAG Fortran compiler 12617 lt_prog_compiler_wl='-Wl,-Wl,,' 12618 lt_prog_compiler_pic='-PIC' 12619 lt_prog_compiler_static='-Bstatic' 12620 ;; 12621 esac 12622 ;; 12623 12624 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12625 # This hack is so that the source file can tell whether it is being 12626 # built for inclusion in a dll (and should export symbols for example). 12627 lt_prog_compiler_pic='-DDLL_EXPORT' 12628 case $host_os in 12629 os2*) 12630 lt_prog_compiler_static='$wl-static' 12631 ;; 12632 esac 12633 ;; 12634 12635 hpux9* | hpux10* | hpux11*) 12636 lt_prog_compiler_wl='-Wl,' 12637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12638 # not for PA HP-UX. 12639 case $host_cpu in 12640 hppa*64*|ia64*) 12641 # +Z the default 12642 ;; 12643 *) 12644 lt_prog_compiler_pic='+Z' 12645 ;; 12646 esac 12647 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12648 lt_prog_compiler_static='$wl-a ${wl}archive' 12649 ;; 12650 12651 irix5* | irix6* | nonstopux*) 12652 lt_prog_compiler_wl='-Wl,' 12653 # PIC (with -KPIC) is the default. 12654 lt_prog_compiler_static='-non_shared' 12655 ;; 12656 12657 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12658 case $cc_basename in 12659 # old Intel for x86_64, which still supported -KPIC. 12660 ecc*) 12661 lt_prog_compiler_wl='-Wl,' 12662 lt_prog_compiler_pic='-KPIC' 12663 lt_prog_compiler_static='-static' 12664 ;; 12665 *flang* | ftn | f18* | f95*) 12666 # Flang compiler. 12667 lt_prog_compiler_wl='-Wl,' 12668 lt_prog_compiler_pic='-fPIC' 12669 lt_prog_compiler_static='-static' 12670 ;; 12671 # icc used to be incompatible with GCC. 12672 # ICC 10 doesn't accept -KPIC any more. 12673 icc* | ifort*) 12674 lt_prog_compiler_wl='-Wl,' 12675 lt_prog_compiler_pic='-fPIC' 12676 lt_prog_compiler_static='-static' 12677 ;; 12678 # Lahey Fortran 8.1. 12679 lf95*) 12680 lt_prog_compiler_wl='-Wl,' 12681 lt_prog_compiler_pic='--shared' 12682 lt_prog_compiler_static='--static' 12683 ;; 12684 nagfor*) 12685 # NAG Fortran compiler 12686 lt_prog_compiler_wl='-Wl,-Wl,,' 12687 lt_prog_compiler_pic='-PIC' 12688 lt_prog_compiler_static='-Bstatic' 12689 ;; 12690 tcc*) 12691 # Fabrice Bellard et al's Tiny C Compiler 12692 lt_prog_compiler_wl='-Wl,' 12693 lt_prog_compiler_pic='-fPIC' 12694 lt_prog_compiler_static='-static' 12695 ;; 12696 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12697 # Portland Group compilers (*not* the Pentium gcc compiler, 12698 # which looks to be a dead project) 12699 lt_prog_compiler_wl='-Wl,' 12700 lt_prog_compiler_pic='-fpic' 12701 lt_prog_compiler_static='-Bstatic' 12702 ;; 12703 ccc*) 12704 lt_prog_compiler_wl='-Wl,' 12705 # All Alpha code is PIC. 12706 lt_prog_compiler_static='-non_shared' 12707 ;; 12708 xl* | bgxl* | bgf* | mpixl*) 12709 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12710 lt_prog_compiler_wl='-Wl,' 12711 lt_prog_compiler_pic='-qpic' 12712 lt_prog_compiler_static='-qstaticlink' 12713 ;; 12714 *) 12715 case `$CC -V 2>&1 | $SED 5q` in 12716 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12717 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12718 lt_prog_compiler_pic='-KPIC' 12719 lt_prog_compiler_static='-Bstatic' 12720 lt_prog_compiler_wl='' 12721 ;; 12722 *Sun\ F* | *Sun*Fortran*) 12723 lt_prog_compiler_pic='-KPIC' 12724 lt_prog_compiler_static='-Bstatic' 12725 lt_prog_compiler_wl='-Qoption ld ' 12726 ;; 12727 *Sun\ C*) 12728 # Sun C 5.9 12729 lt_prog_compiler_pic='-KPIC' 12730 lt_prog_compiler_static='-Bstatic' 12731 lt_prog_compiler_wl='-Wl,' 12732 ;; 12733 *Intel*\ [CF]*Compiler*) 12734 lt_prog_compiler_wl='-Wl,' 12735 lt_prog_compiler_pic='-fPIC' 12736 lt_prog_compiler_static='-static' 12737 ;; 12738 *Portland\ Group*) 12739 lt_prog_compiler_wl='-Wl,' 12740 lt_prog_compiler_pic='-fpic' 12741 lt_prog_compiler_static='-Bstatic' 12742 ;; 12743 esac 12744 ;; 12745 esac 12746 ;; 12747 12748 newsos6) 12749 lt_prog_compiler_pic='-KPIC' 12750 lt_prog_compiler_static='-Bstatic' 12751 ;; 12752 12753 *-mlibc) 12754 lt_prog_compiler_wl='-Wl,' 12755 lt_prog_compiler_pic='-fPIC' 12756 lt_prog_compiler_static='-static' 12757 ;; 12758 12759 *nto* | *qnx*) 12760 # QNX uses GNU C++, but need to define -shared option too, otherwise 12761 # it will coredump. 12762 lt_prog_compiler_pic='-fPIC -shared' 12763 ;; 12764 12765 osf3* | osf4* | osf5*) 12766 lt_prog_compiler_wl='-Wl,' 12767 # All OSF/1 code is PIC. 12768 lt_prog_compiler_static='-non_shared' 12769 ;; 12770 12771 rdos*) 12772 lt_prog_compiler_static='-non_shared' 12773 ;; 12774 12775 serenity*) 12776 ;; 12777 12778 solaris*) 12779 lt_prog_compiler_pic='-KPIC' 12780 lt_prog_compiler_static='-Bstatic' 12781 case $cc_basename in 12782 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12783 lt_prog_compiler_wl='-Qoption ld ';; 12784 *) 12785 lt_prog_compiler_wl='-Wl,';; 12786 esac 12787 ;; 12788 12789 sunos4*) 12790 lt_prog_compiler_wl='-Qoption ld ' 12791 lt_prog_compiler_pic='-PIC' 12792 lt_prog_compiler_static='-Bstatic' 12793 ;; 12794 12795 sysv4 | sysv4.2uw2* | sysv4.3*) 12796 lt_prog_compiler_wl='-Wl,' 12797 lt_prog_compiler_pic='-KPIC' 12798 lt_prog_compiler_static='-Bstatic' 12799 ;; 12800 12801 sysv4*MP*) 12802 if test -d /usr/nec; then 12803 lt_prog_compiler_pic='-Kconform_pic' 12804 lt_prog_compiler_static='-Bstatic' 12805 fi 12806 ;; 12807 12808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12809 lt_prog_compiler_wl='-Wl,' 12810 lt_prog_compiler_pic='-KPIC' 12811 lt_prog_compiler_static='-Bstatic' 12812 ;; 12813 12814 unicos*) 12815 lt_prog_compiler_wl='-Wl,' 12816 lt_prog_compiler_can_build_shared=no 12817 ;; 12818 12819 uts4*) 12820 lt_prog_compiler_pic='-pic' 12821 lt_prog_compiler_static='-Bstatic' 12822 ;; 12823 12824 *) 12825 lt_prog_compiler_can_build_shared=no 12826 ;; 12827 esac 12828 fi 12829 12830case $host_os in 12831 # For platforms that do not support PIC, -DPIC is meaningless: 12832 *djgpp*) 12833 lt_prog_compiler_pic= 12834 ;; 12835 *) 12836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12837 ;; 12838esac 12839 12840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12841printf %s "checking for $compiler option to produce PIC... " >&6; } 12842if test ${lt_cv_prog_compiler_pic+y} 12843then : 12844 printf %s "(cached) " >&6 12845else case e in #( 12846 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12847esac 12848fi 12849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12850printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12851lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12852 12853# 12854# Check to make sure the PIC flag actually works. 12855# 12856if test -n "$lt_prog_compiler_pic"; then 12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12858printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12859if test ${lt_cv_prog_compiler_pic_works+y} 12860then : 12861 printf %s "(cached) " >&6 12862else case e in #( 12863 e) lt_cv_prog_compiler_pic_works=no 12864 ac_outfile=conftest.$ac_objext 12865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12866 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12867 # Insert the option either (1) after the last *FLAGS variable, or 12868 # (2) before a word containing "conftest.", or (3) at the end. 12869 # Note that $ac_compile itself does not contain backslashes and begins 12870 # with a dollar sign (not a hyphen), so the echo should work correctly. 12871 # The option is referenced via a variable to avoid confusing sed. 12872 lt_compile=`echo "$ac_compile" | $SED \ 12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12875 -e 's:$: $lt_compiler_flag:'` 12876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12877 (eval "$lt_compile" 2>conftest.err) 12878 ac_status=$? 12879 cat conftest.err >&5 12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12881 if (exit $ac_status) && test -s "$ac_outfile"; then 12882 # The compiler can only warn and ignore the option if not recognized 12883 # So say no if there are warnings other than the usual output. 12884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12887 lt_cv_prog_compiler_pic_works=yes 12888 fi 12889 fi 12890 $RM conftest* 12891 ;; 12892esac 12893fi 12894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12895printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12896 12897if test yes = "$lt_cv_prog_compiler_pic_works"; then 12898 case $lt_prog_compiler_pic in 12899 "" | " "*) ;; 12900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12901 esac 12902else 12903 lt_prog_compiler_pic= 12904 lt_prog_compiler_can_build_shared=no 12905fi 12906 12907fi 12908 12909 12910 12911 12912 12913# 12914# Check to make sure the static flag actually works. 12915# 12916wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12918printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12919if test ${lt_cv_prog_compiler_static_works+y} 12920then : 12921 printf %s "(cached) " >&6 12922else case e in #( 12923 e) lt_cv_prog_compiler_static_works=no 12924 save_LDFLAGS=$LDFLAGS 12925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12926 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12928 # The linker can only warn and ignore the option if not recognized 12929 # So say no if there are warnings 12930 if test -s conftest.err; then 12931 # Append any errors to the config.log. 12932 cat conftest.err 1>&5 12933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12935 if diff conftest.exp conftest.er2 >/dev/null; then 12936 lt_cv_prog_compiler_static_works=yes 12937 fi 12938 else 12939 lt_cv_prog_compiler_static_works=yes 12940 fi 12941 fi 12942 $RM -r conftest* 12943 LDFLAGS=$save_LDFLAGS 12944 ;; 12945esac 12946fi 12947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12948printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12949 12950if test yes = "$lt_cv_prog_compiler_static_works"; then 12951 : 12952else 12953 lt_prog_compiler_static= 12954fi 12955 12956 12957 12958='-fPIC' 12959 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12960 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 12961 archive_cmds_need_lc=no 12962 no_undefined_flag= 12963 ;; 12964 12965*) 12966 dynamic_linker=no 12967 ;; 12968esac 12969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12970printf "%s\n" "$dynamic_linker" >&6; } 12971test no = "$dynamic_linker" && can_build_shared=no 12972 12973variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12974if test yes = "$GCC"; then 12975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12976fi 12977 12978if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12979 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12980fi 12981 12982if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12983 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12984fi 12985 12986# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12987configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12988 12989# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12990func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12991 12992# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12993configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13092printf %s "checking how to hardcode library paths into programs... " >&6; } 13093hardcode_action= 13094if test -n "$hardcode_libdir_flag_spec" || 13095 test -n "$runpath_var" || 13096 test yes = "$hardcode_automatic"; then 13097 13098 # We can hardcode non-existent directories. 13099 if test no != "$hardcode_direct" && 13100 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13101 # have to relink, otherwise we might link with an installed library 13102 # when we should be linking with a yet-to-be-installed one 13103 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13104 test no != "$hardcode_minus_L"; then 13105 # Linking always hardcodes the temporary library directory. 13106 hardcode_action=relink 13107 else 13108 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13109 hardcode_action=immediate 13110 fi 13111else 13112 # We cannot hardcode anything, or else we can only hardcode existing 13113 # directories. 13114 hardcode_action=unsupported 13115fi 13116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13117printf "%s\n" "$hardcode_action" >&6; } 13118 13119if test relink = "$hardcode_action" || 13120 test yes = "$inherit_rpath"; then 13121 # Fast installation is not supported 13122 enable_fast_install=no 13123elif test yes = "$shlibpath_overrides_runpath" || 13124 test no = "$enable_shared"; then 13125 # Fast installation is not necessary 13126 enable_fast_install=needless 13127fi 13128 13129 13130 13131 13132 13133 13134 if test yes != "$enable_dlopen"; then 13135 enable_dlopen=unknown 13136 enable_dlopen_self=unknown 13137 enable_dlopen_self_static=unknown 13138else 13139 lt_cv_dlopen=no 13140 lt_cv_dlopen_libs= 13141 13142 case $host_os in 13143 beos*) 13144 lt_cv_dlopen=load_add_on 13145 lt_cv_dlopen_libs= 13146 lt_cv_dlopen_self=yes 13147 ;; 13148 13149 mingw* | windows* | pw32* | cegcc*) 13150 lt_cv_dlopen=LoadLibrary 13151 lt_cv_dlopen_libs= 13152 ;; 13153 13154 cygwin*) 13155 lt_cv_dlopen=dlopen 13156 lt_cv_dlopen_libs= 13157 ;; 13158 13159 darwin*) 13160 # if libdl is installed we need to link against it 13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13162printf %s "checking for dlopen in -ldl... " >&6; } 13163if test ${ac_cv_lib_dl_dlopen+y} 13164then : 13165 printf %s "(cached) " >&6 13166else case e in #( 13167 e) ac_check_lib_save_LIBS=$LIBS 13168LIBS="-ldl $LIBS" 13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172/* Override any GCC internal prototype to avoid an error. 13173 Use char because int might match the return type of a GCC 13174 builtin and then its argument prototype would still apply. 13175 The 'extern "C"' is for builds by C++ compilers; 13176 although this is not generally supported in C code supporting it here 13177 has little cost and some practical benefit (sr 110532). */ 13178#ifdef __cplusplus 13179extern "C" 13180#endif 13181char dlopen (void); 13182int 13183main (void) 13184{ 13185return dlopen (); 13186 ; 13187 return 0; 13188} 13189_ACEOF 13190if ac_fn_c_try_link "$LINENO" 13191then : 13192 ac_cv_lib_dl_dlopen=yes 13193else case e in #( 13194 e) ac_cv_lib_dl_dlopen=no ;; 13195esac 13196fi 13197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13198 conftest$ac_exeext conftest.$ac_ext 13199LIBS=$ac_check_lib_save_LIBS ;; 13200esac 13201fi 13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13203printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13204if test "x$ac_cv_lib_dl_dlopen" = xyes 13205then : 13206 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13207else case e in #( 13208 e) 13209 lt_cv_dlopen=dyld 13210 lt_cv_dlopen_libs= 13211 lt_cv_dlopen_self=yes 13212 ;; 13213esac 13214fi 13215 13216 ;; 13217 13218 tpf*) 13219 # Don't try to run any link tests for TPF. We know it's impossible 13220 # because TPF is a cross-compiler, and we know how we open DSOs. 13221 lt_cv_dlopen=dlopen 13222 lt_cv_dlopen_libs= 13223 lt_cv_dlopen_self=no 13224 ;; 13225 13226 *) 13227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13228if test "x$ac_cv_func_shl_load" = xyes 13229then : 13230 lt_cv_dlopen=shl_load 13231else case e in #( 13232 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13233printf %s "checking for shl_load in -ldld... " >&6; } 13234if test ${ac_cv_lib_dld_shl_load+y} 13235then : 13236 printf %s "(cached) " >&6 13237else case e in #( 13238 e) ac_check_lib_save_LIBS=$LIBS 13239LIBS="-ldld $LIBS" 13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242 13243/* Override any GCC internal prototype to avoid an error. 13244 Use char because int might match the return type of a GCC 13245 builtin and then its argument prototype would still apply. 13246 The 'extern "C"' is for builds by C++ compilers; 13247 although this is not generally supported in C code supporting it here 13248 has little cost and some practical benefit (sr 110532). */ 13249#ifdef __cplusplus 13250extern "C" 13251#endif 13252char shl_load (void); 13253int 13254main (void) 13255{ 13256return shl_load (); 13257 ; 13258 return 0; 13259} 13260_ACEOF 13261if ac_fn_c_try_link "$LINENO" 13262then : 13263 ac_cv_lib_dld_shl_load=yes 13264else case e in #( 13265 e) ac_cv_lib_dld_shl_load=no ;; 13266esac 13267fi 13268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13269 conftest$ac_exeext conftest.$ac_ext 13270LIBS=$ac_check_lib_save_LIBS ;; 13271esac 13272fi 13273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13274printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13275if test "x$ac_cv_lib_dld_shl_load" = xyes 13276then : 13277 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13278else case e in #( 13279 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13280if test "x$ac_cv_func_dlopen" = xyes 13281then : 13282 lt_cv_dlopen=dlopen 13283else case e in #( 13284 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13285printf %s "checking for dlopen in -ldl... " >&6; } 13286if test ${ac_cv_lib_dl_dlopen+y} 13287then : 13288 printf %s "(cached) " >&6 13289else case e in #( 13290 e) ac_check_lib_save_LIBS=$LIBS 13291LIBS="-ldl $LIBS" 13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13293/* end confdefs.h. */ 13294 13295/* Override any GCC internal prototype to avoid an error. 13296 Use char because int might match the return type of a GCC 13297 builtin and then its argument prototype would still apply. 13298 The 'extern "C"' is for builds by C++ compilers; 13299 although this is not generally supported in C code supporting it here 13300 has little cost and some practical benefit (sr 110532). */ 13301#ifdef __cplusplus 13302extern "C" 13303#endif 13304char dlopen (void); 13305int 13306main (void) 13307{ 13308return dlopen (); 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_link "$LINENO" 13314then : 13315 ac_cv_lib_dl_dlopen=yes 13316else case e in #( 13317 e) ac_cv_lib_dl_dlopen=no ;; 13318esac 13319fi 13320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13321 conftest$ac_exeext conftest.$ac_ext 13322LIBS=$ac_check_lib_save_LIBS ;; 13323esac 13324fi 13325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13326printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13327if test "x$ac_cv_lib_dl_dlopen" = xyes 13328then : 13329 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13330else case e in #( 13331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13332printf %s "checking for dlopen in -lsvld... " >&6; } 13333if test ${ac_cv_lib_svld_dlopen+y} 13334then : 13335 printf %s "(cached) " >&6 13336else case e in #( 13337 e) ac_check_lib_save_LIBS=$LIBS 13338LIBS="-lsvld $LIBS" 13339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13340/* end confdefs.h. */ 13341 13342/* Override any GCC internal prototype to avoid an error. 13343 Use char because int might match the return type of a GCC 13344 builtin and then its argument prototype would still apply. 13345 The 'extern "C"' is for builds by C++ compilers; 13346 although this is not generally supported in C code supporting it here 13347 has little cost and some practical benefit (sr 110532). */ 13348#ifdef __cplusplus 13349extern "C" 13350#endif 13351char dlopen (void); 13352int 13353main (void) 13354{ 13355return dlopen (); 13356 ; 13357 return 0; 13358} 13359_ACEOF 13360if ac_fn_c_try_link "$LINENO" 13361then : 13362 ac_cv_lib_svld_dlopen=yes 13363else case e in #( 13364 e) ac_cv_lib_svld_dlopen=no ;; 13365esac 13366fi 13367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13368 conftest$ac_exeext conftest.$ac_ext 13369LIBS=$ac_check_lib_save_LIBS ;; 13370esac 13371fi 13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13373printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13374if test "x$ac_cv_lib_svld_dlopen" = xyes 13375then : 13376 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13377else case e in #( 13378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13379printf %s "checking for dld_link in -ldld... " >&6; } 13380if test ${ac_cv_lib_dld_dld_link+y} 13381then : 13382 printf %s "(cached) " >&6 13383else case e in #( 13384 e) ac_check_lib_save_LIBS=$LIBS 13385LIBS="-ldld $LIBS" 13386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387/* end confdefs.h. */ 13388 13389/* Override any GCC internal prototype to avoid an error. 13390 Use char because int might match the return type of a GCC 13391 builtin and then its argument prototype would still apply. 13392 The 'extern "C"' is for builds by C++ compilers; 13393 although this is not generally supported in C code supporting it here 13394 has little cost and some practical benefit (sr 110532). */ 13395#ifdef __cplusplus 13396extern "C" 13397#endif 13398char dld_link (void); 13399int 13400main (void) 13401{ 13402return dld_link (); 13403 ; 13404 return 0; 13405} 13406_ACEOF 13407if ac_fn_c_try_link "$LINENO" 13408then : 13409 ac_cv_lib_dld_dld_link=yes 13410else case e in #( 13411 e) ac_cv_lib_dld_dld_link=no ;; 13412esac 13413fi 13414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13415 conftest$ac_exeext conftest.$ac_ext 13416LIBS=$ac_check_lib_save_LIBS ;; 13417esac 13418fi 13419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13420printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13421if test "x$ac_cv_lib_dld_dld_link" = xyes 13422then : 13423 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13424fi 13425 13426 ;; 13427esac 13428fi 13429 13430 ;; 13431esac 13432fi 13433 13434 ;; 13435esac 13436fi 13437 13438 ;; 13439esac 13440fi 13441 13442 ;; 13443esac 13444fi 13445 13446 ;; 13447 esac 13448 13449 if test no = "$lt_cv_dlopen"; then 13450 enable_dlopen=no 13451 else 13452 enable_dlopen=yes 13453 fi 13454 13455 case $lt_cv_dlopen in 13456 dlopen) 13457 save_CPPFLAGS=$CPPFLAGS 13458 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13459 13460 save_LDFLAGS=$LDFLAGS 13461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13462 13463 save_LIBS=$LIBS 13464 LIBS="$lt_cv_dlopen_libs $LIBS" 13465 13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13467printf %s "checking whether a program can dlopen itself... " >&6; } 13468if test ${lt_cv_dlopen_self+y} 13469then : 13470 printf %s "(cached) " >&6 13471else case e in #( 13472 e) if test yes = "$cross_compiling"; then : 13473 lt_cv_dlopen_self=cross 13474else 13475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13476 lt_status=$lt_dlunknown 13477 cat > conftest.$ac_ext <<_LT_EOF 13478#line $LINENO "configure" 13479#include "confdefs.h" 13480 13481#if HAVE_DLFCN_H 13482#include <dlfcn.h> 13483#endif 13484 13485#include <stdio.h> 13486 13487#ifdef RTLD_GLOBAL 13488# define LT_DLGLOBAL RTLD_GLOBAL 13489#else 13490# ifdef DL_GLOBAL 13491# define LT_DLGLOBAL DL_GLOBAL 13492# else 13493# define LT_DLGLOBAL 0 13494# endif 13495#endif 13496 13497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13498 find out it does not work in some platform. */ 13499#ifndef LT_DLLAZY_OR_NOW 13500# ifdef RTLD_LAZY 13501# define LT_DLLAZY_OR_NOW RTLD_LAZY 13502# else 13503# ifdef DL_LAZY 13504# define LT_DLLAZY_OR_NOW DL_LAZY 13505# else 13506# ifdef RTLD_NOW 13507# define LT_DLLAZY_OR_NOW RTLD_NOW 13508# else 13509# ifdef DL_NOW 13510# define LT_DLLAZY_OR_NOW DL_NOW 13511# else 13512# define LT_DLLAZY_OR_NOW 0 13513# endif 13514# endif 13515# endif 13516# endif 13517#endif 13518 13519/* When -fvisibility=hidden is used, assume the code has been annotated 13520 correspondingly for the symbols needed. */ 13521#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13522int fnord (void) __attribute__((visibility("default"))); 13523#endif 13524 13525int fnord (void) { return 42; } 13526int main (void) 13527{ 13528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13529 int status = $lt_dlunknown; 13530 13531 if (self) 13532 { 13533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13534 else 13535 { 13536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13537 else puts (dlerror ()); 13538 } 13539 /* dlclose (self); */ 13540 } 13541 else 13542 puts (dlerror ()); 13543 13544 return status; 13545} 13546_LT_EOF 13547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13548 (eval $ac_link) 2>&5 13549 ac_status=$? 13550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13552 (./conftest; exit; ) >&5 2>/dev/null 13553 lt_status=$? 13554 case x$lt_status in 13555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13558 esac 13559 else : 13560 # compilation failed 13561 lt_cv_dlopen_self=no 13562 fi 13563fi 13564rm -fr conftest* 13565 13566 ;; 13567esac 13568fi 13569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13570printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13571 13572 if test yes = "$lt_cv_dlopen_self"; then 13573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13575printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13576if test ${lt_cv_dlopen_self_static+y} 13577then : 13578 printf %s "(cached) " >&6 13579else case e in #( 13580 e) if test yes = "$cross_compiling"; then : 13581 lt_cv_dlopen_self_static=cross 13582else 13583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13584 lt_status=$lt_dlunknown 13585 cat > conftest.$ac_ext <<_LT_EOF 13586#line $LINENO "configure" 13587#include "confdefs.h" 13588 13589#if HAVE_DLFCN_H 13590#include <dlfcn.h> 13591#endif 13592 13593#include <stdio.h> 13594 13595#ifdef RTLD_GLOBAL 13596# define LT_DLGLOBAL RTLD_GLOBAL 13597#else 13598# ifdef DL_GLOBAL 13599# define LT_DLGLOBAL DL_GLOBAL 13600# else 13601# define LT_DLGLOBAL 0 13602# endif 13603#endif 13604 13605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13606 find out it does not work in some platform. */ 13607#ifndef LT_DLLAZY_OR_NOW 13608# ifdef RTLD_LAZY 13609# define LT_DLLAZY_OR_NOW RTLD_LAZY 13610# else 13611# ifdef DL_LAZY 13612# define LT_DLLAZY_OR_NOW DL_LAZY 13613# else 13614# ifdef RTLD_NOW 13615# define LT_DLLAZY_OR_NOW RTLD_NOW 13616# else 13617# ifdef DL_NOW 13618# define LT_DLLAZY_OR_NOW DL_NOW 13619# else 13620# define LT_DLLAZY_OR_NOW 0 13621# endif 13622# endif 13623# endif 13624# endif 13625#endif 13626 13627/* When -fvisibility=hidden is used, assume the code has been annotated 13628 correspondingly for the symbols needed. */ 13629#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13630int fnord (void) __attribute__((visibility("default"))); 13631#endif 13632 13633int fnord (void) { return 42; } 13634int main (void) 13635{ 13636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13637 int status = $lt_dlunknown; 13638 13639 if (self) 13640 { 13641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13642 else 13643 { 13644 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13645 else puts (dlerror ()); 13646 } 13647 /* dlclose (self); */ 13648 } 13649 else 13650 puts (dlerror ()); 13651 13652 return status; 13653} 13654_LT_EOF 13655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13656 (eval $ac_link) 2>&5 13657 ac_status=$? 13658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13659 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13660 (./conftest; exit; ) >&5 2>/dev/null 13661 lt_status=$? 13662 case x$lt_status in 13663 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13664 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13665 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13666 esac 13667 else : 13668 # compilation failed 13669 lt_cv_dlopen_self_static=no 13670 fi 13671fi 13672rm -fr conftest* 13673 13674 ;; 13675esac 13676fi 13677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13678printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13679 fi 13680 13681 CPPFLAGS=$save_CPPFLAGS 13682 LDFLAGS=$save_LDFLAGS 13683 LIBS=$save_LIBS 13684 ;; 13685 esac 13686 13687 case $lt_cv_dlopen_self in 13688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13689 *) enable_dlopen_self=unknown ;; 13690 esac 13691 13692 case $lt_cv_dlopen_self_static in 13693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13694 *) enable_dlopen_self_static=unknown ;; 13695 esac 13696fi 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714striplib= 13715old_striplib= 13716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13717printf %s "checking whether stripping libraries is possible... " >&6; } 13718if test -z "$STRIP"; then 13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13720printf "%s\n" "no" >&6; } 13721else 13722 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13723 old_striplib="$STRIP --strip-debug" 13724 striplib="$STRIP --strip-unneeded" 13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13726printf "%s\n" "yes" >&6; } 13727 else 13728 case $host_os in 13729 darwin*) 13730 # FIXME - insert some real tests, host_os isn't really good enough 13731 striplib="$STRIP -x" 13732 old_striplib="$STRIP -S" 13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13734printf "%s\n" "yes" >&6; } 13735 ;; 13736 freebsd*) 13737 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13738 old_striplib="$STRIP --strip-debug" 13739 striplib="$STRIP --strip-unneeded" 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13741printf "%s\n" "yes" >&6; } 13742 else 13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13744printf "%s\n" "no" >&6; } 13745 fi 13746 ;; 13747 *) 13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13749printf "%s\n" "no" >&6; } 13750 ;; 13751 esac 13752 fi 13753fi 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 # Report what library types will actually be built 13767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13768printf %s "checking if libtool supports shared libraries... " >&6; } 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13770printf "%s\n" "$can_build_shared" >&6; } 13771 13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13773printf %s "checking whether to build shared libraries... " >&6; } 13774 test no = "$can_build_shared" && enable_shared=no 13775 13776 # On AIX, shared libraries and static libraries use the same namespace, and 13777 # are all built from PIC. 13778 case $host_os in 13779 aix3*) 13780 test yes = "$enable_shared" && enable_static=no 13781 if test -n "$RANLIB"; then 13782 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13783 postinstall_cmds='$RANLIB $lib' 13784 fi 13785 ;; 13786 13787 aix[4-9]*) 13788 if test ia64 != "$host_cpu"; then 13789 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13790 yes,aix,yes) ;; # shared object as lib.so file only 13791 yes,svr4,*) ;; # shared object as lib.so archive member only 13792 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13793 esac 13794 fi 13795 ;; 13796 esac 13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13798printf "%s\n" "$enable_shared" >&6; } 13799 13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13801printf %s "checking whether to build static libraries... " >&6; } 13802 # Make sure either enable_shared or enable_static is yes. 13803 test yes = "$enable_shared" || enable_static=yes 13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13805printf "%s\n" "$enable_static" >&6; } 13806 13807 13808 13809 13810fi 13811ac_ext=c 13812ac_cpp='$CPP $CPPFLAGS' 13813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13815ac_compiler_gnu=$ac_cv_c_compiler_gnu 13816 13817CC=$lt_save_CC 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 ac_config_commands="$ac_config_commands libtool" 13834 13835 13836 13837 13838# Only expand once: 13839 13840 13841 13842# Require xorg-macros minimum of 1.12 for DocBook external references 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13855printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13856if test ${ac_cv_c_undeclared_builtin_options+y} 13857then : 13858 printf %s "(cached) " >&6 13859else case e in #( 13860 e) ac_save_CFLAGS=$CFLAGS 13861 ac_cv_c_undeclared_builtin_options='cannot detect' 13862 for ac_arg in '' -fno-builtin; do 13863 CFLAGS="$ac_save_CFLAGS $ac_arg" 13864 # This test program should *not* compile successfully. 13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867 13868int 13869main (void) 13870{ 13871(void) strchr; 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876if ac_fn_c_try_compile "$LINENO" 13877then : 13878 13879else case e in #( 13880 e) # This test program should compile successfully. 13881 # No library function is consistently available on 13882 # freestanding implementations, so test against a dummy 13883 # declaration. Include always-available headers on the 13884 # off chance that they somehow elicit warnings. 13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13886/* end confdefs.h. */ 13887#include <float.h> 13888#include <limits.h> 13889#include <stdarg.h> 13890#include <stddef.h> 13891extern void ac_decl (int, char *); 13892 13893int 13894main (void) 13895{ 13896(void) ac_decl (0, (char *) 0); 13897 (void) ac_decl; 13898 13899 ; 13900 return 0; 13901} 13902_ACEOF 13903if ac_fn_c_try_compile "$LINENO" 13904then : 13905 if test x"$ac_arg" = x 13906then : 13907 ac_cv_c_undeclared_builtin_options='none needed' 13908else case e in #( 13909 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13910esac 13911fi 13912 break 13913fi 13914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13915esac 13916fi 13917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13918 done 13919 CFLAGS=$ac_save_CFLAGS 13920 ;; 13921esac 13922fi 13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13924printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13925 case $ac_cv_c_undeclared_builtin_options in #( 13926 'cannot detect') : 13927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13928printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13929as_fn_error $? "cannot make $CC report undeclared builtins 13930See 'config.log' for more details" "$LINENO" 5; } ;; #( 13931 'none needed') : 13932 ac_c_undeclared_builtin_options='' ;; #( 13933 *) : 13934 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13935esac 13936 13937 13938 13939 13940 13941ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13942if test "x$ac_cv_have_decl___clang__" = xyes 13943then : 13944 CLANGCC="yes" 13945else case e in #( 13946 e) CLANGCC="no" ;; 13947esac 13948fi 13949ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13950if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13951then : 13952 INTELCC="yes" 13953else case e in #( 13954 e) INTELCC="no" ;; 13955esac 13956fi 13957ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13958if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13959then : 13960 SUNCC="yes" 13961else case e in #( 13962 e) SUNCC="no" ;; 13963esac 13964fi 13965 13966 13967 13968 13969 13970 13971 13972 13973if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13974 if test -n "$ac_tool_prefix"; then 13975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13976set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13978printf %s "checking for $ac_word... " >&6; } 13979if test ${ac_cv_path_PKG_CONFIG+y} 13980then : 13981 printf %s "(cached) " >&6 13982else case e in #( 13983 e) case $PKG_CONFIG in 13984 [\\/]* | ?:[\\/]*) 13985 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13986 ;; 13987 *) 13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13989for as_dir in $PATH 13990do 13991 IFS=$as_save_IFS 13992 case $as_dir in #((( 13993 '') as_dir=./ ;; 13994 */) ;; 13995 *) as_dir=$as_dir/ ;; 13996 esac 13997 for ac_exec_ext in '' $ac_executable_extensions; do 13998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13999 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14001 break 2 14002 fi 14003done 14004 done 14005IFS=$as_save_IFS 14006 14007 ;; 14008esac ;; 14009esac 14010fi 14011PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14012if test -n "$PKG_CONFIG"; then 14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14014printf "%s\n" "$PKG_CONFIG" >&6; } 14015else 14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14017printf "%s\n" "no" >&6; } 14018fi 14019 14020 14021fi 14022if test -z "$ac_cv_path_PKG_CONFIG"; then 14023 ac_pt_PKG_CONFIG=$PKG_CONFIG 14024 # Extract the first word of "pkg-config", so it can be a program name with args. 14025set dummy pkg-config; ac_word=$2 14026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14027printf %s "checking for $ac_word... " >&6; } 14028if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14029then : 14030 printf %s "(cached) " >&6 14031else case e in #( 14032 e) case $ac_pt_PKG_CONFIG in 14033 [\\/]* | ?:[\\/]*) 14034 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14035 ;; 14036 *) 14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14038for as_dir in $PATH 14039do 14040 IFS=$as_save_IFS 14041 case $as_dir in #((( 14042 '') as_dir=./ ;; 14043 */) ;; 14044 *) as_dir=$as_dir/ ;; 14045 esac 14046 for ac_exec_ext in '' $ac_executable_extensions; do 14047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14048 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14050 break 2 14051 fi 14052done 14053 done 14054IFS=$as_save_IFS 14055 14056 ;; 14057esac ;; 14058esac 14059fi 14060ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14061if test -n "$ac_pt_PKG_CONFIG"; then 14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14063printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14064else 14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14066printf "%s\n" "no" >&6; } 14067fi 14068 14069 if test "x$ac_pt_PKG_CONFIG" = x; then 14070 PKG_CONFIG="" 14071 else 14072 case $cross_compiling:$ac_tool_warned in 14073yes:) 14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14075printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14076ac_tool_warned=yes ;; 14077esac 14078 PKG_CONFIG=$ac_pt_PKG_CONFIG 14079 fi 14080else 14081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14082fi 14083 14084fi 14085if test -n "$PKG_CONFIG"; then 14086 _pkg_min_version=0.9.0 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14088printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14091printf "%s\n" "yes" >&6; } 14092 else 14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14094printf "%s\n" "no" >&6; } 14095 PKG_CONFIG="" 14096 fi 14097fi 14098 14099 14100 14101 14102 14103# Check whether --enable-selective-werror was given. 14104if test ${enable_selective_werror+y} 14105then : 14106 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14107else case e in #( 14108 e) SELECTIVE_WERROR=yes ;; 14109esac 14110fi 14111 14112 14113 14114 14115 14116# -v is too short to test reliably with XORG_TESTSET_CFLAG 14117if test "x$SUNCC" = "xyes"; then 14118 BASE_CFLAGS="-v" 14119else 14120 BASE_CFLAGS="" 14121fi 14122 14123# This chunk of warnings were those that existed in the legacy CWARNFLAGS 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137xorg_testset_save_CFLAGS="$CFLAGS" 14138 14139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14143if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14144then : 14145 printf %s "(cached) " >&6 14146else case e in #( 14147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149int i; 14150_ACEOF 14151if ac_fn_c_try_compile "$LINENO" 14152then : 14153 xorg_cv_cc_flag_unknown_warning_option=yes 14154else case e in #( 14155 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14156esac 14157fi 14158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14159esac 14160fi 14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14162printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14164 CFLAGS="$xorg_testset_save_CFLAGS" 14165fi 14166 14167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 fi 14171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14173printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14174if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14175then : 14176 printf %s "(cached) " >&6 14177else case e in #( 14178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14179/* end confdefs.h. */ 14180int i; 14181_ACEOF 14182if ac_fn_c_try_compile "$LINENO" 14183then : 14184 xorg_cv_cc_flag_unused_command_line_argument=yes 14185else case e in #( 14186 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14187esac 14188fi 14189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14190esac 14191fi 14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14195 CFLAGS="$xorg_testset_save_CFLAGS" 14196fi 14197 14198found="no" 14199 14200 if test $found = "no" ; then 14201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14203 fi 14204 14205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14207 fi 14208 14209 CFLAGS="$CFLAGS -Wall" 14210 14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14212printf %s "checking if $CC supports -Wall... " >&6; } 14213 cacheid=xorg_cv_cc_flag__Wall 14214 if eval test \${$cacheid+y} 14215then : 14216 printf %s "(cached) " >&6 14217else case e in #( 14218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14219/* end confdefs.h. */ 14220int i; 14221int 14222main (void) 14223{ 14224 14225 ; 14226 return 0; 14227} 14228_ACEOF 14229if ac_fn_c_try_link "$LINENO" 14230then : 14231 eval $cacheid=yes 14232else case e in #( 14233 e) eval $cacheid=no ;; 14234esac 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14237 conftest$ac_exeext conftest.$ac_ext ;; 14238esac 14239fi 14240 14241 14242 CFLAGS="$xorg_testset_save_CFLAGS" 14243 14244 eval supported=\$$cacheid 14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14246printf "%s\n" "$supported" >&6; } 14247 if test "$supported" = "yes" ; then 14248 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14249 found="yes" 14250 fi 14251 fi 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267xorg_testset_save_CFLAGS="$CFLAGS" 14268 14269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14273if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14274then : 14275 printf %s "(cached) " >&6 14276else case e in #( 14277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14278/* end confdefs.h. */ 14279int i; 14280_ACEOF 14281if ac_fn_c_try_compile "$LINENO" 14282then : 14283 xorg_cv_cc_flag_unknown_warning_option=yes 14284else case e in #( 14285 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14286esac 14287fi 14288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14289esac 14290fi 14291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14294 CFLAGS="$xorg_testset_save_CFLAGS" 14295fi 14296 14297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14300 fi 14301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14305then : 14306 printf %s "(cached) " >&6 14307else case e in #( 14308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14309/* end confdefs.h. */ 14310int i; 14311_ACEOF 14312if ac_fn_c_try_compile "$LINENO" 14313then : 14314 xorg_cv_cc_flag_unused_command_line_argument=yes 14315else case e in #( 14316 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14317esac 14318fi 14319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14320esac 14321fi 14322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14325 CFLAGS="$xorg_testset_save_CFLAGS" 14326fi 14327 14328found="no" 14329 14330 if test $found = "no" ; then 14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 14335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14337 fi 14338 14339 CFLAGS="$CFLAGS -Wpointer-arith" 14340 14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14342printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14343 cacheid=xorg_cv_cc_flag__Wpointer_arith 14344 if eval test \${$cacheid+y} 14345then : 14346 printf %s "(cached) " >&6 14347else case e in #( 14348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14349/* end confdefs.h. */ 14350int i; 14351int 14352main (void) 14353{ 14354 14355 ; 14356 return 0; 14357} 14358_ACEOF 14359if ac_fn_c_try_link "$LINENO" 14360then : 14361 eval $cacheid=yes 14362else case e in #( 14363 e) eval $cacheid=no ;; 14364esac 14365fi 14366rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14367 conftest$ac_exeext conftest.$ac_ext ;; 14368esac 14369fi 14370 14371 14372 CFLAGS="$xorg_testset_save_CFLAGS" 14373 14374 eval supported=\$$cacheid 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14376printf "%s\n" "$supported" >&6; } 14377 if test "$supported" = "yes" ; then 14378 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14379 found="yes" 14380 fi 14381 fi 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397xorg_testset_save_CFLAGS="$CFLAGS" 14398 14399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14404then : 14405 printf %s "(cached) " >&6 14406else case e in #( 14407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408/* end confdefs.h. */ 14409int i; 14410_ACEOF 14411if ac_fn_c_try_compile "$LINENO" 14412then : 14413 xorg_cv_cc_flag_unknown_warning_option=yes 14414else case e in #( 14415 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14416esac 14417fi 14418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14419esac 14420fi 14421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14424 CFLAGS="$xorg_testset_save_CFLAGS" 14425fi 14426 14427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14430 fi 14431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14434if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14435then : 14436 printf %s "(cached) " >&6 14437else case e in #( 14438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440int i; 14441_ACEOF 14442if ac_fn_c_try_compile "$LINENO" 14443then : 14444 xorg_cv_cc_flag_unused_command_line_argument=yes 14445else case e in #( 14446 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14447esac 14448fi 14449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14450esac 14451fi 14452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14455 CFLAGS="$xorg_testset_save_CFLAGS" 14456fi 14457 14458found="no" 14459 14460 if test $found = "no" ; then 14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14463 fi 14464 14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14467 fi 14468 14469 CFLAGS="$CFLAGS -Wmissing-declarations" 14470 14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14472printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14473 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14474 if eval test \${$cacheid+y} 14475then : 14476 printf %s "(cached) " >&6 14477else case e in #( 14478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14479/* end confdefs.h. */ 14480int i; 14481int 14482main (void) 14483{ 14484 14485 ; 14486 return 0; 14487} 14488_ACEOF 14489if ac_fn_c_try_link "$LINENO" 14490then : 14491 eval $cacheid=yes 14492else case e in #( 14493 e) eval $cacheid=no ;; 14494esac 14495fi 14496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14497 conftest$ac_exeext conftest.$ac_ext ;; 14498esac 14499fi 14500 14501 14502 CFLAGS="$xorg_testset_save_CFLAGS" 14503 14504 eval supported=\$$cacheid 14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14506printf "%s\n" "$supported" >&6; } 14507 if test "$supported" = "yes" ; then 14508 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14509 found="yes" 14510 fi 14511 fi 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527xorg_testset_save_CFLAGS="$CFLAGS" 14528 14529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14533if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14534then : 14535 printf %s "(cached) " >&6 14536else case e in #( 14537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14538/* end confdefs.h. */ 14539int i; 14540_ACEOF 14541if ac_fn_c_try_compile "$LINENO" 14542then : 14543 xorg_cv_cc_flag_unknown_warning_option=yes 14544else case e in #( 14545 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14546esac 14547fi 14548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14549esac 14550fi 14551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14560 fi 14561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14564if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14565then : 14566 printf %s "(cached) " >&6 14567else case e in #( 14568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14569/* end confdefs.h. */ 14570int i; 14571_ACEOF 14572if ac_fn_c_try_compile "$LINENO" 14573then : 14574 xorg_cv_cc_flag_unused_command_line_argument=yes 14575else case e in #( 14576 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14577esac 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14580esac 14581fi 14582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14585 CFLAGS="$xorg_testset_save_CFLAGS" 14586fi 14587 14588found="no" 14589 14590 if test $found = "no" ; then 14591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14593 fi 14594 14595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14597 fi 14598 14599 CFLAGS="$CFLAGS -Wformat=2" 14600 14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14602printf %s "checking if $CC supports -Wformat=2... " >&6; } 14603 cacheid=xorg_cv_cc_flag__Wformat_2 14604 if eval test \${$cacheid+y} 14605then : 14606 printf %s "(cached) " >&6 14607else case e in #( 14608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610int i; 14611int 14612main (void) 14613{ 14614 14615 ; 14616 return 0; 14617} 14618_ACEOF 14619if ac_fn_c_try_link "$LINENO" 14620then : 14621 eval $cacheid=yes 14622else case e in #( 14623 e) eval $cacheid=no ;; 14624esac 14625fi 14626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14627 conftest$ac_exeext conftest.$ac_ext ;; 14628esac 14629fi 14630 14631 14632 CFLAGS="$xorg_testset_save_CFLAGS" 14633 14634 eval supported=\$$cacheid 14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14636printf "%s\n" "$supported" >&6; } 14637 if test "$supported" = "yes" ; then 14638 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14639 found="yes" 14640 fi 14641 fi 14642 14643 if test $found = "no" ; then 14644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14646 fi 14647 14648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14650 fi 14651 14652 CFLAGS="$CFLAGS -Wformat" 14653 14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14655printf %s "checking if $CC supports -Wformat... " >&6; } 14656 cacheid=xorg_cv_cc_flag__Wformat 14657 if eval test \${$cacheid+y} 14658then : 14659 printf %s "(cached) " >&6 14660else case e in #( 14661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14662/* end confdefs.h. */ 14663int i; 14664int 14665main (void) 14666{ 14667 14668 ; 14669 return 0; 14670} 14671_ACEOF 14672if ac_fn_c_try_link "$LINENO" 14673then : 14674 eval $cacheid=yes 14675else case e in #( 14676 e) eval $cacheid=no ;; 14677esac 14678fi 14679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14680 conftest$ac_exeext conftest.$ac_ext ;; 14681esac 14682fi 14683 14684 14685 CFLAGS="$xorg_testset_save_CFLAGS" 14686 14687 eval supported=\$$cacheid 14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14689printf "%s\n" "$supported" >&6; } 14690 if test "$supported" = "yes" ; then 14691 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14692 found="yes" 14693 fi 14694 fi 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712xorg_testset_save_CFLAGS="$CFLAGS" 14713 14714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14719then : 14720 printf %s "(cached) " >&6 14721else case e in #( 14722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724int i; 14725_ACEOF 14726if ac_fn_c_try_compile "$LINENO" 14727then : 14728 xorg_cv_cc_flag_unknown_warning_option=yes 14729else case e in #( 14730 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14731esac 14732fi 14733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14734esac 14735fi 14736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14739 CFLAGS="$xorg_testset_save_CFLAGS" 14740fi 14741 14742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 fi 14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14749if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14750then : 14751 printf %s "(cached) " >&6 14752else case e in #( 14753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14754/* end confdefs.h. */ 14755int i; 14756_ACEOF 14757if ac_fn_c_try_compile "$LINENO" 14758then : 14759 xorg_cv_cc_flag_unused_command_line_argument=yes 14760else case e in #( 14761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14762esac 14763fi 14764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14765esac 14766fi 14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14770 CFLAGS="$xorg_testset_save_CFLAGS" 14771fi 14772 14773found="no" 14774 14775 if test $found = "no" ; then 14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14778 fi 14779 14780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14782 fi 14783 14784 CFLAGS="$CFLAGS -Wstrict-prototypes" 14785 14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14787printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14788 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14789 if eval test \${$cacheid+y} 14790then : 14791 printf %s "(cached) " >&6 14792else case e in #( 14793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795int i; 14796int 14797main (void) 14798{ 14799 14800 ; 14801 return 0; 14802} 14803_ACEOF 14804if ac_fn_c_try_link "$LINENO" 14805then : 14806 eval $cacheid=yes 14807else case e in #( 14808 e) eval $cacheid=no ;; 14809esac 14810fi 14811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14812 conftest$ac_exeext conftest.$ac_ext ;; 14813esac 14814fi 14815 14816 14817 CFLAGS="$xorg_testset_save_CFLAGS" 14818 14819 eval supported=\$$cacheid 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14821printf "%s\n" "$supported" >&6; } 14822 if test "$supported" = "yes" ; then 14823 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14824 found="yes" 14825 fi 14826 fi 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842xorg_testset_save_CFLAGS="$CFLAGS" 14843 14844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14849then : 14850 printf %s "(cached) " >&6 14851else case e in #( 14852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855_ACEOF 14856if ac_fn_c_try_compile "$LINENO" 14857then : 14858 xorg_cv_cc_flag_unknown_warning_option=yes 14859else case e in #( 14860 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14861esac 14862fi 14863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14864esac 14865fi 14866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14869 CFLAGS="$xorg_testset_save_CFLAGS" 14870fi 14871 14872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 fi 14876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14879if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14880then : 14881 printf %s "(cached) " >&6 14882else case e in #( 14883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14884/* end confdefs.h. */ 14885int i; 14886_ACEOF 14887if ac_fn_c_try_compile "$LINENO" 14888then : 14889 xorg_cv_cc_flag_unused_command_line_argument=yes 14890else case e in #( 14891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14892esac 14893fi 14894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14895esac 14896fi 14897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14900 CFLAGS="$xorg_testset_save_CFLAGS" 14901fi 14902 14903found="no" 14904 14905 if test $found = "no" ; then 14906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 fi 14909 14910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14912 fi 14913 14914 CFLAGS="$CFLAGS -Wmissing-prototypes" 14915 14916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14917printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14918 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14919 if eval test \${$cacheid+y} 14920then : 14921 printf %s "(cached) " >&6 14922else case e in #( 14923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924/* end confdefs.h. */ 14925int i; 14926int 14927main (void) 14928{ 14929 14930 ; 14931 return 0; 14932} 14933_ACEOF 14934if ac_fn_c_try_link "$LINENO" 14935then : 14936 eval $cacheid=yes 14937else case e in #( 14938 e) eval $cacheid=no ;; 14939esac 14940fi 14941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14942 conftest$ac_exeext conftest.$ac_ext ;; 14943esac 14944fi 14945 14946 14947 CFLAGS="$xorg_testset_save_CFLAGS" 14948 14949 eval supported=\$$cacheid 14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14951printf "%s\n" "$supported" >&6; } 14952 if test "$supported" = "yes" ; then 14953 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14954 found="yes" 14955 fi 14956 fi 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972xorg_testset_save_CFLAGS="$CFLAGS" 14973 14974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14979then : 14980 printf %s "(cached) " >&6 14981else case e in #( 14982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984int i; 14985_ACEOF 14986if ac_fn_c_try_compile "$LINENO" 14987then : 14988 xorg_cv_cc_flag_unknown_warning_option=yes 14989else case e in #( 14990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14991esac 14992fi 14993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14994esac 14995fi 14996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 fi 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15010then : 15011 printf %s "(cached) " >&6 15012else case e in #( 15013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15014/* end confdefs.h. */ 15015int i; 15016_ACEOF 15017if ac_fn_c_try_compile "$LINENO" 15018then : 15019 xorg_cv_cc_flag_unused_command_line_argument=yes 15020else case e in #( 15021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15022esac 15023fi 15024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15025esac 15026fi 15027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15030 CFLAGS="$xorg_testset_save_CFLAGS" 15031fi 15032 15033found="no" 15034 15035 if test $found = "no" ; then 15036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15038 fi 15039 15040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15042 fi 15043 15044 CFLAGS="$CFLAGS -Wnested-externs" 15045 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15047printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15048 cacheid=xorg_cv_cc_flag__Wnested_externs 15049 if eval test \${$cacheid+y} 15050then : 15051 printf %s "(cached) " >&6 15052else case e in #( 15053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054/* end confdefs.h. */ 15055int i; 15056int 15057main (void) 15058{ 15059 15060 ; 15061 return 0; 15062} 15063_ACEOF 15064if ac_fn_c_try_link "$LINENO" 15065then : 15066 eval $cacheid=yes 15067else case e in #( 15068 e) eval $cacheid=no ;; 15069esac 15070fi 15071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15072 conftest$ac_exeext conftest.$ac_ext ;; 15073esac 15074fi 15075 15076 15077 CFLAGS="$xorg_testset_save_CFLAGS" 15078 15079 eval supported=\$$cacheid 15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15081printf "%s\n" "$supported" >&6; } 15082 if test "$supported" = "yes" ; then 15083 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15084 found="yes" 15085 fi 15086 fi 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102xorg_testset_save_CFLAGS="$CFLAGS" 15103 15104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15109then : 15110 printf %s "(cached) " >&6 15111else case e in #( 15112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114int i; 15115_ACEOF 15116if ac_fn_c_try_compile "$LINENO" 15117then : 15118 xorg_cv_cc_flag_unknown_warning_option=yes 15119else case e in #( 15120 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15121esac 15122fi 15123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15124esac 15125fi 15126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15129 CFLAGS="$xorg_testset_save_CFLAGS" 15130fi 15131 15132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15135 fi 15136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15139if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15140then : 15141 printf %s "(cached) " >&6 15142else case e in #( 15143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15144/* end confdefs.h. */ 15145int i; 15146_ACEOF 15147if ac_fn_c_try_compile "$LINENO" 15148then : 15149 xorg_cv_cc_flag_unused_command_line_argument=yes 15150else case e in #( 15151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15152esac 15153fi 15154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15155esac 15156fi 15157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15160 CFLAGS="$xorg_testset_save_CFLAGS" 15161fi 15162 15163found="no" 15164 15165 if test $found = "no" ; then 15166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15168 fi 15169 15170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15172 fi 15173 15174 CFLAGS="$CFLAGS -Wbad-function-cast" 15175 15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15177printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15178 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15179 if eval test \${$cacheid+y} 15180then : 15181 printf %s "(cached) " >&6 15182else case e in #( 15183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15184/* end confdefs.h. */ 15185int i; 15186int 15187main (void) 15188{ 15189 15190 ; 15191 return 0; 15192} 15193_ACEOF 15194if ac_fn_c_try_link "$LINENO" 15195then : 15196 eval $cacheid=yes 15197else case e in #( 15198 e) eval $cacheid=no ;; 15199esac 15200fi 15201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15202 conftest$ac_exeext conftest.$ac_ext ;; 15203esac 15204fi 15205 15206 15207 CFLAGS="$xorg_testset_save_CFLAGS" 15208 15209 eval supported=\$$cacheid 15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15211printf "%s\n" "$supported" >&6; } 15212 if test "$supported" = "yes" ; then 15213 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15214 found="yes" 15215 fi 15216 fi 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232xorg_testset_save_CFLAGS="$CFLAGS" 15233 15234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15239then : 15240 printf %s "(cached) " >&6 15241else case e in #( 15242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15243/* end confdefs.h. */ 15244int i; 15245_ACEOF 15246if ac_fn_c_try_compile "$LINENO" 15247then : 15248 xorg_cv_cc_flag_unknown_warning_option=yes 15249else case e in #( 15250 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15251esac 15252fi 15253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15254esac 15255fi 15256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15259 CFLAGS="$xorg_testset_save_CFLAGS" 15260fi 15261 15262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 fi 15266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15270then : 15271 printf %s "(cached) " >&6 15272else case e in #( 15273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275int i; 15276_ACEOF 15277if ac_fn_c_try_compile "$LINENO" 15278then : 15279 xorg_cv_cc_flag_unused_command_line_argument=yes 15280else case e in #( 15281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15282esac 15283fi 15284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15285esac 15286fi 15287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15290 CFLAGS="$xorg_testset_save_CFLAGS" 15291fi 15292 15293found="no" 15294 15295 if test $found = "no" ; then 15296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15298 fi 15299 15300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15302 fi 15303 15304 CFLAGS="$CFLAGS -Wold-style-definition" 15305 15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15307printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15308 cacheid=xorg_cv_cc_flag__Wold_style_definition 15309 if eval test \${$cacheid+y} 15310then : 15311 printf %s "(cached) " >&6 15312else case e in #( 15313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15314/* end confdefs.h. */ 15315int i; 15316int 15317main (void) 15318{ 15319 15320 ; 15321 return 0; 15322} 15323_ACEOF 15324if ac_fn_c_try_link "$LINENO" 15325then : 15326 eval $cacheid=yes 15327else case e in #( 15328 e) eval $cacheid=no ;; 15329esac 15330fi 15331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15332 conftest$ac_exeext conftest.$ac_ext ;; 15333esac 15334fi 15335 15336 15337 CFLAGS="$xorg_testset_save_CFLAGS" 15338 15339 eval supported=\$$cacheid 15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15341printf "%s\n" "$supported" >&6; } 15342 if test "$supported" = "yes" ; then 15343 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15344 found="yes" 15345 fi 15346 fi 15347 15348 if test $found = "no" ; then 15349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15351 fi 15352 15353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15355 fi 15356 15357 CFLAGS="$CFLAGS -fd" 15358 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15360printf %s "checking if $CC supports -fd... " >&6; } 15361 cacheid=xorg_cv_cc_flag__fd 15362 if eval test \${$cacheid+y} 15363then : 15364 printf %s "(cached) " >&6 15365else case e in #( 15366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368int i; 15369int 15370main (void) 15371{ 15372 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_link "$LINENO" 15378then : 15379 eval $cacheid=yes 15380else case e in #( 15381 e) eval $cacheid=no ;; 15382esac 15383fi 15384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15385 conftest$ac_exeext conftest.$ac_ext ;; 15386esac 15387fi 15388 15389 15390 CFLAGS="$xorg_testset_save_CFLAGS" 15391 15392 eval supported=\$$cacheid 15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15394printf "%s\n" "$supported" >&6; } 15395 if test "$supported" = "yes" ; then 15396 BASE_CFLAGS="$BASE_CFLAGS -fd" 15397 found="yes" 15398 fi 15399 fi 15400 15401 15402 15403 15404 15405# This chunk adds additional warnings that could catch undesired effects. 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419xorg_testset_save_CFLAGS="$CFLAGS" 15420 15421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15425if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15426then : 15427 printf %s "(cached) " >&6 15428else case e in #( 15429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432_ACEOF 15433if ac_fn_c_try_compile "$LINENO" 15434then : 15435 xorg_cv_cc_flag_unknown_warning_option=yes 15436else case e in #( 15437 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15438esac 15439fi 15440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15441esac 15442fi 15443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15446 CFLAGS="$xorg_testset_save_CFLAGS" 15447fi 15448 15449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15452 fi 15453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15457then : 15458 printf %s "(cached) " >&6 15459else case e in #( 15460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15461/* end confdefs.h. */ 15462int i; 15463_ACEOF 15464if ac_fn_c_try_compile "$LINENO" 15465then : 15466 xorg_cv_cc_flag_unused_command_line_argument=yes 15467else case e in #( 15468 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15469esac 15470fi 15471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15472esac 15473fi 15474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15477 CFLAGS="$xorg_testset_save_CFLAGS" 15478fi 15479 15480found="no" 15481 15482 if test $found = "no" ; then 15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15485 fi 15486 15487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15489 fi 15490 15491 CFLAGS="$CFLAGS -Wunused" 15492 15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15494printf %s "checking if $CC supports -Wunused... " >&6; } 15495 cacheid=xorg_cv_cc_flag__Wunused 15496 if eval test \${$cacheid+y} 15497then : 15498 printf %s "(cached) " >&6 15499else case e in #( 15500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502int i; 15503int 15504main (void) 15505{ 15506 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_c_try_link "$LINENO" 15512then : 15513 eval $cacheid=yes 15514else case e in #( 15515 e) eval $cacheid=no ;; 15516esac 15517fi 15518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15519 conftest$ac_exeext conftest.$ac_ext ;; 15520esac 15521fi 15522 15523 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525 15526 eval supported=\$$cacheid 15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15528printf "%s\n" "$supported" >&6; } 15529 if test "$supported" = "yes" ; then 15530 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15531 found="yes" 15532 fi 15533 fi 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549xorg_testset_save_CFLAGS="$CFLAGS" 15550 15551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15555if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15556then : 15557 printf %s "(cached) " >&6 15558else case e in #( 15559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15560/* end confdefs.h. */ 15561int i; 15562_ACEOF 15563if ac_fn_c_try_compile "$LINENO" 15564then : 15565 xorg_cv_cc_flag_unknown_warning_option=yes 15566else case e in #( 15567 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15568esac 15569fi 15570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15571esac 15572fi 15573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15574printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15576 CFLAGS="$xorg_testset_save_CFLAGS" 15577fi 15578 15579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15582 fi 15583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15585printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15586if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15587then : 15588 printf %s "(cached) " >&6 15589else case e in #( 15590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15591/* end confdefs.h. */ 15592int i; 15593_ACEOF 15594if ac_fn_c_try_compile "$LINENO" 15595then : 15596 xorg_cv_cc_flag_unused_command_line_argument=yes 15597else case e in #( 15598 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15599esac 15600fi 15601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15602esac 15603fi 15604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15607 CFLAGS="$xorg_testset_save_CFLAGS" 15608fi 15609 15610found="no" 15611 15612 if test $found = "no" ; then 15613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15615 fi 15616 15617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15619 fi 15620 15621 CFLAGS="$CFLAGS -Wuninitialized" 15622 15623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15624printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15625 cacheid=xorg_cv_cc_flag__Wuninitialized 15626 if eval test \${$cacheid+y} 15627then : 15628 printf %s "(cached) " >&6 15629else case e in #( 15630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15631/* end confdefs.h. */ 15632int i; 15633int 15634main (void) 15635{ 15636 15637 ; 15638 return 0; 15639} 15640_ACEOF 15641if ac_fn_c_try_link "$LINENO" 15642then : 15643 eval $cacheid=yes 15644else case e in #( 15645 e) eval $cacheid=no ;; 15646esac 15647fi 15648rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15649 conftest$ac_exeext conftest.$ac_ext ;; 15650esac 15651fi 15652 15653 15654 CFLAGS="$xorg_testset_save_CFLAGS" 15655 15656 eval supported=\$$cacheid 15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15658printf "%s\n" "$supported" >&6; } 15659 if test "$supported" = "yes" ; then 15660 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15661 found="yes" 15662 fi 15663 fi 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679xorg_testset_save_CFLAGS="$CFLAGS" 15680 15681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15685if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15686then : 15687 printf %s "(cached) " >&6 15688else case e in #( 15689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690/* end confdefs.h. */ 15691int i; 15692_ACEOF 15693if ac_fn_c_try_compile "$LINENO" 15694then : 15695 xorg_cv_cc_flag_unknown_warning_option=yes 15696else case e in #( 15697 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15698esac 15699fi 15700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15701esac 15702fi 15703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15706 CFLAGS="$xorg_testset_save_CFLAGS" 15707fi 15708 15709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15712 fi 15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15716if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15717then : 15718 printf %s "(cached) " >&6 15719else case e in #( 15720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721/* end confdefs.h. */ 15722int i; 15723_ACEOF 15724if ac_fn_c_try_compile "$LINENO" 15725then : 15726 xorg_cv_cc_flag_unused_command_line_argument=yes 15727else case e in #( 15728 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15729esac 15730fi 15731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15732esac 15733fi 15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15737 CFLAGS="$xorg_testset_save_CFLAGS" 15738fi 15739 15740found="no" 15741 15742 if test $found = "no" ; then 15743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15745 fi 15746 15747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15749 fi 15750 15751 CFLAGS="$CFLAGS -Wshadow" 15752 15753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15754printf %s "checking if $CC supports -Wshadow... " >&6; } 15755 cacheid=xorg_cv_cc_flag__Wshadow 15756 if eval test \${$cacheid+y} 15757then : 15758 printf %s "(cached) " >&6 15759else case e in #( 15760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15761/* end confdefs.h. */ 15762int i; 15763int 15764main (void) 15765{ 15766 15767 ; 15768 return 0; 15769} 15770_ACEOF 15771if ac_fn_c_try_link "$LINENO" 15772then : 15773 eval $cacheid=yes 15774else case e in #( 15775 e) eval $cacheid=no ;; 15776esac 15777fi 15778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15779 conftest$ac_exeext conftest.$ac_ext ;; 15780esac 15781fi 15782 15783 15784 CFLAGS="$xorg_testset_save_CFLAGS" 15785 15786 eval supported=\$$cacheid 15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15788printf "%s\n" "$supported" >&6; } 15789 if test "$supported" = "yes" ; then 15790 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15791 found="yes" 15792 fi 15793 fi 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809xorg_testset_save_CFLAGS="$CFLAGS" 15810 15811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15815if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15816then : 15817 printf %s "(cached) " >&6 15818else case e in #( 15819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15820/* end confdefs.h. */ 15821int i; 15822_ACEOF 15823if ac_fn_c_try_compile "$LINENO" 15824then : 15825 xorg_cv_cc_flag_unknown_warning_option=yes 15826else case e in #( 15827 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15828esac 15829fi 15830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15831esac 15832fi 15833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15836 CFLAGS="$xorg_testset_save_CFLAGS" 15837fi 15838 15839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 fi 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15847then : 15848 printf %s "(cached) " >&6 15849else case e in #( 15850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15851/* end confdefs.h. */ 15852int i; 15853_ACEOF 15854if ac_fn_c_try_compile "$LINENO" 15855then : 15856 xorg_cv_cc_flag_unused_command_line_argument=yes 15857else case e in #( 15858 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15859esac 15860fi 15861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15862esac 15863fi 15864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15867 CFLAGS="$xorg_testset_save_CFLAGS" 15868fi 15869 15870found="no" 15871 15872 if test $found = "no" ; then 15873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 fi 15876 15877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15879 fi 15880 15881 CFLAGS="$CFLAGS -Wmissing-noreturn" 15882 15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15884printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15885 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15886 if eval test \${$cacheid+y} 15887then : 15888 printf %s "(cached) " >&6 15889else case e in #( 15890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15891/* end confdefs.h. */ 15892int i; 15893int 15894main (void) 15895{ 15896 15897 ; 15898 return 0; 15899} 15900_ACEOF 15901if ac_fn_c_try_link "$LINENO" 15902then : 15903 eval $cacheid=yes 15904else case e in #( 15905 e) eval $cacheid=no ;; 15906esac 15907fi 15908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15909 conftest$ac_exeext conftest.$ac_ext ;; 15910esac 15911fi 15912 15913 15914 CFLAGS="$xorg_testset_save_CFLAGS" 15915 15916 eval supported=\$$cacheid 15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15918printf "%s\n" "$supported" >&6; } 15919 if test "$supported" = "yes" ; then 15920 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15921 found="yes" 15922 fi 15923 fi 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939xorg_testset_save_CFLAGS="$CFLAGS" 15940 15941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15946then : 15947 printf %s "(cached) " >&6 15948else case e in #( 15949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15950/* end confdefs.h. */ 15951int i; 15952_ACEOF 15953if ac_fn_c_try_compile "$LINENO" 15954then : 15955 xorg_cv_cc_flag_unknown_warning_option=yes 15956else case e in #( 15957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15958esac 15959fi 15960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15961esac 15962fi 15963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15966 CFLAGS="$xorg_testset_save_CFLAGS" 15967fi 15968 15969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15972 fi 15973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15977then : 15978 printf %s "(cached) " >&6 15979else case e in #( 15980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15981/* end confdefs.h. */ 15982int i; 15983_ACEOF 15984if ac_fn_c_try_compile "$LINENO" 15985then : 15986 xorg_cv_cc_flag_unused_command_line_argument=yes 15987else case e in #( 15988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15989esac 15990fi 15991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15992esac 15993fi 15994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15997 CFLAGS="$xorg_testset_save_CFLAGS" 15998fi 15999 16000found="no" 16001 16002 if test $found = "no" ; then 16003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16005 fi 16006 16007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16009 fi 16010 16011 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16012 16013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16014printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16015 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16016 if eval test \${$cacheid+y} 16017then : 16018 printf %s "(cached) " >&6 16019else case e in #( 16020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16021/* end confdefs.h. */ 16022int i; 16023int 16024main (void) 16025{ 16026 16027 ; 16028 return 0; 16029} 16030_ACEOF 16031if ac_fn_c_try_link "$LINENO" 16032then : 16033 eval $cacheid=yes 16034else case e in #( 16035 e) eval $cacheid=no ;; 16036esac 16037fi 16038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16039 conftest$ac_exeext conftest.$ac_ext ;; 16040esac 16041fi 16042 16043 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045 16046 eval supported=\$$cacheid 16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16048printf "%s\n" "$supported" >&6; } 16049 if test "$supported" = "yes" ; then 16050 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16051 found="yes" 16052 fi 16053 fi 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069xorg_testset_save_CFLAGS="$CFLAGS" 16070 16071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16076then : 16077 printf %s "(cached) " >&6 16078else case e in #( 16079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO" 16084then : 16085 xorg_cv_cc_flag_unknown_warning_option=yes 16086else case e in #( 16087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16088esac 16089fi 16090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16091esac 16092fi 16093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16096 CFLAGS="$xorg_testset_save_CFLAGS" 16097fi 16098 16099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16102 fi 16103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16107then : 16108 printf %s "(cached) " >&6 16109else case e in #( 16110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16111/* end confdefs.h. */ 16112int i; 16113_ACEOF 16114if ac_fn_c_try_compile "$LINENO" 16115then : 16116 xorg_cv_cc_flag_unused_command_line_argument=yes 16117else case e in #( 16118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16119esac 16120fi 16121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16122esac 16123fi 16124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16127 CFLAGS="$xorg_testset_save_CFLAGS" 16128fi 16129 16130found="no" 16131 16132 if test $found = "no" ; then 16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16135 fi 16136 16137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16139 fi 16140 16141 CFLAGS="$CFLAGS -Wredundant-decls" 16142 16143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16144printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16145 cacheid=xorg_cv_cc_flag__Wredundant_decls 16146 if eval test \${$cacheid+y} 16147then : 16148 printf %s "(cached) " >&6 16149else case e in #( 16150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152int i; 16153int 16154main (void) 16155{ 16156 16157 ; 16158 return 0; 16159} 16160_ACEOF 16161if ac_fn_c_try_link "$LINENO" 16162then : 16163 eval $cacheid=yes 16164else case e in #( 16165 e) eval $cacheid=no ;; 16166esac 16167fi 16168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16169 conftest$ac_exeext conftest.$ac_ext ;; 16170esac 16171fi 16172 16173 16174 CFLAGS="$xorg_testset_save_CFLAGS" 16175 16176 eval supported=\$$cacheid 16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16178printf "%s\n" "$supported" >&6; } 16179 if test "$supported" = "yes" ; then 16180 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16181 found="yes" 16182 fi 16183 fi 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199xorg_testset_save_CFLAGS="$CFLAGS" 16200 16201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16205if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16206then : 16207 printf %s "(cached) " >&6 16208else case e in #( 16209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16210/* end confdefs.h. */ 16211int i; 16212_ACEOF 16213if ac_fn_c_try_compile "$LINENO" 16214then : 16215 xorg_cv_cc_flag_unknown_warning_option=yes 16216else case e in #( 16217 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16218esac 16219fi 16220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16221esac 16222fi 16223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16226 CFLAGS="$xorg_testset_save_CFLAGS" 16227fi 16228 16229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16232 fi 16233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16236if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16237then : 16238 printf %s "(cached) " >&6 16239else case e in #( 16240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16241/* end confdefs.h. */ 16242int i; 16243_ACEOF 16244if ac_fn_c_try_compile "$LINENO" 16245then : 16246 xorg_cv_cc_flag_unused_command_line_argument=yes 16247else case e in #( 16248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16249esac 16250fi 16251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16252esac 16253fi 16254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16257 CFLAGS="$xorg_testset_save_CFLAGS" 16258fi 16259 16260found="no" 16261 16262 if test $found = "no" ; then 16263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16265 fi 16266 16267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16269 fi 16270 16271 CFLAGS="$CFLAGS -Wlogical-op" 16272 16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16274printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16275 cacheid=xorg_cv_cc_flag__Wlogical_op 16276 if eval test \${$cacheid+y} 16277then : 16278 printf %s "(cached) " >&6 16279else case e in #( 16280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16281/* end confdefs.h. */ 16282int i; 16283int 16284main (void) 16285{ 16286 16287 ; 16288 return 0; 16289} 16290_ACEOF 16291if ac_fn_c_try_link "$LINENO" 16292then : 16293 eval $cacheid=yes 16294else case e in #( 16295 e) eval $cacheid=no ;; 16296esac 16297fi 16298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16299 conftest$ac_exeext conftest.$ac_ext ;; 16300esac 16301fi 16302 16303 16304 CFLAGS="$xorg_testset_save_CFLAGS" 16305 16306 eval supported=\$$cacheid 16307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16308printf "%s\n" "$supported" >&6; } 16309 if test "$supported" = "yes" ; then 16310 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16311 found="yes" 16312 fi 16313 fi 16314 16315 16316 16317# These are currently disabled because they are noisy. They will be enabled 16318# in the future once the codebase is sufficiently modernized to silence 16319# them. For now, I don't want them to drown out the other warnings. 16320# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16321# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16322# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16323 16324# Turn some warnings into errors, so we don't accidentally get successful builds 16325# when there are problems that should be fixed. 16326 16327if test "x$SELECTIVE_WERROR" = "xyes" ; then 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341xorg_testset_save_CFLAGS="$CFLAGS" 16342 16343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16348then : 16349 printf %s "(cached) " >&6 16350else case e in #( 16351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int i; 16354_ACEOF 16355if ac_fn_c_try_compile "$LINENO" 16356then : 16357 xorg_cv_cc_flag_unknown_warning_option=yes 16358else case e in #( 16359 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16360esac 16361fi 16362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16363esac 16364fi 16365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16368 CFLAGS="$xorg_testset_save_CFLAGS" 16369fi 16370 16371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16374 fi 16375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16378if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16379then : 16380 printf %s "(cached) " >&6 16381else case e in #( 16382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16383/* end confdefs.h. */ 16384int i; 16385_ACEOF 16386if ac_fn_c_try_compile "$LINENO" 16387then : 16388 xorg_cv_cc_flag_unused_command_line_argument=yes 16389else case e in #( 16390 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16391esac 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16394esac 16395fi 16396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16399 CFLAGS="$xorg_testset_save_CFLAGS" 16400fi 16401 16402found="no" 16403 16404 if test $found = "no" ; then 16405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16407 fi 16408 16409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16411 fi 16412 16413 CFLAGS="$CFLAGS -Werror=implicit" 16414 16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16416printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16417 cacheid=xorg_cv_cc_flag__Werror_implicit 16418 if eval test \${$cacheid+y} 16419then : 16420 printf %s "(cached) " >&6 16421else case e in #( 16422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16423/* end confdefs.h. */ 16424int i; 16425int 16426main (void) 16427{ 16428 16429 ; 16430 return 0; 16431} 16432_ACEOF 16433if ac_fn_c_try_link "$LINENO" 16434then : 16435 eval $cacheid=yes 16436else case e in #( 16437 e) eval $cacheid=no ;; 16438esac 16439fi 16440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16441 conftest$ac_exeext conftest.$ac_ext ;; 16442esac 16443fi 16444 16445 16446 CFLAGS="$xorg_testset_save_CFLAGS" 16447 16448 eval supported=\$$cacheid 16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16450printf "%s\n" "$supported" >&6; } 16451 if test "$supported" = "yes" ; then 16452 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16453 found="yes" 16454 fi 16455 fi 16456 16457 if test $found = "no" ; then 16458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16460 fi 16461 16462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16464 fi 16465 16466 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16467 16468 { 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 16469printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16470 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16471 if eval test \${$cacheid+y} 16472then : 16473 printf %s "(cached) " >&6 16474else case e in #( 16475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16476/* end confdefs.h. */ 16477int i; 16478int 16479main (void) 16480{ 16481 16482 ; 16483 return 0; 16484} 16485_ACEOF 16486if ac_fn_c_try_link "$LINENO" 16487then : 16488 eval $cacheid=yes 16489else case e in #( 16490 e) eval $cacheid=no ;; 16491esac 16492fi 16493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16494 conftest$ac_exeext conftest.$ac_ext ;; 16495esac 16496fi 16497 16498 16499 CFLAGS="$xorg_testset_save_CFLAGS" 16500 16501 eval supported=\$$cacheid 16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16503printf "%s\n" "$supported" >&6; } 16504 if test "$supported" = "yes" ; then 16505 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16506 found="yes" 16507 fi 16508 fi 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524xorg_testset_save_CFLAGS="$CFLAGS" 16525 16526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16530if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16531then : 16532 printf %s "(cached) " >&6 16533else case e in #( 16534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16535/* end confdefs.h. */ 16536int i; 16537_ACEOF 16538if ac_fn_c_try_compile "$LINENO" 16539then : 16540 xorg_cv_cc_flag_unknown_warning_option=yes 16541else case e in #( 16542 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16543esac 16544fi 16545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16546esac 16547fi 16548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16551 CFLAGS="$xorg_testset_save_CFLAGS" 16552fi 16553 16554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16557 fi 16558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16561if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16562then : 16563 printf %s "(cached) " >&6 16564else case e in #( 16565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568_ACEOF 16569if ac_fn_c_try_compile "$LINENO" 16570then : 16571 xorg_cv_cc_flag_unused_command_line_argument=yes 16572else case e in #( 16573 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16574esac 16575fi 16576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16577esac 16578fi 16579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16582 CFLAGS="$xorg_testset_save_CFLAGS" 16583fi 16584 16585found="no" 16586 16587 if test $found = "no" ; then 16588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16590 fi 16591 16592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16594 fi 16595 16596 CFLAGS="$CFLAGS -Werror=nonnull" 16597 16598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16599printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16600 cacheid=xorg_cv_cc_flag__Werror_nonnull 16601 if eval test \${$cacheid+y} 16602then : 16603 printf %s "(cached) " >&6 16604else case e in #( 16605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16606/* end confdefs.h. */ 16607int i; 16608int 16609main (void) 16610{ 16611 16612 ; 16613 return 0; 16614} 16615_ACEOF 16616if ac_fn_c_try_link "$LINENO" 16617then : 16618 eval $cacheid=yes 16619else case e in #( 16620 e) eval $cacheid=no ;; 16621esac 16622fi 16623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16624 conftest$ac_exeext conftest.$ac_ext ;; 16625esac 16626fi 16627 16628 16629 CFLAGS="$xorg_testset_save_CFLAGS" 16630 16631 eval supported=\$$cacheid 16632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16633printf "%s\n" "$supported" >&6; } 16634 if test "$supported" = "yes" ; then 16635 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16636 found="yes" 16637 fi 16638 fi 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654xorg_testset_save_CFLAGS="$CFLAGS" 16655 16656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16660if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16661then : 16662 printf %s "(cached) " >&6 16663else case e in #( 16664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16665/* end confdefs.h. */ 16666int i; 16667_ACEOF 16668if ac_fn_c_try_compile "$LINENO" 16669then : 16670 xorg_cv_cc_flag_unknown_warning_option=yes 16671else case e in #( 16672 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16673esac 16674fi 16675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16676esac 16677fi 16678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16681 CFLAGS="$xorg_testset_save_CFLAGS" 16682fi 16683 16684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16687 fi 16688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16692then : 16693 printf %s "(cached) " >&6 16694else case e in #( 16695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696/* end confdefs.h. */ 16697int i; 16698_ACEOF 16699if ac_fn_c_try_compile "$LINENO" 16700then : 16701 xorg_cv_cc_flag_unused_command_line_argument=yes 16702else case e in #( 16703 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16704esac 16705fi 16706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16707esac 16708fi 16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16712 CFLAGS="$xorg_testset_save_CFLAGS" 16713fi 16714 16715found="no" 16716 16717 if test $found = "no" ; then 16718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16720 fi 16721 16722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16724 fi 16725 16726 CFLAGS="$CFLAGS -Werror=init-self" 16727 16728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16729printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16730 cacheid=xorg_cv_cc_flag__Werror_init_self 16731 if eval test \${$cacheid+y} 16732then : 16733 printf %s "(cached) " >&6 16734else case e in #( 16735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16736/* end confdefs.h. */ 16737int i; 16738int 16739main (void) 16740{ 16741 16742 ; 16743 return 0; 16744} 16745_ACEOF 16746if ac_fn_c_try_link "$LINENO" 16747then : 16748 eval $cacheid=yes 16749else case e in #( 16750 e) eval $cacheid=no ;; 16751esac 16752fi 16753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16754 conftest$ac_exeext conftest.$ac_ext ;; 16755esac 16756fi 16757 16758 16759 CFLAGS="$xorg_testset_save_CFLAGS" 16760 16761 eval supported=\$$cacheid 16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16763printf "%s\n" "$supported" >&6; } 16764 if test "$supported" = "yes" ; then 16765 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16766 found="yes" 16767 fi 16768 fi 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784xorg_testset_save_CFLAGS="$CFLAGS" 16785 16786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16790if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16791then : 16792 printf %s "(cached) " >&6 16793else case e in #( 16794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16795/* end confdefs.h. */ 16796int i; 16797_ACEOF 16798if ac_fn_c_try_compile "$LINENO" 16799then : 16800 xorg_cv_cc_flag_unknown_warning_option=yes 16801else case e in #( 16802 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16803esac 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16806esac 16807fi 16808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16811 CFLAGS="$xorg_testset_save_CFLAGS" 16812fi 16813 16814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16817 fi 16818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16821if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16822then : 16823 printf %s "(cached) " >&6 16824else case e in #( 16825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16826/* end confdefs.h. */ 16827int i; 16828_ACEOF 16829if ac_fn_c_try_compile "$LINENO" 16830then : 16831 xorg_cv_cc_flag_unused_command_line_argument=yes 16832else case e in #( 16833 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16834esac 16835fi 16836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16837esac 16838fi 16839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843fi 16844 16845found="no" 16846 16847 if test $found = "no" ; then 16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 fi 16851 16852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16854 fi 16855 16856 CFLAGS="$CFLAGS -Werror=main" 16857 16858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16859printf %s "checking if $CC supports -Werror=main... " >&6; } 16860 cacheid=xorg_cv_cc_flag__Werror_main 16861 if eval test \${$cacheid+y} 16862then : 16863 printf %s "(cached) " >&6 16864else case e in #( 16865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16866/* end confdefs.h. */ 16867int i; 16868int 16869main (void) 16870{ 16871 16872 ; 16873 return 0; 16874} 16875_ACEOF 16876if ac_fn_c_try_link "$LINENO" 16877then : 16878 eval $cacheid=yes 16879else case e in #( 16880 e) eval $cacheid=no ;; 16881esac 16882fi 16883rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16884 conftest$ac_exeext conftest.$ac_ext ;; 16885esac 16886fi 16887 16888 16889 CFLAGS="$xorg_testset_save_CFLAGS" 16890 16891 eval supported=\$$cacheid 16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16893printf "%s\n" "$supported" >&6; } 16894 if test "$supported" = "yes" ; then 16895 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16896 found="yes" 16897 fi 16898 fi 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914xorg_testset_save_CFLAGS="$CFLAGS" 16915 16916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16920if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16921then : 16922 printf %s "(cached) " >&6 16923else case e in #( 16924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16925/* end confdefs.h. */ 16926int i; 16927_ACEOF 16928if ac_fn_c_try_compile "$LINENO" 16929then : 16930 xorg_cv_cc_flag_unknown_warning_option=yes 16931else case e in #( 16932 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16933esac 16934fi 16935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16936esac 16937fi 16938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16941 CFLAGS="$xorg_testset_save_CFLAGS" 16942fi 16943 16944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 fi 16948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16952then : 16953 printf %s "(cached) " >&6 16954else case e in #( 16955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16956/* end confdefs.h. */ 16957int i; 16958_ACEOF 16959if ac_fn_c_try_compile "$LINENO" 16960then : 16961 xorg_cv_cc_flag_unused_command_line_argument=yes 16962else case e in #( 16963 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16964esac 16965fi 16966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16967esac 16968fi 16969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16972 CFLAGS="$xorg_testset_save_CFLAGS" 16973fi 16974 16975found="no" 16976 16977 if test $found = "no" ; then 16978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16980 fi 16981 16982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16984 fi 16985 16986 CFLAGS="$CFLAGS -Werror=missing-braces" 16987 16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16989printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16990 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16991 if eval test \${$cacheid+y} 16992then : 16993 printf %s "(cached) " >&6 16994else case e in #( 16995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16996/* end confdefs.h. */ 16997int i; 16998int 16999main (void) 17000{ 17001 17002 ; 17003 return 0; 17004} 17005_ACEOF 17006if ac_fn_c_try_link "$LINENO" 17007then : 17008 eval $cacheid=yes 17009else case e in #( 17010 e) eval $cacheid=no ;; 17011esac 17012fi 17013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17014 conftest$ac_exeext conftest.$ac_ext ;; 17015esac 17016fi 17017 17018 17019 CFLAGS="$xorg_testset_save_CFLAGS" 17020 17021 eval supported=\$$cacheid 17022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17023printf "%s\n" "$supported" >&6; } 17024 if test "$supported" = "yes" ; then 17025 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17026 found="yes" 17027 fi 17028 fi 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044xorg_testset_save_CFLAGS="$CFLAGS" 17045 17046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17050if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17051then : 17052 printf %s "(cached) " >&6 17053else case e in #( 17054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056int i; 17057_ACEOF 17058if ac_fn_c_try_compile "$LINENO" 17059then : 17060 xorg_cv_cc_flag_unknown_warning_option=yes 17061else case e in #( 17062 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17063esac 17064fi 17065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17066esac 17067fi 17068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17071 CFLAGS="$xorg_testset_save_CFLAGS" 17072fi 17073 17074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17077 fi 17078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17081if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17082then : 17083 printf %s "(cached) " >&6 17084else case e in #( 17085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17086/* end confdefs.h. */ 17087int i; 17088_ACEOF 17089if ac_fn_c_try_compile "$LINENO" 17090then : 17091 xorg_cv_cc_flag_unused_command_line_argument=yes 17092else case e in #( 17093 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17094esac 17095fi 17096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17097esac 17098fi 17099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17102 CFLAGS="$xorg_testset_save_CFLAGS" 17103fi 17104 17105found="no" 17106 17107 if test $found = "no" ; then 17108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17110 fi 17111 17112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17114 fi 17115 17116 CFLAGS="$CFLAGS -Werror=sequence-point" 17117 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17119printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17120 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17121 if eval test \${$cacheid+y} 17122then : 17123 printf %s "(cached) " >&6 17124else case e in #( 17125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127int i; 17128int 17129main (void) 17130{ 17131 17132 ; 17133 return 0; 17134} 17135_ACEOF 17136if ac_fn_c_try_link "$LINENO" 17137then : 17138 eval $cacheid=yes 17139else case e in #( 17140 e) eval $cacheid=no ;; 17141esac 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17144 conftest$ac_exeext conftest.$ac_ext ;; 17145esac 17146fi 17147 17148 17149 CFLAGS="$xorg_testset_save_CFLAGS" 17150 17151 eval supported=\$$cacheid 17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17153printf "%s\n" "$supported" >&6; } 17154 if test "$supported" = "yes" ; then 17155 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17156 found="yes" 17157 fi 17158 fi 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174xorg_testset_save_CFLAGS="$CFLAGS" 17175 17176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17180if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17181then : 17182 printf %s "(cached) " >&6 17183else case e in #( 17184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185/* end confdefs.h. */ 17186int i; 17187_ACEOF 17188if ac_fn_c_try_compile "$LINENO" 17189then : 17190 xorg_cv_cc_flag_unknown_warning_option=yes 17191else case e in #( 17192 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17193esac 17194fi 17195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17196esac 17197fi 17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17201 CFLAGS="$xorg_testset_save_CFLAGS" 17202fi 17203 17204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17207 fi 17208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17212then : 17213 printf %s "(cached) " >&6 17214else case e in #( 17215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17216/* end confdefs.h. */ 17217int i; 17218_ACEOF 17219if ac_fn_c_try_compile "$LINENO" 17220then : 17221 xorg_cv_cc_flag_unused_command_line_argument=yes 17222else case e in #( 17223 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17224esac 17225fi 17226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17227esac 17228fi 17229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17232 CFLAGS="$xorg_testset_save_CFLAGS" 17233fi 17234 17235found="no" 17236 17237 if test $found = "no" ; then 17238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17240 fi 17241 17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17244 fi 17245 17246 CFLAGS="$CFLAGS -Werror=return-type" 17247 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17249printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17250 cacheid=xorg_cv_cc_flag__Werror_return_type 17251 if eval test \${$cacheid+y} 17252then : 17253 printf %s "(cached) " >&6 17254else case e in #( 17255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17256/* end confdefs.h. */ 17257int i; 17258int 17259main (void) 17260{ 17261 17262 ; 17263 return 0; 17264} 17265_ACEOF 17266if ac_fn_c_try_link "$LINENO" 17267then : 17268 eval $cacheid=yes 17269else case e in #( 17270 e) eval $cacheid=no ;; 17271esac 17272fi 17273rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17274 conftest$ac_exeext conftest.$ac_ext ;; 17275esac 17276fi 17277 17278 17279 CFLAGS="$xorg_testset_save_CFLAGS" 17280 17281 eval supported=\$$cacheid 17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17283printf "%s\n" "$supported" >&6; } 17284 if test "$supported" = "yes" ; then 17285 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17286 found="yes" 17287 fi 17288 fi 17289 17290 if test $found = "no" ; then 17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17293 fi 17294 17295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17297 fi 17298 17299 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17300 17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17302printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17303 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17304 if eval test \${$cacheid+y} 17305then : 17306 printf %s "(cached) " >&6 17307else case e in #( 17308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17309/* end confdefs.h. */ 17310int i; 17311int 17312main (void) 17313{ 17314 17315 ; 17316 return 0; 17317} 17318_ACEOF 17319if ac_fn_c_try_link "$LINENO" 17320then : 17321 eval $cacheid=yes 17322else case e in #( 17323 e) eval $cacheid=no ;; 17324esac 17325fi 17326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17327 conftest$ac_exeext conftest.$ac_ext ;; 17328esac 17329fi 17330 17331 17332 CFLAGS="$xorg_testset_save_CFLAGS" 17333 17334 eval supported=\$$cacheid 17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17336printf "%s\n" "$supported" >&6; } 17337 if test "$supported" = "yes" ; then 17338 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17339 found="yes" 17340 fi 17341 fi 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357xorg_testset_save_CFLAGS="$CFLAGS" 17358 17359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17364then : 17365 printf %s "(cached) " >&6 17366else case e in #( 17367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17368/* end confdefs.h. */ 17369int i; 17370_ACEOF 17371if ac_fn_c_try_compile "$LINENO" 17372then : 17373 xorg_cv_cc_flag_unknown_warning_option=yes 17374else case e in #( 17375 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17376esac 17377fi 17378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17379esac 17380fi 17381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17384 CFLAGS="$xorg_testset_save_CFLAGS" 17385fi 17386 17387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 fi 17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17394if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17395then : 17396 printf %s "(cached) " >&6 17397else case e in #( 17398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17399/* end confdefs.h. */ 17400int i; 17401_ACEOF 17402if ac_fn_c_try_compile "$LINENO" 17403then : 17404 xorg_cv_cc_flag_unused_command_line_argument=yes 17405else case e in #( 17406 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17407esac 17408fi 17409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17410esac 17411fi 17412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17415 CFLAGS="$xorg_testset_save_CFLAGS" 17416fi 17417 17418found="no" 17419 17420 if test $found = "no" ; then 17421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17423 fi 17424 17425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17427 fi 17428 17429 CFLAGS="$CFLAGS -Werror=trigraphs" 17430 17431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17432printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17433 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17434 if eval test \${$cacheid+y} 17435then : 17436 printf %s "(cached) " >&6 17437else case e in #( 17438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440int i; 17441int 17442main (void) 17443{ 17444 17445 ; 17446 return 0; 17447} 17448_ACEOF 17449if ac_fn_c_try_link "$LINENO" 17450then : 17451 eval $cacheid=yes 17452else case e in #( 17453 e) eval $cacheid=no ;; 17454esac 17455fi 17456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17457 conftest$ac_exeext conftest.$ac_ext ;; 17458esac 17459fi 17460 17461 17462 CFLAGS="$xorg_testset_save_CFLAGS" 17463 17464 eval supported=\$$cacheid 17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17466printf "%s\n" "$supported" >&6; } 17467 if test "$supported" = "yes" ; then 17468 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17469 found="yes" 17470 fi 17471 fi 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487xorg_testset_save_CFLAGS="$CFLAGS" 17488 17489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17493if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17494then : 17495 printf %s "(cached) " >&6 17496else case e in #( 17497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499int i; 17500_ACEOF 17501if ac_fn_c_try_compile "$LINENO" 17502then : 17503 xorg_cv_cc_flag_unknown_warning_option=yes 17504else case e in #( 17505 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17506esac 17507fi 17508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17509esac 17510fi 17511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17514 CFLAGS="$xorg_testset_save_CFLAGS" 17515fi 17516 17517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 fi 17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17525then : 17526 printf %s "(cached) " >&6 17527else case e in #( 17528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO" 17533then : 17534 xorg_cv_cc_flag_unused_command_line_argument=yes 17535else case e in #( 17536 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17537esac 17538fi 17539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17540esac 17541fi 17542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17545 CFLAGS="$xorg_testset_save_CFLAGS" 17546fi 17547 17548found="no" 17549 17550 if test $found = "no" ; then 17551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17553 fi 17554 17555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17557 fi 17558 17559 CFLAGS="$CFLAGS -Werror=array-bounds" 17560 17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17562printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17563 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17564 if eval test \${$cacheid+y} 17565then : 17566 printf %s "(cached) " >&6 17567else case e in #( 17568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17569/* end confdefs.h. */ 17570int i; 17571int 17572main (void) 17573{ 17574 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_link "$LINENO" 17580then : 17581 eval $cacheid=yes 17582else case e in #( 17583 e) eval $cacheid=no ;; 17584esac 17585fi 17586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17587 conftest$ac_exeext conftest.$ac_ext ;; 17588esac 17589fi 17590 17591 17592 CFLAGS="$xorg_testset_save_CFLAGS" 17593 17594 eval supported=\$$cacheid 17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17596printf "%s\n" "$supported" >&6; } 17597 if test "$supported" = "yes" ; then 17598 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17599 found="yes" 17600 fi 17601 fi 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617xorg_testset_save_CFLAGS="$CFLAGS" 17618 17619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17623if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17624then : 17625 printf %s "(cached) " >&6 17626else case e in #( 17627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628/* end confdefs.h. */ 17629int i; 17630_ACEOF 17631if ac_fn_c_try_compile "$LINENO" 17632then : 17633 xorg_cv_cc_flag_unknown_warning_option=yes 17634else case e in #( 17635 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17636esac 17637fi 17638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17639esac 17640fi 17641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17644 CFLAGS="$xorg_testset_save_CFLAGS" 17645fi 17646 17647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 fi 17651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17654if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17655then : 17656 printf %s "(cached) " >&6 17657else case e in #( 17658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17659/* end confdefs.h. */ 17660int i; 17661_ACEOF 17662if ac_fn_c_try_compile "$LINENO" 17663then : 17664 xorg_cv_cc_flag_unused_command_line_argument=yes 17665else case e in #( 17666 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17667esac 17668fi 17669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17670esac 17671fi 17672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17675 CFLAGS="$xorg_testset_save_CFLAGS" 17676fi 17677 17678found="no" 17679 17680 if test $found = "no" ; then 17681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17683 fi 17684 17685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17687 fi 17688 17689 CFLAGS="$CFLAGS -Werror=write-strings" 17690 17691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17692printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17693 cacheid=xorg_cv_cc_flag__Werror_write_strings 17694 if eval test \${$cacheid+y} 17695then : 17696 printf %s "(cached) " >&6 17697else case e in #( 17698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17699/* end confdefs.h. */ 17700int i; 17701int 17702main (void) 17703{ 17704 17705 ; 17706 return 0; 17707} 17708_ACEOF 17709if ac_fn_c_try_link "$LINENO" 17710then : 17711 eval $cacheid=yes 17712else case e in #( 17713 e) eval $cacheid=no ;; 17714esac 17715fi 17716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17717 conftest$ac_exeext conftest.$ac_ext ;; 17718esac 17719fi 17720 17721 17722 CFLAGS="$xorg_testset_save_CFLAGS" 17723 17724 eval supported=\$$cacheid 17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17726printf "%s\n" "$supported" >&6; } 17727 if test "$supported" = "yes" ; then 17728 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17729 found="yes" 17730 fi 17731 fi 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747xorg_testset_save_CFLAGS="$CFLAGS" 17748 17749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17754then : 17755 printf %s "(cached) " >&6 17756else case e in #( 17757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758/* end confdefs.h. */ 17759int i; 17760_ACEOF 17761if ac_fn_c_try_compile "$LINENO" 17762then : 17763 xorg_cv_cc_flag_unknown_warning_option=yes 17764else case e in #( 17765 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17766esac 17767fi 17768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17769esac 17770fi 17771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17774 CFLAGS="$xorg_testset_save_CFLAGS" 17775fi 17776 17777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17780 fi 17781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17785then : 17786 printf %s "(cached) " >&6 17787else case e in #( 17788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17789/* end confdefs.h. */ 17790int i; 17791_ACEOF 17792if ac_fn_c_try_compile "$LINENO" 17793then : 17794 xorg_cv_cc_flag_unused_command_line_argument=yes 17795else case e in #( 17796 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17797esac 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17800esac 17801fi 17802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17805 CFLAGS="$xorg_testset_save_CFLAGS" 17806fi 17807 17808found="no" 17809 17810 if test $found = "no" ; then 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 fi 17814 17815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17817 fi 17818 17819 CFLAGS="$CFLAGS -Werror=address" 17820 17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17822printf %s "checking if $CC supports -Werror=address... " >&6; } 17823 cacheid=xorg_cv_cc_flag__Werror_address 17824 if eval test \${$cacheid+y} 17825then : 17826 printf %s "(cached) " >&6 17827else case e in #( 17828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17829/* end confdefs.h. */ 17830int i; 17831int 17832main (void) 17833{ 17834 17835 ; 17836 return 0; 17837} 17838_ACEOF 17839if ac_fn_c_try_link "$LINENO" 17840then : 17841 eval $cacheid=yes 17842else case e in #( 17843 e) eval $cacheid=no ;; 17844esac 17845fi 17846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17847 conftest$ac_exeext conftest.$ac_ext ;; 17848esac 17849fi 17850 17851 17852 CFLAGS="$xorg_testset_save_CFLAGS" 17853 17854 eval supported=\$$cacheid 17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17856printf "%s\n" "$supported" >&6; } 17857 if test "$supported" = "yes" ; then 17858 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17859 found="yes" 17860 fi 17861 fi 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877xorg_testset_save_CFLAGS="$CFLAGS" 17878 17879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17883if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17884then : 17885 printf %s "(cached) " >&6 17886else case e in #( 17887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17888/* end confdefs.h. */ 17889int i; 17890_ACEOF 17891if ac_fn_c_try_compile "$LINENO" 17892then : 17893 xorg_cv_cc_flag_unknown_warning_option=yes 17894else case e in #( 17895 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17896esac 17897fi 17898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17899esac 17900fi 17901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17904 CFLAGS="$xorg_testset_save_CFLAGS" 17905fi 17906 17907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17910 fi 17911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17914if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17915then : 17916 printf %s "(cached) " >&6 17917else case e in #( 17918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17919/* end confdefs.h. */ 17920int i; 17921_ACEOF 17922if ac_fn_c_try_compile "$LINENO" 17923then : 17924 xorg_cv_cc_flag_unused_command_line_argument=yes 17925else case e in #( 17926 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17927esac 17928fi 17929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17930esac 17931fi 17932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17935 CFLAGS="$xorg_testset_save_CFLAGS" 17936fi 17937 17938found="no" 17939 17940 if test $found = "no" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 17945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17947 fi 17948 17949 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17950 17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17952printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17953 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17954 if eval test \${$cacheid+y} 17955then : 17956 printf %s "(cached) " >&6 17957else case e in #( 17958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960int i; 17961int 17962main (void) 17963{ 17964 17965 ; 17966 return 0; 17967} 17968_ACEOF 17969if ac_fn_c_try_link "$LINENO" 17970then : 17971 eval $cacheid=yes 17972else case e in #( 17973 e) eval $cacheid=no ;; 17974esac 17975fi 17976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17977 conftest$ac_exeext conftest.$ac_ext ;; 17978esac 17979fi 17980 17981 17982 CFLAGS="$xorg_testset_save_CFLAGS" 17983 17984 eval supported=\$$cacheid 17985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17986printf "%s\n" "$supported" >&6; } 17987 if test "$supported" = "yes" ; then 17988 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17989 found="yes" 17990 fi 17991 fi 17992 17993 if test $found = "no" ; then 17994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17996 fi 17997 17998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18000 fi 18001 18002 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18003 18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18005printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18006 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18007 if eval test \${$cacheid+y} 18008then : 18009 printf %s "(cached) " >&6 18010else case e in #( 18011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18012/* end confdefs.h. */ 18013int i; 18014int 18015main (void) 18016{ 18017 18018 ; 18019 return 0; 18020} 18021_ACEOF 18022if ac_fn_c_try_link "$LINENO" 18023then : 18024 eval $cacheid=yes 18025else case e in #( 18026 e) eval $cacheid=no ;; 18027esac 18028fi 18029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18030 conftest$ac_exeext conftest.$ac_ext ;; 18031esac 18032fi 18033 18034 18035 CFLAGS="$xorg_testset_save_CFLAGS" 18036 18037 eval supported=\$$cacheid 18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18039printf "%s\n" "$supported" >&6; } 18040 if test "$supported" = "yes" ; then 18041 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18042 found="yes" 18043 fi 18044 fi 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060xorg_testset_save_CFLAGS="$CFLAGS" 18061 18062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18067then : 18068 printf %s "(cached) " >&6 18069else case e in #( 18070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18071/* end confdefs.h. */ 18072int i; 18073_ACEOF 18074if ac_fn_c_try_compile "$LINENO" 18075then : 18076 xorg_cv_cc_flag_unknown_warning_option=yes 18077else case e in #( 18078 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18079esac 18080fi 18081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18082esac 18083fi 18084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18087 CFLAGS="$xorg_testset_save_CFLAGS" 18088fi 18089 18090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18093 fi 18094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18098then : 18099 printf %s "(cached) " >&6 18100else case e in #( 18101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18102/* end confdefs.h. */ 18103int i; 18104_ACEOF 18105if ac_fn_c_try_compile "$LINENO" 18106then : 18107 xorg_cv_cc_flag_unused_command_line_argument=yes 18108else case e in #( 18109 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18110esac 18111fi 18112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18113esac 18114fi 18115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18118 CFLAGS="$xorg_testset_save_CFLAGS" 18119fi 18120 18121found="no" 18122 18123 if test $found = "no" ; then 18124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18126 fi 18127 18128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18130 fi 18131 18132 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18133 18134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18135printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18136 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18137 if eval test \${$cacheid+y} 18138then : 18139 printf %s "(cached) " >&6 18140else case e in #( 18141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18142/* end confdefs.h. */ 18143int i; 18144int 18145main (void) 18146{ 18147 18148 ; 18149 return 0; 18150} 18151_ACEOF 18152if ac_fn_c_try_link "$LINENO" 18153then : 18154 eval $cacheid=yes 18155else case e in #( 18156 e) eval $cacheid=no ;; 18157esac 18158fi 18159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18160 conftest$ac_exeext conftest.$ac_ext ;; 18161esac 18162fi 18163 18164 18165 CFLAGS="$xorg_testset_save_CFLAGS" 18166 18167 eval supported=\$$cacheid 18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18169printf "%s\n" "$supported" >&6; } 18170 if test "$supported" = "yes" ; then 18171 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18172 found="yes" 18173 fi 18174 fi 18175 18176 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18177else 18178{ 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 18179printf "%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;} 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193xorg_testset_save_CFLAGS="$CFLAGS" 18194 18195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18199if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18200then : 18201 printf %s "(cached) " >&6 18202else case e in #( 18203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18204/* end confdefs.h. */ 18205int i; 18206_ACEOF 18207if ac_fn_c_try_compile "$LINENO" 18208then : 18209 xorg_cv_cc_flag_unknown_warning_option=yes 18210else case e in #( 18211 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18212esac 18213fi 18214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18215esac 18216fi 18217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18220 CFLAGS="$xorg_testset_save_CFLAGS" 18221fi 18222 18223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18226 fi 18227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18231then : 18232 printf %s "(cached) " >&6 18233else case e in #( 18234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18235/* end confdefs.h. */ 18236int i; 18237_ACEOF 18238if ac_fn_c_try_compile "$LINENO" 18239then : 18240 xorg_cv_cc_flag_unused_command_line_argument=yes 18241else case e in #( 18242 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18243esac 18244fi 18245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18246esac 18247fi 18248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18249printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18251 CFLAGS="$xorg_testset_save_CFLAGS" 18252fi 18253 18254found="no" 18255 18256 if test $found = "no" ; then 18257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18259 fi 18260 18261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18263 fi 18264 18265 CFLAGS="$CFLAGS -Wimplicit" 18266 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18268printf %s "checking if $CC supports -Wimplicit... " >&6; } 18269 cacheid=xorg_cv_cc_flag__Wimplicit 18270 if eval test \${$cacheid+y} 18271then : 18272 printf %s "(cached) " >&6 18273else case e in #( 18274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276int i; 18277int 18278main (void) 18279{ 18280 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285if ac_fn_c_try_link "$LINENO" 18286then : 18287 eval $cacheid=yes 18288else case e in #( 18289 e) eval $cacheid=no ;; 18290esac 18291fi 18292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18293 conftest$ac_exeext conftest.$ac_ext ;; 18294esac 18295fi 18296 18297 18298 CFLAGS="$xorg_testset_save_CFLAGS" 18299 18300 eval supported=\$$cacheid 18301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18302printf "%s\n" "$supported" >&6; } 18303 if test "$supported" = "yes" ; then 18304 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18305 found="yes" 18306 fi 18307 fi 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323xorg_testset_save_CFLAGS="$CFLAGS" 18324 18325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18329if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18330then : 18331 printf %s "(cached) " >&6 18332else case e in #( 18333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18334/* end confdefs.h. */ 18335int i; 18336_ACEOF 18337if ac_fn_c_try_compile "$LINENO" 18338then : 18339 xorg_cv_cc_flag_unknown_warning_option=yes 18340else case e in #( 18341 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18342esac 18343fi 18344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18345esac 18346fi 18347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18350 CFLAGS="$xorg_testset_save_CFLAGS" 18351fi 18352 18353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18356 fi 18357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18360if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18361then : 18362 printf %s "(cached) " >&6 18363else case e in #( 18364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365/* end confdefs.h. */ 18366int i; 18367_ACEOF 18368if ac_fn_c_try_compile "$LINENO" 18369then : 18370 xorg_cv_cc_flag_unused_command_line_argument=yes 18371else case e in #( 18372 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18373esac 18374fi 18375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18376esac 18377fi 18378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18381 CFLAGS="$xorg_testset_save_CFLAGS" 18382fi 18383 18384found="no" 18385 18386 if test $found = "no" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 18391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18393 fi 18394 18395 CFLAGS="$CFLAGS -Wnonnull" 18396 18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18398printf %s "checking if $CC supports -Wnonnull... " >&6; } 18399 cacheid=xorg_cv_cc_flag__Wnonnull 18400 if eval test \${$cacheid+y} 18401then : 18402 printf %s "(cached) " >&6 18403else case e in #( 18404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18405/* end confdefs.h. */ 18406int i; 18407int 18408main (void) 18409{ 18410 18411 ; 18412 return 0; 18413} 18414_ACEOF 18415if ac_fn_c_try_link "$LINENO" 18416then : 18417 eval $cacheid=yes 18418else case e in #( 18419 e) eval $cacheid=no ;; 18420esac 18421fi 18422rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18423 conftest$ac_exeext conftest.$ac_ext ;; 18424esac 18425fi 18426 18427 18428 CFLAGS="$xorg_testset_save_CFLAGS" 18429 18430 eval supported=\$$cacheid 18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18432printf "%s\n" "$supported" >&6; } 18433 if test "$supported" = "yes" ; then 18434 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18435 found="yes" 18436 fi 18437 fi 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453xorg_testset_save_CFLAGS="$CFLAGS" 18454 18455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18459if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18460then : 18461 printf %s "(cached) " >&6 18462else case e in #( 18463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18464/* end confdefs.h. */ 18465int i; 18466_ACEOF 18467if ac_fn_c_try_compile "$LINENO" 18468then : 18469 xorg_cv_cc_flag_unknown_warning_option=yes 18470else case e in #( 18471 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18472esac 18473fi 18474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18475esac 18476fi 18477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18480 CFLAGS="$xorg_testset_save_CFLAGS" 18481fi 18482 18483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18486 fi 18487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18490if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18491then : 18492 printf %s "(cached) " >&6 18493else case e in #( 18494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18495/* end confdefs.h. */ 18496int i; 18497_ACEOF 18498if ac_fn_c_try_compile "$LINENO" 18499then : 18500 xorg_cv_cc_flag_unused_command_line_argument=yes 18501else case e in #( 18502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18503esac 18504fi 18505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18506esac 18507fi 18508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18511 CFLAGS="$xorg_testset_save_CFLAGS" 18512fi 18513 18514found="no" 18515 18516 if test $found = "no" ; then 18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18519 fi 18520 18521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18523 fi 18524 18525 CFLAGS="$CFLAGS -Winit-self" 18526 18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18528printf %s "checking if $CC supports -Winit-self... " >&6; } 18529 cacheid=xorg_cv_cc_flag__Winit_self 18530 if eval test \${$cacheid+y} 18531then : 18532 printf %s "(cached) " >&6 18533else case e in #( 18534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18535/* end confdefs.h. */ 18536int i; 18537int 18538main (void) 18539{ 18540 18541 ; 18542 return 0; 18543} 18544_ACEOF 18545if ac_fn_c_try_link "$LINENO" 18546then : 18547 eval $cacheid=yes 18548else case e in #( 18549 e) eval $cacheid=no ;; 18550esac 18551fi 18552rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18553 conftest$ac_exeext conftest.$ac_ext ;; 18554esac 18555fi 18556 18557 18558 CFLAGS="$xorg_testset_save_CFLAGS" 18559 18560 eval supported=\$$cacheid 18561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18562printf "%s\n" "$supported" >&6; } 18563 if test "$supported" = "yes" ; then 18564 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18565 found="yes" 18566 fi 18567 fi 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583xorg_testset_save_CFLAGS="$CFLAGS" 18584 18585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18589if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18590then : 18591 printf %s "(cached) " >&6 18592else case e in #( 18593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18594/* end confdefs.h. */ 18595int i; 18596_ACEOF 18597if ac_fn_c_try_compile "$LINENO" 18598then : 18599 xorg_cv_cc_flag_unknown_warning_option=yes 18600else case e in #( 18601 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18602esac 18603fi 18604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18605esac 18606fi 18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18610 CFLAGS="$xorg_testset_save_CFLAGS" 18611fi 18612 18613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 fi 18617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18620if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18621then : 18622 printf %s "(cached) " >&6 18623else case e in #( 18624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625/* end confdefs.h. */ 18626int i; 18627_ACEOF 18628if ac_fn_c_try_compile "$LINENO" 18629then : 18630 xorg_cv_cc_flag_unused_command_line_argument=yes 18631else case e in #( 18632 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18633esac 18634fi 18635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18636esac 18637fi 18638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18641 CFLAGS="$xorg_testset_save_CFLAGS" 18642fi 18643 18644found="no" 18645 18646 if test $found = "no" ; then 18647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18649 fi 18650 18651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18653 fi 18654 18655 CFLAGS="$CFLAGS -Wmain" 18656 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18658printf %s "checking if $CC supports -Wmain... " >&6; } 18659 cacheid=xorg_cv_cc_flag__Wmain 18660 if eval test \${$cacheid+y} 18661then : 18662 printf %s "(cached) " >&6 18663else case e in #( 18664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18665/* end confdefs.h. */ 18666int i; 18667int 18668main (void) 18669{ 18670 18671 ; 18672 return 0; 18673} 18674_ACEOF 18675if ac_fn_c_try_link "$LINENO" 18676then : 18677 eval $cacheid=yes 18678else case e in #( 18679 e) eval $cacheid=no ;; 18680esac 18681fi 18682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18683 conftest$ac_exeext conftest.$ac_ext ;; 18684esac 18685fi 18686 18687 18688 CFLAGS="$xorg_testset_save_CFLAGS" 18689 18690 eval supported=\$$cacheid 18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18692printf "%s\n" "$supported" >&6; } 18693 if test "$supported" = "yes" ; then 18694 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18695 found="yes" 18696 fi 18697 fi 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713xorg_testset_save_CFLAGS="$CFLAGS" 18714 18715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18719if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18720then : 18721 printf %s "(cached) " >&6 18722else case e in #( 18723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18724/* end confdefs.h. */ 18725int i; 18726_ACEOF 18727if ac_fn_c_try_compile "$LINENO" 18728then : 18729 xorg_cv_cc_flag_unknown_warning_option=yes 18730else case e in #( 18731 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18732esac 18733fi 18734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18735esac 18736fi 18737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18740 CFLAGS="$xorg_testset_save_CFLAGS" 18741fi 18742 18743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18746 fi 18747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18750if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18751then : 18752 printf %s "(cached) " >&6 18753else case e in #( 18754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18755/* end confdefs.h. */ 18756int i; 18757_ACEOF 18758if ac_fn_c_try_compile "$LINENO" 18759then : 18760 xorg_cv_cc_flag_unused_command_line_argument=yes 18761else case e in #( 18762 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18763esac 18764fi 18765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18766esac 18767fi 18768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18771 CFLAGS="$xorg_testset_save_CFLAGS" 18772fi 18773 18774found="no" 18775 18776 if test $found = "no" ; then 18777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18779 fi 18780 18781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18783 fi 18784 18785 CFLAGS="$CFLAGS -Wmissing-braces" 18786 18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18788printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18789 cacheid=xorg_cv_cc_flag__Wmissing_braces 18790 if eval test \${$cacheid+y} 18791then : 18792 printf %s "(cached) " >&6 18793else case e in #( 18794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18795/* end confdefs.h. */ 18796int i; 18797int 18798main (void) 18799{ 18800 18801 ; 18802 return 0; 18803} 18804_ACEOF 18805if ac_fn_c_try_link "$LINENO" 18806then : 18807 eval $cacheid=yes 18808else case e in #( 18809 e) eval $cacheid=no ;; 18810esac 18811fi 18812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18813 conftest$ac_exeext conftest.$ac_ext ;; 18814esac 18815fi 18816 18817 18818 CFLAGS="$xorg_testset_save_CFLAGS" 18819 18820 eval supported=\$$cacheid 18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18822printf "%s\n" "$supported" >&6; } 18823 if test "$supported" = "yes" ; then 18824 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18825 found="yes" 18826 fi 18827 fi 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843xorg_testset_save_CFLAGS="$CFLAGS" 18844 18845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18849if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18850then : 18851 printf %s "(cached) " >&6 18852else case e in #( 18853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18854/* end confdefs.h. */ 18855int i; 18856_ACEOF 18857if ac_fn_c_try_compile "$LINENO" 18858then : 18859 xorg_cv_cc_flag_unknown_warning_option=yes 18860else case e in #( 18861 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18862esac 18863fi 18864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18865esac 18866fi 18867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18870 CFLAGS="$xorg_testset_save_CFLAGS" 18871fi 18872 18873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18876 fi 18877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18880if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18881then : 18882 printf %s "(cached) " >&6 18883else case e in #( 18884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18885/* end confdefs.h. */ 18886int i; 18887_ACEOF 18888if ac_fn_c_try_compile "$LINENO" 18889then : 18890 xorg_cv_cc_flag_unused_command_line_argument=yes 18891else case e in #( 18892 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18893esac 18894fi 18895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18896esac 18897fi 18898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18901 CFLAGS="$xorg_testset_save_CFLAGS" 18902fi 18903 18904found="no" 18905 18906 if test $found = "no" ; then 18907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18909 fi 18910 18911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18913 fi 18914 18915 CFLAGS="$CFLAGS -Wsequence-point" 18916 18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18918printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18919 cacheid=xorg_cv_cc_flag__Wsequence_point 18920 if eval test \${$cacheid+y} 18921then : 18922 printf %s "(cached) " >&6 18923else case e in #( 18924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18925/* end confdefs.h. */ 18926int i; 18927int 18928main (void) 18929{ 18930 18931 ; 18932 return 0; 18933} 18934_ACEOF 18935if ac_fn_c_try_link "$LINENO" 18936then : 18937 eval $cacheid=yes 18938else case e in #( 18939 e) eval $cacheid=no ;; 18940esac 18941fi 18942rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18943 conftest$ac_exeext conftest.$ac_ext ;; 18944esac 18945fi 18946 18947 18948 CFLAGS="$xorg_testset_save_CFLAGS" 18949 18950 eval supported=\$$cacheid 18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18952printf "%s\n" "$supported" >&6; } 18953 if test "$supported" = "yes" ; then 18954 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18955 found="yes" 18956 fi 18957 fi 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973xorg_testset_save_CFLAGS="$CFLAGS" 18974 18975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18979if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18980then : 18981 printf %s "(cached) " >&6 18982else case e in #( 18983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18984/* end confdefs.h. */ 18985int i; 18986_ACEOF 18987if ac_fn_c_try_compile "$LINENO" 18988then : 18989 xorg_cv_cc_flag_unknown_warning_option=yes 18990else case e in #( 18991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18992esac 18993fi 18994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18995esac 18996fi 18997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19000 CFLAGS="$xorg_testset_save_CFLAGS" 19001fi 19002 19003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19006 fi 19007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19010if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19011then : 19012 printf %s "(cached) " >&6 19013else case e in #( 19014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19015/* end confdefs.h. */ 19016int i; 19017_ACEOF 19018if ac_fn_c_try_compile "$LINENO" 19019then : 19020 xorg_cv_cc_flag_unused_command_line_argument=yes 19021else case e in #( 19022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19023esac 19024fi 19025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19026esac 19027fi 19028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19031 CFLAGS="$xorg_testset_save_CFLAGS" 19032fi 19033 19034found="no" 19035 19036 if test $found = "no" ; then 19037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19039 fi 19040 19041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19043 fi 19044 19045 CFLAGS="$CFLAGS -Wreturn-type" 19046 19047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19048printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19049 cacheid=xorg_cv_cc_flag__Wreturn_type 19050 if eval test \${$cacheid+y} 19051then : 19052 printf %s "(cached) " >&6 19053else case e in #( 19054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19055/* end confdefs.h. */ 19056int i; 19057int 19058main (void) 19059{ 19060 19061 ; 19062 return 0; 19063} 19064_ACEOF 19065if ac_fn_c_try_link "$LINENO" 19066then : 19067 eval $cacheid=yes 19068else case e in #( 19069 e) eval $cacheid=no ;; 19070esac 19071fi 19072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19073 conftest$ac_exeext conftest.$ac_ext ;; 19074esac 19075fi 19076 19077 19078 CFLAGS="$xorg_testset_save_CFLAGS" 19079 19080 eval supported=\$$cacheid 19081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19082printf "%s\n" "$supported" >&6; } 19083 if test "$supported" = "yes" ; then 19084 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19085 found="yes" 19086 fi 19087 fi 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103xorg_testset_save_CFLAGS="$CFLAGS" 19104 19105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19109if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19110then : 19111 printf %s "(cached) " >&6 19112else case e in #( 19113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19114/* end confdefs.h. */ 19115int i; 19116_ACEOF 19117if ac_fn_c_try_compile "$LINENO" 19118then : 19119 xorg_cv_cc_flag_unknown_warning_option=yes 19120else case e in #( 19121 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19122esac 19123fi 19124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19125esac 19126fi 19127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19130 CFLAGS="$xorg_testset_save_CFLAGS" 19131fi 19132 19133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19136 fi 19137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19140if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19141then : 19142 printf %s "(cached) " >&6 19143else case e in #( 19144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19145/* end confdefs.h. */ 19146int i; 19147_ACEOF 19148if ac_fn_c_try_compile "$LINENO" 19149then : 19150 xorg_cv_cc_flag_unused_command_line_argument=yes 19151else case e in #( 19152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19153esac 19154fi 19155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19156esac 19157fi 19158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19161 CFLAGS="$xorg_testset_save_CFLAGS" 19162fi 19163 19164found="no" 19165 19166 if test $found = "no" ; then 19167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19169 fi 19170 19171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19173 fi 19174 19175 CFLAGS="$CFLAGS -Wtrigraphs" 19176 19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19178printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19179 cacheid=xorg_cv_cc_flag__Wtrigraphs 19180 if eval test \${$cacheid+y} 19181then : 19182 printf %s "(cached) " >&6 19183else case e in #( 19184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19185/* end confdefs.h. */ 19186int i; 19187int 19188main (void) 19189{ 19190 19191 ; 19192 return 0; 19193} 19194_ACEOF 19195if ac_fn_c_try_link "$LINENO" 19196then : 19197 eval $cacheid=yes 19198else case e in #( 19199 e) eval $cacheid=no ;; 19200esac 19201fi 19202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19203 conftest$ac_exeext conftest.$ac_ext ;; 19204esac 19205fi 19206 19207 19208 CFLAGS="$xorg_testset_save_CFLAGS" 19209 19210 eval supported=\$$cacheid 19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19212printf "%s\n" "$supported" >&6; } 19213 if test "$supported" = "yes" ; then 19214 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19215 found="yes" 19216 fi 19217 fi 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233xorg_testset_save_CFLAGS="$CFLAGS" 19234 19235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19240then : 19241 printf %s "(cached) " >&6 19242else case e in #( 19243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19244/* end confdefs.h. */ 19245int i; 19246_ACEOF 19247if ac_fn_c_try_compile "$LINENO" 19248then : 19249 xorg_cv_cc_flag_unknown_warning_option=yes 19250else case e in #( 19251 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19252esac 19253fi 19254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19255esac 19256fi 19257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19260 CFLAGS="$xorg_testset_save_CFLAGS" 19261fi 19262 19263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19266 fi 19267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19270if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19271then : 19272 printf %s "(cached) " >&6 19273else case e in #( 19274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19275/* end confdefs.h. */ 19276int i; 19277_ACEOF 19278if ac_fn_c_try_compile "$LINENO" 19279then : 19280 xorg_cv_cc_flag_unused_command_line_argument=yes 19281else case e in #( 19282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19283esac 19284fi 19285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19286esac 19287fi 19288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19291 CFLAGS="$xorg_testset_save_CFLAGS" 19292fi 19293 19294found="no" 19295 19296 if test $found = "no" ; then 19297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19299 fi 19300 19301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19303 fi 19304 19305 CFLAGS="$CFLAGS -Warray-bounds" 19306 19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19308printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19309 cacheid=xorg_cv_cc_flag__Warray_bounds 19310 if eval test \${$cacheid+y} 19311then : 19312 printf %s "(cached) " >&6 19313else case e in #( 19314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19315/* end confdefs.h. */ 19316int i; 19317int 19318main (void) 19319{ 19320 19321 ; 19322 return 0; 19323} 19324_ACEOF 19325if ac_fn_c_try_link "$LINENO" 19326then : 19327 eval $cacheid=yes 19328else case e in #( 19329 e) eval $cacheid=no ;; 19330esac 19331fi 19332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19333 conftest$ac_exeext conftest.$ac_ext ;; 19334esac 19335fi 19336 19337 19338 CFLAGS="$xorg_testset_save_CFLAGS" 19339 19340 eval supported=\$$cacheid 19341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19342printf "%s\n" "$supported" >&6; } 19343 if test "$supported" = "yes" ; then 19344 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19345 found="yes" 19346 fi 19347 fi 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363xorg_testset_save_CFLAGS="$CFLAGS" 19364 19365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19369if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19370then : 19371 printf %s "(cached) " >&6 19372else case e in #( 19373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19374/* end confdefs.h. */ 19375int i; 19376_ACEOF 19377if ac_fn_c_try_compile "$LINENO" 19378then : 19379 xorg_cv_cc_flag_unknown_warning_option=yes 19380else case e in #( 19381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19382esac 19383fi 19384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19385esac 19386fi 19387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19390 CFLAGS="$xorg_testset_save_CFLAGS" 19391fi 19392 19393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19396 fi 19397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19401then : 19402 printf %s "(cached) " >&6 19403else case e in #( 19404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19405/* end confdefs.h. */ 19406int i; 19407_ACEOF 19408if ac_fn_c_try_compile "$LINENO" 19409then : 19410 xorg_cv_cc_flag_unused_command_line_argument=yes 19411else case e in #( 19412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19413esac 19414fi 19415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19416esac 19417fi 19418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19421 CFLAGS="$xorg_testset_save_CFLAGS" 19422fi 19423 19424found="no" 19425 19426 if test $found = "no" ; then 19427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19429 fi 19430 19431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19433 fi 19434 19435 CFLAGS="$CFLAGS -Wwrite-strings" 19436 19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19438printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19439 cacheid=xorg_cv_cc_flag__Wwrite_strings 19440 if eval test \${$cacheid+y} 19441then : 19442 printf %s "(cached) " >&6 19443else case e in #( 19444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19445/* end confdefs.h. */ 19446int i; 19447int 19448main (void) 19449{ 19450 19451 ; 19452 return 0; 19453} 19454_ACEOF 19455if ac_fn_c_try_link "$LINENO" 19456then : 19457 eval $cacheid=yes 19458else case e in #( 19459 e) eval $cacheid=no ;; 19460esac 19461fi 19462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19463 conftest$ac_exeext conftest.$ac_ext ;; 19464esac 19465fi 19466 19467 19468 CFLAGS="$xorg_testset_save_CFLAGS" 19469 19470 eval supported=\$$cacheid 19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19472printf "%s\n" "$supported" >&6; } 19473 if test "$supported" = "yes" ; then 19474 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19475 found="yes" 19476 fi 19477 fi 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493xorg_testset_save_CFLAGS="$CFLAGS" 19494 19495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19500then : 19501 printf %s "(cached) " >&6 19502else case e in #( 19503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19504/* end confdefs.h. */ 19505int i; 19506_ACEOF 19507if ac_fn_c_try_compile "$LINENO" 19508then : 19509 xorg_cv_cc_flag_unknown_warning_option=yes 19510else case e in #( 19511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19512esac 19513fi 19514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19515esac 19516fi 19517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19520 CFLAGS="$xorg_testset_save_CFLAGS" 19521fi 19522 19523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19526 fi 19527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19530if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19531then : 19532 printf %s "(cached) " >&6 19533else case e in #( 19534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19535/* end confdefs.h. */ 19536int i; 19537_ACEOF 19538if ac_fn_c_try_compile "$LINENO" 19539then : 19540 xorg_cv_cc_flag_unused_command_line_argument=yes 19541else case e in #( 19542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19543esac 19544fi 19545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19546esac 19547fi 19548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19551 CFLAGS="$xorg_testset_save_CFLAGS" 19552fi 19553 19554found="no" 19555 19556 if test $found = "no" ; then 19557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19559 fi 19560 19561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19563 fi 19564 19565 CFLAGS="$CFLAGS -Waddress" 19566 19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19568printf %s "checking if $CC supports -Waddress... " >&6; } 19569 cacheid=xorg_cv_cc_flag__Waddress 19570 if eval test \${$cacheid+y} 19571then : 19572 printf %s "(cached) " >&6 19573else case e in #( 19574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19575/* end confdefs.h. */ 19576int i; 19577int 19578main (void) 19579{ 19580 19581 ; 19582 return 0; 19583} 19584_ACEOF 19585if ac_fn_c_try_link "$LINENO" 19586then : 19587 eval $cacheid=yes 19588else case e in #( 19589 e) eval $cacheid=no ;; 19590esac 19591fi 19592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19593 conftest$ac_exeext conftest.$ac_ext ;; 19594esac 19595fi 19596 19597 19598 CFLAGS="$xorg_testset_save_CFLAGS" 19599 19600 eval supported=\$$cacheid 19601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19602printf "%s\n" "$supported" >&6; } 19603 if test "$supported" = "yes" ; then 19604 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19605 found="yes" 19606 fi 19607 fi 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623xorg_testset_save_CFLAGS="$CFLAGS" 19624 19625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19630then : 19631 printf %s "(cached) " >&6 19632else case e in #( 19633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19634/* end confdefs.h. */ 19635int i; 19636_ACEOF 19637if ac_fn_c_try_compile "$LINENO" 19638then : 19639 xorg_cv_cc_flag_unknown_warning_option=yes 19640else case e in #( 19641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19642esac 19643fi 19644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19645esac 19646fi 19647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19650 CFLAGS="$xorg_testset_save_CFLAGS" 19651fi 19652 19653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19656 fi 19657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19661then : 19662 printf %s "(cached) " >&6 19663else case e in #( 19664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19665/* end confdefs.h. */ 19666int i; 19667_ACEOF 19668if ac_fn_c_try_compile "$LINENO" 19669then : 19670 xorg_cv_cc_flag_unused_command_line_argument=yes 19671else case e in #( 19672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19673esac 19674fi 19675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19676esac 19677fi 19678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19681 CFLAGS="$xorg_testset_save_CFLAGS" 19682fi 19683 19684found="no" 19685 19686 if test $found = "no" ; then 19687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19689 fi 19690 19691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19693 fi 19694 19695 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19696 19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19698printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19699 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19700 if eval test \${$cacheid+y} 19701then : 19702 printf %s "(cached) " >&6 19703else case e in #( 19704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19705/* end confdefs.h. */ 19706int i; 19707int 19708main (void) 19709{ 19710 19711 ; 19712 return 0; 19713} 19714_ACEOF 19715if ac_fn_c_try_link "$LINENO" 19716then : 19717 eval $cacheid=yes 19718else case e in #( 19719 e) eval $cacheid=no ;; 19720esac 19721fi 19722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19723 conftest$ac_exeext conftest.$ac_ext ;; 19724esac 19725fi 19726 19727 19728 CFLAGS="$xorg_testset_save_CFLAGS" 19729 19730 eval supported=\$$cacheid 19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19732printf "%s\n" "$supported" >&6; } 19733 if test "$supported" = "yes" ; then 19734 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19735 found="yes" 19736 fi 19737 fi 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753xorg_testset_save_CFLAGS="$CFLAGS" 19754 19755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19760then : 19761 printf %s "(cached) " >&6 19762else case e in #( 19763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19764/* end confdefs.h. */ 19765int i; 19766_ACEOF 19767if ac_fn_c_try_compile "$LINENO" 19768then : 19769 xorg_cv_cc_flag_unknown_warning_option=yes 19770else case e in #( 19771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19772esac 19773fi 19774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19775esac 19776fi 19777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19780 CFLAGS="$xorg_testset_save_CFLAGS" 19781fi 19782 19783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19786 fi 19787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19791then : 19792 printf %s "(cached) " >&6 19793else case e in #( 19794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19795/* end confdefs.h. */ 19796int i; 19797_ACEOF 19798if ac_fn_c_try_compile "$LINENO" 19799then : 19800 xorg_cv_cc_flag_unused_command_line_argument=yes 19801else case e in #( 19802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19803esac 19804fi 19805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19806esac 19807fi 19808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19811 CFLAGS="$xorg_testset_save_CFLAGS" 19812fi 19813 19814found="no" 19815 19816 if test $found = "no" ; then 19817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19819 fi 19820 19821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19823 fi 19824 19825 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19826 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19828printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19829 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19830 if eval test \${$cacheid+y} 19831then : 19832 printf %s "(cached) " >&6 19833else case e in #( 19834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19835/* end confdefs.h. */ 19836int i; 19837int 19838main (void) 19839{ 19840 19841 ; 19842 return 0; 19843} 19844_ACEOF 19845if ac_fn_c_try_link "$LINENO" 19846then : 19847 eval $cacheid=yes 19848else case e in #( 19849 e) eval $cacheid=no ;; 19850esac 19851fi 19852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19853 conftest$ac_exeext conftest.$ac_ext ;; 19854esac 19855fi 19856 19857 19858 CFLAGS="$xorg_testset_save_CFLAGS" 19859 19860 eval supported=\$$cacheid 19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19862printf "%s\n" "$supported" >&6; } 19863 if test "$supported" = "yes" ; then 19864 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19865 found="yes" 19866 fi 19867 fi 19868 19869 19870fi 19871 19872 19873 19874 19875 19876 19877 19878 CWARNFLAGS="$BASE_CFLAGS" 19879 if test "x$GCC" = xyes ; then 19880 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19881 fi 19882 19883 19884 19885 19886 19887 19888 19889 19890# Check whether --enable-strict-compilation was given. 19891if test ${enable_strict_compilation+y} 19892then : 19893 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19894else case e in #( 19895 e) STRICT_COMPILE=no ;; 19896esac 19897fi 19898 19899 19900 19901 19902 19903 19904STRICT_CFLAGS="" 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918xorg_testset_save_CFLAGS="$CFLAGS" 19919 19920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19924if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19925then : 19926 printf %s "(cached) " >&6 19927else case e in #( 19928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19929/* end confdefs.h. */ 19930int i; 19931_ACEOF 19932if ac_fn_c_try_compile "$LINENO" 19933then : 19934 xorg_cv_cc_flag_unknown_warning_option=yes 19935else case e in #( 19936 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19937esac 19938fi 19939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19940esac 19941fi 19942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19945 CFLAGS="$xorg_testset_save_CFLAGS" 19946fi 19947 19948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19951 fi 19952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19955if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19956then : 19957 printf %s "(cached) " >&6 19958else case e in #( 19959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19960/* end confdefs.h. */ 19961int i; 19962_ACEOF 19963if ac_fn_c_try_compile "$LINENO" 19964then : 19965 xorg_cv_cc_flag_unused_command_line_argument=yes 19966else case e in #( 19967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19968esac 19969fi 19970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19971esac 19972fi 19973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19976 CFLAGS="$xorg_testset_save_CFLAGS" 19977fi 19978 19979found="no" 19980 19981 if test $found = "no" ; then 19982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19984 fi 19985 19986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19988 fi 19989 19990 CFLAGS="$CFLAGS -pedantic" 19991 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19993printf %s "checking if $CC supports -pedantic... " >&6; } 19994 cacheid=xorg_cv_cc_flag__pedantic 19995 if eval test \${$cacheid+y} 19996then : 19997 printf %s "(cached) " >&6 19998else case e in #( 19999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20000/* end confdefs.h. */ 20001int i; 20002int 20003main (void) 20004{ 20005 20006 ; 20007 return 0; 20008} 20009_ACEOF 20010if ac_fn_c_try_link "$LINENO" 20011then : 20012 eval $cacheid=yes 20013else case e in #( 20014 e) eval $cacheid=no ;; 20015esac 20016fi 20017rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20018 conftest$ac_exeext conftest.$ac_ext ;; 20019esac 20020fi 20021 20022 20023 CFLAGS="$xorg_testset_save_CFLAGS" 20024 20025 eval supported=\$$cacheid 20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20027printf "%s\n" "$supported" >&6; } 20028 if test "$supported" = "yes" ; then 20029 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20030 found="yes" 20031 fi 20032 fi 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048xorg_testset_save_CFLAGS="$CFLAGS" 20049 20050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20054if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20055then : 20056 printf %s "(cached) " >&6 20057else case e in #( 20058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20059/* end confdefs.h. */ 20060int i; 20061_ACEOF 20062if ac_fn_c_try_compile "$LINENO" 20063then : 20064 xorg_cv_cc_flag_unknown_warning_option=yes 20065else case e in #( 20066 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20067esac 20068fi 20069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20070esac 20071fi 20072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20075 CFLAGS="$xorg_testset_save_CFLAGS" 20076fi 20077 20078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20081 fi 20082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20085if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20086then : 20087 printf %s "(cached) " >&6 20088else case e in #( 20089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20090/* end confdefs.h. */ 20091int i; 20092_ACEOF 20093if ac_fn_c_try_compile "$LINENO" 20094then : 20095 xorg_cv_cc_flag_unused_command_line_argument=yes 20096else case e in #( 20097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20098esac 20099fi 20100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20101esac 20102fi 20103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20106 CFLAGS="$xorg_testset_save_CFLAGS" 20107fi 20108 20109found="no" 20110 20111 if test $found = "no" ; then 20112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20114 fi 20115 20116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20118 fi 20119 20120 CFLAGS="$CFLAGS -Werror" 20121 20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20123printf %s "checking if $CC supports -Werror... " >&6; } 20124 cacheid=xorg_cv_cc_flag__Werror 20125 if eval test \${$cacheid+y} 20126then : 20127 printf %s "(cached) " >&6 20128else case e in #( 20129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20130/* end confdefs.h. */ 20131int i; 20132int 20133main (void) 20134{ 20135 20136 ; 20137 return 0; 20138} 20139_ACEOF 20140if ac_fn_c_try_link "$LINENO" 20141then : 20142 eval $cacheid=yes 20143else case e in #( 20144 e) eval $cacheid=no ;; 20145esac 20146fi 20147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20148 conftest$ac_exeext conftest.$ac_ext ;; 20149esac 20150fi 20151 20152 20153 CFLAGS="$xorg_testset_save_CFLAGS" 20154 20155 eval supported=\$$cacheid 20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20157printf "%s\n" "$supported" >&6; } 20158 if test "$supported" = "yes" ; then 20159 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20160 found="yes" 20161 fi 20162 fi 20163 20164 if test $found = "no" ; then 20165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20167 fi 20168 20169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20171 fi 20172 20173 CFLAGS="$CFLAGS -errwarn" 20174 20175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20176printf %s "checking if $CC supports -errwarn... " >&6; } 20177 cacheid=xorg_cv_cc_flag__errwarn 20178 if eval test \${$cacheid+y} 20179then : 20180 printf %s "(cached) " >&6 20181else case e in #( 20182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20183/* end confdefs.h. */ 20184int i; 20185int 20186main (void) 20187{ 20188 20189 ; 20190 return 0; 20191} 20192_ACEOF 20193if ac_fn_c_try_link "$LINENO" 20194then : 20195 eval $cacheid=yes 20196else case e in #( 20197 e) eval $cacheid=no ;; 20198esac 20199fi 20200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20201 conftest$ac_exeext conftest.$ac_ext ;; 20202esac 20203fi 20204 20205 20206 CFLAGS="$xorg_testset_save_CFLAGS" 20207 20208 eval supported=\$$cacheid 20209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20210printf "%s\n" "$supported" >&6; } 20211 if test "$supported" = "yes" ; then 20212 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20213 found="yes" 20214 fi 20215 fi 20216 20217 20218 20219# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20220# activate it with -Werror, so we add it here explicitly. 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234xorg_testset_save_CFLAGS="$CFLAGS" 20235 20236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20241then : 20242 printf %s "(cached) " >&6 20243else case e in #( 20244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20245/* end confdefs.h. */ 20246int i; 20247_ACEOF 20248if ac_fn_c_try_compile "$LINENO" 20249then : 20250 xorg_cv_cc_flag_unknown_warning_option=yes 20251else case e in #( 20252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20253esac 20254fi 20255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20256esac 20257fi 20258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20261 CFLAGS="$xorg_testset_save_CFLAGS" 20262fi 20263 20264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20267 fi 20268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20271if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20272then : 20273 printf %s "(cached) " >&6 20274else case e in #( 20275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20276/* end confdefs.h. */ 20277int i; 20278_ACEOF 20279if ac_fn_c_try_compile "$LINENO" 20280then : 20281 xorg_cv_cc_flag_unused_command_line_argument=yes 20282else case e in #( 20283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20284esac 20285fi 20286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20287esac 20288fi 20289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20292 CFLAGS="$xorg_testset_save_CFLAGS" 20293fi 20294 20295found="no" 20296 20297 if test $found = "no" ; then 20298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20300 fi 20301 20302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20304 fi 20305 20306 CFLAGS="$CFLAGS -Werror=attributes" 20307 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20309printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20310 cacheid=xorg_cv_cc_flag__Werror_attributes 20311 if eval test \${$cacheid+y} 20312then : 20313 printf %s "(cached) " >&6 20314else case e in #( 20315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20316/* end confdefs.h. */ 20317int i; 20318int 20319main (void) 20320{ 20321 20322 ; 20323 return 0; 20324} 20325_ACEOF 20326if ac_fn_c_try_link "$LINENO" 20327then : 20328 eval $cacheid=yes 20329else case e in #( 20330 e) eval $cacheid=no ;; 20331esac 20332fi 20333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20334 conftest$ac_exeext conftest.$ac_ext ;; 20335esac 20336fi 20337 20338 20339 CFLAGS="$xorg_testset_save_CFLAGS" 20340 20341 eval supported=\$$cacheid 20342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20343printf "%s\n" "$supported" >&6; } 20344 if test "$supported" = "yes" ; then 20345 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20346 found="yes" 20347 fi 20348 fi 20349 20350 20351 20352if test "x$STRICT_COMPILE" = "xyes"; then 20353 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20354 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20355fi 20356 20357 20358 20359 20360 20361 20362 20363 20364cat >>confdefs.h <<_ACEOF 20365#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20366_ACEOF 20367 20368 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20369 if test "x$PVM" = "x"; then 20370 PVM="0" 20371 fi 20372 20373printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20374 20375 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20376 if test "x$PVP" = "x"; then 20377 PVP="0" 20378 fi 20379 20380printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20381 20382 20383 20384CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20385mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20386|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20387touch \$(top_srcdir)/ChangeLog; \ 20388echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20389 20390 20391 20392 20393macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20394INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20395mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20396|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20397touch \$(top_srcdir)/INSTALL; \ 20398echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20399 20400 20401 20402 20403 20404 20405case $host_os in 20406 solaris*) 20407 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20408 # check for a man page file found in later versions that use 20409 # traditional section numbers instead 20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20411printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20412if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20413then : 20414 printf %s "(cached) " >&6 20415else case e in #( 20416 e) test "$cross_compiling" = yes && 20417 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20418if test -r "/usr/share/man/man7/attributes.7"; then 20419 ac_cv_file__usr_share_man_man7_attributes_7=yes 20420else 20421 ac_cv_file__usr_share_man_man7_attributes_7=no 20422fi ;; 20423esac 20424fi 20425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20426printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20427if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20428then : 20429 SYSV_MAN_SECTIONS=false 20430else case e in #( 20431 e) SYSV_MAN_SECTIONS=true ;; 20432esac 20433fi 20434 20435 ;; 20436 *) SYSV_MAN_SECTIONS=false ;; 20437esac 20438 20439if test x$APP_MAN_SUFFIX = x ; then 20440 APP_MAN_SUFFIX=1 20441fi 20442if test x$APP_MAN_DIR = x ; then 20443 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20444fi 20445 20446if test x$LIB_MAN_SUFFIX = x ; then 20447 LIB_MAN_SUFFIX=3 20448fi 20449if test x$LIB_MAN_DIR = x ; then 20450 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20451fi 20452 20453if test x$FILE_MAN_SUFFIX = x ; then 20454 case $SYSV_MAN_SECTIONS in 20455 true) FILE_MAN_SUFFIX=4 ;; 20456 *) FILE_MAN_SUFFIX=5 ;; 20457 esac 20458fi 20459if test x$FILE_MAN_DIR = x ; then 20460 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20461fi 20462 20463if test x$MISC_MAN_SUFFIX = x ; then 20464 case $SYSV_MAN_SECTIONS in 20465 true) MISC_MAN_SUFFIX=5 ;; 20466 *) MISC_MAN_SUFFIX=7 ;; 20467 esac 20468fi 20469if test x$MISC_MAN_DIR = x ; then 20470 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20471fi 20472 20473if test x$DRIVER_MAN_SUFFIX = x ; then 20474 case $SYSV_MAN_SECTIONS in 20475 true) DRIVER_MAN_SUFFIX=7 ;; 20476 *) DRIVER_MAN_SUFFIX=4 ;; 20477 esac 20478fi 20479if test x$DRIVER_MAN_DIR = x ; then 20480 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20481fi 20482 20483if test x$ADMIN_MAN_SUFFIX = x ; then 20484 case $SYSV_MAN_SECTIONS in 20485 true) ADMIN_MAN_SUFFIX=1m ;; 20486 *) ADMIN_MAN_SUFFIX=8 ;; 20487 esac 20488fi 20489if test x$ADMIN_MAN_DIR = x ; then 20490 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20491fi 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507XORG_MAN_PAGE="X Version 11" 20508 20509MAN_SUBSTS="\ 20510 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20511 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20512 -e 's|__xservername__|Xorg|g' \ 20513 -e 's|__xconfigfile__|xorg.conf|g' \ 20514 -e 's|__projectroot__|\$(prefix)|g' \ 20515 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20516 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20517 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20518 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20519 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20520 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20521 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20522 20523 20524 20525 20526AM_DEFAULT_VERBOSITY=0 20527 20528 20529 20530 20531# Check whether --enable-docs was given. 20532if test ${enable_docs+y} 20533then : 20534 enableval=$enable_docs; build_docs=$enableval 20535else case e in #( 20536 e) build_docs=yes ;; 20537esac 20538fi 20539 20540 20541 if test x$build_docs = xyes; then 20542 ENABLE_DOCS_TRUE= 20543 ENABLE_DOCS_FALSE='#' 20544else 20545 ENABLE_DOCS_TRUE='#' 20546 ENABLE_DOCS_FALSE= 20547fi 20548 20549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 20550printf %s "checking whether to build documentation... " >&6; } 20551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 20552printf "%s\n" "$build_docs" >&6; } 20553 20554 20555 20556 20557 20558# Check whether --with-xmlto was given. 20559if test ${with_xmlto+y} 20560then : 20561 withval=$with_xmlto; use_xmlto=$withval 20562else case e in #( 20563 e) use_xmlto=auto ;; 20564esac 20565fi 20566 20567 20568 20569if test "x$use_xmlto" = x"auto"; then 20570 # Extract the first word of "xmlto", so it can be a program name with args. 20571set dummy xmlto; ac_word=$2 20572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20573printf %s "checking for $ac_word... " >&6; } 20574if test ${ac_cv_path_XMLTO+y} 20575then : 20576 printf %s "(cached) " >&6 20577else case e in #( 20578 e) case $XMLTO in 20579 [\\/]* | ?:[\\/]*) 20580 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20581 ;; 20582 *) 20583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20584for as_dir in $PATH 20585do 20586 IFS=$as_save_IFS 20587 case $as_dir in #((( 20588 '') as_dir=./ ;; 20589 */) ;; 20590 *) as_dir=$as_dir/ ;; 20591 esac 20592 for ac_exec_ext in '' $ac_executable_extensions; do 20593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20594 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20596 break 2 20597 fi 20598done 20599 done 20600IFS=$as_save_IFS 20601 20602 ;; 20603esac ;; 20604esac 20605fi 20606XMLTO=$ac_cv_path_XMLTO 20607if test -n "$XMLTO"; then 20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20609printf "%s\n" "$XMLTO" >&6; } 20610else 20611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20612printf "%s\n" "no" >&6; } 20613fi 20614 20615 20616 if test "x$XMLTO" = "x"; then 20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20618printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20619 have_xmlto=no 20620 else 20621 have_xmlto=yes 20622 fi 20623elif test "x$use_xmlto" = x"yes" ; then 20624 # Extract the first word of "xmlto", so it can be a program name with args. 20625set dummy xmlto; ac_word=$2 20626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20627printf %s "checking for $ac_word... " >&6; } 20628if test ${ac_cv_path_XMLTO+y} 20629then : 20630 printf %s "(cached) " >&6 20631else case e in #( 20632 e) case $XMLTO in 20633 [\\/]* | ?:[\\/]*) 20634 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20635 ;; 20636 *) 20637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20638for as_dir in $PATH 20639do 20640 IFS=$as_save_IFS 20641 case $as_dir in #((( 20642 '') as_dir=./ ;; 20643 */) ;; 20644 *) as_dir=$as_dir/ ;; 20645 esac 20646 for ac_exec_ext in '' $ac_executable_extensions; do 20647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20648 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20650 break 2 20651 fi 20652done 20653 done 20654IFS=$as_save_IFS 20655 20656 ;; 20657esac ;; 20658esac 20659fi 20660XMLTO=$ac_cv_path_XMLTO 20661if test -n "$XMLTO"; then 20662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20663printf "%s\n" "$XMLTO" >&6; } 20664else 20665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20666printf "%s\n" "no" >&6; } 20667fi 20668 20669 20670 if test "x$XMLTO" = "x"; then 20671 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20672 fi 20673 have_xmlto=yes 20674elif test "x$use_xmlto" = x"no" ; then 20675 if test "x$XMLTO" != "x"; then 20676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20677printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20678 fi 20679 have_xmlto=no 20680else 20681 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20682fi 20683 20684# Test for a minimum version of xmlto, if provided. 20685if test "$have_xmlto" = yes; then 20686 # scrape the xmlto version 20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20688printf %s "checking the xmlto version... " >&6; } 20689 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20691printf "%s\n" "$xmlto_version" >&6; } 20692 as_arg_v1=$xmlto_version 20693as_arg_v2=0.0.22 20694awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20695case $? in #( 20696 1) : 20697 if test "x$use_xmlto" = xauto; then 20698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20699printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20700 have_xmlto=no 20701 else 20702 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20703 fi ;; #( 20704 0) : 20705 ;; #( 20706 2) : 20707 ;; #( 20708 *) : 20709 ;; 20710esac 20711fi 20712 20713# Test for the ability of xmlto to generate a text target 20714# 20715# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20716# following test for empty XML docbook files. 20717# For compatibility reasons use the following empty XML docbook file and if 20718# it fails try it again with a non-empty XML file. 20719have_xmlto_text=no 20720cat > conftest.xml << "EOF" 20721EOF 20722if test "$have_xmlto" = yes 20723then : 20724 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20725then : 20726 have_xmlto_text=yes 20727else case e in #( 20728 e) # Try it again with a non-empty XML file. 20729 cat > conftest.xml << "EOF" 20730<x></x> 20731EOF 20732 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20733then : 20734 have_xmlto_text=yes 20735else case e in #( 20736 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20737printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20738esac 20739fi ;; 20740esac 20741fi 20742fi 20743rm -f conftest.xml 20744 if test $have_xmlto_text = yes; then 20745 HAVE_XMLTO_TEXT_TRUE= 20746 HAVE_XMLTO_TEXT_FALSE='#' 20747else 20748 HAVE_XMLTO_TEXT_TRUE='#' 20749 HAVE_XMLTO_TEXT_FALSE= 20750fi 20751 20752 if test "$have_xmlto" = yes; then 20753 HAVE_XMLTO_TRUE= 20754 HAVE_XMLTO_FALSE='#' 20755else 20756 HAVE_XMLTO_TRUE='#' 20757 HAVE_XMLTO_FALSE= 20758fi 20759 20760 20761 20762 20763 20764 20765# Check whether --with-fop was given. 20766if test ${with_fop+y} 20767then : 20768 withval=$with_fop; use_fop=$withval 20769else case e in #( 20770 e) use_fop=auto ;; 20771esac 20772fi 20773 20774 20775 20776if test "x$use_fop" = x"auto"; then 20777 # Extract the first word of "fop", so it can be a program name with args. 20778set dummy fop; ac_word=$2 20779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20780printf %s "checking for $ac_word... " >&6; } 20781if test ${ac_cv_path_FOP+y} 20782then : 20783 printf %s "(cached) " >&6 20784else case e in #( 20785 e) case $FOP in 20786 [\\/]* | ?:[\\/]*) 20787 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20788 ;; 20789 *) 20790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20791for as_dir in $PATH 20792do 20793 IFS=$as_save_IFS 20794 case $as_dir in #((( 20795 '') as_dir=./ ;; 20796 */) ;; 20797 *) as_dir=$as_dir/ ;; 20798 esac 20799 for ac_exec_ext in '' $ac_executable_extensions; do 20800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20801 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20803 break 2 20804 fi 20805done 20806 done 20807IFS=$as_save_IFS 20808 20809 ;; 20810esac ;; 20811esac 20812fi 20813FOP=$ac_cv_path_FOP 20814if test -n "$FOP"; then 20815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20816printf "%s\n" "$FOP" >&6; } 20817else 20818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20819printf "%s\n" "no" >&6; } 20820fi 20821 20822 20823 if test "x$FOP" = "x"; then 20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20825printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20826 have_fop=no 20827 else 20828 have_fop=yes 20829 fi 20830elif test "x$use_fop" = x"yes" ; then 20831 # Extract the first word of "fop", so it can be a program name with args. 20832set dummy fop; ac_word=$2 20833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20834printf %s "checking for $ac_word... " >&6; } 20835if test ${ac_cv_path_FOP+y} 20836then : 20837 printf %s "(cached) " >&6 20838else case e in #( 20839 e) case $FOP in 20840 [\\/]* | ?:[\\/]*) 20841 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20842 ;; 20843 *) 20844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20845for as_dir in $PATH 20846do 20847 IFS=$as_save_IFS 20848 case $as_dir in #((( 20849 '') as_dir=./ ;; 20850 */) ;; 20851 *) as_dir=$as_dir/ ;; 20852 esac 20853 for ac_exec_ext in '' $ac_executable_extensions; do 20854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20855 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20857 break 2 20858 fi 20859done 20860 done 20861IFS=$as_save_IFS 20862 20863 ;; 20864esac ;; 20865esac 20866fi 20867FOP=$ac_cv_path_FOP 20868if test -n "$FOP"; then 20869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20870printf "%s\n" "$FOP" >&6; } 20871else 20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20873printf "%s\n" "no" >&6; } 20874fi 20875 20876 20877 if test "x$FOP" = "x"; then 20878 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20879 fi 20880 have_fop=yes 20881elif test "x$use_fop" = x"no" ; then 20882 if test "x$FOP" != "x"; then 20883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20884printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20885 fi 20886 have_fop=no 20887else 20888 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20889fi 20890 20891# Test for a minimum version of fop, if provided. 20892 20893 if test "$have_fop" = yes; then 20894 HAVE_FOP_TRUE= 20895 HAVE_FOP_FALSE='#' 20896else 20897 HAVE_FOP_TRUE='#' 20898 HAVE_FOP_FALSE= 20899fi 20900 20901 20902 20903 20904# Preserves the interface, should it be implemented later 20905 20906 20907 20908# Check whether --with-xsltproc was given. 20909if test ${with_xsltproc+y} 20910then : 20911 withval=$with_xsltproc; use_xsltproc=$withval 20912else case e in #( 20913 e) use_xsltproc=auto ;; 20914esac 20915fi 20916 20917 20918 20919if test "x$use_xsltproc" = x"auto"; then 20920 # Extract the first word of "xsltproc", so it can be a program name with args. 20921set dummy xsltproc; ac_word=$2 20922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20923printf %s "checking for $ac_word... " >&6; } 20924if test ${ac_cv_path_XSLTPROC+y} 20925then : 20926 printf %s "(cached) " >&6 20927else case e in #( 20928 e) case $XSLTPROC in 20929 [\\/]* | ?:[\\/]*) 20930 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20931 ;; 20932 *) 20933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20934for as_dir in $PATH 20935do 20936 IFS=$as_save_IFS 20937 case $as_dir in #((( 20938 '') as_dir=./ ;; 20939 */) ;; 20940 *) as_dir=$as_dir/ ;; 20941 esac 20942 for ac_exec_ext in '' $ac_executable_extensions; do 20943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20944 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20946 break 2 20947 fi 20948done 20949 done 20950IFS=$as_save_IFS 20951 20952 ;; 20953esac ;; 20954esac 20955fi 20956XSLTPROC=$ac_cv_path_XSLTPROC 20957if test -n "$XSLTPROC"; then 20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20959printf "%s\n" "$XSLTPROC" >&6; } 20960else 20961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20962printf "%s\n" "no" >&6; } 20963fi 20964 20965 20966 if test "x$XSLTPROC" = "x"; then 20967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20968printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20969 have_xsltproc=no 20970 else 20971 have_xsltproc=yes 20972 fi 20973elif test "x$use_xsltproc" = x"yes" ; then 20974 # Extract the first word of "xsltproc", so it can be a program name with args. 20975set dummy xsltproc; ac_word=$2 20976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20977printf %s "checking for $ac_word... " >&6; } 20978if test ${ac_cv_path_XSLTPROC+y} 20979then : 20980 printf %s "(cached) " >&6 20981else case e in #( 20982 e) case $XSLTPROC in 20983 [\\/]* | ?:[\\/]*) 20984 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20985 ;; 20986 *) 20987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20988for as_dir in $PATH 20989do 20990 IFS=$as_save_IFS 20991 case $as_dir in #((( 20992 '') as_dir=./ ;; 20993 */) ;; 20994 *) as_dir=$as_dir/ ;; 20995 esac 20996 for ac_exec_ext in '' $ac_executable_extensions; do 20997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20998 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21000 break 2 21001 fi 21002done 21003 done 21004IFS=$as_save_IFS 21005 21006 ;; 21007esac ;; 21008esac 21009fi 21010XSLTPROC=$ac_cv_path_XSLTPROC 21011if test -n "$XSLTPROC"; then 21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21013printf "%s\n" "$XSLTPROC" >&6; } 21014else 21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21016printf "%s\n" "no" >&6; } 21017fi 21018 21019 21020 if test "x$XSLTPROC" = "x"; then 21021 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21022 fi 21023 have_xsltproc=yes 21024elif test "x$use_xsltproc" = x"no" ; then 21025 if test "x$XSLTPROC" != "x"; then 21026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21027printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21028 fi 21029 have_xsltproc=no 21030else 21031 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21032fi 21033 21034 if test "$have_xsltproc" = yes; then 21035 HAVE_XSLTPROC_TRUE= 21036 HAVE_XSLTPROC_FALSE='#' 21037else 21038 HAVE_XSLTPROC_TRUE='#' 21039 HAVE_XSLTPROC_FALSE= 21040fi 21041 21042 21043 21044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21045printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21046XORG_SGML_PATH= 21047if test -n "$PKG_CONFIG" && \ 21048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21049 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21050 ac_status=$? 21051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21052 test $ac_status = 0; }; then 21053 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21054else 21055 : 21056 21057fi 21058 21059# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21060# the path and the name of the doc stylesheet 21061if test "x$XORG_SGML_PATH" != "x" ; then 21062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21063printf "%s\n" "$XORG_SGML_PATH" >&6; } 21064 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21065 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21066else 21067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21068printf "%s\n" "no" >&6; } 21069fi 21070 21071 21072 21073 21074 if test "x$XSL_STYLESHEET" != "x"; then 21075 HAVE_STYLESHEETS_TRUE= 21076 HAVE_STYLESHEETS_FALSE='#' 21077else 21078 HAVE_STYLESHEETS_TRUE='#' 21079 HAVE_STYLESHEETS_FALSE= 21080fi 21081 21082 21083 21084# Check for UUID support 21085 21086# Check whether --with-libuuid was given. 21087if test ${with_libuuid+y} 21088then : 21089 withval=$with_libuuid; 21090fi 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21101 if test -n "$ac_tool_prefix"; then 21102 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21103set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21105printf %s "checking for $ac_word... " >&6; } 21106if test ${ac_cv_path_PKG_CONFIG+y} 21107then : 21108 printf %s "(cached) " >&6 21109else case e in #( 21110 e) case $PKG_CONFIG in 21111 [\\/]* | ?:[\\/]*) 21112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21113 ;; 21114 *) 21115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21116for as_dir in $PATH 21117do 21118 IFS=$as_save_IFS 21119 case $as_dir in #((( 21120 '') as_dir=./ ;; 21121 */) ;; 21122 *) as_dir=$as_dir/ ;; 21123 esac 21124 for ac_exec_ext in '' $ac_executable_extensions; do 21125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21126 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21128 break 2 21129 fi 21130done 21131 done 21132IFS=$as_save_IFS 21133 21134 ;; 21135esac ;; 21136esac 21137fi 21138PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21139if test -n "$PKG_CONFIG"; then 21140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21141printf "%s\n" "$PKG_CONFIG" >&6; } 21142else 21143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21144printf "%s\n" "no" >&6; } 21145fi 21146 21147 21148fi 21149if test -z "$ac_cv_path_PKG_CONFIG"; then 21150 ac_pt_PKG_CONFIG=$PKG_CONFIG 21151 # Extract the first word of "pkg-config", so it can be a program name with args. 21152set dummy pkg-config; ac_word=$2 21153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21154printf %s "checking for $ac_word... " >&6; } 21155if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 21156then : 21157 printf %s "(cached) " >&6 21158else case e in #( 21159 e) case $ac_pt_PKG_CONFIG in 21160 [\\/]* | ?:[\\/]*) 21161 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21162 ;; 21163 *) 21164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21165for as_dir in $PATH 21166do 21167 IFS=$as_save_IFS 21168 case $as_dir in #((( 21169 '') as_dir=./ ;; 21170 */) ;; 21171 *) as_dir=$as_dir/ ;; 21172 esac 21173 for ac_exec_ext in '' $ac_executable_extensions; do 21174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21175 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 21176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21177 break 2 21178 fi 21179done 21180 done 21181IFS=$as_save_IFS 21182 21183 ;; 21184esac ;; 21185esac 21186fi 21187ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21188if test -n "$ac_pt_PKG_CONFIG"; then 21189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21190printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 21191else 21192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21193printf "%s\n" "no" >&6; } 21194fi 21195 21196 if test "x$ac_pt_PKG_CONFIG" = x; then 21197 PKG_CONFIG="" 21198 else 21199 case $cross_compiling:$ac_tool_warned in 21200yes:) 21201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21202printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21203ac_tool_warned=yes ;; 21204esac 21205 PKG_CONFIG=$ac_pt_PKG_CONFIG 21206 fi 21207else 21208 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21209fi 21210 21211fi 21212if test -n "$PKG_CONFIG"; then 21213 _pkg_min_version=0.9.0 21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21215printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21218printf "%s\n" "yes" >&6; } 21219 else 21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21221printf "%s\n" "no" >&6; } 21222 PKG_CONFIG="" 21223 fi 21224fi 21225 21226 for ac_func in uuid_create 21227do : 21228 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create" 21229if test "x$ac_cv_func_uuid_create" = xyes 21230then : 21231 printf "%s\n" "#define HAVE_UUID_CREATE 1" >>confdefs.h 21232 21233else case e in #( 21234 e) 21235 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then 21236 21237pkg_failed=no 21238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5 21239printf %s "checking for LIBUUID... " >&6; } 21240 21241if test -n "$LIBUUID_CFLAGS"; then 21242 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 21243 elif test -n "$PKG_CONFIG"; then 21244 if test -n "$PKG_CONFIG" && \ 21245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 21246 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 21247 ac_status=$? 21248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21249 test $ac_status = 0; }; then 21250 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null` 21251 test "x$?" != "x0" && pkg_failed=yes 21252else 21253 pkg_failed=yes 21254fi 21255 else 21256 pkg_failed=untried 21257fi 21258if test -n "$LIBUUID_LIBS"; then 21259 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 21260 elif test -n "$PKG_CONFIG"; then 21261 if test -n "$PKG_CONFIG" && \ 21262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 21263 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 21264 ac_status=$? 21265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21266 test $ac_status = 0; }; then 21267 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null` 21268 test "x$?" != "x0" && pkg_failed=yes 21269else 21270 pkg_failed=yes 21271fi 21272 else 21273 pkg_failed=untried 21274fi 21275 21276 21277 21278if test $pkg_failed = yes; then 21279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21280printf "%s\n" "no" >&6; } 21281 21282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21283 _pkg_short_errors_supported=yes 21284else 21285 _pkg_short_errors_supported=no 21286fi 21287 if test $_pkg_short_errors_supported = yes; then 21288 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1` 21289 else 21290 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1` 21291 fi 21292 # Put the nasty error message in config.log where it belongs 21293 echo "$LIBUUID_PKG_ERRORS" >&5 21294 21295 HAVE_LIBUUID=no 21296elif test $pkg_failed = untried; then 21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21298printf "%s\n" "no" >&6; } 21299 HAVE_LIBUUID=no 21300else 21301 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 21302 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 21303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21304printf "%s\n" "yes" >&6; } 21305 HAVE_LIBUUID=yes 21306fi 21307 fi 21308 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then 21309 as_fn_error $? "requested libuuid support but uuid.pc not found 21310 and LIBUUID_CFLAGS and LIBUUID_LIBS not set" "$LINENO" 5 21311 fi 21312 ;; 21313esac 21314fi 21315 21316done 21317UUID_LIB_PRIVATE="" 21318UUID_PC="" 21319if test x"$HAVE_LIBUUID" = xyes ; then 21320 if test -n "$PKG_CONFIG" && \ 21321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5 21322 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5 21323 ac_status=$? 21324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21325 test $ac_status = 0; }; then 21326 UUID_PC="uuid" 21327fi 21328 if test x"$UUID_PC" = x ; then 21329 UUID_LIB_PRIVATE="$LIBUUID_LIBS" 21330 fi 21331fi 21332 21333 21334 21335 if test x"$HAVE_LIBUUID" = xyes; then 21336 WITH_LIBUUID_TRUE= 21337 WITH_LIBUUID_FALSE='#' 21338else 21339 WITH_LIBUUID_TRUE='#' 21340 WITH_LIBUUID_FALSE= 21341fi 21342 21343 21344# If UUID support is not found, fall back to using network addresses 21345# to generate client ids 21346if test x"$HAVE_LIBUUID" != xyes && test x"$ac_cv_func_uuid_create" != xyes 21347then : 21348 genid_module="xtrans" 21349# Needed to check for TCP & IPv6 support and set flags appropriately 21350 21351 21352 case $host_os in 21353 mingw*) unixdef="no" ;; 21354 *) unixdef="yes" ;; 21355 esac 21356 # Check whether --enable-unix-transport was given. 21357if test ${enable_unix_transport+y} 21358then : 21359 enableval=$enable_unix_transport; UNIXCONN=$enableval 21360else case e in #( 21361 e) UNIXCONN=$unixdef ;; 21362esac 21363fi 21364 21365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21366printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21367 if test "$UNIXCONN" = "yes"; then 21368 21369printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21370 21371 fi 21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21373printf "%s\n" "$UNIXCONN" >&6; } 21374 # Check whether --enable-tcp-transport was given. 21375if test ${enable_tcp_transport+y} 21376then : 21377 enableval=$enable_tcp_transport; TCPCONN=$enableval 21378else case e in #( 21379 e) TCPCONN=yes ;; 21380esac 21381fi 21382 21383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21384printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21386printf "%s\n" "$TCPCONN" >&6; } 21387 if test "$TCPCONN" = "yes"; then 21388 21389printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21390 21391 21392 # SVR4 hides these in libraries other than libc 21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21394printf %s "checking for library containing socket... " >&6; } 21395if test ${ac_cv_search_socket+y} 21396then : 21397 printf %s "(cached) " >&6 21398else case e in #( 21399 e) ac_func_search_save_LIBS=$LIBS 21400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21401/* end confdefs.h. */ 21402 21403/* Override any GCC internal prototype to avoid an error. 21404 Use char because int might match the return type of a GCC 21405 builtin and then its argument prototype would still apply. 21406 The 'extern "C"' is for builds by C++ compilers; 21407 although this is not generally supported in C code supporting it here 21408 has little cost and some practical benefit (sr 110532). */ 21409#ifdef __cplusplus 21410extern "C" 21411#endif 21412char socket (void); 21413int 21414main (void) 21415{ 21416return socket (); 21417 ; 21418 return 0; 21419} 21420_ACEOF 21421for ac_lib in '' socket 21422do 21423 if test -z "$ac_lib"; then 21424 ac_res="none required" 21425 else 21426 ac_res=-l$ac_lib 21427 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21428 fi 21429 if ac_fn_c_try_link "$LINENO" 21430then : 21431 ac_cv_search_socket=$ac_res 21432fi 21433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21434 conftest$ac_exeext 21435 if test ${ac_cv_search_socket+y} 21436then : 21437 break 21438fi 21439done 21440if test ${ac_cv_search_socket+y} 21441then : 21442 21443else case e in #( 21444 e) ac_cv_search_socket=no ;; 21445esac 21446fi 21447rm conftest.$ac_ext 21448LIBS=$ac_func_search_save_LIBS ;; 21449esac 21450fi 21451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21452printf "%s\n" "$ac_cv_search_socket" >&6; } 21453ac_res=$ac_cv_search_socket 21454if test "$ac_res" != no 21455then : 21456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21457 21458fi 21459 21460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21461printf %s "checking for library containing gethostbyname... " >&6; } 21462if test ${ac_cv_search_gethostbyname+y} 21463then : 21464 printf %s "(cached) " >&6 21465else case e in #( 21466 e) ac_func_search_save_LIBS=$LIBS 21467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21468/* end confdefs.h. */ 21469 21470/* Override any GCC internal prototype to avoid an error. 21471 Use char because int might match the return type of a GCC 21472 builtin and then its argument prototype would still apply. 21473 The 'extern "C"' is for builds by C++ compilers; 21474 although this is not generally supported in C code supporting it here 21475 has little cost and some practical benefit (sr 110532). */ 21476#ifdef __cplusplus 21477extern "C" 21478#endif 21479char gethostbyname (void); 21480int 21481main (void) 21482{ 21483return gethostbyname (); 21484 ; 21485 return 0; 21486} 21487_ACEOF 21488for ac_lib in '' nsl 21489do 21490 if test -z "$ac_lib"; then 21491 ac_res="none required" 21492 else 21493 ac_res=-l$ac_lib 21494 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21495 fi 21496 if ac_fn_c_try_link "$LINENO" 21497then : 21498 ac_cv_search_gethostbyname=$ac_res 21499fi 21500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21501 conftest$ac_exeext 21502 if test ${ac_cv_search_gethostbyname+y} 21503then : 21504 break 21505fi 21506done 21507if test ${ac_cv_search_gethostbyname+y} 21508then : 21509 21510else case e in #( 21511 e) ac_cv_search_gethostbyname=no ;; 21512esac 21513fi 21514rm conftest.$ac_ext 21515LIBS=$ac_func_search_save_LIBS ;; 21516esac 21517fi 21518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21519printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21520ac_res=$ac_cv_search_gethostbyname 21521if test "$ac_res" != no 21522then : 21523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21524 21525fi 21526 21527 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21529printf %s "checking for main in -lws2_32... " >&6; } 21530if test ${ac_cv_lib_ws2_32_main+y} 21531then : 21532 printf %s "(cached) " >&6 21533else case e in #( 21534 e) ac_check_lib_save_LIBS=$LIBS 21535LIBS="-lws2_32 $LIBS" 21536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21537/* end confdefs.h. */ 21538 21539 21540int 21541main (void) 21542{ 21543return main (); 21544 ; 21545 return 0; 21546} 21547_ACEOF 21548if ac_fn_c_try_link "$LINENO" 21549then : 21550 ac_cv_lib_ws2_32_main=yes 21551else case e in #( 21552 e) ac_cv_lib_ws2_32_main=no ;; 21553esac 21554fi 21555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21556 conftest$ac_exeext conftest.$ac_ext 21557LIBS=$ac_check_lib_save_LIBS ;; 21558esac 21559fi 21560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21561printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21562if test "x$ac_cv_lib_ws2_32_main" = xyes 21563then : 21564 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21565 21566 LIBS="-lws2_32 $LIBS" 21567 21568fi 21569 21570 fi 21571 21572 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 21573 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21574if test "x$ac_cv_func_getaddrinfo" = xyes 21575then : 21576 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21577 21578fi 21579ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 21580if test "x$ac_cv_func_inet_ntop" = xyes 21581then : 21582 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 21583 21584fi 21585 21586 21587 # Check whether --enable-ipv6 was given. 21588if test ${enable_ipv6+y} 21589then : 21590 enableval=$enable_ipv6; IPV6CONN=$enableval 21591else case e in #( 21592 e) IPV6CONN=$ac_cv_func_getaddrinfo ;; 21593esac 21594fi 21595 21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 21597printf %s "checking if IPv6 support should be built... " >&6; } 21598 if test "$IPV6CONN" = "yes"; then 21599 21600printf "%s\n" "#define IPv6 1" >>confdefs.h 21601 21602 fi 21603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 21604printf "%s\n" "$IPV6CONN" >&6; } 21605 21606 # 4.3BSD-Reno added a new member to struct sockaddr_in 21607 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 21608#include <sys/types.h> 21609#include <sys/socket.h> 21610#include <netinet/in.h> 21611 21612" 21613if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 21614then : 21615 21616printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 21617 21618fi 21619 21620 21621 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 21622 # and added a type defined to be large enough to hold any sockaddr format. 21623 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 21624$ac_includes_default 21625#include <sys/socket.h> 21626 21627" 21628if test "x$ac_cv_type_socklen_t" = xyes 21629then : 21630 21631printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 21632 21633 21634fi 21635ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 21636$ac_includes_default 21637#include <sys/socket.h> 21638 21639" 21640if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 21641then : 21642 21643printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 21644 21645 21646fi 21647 21648 21649 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 21650 # _XOPEN_SOURCE to get it (such as on Solaris) 21651 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21652$ac_includes_default 21653#include <sys/socket.h> 21654 21655" 21656if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21657then : 21658 21659fi 21660 21661 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21662 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21663 unset ac_cv_member_struct_msghdr_msg_control 21664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21665printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21666 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21667#define _XOPEN_SOURCE 600 21668$ac_includes_default 21669#include <sys/socket.h> 21670 21671" 21672if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21673then : 21674 21675printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21676 21677 21678fi 21679 21680 fi 21681 # If that didn't work, fall back to XPG5/UNIX98 with C89 21682 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21683 unset ac_cv_member_struct_msghdr_msg_control 21684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21685printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 21686 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21687#define _XOPEN_SOURCE 500 21688$ac_includes_default 21689#include <sys/socket.h> 21690 21691" 21692if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21693then : 21694 21695printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 21696 21697 21698fi 21699 21700 fi 21701 21702 21703 21704 fi 21705 case $host_os in 21706 solaris*) localdef="yes" ;; 21707 *) localdef="no" ;; 21708 esac 21709 # Check whether --enable-local-transport was given. 21710if test ${enable_local_transport+y} 21711then : 21712 enableval=$enable_local_transport; LOCALCONN=$enableval 21713else case e in #( 21714 e) LOCALCONN=$localdef ;; 21715esac 21716fi 21717 21718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 21719printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 21721printf "%s\n" "$LOCALCONN" >&6; } 21722 if test "$LOCALCONN" = "yes"; then 21723 21724printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 21725 21726 fi 21727 21728 # Other functions Xtrans may need 21729 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 21730if test "x$ac_cv_func_strcasecmp" = xyes 21731then : 21732 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 21733 21734fi 21735ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 21736if test "x$ac_cv_func_strlcpy" = xyes 21737then : 21738 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 21739 21740fi 21741 21742 21743 21744ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21745if test "x$ac_cv_func_getaddrinfo" = xyes 21746then : 21747 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21748 21749fi 21750 21751fi 21752 21753# Obtain compiler/linker options for dependencies 21754 21755pkg_failed=no 21756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SM" >&5 21757printf %s "checking for SM... " >&6; } 21758 21759if test -n "$SM_CFLAGS"; then 21760 pkg_cv_SM_CFLAGS="$SM_CFLAGS" 21761 elif test -n "$PKG_CONFIG"; then 21762 if test -n "$PKG_CONFIG" && \ 21763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.1.0 xproto \$genid_module\""; } >&5 21764 ($PKG_CONFIG --exists --print-errors "ice >= 1.1.0 xproto $genid_module") 2>&5 21765 ac_status=$? 21766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21767 test $ac_status = 0; }; then 21768 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.1.0 xproto $genid_module" 2>/dev/null` 21769 test "x$?" != "x0" && pkg_failed=yes 21770else 21771 pkg_failed=yes 21772fi 21773 else 21774 pkg_failed=untried 21775fi 21776if test -n "$SM_LIBS"; then 21777 pkg_cv_SM_LIBS="$SM_LIBS" 21778 elif test -n "$PKG_CONFIG"; then 21779 if test -n "$PKG_CONFIG" && \ 21780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.1.0 xproto \$genid_module\""; } >&5 21781 ($PKG_CONFIG --exists --print-errors "ice >= 1.1.0 xproto $genid_module") 2>&5 21782 ac_status=$? 21783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21784 test $ac_status = 0; }; then 21785 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.1.0 xproto $genid_module" 2>/dev/null` 21786 test "x$?" != "x0" && pkg_failed=yes 21787else 21788 pkg_failed=yes 21789fi 21790 else 21791 pkg_failed=untried 21792fi 21793 21794 21795 21796if test $pkg_failed = yes; then 21797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21798printf "%s\n" "no" >&6; } 21799 21800if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21801 _pkg_short_errors_supported=yes 21802else 21803 _pkg_short_errors_supported=no 21804fi 21805 if test $_pkg_short_errors_supported = yes; then 21806 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ice >= 1.1.0 xproto $genid_module" 2>&1` 21807 else 21808 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ice >= 1.1.0 xproto $genid_module" 2>&1` 21809 fi 21810 # Put the nasty error message in config.log where it belongs 21811 echo "$SM_PKG_ERRORS" >&5 21812 21813 as_fn_error $? "Package requirements (ice >= 1.1.0 xproto $genid_module) were not met: 21814 21815$SM_PKG_ERRORS 21816 21817Consider adjusting the PKG_CONFIG_PATH environment variable if you 21818installed software in a non-standard prefix. 21819 21820Alternatively, you may set the environment variables SM_CFLAGS 21821and SM_LIBS to avoid the need to call pkg-config. 21822See the pkg-config man page for more details." "$LINENO" 5 21823elif test $pkg_failed = untried; then 21824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21825printf "%s\n" "no" >&6; } 21826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21827printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21828as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21829is in your PATH or set the PKG_CONFIG environment variable to the full 21830path to pkg-config. 21831 21832Alternatively, you may set the environment variables SM_CFLAGS 21833and SM_LIBS to avoid the need to call pkg-config. 21834See the pkg-config man page for more details. 21835 21836To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21837See 'config.log' for more details" "$LINENO" 5; } 21838else 21839 SM_CFLAGS=$pkg_cv_SM_CFLAGS 21840 SM_LIBS=$pkg_cv_SM_LIBS 21841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21842printf "%s\n" "yes" >&6; } 21843 21844fi 21845 21846 21847ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc" 21848 21849cat >confcache <<\_ACEOF 21850# This file is a shell script that caches the results of configure 21851# tests run on this system so they can be shared between configure 21852# scripts and configure runs, see configure's option --config-cache. 21853# It is not useful on other systems. If it contains results you don't 21854# want to keep, you may remove or edit it. 21855# 21856# config.status only pays attention to the cache file if you give it 21857# the --recheck option to rerun configure. 21858# 21859# 'ac_cv_env_foo' variables (set or unset) will be overridden when 21860# loading this file, other *unset* 'ac_cv_foo' will be assigned the 21861# following values. 21862 21863_ACEOF 21864 21865# The following way of writing the cache mishandles newlines in values, 21866# but we know of no workaround that is simple, portable, and efficient. 21867# So, we kill variables containing newlines. 21868# Ultrix sh set writes to stderr and can't be redirected directly, 21869# and sets the high bit in the cache file unless we assign to the vars. 21870( 21871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21872 eval ac_val=\$$ac_var 21873 case $ac_val in #( 21874 *${as_nl}*) 21875 case $ac_var in #( 21876 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21877printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21878 esac 21879 case $ac_var in #( 21880 _ | IFS | as_nl) ;; #( 21881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21882 *) { eval $ac_var=; unset $ac_var;} ;; 21883 esac ;; 21884 esac 21885 done 21886 21887 (set) 2>&1 | 21888 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21889 *${as_nl}ac_space=\ *) 21890 # 'set' does not quote correctly, so add quotes: double-quote 21891 # substitution turns \\\\ into \\, and sed turns \\ into \. 21892 sed -n \ 21893 "s/'/'\\\\''/g; 21894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21895 ;; #( 21896 *) 21897 # 'set' quotes correctly as required by POSIX, so do not add quotes. 21898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21899 ;; 21900 esac | 21901 sort 21902) | 21903 sed ' 21904 /^ac_cv_env_/b end 21905 t clear 21906 :clear 21907 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21908 t end 21909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21910 :end' >>confcache 21911if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21912 if test -w "$cache_file"; then 21913 if test "x$cache_file" != "x/dev/null"; then 21914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21915printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21916 if test ! -f "$cache_file" || test -h "$cache_file"; then 21917 cat confcache >"$cache_file" 21918 else 21919 case $cache_file in #( 21920 */* | ?:*) 21921 mv -f confcache "$cache_file"$$ && 21922 mv -f "$cache_file"$$ "$cache_file" ;; #( 21923 *) 21924 mv -f confcache "$cache_file" ;; 21925 esac 21926 fi 21927 fi 21928 else 21929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21930printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21931 fi 21932fi 21933rm -f confcache 21934 21935test "x$prefix" = xNONE && prefix=$ac_default_prefix 21936# Let make expand exec_prefix. 21937test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21938 21939DEFS=-DHAVE_CONFIG_H 21940 21941ac_libobjs= 21942ac_ltlibobjs= 21943U= 21944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21945 # 1. Remove the extension, and $U if already installed. 21946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21947 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21949 # will be set to the directory where LIBOBJS objects are built. 21950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21952done 21953LIBOBJS=$ac_libobjs 21954 21955LTLIBOBJS=$ac_ltlibobjs 21956 21957 21958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21959printf %s "checking that generated files are newer than configure... " >&6; } 21960 if test -n "$am_sleep_pid"; then 21961 # Hide warnings about reused PIDs. 21962 wait $am_sleep_pid 2>/dev/null 21963 fi 21964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21965printf "%s\n" "done" >&6; } 21966case $enable_silent_rules in # ((( 21967 yes) AM_DEFAULT_VERBOSITY=0;; 21968 no) AM_DEFAULT_VERBOSITY=1;; 21969esac 21970if test $am_cv_make_support_nested_variables = yes; then 21971 AM_V='$(V)' 21972 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 21973else 21974 AM_V=$AM_DEFAULT_VERBOSITY 21975 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 21976fi 21977 21978 if test -n "$EXEEXT"; then 21979 am__EXEEXT_TRUE= 21980 am__EXEEXT_FALSE='#' 21981else 21982 am__EXEEXT_TRUE='#' 21983 am__EXEEXT_FALSE= 21984fi 21985 21986if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21987 as_fn_error $? "conditional \"AMDEP\" was never defined. 21988Usually this means the macro was only invoked conditionally." "$LINENO" 5 21989fi 21990if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21991 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21992Usually this means the macro was only invoked conditionally." "$LINENO" 5 21993fi 21994if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 21995 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 21996Usually this means the macro was only invoked conditionally." "$LINENO" 5 21997fi 21998if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21999 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22000Usually this means the macro was only invoked conditionally." "$LINENO" 5 22001fi 22002if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22003 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22004Usually this means the macro was only invoked conditionally." "$LINENO" 5 22005fi 22006if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22007 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22008Usually this means the macro was only invoked conditionally." "$LINENO" 5 22009fi 22010if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 22011 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 22012Usually this means the macro was only invoked conditionally." "$LINENO" 5 22013fi 22014if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22015 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22016Usually this means the macro was only invoked conditionally." "$LINENO" 5 22017fi 22018if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then 22019 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined. 22020Usually this means the macro was only invoked conditionally." "$LINENO" 5 22021fi 22022 22023: "${CONFIG_STATUS=./config.status}" 22024ac_write_fail=0 22025ac_clean_files_save=$ac_clean_files 22026ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22028printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22029as_write_fail=0 22030cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22031#! $SHELL 22032# Generated by $as_me. 22033# Run this file to recreate the current configuration. 22034# Compiler output produced by configure, useful for debugging 22035# configure, is in config.log if it exists. 22036 22037debug=false 22038ac_cs_recheck=false 22039ac_cs_silent=false 22040 22041SHELL=\${CONFIG_SHELL-$SHELL} 22042export SHELL 22043_ASEOF 22044cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22045## -------------------- ## 22046## M4sh Initialization. ## 22047## -------------------- ## 22048 22049# Be more Bourne compatible 22050DUALCASE=1; export DUALCASE # for MKS sh 22051if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22052then : 22053 emulate sh 22054 NULLCMD=: 22055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22056 # is contrary to our usage. Disable this feature. 22057 alias -g '${1+"$@"}'='"$@"' 22058 setopt NO_GLOB_SUBST 22059else case e in #( 22060 e) case `(set -o) 2>/dev/null` in #( 22061 *posix*) : 22062 set -o posix ;; #( 22063 *) : 22064 ;; 22065esac ;; 22066esac 22067fi 22068 22069 22070 22071# Reset variables that may have inherited troublesome values from 22072# the environment. 22073 22074# IFS needs to be set, to space, tab, and newline, in precisely that order. 22075# (If _AS_PATH_WALK were called with IFS unset, it would have the 22076# side effect of setting IFS to empty, thus disabling word splitting.) 22077# Quoting is to prevent editors from complaining about space-tab. 22078as_nl=' 22079' 22080export as_nl 22081IFS=" "" $as_nl" 22082 22083PS1='$ ' 22084PS2='> ' 22085PS4='+ ' 22086 22087# Ensure predictable behavior from utilities with locale-dependent output. 22088LC_ALL=C 22089export LC_ALL 22090LANGUAGE=C 22091export LANGUAGE 22092 22093# We cannot yet rely on "unset" to work, but we need these variables 22094# to be unset--not just set to an empty or harmless value--now, to 22095# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22096# also avoids known problems related to "unset" and subshell syntax 22097# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22098for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22099do eval test \${$as_var+y} \ 22100 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22101done 22102 22103# Ensure that fds 0, 1, and 2 are open. 22104if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22105if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22106if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22107 22108# The user is always right. 22109if ${PATH_SEPARATOR+false} :; then 22110 PATH_SEPARATOR=: 22111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22113 PATH_SEPARATOR=';' 22114 } 22115fi 22116 22117 22118# Find who we are. Look in the path if we contain no directory separator. 22119as_myself= 22120case $0 in #(( 22121 *[\\/]* ) as_myself=$0 ;; 22122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22123for as_dir in $PATH 22124do 22125 IFS=$as_save_IFS 22126 case $as_dir in #((( 22127 '') as_dir=./ ;; 22128 */) ;; 22129 *) as_dir=$as_dir/ ;; 22130 esac 22131 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22132 done 22133IFS=$as_save_IFS 22134 22135 ;; 22136esac 22137# We did not find ourselves, most probably we were run as 'sh COMMAND' 22138# in which case we are not to be found in the path. 22139if test "x$as_myself" = x; then 22140 as_myself=$0 22141fi 22142if test ! -f "$as_myself"; then 22143 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22144 exit 1 22145fi 22146 22147 22148 22149# as_fn_error STATUS ERROR [LINENO LOG_FD] 22150# ---------------------------------------- 22151# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22152# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22153# script with STATUS, using 1 if that was 0. 22154as_fn_error () 22155{ 22156 as_status=$1; test $as_status -eq 0 && as_status=1 22157 if test "$4"; then 22158 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22160 fi 22161 printf "%s\n" "$as_me: error: $2" >&2 22162 as_fn_exit $as_status 22163} # as_fn_error 22164 22165 22166# as_fn_set_status STATUS 22167# ----------------------- 22168# Set $? to STATUS, without forking. 22169as_fn_set_status () 22170{ 22171 return $1 22172} # as_fn_set_status 22173 22174# as_fn_exit STATUS 22175# ----------------- 22176# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22177as_fn_exit () 22178{ 22179 set +e 22180 as_fn_set_status $1 22181 exit $1 22182} # as_fn_exit 22183 22184# as_fn_unset VAR 22185# --------------- 22186# Portably unset VAR. 22187as_fn_unset () 22188{ 22189 { eval $1=; unset $1;} 22190} 22191as_unset=as_fn_unset 22192 22193# as_fn_append VAR VALUE 22194# ---------------------- 22195# Append the text in VALUE to the end of the definition contained in VAR. Take 22196# advantage of any shell optimizations that allow amortized linear growth over 22197# repeated appends, instead of the typical quadratic growth present in naive 22198# implementations. 22199if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22200then : 22201 eval 'as_fn_append () 22202 { 22203 eval $1+=\$2 22204 }' 22205else case e in #( 22206 e) as_fn_append () 22207 { 22208 eval $1=\$$1\$2 22209 } ;; 22210esac 22211fi # as_fn_append 22212 22213# as_fn_arith ARG... 22214# ------------------ 22215# Perform arithmetic evaluation on the ARGs, and store the result in the 22216# global $as_val. Take advantage of shells that can avoid forks. The arguments 22217# must be portable across $(()) and expr. 22218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22219then : 22220 eval 'as_fn_arith () 22221 { 22222 as_val=$(( $* )) 22223 }' 22224else case e in #( 22225 e) as_fn_arith () 22226 { 22227 as_val=`expr "$@" || test $? -eq 1` 22228 } ;; 22229esac 22230fi # as_fn_arith 22231 22232 22233if expr a : '\(a\)' >/dev/null 2>&1 && 22234 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22235 as_expr=expr 22236else 22237 as_expr=false 22238fi 22239 22240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22241 as_basename=basename 22242else 22243 as_basename=false 22244fi 22245 22246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22247 as_dirname=dirname 22248else 22249 as_dirname=false 22250fi 22251 22252as_me=`$as_basename -- "$0" || 22253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22254 X"$0" : 'X\(//\)$' \| \ 22255 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22256printf "%s\n" X/"$0" | 22257 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22258 s//\1/ 22259 q 22260 } 22261 /^X\/\(\/\/\)$/{ 22262 s//\1/ 22263 q 22264 } 22265 /^X\/\(\/\).*/{ 22266 s//\1/ 22267 q 22268 } 22269 s/.*/./; q'` 22270 22271# Avoid depending upon Character Ranges. 22272as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22274as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22275as_cr_digits='0123456789' 22276as_cr_alnum=$as_cr_Letters$as_cr_digits 22277 22278 22279# Determine whether it's possible to make 'echo' print without a newline. 22280# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22281# for compatibility with existing Makefiles. 22282ECHO_C= ECHO_N= ECHO_T= 22283case `echo -n x` in #((((( 22284-n*) 22285 case `echo 'xy\c'` in 22286 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22287 xy) ECHO_C='\c';; 22288 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22289 ECHO_T=' ';; 22290 esac;; 22291*) 22292 ECHO_N='-n';; 22293esac 22294 22295# For backward compatibility with old third-party macros, we provide 22296# the shell variables $as_echo and $as_echo_n. New code should use 22297# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22298as_echo='printf %s\n' 22299as_echo_n='printf %s' 22300 22301rm -f conf$$ conf$$.exe conf$$.file 22302if test -d conf$$.dir; then 22303 rm -f conf$$.dir/conf$$.file 22304else 22305 rm -f conf$$.dir 22306 mkdir conf$$.dir 2>/dev/null 22307fi 22308if (echo >conf$$.file) 2>/dev/null; then 22309 if ln -s conf$$.file conf$$ 2>/dev/null; then 22310 as_ln_s='ln -s' 22311 # ... but there are two gotchas: 22312 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22313 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22314 # In both cases, we have to default to 'cp -pR'. 22315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22316 as_ln_s='cp -pR' 22317 elif ln conf$$.file conf$$ 2>/dev/null; then 22318 as_ln_s=ln 22319 else 22320 as_ln_s='cp -pR' 22321 fi 22322else 22323 as_ln_s='cp -pR' 22324fi 22325rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22326rmdir conf$$.dir 2>/dev/null 22327 22328 22329# as_fn_mkdir_p 22330# ------------- 22331# Create "$as_dir" as a directory, including parents if necessary. 22332as_fn_mkdir_p () 22333{ 22334 22335 case $as_dir in #( 22336 -*) as_dir=./$as_dir;; 22337 esac 22338 test -d "$as_dir" || eval $as_mkdir_p || { 22339 as_dirs= 22340 while :; do 22341 case $as_dir in #( 22342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22343 *) as_qdir=$as_dir;; 22344 esac 22345 as_dirs="'$as_qdir' $as_dirs" 22346 as_dir=`$as_dirname -- "$as_dir" || 22347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22348 X"$as_dir" : 'X\(//\)[^/]' \| \ 22349 X"$as_dir" : 'X\(//\)$' \| \ 22350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22351printf "%s\n" X"$as_dir" | 22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22353 s//\1/ 22354 q 22355 } 22356 /^X\(\/\/\)[^/].*/{ 22357 s//\1/ 22358 q 22359 } 22360 /^X\(\/\/\)$/{ 22361 s//\1/ 22362 q 22363 } 22364 /^X\(\/\).*/{ 22365 s//\1/ 22366 q 22367 } 22368 s/.*/./; q'` 22369 test -d "$as_dir" && break 22370 done 22371 test -z "$as_dirs" || eval "mkdir $as_dirs" 22372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22373 22374 22375} # as_fn_mkdir_p 22376if mkdir -p . 2>/dev/null; then 22377 as_mkdir_p='mkdir -p "$as_dir"' 22378else 22379 test -d ./-p && rmdir ./-p 22380 as_mkdir_p=false 22381fi 22382 22383 22384# as_fn_executable_p FILE 22385# ----------------------- 22386# Test if FILE is an executable regular file. 22387as_fn_executable_p () 22388{ 22389 test -f "$1" && test -x "$1" 22390} # as_fn_executable_p 22391as_test_x='test -x' 22392as_executable_p=as_fn_executable_p 22393 22394# Sed expression to map a string onto a valid CPP name. 22395as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22396as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22397 22398# Sed expression to map a string onto a valid variable name. 22399as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22400as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22401 22402 22403exec 6>&1 22404## ----------------------------------- ## 22405## Main body of $CONFIG_STATUS script. ## 22406## ----------------------------------- ## 22407_ASEOF 22408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22409 22410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22411# Save the log message, to keep $0 and so on meaningful, and to 22412# report actual input values of CONFIG_FILES etc. instead of their 22413# values after options handling. 22414ac_log=" 22415This file was extended by libSM $as_me 1.2.6, which was 22416generated by GNU Autoconf 2.72. Invocation command line was 22417 22418 CONFIG_FILES = $CONFIG_FILES 22419 CONFIG_HEADERS = $CONFIG_HEADERS 22420 CONFIG_LINKS = $CONFIG_LINKS 22421 CONFIG_COMMANDS = $CONFIG_COMMANDS 22422 $ $0 $@ 22423 22424on `(hostname || uname -n) 2>/dev/null | sed 1q` 22425" 22426 22427_ACEOF 22428 22429case $ac_config_files in *" 22430"*) set x $ac_config_files; shift; ac_config_files=$*;; 22431esac 22432 22433case $ac_config_headers in *" 22434"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22435esac 22436 22437 22438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22439# Files that config.status was made for. 22440config_files="$ac_config_files" 22441config_headers="$ac_config_headers" 22442config_commands="$ac_config_commands" 22443 22444_ACEOF 22445 22446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22447ac_cs_usage="\ 22448'$as_me' instantiates files and other configuration actions 22449from templates according to the current configuration. Unless the files 22450and actions are specified as TAGs, all are instantiated by default. 22451 22452Usage: $0 [OPTION]... [TAG]... 22453 22454 -h, --help print this help, then exit 22455 -V, --version print version number and configuration settings, then exit 22456 --config print configuration, then exit 22457 -q, --quiet, --silent 22458 do not print progress messages 22459 -d, --debug don't remove temporary files 22460 --recheck update $as_me by reconfiguring in the same conditions 22461 --file=FILE[:TEMPLATE] 22462 instantiate the configuration file FILE 22463 --header=FILE[:TEMPLATE] 22464 instantiate the configuration header FILE 22465 22466Configuration files: 22467$config_files 22468 22469Configuration headers: 22470$config_headers 22471 22472Configuration commands: 22473$config_commands 22474 22475Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libsm/-/issues>." 22476 22477_ACEOF 22478ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22479ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22481ac_cs_config='$ac_cs_config_escaped' 22482ac_cs_version="\\ 22483libSM config.status 1.2.6 22484configured by $0, generated by GNU Autoconf 2.72, 22485 with options \\"\$ac_cs_config\\" 22486 22487Copyright (C) 2023 Free Software Foundation, Inc. 22488This config.status script is free software; the Free Software Foundation 22489gives unlimited permission to copy, distribute and modify it." 22490 22491ac_pwd='$ac_pwd' 22492srcdir='$srcdir' 22493INSTALL='$INSTALL' 22494MKDIR_P='$MKDIR_P' 22495AWK='$AWK' 22496test -n "\$AWK" || AWK=awk 22497_ACEOF 22498 22499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22500# The default lists apply if the user does not specify any file. 22501ac_need_defaults=: 22502while test $# != 0 22503do 22504 case $1 in 22505 --*=?*) 22506 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22508 ac_shift=: 22509 ;; 22510 --*=) 22511 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22512 ac_optarg= 22513 ac_shift=: 22514 ;; 22515 *) 22516 ac_option=$1 22517 ac_optarg=$2 22518 ac_shift=shift 22519 ;; 22520 esac 22521 22522 case $ac_option in 22523 # Handling of the options. 22524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22525 ac_cs_recheck=: ;; 22526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22527 printf "%s\n" "$ac_cs_version"; exit ;; 22528 --config | --confi | --conf | --con | --co | --c ) 22529 printf "%s\n" "$ac_cs_config"; exit ;; 22530 --debug | --debu | --deb | --de | --d | -d ) 22531 debug=: ;; 22532 --file | --fil | --fi | --f ) 22533 $ac_shift 22534 case $ac_optarg in 22535 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22536 '') as_fn_error $? "missing file argument" ;; 22537 esac 22538 as_fn_append CONFIG_FILES " '$ac_optarg'" 22539 ac_need_defaults=false;; 22540 --header | --heade | --head | --hea ) 22541 $ac_shift 22542 case $ac_optarg in 22543 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22544 esac 22545 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22546 ac_need_defaults=false;; 22547 --he | --h) 22548 # Conflict between --help and --header 22549 as_fn_error $? "ambiguous option: '$1' 22550Try '$0 --help' for more information.";; 22551 --help | --hel | -h ) 22552 printf "%s\n" "$ac_cs_usage"; exit ;; 22553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22554 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22555 ac_cs_silent=: ;; 22556 22557 # This is an error. 22558 -*) as_fn_error $? "unrecognized option: '$1' 22559Try '$0 --help' for more information." ;; 22560 22561 *) as_fn_append ac_config_targets " $1" 22562 ac_need_defaults=false ;; 22563 22564 esac 22565 shift 22566done 22567 22568ac_configure_extra_args= 22569 22570if $ac_cs_silent; then 22571 exec 6>/dev/null 22572 ac_configure_extra_args="$ac_configure_extra_args --silent" 22573fi 22574 22575_ACEOF 22576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22577if \$ac_cs_recheck; then 22578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22579 shift 22580 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22581 CONFIG_SHELL='$SHELL' 22582 export CONFIG_SHELL 22583 exec "\$@" 22584fi 22585 22586_ACEOF 22587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22588exec 5>>config.log 22589{ 22590 echo 22591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22592## Running $as_me. ## 22593_ASBOX 22594 printf "%s\n" "$ac_log" 22595} >&5 22596 22597_ACEOF 22598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22599# 22600# INIT-COMMANDS 22601# 22602AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22603 22604 22605# The HP-UX ksh and POSIX shell print the target directory to stdout 22606# if CDPATH is set. 22607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22608 22609sed_quote_subst='$sed_quote_subst' 22610double_quote_subst='$double_quote_subst' 22611delay_variable_subst='$delay_variable_subst' 22612macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22613macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22614enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22615enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22616pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22617enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22618shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22619SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22620ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22621PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22622host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22623host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22624host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22625build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22626build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22627build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22628SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22629Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22630GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22631EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22632FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22633LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22634NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22635LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22636max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22637ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22638exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22639lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22640lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22641lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22642lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22643lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22644reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22645reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22646FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22647OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22648deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22649file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22650file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22651want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22652DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22653sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22654AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22655lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22656AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22657archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22658STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22659RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22660old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22661old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22662old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22663lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22664CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22665CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22666compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22667GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22668lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22669lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22670lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22671lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22672lt_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"`' 22673lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22674nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22675lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22676lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22677objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22678MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22679lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22680lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22681lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22682lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22683lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22684need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22685MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22686DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22687NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22688LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22689OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22690OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22691libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22692shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22693extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22694archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22695enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22696export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22697whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22698compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22699old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22700old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22701archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22702archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22703module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22704module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22705with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22706allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22707no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22708hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22709hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22710hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22711hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22712hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22713hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22714hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22715inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22716link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22717always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22718export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22719exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22720include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22721prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22722postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22723file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22724variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22725need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22726need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22727version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22728runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22729shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22730shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22731libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22732library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22733soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22734install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22735postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22736postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22737finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22738finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22739hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22740sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22741configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22742configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22743hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22744enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22745enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22746enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22747old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22748striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22749 22750LTCC='$LTCC' 22751LTCFLAGS='$LTCFLAGS' 22752compiler='$compiler_DEFAULT' 22753 22754# A function that is used when there is no print builtin or printf. 22755func_fallback_echo () 22756{ 22757 eval 'cat <<_LTECHO_EOF 22758\$1 22759_LTECHO_EOF' 22760} 22761 22762# Quote evaled strings. 22763for var in SHELL \ 22764ECHO \ 22765PATH_SEPARATOR \ 22766SED \ 22767GREP \ 22768EGREP \ 22769FGREP \ 22770LD \ 22771NM \ 22772LN_S \ 22773lt_SP2NL \ 22774lt_NL2SP \ 22775reload_flag \ 22776FILECMD \ 22777OBJDUMP \ 22778deplibs_check_method \ 22779file_magic_cmd \ 22780file_magic_glob \ 22781want_nocaseglob \ 22782DLLTOOL \ 22783sharedlib_from_linklib_cmd \ 22784AR \ 22785archiver_list_spec \ 22786STRIP \ 22787RANLIB \ 22788CC \ 22789CFLAGS \ 22790compiler \ 22791lt_cv_sys_global_symbol_pipe \ 22792lt_cv_sys_global_symbol_to_cdecl \ 22793lt_cv_sys_global_symbol_to_import \ 22794lt_cv_sys_global_symbol_to_c_name_address \ 22795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22796lt_cv_nm_interface \ 22797nm_file_list_spec \ 22798lt_cv_truncate_bin \ 22799lt_prog_compiler_no_builtin_flag \ 22800lt_prog_compiler_pic \ 22801lt_prog_compiler_wl \ 22802lt_prog_compiler_static \ 22803lt_cv_prog_compiler_c_o \ 22804need_locks \ 22805MANIFEST_TOOL \ 22806DSYMUTIL \ 22807NMEDIT \ 22808LIPO \ 22809OTOOL \ 22810OTOOL64 \ 22811shrext_cmds \ 22812export_dynamic_flag_spec \ 22813whole_archive_flag_spec \ 22814compiler_needs_object \ 22815with_gnu_ld \ 22816allow_undefined_flag \ 22817no_undefined_flag \ 22818hardcode_libdir_flag_spec \ 22819hardcode_libdir_separator \ 22820exclude_expsyms \ 22821include_expsyms \ 22822file_list_spec \ 22823variables_saved_for_relink \ 22824libname_spec \ 22825library_names_spec \ 22826soname_spec \ 22827install_override_mode \ 22828finish_eval \ 22829old_striplib \ 22830striplib; do 22831 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22832 *[\\\\\\\`\\"\\\$]*) 22833 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22834 ;; 22835 *) 22836 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22837 ;; 22838 esac 22839done 22840 22841# Double-quote double-evaled strings. 22842for var in reload_cmds \ 22843old_postinstall_cmds \ 22844old_postuninstall_cmds \ 22845old_archive_cmds \ 22846extract_expsyms_cmds \ 22847old_archive_from_new_cmds \ 22848old_archive_from_expsyms_cmds \ 22849archive_cmds \ 22850archive_expsym_cmds \ 22851module_cmds \ 22852module_expsym_cmds \ 22853export_symbols_cmds \ 22854prelink_cmds \ 22855postlink_cmds \ 22856postinstall_cmds \ 22857postuninstall_cmds \ 22858finish_cmds \ 22859sys_lib_search_path_spec \ 22860configure_time_dlsearch_path \ 22861configure_time_lt_sys_library_path; do 22862 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22863 *[\\\\\\\`\\"\\\$]*) 22864 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22865 ;; 22866 *) 22867 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22868 ;; 22869 esac 22870done 22871 22872ac_aux_dir='$ac_aux_dir' 22873 22874# See if we are running on zsh, and set the options that allow our 22875# commands through without removal of \ escapes INIT. 22876if test -n "\${ZSH_VERSION+set}"; then 22877 setopt NO_GLOB_SUBST 22878fi 22879 22880 22881 PACKAGE='$PACKAGE' 22882 VERSION='$VERSION' 22883 RM='$RM' 22884 ofile='$ofile' 22885 22886 22887 22888 22889_ACEOF 22890 22891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22892 22893# Handling of arguments. 22894for ac_config_target in $ac_config_targets 22895do 22896 case $ac_config_target in 22897 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22898 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22899 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22901 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22902 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22903 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;; 22904 22905 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22906 esac 22907done 22908 22909 22910# If the user did not use the arguments to specify the items to instantiate, 22911# then the envvar interface is used. Set only those that are not. 22912# We use the long form for the default assignment because of an extremely 22913# bizarre bug on SunOS 4.1.3. 22914if $ac_need_defaults; then 22915 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22916 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22917 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22918fi 22919 22920# Have a temporary directory for convenience. Make it in the build tree 22921# simply because there is no reason against having it here, and in addition, 22922# creating and moving files from /tmp can sometimes cause problems. 22923# Hook for its removal unless debugging. 22924# Note that there is a small window in which the directory will not be cleaned: 22925# after its creation but before its name has been assigned to '$tmp'. 22926$debug || 22927{ 22928 tmp= ac_tmp= 22929 trap 'exit_status=$? 22930 : "${ac_tmp:=$tmp}" 22931 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22932' 0 22933 trap 'as_fn_exit 1' 1 2 13 15 22934} 22935# Create a (secure) tmp directory for tmp files. 22936 22937{ 22938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22939 test -d "$tmp" 22940} || 22941{ 22942 tmp=./conf$$-$RANDOM 22943 (umask 077 && mkdir "$tmp") 22944} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22945ac_tmp=$tmp 22946 22947# Set up the scripts for CONFIG_FILES section. 22948# No need to generate them if there are no CONFIG_FILES. 22949# This happens for instance with './config.status config.h'. 22950if test -n "$CONFIG_FILES"; then 22951 22952 22953ac_cr=`echo X | tr X '\015'` 22954# On cygwin, bash can eat \r inside `` if the user requested igncr. 22955# But we know of no other shell where ac_cr would be empty at this 22956# point, so we can use a bashism as a fallback. 22957if test "x$ac_cr" = x; then 22958 eval ac_cr=\$\'\\r\' 22959fi 22960ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22961if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22962 ac_cs_awk_cr='\\r' 22963else 22964 ac_cs_awk_cr=$ac_cr 22965fi 22966 22967echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22968_ACEOF 22969 22970 22971{ 22972 echo "cat >conf$$subs.awk <<_ACEOF" && 22973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22974 echo "_ACEOF" 22975} >conf$$subs.sh || 22976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22977ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22978ac_delim='%!_!# ' 22979for ac_last_try in false false false false false :; do 22980 . ./conf$$subs.sh || 22981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22982 22983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22984 if test $ac_delim_n = $ac_delim_num; then 22985 break 22986 elif $ac_last_try; then 22987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22988 else 22989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22990 fi 22991done 22992rm -f conf$$subs.sh 22993 22994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22995cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22996_ACEOF 22997sed -n ' 22998h 22999s/^/S["/; s/!.*/"]=/ 23000p 23001g 23002s/^[^!]*!// 23003:repl 23004t repl 23005s/'"$ac_delim"'$// 23006t delim 23007:nl 23008h 23009s/\(.\{148\}\)..*/\1/ 23010t more1 23011s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23012p 23013n 23014b repl 23015:more1 23016s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23017p 23018g 23019s/.\{148\}// 23020t nl 23021:delim 23022h 23023s/\(.\{148\}\)..*/\1/ 23024t more2 23025s/["\\]/\\&/g; s/^/"/; s/$/"/ 23026p 23027b 23028:more2 23029s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23030p 23031g 23032s/.\{148\}// 23033t delim 23034' <conf$$subs.awk | sed ' 23035/^[^""]/{ 23036 N 23037 s/\n// 23038} 23039' >>$CONFIG_STATUS || ac_write_fail=1 23040rm -f conf$$subs.awk 23041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23042_ACAWK 23043cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23044 for (key in S) S_is_set[key] = 1 23045 FS = "" 23046 23047} 23048{ 23049 line = $ 0 23050 nfields = split(line, field, "@") 23051 substed = 0 23052 len = length(field[1]) 23053 for (i = 2; i < nfields; i++) { 23054 key = field[i] 23055 keylen = length(key) 23056 if (S_is_set[key]) { 23057 value = S[key] 23058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23059 len += length(value) + length(field[++i]) 23060 substed = 1 23061 } else 23062 len += 1 + keylen 23063 } 23064 23065 print line 23066} 23067 23068_ACAWK 23069_ACEOF 23070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23071if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23073else 23074 cat 23075fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23076 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23077_ACEOF 23078 23079# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23080# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23081# trailing colons and then remove the whole line if VPATH becomes empty 23082# (actually we leave an empty line to preserve line numbers). 23083if test "x$srcdir" = x.; then 23084 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23085h 23086s/// 23087s/^/:/ 23088s/[ ]*$/:/ 23089s/:\$(srcdir):/:/g 23090s/:\${srcdir}:/:/g 23091s/:@srcdir@:/:/g 23092s/^:*// 23093s/:*$// 23094x 23095s/\(=[ ]*\).*/\1/ 23096G 23097s/\n// 23098s/^[^=]*=[ ]*$// 23099}' 23100fi 23101 23102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23103fi # test -n "$CONFIG_FILES" 23104 23105# Set up the scripts for CONFIG_HEADERS section. 23106# No need to generate them if there are no CONFIG_HEADERS. 23107# This happens for instance with './config.status Makefile'. 23108if test -n "$CONFIG_HEADERS"; then 23109cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23110BEGIN { 23111_ACEOF 23112 23113# Transform confdefs.h into an awk script 'defines.awk', embedded as 23114# here-document in config.status, that substitutes the proper values into 23115# config.h.in to produce config.h. 23116 23117# Create a delimiter string that does not exist in confdefs.h, to ease 23118# handling of long lines. 23119ac_delim='%!_!# ' 23120for ac_last_try in false false :; do 23121 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23122 if test -z "$ac_tt"; then 23123 break 23124 elif $ac_last_try; then 23125 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23126 else 23127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23128 fi 23129done 23130 23131# For the awk script, D is an array of macro values keyed by name, 23132# likewise P contains macro parameters if any. Preserve backslash 23133# newline sequences. 23134 23135ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23136sed -n ' 23137s/.\{148\}/&'"$ac_delim"'/g 23138t rset 23139:rset 23140s/^[ ]*#[ ]*define[ ][ ]*/ / 23141t def 23142d 23143:def 23144s/\\$// 23145t bsnl 23146s/["\\]/\\&/g 23147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23148D["\1"]=" \3"/p 23149s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23150d 23151:bsnl 23152s/["\\]/\\&/g 23153s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23154D["\1"]=" \3\\\\\\n"\\/p 23155t cont 23156s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23157t cont 23158d 23159:cont 23160n 23161s/.\{148\}/&'"$ac_delim"'/g 23162t clear 23163:clear 23164s/\\$// 23165t bsnlc 23166s/["\\]/\\&/g; s/^/"/; s/$/"/p 23167d 23168:bsnlc 23169s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23170b cont 23171' <confdefs.h | sed ' 23172s/'"$ac_delim"'/"\\\ 23173"/g' >>$CONFIG_STATUS || ac_write_fail=1 23174 23175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23176 for (key in D) D_is_set[key] = 1 23177 FS = "" 23178} 23179/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23180 line = \$ 0 23181 split(line, arg, " ") 23182 if (arg[1] == "#") { 23183 defundef = arg[2] 23184 mac1 = arg[3] 23185 } else { 23186 defundef = substr(arg[1], 2) 23187 mac1 = arg[2] 23188 } 23189 split(mac1, mac2, "(") #) 23190 macro = mac2[1] 23191 prefix = substr(line, 1, index(line, defundef) - 1) 23192 if (D_is_set[macro]) { 23193 # Preserve the white space surrounding the "#". 23194 print prefix "define", macro P[macro] D[macro] 23195 next 23196 } else { 23197 # Replace #undef with comments. This is necessary, for example, 23198 # in the case of _POSIX_SOURCE, which is predefined and required 23199 # on some systems where configure will not decide to define it. 23200 if (defundef == "undef") { 23201 print "/*", prefix defundef, macro, "*/" 23202 next 23203 } 23204 } 23205} 23206{ print } 23207_ACAWK 23208_ACEOF 23209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23210 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23211fi # test -n "$CONFIG_HEADERS" 23212 23213 23214eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23215shift 23216for ac_tag 23217do 23218 case $ac_tag in 23219 :[FHLC]) ac_mode=$ac_tag; continue;; 23220 esac 23221 case $ac_mode$ac_tag in 23222 :[FHL]*:*);; 23223 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23224 :[FH]-) ac_tag=-:-;; 23225 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23226 esac 23227 ac_save_IFS=$IFS 23228 IFS=: 23229 set x $ac_tag 23230 IFS=$ac_save_IFS 23231 shift 23232 ac_file=$1 23233 shift 23234 23235 case $ac_mode in 23236 :L) ac_source=$1;; 23237 :[FH]) 23238 ac_file_inputs= 23239 for ac_f 23240 do 23241 case $ac_f in 23242 -) ac_f="$ac_tmp/stdin";; 23243 *) # Look for the file first in the build tree, then in the source tree 23244 # (if the path is not absolute). The absolute path cannot be DOS-style, 23245 # because $ac_f cannot contain ':'. 23246 test -f "$ac_f" || 23247 case $ac_f in 23248 [\\/$]*) false;; 23249 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23250 esac || 23251 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23252 esac 23253 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23254 as_fn_append ac_file_inputs " '$ac_f'" 23255 done 23256 23257 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23258 # use $as_me), people would be surprised to read: 23259 # /* config.h. Generated by config.status. */ 23260 configure_input='Generated from '` 23261 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23262 `' by configure.' 23263 if test x"$ac_file" != x-; then 23264 configure_input="$ac_file. $configure_input" 23265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23266printf "%s\n" "$as_me: creating $ac_file" >&6;} 23267 fi 23268 # Neutralize special characters interpreted by sed in replacement strings. 23269 case $configure_input in #( 23270 *\&* | *\|* | *\\* ) 23271 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23272 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23273 *) ac_sed_conf_input=$configure_input;; 23274 esac 23275 23276 case $ac_tag in 23277 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23279 esac 23280 ;; 23281 esac 23282 23283 ac_dir=`$as_dirname -- "$ac_file" || 23284$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23285 X"$ac_file" : 'X\(//\)[^/]' \| \ 23286 X"$ac_file" : 'X\(//\)$' \| \ 23287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23288printf "%s\n" X"$ac_file" | 23289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23290 s//\1/ 23291 q 23292 } 23293 /^X\(\/\/\)[^/].*/{ 23294 s//\1/ 23295 q 23296 } 23297 /^X\(\/\/\)$/{ 23298 s//\1/ 23299 q 23300 } 23301 /^X\(\/\).*/{ 23302 s//\1/ 23303 q 23304 } 23305 s/.*/./; q'` 23306 as_dir="$ac_dir"; as_fn_mkdir_p 23307 ac_builddir=. 23308 23309case "$ac_dir" in 23310.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23311*) 23312 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23313 # A ".." for each directory in $ac_dir_suffix. 23314 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23315 case $ac_top_builddir_sub in 23316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23318 esac ;; 23319esac 23320ac_abs_top_builddir=$ac_pwd 23321ac_abs_builddir=$ac_pwd$ac_dir_suffix 23322# for backward compatibility: 23323ac_top_builddir=$ac_top_build_prefix 23324 23325case $srcdir in 23326 .) # We are building in place. 23327 ac_srcdir=. 23328 ac_top_srcdir=$ac_top_builddir_sub 23329 ac_abs_top_srcdir=$ac_pwd ;; 23330 [\\/]* | ?:[\\/]* ) # Absolute name. 23331 ac_srcdir=$srcdir$ac_dir_suffix; 23332 ac_top_srcdir=$srcdir 23333 ac_abs_top_srcdir=$srcdir ;; 23334 *) # Relative name. 23335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23336 ac_top_srcdir=$ac_top_build_prefix$srcdir 23337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23338esac 23339ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23340 23341 23342 case $ac_mode in 23343 :F) 23344 # 23345 # CONFIG_FILE 23346 # 23347 23348 case $INSTALL in 23349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23351 esac 23352 ac_MKDIR_P=$MKDIR_P 23353 case $MKDIR_P in 23354 [\\/$]* | ?:[\\/]* ) ;; 23355 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23356 esac 23357_ACEOF 23358 23359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23360# If the template does not know about datarootdir, expand it. 23361# FIXME: This hack should be removed a few years after 2.60. 23362ac_datarootdir_hack=; ac_datarootdir_seen= 23363ac_sed_dataroot=' 23364/datarootdir/ { 23365 p 23366 q 23367} 23368/@datadir@/p 23369/@docdir@/p 23370/@infodir@/p 23371/@localedir@/p 23372/@mandir@/p' 23373case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23374*datarootdir*) ac_datarootdir_seen=yes;; 23375*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23377printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23378_ACEOF 23379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23380 ac_datarootdir_hack=' 23381 s&@datadir@&$datadir&g 23382 s&@docdir@&$docdir&g 23383 s&@infodir@&$infodir&g 23384 s&@localedir@&$localedir&g 23385 s&@mandir@&$mandir&g 23386 s&\\\${datarootdir}&$datarootdir&g' ;; 23387esac 23388_ACEOF 23389 23390# Neutralize VPATH when '$srcdir' = '.'. 23391# Shell code in configure.ac might set extrasub. 23392# FIXME: do we really want to maintain this feature? 23393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23394ac_sed_extra="$ac_vpsub 23395$extrasub 23396_ACEOF 23397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23398:t 23399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23400s|@configure_input@|$ac_sed_conf_input|;t t 23401s&@top_builddir@&$ac_top_builddir_sub&;t t 23402s&@top_build_prefix@&$ac_top_build_prefix&;t t 23403s&@srcdir@&$ac_srcdir&;t t 23404s&@abs_srcdir@&$ac_abs_srcdir&;t t 23405s&@top_srcdir@&$ac_top_srcdir&;t t 23406s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23407s&@builddir@&$ac_builddir&;t t 23408s&@abs_builddir@&$ac_abs_builddir&;t t 23409s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23410s&@INSTALL@&$ac_INSTALL&;t t 23411s&@MKDIR_P@&$ac_MKDIR_P&;t t 23412$ac_datarootdir_hack 23413" 23414eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23415 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23416 23417test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23418 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23420 "$ac_tmp/out"`; test -z "$ac_out"; } && 23421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23422which seems to be undefined. Please make sure it is defined" >&5 23423printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23424which seems to be undefined. Please make sure it is defined" >&2;} 23425 23426 rm -f "$ac_tmp/stdin" 23427 case $ac_file in 23428 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23429 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23430 esac \ 23431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23432 ;; 23433 :H) 23434 # 23435 # CONFIG_HEADER 23436 # 23437 if test x"$ac_file" != x-; then 23438 { 23439 printf "%s\n" "/* $configure_input */" >&1 \ 23440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23441 } >"$ac_tmp/config.h" \ 23442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23443 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23445printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23446 else 23447 rm -f "$ac_file" 23448 mv "$ac_tmp/config.h" "$ac_file" \ 23449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23450 fi 23451 else 23452 printf "%s\n" "/* $configure_input */" >&1 \ 23453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23454 || as_fn_error $? "could not create -" "$LINENO" 5 23455 fi 23456# Compute "$ac_file"'s index in $config_headers. 23457_am_arg="$ac_file" 23458_am_stamp_count=1 23459for _am_header in $config_headers :; do 23460 case $_am_header in 23461 $_am_arg | $_am_arg:* ) 23462 break ;; 23463 * ) 23464 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23465 esac 23466done 23467echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23468$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23469 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23470 X"$_am_arg" : 'X\(//\)$' \| \ 23471 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23472printf "%s\n" X"$_am_arg" | 23473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23474 s//\1/ 23475 q 23476 } 23477 /^X\(\/\/\)[^/].*/{ 23478 s//\1/ 23479 q 23480 } 23481 /^X\(\/\/\)$/{ 23482 s//\1/ 23483 q 23484 } 23485 /^X\(\/\).*/{ 23486 s//\1/ 23487 q 23488 } 23489 s/.*/./; q'`/stamp-h$_am_stamp_count 23490 ;; 23491 23492 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23493printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23494 ;; 23495 esac 23496 23497 23498 case $ac_file$ac_mode in 23499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23500 # Older Autoconf quotes --file arguments for eval, but not when files 23501 # are listed without --file. Let's play safe and only enable the eval 23502 # if we detect the quoting. 23503 # TODO: see whether this extra hack can be removed once we start 23504 # requiring Autoconf 2.70 or later. 23505 case $CONFIG_FILES in #( 23506 *\'*) : 23507 eval set x "$CONFIG_FILES" ;; #( 23508 *) : 23509 set x $CONFIG_FILES ;; #( 23510 *) : 23511 ;; 23512esac 23513 shift 23514 # Used to flag and report bootstrapping failures. 23515 am_rc=0 23516 for am_mf 23517 do 23518 # Strip MF so we end up with the name of the file. 23519 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23520 # Check whether this is an Automake generated Makefile which includes 23521 # dependency-tracking related rules and includes. 23522 # Grep'ing the whole file directly is not great: AIX grep has a line 23523 # limit of 2048, but all sed's we know have understand at least 4000. 23524 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23525 || continue 23526 am_dirpart=`$as_dirname -- "$am_mf" || 23527$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23528 X"$am_mf" : 'X\(//\)[^/]' \| \ 23529 X"$am_mf" : 'X\(//\)$' \| \ 23530 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23531printf "%s\n" X"$am_mf" | 23532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23533 s//\1/ 23534 q 23535 } 23536 /^X\(\/\/\)[^/].*/{ 23537 s//\1/ 23538 q 23539 } 23540 /^X\(\/\/\)$/{ 23541 s//\1/ 23542 q 23543 } 23544 /^X\(\/\).*/{ 23545 s//\1/ 23546 q 23547 } 23548 s/.*/./; q'` 23549 am_filepart=`$as_basename -- "$am_mf" || 23550$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23551 X"$am_mf" : 'X\(//\)$' \| \ 23552 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23553printf "%s\n" X/"$am_mf" | 23554 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23555 s//\1/ 23556 q 23557 } 23558 /^X\/\(\/\/\)$/{ 23559 s//\1/ 23560 q 23561 } 23562 /^X\/\(\/\).*/{ 23563 s//\1/ 23564 q 23565 } 23566 s/.*/./; q'` 23567 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23568 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23569 | $MAKE -f - am--depfiles" >&5 23570 (cd "$am_dirpart" \ 23571 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23572 | $MAKE -f - am--depfiles) >&5 2>&5 23573 ac_status=$? 23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23575 (exit $ac_status); } || am_rc=$? 23576 done 23577 if test $am_rc -ne 0; then 23578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23580as_fn_error $? "Something went wrong bootstrapping makefile fragments 23581 for automatic dependency tracking. If GNU make was not used, consider 23582 re-running the configure script with MAKE=\"gmake\" (or whatever is 23583 necessary). You can also try re-running configure with the 23584 '--disable-dependency-tracking' option to at least be able to build 23585 the package (albeit without support for automatic dependency tracking). 23586See 'config.log' for more details" "$LINENO" 5; } 23587 fi 23588 { am_dirpart=; unset am_dirpart;} 23589 { am_filepart=; unset am_filepart;} 23590 { am_mf=; unset am_mf;} 23591 { am_rc=; unset am_rc;} 23592 rm -f conftest-deps.mk 23593} 23594 ;; 23595 "libtool":C) 23596 23597 # See if we are running on zsh, and set the options that allow our 23598 # commands through without removal of \ escapes. 23599 if test -n "${ZSH_VERSION+set}"; then 23600 setopt NO_GLOB_SUBST 23601 fi 23602 23603 cfgfile=${ofile}T 23604 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23605 $RM "$cfgfile" 23606 23607 cat <<_LT_EOF >> "$cfgfile" 23608#! $SHELL 23609# Generated automatically by $as_me ($PACKAGE) $VERSION 23610# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23611 23612# Provide generalized library-building support services. 23613# Written by Gordon Matzigkeit, 1996 23614 23615# Copyright (C) 2024 Free Software Foundation, Inc. 23616# This is free software; see the source for copying conditions. There is NO 23617# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23618 23619# GNU Libtool is free software; you can redistribute it and/or modify 23620# it under the terms of the GNU General Public License as published by 23621# the Free Software Foundation; either version 2 of the License, or 23622# (at your option) any later version. 23623# 23624# As a special exception to the GNU General Public License, if you 23625# distribute this file as part of a program or library that is built 23626# using GNU Libtool, you may include this file under the same 23627# distribution terms that you use for the rest of that program. 23628# 23629# GNU Libtool is distributed in the hope that it will be useful, but 23630# WITHOUT ANY WARRANTY; without even the implied warranty of 23631# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23632# GNU General Public License for more details. 23633# 23634# You should have received a copy of the GNU General Public License 23635# along with this program. If not, see <http://www.gnu.org/licenses/>. 23636 23637 23638# The names of the tagged configurations supported by this script. 23639available_tags='' 23640 23641# Configured defaults for sys_lib_dlsearch_path munging. 23642: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23643 23644# ### BEGIN LIBTOOL CONFIG 23645 23646# Which release of libtool.m4 was used? 23647macro_version=$macro_version 23648macro_revision=$macro_revision 23649 23650# Whether or not to build shared libraries. 23651build_libtool_libs=$enable_shared 23652 23653# Whether or not to build static libraries. 23654build_old_libs=$enable_static 23655 23656# What type of objects to build. 23657pic_mode=$pic_mode 23658 23659# Whether or not to optimize for fast installation. 23660fast_install=$enable_fast_install 23661 23662# Shared archive member basename,for filename based shared library versioning on AIX. 23663shared_archive_member_spec=$shared_archive_member_spec 23664 23665# Shell to use when invoking shell scripts. 23666SHELL=$lt_SHELL 23667 23668# An echo program that protects backslashes. 23669ECHO=$lt_ECHO 23670 23671# The PATH separator for the build system. 23672PATH_SEPARATOR=$lt_PATH_SEPARATOR 23673 23674# The host system. 23675host_alias=$host_alias 23676host=$host 23677host_os=$host_os 23678 23679# The build system. 23680build_alias=$build_alias 23681build=$build 23682build_os=$build_os 23683 23684# A sed program that does not truncate output. 23685SED=$lt_SED 23686 23687# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23688Xsed="\$SED -e 1s/^X//" 23689 23690# A grep program that handles long lines. 23691GREP=$lt_GREP 23692 23693# An ERE matcher. 23694EGREP=$lt_EGREP 23695 23696# A literal string matcher. 23697FGREP=$lt_FGREP 23698 23699# A BSD- or MS-compatible name lister. 23700NM=$lt_NM 23701 23702# Whether we need soft or hard links. 23703LN_S=$lt_LN_S 23704 23705# What is the maximum length of a command? 23706max_cmd_len=$max_cmd_len 23707 23708# Object file suffix (normally "o"). 23709objext=$ac_objext 23710 23711# Executable file suffix (normally ""). 23712exeext=$exeext 23713 23714# whether the shell understands "unset". 23715lt_unset=$lt_unset 23716 23717# turn spaces into newlines. 23718SP2NL=$lt_lt_SP2NL 23719 23720# turn newlines into spaces. 23721NL2SP=$lt_lt_NL2SP 23722 23723# convert \$build file names to \$host format. 23724to_host_file_cmd=$lt_cv_to_host_file_cmd 23725 23726# convert \$build files to toolchain format. 23727to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23728 23729# A file(cmd) program that detects file types. 23730FILECMD=$lt_FILECMD 23731 23732# An object symbol dumper. 23733OBJDUMP=$lt_OBJDUMP 23734 23735# Method to check whether dependent libraries are shared objects. 23736deplibs_check_method=$lt_deplibs_check_method 23737 23738# Command to use when deplibs_check_method = "file_magic". 23739file_magic_cmd=$lt_file_magic_cmd 23740 23741# How to find potential files when deplibs_check_method = "file_magic". 23742file_magic_glob=$lt_file_magic_glob 23743 23744# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23745want_nocaseglob=$lt_want_nocaseglob 23746 23747# DLL creation program. 23748DLLTOOL=$lt_DLLTOOL 23749 23750# Command to associate shared and link libraries. 23751sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23752 23753# The archiver. 23754AR=$lt_AR 23755 23756# Flags to create an archive (by configure). 23757lt_ar_flags=$lt_ar_flags 23758 23759# Flags to create an archive. 23760AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23761 23762# How to feed a file listing to the archiver. 23763archiver_list_spec=$lt_archiver_list_spec 23764 23765# A symbol stripping program. 23766STRIP=$lt_STRIP 23767 23768# Commands used to install an old-style archive. 23769RANLIB=$lt_RANLIB 23770old_postinstall_cmds=$lt_old_postinstall_cmds 23771old_postuninstall_cmds=$lt_old_postuninstall_cmds 23772 23773# Whether to use a lock for old archive extraction. 23774lock_old_archive_extraction=$lock_old_archive_extraction 23775 23776# A C compiler. 23777LTCC=$lt_CC 23778 23779# LTCC compiler flags. 23780LTCFLAGS=$lt_CFLAGS 23781 23782# Take the output of nm and produce a listing of raw symbols and C names. 23783global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23784 23785# Transform the output of nm in a proper C declaration. 23786global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23787 23788# Transform the output of nm into a list of symbols to manually relocate. 23789global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23790 23791# Transform the output of nm in a C name address pair. 23792global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23793 23794# Transform the output of nm in a C name address pair when lib prefix is needed. 23795global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23796 23797# The name lister interface. 23798nm_interface=$lt_lt_cv_nm_interface 23799 23800# Specify filename containing input files for \$NM. 23801nm_file_list_spec=$lt_nm_file_list_spec 23802 23803# The root where to search for dependent libraries,and where our libraries should be installed. 23804lt_sysroot=$lt_sysroot 23805 23806# Command to truncate a binary pipe. 23807lt_truncate_bin=$lt_lt_cv_truncate_bin 23808 23809# The name of the directory that contains temporary libtool files. 23810objdir=$objdir 23811 23812# Used to examine libraries when file_magic_cmd begins with "file". 23813MAGIC_CMD=$MAGIC_CMD 23814 23815# Must we lock files when doing compilation? 23816need_locks=$lt_need_locks 23817 23818# Manifest tool. 23819MANIFEST_TOOL=$lt_MANIFEST_TOOL 23820 23821# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23822DSYMUTIL=$lt_DSYMUTIL 23823 23824# Tool to change global to local symbols on Mac OS X. 23825NMEDIT=$lt_NMEDIT 23826 23827# Tool to manipulate fat objects and archives on Mac OS X. 23828LIPO=$lt_LIPO 23829 23830# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23831OTOOL=$lt_OTOOL 23832 23833# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23834OTOOL64=$lt_OTOOL64 23835 23836# Old archive suffix (normally "a"). 23837libext=$libext 23838 23839# Shared library suffix (normally ".so"). 23840shrext_cmds=$lt_shrext_cmds 23841 23842# The commands to extract the exported symbol list from a shared archive. 23843extract_expsyms_cmds=$lt_extract_expsyms_cmds 23844 23845# Variables whose values should be saved in libtool wrapper scripts and 23846# restored at link time. 23847variables_saved_for_relink=$lt_variables_saved_for_relink 23848 23849# Do we need the "lib" prefix for modules? 23850need_lib_prefix=$need_lib_prefix 23851 23852# Do we need a version for libraries? 23853need_version=$need_version 23854 23855# Library versioning type. 23856version_type=$version_type 23857 23858# Shared library runtime path variable. 23859runpath_var=$runpath_var 23860 23861# Shared library path variable. 23862shlibpath_var=$shlibpath_var 23863 23864# Is shlibpath searched before the hard-coded library search path? 23865shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23866 23867# Format of library name prefix. 23868libname_spec=$lt_libname_spec 23869 23870# List of archive names. First name is the real one, the rest are links. 23871# The last name is the one that the linker finds with -lNAME 23872library_names_spec=$lt_library_names_spec 23873 23874# The coded name of the library, if different from the real name. 23875soname_spec=$lt_soname_spec 23876 23877# Permission mode override for installation of shared libraries. 23878install_override_mode=$lt_install_override_mode 23879 23880# Command to use after installation of a shared archive. 23881postinstall_cmds=$lt_postinstall_cmds 23882 23883# Command to use after uninstallation of a shared archive. 23884postuninstall_cmds=$lt_postuninstall_cmds 23885 23886# Commands used to finish a libtool library installation in a directory. 23887finish_cmds=$lt_finish_cmds 23888 23889# As "finish_cmds", except a single script fragment to be evaled but 23890# not shown. 23891finish_eval=$lt_finish_eval 23892 23893# Whether we should hardcode library paths into libraries. 23894hardcode_into_libs=$hardcode_into_libs 23895 23896# Compile-time system search path for libraries. 23897sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23898 23899# Detected run-time system search path for libraries. 23900sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23901 23902# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23903configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23904 23905# Whether dlopen is supported. 23906dlopen_support=$enable_dlopen 23907 23908# Whether dlopen of programs is supported. 23909dlopen_self=$enable_dlopen_self 23910 23911# Whether dlopen of statically linked programs is supported. 23912dlopen_self_static=$enable_dlopen_self_static 23913 23914# Commands to strip libraries. 23915old_striplib=$lt_old_striplib 23916striplib=$lt_striplib 23917 23918 23919# The linker used to build libraries. 23920LD=$lt_LD 23921 23922# How to create reloadable object files. 23923reload_flag=$lt_reload_flag 23924reload_cmds=$lt_reload_cmds 23925 23926# Commands used to build an old-style archive. 23927old_archive_cmds=$lt_old_archive_cmds 23928 23929# A language specific compiler. 23930CC=$lt_compiler 23931 23932# Is the compiler the GNU compiler? 23933with_gcc=$GCC 23934 23935# Compiler flag to turn off builtin functions. 23936no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23937 23938# Additional compiler flags for building library objects. 23939pic_flag=$lt_lt_prog_compiler_pic 23940 23941# How to pass a linker flag through the compiler. 23942wl=$lt_lt_prog_compiler_wl 23943 23944# Compiler flag to prevent dynamic linking. 23945link_static_flag=$lt_lt_prog_compiler_static 23946 23947# Does compiler simultaneously support -c and -o options? 23948compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23949 23950# Whether or not to add -lc for building shared libraries. 23951build_libtool_need_lc=$archive_cmds_need_lc 23952 23953# Whether or not to disallow shared libs when runtime libs are static. 23954allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23955 23956# Compiler flag to allow reflexive dlopens. 23957export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23958 23959# Compiler flag to generate shared objects directly from archives. 23960whole_archive_flag_spec=$lt_whole_archive_flag_spec 23961 23962# Whether the compiler copes with passing no objects directly. 23963compiler_needs_object=$lt_compiler_needs_object 23964 23965# Create an old-style archive from a shared archive. 23966old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23967 23968# Create a temporary old-style archive to link instead of a shared archive. 23969old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23970 23971# Commands used to build a shared archive. 23972archive_cmds=$lt_archive_cmds 23973archive_expsym_cmds=$lt_archive_expsym_cmds 23974 23975# Commands used to build a loadable module if different from building 23976# a shared archive. 23977module_cmds=$lt_module_cmds 23978module_expsym_cmds=$lt_module_expsym_cmds 23979 23980# Whether we are building with GNU ld or not. 23981with_gnu_ld=$lt_with_gnu_ld 23982 23983# Flag that allows shared libraries with undefined symbols to be built. 23984allow_undefined_flag=$lt_allow_undefined_flag 23985 23986# Flag that enforces no undefined symbols. 23987no_undefined_flag=$lt_no_undefined_flag 23988 23989# Flag to hardcode \$libdir into a binary during linking. 23990# This must work even if \$libdir does not exist 23991hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23992 23993# Whether we need a single "-rpath" flag with a separated argument. 23994hardcode_libdir_separator=$lt_hardcode_libdir_separator 23995 23996# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23997# DIR into the resulting binary. 23998hardcode_direct=$hardcode_direct 23999 24000# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24001# DIR into the resulting binary and the resulting library dependency is 24002# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 24003# library is relocated. 24004hardcode_direct_absolute=$hardcode_direct_absolute 24005 24006# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24007# into the resulting binary. 24008hardcode_minus_L=$hardcode_minus_L 24009 24010# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24011# into the resulting binary. 24012hardcode_shlibpath_var=$hardcode_shlibpath_var 24013 24014# Set to "yes" if building a shared library automatically hardcodes DIR 24015# into the library and all subsequent libraries and executables linked 24016# against it. 24017hardcode_automatic=$hardcode_automatic 24018 24019# Set to yes if linker adds runtime paths of dependent libraries 24020# to runtime path list. 24021inherit_rpath=$inherit_rpath 24022 24023# Whether libtool must link a program against all its dependency libraries. 24024link_all_deplibs=$link_all_deplibs 24025 24026# Set to "yes" if exported symbols are required. 24027always_export_symbols=$always_export_symbols 24028 24029# The commands to list exported symbols. 24030export_symbols_cmds=$lt_export_symbols_cmds 24031 24032# Symbols that should not be listed in the preloaded symbols. 24033exclude_expsyms=$lt_exclude_expsyms 24034 24035# Symbols that must always be exported. 24036include_expsyms=$lt_include_expsyms 24037 24038# Commands necessary for linking programs (against libraries) with templates. 24039prelink_cmds=$lt_prelink_cmds 24040 24041# Commands necessary for finishing linking programs. 24042postlink_cmds=$lt_postlink_cmds 24043 24044# Specify filename containing input files. 24045file_list_spec=$lt_file_list_spec 24046 24047# How to hardcode a shared library path into an executable. 24048hardcode_action=$hardcode_action 24049 24050# ### END LIBTOOL CONFIG 24051 24052_LT_EOF 24053 24054 cat <<'_LT_EOF' >> "$cfgfile" 24055 24056# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24057 24058# func_munge_path_list VARIABLE PATH 24059# ----------------------------------- 24060# VARIABLE is name of variable containing _space_ separated list of 24061# directories to be munged by the contents of PATH, which is string 24062# having a format: 24063# "DIR[:DIR]:" 24064# string "DIR[ DIR]" will be prepended to VARIABLE 24065# ":DIR[:DIR]" 24066# string "DIR[ DIR]" will be appended to VARIABLE 24067# "DIRP[:DIRP]::[DIRA:]DIRA" 24068# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24069# "DIRA[ DIRA]" will be appended to VARIABLE 24070# "DIR[:DIR]" 24071# VARIABLE will be replaced by "DIR[ DIR]" 24072func_munge_path_list () 24073{ 24074 case x$2 in 24075 x) 24076 ;; 24077 *:) 24078 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24079 ;; 24080 x:*) 24081 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24082 ;; 24083 *::*) 24084 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24085 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24086 ;; 24087 *) 24088 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24089 ;; 24090 esac 24091} 24092 24093 24094# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24095func_cc_basename () 24096{ 24097 for cc_temp in $*""; do 24098 case $cc_temp in 24099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24101 \-*) ;; 24102 *) break;; 24103 esac 24104 done 24105 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24106} 24107 24108 24109# ### END FUNCTIONS SHARED WITH CONFIGURE 24110 24111_LT_EOF 24112 24113 case $host_os in 24114 aix3*) 24115 cat <<\_LT_EOF >> "$cfgfile" 24116# AIX sometimes has problems with the GCC collect2 program. For some 24117# reason, if we set the COLLECT_NAMES environment variable, the problems 24118# vanish in a puff of smoke. 24119if test set != "${COLLECT_NAMES+set}"; then 24120 COLLECT_NAMES= 24121 export COLLECT_NAMES 24122fi 24123_LT_EOF 24124 ;; 24125 esac 24126 24127 24128 24129ltmain=$ac_aux_dir/ltmain.sh 24130 24131 24132 # We use sed instead of cat because bash on DJGPP gets confused if 24133 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24134 # text mode, it properly converts lines to CR/LF. This bash problem 24135 # is reportedly fixed, but why not run on old versions too? 24136 $SED '$q' "$ltmain" >> "$cfgfile" \ 24137 || (rm -f "$cfgfile"; exit 1) 24138 24139 mv -f "$cfgfile" "$ofile" || 24140 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24141 chmod +x "$ofile" 24142 24143 ;; 24144 24145 esac 24146done # for ac_tag 24147 24148 24149as_fn_exit 0 24150_ACEOF 24151ac_clean_files=$ac_clean_files_save 24152 24153test $ac_write_fail = 0 || 24154 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24155 24156 24157# configure is writing to config.log, and then calls config.status. 24158# config.status does its own redirection, appending to config.log. 24159# Unfortunately, on DOS this fails, as config.log is still kept open 24160# by configure, so config.status won't be able to write to it; its 24161# output is simply discarded. So we exec the FD to /dev/null, 24162# effectively closing config.log, so it can be properly (re)opened and 24163# appended to by config.status. When coming back to configure, we 24164# need to make the FD available again. 24165if test "$no_create" != yes; then 24166 ac_cs_success=: 24167 ac_config_status_args= 24168 test "$silent" = yes && 24169 ac_config_status_args="$ac_config_status_args --quiet" 24170 exec 5>/dev/null 24171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24172 exec 5>>config.log 24173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24174 # would make configure fail if this is the last instruction. 24175 $ac_cs_success || as_fn_exit 1 24176fi 24177if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24179printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24180fi 24181 24182 24183