1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXi 1.8.3. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/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 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 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 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 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. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export 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). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${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 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if 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 114 fi 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. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $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'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 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 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -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 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 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 225 then : 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 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else 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 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 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. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $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'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 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 (at] gnu.org and 282 $0: https://gitlab.freedesktop.org/xorg/lib/libXi/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 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_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. 323 as_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. 333 as_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 || 352 printf "%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. 381 as_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. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # 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. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # 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. 430 as_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 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%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. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_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. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `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';; 539 esac 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. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (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 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 as_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 655 test -n "$DJDIR" || exec 7<&0 </dev/null 656 exec 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. 661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663 # 664 # Initializations. 665 # 666 ac_default_prefix=/usr/local 667 ac_clean_files= 668 ac_config_libobj_dir=. 669 LIBOBJS= 670 cross_compiling=no 671 subdirs= 672 MFLAGS= 673 MAKEFLAGS= 674 675 # Identity of this package. 676 PACKAGE_NAME='libXi' 677 PACKAGE_TARNAME='libXi' 678 PACKAGE_VERSION='1.8.3' 679 PACKAGE_STRING='libXi 1.8.3' 680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/issues' 681 PACKAGE_URL='' 682 683 ac_unique_file="Makefile.am" 684 # Factoring default headers for most tests. 685 ac_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 715 ac_header_c_list= 716 ac_subst_vars='am__EXEEXT_FALSE 717 am__EXEEXT_TRUE 718 LTLIBOBJS 719 LIBOBJS 720 INSTALL_MANPAGES_FALSE 721 INSTALL_MANPAGES_TRUE 722 HAVE_DOCTOOLS_FALSE 723 HAVE_DOCTOOLS_TRUE 724 XFIXES_LIBS 725 XFIXES_CFLAGS 726 XI_LIBS 727 XI_CFLAGS 728 XTMALLOC_ZERO_CFLAGS 729 XMALLOC_ZERO_CFLAGS 730 MALLOC_ZERO_CFLAGS 731 HAVE_ASCIIDOC_FALSE 732 HAVE_ASCIIDOC_TRUE 733 ASCIIDOC 734 HAVE_STYLESHEETS_FALSE 735 HAVE_STYLESHEETS_TRUE 736 XSL_STYLESHEET 737 STYLESHEET_SRCDIR 738 XORG_SGML_PATH 739 HAVE_XSLTPROC_FALSE 740 HAVE_XSLTPROC_TRUE 741 XSLTPROC 742 HAVE_FOP_FALSE 743 HAVE_FOP_TRUE 744 FOP 745 HAVE_XMLTO_FALSE 746 HAVE_XMLTO_TRUE 747 HAVE_XMLTO_TEXT_FALSE 748 HAVE_XMLTO_TEXT_TRUE 749 XMLTO 750 ENABLE_SPECS_FALSE 751 ENABLE_SPECS_TRUE 752 ENABLE_DOCS_FALSE 753 ENABLE_DOCS_TRUE 754 MAN_SUBSTS 755 XORG_MAN_PAGE 756 ADMIN_MAN_DIR 757 DRIVER_MAN_DIR 758 MISC_MAN_DIR 759 FILE_MAN_DIR 760 LIB_MAN_DIR 761 APP_MAN_DIR 762 ADMIN_MAN_SUFFIX 763 DRIVER_MAN_SUFFIX 764 MISC_MAN_SUFFIX 765 FILE_MAN_SUFFIX 766 LIB_MAN_SUFFIX 767 APP_MAN_SUFFIX 768 INSTALL_CMD 769 PKG_CONFIG_LIBDIR 770 PKG_CONFIG_PATH 771 PKG_CONFIG 772 CHANGELOG_CMD 773 STRICT_CFLAGS 774 CWARNFLAGS 775 BASE_CFLAGS 776 LT_SYS_LIBRARY_PATH 777 OTOOL64 778 OTOOL 779 LIPO 780 NMEDIT 781 DSYMUTIL 782 MANIFEST_TOOL 783 RANLIB 784 ac_ct_AR 785 AR 786 DLLTOOL 787 OBJDUMP 788 FILECMD 789 LN_S 790 NM 791 ac_ct_DUMPBIN 792 DUMPBIN 793 LD 794 FGREP 795 EGREP 796 GREP 797 SED 798 am__fastdepCC_FALSE 799 am__fastdepCC_TRUE 800 CCDEPMODE 801 am__nodep 802 AMDEPBACKSLASH 803 AMDEP_FALSE 804 AMDEP_TRUE 805 am__include 806 DEPDIR 807 OBJEXT 808 EXEEXT 809 ac_ct_CC 810 CPPFLAGS 811 LDFLAGS 812 CFLAGS 813 CC 814 host_os 815 host_vendor 816 host_cpu 817 host 818 build_os 819 build_vendor 820 build_cpu 821 build 822 LIBTOOL 823 am__xargs_n 824 am__rm_f_notfound 825 AM_BACKSLASH 826 AM_DEFAULT_VERBOSITY 827 AM_DEFAULT_V 828 AM_V 829 CSCOPE 830 ETAGS 831 CTAGS 832 am__untar 833 am__tar 834 AMTAR 835 am__leading_dot 836 SET_MAKE 837 AWK 838 mkdir_p 839 MKDIR_P 840 INSTALL_STRIP_PROGRAM 841 STRIP 842 install_sh 843 MAKEINFO 844 AUTOHEADER 845 AUTOMAKE 846 AUTOCONF 847 ACLOCAL 848 VERSION 849 PACKAGE 850 CYGPATH_W 851 am__isrc 852 INSTALL_DATA 853 INSTALL_SCRIPT 854 INSTALL_PROGRAM 855 target_alias 856 host_alias 857 build_alias 858 LIBS 859 ECHO_T 860 ECHO_N 861 ECHO_C 862 DEFS 863 mandir 864 localedir 865 libdir 866 psdir 867 pdfdir 868 dvidir 869 htmldir 870 infodir 871 docdir 872 oldincludedir 873 includedir 874 runstatedir 875 localstatedir 876 sharedstatedir 877 sysconfdir 878 datadir 879 datarootdir 880 libexecdir 881 sbindir 882 bindir 883 program_transform_name 884 prefix 885 exec_prefix 886 PACKAGE_URL 887 PACKAGE_BUGREPORT 888 PACKAGE_STRING 889 PACKAGE_VERSION 890 PACKAGE_TARNAME 891 PACKAGE_NAME 892 PATH_SEPARATOR 893 SHELL 894 am__quote' 895 ac_subst_files='' 896 ac_user_opts=' 897 enable_option_checking 898 enable_silent_rules 899 enable_shared 900 enable_static 901 enable_pic 902 with_pic 903 enable_fast_install 904 enable_aix_soname 905 with_aix_soname 906 enable_dependency_tracking 907 with_gnu_ld 908 with_sysroot 909 enable_libtool_lock 910 enable_selective_werror 911 enable_strict_compilation 912 enable_docs 913 enable_specs 914 with_xmlto 915 with_fop 916 with_xsltproc 917 with_asciidoc 918 enable_malloc0returnsnull 919 ' 920 ac_precious_vars='build_alias 921 host_alias 922 target_alias 923 CC 924 CFLAGS 925 LDFLAGS 926 LIBS 927 CPPFLAGS 928 LT_SYS_LIBRARY_PATH 929 PKG_CONFIG 930 PKG_CONFIG_PATH 931 PKG_CONFIG_LIBDIR 932 XMLTO 933 FOP 934 XSLTPROC 935 ASCIIDOC 936 XI_CFLAGS 937 XI_LIBS 938 XFIXES_CFLAGS 939 XFIXES_LIBS' 940 941 942 # Initialize some variables set by options. 943 ac_init_help= 944 ac_init_version=false 945 ac_unrecognized_opts= 946 ac_unrecognized_sep= 947 # The variables have the same names as the options, with 948 # dashes changed to underlines. 949 cache_file=/dev/null 950 exec_prefix=NONE 951 no_create= 952 no_recursion= 953 prefix=NONE 954 program_prefix=NONE 955 program_suffix=NONE 956 program_transform_name=s,x,x, 957 silent= 958 site= 959 srcdir= 960 verbose= 961 x_includes=NONE 962 x_libraries=NONE 963 964 # Installation directory options. 965 # These are left unexpanded so users can "make install exec_prefix=/foo" 966 # and all the variables that are supposed to be based on exec_prefix 967 # by default will actually change. 968 # Use braces instead of parens because sh, perl, etc. also accept them. 969 # (The list follows the same order as the GNU Coding Standards.) 970 bindir='${exec_prefix}/bin' 971 sbindir='${exec_prefix}/sbin' 972 libexecdir='${exec_prefix}/libexec' 973 datarootdir='${prefix}/share' 974 datadir='${datarootdir}' 975 sysconfdir='${prefix}/etc' 976 sharedstatedir='${prefix}/com' 977 localstatedir='${prefix}/var' 978 runstatedir='${localstatedir}/run' 979 includedir='${prefix}/include' 980 oldincludedir='/usr/include' 981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 982 infodir='${datarootdir}/info' 983 htmldir='${docdir}' 984 dvidir='${docdir}' 985 pdfdir='${docdir}' 986 psdir='${docdir}' 987 libdir='${exec_prefix}/lib' 988 localedir='${datarootdir}/locale' 989 mandir='${datarootdir}/man' 990 991 ac_prev= 992 ac_dashdash= 993 for ac_option 994 do 995 # If the previous option needs an argument, assign it. 996 if test -n "$ac_prev"; then 997 eval $ac_prev=\$ac_option 998 ac_prev= 999 continue 1000 fi 1001 1002 case $ac_option in 1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1004 *=) ac_optarg= ;; 1005 *) ac_optarg=yes ;; 1006 esac 1007 1008 case $ac_dashdash$ac_option in 1009 --) 1010 ac_dashdash=yes ;; 1011 1012 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1013 ac_prev=bindir ;; 1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1015 bindir=$ac_optarg ;; 1016 1017 -build | --build | --buil | --bui | --bu) 1018 ac_prev=build_alias ;; 1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1020 build_alias=$ac_optarg ;; 1021 1022 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1024 ac_prev=cache_file ;; 1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1027 cache_file=$ac_optarg ;; 1028 1029 --config-cache | -C) 1030 cache_file=config.cache ;; 1031 1032 -datadir | --datadir | --datadi | --datad) 1033 ac_prev=datadir ;; 1034 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1035 datadir=$ac_optarg ;; 1036 1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1038 | --dataroo | --dataro | --datar) 1039 ac_prev=datarootdir ;; 1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1042 datarootdir=$ac_optarg ;; 1043 1044 -disable-* | --disable-*) 1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1046 # Reject names that are not valid shell variable names. 1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1048 as_fn_error $? "invalid feature name: '$ac_useropt'" 1049 ac_useropt_orig=$ac_useropt 1050 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1051 case $ac_user_opts in 1052 *" 1053 "enable_$ac_useropt" 1054 "*) ;; 1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1056 ac_unrecognized_sep=', ';; 1057 esac 1058 eval enable_$ac_useropt=no ;; 1059 1060 -docdir | --docdir | --docdi | --doc | --do) 1061 ac_prev=docdir ;; 1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1063 docdir=$ac_optarg ;; 1064 1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1066 ac_prev=dvidir ;; 1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1068 dvidir=$ac_optarg ;; 1069 1070 -enable-* | --enable-*) 1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 as_fn_error $? "invalid feature name: '$ac_useropt'" 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079 "enable_$ac_useropt" 1080 "*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=\$ac_optarg ;; 1085 1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1088 | --exec | --exe | --ex) 1089 ac_prev=exec_prefix ;; 1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1092 | --exec=* | --exe=* | --ex=*) 1093 exec_prefix=$ac_optarg ;; 1094 1095 -gas | --gas | --ga | --g) 1096 # Obsolete; use --with-gas. 1097 with_gas=yes ;; 1098 1099 -help | --help | --hel | --he | -h) 1100 ac_init_help=long ;; 1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1102 ac_init_help=recursive ;; 1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1104 ac_init_help=short ;; 1105 1106 -host | --host | --hos | --ho) 1107 ac_prev=host_alias ;; 1108 -host=* | --host=* | --hos=* | --ho=*) 1109 host_alias=$ac_optarg ;; 1110 1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1112 ac_prev=htmldir ;; 1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1114 | --ht=*) 1115 htmldir=$ac_optarg ;; 1116 1117 -includedir | --includedir | --includedi | --included | --include \ 1118 | --includ | --inclu | --incl | --inc) 1119 ac_prev=includedir ;; 1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1121 | --includ=* | --inclu=* | --incl=* | --inc=*) 1122 includedir=$ac_optarg ;; 1123 1124 -infodir | --infodir | --infodi | --infod | --info | --inf) 1125 ac_prev=infodir ;; 1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1127 infodir=$ac_optarg ;; 1128 1129 -libdir | --libdir | --libdi | --libd) 1130 ac_prev=libdir ;; 1131 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1132 libdir=$ac_optarg ;; 1133 1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1135 | --libexe | --libex | --libe) 1136 ac_prev=libexecdir ;; 1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1138 | --libexe=* | --libex=* | --libe=*) 1139 libexecdir=$ac_optarg ;; 1140 1141 -localedir | --localedir | --localedi | --localed | --locale) 1142 ac_prev=localedir ;; 1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1144 localedir=$ac_optarg ;; 1145 1146 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1147 | --localstate | --localstat | --localsta | --localst | --locals) 1148 ac_prev=localstatedir ;; 1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1151 localstatedir=$ac_optarg ;; 1152 1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1154 ac_prev=mandir ;; 1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1156 mandir=$ac_optarg ;; 1157 1158 -nfp | --nfp | --nf) 1159 # Obsolete; use --without-fp. 1160 with_fp=no ;; 1161 1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1163 | --no-cr | --no-c | -n) 1164 no_create=yes ;; 1165 1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1168 no_recursion=yes ;; 1169 1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1172 | --oldin | --oldi | --old | --ol | --o) 1173 ac_prev=oldincludedir ;; 1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1177 oldincludedir=$ac_optarg ;; 1178 1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1180 ac_prev=prefix ;; 1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1182 prefix=$ac_optarg ;; 1183 1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1185 | --program-pre | --program-pr | --program-p) 1186 ac_prev=program_prefix ;; 1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1189 program_prefix=$ac_optarg ;; 1190 1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1192 | --program-suf | --program-su | --program-s) 1193 ac_prev=program_suffix ;; 1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1196 program_suffix=$ac_optarg ;; 1197 1198 -program-transform-name | --program-transform-name \ 1199 | --program-transform-nam | --program-transform-na \ 1200 | --program-transform-n | --program-transform- \ 1201 | --program-transform | --program-transfor \ 1202 | --program-transfo | --program-transf \ 1203 | --program-trans | --program-tran \ 1204 | --progr-tra | --program-tr | --program-t) 1205 ac_prev=program_transform_name ;; 1206 -program-transform-name=* | --program-transform-name=* \ 1207 | --program-transform-nam=* | --program-transform-na=* \ 1208 | --program-transform-n=* | --program-transform-=* \ 1209 | --program-transform=* | --program-transfor=* \ 1210 | --program-transfo=* | --program-transf=* \ 1211 | --program-trans=* | --program-tran=* \ 1212 | --progr-tra=* | --program-tr=* | --program-t=*) 1213 program_transform_name=$ac_optarg ;; 1214 1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1216 ac_prev=pdfdir ;; 1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1218 pdfdir=$ac_optarg ;; 1219 1220 -psdir | --psdir | --psdi | --psd | --ps) 1221 ac_prev=psdir ;; 1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1223 psdir=$ac_optarg ;; 1224 1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1226 | -silent | --silent | --silen | --sile | --sil) 1227 silent=yes ;; 1228 1229 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1230 | --runstate | --runstat | --runsta | --runst | --runs \ 1231 | --run | --ru | --r) 1232 ac_prev=runstatedir ;; 1233 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1234 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1235 | --run=* | --ru=* | --r=*) 1236 runstatedir=$ac_optarg ;; 1237 1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1239 ac_prev=sbindir ;; 1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1241 | --sbi=* | --sb=*) 1242 sbindir=$ac_optarg ;; 1243 1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1246 | --sharedst | --shareds | --shared | --share | --shar \ 1247 | --sha | --sh) 1248 ac_prev=sharedstatedir ;; 1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1252 | --sha=* | --sh=*) 1253 sharedstatedir=$ac_optarg ;; 1254 1255 -site | --site | --sit) 1256 ac_prev=site ;; 1257 -site=* | --site=* | --sit=*) 1258 site=$ac_optarg ;; 1259 1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1261 ac_prev=srcdir ;; 1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1263 srcdir=$ac_optarg ;; 1264 1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1266 | --syscon | --sysco | --sysc | --sys | --sy) 1267 ac_prev=sysconfdir ;; 1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1270 sysconfdir=$ac_optarg ;; 1271 1272 -target | --target | --targe | --targ | --tar | --ta | --t) 1273 ac_prev=target_alias ;; 1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1275 target_alias=$ac_optarg ;; 1276 1277 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1278 verbose=yes ;; 1279 1280 -version | --version | --versio | --versi | --vers | -V) 1281 ac_init_version=: ;; 1282 1283 -with-* | --with-*) 1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1287 as_fn_error $? "invalid package name: '$ac_useropt'" 1288 ac_useropt_orig=$ac_useropt 1289 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1290 case $ac_user_opts in 1291 *" 1292 "with_$ac_useropt" 1293 "*) ;; 1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1295 ac_unrecognized_sep=', ';; 1296 esac 1297 eval with_$ac_useropt=\$ac_optarg ;; 1298 1299 -without-* | --without-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 as_fn_error $? "invalid package name: '$ac_useropt'" 1304 ac_useropt_orig=$ac_useropt 1305 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1306 case $ac_user_opts in 1307 *" 1308 "with_$ac_useropt" 1309 "*) ;; 1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1311 ac_unrecognized_sep=', ';; 1312 esac 1313 eval with_$ac_useropt=no ;; 1314 1315 --x) 1316 # Obsolete; use --with-x. 1317 with_x=yes ;; 1318 1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1320 | --x-incl | --x-inc | --x-in | --x-i) 1321 ac_prev=x_includes ;; 1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1324 x_includes=$ac_optarg ;; 1325 1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1328 ac_prev=x_libraries ;; 1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1331 x_libraries=$ac_optarg ;; 1332 1333 -*) as_fn_error $? "unrecognized option: '$ac_option' 1334 Try '$0 --help' for more information" 1335 ;; 1336 1337 *=*) 1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1339 # Reject names that are not valid shell variable names. 1340 case $ac_envvar in #( 1341 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1342 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1343 esac 1344 eval $ac_envvar=\$ac_optarg 1345 export $ac_envvar ;; 1346 1347 *) 1348 # FIXME: should be removed in autoconf 3.0. 1349 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1351 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1353 ;; 1354 1355 esac 1356 done 1357 1358 if test -n "$ac_prev"; then 1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1360 as_fn_error $? "missing argument to $ac_option" 1361 fi 1362 1363 if test -n "$ac_unrecognized_opts"; then 1364 case $enable_option_checking in 1365 no) ;; 1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1367 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1368 esac 1369 fi 1370 1371 # Check all directory arguments for consistency. 1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1373 datadir sysconfdir sharedstatedir localstatedir includedir \ 1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1375 libdir localedir mandir runstatedir 1376 do 1377 eval ac_val=\$$ac_var 1378 # Remove trailing slashes. 1379 case $ac_val in 1380 */ ) 1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1382 eval $ac_var=\$ac_val;; 1383 esac 1384 # Be sure to have absolute directory names. 1385 case $ac_val in 1386 [\\/$]* | ?:[\\/]* ) continue;; 1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1388 esac 1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1390 done 1391 1392 # There might be people who depend on the old broken behavior: '$host' 1393 # used to hold the argument of --host etc. 1394 # FIXME: To remove some day. 1395 build=$build_alias 1396 host=$host_alias 1397 target=$target_alias 1398 1399 # FIXME: To remove some day. 1400 if test "x$host_alias" != x; then 1401 if test "x$build_alias" = x; then 1402 cross_compiling=maybe 1403 elif test "x$build_alias" != "x$host_alias"; then 1404 cross_compiling=yes 1405 fi 1406 fi 1407 1408 ac_tool_prefix= 1409 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1410 1411 test "$silent" = yes && exec 6>/dev/null 1412 1413 1414 ac_pwd=`pwd` && test -n "$ac_pwd" && 1415 ac_ls_di=`ls -di .` && 1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1417 as_fn_error $? "working directory cannot be determined" 1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1419 as_fn_error $? "pwd does not report name of working directory" 1420 1421 1422 # Find the source files, if location was not specified. 1423 if test -z "$srcdir"; then 1424 ac_srcdir_defaulted=yes 1425 # Try the directory containing this script, then the parent directory. 1426 ac_confdir=`$as_dirname -- "$as_myself" || 1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1428 X"$as_myself" : 'X\(//\)[^/]' \| \ 1429 X"$as_myself" : 'X\(//\)$' \| \ 1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1431 printf "%s\n" X"$as_myself" | 1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)[^/].*/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\/\)$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\).*/{ 1445 s//\1/ 1446 q 1447 } 1448 s/.*/./; q'` 1449 srcdir=$ac_confdir 1450 if test ! -r "$srcdir/$ac_unique_file"; then 1451 srcdir=.. 1452 fi 1453 else 1454 ac_srcdir_defaulted=no 1455 fi 1456 if test ! -r "$srcdir/$ac_unique_file"; then 1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1459 fi 1460 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1461 ac_abs_confdir=`( 1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1463 pwd)` 1464 # When building in place, set srcdir=. 1465 if test "$ac_abs_confdir" = "$ac_pwd"; then 1466 srcdir=. 1467 fi 1468 # Remove unnecessary trailing slashes from srcdir. 1469 # Double slashes in file names in object file debugging info 1470 # mess up M-x gdb in Emacs. 1471 case $srcdir in 1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1473 esac 1474 for ac_var in $ac_precious_vars; do 1475 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1476 eval ac_env_${ac_var}_value=\$${ac_var} 1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1479 done 1480 1481 # 1482 # Report the --help message. 1483 # 1484 if test "$ac_init_help" = "long"; then 1485 # Omit some internal or obsolete options to make the list less imposing. 1486 # This message is too long to be a string in the A/UX 3.1 sh. 1487 cat <<_ACEOF 1488 'configure' configures libXi 1.8.3 to adapt to many kinds of systems. 1489 1490 Usage: $0 [OPTION]... [VAR=VALUE]... 1491 1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1493 VAR=VALUE. See below for descriptions of some of the useful variables. 1494 1495 Defaults for the options are specified in brackets. 1496 1497 Configuration: 1498 -h, --help display this help and exit 1499 --help=short display options specific to this package 1500 --help=recursive display the short help of all the included packages 1501 -V, --version display version information and exit 1502 -q, --quiet, --silent do not print 'checking ...' messages 1503 --cache-file=FILE cache test results in FILE [disabled] 1504 -C, --config-cache alias for '--cache-file=config.cache' 1505 -n, --no-create do not create output files 1506 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1507 1508 Installation directories: 1509 --prefix=PREFIX install architecture-independent files in PREFIX 1510 [$ac_default_prefix] 1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1512 [PREFIX] 1513 1514 By default, 'make install' will install all the files in 1515 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1516 an installation prefix other than '$ac_default_prefix' using '--prefix', 1517 for instance '--prefix=\$HOME'. 1518 1519 For better control, use the options below. 1520 1521 Fine tuning of the installation directories: 1522 --bindir=DIR user executables [EPREFIX/bin] 1523 --sbindir=DIR system admin executables [EPREFIX/sbin] 1524 --libexecdir=DIR program executables [EPREFIX/libexec] 1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1528 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1529 --libdir=DIR object code libraries [EPREFIX/lib] 1530 --includedir=DIR C header files [PREFIX/include] 1531 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1534 --infodir=DIR info documentation [DATAROOTDIR/info] 1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1536 --mandir=DIR man documentation [DATAROOTDIR/man] 1537 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1538 --htmldir=DIR html documentation [DOCDIR] 1539 --dvidir=DIR dvi documentation [DOCDIR] 1540 --pdfdir=DIR pdf documentation [DOCDIR] 1541 --psdir=DIR ps documentation [DOCDIR] 1542 _ACEOF 1543 1544 cat <<\_ACEOF 1545 1546 Program names: 1547 --program-prefix=PREFIX prepend PREFIX to installed program names 1548 --program-suffix=SUFFIX append SUFFIX to installed program names 1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1550 1551 System types: 1552 --build=BUILD configure for building on BUILD [guessed] 1553 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1554 _ACEOF 1555 fi 1556 1557 if test -n "$ac_init_help"; then 1558 case $ac_init_help in 1559 short | recursive ) echo "Configuration of libXi 1.8.3:";; 1560 esac 1561 cat <<\_ACEOF 1562 1563 Optional Features: 1564 --disable-option-checking ignore unrecognized --enable/--with options 1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1567 --enable-silent-rules less verbose build output (undo: "make V=1") 1568 --disable-silent-rules verbose build output (undo: "make V=0") 1569 --enable-shared[=PKGS] build shared libraries [default=yes] 1570 --enable-static[=PKGS] build static libraries [default=yes] 1571 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1572 both] 1573 --enable-fast-install[=PKGS] 1574 optimize for fast installation [default=yes] 1575 --enable-aix-soname=aix|svr4|both 1576 shared library versioning (aka "SONAME") variant to 1577 provide on AIX, [default=aix]. 1578 --enable-dependency-tracking 1579 do not reject slow dependency extractors 1580 --disable-dependency-tracking 1581 speeds up one-time build 1582 --disable-libtool-lock avoid locking (might break parallel builds) 1583 --disable-selective-werror 1584 Turn off selective compiler errors. (default: 1585 enabled) 1586 --enable-strict-compilation 1587 Enable all warnings from compiler and make them 1588 errors (default: disabled) 1589 --enable-docs Enable building the documentation (default: yes) 1590 --enable-specs Enable building the specs (default: yes) 1591 --enable-malloc0returnsnull 1592 assume malloc(0) can return NULL (default: yes) 1593 1594 Optional Packages: 1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1598 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1599 compiler's sysroot if not specified). 1600 --with-xmlto Use xmlto to regenerate documentation (default: 1601 auto) 1602 --with-fop Use fop to regenerate documentation (default: auto) 1603 --with-xsltproc Use xsltproc for the transformation of XML documents 1604 (default: auto) 1605 --with-asciidoc Use asciidoc to regenerate documentation (default: 1606 auto) 1607 1608 Some influential environment variables: 1609 CC C compiler command 1610 CFLAGS C compiler flags 1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1612 nonstandard directory <lib dir> 1613 LIBS libraries to pass to the linker, e.g. -l<library> 1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1615 you have headers in a nonstandard directory <include dir> 1616 LT_SYS_LIBRARY_PATH 1617 User-defined run-time library search path. 1618 PKG_CONFIG path to pkg-config utility 1619 PKG_CONFIG_PATH 1620 directories to add to pkg-config's search path 1621 PKG_CONFIG_LIBDIR 1622 path overriding pkg-config's built-in search path 1623 XMLTO Path to xmlto command 1624 FOP Path to fop command 1625 XSLTPROC Path to xsltproc command 1626 ASCIIDOC Path to asciidoc command 1627 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1628 XI_LIBS linker flags for XI, overriding pkg-config 1629 XFIXES_CFLAGS 1630 C compiler flags for XFIXES, overriding pkg-config 1631 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1632 1633 Use these variables to override the choices made by 'configure' or to help 1634 it to find libraries and programs with nonstandard names/locations. 1635 1636 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>. 1637 _ACEOF 1638 ac_status=$? 1639 fi 1640 1641 if test "$ac_init_help" = "recursive"; then 1642 # If there are subdirs, report their specific --help. 1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1644 test -d "$ac_dir" || 1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1646 continue 1647 ac_builddir=. 1648 1649 case "$ac_dir" in 1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) 1652 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1653 # A ".." for each directory in $ac_dir_suffix. 1654 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1655 case $ac_top_builddir_sub in 1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1658 esac ;; 1659 esac 1660 ac_abs_top_builddir=$ac_pwd 1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1662 # for backward compatibility: 1663 ac_top_builddir=$ac_top_build_prefix 1664 1665 case $srcdir in 1666 .) # We are building in place. 1667 ac_srcdir=. 1668 ac_top_srcdir=$ac_top_builddir_sub 1669 ac_abs_top_srcdir=$ac_pwd ;; 1670 [\\/]* | ?:[\\/]* ) # Absolute name. 1671 ac_srcdir=$srcdir$ac_dir_suffix; 1672 ac_top_srcdir=$srcdir 1673 ac_abs_top_srcdir=$srcdir ;; 1674 *) # Relative name. 1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1676 ac_top_srcdir=$ac_top_build_prefix$srcdir 1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1678 esac 1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1680 1681 cd "$ac_dir" || { ac_status=$?; continue; } 1682 # Check for configure.gnu first; this name is used for a wrapper for 1683 # Metaconfig's "Configure" on case-insensitive file systems. 1684 if test -f "$ac_srcdir/configure.gnu"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1687 elif test -f "$ac_srcdir/configure"; then 1688 echo && 1689 $SHELL "$ac_srcdir/configure" --help=recursive 1690 else 1691 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1692 fi || ac_status=$? 1693 cd "$ac_pwd" || { ac_status=$?; break; } 1694 done 1695 fi 1696 1697 test -n "$ac_init_help" && exit $ac_status 1698 if $ac_init_version; then 1699 cat <<\_ACEOF 1700 libXi configure 1.8.3 1701 generated by GNU Autoconf 2.72 1702 1703 Copyright (C) 2023 Free Software Foundation, Inc. 1704 This configure script is free software; the Free Software Foundation 1705 gives unlimited permission to copy, distribute and modify it. 1706 _ACEOF 1707 exit 1708 fi 1709 1710 ## ------------------------ ## 1711 ## Autoconf initialization. ## 1712 ## ------------------------ ## 1713 1714 # ac_fn_c_try_compile LINENO 1715 # -------------------------- 1716 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1717 ac_fn_c_try_compile () 1718 { 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest.beam 1721 if { { ac_try="$ac_compile" 1722 case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725 esac 1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727 printf "%s\n" "$ac_try_echo"; } >&5 1728 (eval "$ac_compile") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { 1737 test -z "$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 } && test -s conftest.$ac_objext 1740 then : 1741 ac_retval=0 1742 else case e in #( 1743 e) printf "%s\n" "$as_me: failed program was:" >&5 1744 sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 ;; 1747 esac 1748 fi 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752 } # ac_fn_c_try_compile 1753 1754 # ac_fn_c_try_link LINENO 1755 # ----------------------- 1756 # Try to link conftest.$ac_ext, and return whether this succeeded. 1757 ac_fn_c_try_link () 1758 { 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1761 if { { ac_try="$ac_link" 1762 case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765 esac 1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767 printf "%s\n" "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>conftest.err 1769 ac_status=$? 1770 if test -s conftest.err; then 1771 grep -v '^ *+' conftest.err >conftest.er1 1772 cat conftest.er1 >&5 1773 mv -f conftest.er1 conftest.err 1774 fi 1775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { 1777 test -z "$ac_c_werror_flag" || 1778 test ! -s conftest.err 1779 } && test -s conftest$ac_exeext && { 1780 test "$cross_compiling" = yes || 1781 test -x conftest$ac_exeext 1782 } 1783 then : 1784 ac_retval=0 1785 else case e in #( 1786 e) printf "%s\n" "$as_me: failed program was:" >&5 1787 sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 ac_retval=1 ;; 1790 esac 1791 fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800 } # ac_fn_c_try_link 1801 1802 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1803 # ------------------------------------------------------- 1804 # Tests whether HEADER exists and can be compiled using the include files in 1805 # INCLUDES, setting the cache variable VAR accordingly. 1806 ac_fn_c_check_header_compile () 1807 { 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810 printf %s "checking for $2... " >&6; } 1811 if eval test \${$3+y} 1812 then : 1813 printf %s "(cached) " >&6 1814 else case e in #( 1815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816 /* end confdefs.h. */ 1817 $4 1818 #include <$2> 1819 _ACEOF 1820 if ac_fn_c_try_compile "$LINENO" 1821 then : 1822 eval "$3=yes" 1823 else case e in #( 1824 e) eval "$3=no" ;; 1825 esac 1826 fi 1827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1828 esac 1829 fi 1830 eval ac_res=\$$3 1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1832 printf "%s\n" "$ac_res" >&6; } 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 1835 } # ac_fn_c_check_header_compile 1836 1837 # ac_fn_c_check_func LINENO FUNC VAR 1838 # ---------------------------------- 1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1840 ac_fn_c_check_func () 1841 { 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844 printf %s "checking for $2... " >&6; } 1845 if eval test \${$3+y} 1846 then : 1847 printf %s "(cached) " >&6 1848 else case e in #( 1849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1850 /* end confdefs.h. */ 1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1853 #define $2 innocuous_$2 1854 1855 /* System header to define __stub macros and hopefully few prototypes, 1856 which can conflict with char $2 (void); below. */ 1857 1858 #include <limits.h> 1859 #undef $2 1860 1861 /* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864 #ifdef __cplusplus 1865 extern "C" 1866 #endif 1867 char $2 (void); 1868 /* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871 #if defined __stub_$2 || defined __stub___$2 1872 choke me 1873 #endif 1874 1875 int 1876 main (void) 1877 { 1878 return $2 (); 1879 ; 1880 return 0; 1881 } 1882 _ACEOF 1883 if ac_fn_c_try_link "$LINENO" 1884 then : 1885 eval "$3=yes" 1886 else case e in #( 1887 e) eval "$3=no" ;; 1888 esac 1889 fi 1890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1891 conftest$ac_exeext conftest.$ac_ext ;; 1892 esac 1893 fi 1894 eval ac_res=\$$3 1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896 printf "%s\n" "$ac_res" >&6; } 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899 } # ac_fn_c_check_func 1900 1901 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1902 # ------------------------------------------------------------------ 1903 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1904 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1905 ac_fn_check_decl () 1906 { 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 as_decl_name=`echo $2|sed 's/ *(.*//'` 1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1910 printf %s "checking whether $as_decl_name is declared... " >&6; } 1911 if eval test \${$3+y} 1912 then : 1913 printf %s "(cached) " >&6 1914 else case e in #( 1915 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1916 eval ac_save_FLAGS=\$$6 1917 as_fn_append $6 " $5" 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919 /* end confdefs.h. */ 1920 $4 1921 int 1922 main (void) 1923 { 1924 #ifndef $as_decl_name 1925 #ifdef __cplusplus 1926 (void) $as_decl_use; 1927 #else 1928 (void) $as_decl_name; 1929 #endif 1930 #endif 1931 1932 ; 1933 return 0; 1934 } 1935 _ACEOF 1936 if ac_fn_c_try_compile "$LINENO" 1937 then : 1938 eval "$3=yes" 1939 else case e in #( 1940 e) eval "$3=no" ;; 1941 esac 1942 fi 1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1944 eval $6=\$ac_save_FLAGS 1945 ;; 1946 esac 1947 fi 1948 eval ac_res=\$$3 1949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950 printf "%s\n" "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953 } # ac_fn_check_decl 1954 ac_configure_args_raw= 1955 for ac_arg 1956 do 1957 case $ac_arg in 1958 *\'*) 1959 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1960 esac 1961 as_fn_append ac_configure_args_raw " '$ac_arg'" 1962 done 1963 1964 case $ac_configure_args_raw in 1965 *$as_nl*) 1966 ac_safe_unquote= ;; 1967 *) 1968 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1969 ac_unsafe_a="$ac_unsafe_z#~" 1970 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1971 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1972 esac 1973 1974 cat >config.log <<_ACEOF 1975 This file contains any messages produced by compilers while 1976 running configure, to aid debugging if configure makes a mistake. 1977 1978 It was created by libXi $as_me 1.8.3, which was 1979 generated by GNU Autoconf 2.72. Invocation command line was 1980 1981 $ $0$ac_configure_args_raw 1982 1983 _ACEOF 1984 exec 5>>config.log 1985 { 1986 cat <<_ASUNAME 1987 ## --------- ## 1988 ## Platform. ## 1989 ## --------- ## 1990 1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1992 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1993 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1994 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1995 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1996 1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1999 2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2007 2008 _ASUNAME 2009 2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011 for as_dir in $PATH 2012 do 2013 IFS=$as_save_IFS 2014 case $as_dir in #((( 2015 '') as_dir=./ ;; 2016 */) ;; 2017 *) as_dir=$as_dir/ ;; 2018 esac 2019 printf "%s\n" "PATH: $as_dir" 2020 done 2021 IFS=$as_save_IFS 2022 2023 } >&5 2024 2025 cat >&5 <<_ACEOF 2026 2027 2028 ## ----------- ## 2029 ## Core tests. ## 2030 ## ----------- ## 2031 2032 _ACEOF 2033 2034 2035 # Keep a trace of the command line. 2036 # Strip out --no-create and --no-recursion so they do not pile up. 2037 # Strip out --silent because we don't want to record it for future runs. 2038 # Also quote any args containing shell meta-characters. 2039 # Make two passes to allow for proper duplicate-argument suppression. 2040 ac_configure_args= 2041 ac_configure_args0= 2042 ac_configure_args1= 2043 ac_must_keep_next=false 2044 for ac_pass in 1 2 2045 do 2046 for ac_arg 2047 do 2048 case $ac_arg in 2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2051 | -silent | --silent | --silen | --sile | --sil) 2052 continue ;; 2053 *\'*) 2054 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2055 esac 2056 case $ac_pass in 2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2058 2) 2059 as_fn_append ac_configure_args1 " '$ac_arg'" 2060 if test $ac_must_keep_next = true; then 2061 ac_must_keep_next=false # Got value, back to normal. 2062 else 2063 case $ac_arg in 2064 *=* | --config-cache | -C | -disable-* | --disable-* \ 2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2067 | -with-* | --with-* | -without-* | --without-* | --x) 2068 case "$ac_configure_args0 " in 2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2070 esac 2071 ;; 2072 -* ) ac_must_keep_next=true ;; 2073 esac 2074 fi 2075 as_fn_append ac_configure_args " '$ac_arg'" 2076 ;; 2077 esac 2078 done 2079 done 2080 { ac_configure_args0=; unset ac_configure_args0;} 2081 { ac_configure_args1=; unset ac_configure_args1;} 2082 2083 # When interrupted or exit'd, cleanup temporary files, and complete 2084 # config.log. We remove comments because anyway the quotes in there 2085 # would cause problems or look ugly. 2086 # WARNING: Use '\'' to represent an apostrophe within the trap. 2087 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2088 trap 'exit_status=$? 2089 # Sanitize IFS. 2090 IFS=" "" $as_nl" 2091 # Save into config.log some information that might help in debugging. 2092 { 2093 echo 2094 2095 printf "%s\n" "## ---------------- ## 2096 ## Cache variables. ## 2097 ## ---------------- ##" 2098 echo 2099 # The following way of writing the cache mishandles newlines in values, 2100 ( 2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2102 eval ac_val=\$$ac_var 2103 case $ac_val in #( 2104 *${as_nl}*) 2105 case $ac_var in #( 2106 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2107 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2108 esac 2109 case $ac_var in #( 2110 _ | IFS | as_nl) ;; #( 2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2112 *) { eval $ac_var=; unset $ac_var;} ;; 2113 esac ;; 2114 esac 2115 done 2116 (set) 2>&1 | 2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2118 *${as_nl}ac_space=\ *) 2119 sed -n \ 2120 "s/'\''/'\''\\\\'\'''\''/g; 2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2122 ;; #( 2123 *) 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2125 ;; 2126 esac | 2127 sort 2128 ) 2129 echo 2130 2131 printf "%s\n" "## ----------------- ## 2132 ## Output variables. ## 2133 ## ----------------- ##" 2134 echo 2135 for ac_var in $ac_subst_vars 2136 do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in 2139 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2140 esac 2141 printf "%s\n" "$ac_var='\''$ac_val'\''" 2142 done | sort 2143 echo 2144 2145 if test -n "$ac_subst_files"; then 2146 printf "%s\n" "## ------------------- ## 2147 ## File substitutions. ## 2148 ## ------------------- ##" 2149 echo 2150 for ac_var in $ac_subst_files 2151 do 2152 eval ac_val=\$$ac_var 2153 case $ac_val in 2154 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2155 esac 2156 printf "%s\n" "$ac_var='\''$ac_val'\''" 2157 done | sort 2158 echo 2159 fi 2160 2161 if test -s confdefs.h; then 2162 printf "%s\n" "## ----------- ## 2163 ## confdefs.h. ## 2164 ## ----------- ##" 2165 echo 2166 cat confdefs.h 2167 echo 2168 fi 2169 test "$ac_signal" != 0 && 2170 printf "%s\n" "$as_me: caught signal $ac_signal" 2171 printf "%s\n" "$as_me: exit $exit_status" 2172 } >&5 2173 rm -f core *.core core.conftest.* && 2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2175 exit $exit_status 2176 ' 0 2177 for ac_signal in 1 2 13 15; do 2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2179 done 2180 ac_signal=0 2181 2182 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2183 rm -f -r conftest* confdefs.h 2184 2185 printf "%s\n" "/* confdefs.h */" > confdefs.h 2186 2187 # Predefined preprocessor variables. 2188 2189 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2190 2191 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2192 2193 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2194 2195 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2196 2197 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2198 2199 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2200 2201 2202 # Let the site file select an alternate cache file if it wants to. 2203 # Prefer an explicitly selected file to automatically selected ones. 2204 if test -n "$CONFIG_SITE"; then 2205 ac_site_files="$CONFIG_SITE" 2206 elif test "x$prefix" != xNONE; then 2207 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2208 else 2209 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2210 fi 2211 2212 for ac_site_file in $ac_site_files 2213 do 2214 case $ac_site_file in #( 2215 */*) : 2216 ;; #( 2217 *) : 2218 ac_site_file=./$ac_site_file ;; 2219 esac 2220 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2222 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2223 sed 's/^/| /' "$ac_site_file" >&5 2224 . "$ac_site_file" \ 2225 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2226 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2227 as_fn_error $? "failed to load site script $ac_site_file 2228 See 'config.log' for more details" "$LINENO" 5; } 2229 fi 2230 done 2231 2232 if test -r "$cache_file"; then 2233 # Some versions of bash will fail to source /dev/null (special files 2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2237 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2238 case $cache_file in 2239 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2240 *) . "./$cache_file";; 2241 esac 2242 fi 2243 else 2244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2245 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2246 >$cache_file 2247 fi 2248 2249 # Test code for whether the C compiler supports C89 (global declarations) 2250 ac_c_conftest_c89_globals=' 2251 /* Does the compiler advertise C89 conformance? 2252 Do not test the value of __STDC__, because some compilers set it to 0 2253 while being otherwise adequately conformant. */ 2254 #if !defined __STDC__ 2255 # error "Compiler does not advertise C89 conformance" 2256 #endif 2257 2258 #include <stddef.h> 2259 #include <stdarg.h> 2260 struct stat; 2261 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2262 struct buf { int x; }; 2263 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2264 static char *e (char **p, int i) 2265 { 2266 return p[i]; 2267 } 2268 static char *f (char * (*g) (char **, int), char **p, ...) 2269 { 2270 char *s; 2271 va_list v; 2272 va_start (v,p); 2273 s = g (p, va_arg (v,int)); 2274 va_end (v); 2275 return s; 2276 } 2277 2278 /* C89 style stringification. */ 2279 #define noexpand_stringify(a) #a 2280 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2281 2282 /* C89 style token pasting. Exercises some of the corner cases that 2283 e.g. old MSVC gets wrong, but not very hard. */ 2284 #define noexpand_concat(a,b) a##b 2285 #define expand_concat(a,b) noexpand_concat(a,b) 2286 extern int vA; 2287 extern int vbee; 2288 #define aye A 2289 #define bee B 2290 int *pvA = &expand_concat(v,aye); 2291 int *pvbee = &noexpand_concat(v,bee); 2292 2293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2294 function prototypes and stuff, but not \xHH hex character constants. 2295 These do not provoke an error unfortunately, instead are silently treated 2296 as an "x". The following induces an error, until -std is added to get 2297 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2298 array size at least. It is necessary to write \x00 == 0 to get something 2299 that is true only with -std. */ 2300 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2301 2302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2303 inside strings and character constants. */ 2304 #define FOO(x) '\''x'\'' 2305 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2306 2307 int test (int i, double x); 2308 struct s1 {int (*f) (int a);}; 2309 struct s2 {int (*f) (double a);}; 2310 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2311 int, int);' 2312 2313 # Test code for whether the C compiler supports C89 (body of main). 2314 ac_c_conftest_c89_main=' 2315 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2316 ' 2317 2318 # Test code for whether the C compiler supports C99 (global declarations) 2319 ac_c_conftest_c99_globals=' 2320 /* Does the compiler advertise C99 conformance? */ 2321 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2322 # error "Compiler does not advertise C99 conformance" 2323 #endif 2324 2325 // See if C++-style comments work. 2326 2327 #include <stdbool.h> 2328 extern int puts (const char *); 2329 extern int printf (const char *, ...); 2330 extern int dprintf (int, const char *, ...); 2331 extern void *malloc (size_t); 2332 extern void free (void *); 2333 2334 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2335 // dprintf is used instead of fprintf to avoid needing to declare 2336 // FILE and stderr. 2337 #define debug(...) dprintf (2, __VA_ARGS__) 2338 #define showlist(...) puts (#__VA_ARGS__) 2339 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2340 static void 2341 test_varargs_macros (void) 2342 { 2343 int x = 1234; 2344 int y = 5678; 2345 debug ("Flag"); 2346 debug ("X = %d\n", x); 2347 showlist (The first, second, and third items.); 2348 report (x>y, "x is %d but y is %d", x, y); 2349 } 2350 2351 // Check long long types. 2352 #define BIG64 18446744073709551615ull 2353 #define BIG32 4294967295ul 2354 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2355 #if !BIG_OK 2356 #error "your preprocessor is broken" 2357 #endif 2358 #if BIG_OK 2359 #else 2360 #error "your preprocessor is broken" 2361 #endif 2362 static long long int bignum = -9223372036854775807LL; 2363 static unsigned long long int ubignum = BIG64; 2364 2365 struct incomplete_array 2366 { 2367 int datasize; 2368 double data[]; 2369 }; 2370 2371 struct named_init { 2372 int number; 2373 const wchar_t *name; 2374 double average; 2375 }; 2376 2377 typedef const char *ccp; 2378 2379 static inline int 2380 test_restrict (ccp restrict text) 2381 { 2382 // Iterate through items via the restricted pointer. 2383 // Also check for declarations in for loops. 2384 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2385 continue; 2386 return 0; 2387 } 2388 2389 // Check varargs and va_copy. 2390 static bool 2391 test_varargs (const char *format, ...) 2392 { 2393 va_list args; 2394 va_start (args, format); 2395 va_list args_copy; 2396 va_copy (args_copy, args); 2397 2398 const char *str = ""; 2399 int number = 0; 2400 float fnumber = 0; 2401 2402 while (*format) 2403 { 2404 switch (*format++) 2405 { 2406 case '\''s'\'': // string 2407 str = va_arg (args_copy, const char *); 2408 break; 2409 case '\''d'\'': // int 2410 number = va_arg (args_copy, int); 2411 break; 2412 case '\''f'\'': // float 2413 fnumber = va_arg (args_copy, double); 2414 break; 2415 default: 2416 break; 2417 } 2418 } 2419 va_end (args_copy); 2420 va_end (args); 2421 2422 return *str && number && fnumber; 2423 } 2424 ' 2425 2426 # Test code for whether the C compiler supports C99 (body of main). 2427 ac_c_conftest_c99_main=' 2428 // Check bool. 2429 _Bool success = false; 2430 success |= (argc != 0); 2431 2432 // Check restrict. 2433 if (test_restrict ("String literal") == 0) 2434 success = true; 2435 char *restrict newvar = "Another string"; 2436 2437 // Check varargs. 2438 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2439 test_varargs_macros (); 2440 2441 // Check flexible array members. 2442 struct incomplete_array *ia = 2443 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2444 ia->datasize = 10; 2445 for (int i = 0; i < ia->datasize; ++i) 2446 ia->data[i] = i * 1.234; 2447 // Work around memory leak warnings. 2448 free (ia); 2449 2450 // Check named initializers. 2451 struct named_init ni = { 2452 .number = 34, 2453 .name = L"Test wide string", 2454 .average = 543.34343, 2455 }; 2456 2457 ni.number = 58; 2458 2459 int dynamic_array[ni.number]; 2460 dynamic_array[0] = argv[0][0]; 2461 dynamic_array[ni.number - 1] = 543; 2462 2463 // work around unused variable warnings 2464 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2465 || dynamic_array[ni.number - 1] != 543); 2466 ' 2467 2468 # Test code for whether the C compiler supports C11 (global declarations) 2469 ac_c_conftest_c11_globals=' 2470 /* Does the compiler advertise C11 conformance? */ 2471 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2472 # error "Compiler does not advertise C11 conformance" 2473 #endif 2474 2475 // Check _Alignas. 2476 char _Alignas (double) aligned_as_double; 2477 char _Alignas (0) no_special_alignment; 2478 extern char aligned_as_int; 2479 char _Alignas (0) _Alignas (int) aligned_as_int; 2480 2481 // Check _Alignof. 2482 enum 2483 { 2484 int_alignment = _Alignof (int), 2485 int_array_alignment = _Alignof (int[100]), 2486 char_alignment = _Alignof (char) 2487 }; 2488 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2489 2490 // Check _Noreturn. 2491 int _Noreturn does_not_return (void) { for (;;) continue; } 2492 2493 // Check _Static_assert. 2494 struct test_static_assert 2495 { 2496 int x; 2497 _Static_assert (sizeof (int) <= sizeof (long int), 2498 "_Static_assert does not work in struct"); 2499 long int y; 2500 }; 2501 2502 // Check UTF-8 literals. 2503 #define u8 syntax error! 2504 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2505 2506 // Check duplicate typedefs. 2507 typedef long *long_ptr; 2508 typedef long int *long_ptr; 2509 typedef long_ptr long_ptr; 2510 2511 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2512 struct anonymous 2513 { 2514 union { 2515 struct { int i; int j; }; 2516 struct { int k; long int l; } w; 2517 }; 2518 int m; 2519 } v1; 2520 ' 2521 2522 # Test code for whether the C compiler supports C11 (body of main). 2523 ac_c_conftest_c11_main=' 2524 _Static_assert ((offsetof (struct anonymous, i) 2525 == offsetof (struct anonymous, w.k)), 2526 "Anonymous union alignment botch"); 2527 v1.i = 2; 2528 v1.w.k = 5; 2529 ok |= v1.i != 5; 2530 ' 2531 2532 # Test code for whether the C compiler supports C11 (complete). 2533 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2534 ${ac_c_conftest_c99_globals} 2535 ${ac_c_conftest_c11_globals} 2536 2537 int 2538 main (int argc, char **argv) 2539 { 2540 int ok = 0; 2541 ${ac_c_conftest_c89_main} 2542 ${ac_c_conftest_c99_main} 2543 ${ac_c_conftest_c11_main} 2544 return ok; 2545 } 2546 " 2547 2548 # Test code for whether the C compiler supports C99 (complete). 2549 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2550 ${ac_c_conftest_c99_globals} 2551 2552 int 2553 main (int argc, char **argv) 2554 { 2555 int ok = 0; 2556 ${ac_c_conftest_c89_main} 2557 ${ac_c_conftest_c99_main} 2558 return ok; 2559 } 2560 " 2561 2562 # Test code for whether the C compiler supports C89 (complete). 2563 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2564 2565 int 2566 main (int argc, char **argv) 2567 { 2568 int ok = 0; 2569 ${ac_c_conftest_c89_main} 2570 return ok; 2571 } 2572 " 2573 2574 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2575 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2576 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2577 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2578 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2579 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2580 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2581 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2582 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2583 2584 # Auxiliary files required by this configure script. 2585 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2586 2587 # Locations in which to look for auxiliary files. 2588 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2589 2590 # Search for a directory containing all of the required auxiliary files, 2591 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2592 # If we don't find one directory that contains all the files we need, 2593 # we report the set of missing files from the *first* directory in 2594 # $ac_aux_dir_candidates and give up. 2595 ac_missing_aux_files="" 2596 ac_first_candidate=: 2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599 as_found=false 2600 for as_dir in $ac_aux_dir_candidates 2601 do 2602 IFS=$as_save_IFS 2603 case $as_dir in #((( 2604 '') as_dir=./ ;; 2605 */) ;; 2606 *) as_dir=$as_dir/ ;; 2607 esac 2608 as_found=: 2609 2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2611 ac_aux_dir_found=yes 2612 ac_install_sh= 2613 for ac_aux in $ac_aux_files 2614 do 2615 # As a special case, if "install-sh" is required, that requirement 2616 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2617 # and $ac_install_sh is set appropriately for whichever one is found. 2618 if test x"$ac_aux" = x"install-sh" 2619 then 2620 if test -f "${as_dir}install-sh"; then 2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2622 ac_install_sh="${as_dir}install-sh -c" 2623 elif test -f "${as_dir}install.sh"; then 2624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2625 ac_install_sh="${as_dir}install.sh -c" 2626 elif test -f "${as_dir}shtool"; then 2627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2628 ac_install_sh="${as_dir}shtool install -c" 2629 else 2630 ac_aux_dir_found=no 2631 if $ac_first_candidate; then 2632 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2633 else 2634 break 2635 fi 2636 fi 2637 else 2638 if test -f "${as_dir}${ac_aux}"; then 2639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2640 else 2641 ac_aux_dir_found=no 2642 if $ac_first_candidate; then 2643 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2644 else 2645 break 2646 fi 2647 fi 2648 fi 2649 done 2650 if test "$ac_aux_dir_found" = yes; then 2651 ac_aux_dir="$as_dir" 2652 break 2653 fi 2654 ac_first_candidate=false 2655 2656 as_found=false 2657 done 2658 IFS=$as_save_IFS 2659 if $as_found 2660 then : 2661 2662 else case e in #( 2663 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2664 esac 2665 fi 2666 2667 2668 # These three variables are undocumented and unsupported, 2669 # and are intended to be withdrawn in a future Autoconf release. 2670 # They can cause serious problems if a builder's source tree is in a directory 2671 # whose full name contains unusual characters. 2672 if test -f "${ac_aux_dir}config.guess"; then 2673 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2674 fi 2675 if test -f "${ac_aux_dir}config.sub"; then 2676 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2677 fi 2678 if test -f "$ac_aux_dir/configure"; then 2679 ac_configure="$SHELL ${ac_aux_dir}configure" 2680 fi 2681 2682 # Check that the precious variables saved in the cache have kept the same 2683 # value. 2684 ac_cache_corrupted=false 2685 for ac_var in $ac_precious_vars; do 2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2687 eval ac_new_set=\$ac_env_${ac_var}_set 2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2689 eval ac_new_val=\$ac_env_${ac_var}_value 2690 case $ac_old_set,$ac_new_set in 2691 set,) 2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2693 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2694 ac_cache_corrupted=: ;; 2695 ,set) 2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2697 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2698 ac_cache_corrupted=: ;; 2699 ,);; 2700 *) 2701 if test "x$ac_old_val" != "x$ac_new_val"; then 2702 # differences in whitespace do not lead to failure. 2703 ac_old_val_w=`echo x $ac_old_val` 2704 ac_new_val_w=`echo x $ac_new_val` 2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2707 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2708 ac_cache_corrupted=: 2709 else 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2711 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2712 eval $ac_var=\$ac_old_val 2713 fi 2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2715 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2717 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2718 fi;; 2719 esac 2720 # Pass precious variables to config.status. 2721 if test "$ac_new_set" = set; then 2722 case $ac_new_val in 2723 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2724 *) ac_arg=$ac_var=$ac_new_val ;; 2725 esac 2726 case " $ac_configure_args " in 2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2729 esac 2730 fi 2731 done 2732 if $ac_cache_corrupted; then 2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2734 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2736 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2737 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2738 and start over" "$LINENO" 5 2739 fi 2740 ## -------------------- ## 2741 ## Main body of script. ## 2742 ## -------------------- ## 2743 2744 ac_ext=c 2745 ac_cpp='$CPP $CPPFLAGS' 2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2749 2750 2751 2752 ac_config_headers="$ac_config_headers src/config.h" 2753 2754 2755 2756 # Initialize Automake 2757 am__api_version='1.18' 2758 2759 2760 2761 # Find a good install program. We prefer a C program (faster), 2762 # so one script is as good as another. But avoid the broken or 2763 # incompatible versions: 2764 # SysV /etc/install, /usr/sbin/install 2765 # SunOS /usr/etc/install 2766 # IRIX /sbin/install 2767 # AIX /bin/install 2768 # AmigaOS /C/install, which installs bootblocks on floppy discs 2769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2772 # OS/2's system install, which has a completely different semantic 2773 # ./install, which can be erroneously created by make from ./install.sh. 2774 # Reject install programs that cannot install multiple files. 2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2776 printf %s "checking for a BSD-compatible install... " >&6; } 2777 if test -z "$INSTALL"; then 2778 if test ${ac_cv_path_install+y} 2779 then : 2780 printf %s "(cached) " >&6 2781 else case e in #( 2782 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783 for as_dir in $PATH 2784 do 2785 IFS=$as_save_IFS 2786 case $as_dir in #((( 2787 '') as_dir=./ ;; 2788 */) ;; 2789 *) as_dir=$as_dir/ ;; 2790 esac 2791 # Account for fact that we put trailing slashes in our PATH walk. 2792 case $as_dir in #(( 2793 ./ | /[cC]/* | \ 2794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2795 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2796 /usr/ucb/* ) ;; 2797 *) 2798 # OSF1 and SCO ODT 3.0 have their own names for install. 2799 # Don't use installbsd from OSF since it installs stuff as root 2800 # by default. 2801 for ac_prog in ginstall scoinst install; do 2802 for ac_exec_ext in '' $ac_executable_extensions; do 2803 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2804 if test $ac_prog = install && 2805 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2806 # AIX install. It has an incompatible calling convention. 2807 : 2808 elif test $ac_prog = install && 2809 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2810 # program-specific install script used by HP pwplus--don't use. 2811 : 2812 else 2813 rm -rf conftest.one conftest.two conftest.dir 2814 echo one > conftest.one 2815 echo two > conftest.two 2816 mkdir conftest.dir 2817 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2818 test -s conftest.one && test -s conftest.two && 2819 test -s conftest.dir/conftest.one && 2820 test -s conftest.dir/conftest.two 2821 then 2822 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2823 break 3 2824 fi 2825 fi 2826 fi 2827 done 2828 done 2829 ;; 2830 esac 2831 2832 done 2833 IFS=$as_save_IFS 2834 2835 rm -rf conftest.one conftest.two conftest.dir 2836 ;; 2837 esac 2838 fi 2839 if test ${ac_cv_path_install+y}; then 2840 INSTALL=$ac_cv_path_install 2841 else 2842 # As a last resort, use the slow shell script. Don't cache a 2843 # value for INSTALL within a source directory, because that will 2844 # break other packages using the cache if that directory is 2845 # removed, or if the value is a relative name. 2846 INSTALL=$ac_install_sh 2847 fi 2848 fi 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2850 printf "%s\n" "$INSTALL" >&6; } 2851 2852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2853 # It thinks the first close brace ends the variable substitution. 2854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2855 2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2857 2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2859 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2861 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2862 if test ${am_cv_sleep_fractional_seconds+y} 2863 then : 2864 printf %s "(cached) " >&6 2865 else case e in #( 2866 e) if sleep 0.001 2>/dev/null 2867 then : 2868 am_cv_sleep_fractional_seconds=yes 2869 else case e in #( 2870 e) am_cv_sleep_fractional_seconds=no ;; 2871 esac 2872 fi 2873 ;; 2874 esac 2875 fi 2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2877 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2878 2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2880 printf %s "checking filesystem timestamp resolution... " >&6; } 2881 if test ${am_cv_filesystem_timestamp_resolution+y} 2882 then : 2883 printf %s "(cached) " >&6 2884 else case e in #( 2885 e) # Default to the worst case. 2886 am_cv_filesystem_timestamp_resolution=2 2887 2888 # Only try to go finer than 1 sec if sleep can do it. 2889 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2890 # - 1 sec is not much of a win compared to 2 sec, and 2891 # - it takes 2 seconds to perform the test whether 1 sec works. 2892 # 2893 # Instead, just use the default 2s on platforms that have 1s resolution, 2894 # accept the extra 1s delay when using $sleep in the Automake tests, in 2895 # exchange for not incurring the 2s delay for running the test for all 2896 # packages. 2897 # 2898 am_try_resolutions= 2899 if test "$am_cv_sleep_fractional_seconds" = yes; then 2900 # Even a millisecond often causes a bunch of false positives, 2901 # so just try a hundredth of a second. The time saved between .001 and 2902 # .01 is not terribly consequential. 2903 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2904 fi 2905 2906 # In order to catch current-generation FAT out, we must *modify* files 2907 # that already exist; the *creation* timestamp is finer. Use names 2908 # that make ls -t sort them differently when they have equal 2909 # timestamps than when they have distinct timestamps, keeping 2910 # in mind that ls -t prints the *newest* file first. 2911 rm -f conftest.ts? 2912 : > conftest.ts1 2913 : > conftest.ts2 2914 : > conftest.ts3 2915 2916 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2917 # clobber the current shell's arguments. (Outer-level square brackets 2918 # are removed by m4; they're present so that m4 does not expand 2919 # <dollar><star>; be careful, easy to get confused.) 2920 if ( 2921 set X `ls -t conftest.ts[12]` && 2922 { 2923 test "$*" != "X conftest.ts1 conftest.ts2" || 2924 test "$*" != "X conftest.ts2 conftest.ts1"; 2925 } 2926 ); then :; else 2927 # If neither matched, then we have a broken ls. This can happen 2928 # if, for instance, CONFIG_SHELL is bash and it inherits a 2929 # broken ls alias from the environment. This has actually 2930 # happened. Such a system could not be considered "sane". 2931 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2933 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2934 as_fn_error $? "ls -t produces unexpected output. 2935 Make sure there is not a broken ls alias in your environment. 2936 See 'config.log' for more details" "$LINENO" 5; } 2937 fi 2938 2939 for am_try_res in $am_try_resolutions; do 2940 # Any one fine-grained sleep might happen to cross the boundary 2941 # between two values of a coarser actual resolution, but if we do 2942 # two fine-grained sleeps in a row, at least one of them will fall 2943 # entirely within a coarse interval. 2944 echo alpha > conftest.ts1 2945 sleep $am_try_res 2946 echo beta > conftest.ts2 2947 sleep $am_try_res 2948 echo gamma > conftest.ts3 2949 2950 # We assume that 'ls -t' will make use of high-resolution 2951 # timestamps if the operating system supports them at all. 2952 if (set X `ls -t conftest.ts?` && 2953 test "$2" = conftest.ts3 && 2954 test "$3" = conftest.ts2 && 2955 test "$4" = conftest.ts1); then 2956 # 2957 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2958 # because we don't need to test make. 2959 make_ok=true 2960 if test $am_try_res != 1; then 2961 # But if we've succeeded so far with a subsecond resolution, we 2962 # have one more thing to check: make. It can happen that 2963 # everything else supports the subsecond mtimes, but make doesn't; 2964 # notably on macOS, which ships make 3.81 from 2006 (the last one 2965 # released under GPLv2). https://bugs.gnu.org/68808 2966 # 2967 # We test $MAKE if it is defined in the environment, else "make". 2968 # It might get overridden later, but our hope is that in practice 2969 # it does not matter: it is the system "make" which is (by far) 2970 # the most likely to be broken, whereas if the user overrides it, 2971 # probably they did so with a better, or at least not worse, make. 2972 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2973 # 2974 # Create a Makefile (real tab character here): 2975 rm -f conftest.mk 2976 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2977 echo ' touch conftest.ts2' >>conftest.mk 2978 # 2979 # Now, running 2980 # touch conftest.ts1; touch conftest.ts2; make 2981 # should touch ts1 because ts2 is newer. This could happen by luck, 2982 # but most often, it will fail if make's support is insufficient. So 2983 # test for several consecutive successes. 2984 # 2985 # (We reuse conftest.ts[12] because we still want to modify existing 2986 # files, not create new ones, per above.) 2987 n=0 2988 make=${MAKE-make} 2989 until test $n -eq 3; do 2990 echo one > conftest.ts1 2991 sleep $am_try_res 2992 echo two > conftest.ts2 # ts2 should now be newer than ts1 2993 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2994 make_ok=false 2995 break # out of $n loop 2996 fi 2997 n=`expr $n + 1` 2998 done 2999 fi 3000 # 3001 if $make_ok; then 3002 # Everything we know to check worked out, so call this resolution good. 3003 am_cv_filesystem_timestamp_resolution=$am_try_res 3004 break # out of $am_try_res loop 3005 fi 3006 # Otherwise, we'll go on to check the next resolution. 3007 fi 3008 done 3009 rm -f conftest.ts? 3010 # (end _am_filesystem_timestamp_resolution) 3011 ;; 3012 esac 3013 fi 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3015 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3016 3017 # This check should not be cached, as it may vary across builds of 3018 # different projects. 3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3020 printf %s "checking whether build environment is sane... " >&6; } 3021 # Reject unsafe characters in $srcdir or the absolute working directory 3022 # name. Accept space and tab only in the latter. 3023 am_lf=' 3024 ' 3025 case `pwd` in 3026 *[\\\"\#\$\&\'\`$am_lf]*) 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028 printf "%s\n" "no" >&6; } 3029 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3030 esac 3031 case $srcdir in 3032 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034 printf "%s\n" "no" >&6; } 3035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3036 esac 3037 3038 # Do 'set' in a subshell so we don't clobber the current shell's 3039 # arguments. Must try -L first in case configure is actually a 3040 # symlink; some systems play weird games with the mod time of symlinks 3041 # (eg FreeBSD returns the mod time of the symlink's containing 3042 # directory). 3043 am_build_env_is_sane=no 3044 am_has_slept=no 3045 rm -f conftest.file 3046 for am_try in 1 2; do 3047 echo "timestamp, slept: $am_has_slept" > conftest.file 3048 if ( 3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3050 if test "$*" = "X"; then 3051 # -L didn't work. 3052 set X `ls -t "$srcdir/configure" conftest.file` 3053 fi 3054 test "$2" = conftest.file 3055 ); then 3056 am_build_env_is_sane=yes 3057 break 3058 fi 3059 # Just in case. 3060 sleep "$am_cv_filesystem_timestamp_resolution" 3061 am_has_slept=yes 3062 done 3063 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3065 printf "%s\n" "$am_build_env_is_sane" >&6; } 3066 if test "$am_build_env_is_sane" = no; then 3067 as_fn_error $? "newly created file is older than distributed files! 3068 Check your system clock" "$LINENO" 5 3069 fi 3070 3071 # If we didn't sleep, we still need to ensure time stamps of config.status and 3072 # generated files are strictly newer. 3073 am_sleep_pid= 3074 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3075 then : 3076 3077 else case e in #( 3078 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3079 am_sleep_pid=$! 3080 ;; 3081 esac 3082 fi 3083 3084 rm -f conftest.file 3085 3086 test "$program_prefix" != NONE && 3087 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3088 # Use a double $ so make ignores it. 3089 test "$program_suffix" != NONE && 3090 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3091 # Double any \ or $. 3092 # By default was 's,x,x', remove it if useless. 3093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3094 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3095 3096 3097 # Expand $ac_aux_dir to an absolute path. 3098 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3099 3100 3101 if test x"${MISSING+set}" != xset; then 3102 MISSING="\${SHELL} '$am_aux_dir/missing'" 3103 fi 3104 # Use eval to expand $SHELL 3105 if eval "$MISSING --is-lightweight"; then 3106 am_missing_run="$MISSING " 3107 else 3108 am_missing_run= 3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3110 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3111 fi 3112 3113 if test x"${install_sh+set}" != xset; then 3114 case $am_aux_dir in 3115 *\ * | *\ *) 3116 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3117 *) 3118 install_sh="\${SHELL} $am_aux_dir/install-sh" 3119 esac 3120 fi 3121 3122 # Installed binaries are usually stripped using 'strip' when the user 3123 # run "make install-strip". However 'strip' might not be the right 3124 # tool to use in cross-compilation environments, therefore Automake 3125 # will honor the 'STRIP' environment variable to overrule this program. 3126 if test "$cross_compiling" != no; then 3127 if test -n "$ac_tool_prefix"; then 3128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3129 set dummy ${ac_tool_prefix}strip; ac_word=$2 3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3131 printf %s "checking for $ac_word... " >&6; } 3132 if test ${ac_cv_prog_STRIP+y} 3133 then : 3134 printf %s "(cached) " >&6 3135 else case e in #( 3136 e) if test -n "$STRIP"; then 3137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3138 else 3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140 for as_dir in $PATH 3141 do 3142 IFS=$as_save_IFS 3143 case $as_dir in #((( 3144 '') as_dir=./ ;; 3145 */) ;; 3146 *) as_dir=$as_dir/ ;; 3147 esac 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154 done 3155 done 3156 IFS=$as_save_IFS 3157 3158 fi ;; 3159 esac 3160 fi 3161 STRIP=$ac_cv_prog_STRIP 3162 if test -n "$STRIP"; then 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3164 printf "%s\n" "$STRIP" >&6; } 3165 else 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167 printf "%s\n" "no" >&6; } 3168 fi 3169 3170 3171 fi 3172 if test -z "$ac_cv_prog_STRIP"; then 3173 ac_ct_STRIP=$STRIP 3174 # Extract the first word of "strip", so it can be a program name with args. 3175 set dummy strip; ac_word=$2 3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3177 printf %s "checking for $ac_word... " >&6; } 3178 if test ${ac_cv_prog_ac_ct_STRIP+y} 3179 then : 3180 printf %s "(cached) " >&6 3181 else case e in #( 3182 e) if test -n "$ac_ct_STRIP"; then 3183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3184 else 3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186 for as_dir in $PATH 3187 do 3188 IFS=$as_save_IFS 3189 case $as_dir in #((( 3190 '') as_dir=./ ;; 3191 */) ;; 3192 *) as_dir=$as_dir/ ;; 3193 esac 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3196 ac_cv_prog_ac_ct_STRIP="strip" 3197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3198 break 2 3199 fi 3200 done 3201 done 3202 IFS=$as_save_IFS 3203 3204 fi ;; 3205 esac 3206 fi 3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3208 if test -n "$ac_ct_STRIP"; then 3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3210 printf "%s\n" "$ac_ct_STRIP" >&6; } 3211 else 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213 printf "%s\n" "no" >&6; } 3214 fi 3215 3216 if test "x$ac_ct_STRIP" = x; then 3217 STRIP=":" 3218 else 3219 case $cross_compiling:$ac_tool_warned in 3220 yes:) 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3223 ac_tool_warned=yes ;; 3224 esac 3225 STRIP=$ac_ct_STRIP 3226 fi 3227 else 3228 STRIP="$ac_cv_prog_STRIP" 3229 fi 3230 3231 fi 3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3233 3234 3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3236 printf %s "checking for a race-free mkdir -p... " >&6; } 3237 if test -z "$MKDIR_P"; then 3238 if test ${ac_cv_path_mkdir+y} 3239 then : 3240 printf %s "(cached) " >&6 3241 else case e in #( 3242 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3244 do 3245 IFS=$as_save_IFS 3246 case $as_dir in #((( 3247 '') as_dir=./ ;; 3248 */) ;; 3249 *) as_dir=$as_dir/ ;; 3250 esac 3251 for ac_prog in mkdir gmkdir; do 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3254 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3255 'mkdir ('*'coreutils) '* | \ 3256 *'BusyBox '* | \ 3257 'mkdir (fileutils) '4.1*) 3258 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3259 break 3;; 3260 esac 3261 done 3262 done 3263 done 3264 IFS=$as_save_IFS 3265 ;; 3266 esac 3267 fi 3268 3269 test -d ./--version && rmdir ./--version 3270 if test ${ac_cv_path_mkdir+y}; then 3271 MKDIR_P="$ac_cv_path_mkdir -p" 3272 else 3273 # As a last resort, use plain mkdir -p, 3274 # in the hope it doesn't have the bugs of ancient mkdir. 3275 MKDIR_P='mkdir -p' 3276 fi 3277 fi 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3279 printf "%s\n" "$MKDIR_P" >&6; } 3280 3281 for ac_prog in gawk mawk nawk awk 3282 do 3283 # Extract the first word of "$ac_prog", so it can be a program name with args. 3284 set dummy $ac_prog; ac_word=$2 3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286 printf %s "checking for $ac_word... " >&6; } 3287 if test ${ac_cv_prog_AWK+y} 3288 then : 3289 printf %s "(cached) " >&6 3290 else case e in #( 3291 e) if test -n "$AWK"; then 3292 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3293 else 3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295 for as_dir in $PATH 3296 do 3297 IFS=$as_save_IFS 3298 case $as_dir in #((( 3299 '') as_dir=./ ;; 3300 */) ;; 3301 *) as_dir=$as_dir/ ;; 3302 esac 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3305 ac_cv_prog_AWK="$ac_prog" 3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309 done 3310 done 3311 IFS=$as_save_IFS 3312 3313 fi ;; 3314 esac 3315 fi 3316 AWK=$ac_cv_prog_AWK 3317 if test -n "$AWK"; then 3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3319 printf "%s\n" "$AWK" >&6; } 3320 else 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3322 printf "%s\n" "no" >&6; } 3323 fi 3324 3325 3326 test -n "$AWK" && break 3327 done 3328 3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3330 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3331 set x ${MAKE-make} 3332 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3333 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3334 then : 3335 printf %s "(cached) " >&6 3336 else case e in #( 3337 e) cat >conftest.make <<\_ACEOF 3338 SHELL = /bin/sh 3339 all: 3340 @echo '@@@%%%=$(MAKE)=@@@%%%' 3341 _ACEOF 3342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3343 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3344 *@@@%%%=?*=@@@%%%*) 3345 eval ac_cv_prog_make_${ac_make}_set=yes;; 3346 *) 3347 eval ac_cv_prog_make_${ac_make}_set=no;; 3348 esac 3349 rm -f conftest.make ;; 3350 esac 3351 fi 3352 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3354 printf "%s\n" "yes" >&6; } 3355 SET_MAKE= 3356 else 3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3358 printf "%s\n" "no" >&6; } 3359 SET_MAKE="MAKE=${MAKE-make}" 3360 fi 3361 3362 rm -rf .tst 2>/dev/null 3363 mkdir .tst 2>/dev/null 3364 if test -d .tst; then 3365 am__leading_dot=. 3366 else 3367 am__leading_dot=_ 3368 fi 3369 rmdir .tst 2>/dev/null 3370 3371 AM_DEFAULT_VERBOSITY=1 3372 # Check whether --enable-silent-rules was given. 3373 if test ${enable_silent_rules+y} 3374 then : 3375 enableval=$enable_silent_rules; 3376 fi 3377 3378 am_make=${MAKE-make} 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3380 printf %s "checking whether $am_make supports nested variables... " >&6; } 3381 if test ${am_cv_make_support_nested_variables+y} 3382 then : 3383 printf %s "(cached) " >&6 3384 else case e in #( 3385 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3386 BAR0=false 3387 BAR1=true 3388 V=1 3389 am__doit: 3390 @$(TRUE) 3391 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3392 am_cv_make_support_nested_variables=yes 3393 else 3394 am_cv_make_support_nested_variables=no 3395 fi ;; 3396 esac 3397 fi 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3399 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3400 AM_BACKSLASH='\' 3401 3402 am__rm_f_notfound= 3403 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3404 then : 3405 3406 else case e in #( 3407 e) am__rm_f_notfound='""' ;; 3408 esac 3409 fi 3410 3411 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3413 printf %s "checking xargs -n works... " >&6; } 3414 if test ${am_cv_xargs_n_works+y} 3415 then : 3416 printf %s "(cached) " >&6 3417 else case e in #( 3418 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3419 3" 3420 then : 3421 am_cv_xargs_n_works=yes 3422 else case e in #( 3423 e) am_cv_xargs_n_works=no ;; 3424 esac 3425 fi ;; 3426 esac 3427 fi 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3429 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3430 if test "$am_cv_xargs_n_works" = yes 3431 then : 3432 am__xargs_n='xargs -n' 3433 else case e in #( 3434 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3435 ;; 3436 esac 3437 fi 3438 3439 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3440 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3441 # is not polluted with repeated "-I." 3442 am__isrc=' -I$(srcdir)' 3443 # test to see if srcdir already configured 3444 if test -f $srcdir/config.status; then 3445 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3446 fi 3447 fi 3448 3449 # test whether we have cygpath 3450 if test -z "$CYGPATH_W"; then 3451 if (cygpath --version) >/dev/null 2>/dev/null; then 3452 CYGPATH_W='cygpath -w' 3453 else 3454 CYGPATH_W=echo 3455 fi 3456 fi 3457 3458 3459 # Define the identity of the package. 3460 PACKAGE='libXi' 3461 VERSION='1.8.3' 3462 3463 3464 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3465 3466 3467 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3468 3469 # Some tools Automake needs. 3470 3471 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3472 3473 3474 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3475 3476 3477 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3478 3479 3480 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3481 3482 3483 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3484 3485 # For better backward compatibility. To be removed once Automake 1.9.x 3486 # dies out for good. For more background, see: 3487 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3488 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3489 mkdir_p='$(MKDIR_P)' 3490 3491 # We need awk for the "check" target (and possibly the TAP driver). The 3492 # system "awk" is bad on some platforms. 3493 # Always define AMTAR for backward compatibility. Yes, it's still used 3494 # in the wild :-( We should find a proper way to deprecate it ... 3495 AMTAR='$${TAR-tar}' 3496 3497 3498 # We'll loop over all known methods to create a tar archive until one works. 3499 _am_tools='gnutar plaintar pax cpio none' 3500 3501 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3502 # There is notably a 21 bits limit for the UID and the GID. In fact, 3503 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3504 # and bug#13588). 3505 am_max_uid=2097151 # 2^21 - 1 3506 am_max_gid=$am_max_uid 3507 # The $UID and $GID variables are not portable, so we need to resort 3508 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3509 # below are definitely unexpected, so allow the users to see them 3510 # (that is, avoid stderr redirection). 3511 am_uid=`id -u || echo unknown` 3512 am_gid=`id -g || echo unknown` 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3514 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3515 if test x$am_uid = xunknown; then 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3517 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3518 elif test $am_uid -le $am_max_uid; then 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3520 printf "%s\n" "yes" >&6; } 3521 else 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523 printf "%s\n" "no" >&6; } 3524 _am_tools=none 3525 fi 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3527 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3528 if test x$gm_gid = xunknown; then 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3530 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3531 elif test $am_gid -le $am_max_gid; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3533 printf "%s\n" "yes" >&6; } 3534 else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536 printf "%s\n" "no" >&6; } 3537 _am_tools=none 3538 fi 3539 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3541 printf %s "checking how to create a ustar tar archive... " >&6; } 3542 3543 # Go ahead even if we have the value already cached. We do so because we 3544 # need to set the values for the 'am__tar' and 'am__untar' variables. 3545 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3546 3547 for _am_tool in $_am_tools; do 3548 case $_am_tool in 3549 gnutar) 3550 for _am_tar in tar gnutar gtar; do 3551 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3552 ($_am_tar --version) >&5 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } && break 3556 done 3557 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3558 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3559 am__untar="$_am_tar -xf -" 3560 ;; 3561 plaintar) 3562 # Must skip GNU tar: if it does not support --format= it doesn't create 3563 # ustar tarball either. 3564 (tar --version) >/dev/null 2>&1 && continue 3565 am__tar='tar chf - "$$tardir"' 3566 am__tar_='tar chf - "$tardir"' 3567 am__untar='tar xf -' 3568 ;; 3569 pax) 3570 am__tar='pax -L -x ustar -w "$$tardir"' 3571 am__tar_='pax -L -x ustar -w "$tardir"' 3572 am__untar='pax -r' 3573 ;; 3574 cpio) 3575 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3576 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3577 am__untar='cpio -i -H ustar -d' 3578 ;; 3579 none) 3580 am__tar=false 3581 am__tar_=false 3582 am__untar=false 3583 ;; 3584 esac 3585 3586 # If the value was cached, stop now. We just wanted to have am__tar 3587 # and am__untar set. 3588 test -n "${am_cv_prog_tar_ustar}" && break 3589 3590 # tar/untar a dummy directory, and stop if the command works. 3591 rm -rf conftest.dir 3592 mkdir conftest.dir 3593 echo GrepMe > conftest.dir/file 3594 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3595 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } 3599 rm -rf conftest.dir 3600 if test -s conftest.tar; then 3601 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3602 ($am__untar <conftest.tar) >&5 2>&5 3603 ac_status=$? 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } 3606 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3607 (cat conftest.dir/file) >&5 2>&5 3608 ac_status=$? 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); } 3611 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3612 fi 3613 done 3614 rm -rf conftest.dir 3615 3616 if test ${am_cv_prog_tar_ustar+y} 3617 then : 3618 printf %s "(cached) " >&6 3619 else case e in #( 3620 e) am_cv_prog_tar_ustar=$_am_tool ;; 3621 esac 3622 fi 3623 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3625 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3626 3627 3628 3629 3630 3631 # Variables for tags utilities; see am/tags.am 3632 if test -z "$CTAGS"; then 3633 CTAGS=ctags 3634 fi 3635 3636 if test -z "$ETAGS"; then 3637 ETAGS=etags 3638 fi 3639 3640 if test -z "$CSCOPE"; then 3641 CSCOPE=cscope 3642 fi 3643 3644 3645 3646 3647 3648 3649 3650 3651 # Initialize libtool 3652 case `pwd` in 3653 *\ * | *\ *) 3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3655 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3656 esac 3657 3658 3659 3660 macro_version='2.5.4' 3661 macro_revision='2.5.4' 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 ltmain=$ac_aux_dir/ltmain.sh 3677 3678 3679 3680 # Make sure we can run config.sub. 3681 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3682 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3683 3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3685 printf %s "checking build system type... " >&6; } 3686 if test ${ac_cv_build+y} 3687 then : 3688 printf %s "(cached) " >&6 3689 else case e in #( 3690 e) ac_build_alias=$build_alias 3691 test "x$ac_build_alias" = x && 3692 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3693 test "x$ac_build_alias" = x && 3694 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3695 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3696 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3697 ;; 3698 esac 3699 fi 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3701 printf "%s\n" "$ac_cv_build" >&6; } 3702 case $ac_cv_build in 3703 *-*-*) ;; 3704 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3705 esac 3706 build=$ac_cv_build 3707 ac_save_IFS=$IFS; IFS='-' 3708 set x $ac_cv_build 3709 shift 3710 build_cpu=$1 3711 build_vendor=$2 3712 shift; shift 3713 # Remember, the first character of IFS is used to create $*, 3714 # except with old shells: 3715 build_os=$* 3716 IFS=$ac_save_IFS 3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3718 3719 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3721 printf %s "checking host system type... " >&6; } 3722 if test ${ac_cv_host+y} 3723 then : 3724 printf %s "(cached) " >&6 3725 else case e in #( 3726 e) if test "x$host_alias" = x; then 3727 ac_cv_host=$ac_cv_build 3728 else 3729 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3730 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3731 fi 3732 ;; 3733 esac 3734 fi 3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3736 printf "%s\n" "$ac_cv_host" >&6; } 3737 case $ac_cv_host in 3738 *-*-*) ;; 3739 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3740 esac 3741 host=$ac_cv_host 3742 ac_save_IFS=$IFS; IFS='-' 3743 set x $ac_cv_host 3744 shift 3745 host_cpu=$1 3746 host_vendor=$2 3747 shift; shift 3748 # Remember, the first character of IFS is used to create $*, 3749 # except with old shells: 3750 host_os=$* 3751 IFS=$ac_save_IFS 3752 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3753 3754 3755 # Backslashify metacharacters that are still active within 3756 # double-quoted strings. 3757 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3758 3759 # Same as above, but do not quote variable references. 3760 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3761 3762 # Sed substitution to delay expansion of an escaped shell variable in a 3763 # double_quote_subst'ed string. 3764 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3765 3766 # Sed substitution to delay expansion of an escaped single quote. 3767 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3768 3769 # Sed substitution to avoid accidental globbing in evaled expressions 3770 no_glob_subst='s/\*/\\\*/g' 3771 3772 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3774 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3775 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3777 printf %s "checking how to print strings... " >&6; } 3778 # Test print first, because it will be a builtin if present. 3779 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3780 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3781 ECHO='print -r --' 3782 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3783 ECHO='printf %s\n' 3784 else 3785 # Use this function as a fallback that always works. 3786 func_fallback_echo () 3787 { 3788 eval 'cat <<_LTECHO_EOF 3789 $1 3790 _LTECHO_EOF' 3791 } 3792 ECHO='func_fallback_echo' 3793 fi 3794 3795 # func_echo_all arg... 3796 # Invoke $ECHO with all args, space-separated. 3797 func_echo_all () 3798 { 3799 $ECHO "" 3800 } 3801 3802 case $ECHO in 3803 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3804 printf "%s\n" "printf" >&6; } ;; 3805 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3806 printf "%s\n" "print -r" >&6; } ;; 3807 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3808 printf "%s\n" "cat" >&6; } ;; 3809 esac 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 DEPDIR="${am__leading_dot}deps" 3834 3835 ac_config_commands="$ac_config_commands depfiles" 3836 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3838 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3839 cat > confinc.mk << 'END' 3840 am__doit: 3841 @echo this is the am__doit target >confinc.out 3842 .PHONY: am__doit 3843 END 3844 am__include="#" 3845 am__quote= 3846 # BSD make does it like this. 3847 echo '.include "confinc.mk" # ignored' > confmf.BSD 3848 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3849 echo 'include confinc.mk # ignored' > confmf.GNU 3850 _am_result=no 3851 for s in GNU BSD; do 3852 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3853 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3854 ac_status=$? 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3856 (exit $ac_status); } 3857 case $?:`cat confinc.out 2>/dev/null` in #( 3858 '0:this is the am__doit target') : 3859 case $s in #( 3860 BSD) : 3861 am__include='.include' am__quote='"' ;; #( 3862 *) : 3863 am__include='include' am__quote='' ;; 3864 esac ;; #( 3865 *) : 3866 ;; 3867 esac 3868 if test "$am__include" != "#"; then 3869 _am_result="yes ($s style)" 3870 break 3871 fi 3872 done 3873 rm -f confinc.* confmf.* 3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3875 printf "%s\n" "${_am_result}" >&6; } 3876 3877 # Check whether --enable-dependency-tracking was given. 3878 if test ${enable_dependency_tracking+y} 3879 then : 3880 enableval=$enable_dependency_tracking; 3881 fi 3882 3883 if test "x$enable_dependency_tracking" != xno; then 3884 am_depcomp="$ac_aux_dir/depcomp" 3885 AMDEPBACKSLASH='\' 3886 am__nodep='_no' 3887 fi 3888 if test "x$enable_dependency_tracking" != xno; then 3889 AMDEP_TRUE= 3890 AMDEP_FALSE='#' 3891 else 3892 AMDEP_TRUE='#' 3893 AMDEP_FALSE= 3894 fi 3895 3896 3897 ac_ext=c 3898 ac_cpp='$CPP $CPPFLAGS' 3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3902 if test -n "$ac_tool_prefix"; then 3903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3904 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3906 printf %s "checking for $ac_word... " >&6; } 3907 if test ${ac_cv_prog_CC+y} 3908 then : 3909 printf %s "(cached) " >&6 3910 else case e in #( 3911 e) if test -n "$CC"; then 3912 ac_cv_prog_CC="$CC" # Let the user override the test. 3913 else 3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915 for as_dir in $PATH 3916 do 3917 IFS=$as_save_IFS 3918 case $as_dir in #((( 3919 '') as_dir=./ ;; 3920 */) ;; 3921 *) as_dir=$as_dir/ ;; 3922 esac 3923 for ac_exec_ext in '' $ac_executable_extensions; do 3924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3925 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3927 break 2 3928 fi 3929 done 3930 done 3931 IFS=$as_save_IFS 3932 3933 fi ;; 3934 esac 3935 fi 3936 CC=$ac_cv_prog_CC 3937 if test -n "$CC"; then 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3939 printf "%s\n" "$CC" >&6; } 3940 else 3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3942 printf "%s\n" "no" >&6; } 3943 fi 3944 3945 3946 fi 3947 if test -z "$ac_cv_prog_CC"; then 3948 ac_ct_CC=$CC 3949 # Extract the first word of "gcc", so it can be a program name with args. 3950 set dummy gcc; ac_word=$2 3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3952 printf %s "checking for $ac_word... " >&6; } 3953 if test ${ac_cv_prog_ac_ct_CC+y} 3954 then : 3955 printf %s "(cached) " >&6 3956 else case e in #( 3957 e) if test -n "$ac_ct_CC"; then 3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3959 else 3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961 for as_dir in $PATH 3962 do 3963 IFS=$as_save_IFS 3964 case $as_dir in #((( 3965 '') as_dir=./ ;; 3966 */) ;; 3967 *) as_dir=$as_dir/ ;; 3968 esac 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3971 ac_cv_prog_ac_ct_CC="gcc" 3972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975 done 3976 done 3977 IFS=$as_save_IFS 3978 3979 fi ;; 3980 esac 3981 fi 3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3983 if test -n "$ac_ct_CC"; then 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3985 printf "%s\n" "$ac_ct_CC" >&6; } 3986 else 3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3988 printf "%s\n" "no" >&6; } 3989 fi 3990 3991 if test "x$ac_ct_CC" = x; then 3992 CC="" 3993 else 3994 case $cross_compiling:$ac_tool_warned in 3995 yes:) 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3998 ac_tool_warned=yes ;; 3999 esac 4000 CC=$ac_ct_CC 4001 fi 4002 else 4003 CC="$ac_cv_prog_CC" 4004 fi 4005 4006 if test -z "$CC"; then 4007 if test -n "$ac_tool_prefix"; then 4008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4009 set dummy ${ac_tool_prefix}cc; ac_word=$2 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4011 printf %s "checking for $ac_word... " >&6; } 4012 if test ${ac_cv_prog_CC+y} 4013 then : 4014 printf %s "(cached) " >&6 4015 else case e in #( 4016 e) if test -n "$CC"; then 4017 ac_cv_prog_CC="$CC" # Let the user override the test. 4018 else 4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020 for as_dir in $PATH 4021 do 4022 IFS=$as_save_IFS 4023 case $as_dir in #((( 4024 '') as_dir=./ ;; 4025 */) ;; 4026 *) as_dir=$as_dir/ ;; 4027 esac 4028 for ac_exec_ext in '' $ac_executable_extensions; do 4029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4030 ac_cv_prog_CC="${ac_tool_prefix}cc" 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4032 break 2 4033 fi 4034 done 4035 done 4036 IFS=$as_save_IFS 4037 4038 fi ;; 4039 esac 4040 fi 4041 CC=$ac_cv_prog_CC 4042 if test -n "$CC"; then 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4044 printf "%s\n" "$CC" >&6; } 4045 else 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4047 printf "%s\n" "no" >&6; } 4048 fi 4049 4050 4051 fi 4052 fi 4053 if test -z "$CC"; then 4054 # Extract the first word of "cc", so it can be a program name with args. 4055 set dummy cc; ac_word=$2 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4057 printf %s "checking for $ac_word... " >&6; } 4058 if test ${ac_cv_prog_CC+y} 4059 then : 4060 printf %s "(cached) " >&6 4061 else case e in #( 4062 e) if test -n "$CC"; then 4063 ac_cv_prog_CC="$CC" # Let the user override the test. 4064 else 4065 ac_prog_rejected=no 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067 for as_dir in $PATH 4068 do 4069 IFS=$as_save_IFS 4070 case $as_dir in #((( 4071 '') as_dir=./ ;; 4072 */) ;; 4073 *) as_dir=$as_dir/ ;; 4074 esac 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4077 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4078 ac_prog_rejected=yes 4079 continue 4080 fi 4081 ac_cv_prog_CC="cc" 4082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4083 break 2 4084 fi 4085 done 4086 done 4087 IFS=$as_save_IFS 4088 4089 if test $ac_prog_rejected = yes; then 4090 # We found a bogon in the path, so make sure we never use it. 4091 set dummy $ac_cv_prog_CC 4092 shift 4093 if test $# != 0; then 4094 # We chose a different compiler from the bogus one. 4095 # However, it has the same basename, so the bogon will be chosen 4096 # first if we set CC to just the basename; use the full file name. 4097 shift 4098 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4099 fi 4100 fi 4101 fi ;; 4102 esac 4103 fi 4104 CC=$ac_cv_prog_CC 4105 if test -n "$CC"; then 4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4107 printf "%s\n" "$CC" >&6; } 4108 else 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4110 printf "%s\n" "no" >&6; } 4111 fi 4112 4113 4114 fi 4115 if test -z "$CC"; then 4116 if test -n "$ac_tool_prefix"; then 4117 for ac_prog in cl.exe 4118 do 4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4122 printf %s "checking for $ac_word... " >&6; } 4123 if test ${ac_cv_prog_CC+y} 4124 then : 4125 printf %s "(cached) " >&6 4126 else case e in #( 4127 e) if test -n "$CC"; then 4128 ac_cv_prog_CC="$CC" # Let the user override the test. 4129 else 4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131 for as_dir in $PATH 4132 do 4133 IFS=$as_save_IFS 4134 case $as_dir in #((( 4135 '') as_dir=./ ;; 4136 */) ;; 4137 *) as_dir=$as_dir/ ;; 4138 esac 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4143 break 2 4144 fi 4145 done 4146 done 4147 IFS=$as_save_IFS 4148 4149 fi ;; 4150 esac 4151 fi 4152 CC=$ac_cv_prog_CC 4153 if test -n "$CC"; then 4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4155 printf "%s\n" "$CC" >&6; } 4156 else 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4158 printf "%s\n" "no" >&6; } 4159 fi 4160 4161 4162 test -n "$CC" && break 4163 done 4164 fi 4165 if test -z "$CC"; then 4166 ac_ct_CC=$CC 4167 for ac_prog in cl.exe 4168 do 4169 # Extract the first word of "$ac_prog", so it can be a program name with args. 4170 set dummy $ac_prog; ac_word=$2 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4172 printf %s "checking for $ac_word... " >&6; } 4173 if test ${ac_cv_prog_ac_ct_CC+y} 4174 then : 4175 printf %s "(cached) " >&6 4176 else case e in #( 4177 e) if test -n "$ac_ct_CC"; then 4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4179 else 4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4181 for as_dir in $PATH 4182 do 4183 IFS=$as_save_IFS 4184 case $as_dir in #((( 4185 '') as_dir=./ ;; 4186 */) ;; 4187 *) as_dir=$as_dir/ ;; 4188 esac 4189 for ac_exec_ext in '' $ac_executable_extensions; do 4190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4191 ac_cv_prog_ac_ct_CC="$ac_prog" 4192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4193 break 2 4194 fi 4195 done 4196 done 4197 IFS=$as_save_IFS 4198 4199 fi ;; 4200 esac 4201 fi 4202 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4203 if test -n "$ac_ct_CC"; then 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4205 printf "%s\n" "$ac_ct_CC" >&6; } 4206 else 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208 printf "%s\n" "no" >&6; } 4209 fi 4210 4211 4212 test -n "$ac_ct_CC" && break 4213 done 4214 4215 if test "x$ac_ct_CC" = x; then 4216 CC="" 4217 else 4218 case $cross_compiling:$ac_tool_warned in 4219 yes:) 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4222 ac_tool_warned=yes ;; 4223 esac 4224 CC=$ac_ct_CC 4225 fi 4226 fi 4227 4228 fi 4229 if test -z "$CC"; then 4230 if test -n "$ac_tool_prefix"; then 4231 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4232 set dummy ${ac_tool_prefix}clang; ac_word=$2 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234 printf %s "checking for $ac_word... " >&6; } 4235 if test ${ac_cv_prog_CC+y} 4236 then : 4237 printf %s "(cached) " >&6 4238 else case e in #( 4239 e) if test -n "$CC"; then 4240 ac_cv_prog_CC="$CC" # Let the user override the test. 4241 else 4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4243 for as_dir in $PATH 4244 do 4245 IFS=$as_save_IFS 4246 case $as_dir in #((( 4247 '') as_dir=./ ;; 4248 */) ;; 4249 *) as_dir=$as_dir/ ;; 4250 esac 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_CC="${ac_tool_prefix}clang" 4254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257 done 4258 done 4259 IFS=$as_save_IFS 4260 4261 fi ;; 4262 esac 4263 fi 4264 CC=$ac_cv_prog_CC 4265 if test -n "$CC"; then 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4267 printf "%s\n" "$CC" >&6; } 4268 else 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4270 printf "%s\n" "no" >&6; } 4271 fi 4272 4273 4274 fi 4275 if test -z "$ac_cv_prog_CC"; then 4276 ac_ct_CC=$CC 4277 # Extract the first word of "clang", so it can be a program name with args. 4278 set dummy clang; ac_word=$2 4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4280 printf %s "checking for $ac_word... " >&6; } 4281 if test ${ac_cv_prog_ac_ct_CC+y} 4282 then : 4283 printf %s "(cached) " >&6 4284 else case e in #( 4285 e) if test -n "$ac_ct_CC"; then 4286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4287 else 4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289 for as_dir in $PATH 4290 do 4291 IFS=$as_save_IFS 4292 case $as_dir in #((( 4293 '') as_dir=./ ;; 4294 */) ;; 4295 *) as_dir=$as_dir/ ;; 4296 esac 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4299 ac_cv_prog_ac_ct_CC="clang" 4300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4301 break 2 4302 fi 4303 done 4304 done 4305 IFS=$as_save_IFS 4306 4307 fi ;; 4308 esac 4309 fi 4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4311 if test -n "$ac_ct_CC"; then 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4313 printf "%s\n" "$ac_ct_CC" >&6; } 4314 else 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4316 printf "%s\n" "no" >&6; } 4317 fi 4318 4319 if test "x$ac_ct_CC" = x; then 4320 CC="" 4321 else 4322 case $cross_compiling:$ac_tool_warned in 4323 yes:) 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4326 ac_tool_warned=yes ;; 4327 esac 4328 CC=$ac_ct_CC 4329 fi 4330 else 4331 CC="$ac_cv_prog_CC" 4332 fi 4333 4334 fi 4335 4336 4337 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4339 as_fn_error $? "no acceptable C compiler found in \$PATH 4340 See 'config.log' for more details" "$LINENO" 5; } 4341 4342 # Provide some information about the compiler. 4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4344 set X $ac_compile 4345 ac_compiler=$2 4346 for ac_option in --version -v -V -qversion -version; do 4347 { { ac_try="$ac_compiler $ac_option >&5" 4348 case "(($ac_try" in 4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4350 *) ac_try_echo=$ac_try;; 4351 esac 4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4353 printf "%s\n" "$ac_try_echo"; } >&5 4354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4355 ac_status=$? 4356 if test -s conftest.err; then 4357 sed '10a\ 4358 ... rest of stderr output deleted ... 4359 10q' conftest.err >conftest.er1 4360 cat conftest.er1 >&5 4361 fi 4362 rm -f conftest.er1 conftest.err 4363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4364 test $ac_status = 0; } 4365 done 4366 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368 /* end confdefs.h. */ 4369 4370 int 4371 main (void) 4372 { 4373 4374 ; 4375 return 0; 4376 } 4377 _ACEOF 4378 ac_clean_files_save=$ac_clean_files 4379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4380 # Try to create an executable without -o first, disregard a.out. 4381 # It will help us diagnose broken compilers, and finding out an intuition 4382 # of exeext. 4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4384 printf %s "checking whether the C compiler works... " >&6; } 4385 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4386 4387 # The possible output files: 4388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4389 4390 ac_rmfiles= 4391 for ac_file in $ac_files 4392 do 4393 case $ac_file in 4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4395 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4396 esac 4397 done 4398 rm -f $ac_rmfiles 4399 4400 if { { ac_try="$ac_link_default" 4401 case "(($ac_try" in 4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4403 *) ac_try_echo=$ac_try;; 4404 esac 4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4406 printf "%s\n" "$ac_try_echo"; } >&5 4407 (eval "$ac_link_default") 2>&5 4408 ac_status=$? 4409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4410 test $ac_status = 0; } 4411 then : 4412 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4413 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4414 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4415 # so that the user can short-circuit this test for compilers unknown to 4416 # Autoconf. 4417 for ac_file in $ac_files '' 4418 do 4419 test -f "$ac_file" || continue 4420 case $ac_file in 4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4422 ;; 4423 [ab].out ) 4424 # We found the default executable, but exeext='' is most 4425 # certainly right. 4426 break;; 4427 *.* ) 4428 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4429 then :; else 4430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4431 fi 4432 # We set ac_cv_exeext here because the later test for it is not 4433 # safe: cross compilers may not add the suffix if given an '-o' 4434 # argument, so we may need to know it at that point already. 4435 # Even if this section looks crufty: it has the advantage of 4436 # actually working. 4437 break;; 4438 * ) 4439 break;; 4440 esac 4441 done 4442 test "$ac_cv_exeext" = no && ac_cv_exeext= 4443 4444 else case e in #( 4445 e) ac_file='' ;; 4446 esac 4447 fi 4448 if test -z "$ac_file" 4449 then : 4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451 printf "%s\n" "no" >&6; } 4452 printf "%s\n" "$as_me: failed program was:" >&5 4453 sed 's/^/| /' conftest.$ac_ext >&5 4454 4455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4456 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4457 as_fn_error 77 "C compiler cannot create executables 4458 See 'config.log' for more details" "$LINENO" 5; } 4459 else case e in #( 4460 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4461 printf "%s\n" "yes" >&6; } ;; 4462 esac 4463 fi 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4465 printf %s "checking for C compiler default output file name... " >&6; } 4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4467 printf "%s\n" "$ac_file" >&6; } 4468 ac_exeext=$ac_cv_exeext 4469 4470 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4471 ac_clean_files=$ac_clean_files_save 4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4473 printf %s "checking for suffix of executables... " >&6; } 4474 if { { ac_try="$ac_link" 4475 case "(($ac_try" in 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4477 *) ac_try_echo=$ac_try;; 4478 esac 4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4480 printf "%s\n" "$ac_try_echo"; } >&5 4481 (eval "$ac_link") 2>&5 4482 ac_status=$? 4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4484 test $ac_status = 0; } 4485 then : 4486 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4487 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4488 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4489 # 'rm'. 4490 for ac_file in conftest.exe conftest conftest.*; do 4491 test -f "$ac_file" || continue 4492 case $ac_file in 4493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4495 break;; 4496 * ) break;; 4497 esac 4498 done 4499 else case e in #( 4500 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4501 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4502 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4503 See 'config.log' for more details" "$LINENO" 5; } ;; 4504 esac 4505 fi 4506 rm -f conftest conftest$ac_cv_exeext 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4508 printf "%s\n" "$ac_cv_exeext" >&6; } 4509 4510 rm -f conftest.$ac_ext 4511 EXEEXT=$ac_cv_exeext 4512 ac_exeext=$EXEEXT 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514 /* end confdefs.h. */ 4515 #include <stdio.h> 4516 int 4517 main (void) 4518 { 4519 FILE *f = fopen ("conftest.out", "w"); 4520 if (!f) 4521 return 1; 4522 return ferror (f) || fclose (f) != 0; 4523 4524 ; 4525 return 0; 4526 } 4527 _ACEOF 4528 ac_clean_files="$ac_clean_files conftest.out" 4529 # Check that the compiler produces executables we can run. If not, either 4530 # the compiler is broken, or we cross compile. 4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4532 printf %s "checking whether we are cross compiling... " >&6; } 4533 if test "$cross_compiling" != yes; then 4534 { { ac_try="$ac_link" 4535 case "(($ac_try" in 4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4537 *) ac_try_echo=$ac_try;; 4538 esac 4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4540 printf "%s\n" "$ac_try_echo"; } >&5 4541 (eval "$ac_link") 2>&5 4542 ac_status=$? 4543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4544 test $ac_status = 0; } 4545 if { ac_try='./conftest$ac_cv_exeext' 4546 { { case "(($ac_try" in 4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4548 *) ac_try_echo=$ac_try;; 4549 esac 4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4551 printf "%s\n" "$ac_try_echo"; } >&5 4552 (eval "$ac_try") 2>&5 4553 ac_status=$? 4554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4555 test $ac_status = 0; }; }; then 4556 cross_compiling=no 4557 else 4558 if test "$cross_compiling" = maybe; then 4559 cross_compiling=yes 4560 else 4561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4562 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4563 as_fn_error 77 "cannot run C compiled programs. 4564 If you meant to cross compile, use '--host'. 4565 See 'config.log' for more details" "$LINENO" 5; } 4566 fi 4567 fi 4568 fi 4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4570 printf "%s\n" "$cross_compiling" >&6; } 4571 4572 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4573 conftest.o conftest.obj conftest.out 4574 ac_clean_files=$ac_clean_files_save 4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4576 printf %s "checking for suffix of object files... " >&6; } 4577 if test ${ac_cv_objext+y} 4578 then : 4579 printf %s "(cached) " >&6 4580 else case e in #( 4581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4582 /* end confdefs.h. */ 4583 4584 int 4585 main (void) 4586 { 4587 4588 ; 4589 return 0; 4590 } 4591 _ACEOF 4592 rm -f conftest.o conftest.obj 4593 if { { ac_try="$ac_compile" 4594 case "(($ac_try" in 4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4596 *) ac_try_echo=$ac_try;; 4597 esac 4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4599 printf "%s\n" "$ac_try_echo"; } >&5 4600 (eval "$ac_compile") 2>&5 4601 ac_status=$? 4602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4603 test $ac_status = 0; } 4604 then : 4605 for ac_file in conftest.o conftest.obj conftest.*; do 4606 test -f "$ac_file" || continue; 4607 case $ac_file in 4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4610 break;; 4611 esac 4612 done 4613 else case e in #( 4614 e) printf "%s\n" "$as_me: failed program was:" >&5 4615 sed 's/^/| /' conftest.$ac_ext >&5 4616 4617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4618 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4619 as_fn_error $? "cannot compute suffix of object files: cannot compile 4620 See 'config.log' for more details" "$LINENO" 5; } ;; 4621 esac 4622 fi 4623 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4624 esac 4625 fi 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4627 printf "%s\n" "$ac_cv_objext" >&6; } 4628 OBJEXT=$ac_cv_objext 4629 ac_objext=$OBJEXT 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4631 printf %s "checking whether the compiler supports GNU C... " >&6; } 4632 if test ${ac_cv_c_compiler_gnu+y} 4633 then : 4634 printf %s "(cached) " >&6 4635 else case e in #( 4636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4637 /* end confdefs.h. */ 4638 4639 int 4640 main (void) 4641 { 4642 #ifndef __GNUC__ 4643 choke me 4644 #endif 4645 4646 ; 4647 return 0; 4648 } 4649 _ACEOF 4650 if ac_fn_c_try_compile "$LINENO" 4651 then : 4652 ac_compiler_gnu=yes 4653 else case e in #( 4654 e) ac_compiler_gnu=no ;; 4655 esac 4656 fi 4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4658 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4659 ;; 4660 esac 4661 fi 4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4663 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4665 4666 if test $ac_compiler_gnu = yes; then 4667 GCC=yes 4668 else 4669 GCC= 4670 fi 4671 ac_test_CFLAGS=${CFLAGS+y} 4672 ac_save_CFLAGS=$CFLAGS 4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4674 printf %s "checking whether $CC accepts -g... " >&6; } 4675 if test ${ac_cv_prog_cc_g+y} 4676 then : 4677 printf %s "(cached) " >&6 4678 else case e in #( 4679 e) ac_save_c_werror_flag=$ac_c_werror_flag 4680 ac_c_werror_flag=yes 4681 ac_cv_prog_cc_g=no 4682 CFLAGS="-g" 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684 /* end confdefs.h. */ 4685 4686 int 4687 main (void) 4688 { 4689 4690 ; 4691 return 0; 4692 } 4693 _ACEOF 4694 if ac_fn_c_try_compile "$LINENO" 4695 then : 4696 ac_cv_prog_cc_g=yes 4697 else case e in #( 4698 e) CFLAGS="" 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700 /* end confdefs.h. */ 4701 4702 int 4703 main (void) 4704 { 4705 4706 ; 4707 return 0; 4708 } 4709 _ACEOF 4710 if ac_fn_c_try_compile "$LINENO" 4711 then : 4712 4713 else case e in #( 4714 e) ac_c_werror_flag=$ac_save_c_werror_flag 4715 CFLAGS="-g" 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717 /* end confdefs.h. */ 4718 4719 int 4720 main (void) 4721 { 4722 4723 ; 4724 return 0; 4725 } 4726 _ACEOF 4727 if ac_fn_c_try_compile "$LINENO" 4728 then : 4729 ac_cv_prog_cc_g=yes 4730 fi 4731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4732 esac 4733 fi 4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4735 esac 4736 fi 4737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4738 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4739 esac 4740 fi 4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4742 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4743 if test $ac_test_CFLAGS; then 4744 CFLAGS=$ac_save_CFLAGS 4745 elif test $ac_cv_prog_cc_g = yes; then 4746 if test "$GCC" = yes; then 4747 CFLAGS="-g -O2" 4748 else 4749 CFLAGS="-g" 4750 fi 4751 else 4752 if test "$GCC" = yes; then 4753 CFLAGS="-O2" 4754 else 4755 CFLAGS= 4756 fi 4757 fi 4758 ac_prog_cc_stdc=no 4759 if test x$ac_prog_cc_stdc = xno 4760 then : 4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4762 printf %s "checking for $CC option to enable C11 features... " >&6; } 4763 if test ${ac_cv_prog_cc_c11+y} 4764 then : 4765 printf %s "(cached) " >&6 4766 else case e in #( 4767 e) ac_cv_prog_cc_c11=no 4768 ac_save_CC=$CC 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770 /* end confdefs.h. */ 4771 $ac_c_conftest_c11_program 4772 _ACEOF 4773 for ac_arg in '' -std=gnu11 4774 do 4775 CC="$ac_save_CC $ac_arg" 4776 if ac_fn_c_try_compile "$LINENO" 4777 then : 4778 ac_cv_prog_cc_c11=$ac_arg 4779 fi 4780 rm -f core conftest.err conftest.$ac_objext conftest.beam 4781 test "x$ac_cv_prog_cc_c11" != "xno" && break 4782 done 4783 rm -f conftest.$ac_ext 4784 CC=$ac_save_CC ;; 4785 esac 4786 fi 4787 4788 if test "x$ac_cv_prog_cc_c11" = xno 4789 then : 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4791 printf "%s\n" "unsupported" >&6; } 4792 else case e in #( 4793 e) if test "x$ac_cv_prog_cc_c11" = x 4794 then : 4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4796 printf "%s\n" "none needed" >&6; } 4797 else case e in #( 4798 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4799 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4800 CC="$CC $ac_cv_prog_cc_c11" ;; 4801 esac 4802 fi 4803 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4804 ac_prog_cc_stdc=c11 ;; 4805 esac 4806 fi 4807 fi 4808 if test x$ac_prog_cc_stdc = xno 4809 then : 4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4811 printf %s "checking for $CC option to enable C99 features... " >&6; } 4812 if test ${ac_cv_prog_cc_c99+y} 4813 then : 4814 printf %s "(cached) " >&6 4815 else case e in #( 4816 e) ac_cv_prog_cc_c99=no 4817 ac_save_CC=$CC 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819 /* end confdefs.h. */ 4820 $ac_c_conftest_c99_program 4821 _ACEOF 4822 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4823 do 4824 CC="$ac_save_CC $ac_arg" 4825 if ac_fn_c_try_compile "$LINENO" 4826 then : 4827 ac_cv_prog_cc_c99=$ac_arg 4828 fi 4829 rm -f core conftest.err conftest.$ac_objext conftest.beam 4830 test "x$ac_cv_prog_cc_c99" != "xno" && break 4831 done 4832 rm -f conftest.$ac_ext 4833 CC=$ac_save_CC ;; 4834 esac 4835 fi 4836 4837 if test "x$ac_cv_prog_cc_c99" = xno 4838 then : 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4840 printf "%s\n" "unsupported" >&6; } 4841 else case e in #( 4842 e) if test "x$ac_cv_prog_cc_c99" = x 4843 then : 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4845 printf "%s\n" "none needed" >&6; } 4846 else case e in #( 4847 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4848 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4849 CC="$CC $ac_cv_prog_cc_c99" ;; 4850 esac 4851 fi 4852 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4853 ac_prog_cc_stdc=c99 ;; 4854 esac 4855 fi 4856 fi 4857 if test x$ac_prog_cc_stdc = xno 4858 then : 4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4860 printf %s "checking for $CC option to enable C89 features... " >&6; } 4861 if test ${ac_cv_prog_cc_c89+y} 4862 then : 4863 printf %s "(cached) " >&6 4864 else case e in #( 4865 e) ac_cv_prog_cc_c89=no 4866 ac_save_CC=$CC 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868 /* end confdefs.h. */ 4869 $ac_c_conftest_c89_program 4870 _ACEOF 4871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4872 do 4873 CC="$ac_save_CC $ac_arg" 4874 if ac_fn_c_try_compile "$LINENO" 4875 then : 4876 ac_cv_prog_cc_c89=$ac_arg 4877 fi 4878 rm -f core conftest.err conftest.$ac_objext conftest.beam 4879 test "x$ac_cv_prog_cc_c89" != "xno" && break 4880 done 4881 rm -f conftest.$ac_ext 4882 CC=$ac_save_CC ;; 4883 esac 4884 fi 4885 4886 if test "x$ac_cv_prog_cc_c89" = xno 4887 then : 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4889 printf "%s\n" "unsupported" >&6; } 4890 else case e in #( 4891 e) if test "x$ac_cv_prog_cc_c89" = x 4892 then : 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4894 printf "%s\n" "none needed" >&6; } 4895 else case e in #( 4896 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4897 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4898 CC="$CC $ac_cv_prog_cc_c89" ;; 4899 esac 4900 fi 4901 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4902 ac_prog_cc_stdc=c89 ;; 4903 esac 4904 fi 4905 fi 4906 4907 ac_ext=c 4908 ac_cpp='$CPP $CPPFLAGS' 4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4912 4913 4914 ac_ext=c 4915 ac_cpp='$CPP $CPPFLAGS' 4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4920 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4921 if test ${am_cv_prog_cc_c_o+y} 4922 then : 4923 printf %s "(cached) " >&6 4924 else case e in #( 4925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926 /* end confdefs.h. */ 4927 4928 int 4929 main (void) 4930 { 4931 4932 ; 4933 return 0; 4934 } 4935 _ACEOF 4936 # Make sure it works both with $CC and with simple cc. 4937 # Following AC_PROG_CC_C_O, we do the test twice because some 4938 # compilers refuse to overwrite an existing .o file with -o, 4939 # though they will create one. 4940 am_cv_prog_cc_c_o=yes 4941 for am_i in 1 2; do 4942 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4943 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4944 ac_status=$? 4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4946 (exit $ac_status); } \ 4947 && test -f conftest2.$ac_objext; then 4948 : OK 4949 else 4950 am_cv_prog_cc_c_o=no 4951 break 4952 fi 4953 done 4954 # aligned with autoconf, so not including core; see bug#72225. 4955 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4956 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4957 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4958 unset am_i ;; 4959 esac 4960 fi 4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4962 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4963 if test "$am_cv_prog_cc_c_o" != yes; then 4964 # Losing compiler, so override with the script. 4965 # FIXME: It is wrong to rewrite CC. 4966 # But if we don't then we get into trouble of one sort or another. 4967 # A longer-term fix would be to have automake use am__CC in this case, 4968 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4969 CC="$am_aux_dir/compile $CC" 4970 fi 4971 ac_ext=c 4972 ac_cpp='$CPP $CPPFLAGS' 4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4976 4977 4978 depcc="$CC" am_compiler_list= 4979 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4981 printf %s "checking dependency style of $depcc... " >&6; } 4982 if test ${am_cv_CC_dependencies_compiler_type+y} 4983 then : 4984 printf %s "(cached) " >&6 4985 else case e in #( 4986 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4987 # We make a subdir and do the tests there. Otherwise we can end up 4988 # making bogus files that we don't know about and never remove. For 4989 # instance it was reported that on HP-UX the gcc test will end up 4990 # making a dummy file named 'D' -- because '-MD' means "put the output 4991 # in D". 4992 rm -rf conftest.dir 4993 mkdir conftest.dir 4994 # Copy depcomp to subdir because otherwise we won't find it if we're 4995 # using a relative directory. 4996 cp "$am_depcomp" conftest.dir 4997 cd conftest.dir 4998 # We will build objects and dependencies in a subdirectory because 4999 # it helps to detect inapplicable dependency modes. For instance 5000 # both Tru64's cc and ICC support -MD to output dependencies as a 5001 # side effect of compilation, but ICC will put the dependencies in 5002 # the current directory while Tru64 will put them in the object 5003 # directory. 5004 mkdir sub 5005 5006 am_cv_CC_dependencies_compiler_type=none 5007 if test "$am_compiler_list" = ""; then 5008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5009 fi 5010 am__universal=false 5011 case " $depcc " in #( 5012 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5013 esac 5014 5015 for depmode in $am_compiler_list; do 5016 # Setup a source with many dependencies, because some compilers 5017 # like to wrap large dependency lists on column 80 (with \), and 5018 # we should not choose a depcomp mode which is confused by this. 5019 # 5020 # We need to recreate these files for each test, as the compiler may 5021 # overwrite some of them when testing with obscure command lines. 5022 # This happens at least with the AIX C compiler. 5023 : > sub/conftest.c 5024 for i in 1 2 3 4 5 6; do 5025 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5026 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5027 # Solaris 10 /bin/sh. 5028 echo '/* dummy */' > sub/conftst$i.h 5029 done 5030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5031 5032 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5033 # mode. It turns out that the SunPro C++ compiler does not properly 5034 # handle '-M -o', and we need to detect this. Also, some Intel 5035 # versions had trouble with output in subdirs. 5036 am__obj=sub/conftest.${OBJEXT-o} 5037 am__minus_obj="-o $am__obj" 5038 case $depmode in 5039 gcc) 5040 # This depmode causes a compiler race in universal mode. 5041 test "$am__universal" = false || continue 5042 ;; 5043 nosideeffect) 5044 # After this tag, mechanisms are not by side-effect, so they'll 5045 # only be used when explicitly requested. 5046 if test "x$enable_dependency_tracking" = xyes; then 5047 continue 5048 else 5049 break 5050 fi 5051 ;; 5052 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5053 # This compiler won't grok '-c -o', but also, the minuso test has 5054 # not run yet. These depmodes are late enough in the game, and 5055 # so weak that their functioning should not be impacted. 5056 am__obj=conftest.${OBJEXT-o} 5057 am__minus_obj= 5058 ;; 5059 none) break ;; 5060 esac 5061 if depmode=$depmode \ 5062 source=sub/conftest.c object=$am__obj \ 5063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5065 >/dev/null 2>conftest.err && 5066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5070 # icc doesn't choke on unknown options, it will just issue warnings 5071 # or remarks (even with -Werror). So we grep stderr for any message 5072 # that says an option was ignored or not supported. 5073 # When given -MP, icc 7.0 and 7.1 complain thus: 5074 # icc: Command line warning: ignoring option '-M'; no argument required 5075 # The diagnosis changed in icc 8.0: 5076 # icc: Command line remark: option '-MP' not supported 5077 if (grep 'ignoring option' conftest.err || 5078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5079 am_cv_CC_dependencies_compiler_type=$depmode 5080 break 5081 fi 5082 fi 5083 done 5084 5085 cd .. 5086 rm -rf conftest.dir 5087 else 5088 am_cv_CC_dependencies_compiler_type=none 5089 fi 5090 ;; 5091 esac 5092 fi 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5094 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5096 5097 if 5098 test "x$enable_dependency_tracking" != xno \ 5099 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5100 am__fastdepCC_TRUE= 5101 am__fastdepCC_FALSE='#' 5102 else 5103 am__fastdepCC_TRUE='#' 5104 am__fastdepCC_FALSE= 5105 fi 5106 5107 5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5109 printf %s "checking for a sed that does not truncate output... " >&6; } 5110 if test ${ac_cv_path_SED+y} 5111 then : 5112 printf %s "(cached) " >&6 5113 else case e in #( 5114 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5115 for ac_i in 1 2 3 4 5 6 7; do 5116 ac_script="$ac_script$as_nl$ac_script" 5117 done 5118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5119 { ac_script=; unset ac_script;} 5120 if test -z "$SED"; then 5121 ac_path_SED_found=false 5122 # Loop through the user's path and test for each of PROGNAME-LIST 5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5124 for as_dir in $PATH 5125 do 5126 IFS=$as_save_IFS 5127 case $as_dir in #((( 5128 '') as_dir=./ ;; 5129 */) ;; 5130 *) as_dir=$as_dir/ ;; 5131 esac 5132 for ac_prog in sed gsed 5133 do 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5136 as_fn_executable_p "$ac_path_SED" || continue 5137 # Check for GNU ac_path_SED and select it if it is found. 5138 # Check for GNU $ac_path_SED 5139 case `"$ac_path_SED" --version 2>&1` in #( 5140 *GNU*) 5141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5142 #( 5143 *) 5144 ac_count=0 5145 printf %s 0123456789 >"conftest.in" 5146 while : 5147 do 5148 cat "conftest.in" "conftest.in" >"conftest.tmp" 5149 mv "conftest.tmp" "conftest.in" 5150 cp "conftest.in" "conftest.nl" 5151 printf "%s\n" '' >> "conftest.nl" 5152 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5154 as_fn_arith $ac_count + 1 && ac_count=$as_val 5155 if test $ac_count -gt ${ac_path_SED_max-0}; then 5156 # Best one so far, save it but keep looking for a better one 5157 ac_cv_path_SED="$ac_path_SED" 5158 ac_path_SED_max=$ac_count 5159 fi 5160 # 10*(2^10) chars as input seems more than enough 5161 test $ac_count -gt 10 && break 5162 done 5163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5164 esac 5165 5166 $ac_path_SED_found && break 3 5167 done 5168 done 5169 done 5170 IFS=$as_save_IFS 5171 if test -z "$ac_cv_path_SED"; then 5172 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5173 fi 5174 else 5175 ac_cv_path_SED=$SED 5176 fi 5177 ;; 5178 esac 5179 fi 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5181 printf "%s\n" "$ac_cv_path_SED" >&6; } 5182 SED="$ac_cv_path_SED" 5183 rm -f conftest.sed 5184 5185 test -z "$SED" && SED=sed 5186 Xsed="$SED -e 1s/^X//" 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5199 printf %s "checking for grep that handles long lines and -e... " >&6; } 5200 if test ${ac_cv_path_GREP+y} 5201 then : 5202 printf %s "(cached) " >&6 5203 else case e in #( 5204 e) if test -z "$GREP"; then 5205 ac_path_GREP_found=false 5206 # Loop through the user's path and test for each of PROGNAME-LIST 5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5209 do 5210 IFS=$as_save_IFS 5211 case $as_dir in #((( 5212 '') as_dir=./ ;; 5213 */) ;; 5214 *) as_dir=$as_dir/ ;; 5215 esac 5216 for ac_prog in grep ggrep 5217 do 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5220 as_fn_executable_p "$ac_path_GREP" || continue 5221 # Check for GNU ac_path_GREP and select it if it is found. 5222 # Check for GNU $ac_path_GREP 5223 case `"$ac_path_GREP" --version 2>&1` in #( 5224 *GNU*) 5225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5226 #( 5227 *) 5228 ac_count=0 5229 printf %s 0123456789 >"conftest.in" 5230 while : 5231 do 5232 cat "conftest.in" "conftest.in" >"conftest.tmp" 5233 mv "conftest.tmp" "conftest.in" 5234 cp "conftest.in" "conftest.nl" 5235 printf "%s\n" 'GREP' >> "conftest.nl" 5236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5238 as_fn_arith $ac_count + 1 && ac_count=$as_val 5239 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5240 # Best one so far, save it but keep looking for a better one 5241 ac_cv_path_GREP="$ac_path_GREP" 5242 ac_path_GREP_max=$ac_count 5243 fi 5244 # 10*(2^10) chars as input seems more than enough 5245 test $ac_count -gt 10 && break 5246 done 5247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5248 esac 5249 5250 $ac_path_GREP_found && break 3 5251 done 5252 done 5253 done 5254 IFS=$as_save_IFS 5255 if test -z "$ac_cv_path_GREP"; then 5256 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5257 fi 5258 else 5259 ac_cv_path_GREP=$GREP 5260 fi 5261 ;; 5262 esac 5263 fi 5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5265 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5266 GREP="$ac_cv_path_GREP" 5267 5268 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5270 printf %s "checking for egrep... " >&6; } 5271 if test ${ac_cv_path_EGREP+y} 5272 then : 5273 printf %s "(cached) " >&6 5274 else case e in #( 5275 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5276 then ac_cv_path_EGREP="$GREP -E" 5277 else 5278 if test -z "$EGREP"; then 5279 ac_path_EGREP_found=false 5280 # Loop through the user's path and test for each of PROGNAME-LIST 5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5283 do 5284 IFS=$as_save_IFS 5285 case $as_dir in #((( 5286 '') as_dir=./ ;; 5287 */) ;; 5288 *) as_dir=$as_dir/ ;; 5289 esac 5290 for ac_prog in egrep 5291 do 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5294 as_fn_executable_p "$ac_path_EGREP" || continue 5295 # Check for GNU ac_path_EGREP and select it if it is found. 5296 # Check for GNU $ac_path_EGREP 5297 case `"$ac_path_EGREP" --version 2>&1` in #( 5298 *GNU*) 5299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5300 #( 5301 *) 5302 ac_count=0 5303 printf %s 0123456789 >"conftest.in" 5304 while : 5305 do 5306 cat "conftest.in" "conftest.in" >"conftest.tmp" 5307 mv "conftest.tmp" "conftest.in" 5308 cp "conftest.in" "conftest.nl" 5309 printf "%s\n" 'EGREP' >> "conftest.nl" 5310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5312 as_fn_arith $ac_count + 1 && ac_count=$as_val 5313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5314 # Best one so far, save it but keep looking for a better one 5315 ac_cv_path_EGREP="$ac_path_EGREP" 5316 ac_path_EGREP_max=$ac_count 5317 fi 5318 # 10*(2^10) chars as input seems more than enough 5319 test $ac_count -gt 10 && break 5320 done 5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5322 esac 5323 5324 $ac_path_EGREP_found && break 3 5325 done 5326 done 5327 done 5328 IFS=$as_save_IFS 5329 if test -z "$ac_cv_path_EGREP"; then 5330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5331 fi 5332 else 5333 ac_cv_path_EGREP=$EGREP 5334 fi 5335 5336 fi ;; 5337 esac 5338 fi 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5340 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5341 EGREP="$ac_cv_path_EGREP" 5342 5343 EGREP_TRADITIONAL=$EGREP 5344 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5345 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5347 printf %s "checking for fgrep... " >&6; } 5348 if test ${ac_cv_path_FGREP+y} 5349 then : 5350 printf %s "(cached) " >&6 5351 else case e in #( 5352 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5353 then ac_cv_path_FGREP="$GREP -F" 5354 else 5355 if test -z "$FGREP"; then 5356 ac_path_FGREP_found=false 5357 # Loop through the user's path and test for each of PROGNAME-LIST 5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5360 do 5361 IFS=$as_save_IFS 5362 case $as_dir in #((( 5363 '') as_dir=./ ;; 5364 */) ;; 5365 *) as_dir=$as_dir/ ;; 5366 esac 5367 for ac_prog in fgrep 5368 do 5369 for ac_exec_ext in '' $ac_executable_extensions; do 5370 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5371 as_fn_executable_p "$ac_path_FGREP" || continue 5372 # Check for GNU ac_path_FGREP and select it if it is found. 5373 # Check for GNU $ac_path_FGREP 5374 case `"$ac_path_FGREP" --version 2>&1` in #( 5375 *GNU*) 5376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5377 #( 5378 *) 5379 ac_count=0 5380 printf %s 0123456789 >"conftest.in" 5381 while : 5382 do 5383 cat "conftest.in" "conftest.in" >"conftest.tmp" 5384 mv "conftest.tmp" "conftest.in" 5385 cp "conftest.in" "conftest.nl" 5386 printf "%s\n" 'FGREP' >> "conftest.nl" 5387 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5389 as_fn_arith $ac_count + 1 && ac_count=$as_val 5390 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5391 # Best one so far, save it but keep looking for a better one 5392 ac_cv_path_FGREP="$ac_path_FGREP" 5393 ac_path_FGREP_max=$ac_count 5394 fi 5395 # 10*(2^10) chars as input seems more than enough 5396 test $ac_count -gt 10 && break 5397 done 5398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5399 esac 5400 5401 $ac_path_FGREP_found && break 3 5402 done 5403 done 5404 done 5405 IFS=$as_save_IFS 5406 if test -z "$ac_cv_path_FGREP"; then 5407 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5408 fi 5409 else 5410 ac_cv_path_FGREP=$FGREP 5411 fi 5412 5413 fi ;; 5414 esac 5415 fi 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5417 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5418 FGREP="$ac_cv_path_FGREP" 5419 5420 5421 test -z "$GREP" && GREP=grep 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 # Check whether --with-gnu-ld was given. 5442 if test ${with_gnu_ld+y} 5443 then : 5444 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5445 else case e in #( 5446 e) with_gnu_ld=no ;; 5447 esac 5448 fi 5449 5450 ac_prog=ld 5451 if test yes = "$GCC"; then 5452 # Check if gcc -print-prog-name=ld gives a path. 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5454 printf %s "checking for ld used by $CC... " >&6; } 5455 case $host in 5456 *-*-mingw* | *-*-windows*) 5457 # gcc leaves a trailing carriage return, which upsets mingw 5458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5459 *) 5460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5461 esac 5462 case $ac_prog in 5463 # Accept absolute paths. 5464 [\\/]* | ?:[\\/]*) 5465 re_direlt='/[^/][^/]*/\.\./' 5466 # Canonicalize the pathname of ld 5467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5470 done 5471 test -z "$LD" && LD=$ac_prog 5472 ;; 5473 "") 5474 # If it fails, then pretend we aren't using GCC. 5475 ac_prog=ld 5476 ;; 5477 *) 5478 # If it is relative, then search for the first ld in PATH. 5479 with_gnu_ld=unknown 5480 ;; 5481 esac 5482 elif test yes = "$with_gnu_ld"; then 5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5484 printf %s "checking for GNU ld... " >&6; } 5485 else 5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5487 printf %s "checking for non-GNU ld... " >&6; } 5488 fi 5489 if test ${lt_cv_path_LD+y} 5490 then : 5491 printf %s "(cached) " >&6 5492 else case e in #( 5493 e) if test -z "$LD"; then 5494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5495 for ac_dir in $PATH; do 5496 IFS=$lt_save_ifs 5497 test -z "$ac_dir" && ac_dir=. 5498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5499 lt_cv_path_LD=$ac_dir/$ac_prog 5500 # Check to see if the program is GNU ld. I'd rather use --version, 5501 # but apparently some variants of GNU ld only accept -v. 5502 # Break only if it was the GNU/non-GNU ld that we prefer. 5503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5504 *GNU* | *'with BFD'*) 5505 test no != "$with_gnu_ld" && break 5506 ;; 5507 *) 5508 test yes != "$with_gnu_ld" && break 5509 ;; 5510 esac 5511 fi 5512 done 5513 IFS=$lt_save_ifs 5514 else 5515 lt_cv_path_LD=$LD # Let the user override the test with a path. 5516 fi ;; 5517 esac 5518 fi 5519 5520 LD=$lt_cv_path_LD 5521 if test -n "$LD"; then 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5523 printf "%s\n" "$LD" >&6; } 5524 else 5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526 printf "%s\n" "no" >&6; } 5527 fi 5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5530 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5531 if test ${lt_cv_prog_gnu_ld+y} 5532 then : 5533 printf %s "(cached) " >&6 5534 else case e in #( 5535 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5536 case `$LD -v 2>&1 </dev/null` in 5537 *GNU* | *'with BFD'*) 5538 lt_cv_prog_gnu_ld=yes 5539 ;; 5540 *) 5541 lt_cv_prog_gnu_ld=no 5542 ;; 5543 esac ;; 5544 esac 5545 fi 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5547 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5548 with_gnu_ld=$lt_cv_prog_gnu_ld 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5559 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5560 if test ${lt_cv_path_NM+y} 5561 then : 5562 printf %s "(cached) " >&6 5563 else case e in #( 5564 e) if test -n "$NM"; then 5565 # Let the user override the test. 5566 lt_cv_path_NM=$NM 5567 else 5568 lt_nm_to_check=${ac_tool_prefix}nm 5569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5570 lt_nm_to_check="$lt_nm_to_check nm" 5571 fi 5572 for lt_tmp_nm in $lt_nm_to_check; do 5573 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5575 IFS=$lt_save_ifs 5576 test -z "$ac_dir" && ac_dir=. 5577 tmp_nm=$ac_dir/$lt_tmp_nm 5578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5579 # Check to see if the nm accepts a BSD-compat flag. 5580 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5581 # nm: unknown option "B" ignored 5582 # Tru64's nm complains that /dev/null is an invalid object file 5583 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5584 case $build_os in 5585 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5586 *) lt_bad_file=/dev/null ;; 5587 esac 5588 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5589 *$lt_bad_file* | *'Invalid file or object type'*) 5590 lt_cv_path_NM="$tmp_nm -B" 5591 break 2 5592 ;; 5593 *) 5594 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5595 */dev/null*) 5596 lt_cv_path_NM="$tmp_nm -p" 5597 break 2 5598 ;; 5599 *) 5600 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5601 continue # so that we can try to find one that supports BSD flags 5602 ;; 5603 esac 5604 ;; 5605 esac 5606 fi 5607 done 5608 IFS=$lt_save_ifs 5609 done 5610 : ${lt_cv_path_NM=no} 5611 fi ;; 5612 esac 5613 fi 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5615 printf "%s\n" "$lt_cv_path_NM" >&6; } 5616 if test no != "$lt_cv_path_NM"; then 5617 NM=$lt_cv_path_NM 5618 else 5619 # Didn't find any BSD compatible name lister, look for dumpbin. 5620 if test -n "$DUMPBIN"; then : 5621 # Let the user override the test. 5622 else 5623 if test -n "$ac_tool_prefix"; then 5624 for ac_prog in dumpbin "link -dump" 5625 do 5626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629 printf %s "checking for $ac_word... " >&6; } 5630 if test ${ac_cv_prog_DUMPBIN+y} 5631 then : 5632 printf %s "(cached) " >&6 5633 else case e in #( 5634 e) if test -n "$DUMPBIN"; then 5635 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5636 else 5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5638 for as_dir in $PATH 5639 do 5640 IFS=$as_save_IFS 5641 case $as_dir in #((( 5642 '') as_dir=./ ;; 5643 */) ;; 5644 *) as_dir=$as_dir/ ;; 5645 esac 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652 done 5653 done 5654 IFS=$as_save_IFS 5655 5656 fi ;; 5657 esac 5658 fi 5659 DUMPBIN=$ac_cv_prog_DUMPBIN 5660 if test -n "$DUMPBIN"; then 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5662 printf "%s\n" "$DUMPBIN" >&6; } 5663 else 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665 printf "%s\n" "no" >&6; } 5666 fi 5667 5668 5669 test -n "$DUMPBIN" && break 5670 done 5671 fi 5672 if test -z "$DUMPBIN"; then 5673 ac_ct_DUMPBIN=$DUMPBIN 5674 for ac_prog in dumpbin "link -dump" 5675 do 5676 # Extract the first word of "$ac_prog", so it can be a program name with args. 5677 set dummy $ac_prog; ac_word=$2 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5679 printf %s "checking for $ac_word... " >&6; } 5680 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5681 then : 5682 printf %s "(cached) " >&6 5683 else case e in #( 5684 e) if test -n "$ac_ct_DUMPBIN"; then 5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5686 else 5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688 for as_dir in $PATH 5689 do 5690 IFS=$as_save_IFS 5691 case $as_dir in #((( 5692 '') as_dir=./ ;; 5693 */) ;; 5694 *) as_dir=$as_dir/ ;; 5695 esac 5696 for ac_exec_ext in '' $ac_executable_extensions; do 5697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5698 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5700 break 2 5701 fi 5702 done 5703 done 5704 IFS=$as_save_IFS 5705 5706 fi ;; 5707 esac 5708 fi 5709 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5710 if test -n "$ac_ct_DUMPBIN"; then 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5712 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5713 else 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715 printf "%s\n" "no" >&6; } 5716 fi 5717 5718 5719 test -n "$ac_ct_DUMPBIN" && break 5720 done 5721 5722 if test "x$ac_ct_DUMPBIN" = x; then 5723 DUMPBIN=":" 5724 else 5725 case $cross_compiling:$ac_tool_warned in 5726 yes:) 5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5729 ac_tool_warned=yes ;; 5730 esac 5731 DUMPBIN=$ac_ct_DUMPBIN 5732 fi 5733 fi 5734 5735 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5736 *COFF*) 5737 DUMPBIN="$DUMPBIN -symbols -headers" 5738 ;; 5739 *) 5740 DUMPBIN=: 5741 ;; 5742 esac 5743 fi 5744 5745 if test : != "$DUMPBIN"; then 5746 NM=$DUMPBIN 5747 fi 5748 fi 5749 test -z "$NM" && NM=nm 5750 5751 5752 5753 5754 5755 5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5757 printf %s "checking the name lister ($NM) interface... " >&6; } 5758 if test ${lt_cv_nm_interface+y} 5759 then : 5760 printf %s "(cached) " >&6 5761 else case e in #( 5762 e) lt_cv_nm_interface="BSD nm" 5763 echo "int some_variable = 0;" > conftest.$ac_ext 5764 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5765 (eval "$ac_compile" 2>conftest.err) 5766 cat conftest.err >&5 5767 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5768 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5769 cat conftest.err >&5 5770 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5771 cat conftest.out >&5 5772 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5773 lt_cv_nm_interface="MS dumpbin" 5774 fi 5775 rm -f conftest* ;; 5776 esac 5777 fi 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5779 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5780 5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5782 printf %s "checking whether ln -s works... " >&6; } 5783 LN_S=$as_ln_s 5784 if test "$LN_S" = "ln -s"; then 5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5786 printf "%s\n" "yes" >&6; } 5787 else 5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5789 printf "%s\n" "no, using $LN_S" >&6; } 5790 fi 5791 5792 # find the maximum length of command line arguments 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5794 printf %s "checking the maximum length of command line arguments... " >&6; } 5795 if test ${lt_cv_sys_max_cmd_len+y} 5796 then : 5797 printf %s "(cached) " >&6 5798 else case e in #( 5799 e) i=0 5800 teststring=ABCD 5801 5802 case $build_os in 5803 msdosdjgpp*) 5804 # On DJGPP, this test can blow up pretty badly due to problems in libc 5805 # (any single argument exceeding 2000 bytes causes a buffer overrun 5806 # during glob expansion). Even if it were fixed, the result of this 5807 # check would be larger than it should be. 5808 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5809 ;; 5810 5811 gnu* | ironclad*) 5812 # Under GNU Hurd and Ironclad, this test is not required because there 5813 # is no limit to the length of command line arguments. 5814 # Libtool will interpret -1 as no limit whatsoever 5815 lt_cv_sys_max_cmd_len=-1; 5816 ;; 5817 5818 cygwin* | mingw* | windows* | cegcc*) 5819 # On Win9x/ME, this test blows up -- it succeeds, but takes 5820 # about 5 minutes as the teststring grows exponentially. 5821 # Worse, since 9x/ME are not pre-emptively multitasking, 5822 # you end up with a "frozen" computer, even though with patience 5823 # the test eventually succeeds (with a max line length of 256k). 5824 # Instead, let's just punt: use the minimum linelength reported by 5825 # all of the supported platforms: 8192 (on NT/2K/XP). 5826 lt_cv_sys_max_cmd_len=8192; 5827 ;; 5828 5829 mint*) 5830 # On MiNT this can take a long time and run out of memory. 5831 lt_cv_sys_max_cmd_len=8192; 5832 ;; 5833 5834 amigaos*) 5835 # On AmigaOS with pdksh, this test takes hours, literally. 5836 # So we just punt and use a minimum line length of 8192. 5837 lt_cv_sys_max_cmd_len=8192; 5838 ;; 5839 5840 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5841 # This has been around since 386BSD, at least. Likely further. 5842 if test -x /sbin/sysctl; then 5843 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5844 elif test -x /usr/sbin/sysctl; then 5845 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5846 else 5847 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5848 fi 5849 # And add a safety zone 5850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5852 ;; 5853 5854 interix*) 5855 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5856 lt_cv_sys_max_cmd_len=196608 5857 ;; 5858 5859 os2*) 5860 # The test takes a long time on OS/2. 5861 lt_cv_sys_max_cmd_len=8192 5862 ;; 5863 5864 osf*) 5865 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5866 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5867 # nice to cause kernel panics so lets avoid the loop below. 5868 # First set a reasonable default. 5869 lt_cv_sys_max_cmd_len=16384 5870 # 5871 if test -x /sbin/sysconfig; then 5872 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5873 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5874 esac 5875 fi 5876 ;; 5877 sco3.2v5*) 5878 lt_cv_sys_max_cmd_len=102400 5879 ;; 5880 sysv5* | sco5v6* | sysv4.2uw2*) 5881 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5882 if test -n "$kargmax"; then 5883 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5884 else 5885 lt_cv_sys_max_cmd_len=32768 5886 fi 5887 ;; 5888 *) 5889 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5890 if test -n "$lt_cv_sys_max_cmd_len" && \ 5891 test undefined != "$lt_cv_sys_max_cmd_len"; then 5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5894 else 5895 # Make teststring a little bigger before we do anything with it. 5896 # a 1K string should be a reasonable start. 5897 for i in 1 2 3 4 5 6 7 8; do 5898 teststring=$teststring$teststring 5899 done 5900 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5901 # If test is not a shell built-in, we'll probably end up computing a 5902 # maximum length that is only half of the actual maximum length, but 5903 # we can't tell. 5904 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5905 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5906 test 17 != "$i" # 1/2 MB should be enough 5907 do 5908 i=`expr $i + 1` 5909 teststring=$teststring$teststring 5910 done 5911 # Only check the string length outside the loop. 5912 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5913 teststring= 5914 # Add a significant safety factor because C++ compilers can tack on 5915 # massive amounts of additional arguments before passing them to the 5916 # linker. It appears as though 1/2 is a usable value. 5917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5918 fi 5919 ;; 5920 esac 5921 ;; 5922 esac 5923 fi 5924 5925 if test -n "$lt_cv_sys_max_cmd_len"; then 5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5927 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5928 else 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5930 printf "%s\n" "none" >&6; } 5931 fi 5932 max_cmd_len=$lt_cv_sys_max_cmd_len 5933 5934 5935 5936 5937 5938 5939 : ${CP="cp -f"} 5940 : ${MV="mv -f"} 5941 : ${RM="rm -f"} 5942 5943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5944 lt_unset=unset 5945 else 5946 lt_unset=false 5947 fi 5948 5949 5950 5951 5952 5953 # test EBCDIC or ASCII 5954 case `echo X|tr X '\101'` in 5955 A) # ASCII based system 5956 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5957 lt_SP2NL='tr \040 \012' 5958 lt_NL2SP='tr \015\012 \040\040' 5959 ;; 5960 *) # EBCDIC based system 5961 lt_SP2NL='tr \100 \n' 5962 lt_NL2SP='tr \r\n \100\100' 5963 ;; 5964 esac 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5975 printf %s "checking how to convert $build file names to $host format... " >&6; } 5976 if test ${lt_cv_to_host_file_cmd+y} 5977 then : 5978 printf %s "(cached) " >&6 5979 else case e in #( 5980 e) case $host in 5981 *-*-mingw* ) 5982 case $build in 5983 *-*-mingw* | *-*-windows* ) # actually msys 5984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5985 ;; 5986 *-*-cygwin* ) 5987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5988 ;; 5989 * ) # otherwise, assume *nix 5990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5991 ;; 5992 esac 5993 ;; 5994 *-*-cygwin* ) 5995 case $build in 5996 *-*-mingw* | *-*-windows* ) # actually msys 5997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5998 ;; 5999 *-*-cygwin* ) 6000 lt_cv_to_host_file_cmd=func_convert_file_noop 6001 ;; 6002 * ) # otherwise, assume *nix 6003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6004 ;; 6005 esac 6006 ;; 6007 * ) # unhandled hosts (and "normal" native builds) 6008 lt_cv_to_host_file_cmd=func_convert_file_noop 6009 ;; 6010 esac 6011 ;; 6012 esac 6013 fi 6014 6015 to_host_file_cmd=$lt_cv_to_host_file_cmd 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6017 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6018 6019 6020 6021 6022 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6024 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6025 if test ${lt_cv_to_tool_file_cmd+y} 6026 then : 6027 printf %s "(cached) " >&6 6028 else case e in #( 6029 e) #assume ordinary cross tools, or native build. 6030 lt_cv_to_tool_file_cmd=func_convert_file_noop 6031 case $host in 6032 *-*-mingw* | *-*-windows* ) 6033 case $build in 6034 *-*-mingw* | *-*-windows* ) # actually msys 6035 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6036 ;; 6037 esac 6038 ;; 6039 esac 6040 ;; 6041 esac 6042 fi 6043 6044 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6046 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6047 6048 6049 6050 6051 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6053 printf %s "checking for $LD option to reload object files... " >&6; } 6054 if test ${lt_cv_ld_reload_flag+y} 6055 then : 6056 printf %s "(cached) " >&6 6057 else case e in #( 6058 e) lt_cv_ld_reload_flag='-r' ;; 6059 esac 6060 fi 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6062 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6063 reload_flag=$lt_cv_ld_reload_flag 6064 case $reload_flag in 6065 "" | " "*) ;; 6066 *) reload_flag=" $reload_flag" ;; 6067 esac 6068 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6069 case $host_os in 6070 cygwin* | mingw* | windows* | pw32* | cegcc*) 6071 if test yes != "$GCC"; then 6072 reload_cmds=false 6073 fi 6074 ;; 6075 darwin*) 6076 if test yes = "$GCC"; then 6077 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6078 else 6079 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6080 fi 6081 ;; 6082 esac 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 # Extract the first word of "file", so it can be a program name with args. 6093 set dummy file; ac_word=$2 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6095 printf %s "checking for $ac_word... " >&6; } 6096 if test ${ac_cv_prog_FILECMD+y} 6097 then : 6098 printf %s "(cached) " >&6 6099 else case e in #( 6100 e) if test -n "$FILECMD"; then 6101 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6102 else 6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104 for as_dir in $PATH 6105 do 6106 IFS=$as_save_IFS 6107 case $as_dir in #((( 6108 '') as_dir=./ ;; 6109 */) ;; 6110 *) as_dir=$as_dir/ ;; 6111 esac 6112 for ac_exec_ext in '' $ac_executable_extensions; do 6113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6114 ac_cv_prog_FILECMD="file" 6115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6116 break 2 6117 fi 6118 done 6119 done 6120 IFS=$as_save_IFS 6121 6122 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6123 fi ;; 6124 esac 6125 fi 6126 FILECMD=$ac_cv_prog_FILECMD 6127 if test -n "$FILECMD"; then 6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6129 printf "%s\n" "$FILECMD" >&6; } 6130 else 6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132 printf "%s\n" "no" >&6; } 6133 fi 6134 6135 6136 6137 6138 6139 6140 6141 6142 if test -n "$ac_tool_prefix"; then 6143 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6144 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6146 printf %s "checking for $ac_word... " >&6; } 6147 if test ${ac_cv_prog_OBJDUMP+y} 6148 then : 6149 printf %s "(cached) " >&6 6150 else case e in #( 6151 e) if test -n "$OBJDUMP"; then 6152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6153 else 6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155 for as_dir in $PATH 6156 do 6157 IFS=$as_save_IFS 6158 case $as_dir in #((( 6159 '') as_dir=./ ;; 6160 */) ;; 6161 *) as_dir=$as_dir/ ;; 6162 esac 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6165 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169 done 6170 done 6171 IFS=$as_save_IFS 6172 6173 fi ;; 6174 esac 6175 fi 6176 OBJDUMP=$ac_cv_prog_OBJDUMP 6177 if test -n "$OBJDUMP"; then 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6179 printf "%s\n" "$OBJDUMP" >&6; } 6180 else 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6182 printf "%s\n" "no" >&6; } 6183 fi 6184 6185 6186 fi 6187 if test -z "$ac_cv_prog_OBJDUMP"; then 6188 ac_ct_OBJDUMP=$OBJDUMP 6189 # Extract the first word of "objdump", so it can be a program name with args. 6190 set dummy objdump; ac_word=$2 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6192 printf %s "checking for $ac_word... " >&6; } 6193 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6194 then : 6195 printf %s "(cached) " >&6 6196 else case e in #( 6197 e) if test -n "$ac_ct_OBJDUMP"; then 6198 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6199 else 6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201 for as_dir in $PATH 6202 do 6203 IFS=$as_save_IFS 6204 case $as_dir in #((( 6205 '') as_dir=./ ;; 6206 */) ;; 6207 *) as_dir=$as_dir/ ;; 6208 esac 6209 for ac_exec_ext in '' $ac_executable_extensions; do 6210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6211 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6213 break 2 6214 fi 6215 done 6216 done 6217 IFS=$as_save_IFS 6218 6219 fi ;; 6220 esac 6221 fi 6222 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6223 if test -n "$ac_ct_OBJDUMP"; then 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6225 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6226 else 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228 printf "%s\n" "no" >&6; } 6229 fi 6230 6231 if test "x$ac_ct_OBJDUMP" = x; then 6232 OBJDUMP="false" 6233 else 6234 case $cross_compiling:$ac_tool_warned in 6235 yes:) 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6238 ac_tool_warned=yes ;; 6239 esac 6240 OBJDUMP=$ac_ct_OBJDUMP 6241 fi 6242 else 6243 OBJDUMP="$ac_cv_prog_OBJDUMP" 6244 fi 6245 6246 test -z "$OBJDUMP" && OBJDUMP=objdump 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6257 printf %s "checking how to recognize dependent libraries... " >&6; } 6258 if test ${lt_cv_deplibs_check_method+y} 6259 then : 6260 printf %s "(cached) " >&6 6261 else case e in #( 6262 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6263 lt_cv_file_magic_test_file= 6264 lt_cv_deplibs_check_method='unknown' 6265 # Need to set the preceding variable on all platforms that support 6266 # interlibrary dependencies. 6267 # 'none' -- dependencies not supported. 6268 # 'unknown' -- same as none, but documents that we really don't know. 6269 # 'pass_all' -- all dependencies passed with no checks. 6270 # 'file_magic [[regex]]' -- check by looking for files in library path 6271 # that responds to the $file_magic_cmd with a given extended regex. 6272 # If you have 'file' or equivalent on your system and you're not sure 6273 # whether 'pass_all' will *always* work, you probably want this one. 6274 6275 case $host_os in 6276 aix[4-9]*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279 6280 beos*) 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284 bsdi[45]*) 6285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6286 lt_cv_file_magic_cmd='$FILECMD -L' 6287 lt_cv_file_magic_test_file=/shlib/libc.so 6288 ;; 6289 6290 cygwin*) 6291 # func_win32_libid is a shell function defined in ltmain.sh 6292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6293 lt_cv_file_magic_cmd='func_win32_libid' 6294 ;; 6295 6296 mingw* | windows* | pw32*) 6297 # Base MSYS/MinGW do not provide the 'file' command needed by 6298 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6299 # unless we find 'file', for example because we are cross-compiling. 6300 if ( file / ) >/dev/null 2>&1; then 6301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6302 lt_cv_file_magic_cmd='func_win32_libid' 6303 else 6304 # Keep this pattern in sync with the one in func_win32_libid. 6305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6306 lt_cv_file_magic_cmd='$OBJDUMP -f' 6307 fi 6308 ;; 6309 6310 cegcc*) 6311 # use the weaker test based on 'objdump'. See mingw*. 6312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6313 lt_cv_file_magic_cmd='$OBJDUMP -f' 6314 ;; 6315 6316 darwin* | rhapsody*) 6317 lt_cv_deplibs_check_method=pass_all 6318 ;; 6319 6320 freebsd* | dragonfly* | midnightbsd*) 6321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6322 case $host_cpu in 6323 i*86 ) 6324 # Not sure whether the presence of OpenBSD here was a mistake. 6325 # Let's accept both of them until this is cleared up. 6326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6327 lt_cv_file_magic_cmd=$FILECMD 6328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6329 ;; 6330 esac 6331 else 6332 lt_cv_deplibs_check_method=pass_all 6333 fi 6334 ;; 6335 6336 haiku*) 6337 lt_cv_deplibs_check_method=pass_all 6338 ;; 6339 6340 hpux10.20* | hpux11*) 6341 lt_cv_file_magic_cmd=$FILECMD 6342 case $host_cpu in 6343 ia64*) 6344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6346 ;; 6347 hppa*64*) 6348 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]' 6349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6350 ;; 6351 *) 6352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6353 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6354 ;; 6355 esac 6356 ;; 6357 6358 interix[3-9]*) 6359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6361 ;; 6362 6363 irix5* | irix6* | nonstopux*) 6364 case $LD in 6365 *-32|*"-32 ") libmagic=32-bit;; 6366 *-n32|*"-n32 ") libmagic=N32;; 6367 *-64|*"-64 ") libmagic=64-bit;; 6368 *) libmagic=never-match;; 6369 esac 6370 lt_cv_deplibs_check_method=pass_all 6371 ;; 6372 6373 # This must be glibc/ELF. 6374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6375 lt_cv_deplibs_check_method=pass_all 6376 ;; 6377 6378 *-mlibc) 6379 lt_cv_deplibs_check_method=pass_all 6380 ;; 6381 6382 netbsd* | netbsdelf*-gnu) 6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6385 else 6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6387 fi 6388 ;; 6389 6390 newos6*) 6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6392 lt_cv_file_magic_cmd=$FILECMD 6393 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6394 ;; 6395 6396 *nto* | *qnx*) 6397 lt_cv_deplibs_check_method=pass_all 6398 ;; 6399 6400 openbsd*) 6401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6403 else 6404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6405 fi 6406 ;; 6407 6408 osf3* | osf4* | osf5*) 6409 lt_cv_deplibs_check_method=pass_all 6410 ;; 6411 6412 rdos*) 6413 lt_cv_deplibs_check_method=pass_all 6414 ;; 6415 6416 serenity*) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 6420 solaris*) 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6425 lt_cv_deplibs_check_method=pass_all 6426 ;; 6427 6428 sysv4 | sysv4.3*) 6429 case $host_vendor in 6430 motorola) 6431 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]' 6432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6433 ;; 6434 ncr) 6435 lt_cv_deplibs_check_method=pass_all 6436 ;; 6437 sequent) 6438 lt_cv_file_magic_cmd='/bin/file' 6439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6440 ;; 6441 sni) 6442 lt_cv_file_magic_cmd='/bin/file' 6443 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6444 lt_cv_file_magic_test_file=/lib/libc.so 6445 ;; 6446 siemens) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 pc) 6450 lt_cv_deplibs_check_method=pass_all 6451 ;; 6452 esac 6453 ;; 6454 6455 tpf*) 6456 lt_cv_deplibs_check_method=pass_all 6457 ;; 6458 os2*) 6459 lt_cv_deplibs_check_method=pass_all 6460 ;; 6461 esac 6462 ;; 6463 esac 6464 fi 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6466 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6467 6468 file_magic_glob= 6469 want_nocaseglob=no 6470 if test "$build" = "$host"; then 6471 case $host_os in 6472 mingw* | windows* | pw32*) 6473 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6474 want_nocaseglob=yes 6475 else 6476 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6477 fi 6478 ;; 6479 esac 6480 fi 6481 6482 file_magic_cmd=$lt_cv_file_magic_cmd 6483 deplibs_check_method=$lt_cv_deplibs_check_method 6484 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 if test -n "$ac_tool_prefix"; then 6508 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6509 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6511 printf %s "checking for $ac_word... " >&6; } 6512 if test ${ac_cv_prog_DLLTOOL+y} 6513 then : 6514 printf %s "(cached) " >&6 6515 else case e in #( 6516 e) if test -n "$DLLTOOL"; then 6517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6518 else 6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520 for as_dir in $PATH 6521 do 6522 IFS=$as_save_IFS 6523 case $as_dir in #((( 6524 '') as_dir=./ ;; 6525 */) ;; 6526 *) as_dir=$as_dir/ ;; 6527 esac 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534 done 6535 done 6536 IFS=$as_save_IFS 6537 6538 fi ;; 6539 esac 6540 fi 6541 DLLTOOL=$ac_cv_prog_DLLTOOL 6542 if test -n "$DLLTOOL"; then 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6544 printf "%s\n" "$DLLTOOL" >&6; } 6545 else 6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547 printf "%s\n" "no" >&6; } 6548 fi 6549 6550 6551 fi 6552 if test -z "$ac_cv_prog_DLLTOOL"; then 6553 ac_ct_DLLTOOL=$DLLTOOL 6554 # Extract the first word of "dlltool", so it can be a program name with args. 6555 set dummy dlltool; ac_word=$2 6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6557 printf %s "checking for $ac_word... " >&6; } 6558 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6559 then : 6560 printf %s "(cached) " >&6 6561 else case e in #( 6562 e) if test -n "$ac_ct_DLLTOOL"; then 6563 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6564 else 6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566 for as_dir in $PATH 6567 do 6568 IFS=$as_save_IFS 6569 case $as_dir in #((( 6570 '') as_dir=./ ;; 6571 */) ;; 6572 *) as_dir=$as_dir/ ;; 6573 esac 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6576 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580 done 6581 done 6582 IFS=$as_save_IFS 6583 6584 fi ;; 6585 esac 6586 fi 6587 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6588 if test -n "$ac_ct_DLLTOOL"; then 6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6590 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6591 else 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6593 printf "%s\n" "no" >&6; } 6594 fi 6595 6596 if test "x$ac_ct_DLLTOOL" = x; then 6597 DLLTOOL="false" 6598 else 6599 case $cross_compiling:$ac_tool_warned in 6600 yes:) 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6602 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6603 ac_tool_warned=yes ;; 6604 esac 6605 DLLTOOL=$ac_ct_DLLTOOL 6606 fi 6607 else 6608 DLLTOOL="$ac_cv_prog_DLLTOOL" 6609 fi 6610 6611 test -z "$DLLTOOL" && DLLTOOL=dlltool 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6623 printf %s "checking how to associate runtime and link libraries... " >&6; } 6624 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6625 then : 6626 printf %s "(cached) " >&6 6627 else case e in #( 6628 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6629 6630 case $host_os in 6631 cygwin* | mingw* | windows* | pw32* | cegcc*) 6632 # two different shell functions defined in ltmain.sh; 6633 # decide which one to use based on capabilities of $DLLTOOL 6634 case `$DLLTOOL --help 2>&1` in 6635 *--identify-strict*) 6636 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6637 ;; 6638 *) 6639 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6640 ;; 6641 esac 6642 ;; 6643 *) 6644 # fallback: assume linklib IS sharedlib 6645 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6646 ;; 6647 esac 6648 ;; 6649 esac 6650 fi 6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6652 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6653 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6654 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6655 6656 6657 6658 6659 6660 6661 6662 6663 if test -n "$ac_tool_prefix"; then 6664 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667 printf %s "checking for $ac_word... " >&6; } 6668 if test ${ac_cv_prog_RANLIB+y} 6669 then : 6670 printf %s "(cached) " >&6 6671 else case e in #( 6672 e) if test -n "$RANLIB"; then 6673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6674 else 6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676 for as_dir in $PATH 6677 do 6678 IFS=$as_save_IFS 6679 case $as_dir in #((( 6680 '') as_dir=./ ;; 6681 */) ;; 6682 *) as_dir=$as_dir/ ;; 6683 esac 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690 done 6691 done 6692 IFS=$as_save_IFS 6693 6694 fi ;; 6695 esac 6696 fi 6697 RANLIB=$ac_cv_prog_RANLIB 6698 if test -n "$RANLIB"; then 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6700 printf "%s\n" "$RANLIB" >&6; } 6701 else 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703 printf "%s\n" "no" >&6; } 6704 fi 6705 6706 6707 fi 6708 if test -z "$ac_cv_prog_RANLIB"; then 6709 ac_ct_RANLIB=$RANLIB 6710 # Extract the first word of "ranlib", so it can be a program name with args. 6711 set dummy ranlib; ac_word=$2 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713 printf %s "checking for $ac_word... " >&6; } 6714 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6715 then : 6716 printf %s "(cached) " >&6 6717 else case e in #( 6718 e) if test -n "$ac_ct_RANLIB"; then 6719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6720 else 6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6722 for as_dir in $PATH 6723 do 6724 IFS=$as_save_IFS 6725 case $as_dir in #((( 6726 '') as_dir=./ ;; 6727 */) ;; 6728 *) as_dir=$as_dir/ ;; 6729 esac 6730 for ac_exec_ext in '' $ac_executable_extensions; do 6731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6732 ac_cv_prog_ac_ct_RANLIB="ranlib" 6733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6734 break 2 6735 fi 6736 done 6737 done 6738 IFS=$as_save_IFS 6739 6740 fi ;; 6741 esac 6742 fi 6743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6744 if test -n "$ac_ct_RANLIB"; then 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6746 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6747 else 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749 printf "%s\n" "no" >&6; } 6750 fi 6751 6752 if test "x$ac_ct_RANLIB" = x; then 6753 RANLIB=":" 6754 else 6755 case $cross_compiling:$ac_tool_warned in 6756 yes:) 6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6759 ac_tool_warned=yes ;; 6760 esac 6761 RANLIB=$ac_ct_RANLIB 6762 fi 6763 else 6764 RANLIB="$ac_cv_prog_RANLIB" 6765 fi 6766 6767 if test -n "$ac_tool_prefix"; then 6768 for ac_prog in ar 6769 do 6770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773 printf %s "checking for $ac_word... " >&6; } 6774 if test ${ac_cv_prog_AR+y} 6775 then : 6776 printf %s "(cached) " >&6 6777 else case e in #( 6778 e) if test -n "$AR"; then 6779 ac_cv_prog_AR="$AR" # Let the user override the test. 6780 else 6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782 for as_dir in $PATH 6783 do 6784 IFS=$as_save_IFS 6785 case $as_dir in #((( 6786 '') as_dir=./ ;; 6787 */) ;; 6788 *) as_dir=$as_dir/ ;; 6789 esac 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796 done 6797 done 6798 IFS=$as_save_IFS 6799 6800 fi ;; 6801 esac 6802 fi 6803 AR=$ac_cv_prog_AR 6804 if test -n "$AR"; then 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6806 printf "%s\n" "$AR" >&6; } 6807 else 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809 printf "%s\n" "no" >&6; } 6810 fi 6811 6812 6813 test -n "$AR" && break 6814 done 6815 fi 6816 if test -z "$AR"; then 6817 ac_ct_AR=$AR 6818 for ac_prog in ar 6819 do 6820 # Extract the first word of "$ac_prog", so it can be a program name with args. 6821 set dummy $ac_prog; ac_word=$2 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823 printf %s "checking for $ac_word... " >&6; } 6824 if test ${ac_cv_prog_ac_ct_AR+y} 6825 then : 6826 printf %s "(cached) " >&6 6827 else case e in #( 6828 e) if test -n "$ac_ct_AR"; then 6829 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6830 else 6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6832 for as_dir in $PATH 6833 do 6834 IFS=$as_save_IFS 6835 case $as_dir in #((( 6836 '') as_dir=./ ;; 6837 */) ;; 6838 *) as_dir=$as_dir/ ;; 6839 esac 6840 for ac_exec_ext in '' $ac_executable_extensions; do 6841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6842 ac_cv_prog_ac_ct_AR="$ac_prog" 6843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6844 break 2 6845 fi 6846 done 6847 done 6848 IFS=$as_save_IFS 6849 6850 fi ;; 6851 esac 6852 fi 6853 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6854 if test -n "$ac_ct_AR"; then 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6856 printf "%s\n" "$ac_ct_AR" >&6; } 6857 else 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859 printf "%s\n" "no" >&6; } 6860 fi 6861 6862 6863 test -n "$ac_ct_AR" && break 6864 done 6865 6866 if test "x$ac_ct_AR" = x; then 6867 AR="false" 6868 else 6869 case $cross_compiling:$ac_tool_warned in 6870 yes:) 6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6873 ac_tool_warned=yes ;; 6874 esac 6875 AR=$ac_ct_AR 6876 fi 6877 fi 6878 6879 : ${AR=ar} 6880 6881 6882 6883 6884 6885 6886 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6887 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6888 # higher priority because that's what people were doing historically (setting 6889 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6890 # variable obsoleted/removed. 6891 6892 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6893 lt_ar_flags=$AR_FLAGS 6894 6895 6896 6897 6898 6899 6900 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6901 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6902 6903 6904 6905 6906 6907 6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6909 printf %s "checking for archiver @FILE support... " >&6; } 6910 if test ${lt_cv_ar_at_file+y} 6911 then : 6912 printf %s "(cached) " >&6 6913 else case e in #( 6914 e) lt_cv_ar_at_file=no 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916 /* end confdefs.h. */ 6917 6918 int 6919 main (void) 6920 { 6921 6922 ; 6923 return 0; 6924 } 6925 _ACEOF 6926 if ac_fn_c_try_compile "$LINENO" 6927 then : 6928 echo conftest.$ac_objext > conftest.lst 6929 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6931 (eval $lt_ar_try) 2>&5 6932 ac_status=$? 6933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6934 test $ac_status = 0; } 6935 if test 0 -eq "$ac_status"; then 6936 # Ensure the archiver fails upon bogus file names. 6937 rm -f conftest.$ac_objext libconftest.a 6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6939 (eval $lt_ar_try) 2>&5 6940 ac_status=$? 6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6942 test $ac_status = 0; } 6943 if test 0 -ne "$ac_status"; then 6944 lt_cv_ar_at_file=@ 6945 fi 6946 fi 6947 rm -f conftest.* libconftest.a 6948 6949 fi 6950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6951 ;; 6952 esac 6953 fi 6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6955 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6956 6957 if test no = "$lt_cv_ar_at_file"; then 6958 archiver_list_spec= 6959 else 6960 archiver_list_spec=$lt_cv_ar_at_file 6961 fi 6962 6963 6964 6965 6966 6967 6968 6969 if test -n "$ac_tool_prefix"; then 6970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6971 set dummy ${ac_tool_prefix}strip; ac_word=$2 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6973 printf %s "checking for $ac_word... " >&6; } 6974 if test ${ac_cv_prog_STRIP+y} 6975 then : 6976 printf %s "(cached) " >&6 6977 else case e in #( 6978 e) if test -n "$STRIP"; then 6979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6980 else 6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6982 for as_dir in $PATH 6983 do 6984 IFS=$as_save_IFS 6985 case $as_dir in #((( 6986 '') as_dir=./ ;; 6987 */) ;; 6988 *) as_dir=$as_dir/ ;; 6989 esac 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6992 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996 done 6997 done 6998 IFS=$as_save_IFS 6999 7000 fi ;; 7001 esac 7002 fi 7003 STRIP=$ac_cv_prog_STRIP 7004 if test -n "$STRIP"; then 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7006 printf "%s\n" "$STRIP" >&6; } 7007 else 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009 printf "%s\n" "no" >&6; } 7010 fi 7011 7012 7013 fi 7014 if test -z "$ac_cv_prog_STRIP"; then 7015 ac_ct_STRIP=$STRIP 7016 # Extract the first word of "strip", so it can be a program name with args. 7017 set dummy strip; ac_word=$2 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019 printf %s "checking for $ac_word... " >&6; } 7020 if test ${ac_cv_prog_ac_ct_STRIP+y} 7021 then : 7022 printf %s "(cached) " >&6 7023 else case e in #( 7024 e) if test -n "$ac_ct_STRIP"; then 7025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7026 else 7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028 for as_dir in $PATH 7029 do 7030 IFS=$as_save_IFS 7031 case $as_dir in #((( 7032 '') as_dir=./ ;; 7033 */) ;; 7034 *) as_dir=$as_dir/ ;; 7035 esac 7036 for ac_exec_ext in '' $ac_executable_extensions; do 7037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7038 ac_cv_prog_ac_ct_STRIP="strip" 7039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7040 break 2 7041 fi 7042 done 7043 done 7044 IFS=$as_save_IFS 7045 7046 fi ;; 7047 esac 7048 fi 7049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7050 if test -n "$ac_ct_STRIP"; then 7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7052 printf "%s\n" "$ac_ct_STRIP" >&6; } 7053 else 7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055 printf "%s\n" "no" >&6; } 7056 fi 7057 7058 if test "x$ac_ct_STRIP" = x; then 7059 STRIP=":" 7060 else 7061 case $cross_compiling:$ac_tool_warned in 7062 yes:) 7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7065 ac_tool_warned=yes ;; 7066 esac 7067 STRIP=$ac_ct_STRIP 7068 fi 7069 else 7070 STRIP="$ac_cv_prog_STRIP" 7071 fi 7072 7073 test -z "$STRIP" && STRIP=: 7074 7075 7076 7077 7078 7079 7080 7081 test -z "$RANLIB" && RANLIB=: 7082 7083 7084 7085 7086 7087 7088 # Determine commands to create old-style static archives. 7089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7090 old_postinstall_cmds='chmod 644 $oldlib' 7091 old_postuninstall_cmds= 7092 7093 if test -n "$RANLIB"; then 7094 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7096 fi 7097 7098 case $host_os in 7099 darwin*) 7100 lock_old_archive_extraction=yes ;; 7101 *) 7102 lock_old_archive_extraction=no ;; 7103 esac 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 # If no C compiler was specified, use CC. 7144 LTCC=${LTCC-"$CC"} 7145 7146 # If no C compiler flags were specified, use CFLAGS. 7147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7148 7149 # Allow CC to be a program name with arguments. 7150 compiler=$CC 7151 7152 7153 # Check for command to grab the raw symbol name followed by C symbol from nm. 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7155 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7156 if test ${lt_cv_sys_global_symbol_pipe+y} 7157 then : 7158 printf %s "(cached) " >&6 7159 else case e in #( 7160 e) 7161 # These are sane defaults that work on at least a few old systems. 7162 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7163 7164 # Character class describing NM global symbol codes. 7165 symcode='[BCDEGRST]' 7166 7167 # Regexp to match symbols that can be accessed directly from C. 7168 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7169 7170 # Define system-specific variables. 7171 case $host_os in 7172 aix*) 7173 symcode='[BCDT]' 7174 ;; 7175 cygwin* | mingw* | windows* | pw32* | cegcc*) 7176 symcode='[ABCDGISTW]' 7177 ;; 7178 hpux*) 7179 if test ia64 = "$host_cpu"; then 7180 symcode='[ABCDEGRST]' 7181 fi 7182 ;; 7183 irix* | nonstopux*) 7184 symcode='[BCDEGRST]' 7185 ;; 7186 osf*) 7187 symcode='[BCDEGQRST]' 7188 ;; 7189 solaris*) 7190 symcode='[BCDRT]' 7191 ;; 7192 sco3.2v5*) 7193 symcode='[DT]' 7194 ;; 7195 sysv4.2uw2*) 7196 symcode='[DT]' 7197 ;; 7198 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7199 symcode='[ABDT]' 7200 ;; 7201 sysv4) 7202 symcode='[DFNSTU]' 7203 ;; 7204 esac 7205 7206 # If we're using GNU nm, then use its standard symbol codes. 7207 case `$NM -V 2>&1` in 7208 *GNU* | *'with BFD'*) 7209 symcode='[ABCDGIRSTW]' ;; 7210 esac 7211 7212 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7213 # Gets list of data symbols to import. 7214 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7215 # Adjust the below global symbol transforms to fixup imported variables. 7216 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7217 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7218 lt_c_name_lib_hook="\ 7219 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7220 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7221 else 7222 # Disable hooks by default. 7223 lt_cv_sys_global_symbol_to_import= 7224 lt_cdecl_hook= 7225 lt_c_name_hook= 7226 lt_c_name_lib_hook= 7227 fi 7228 7229 # Transform an extracted symbol line into a proper C declaration. 7230 # Some systems (esp. on ia64) link data and code symbols differently, 7231 # so use this general approach. 7232 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7233 $lt_cdecl_hook\ 7234 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7235 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7236 7237 # Transform an extracted symbol line into symbol name and symbol address 7238 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7239 $lt_c_name_hook\ 7240 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7241 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7242 7243 # Transform an extracted symbol line into symbol name with lib prefix and 7244 # symbol address. 7245 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7246 $lt_c_name_lib_hook\ 7247 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7248 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7249 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7250 7251 # Handle CRLF in mingw tool chain 7252 opt_cr= 7253 case $build_os in 7254 mingw* | windows*) 7255 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7256 ;; 7257 esac 7258 7259 # Try without a prefix underscore, then with it. 7260 for ac_symprfx in "" "_"; do 7261 7262 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7263 symxfrm="\\1 $ac_symprfx\\2 \\2" 7264 7265 # Write the raw and C identifiers. 7266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7267 # Fake it for dumpbin and say T for any non-static function, 7268 # D for any global variable and I for any imported variable. 7269 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7270 # which start with @ or ?. 7271 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7272 " {last_section=section; section=\$ 3};"\ 7273 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7274 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7275 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7276 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7277 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7278 " \$ 0!~/External *\|/{next};"\ 7279 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7280 " {if(hide[section]) next};"\ 7281 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7282 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7283 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7284 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7285 " ' prfx=^$ac_symprfx" 7286 else 7287 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7288 fi 7289 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7290 7291 # Check to see that the pipe works correctly. 7292 pipe_works=no 7293 7294 rm -f conftest* 7295 cat > conftest.$ac_ext <<_LT_EOF 7296 #ifdef __cplusplus 7297 extern "C" { 7298 #endif 7299 char nm_test_var; 7300 void nm_test_func(void); 7301 void nm_test_func(void){} 7302 #ifdef __cplusplus 7303 } 7304 #endif 7305 int main(void){nm_test_var='a';nm_test_func();return(0);} 7306 _LT_EOF 7307 7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7309 (eval $ac_compile) 2>&5 7310 ac_status=$? 7311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7312 test $ac_status = 0; }; then 7313 # Now try to grab the symbols. 7314 nlist=conftest.nm 7315 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7316 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7317 # Try sorting and uniquifying the output. 7318 if sort "$nlist" | uniq > "$nlist"T; then 7319 mv -f "$nlist"T "$nlist" 7320 else 7321 rm -f "$nlist"T 7322 fi 7323 7324 # Make sure that we snagged all the symbols we need. 7325 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7326 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7327 cat <<_LT_EOF > conftest.$ac_ext 7328 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7329 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7330 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7331 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7332 # define LT_DLSYM_CONST 7333 #elif defined __osf__ 7334 /* This system does not cope well with relocations in const data. */ 7335 # define LT_DLSYM_CONST 7336 #else 7337 # define LT_DLSYM_CONST const 7338 #endif 7339 7340 #ifdef __cplusplus 7341 extern "C" { 7342 #endif 7343 7344 _LT_EOF 7345 # Now generate the symbol file. 7346 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7347 7348 cat <<_LT_EOF >> conftest.$ac_ext 7349 7350 /* The mapping between symbol names and symbols. */ 7351 LT_DLSYM_CONST struct { 7352 const char *name; 7353 void *address; 7354 } 7355 lt__PROGRAM__LTX_preloaded_symbols[] = 7356 { 7357 { "@PROGRAM@", (void *) 0 }, 7358 _LT_EOF 7359 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7360 cat <<\_LT_EOF >> conftest.$ac_ext 7361 {0, (void *) 0} 7362 }; 7363 7364 /* This works around a problem in FreeBSD linker */ 7365 #ifdef FREEBSD_WORKAROUND 7366 static const void *lt_preloaded_setup() { 7367 return lt__PROGRAM__LTX_preloaded_symbols; 7368 } 7369 #endif 7370 7371 #ifdef __cplusplus 7372 } 7373 #endif 7374 _LT_EOF 7375 # Now try linking the two files. 7376 mv conftest.$ac_objext conftstm.$ac_objext 7377 lt_globsym_save_LIBS=$LIBS 7378 lt_globsym_save_CFLAGS=$CFLAGS 7379 LIBS=conftstm.$ac_objext 7380 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7382 (eval $ac_link) 2>&5 7383 ac_status=$? 7384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7385 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7386 pipe_works=yes 7387 fi 7388 LIBS=$lt_globsym_save_LIBS 7389 CFLAGS=$lt_globsym_save_CFLAGS 7390 else 7391 echo "cannot find nm_test_func in $nlist" >&5 7392 fi 7393 else 7394 echo "cannot find nm_test_var in $nlist" >&5 7395 fi 7396 else 7397 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7398 fi 7399 else 7400 echo "$progname: failed program was:" >&5 7401 cat conftest.$ac_ext >&5 7402 fi 7403 rm -rf conftest* conftst* 7404 7405 # Do not use the global_symbol_pipe unless it works. 7406 if test yes = "$pipe_works"; then 7407 break 7408 else 7409 lt_cv_sys_global_symbol_pipe= 7410 fi 7411 done 7412 ;; 7413 esac 7414 fi 7415 7416 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7417 lt_cv_sys_global_symbol_to_cdecl= 7418 fi 7419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7421 printf "%s\n" "failed" >&6; } 7422 else 7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7424 printf "%s\n" "ok" >&6; } 7425 fi 7426 7427 # Response file support. 7428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7429 nm_file_list_spec='@' 7430 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7431 nm_file_list_spec='@' 7432 fi 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7471 printf %s "checking for sysroot... " >&6; } 7472 7473 # Check whether --with-sysroot was given. 7474 if test ${with_sysroot+y} 7475 then : 7476 withval=$with_sysroot; 7477 else case e in #( 7478 e) with_sysroot=no ;; 7479 esac 7480 fi 7481 7482 7483 lt_sysroot= 7484 case $with_sysroot in #( 7485 yes) 7486 if test yes = "$GCC"; then 7487 # Trim trailing / since we'll always append absolute paths and we want 7488 # to avoid //, if only for less confusing output for the user. 7489 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7490 fi 7491 ;; #( 7492 /*) 7493 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7494 ;; #( 7495 no|'') 7496 ;; #( 7497 *) 7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7499 printf "%s\n" "$with_sysroot" >&6; } 7500 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7501 ;; 7502 esac 7503 7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7505 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7506 7507 7508 7509 7510 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7512 printf %s "checking for a working dd... " >&6; } 7513 if test ${ac_cv_path_lt_DD+y} 7514 then : 7515 printf %s "(cached) " >&6 7516 else case e in #( 7517 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7518 cat conftest.i conftest.i >conftest2.i 7519 : ${lt_DD:=$DD} 7520 if test -z "$lt_DD"; then 7521 ac_path_lt_DD_found=false 7522 # Loop through the user's path and test for each of PROGNAME-LIST 7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524 for as_dir in $PATH 7525 do 7526 IFS=$as_save_IFS 7527 case $as_dir in #((( 7528 '') as_dir=./ ;; 7529 */) ;; 7530 *) as_dir=$as_dir/ ;; 7531 esac 7532 for ac_prog in dd 7533 do 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7536 as_fn_executable_p "$ac_path_lt_DD" || continue 7537 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7538 cmp -s conftest.i conftest.out \ 7539 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7540 fi 7541 $ac_path_lt_DD_found && break 3 7542 done 7543 done 7544 done 7545 IFS=$as_save_IFS 7546 if test -z "$ac_cv_path_lt_DD"; then 7547 : 7548 fi 7549 else 7550 ac_cv_path_lt_DD=$lt_DD 7551 fi 7552 7553 rm -f conftest.i conftest2.i conftest.out ;; 7554 esac 7555 fi 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7557 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7558 7559 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7561 printf %s "checking how to truncate binary pipes... " >&6; } 7562 if test ${lt_cv_truncate_bin+y} 7563 then : 7564 printf %s "(cached) " >&6 7565 else case e in #( 7566 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7567 cat conftest.i conftest.i >conftest2.i 7568 lt_cv_truncate_bin= 7569 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7570 cmp -s conftest.i conftest.out \ 7571 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7572 fi 7573 rm -f conftest.i conftest2.i conftest.out 7574 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7575 esac 7576 fi 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7578 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7579 7580 7581 7582 7583 7584 7585 7586 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7587 func_cc_basename () 7588 { 7589 for cc_temp in $*""; do 7590 case $cc_temp in 7591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7593 \-*) ;; 7594 *) break;; 7595 esac 7596 done 7597 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7598 } 7599 7600 # Check whether --enable-libtool-lock was given. 7601 if test ${enable_libtool_lock+y} 7602 then : 7603 enableval=$enable_libtool_lock; 7604 fi 7605 7606 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7607 7608 # Some flags need to be propagated to the compiler or linker for good 7609 # libtool support. 7610 case $host in 7611 ia64-*-hpux*) 7612 # Find out what ABI is being produced by ac_compile, and set mode 7613 # options accordingly. 7614 echo 'int i;' > conftest.$ac_ext 7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7616 (eval $ac_compile) 2>&5 7617 ac_status=$? 7618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7619 test $ac_status = 0; }; then 7620 case `$FILECMD conftest.$ac_objext` in 7621 *ELF-32*) 7622 HPUX_IA64_MODE=32 7623 ;; 7624 *ELF-64*) 7625 HPUX_IA64_MODE=64 7626 ;; 7627 esac 7628 fi 7629 rm -rf conftest* 7630 ;; 7631 *-*-irix6*) 7632 # Find out what ABI is being produced by ac_compile, and set linker 7633 # options accordingly. 7634 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7636 (eval $ac_compile) 2>&5 7637 ac_status=$? 7638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7639 test $ac_status = 0; }; then 7640 if test yes = "$lt_cv_prog_gnu_ld"; then 7641 case `$FILECMD conftest.$ac_objext` in 7642 *32-bit*) 7643 LD="${LD-ld} -melf32bsmip" 7644 ;; 7645 *N32*) 7646 LD="${LD-ld} -melf32bmipn32" 7647 ;; 7648 *64-bit*) 7649 LD="${LD-ld} -melf64bmip" 7650 ;; 7651 esac 7652 else 7653 case `$FILECMD conftest.$ac_objext` in 7654 *32-bit*) 7655 LD="${LD-ld} -32" 7656 ;; 7657 *N32*) 7658 LD="${LD-ld} -n32" 7659 ;; 7660 *64-bit*) 7661 LD="${LD-ld} -64" 7662 ;; 7663 esac 7664 fi 7665 fi 7666 rm -rf conftest* 7667 ;; 7668 7669 mips64*-*linux*) 7670 # Find out what ABI is being produced by ac_compile, and set linker 7671 # options accordingly. 7672 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7674 (eval $ac_compile) 2>&5 7675 ac_status=$? 7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7677 test $ac_status = 0; }; then 7678 emul=elf 7679 case `$FILECMD conftest.$ac_objext` in 7680 *32-bit*) 7681 emul="${emul}32" 7682 ;; 7683 *64-bit*) 7684 emul="${emul}64" 7685 ;; 7686 esac 7687 case `$FILECMD conftest.$ac_objext` in 7688 *MSB*) 7689 emul="${emul}btsmip" 7690 ;; 7691 *LSB*) 7692 emul="${emul}ltsmip" 7693 ;; 7694 esac 7695 case `$FILECMD conftest.$ac_objext` in 7696 *N32*) 7697 emul="${emul}n32" 7698 ;; 7699 esac 7700 LD="${LD-ld} -m $emul" 7701 fi 7702 rm -rf conftest* 7703 ;; 7704 7705 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7706 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7707 # Find out what ABI is being produced by ac_compile, and set linker 7708 # options accordingly. Note that the listed cases only cover the 7709 # situations where additional linker options are needed (such as when 7710 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7711 # vice versa); the common cases where no linker options are needed do 7712 # not appear in the list. 7713 echo 'int i;' > conftest.$ac_ext 7714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7715 (eval $ac_compile) 2>&5 7716 ac_status=$? 7717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7718 test $ac_status = 0; }; then 7719 case `$FILECMD conftest.o` in 7720 *32-bit*) 7721 case $host in 7722 x86_64-*kfreebsd*-gnu) 7723 LD="${LD-ld} -m elf_i386_fbsd" 7724 ;; 7725 x86_64-*linux*|x86_64-gnu*) 7726 case `$FILECMD conftest.o` in 7727 *x86-64*) 7728 LD="${LD-ld} -m elf32_x86_64" 7729 ;; 7730 *) 7731 LD="${LD-ld} -m elf_i386" 7732 ;; 7733 esac 7734 ;; 7735 powerpc64le-*linux*) 7736 LD="${LD-ld} -m elf32lppclinux" 7737 ;; 7738 powerpc64-*linux*) 7739 LD="${LD-ld} -m elf32ppclinux" 7740 ;; 7741 s390x-*linux*) 7742 LD="${LD-ld} -m elf_s390" 7743 ;; 7744 sparc64-*linux*) 7745 LD="${LD-ld} -m elf32_sparc" 7746 ;; 7747 esac 7748 ;; 7749 *64-bit*) 7750 case $host in 7751 x86_64-*kfreebsd*-gnu) 7752 LD="${LD-ld} -m elf_x86_64_fbsd" 7753 ;; 7754 x86_64-*linux*|x86_64-gnu*) 7755 LD="${LD-ld} -m elf_x86_64" 7756 ;; 7757 powerpcle-*linux*) 7758 LD="${LD-ld} -m elf64lppc" 7759 ;; 7760 powerpc-*linux*) 7761 LD="${LD-ld} -m elf64ppc" 7762 ;; 7763 s390*-*linux*|s390*-*tpf*) 7764 LD="${LD-ld} -m elf64_s390" 7765 ;; 7766 sparc*-*linux*) 7767 LD="${LD-ld} -m elf64_sparc" 7768 ;; 7769 esac 7770 ;; 7771 esac 7772 fi 7773 rm -rf conftest* 7774 ;; 7775 7776 *-*-sco3.2v5*) 7777 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7778 SAVE_CFLAGS=$CFLAGS 7779 CFLAGS="$CFLAGS -belf" 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7781 printf %s "checking whether the C compiler needs -belf... " >&6; } 7782 if test ${lt_cv_cc_needs_belf+y} 7783 then : 7784 printf %s "(cached) " >&6 7785 else case e in #( 7786 e) ac_ext=c 7787 ac_cpp='$CPP $CPPFLAGS' 7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7791 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793 /* end confdefs.h. */ 7794 7795 int 7796 main (void) 7797 { 7798 7799 ; 7800 return 0; 7801 } 7802 _ACEOF 7803 if ac_fn_c_try_link "$LINENO" 7804 then : 7805 lt_cv_cc_needs_belf=yes 7806 else case e in #( 7807 e) lt_cv_cc_needs_belf=no ;; 7808 esac 7809 fi 7810 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7811 conftest$ac_exeext conftest.$ac_ext 7812 ac_ext=c 7813 ac_cpp='$CPP $CPPFLAGS' 7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7817 ;; 7818 esac 7819 fi 7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7821 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7822 if test yes != "$lt_cv_cc_needs_belf"; then 7823 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7824 CFLAGS=$SAVE_CFLAGS 7825 fi 7826 ;; 7827 *-*solaris*) 7828 # Find out what ABI is being produced by ac_compile, and set linker 7829 # options accordingly. 7830 echo 'int i;' > conftest.$ac_ext 7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7832 (eval $ac_compile) 2>&5 7833 ac_status=$? 7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7835 test $ac_status = 0; }; then 7836 case `$FILECMD conftest.o` in 7837 *64-bit*) 7838 case $lt_cv_prog_gnu_ld in 7839 yes*) 7840 case $host in 7841 i?86-*-solaris*|x86_64-*-solaris*) 7842 LD="${LD-ld} -m elf_x86_64" 7843 ;; 7844 sparc*-*-solaris*) 7845 LD="${LD-ld} -m elf64_sparc" 7846 ;; 7847 esac 7848 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7849 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7850 LD=${LD-ld}_sol2 7851 fi 7852 ;; 7853 *) 7854 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7855 LD="${LD-ld} -64" 7856 fi 7857 ;; 7858 esac 7859 ;; 7860 esac 7861 fi 7862 rm -rf conftest* 7863 ;; 7864 esac 7865 7866 need_locks=$enable_libtool_lock 7867 7868 if test -n "$ac_tool_prefix"; then 7869 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7870 set dummy ${ac_tool_prefix}mt; ac_word=$2 7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872 printf %s "checking for $ac_word... " >&6; } 7873 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7874 then : 7875 printf %s "(cached) " >&6 7876 else case e in #( 7877 e) if test -n "$MANIFEST_TOOL"; then 7878 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7879 else 7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881 for as_dir in $PATH 7882 do 7883 IFS=$as_save_IFS 7884 case $as_dir in #((( 7885 '') as_dir=./ ;; 7886 */) ;; 7887 *) as_dir=$as_dir/ ;; 7888 esac 7889 for ac_exec_ext in '' $ac_executable_extensions; do 7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7891 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7893 break 2 7894 fi 7895 done 7896 done 7897 IFS=$as_save_IFS 7898 7899 fi ;; 7900 esac 7901 fi 7902 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7903 if test -n "$MANIFEST_TOOL"; then 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7905 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7906 else 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7908 printf "%s\n" "no" >&6; } 7909 fi 7910 7911 7912 fi 7913 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7914 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7915 # Extract the first word of "mt", so it can be a program name with args. 7916 set dummy mt; ac_word=$2 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7918 printf %s "checking for $ac_word... " >&6; } 7919 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7920 then : 7921 printf %s "(cached) " >&6 7922 else case e in #( 7923 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7924 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7925 else 7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7927 for as_dir in $PATH 7928 do 7929 IFS=$as_save_IFS 7930 case $as_dir in #((( 7931 '') as_dir=./ ;; 7932 */) ;; 7933 *) as_dir=$as_dir/ ;; 7934 esac 7935 for ac_exec_ext in '' $ac_executable_extensions; do 7936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7937 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7939 break 2 7940 fi 7941 done 7942 done 7943 IFS=$as_save_IFS 7944 7945 fi ;; 7946 esac 7947 fi 7948 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7949 if test -n "$ac_ct_MANIFEST_TOOL"; then 7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7951 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7952 else 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954 printf "%s\n" "no" >&6; } 7955 fi 7956 7957 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7958 MANIFEST_TOOL=":" 7959 else 7960 case $cross_compiling:$ac_tool_warned in 7961 yes:) 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7964 ac_tool_warned=yes ;; 7965 esac 7966 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7967 fi 7968 else 7969 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7970 fi 7971 7972 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7974 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7975 if test ${lt_cv_path_manifest_tool+y} 7976 then : 7977 printf %s "(cached) " >&6 7978 else case e in #( 7979 e) lt_cv_path_manifest_tool=no 7980 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7981 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7982 cat conftest.err >&5 7983 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7984 lt_cv_path_manifest_tool=yes 7985 fi 7986 rm -f conftest* ;; 7987 esac 7988 fi 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7990 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7991 if test yes != "$lt_cv_path_manifest_tool"; then 7992 MANIFEST_TOOL=: 7993 fi 7994 7995 7996 7997 7998 7999 8000 case $host_os in 8001 rhapsody* | darwin*) 8002 if test -n "$ac_tool_prefix"; then 8003 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8004 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8006 printf %s "checking for $ac_word... " >&6; } 8007 if test ${ac_cv_prog_DSYMUTIL+y} 8008 then : 8009 printf %s "(cached) " >&6 8010 else case e in #( 8011 e) if test -n "$DSYMUTIL"; then 8012 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8013 else 8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8015 for as_dir in $PATH 8016 do 8017 IFS=$as_save_IFS 8018 case $as_dir in #((( 8019 '') as_dir=./ ;; 8020 */) ;; 8021 *) as_dir=$as_dir/ ;; 8022 esac 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029 done 8030 done 8031 IFS=$as_save_IFS 8032 8033 fi ;; 8034 esac 8035 fi 8036 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8037 if test -n "$DSYMUTIL"; then 8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8039 printf "%s\n" "$DSYMUTIL" >&6; } 8040 else 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042 printf "%s\n" "no" >&6; } 8043 fi 8044 8045 8046 fi 8047 if test -z "$ac_cv_prog_DSYMUTIL"; then 8048 ac_ct_DSYMUTIL=$DSYMUTIL 8049 # Extract the first word of "dsymutil", so it can be a program name with args. 8050 set dummy dsymutil; ac_word=$2 8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8052 printf %s "checking for $ac_word... " >&6; } 8053 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8054 then : 8055 printf %s "(cached) " >&6 8056 else case e in #( 8057 e) if test -n "$ac_ct_DSYMUTIL"; then 8058 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8059 else 8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061 for as_dir in $PATH 8062 do 8063 IFS=$as_save_IFS 8064 case $as_dir in #((( 8065 '') as_dir=./ ;; 8066 */) ;; 8067 *) as_dir=$as_dir/ ;; 8068 esac 8069 for ac_exec_ext in '' $ac_executable_extensions; do 8070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8071 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8073 break 2 8074 fi 8075 done 8076 done 8077 IFS=$as_save_IFS 8078 8079 fi ;; 8080 esac 8081 fi 8082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8083 if test -n "$ac_ct_DSYMUTIL"; then 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8085 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8086 else 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8088 printf "%s\n" "no" >&6; } 8089 fi 8090 8091 if test "x$ac_ct_DSYMUTIL" = x; then 8092 DSYMUTIL=":" 8093 else 8094 case $cross_compiling:$ac_tool_warned in 8095 yes:) 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8098 ac_tool_warned=yes ;; 8099 esac 8100 DSYMUTIL=$ac_ct_DSYMUTIL 8101 fi 8102 else 8103 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8104 fi 8105 8106 if test -n "$ac_tool_prefix"; then 8107 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8110 printf %s "checking for $ac_word... " >&6; } 8111 if test ${ac_cv_prog_NMEDIT+y} 8112 then : 8113 printf %s "(cached) " >&6 8114 else case e in #( 8115 e) if test -n "$NMEDIT"; then 8116 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8117 else 8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8119 for as_dir in $PATH 8120 do 8121 IFS=$as_save_IFS 8122 case $as_dir in #((( 8123 '') as_dir=./ ;; 8124 */) ;; 8125 *) as_dir=$as_dir/ ;; 8126 esac 8127 for ac_exec_ext in '' $ac_executable_extensions; do 8128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8131 break 2 8132 fi 8133 done 8134 done 8135 IFS=$as_save_IFS 8136 8137 fi ;; 8138 esac 8139 fi 8140 NMEDIT=$ac_cv_prog_NMEDIT 8141 if test -n "$NMEDIT"; then 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8143 printf "%s\n" "$NMEDIT" >&6; } 8144 else 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8146 printf "%s\n" "no" >&6; } 8147 fi 8148 8149 8150 fi 8151 if test -z "$ac_cv_prog_NMEDIT"; then 8152 ac_ct_NMEDIT=$NMEDIT 8153 # Extract the first word of "nmedit", so it can be a program name with args. 8154 set dummy nmedit; ac_word=$2 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8156 printf %s "checking for $ac_word... " >&6; } 8157 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8158 then : 8159 printf %s "(cached) " >&6 8160 else case e in #( 8161 e) if test -n "$ac_ct_NMEDIT"; then 8162 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8163 else 8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8165 for as_dir in $PATH 8166 do 8167 IFS=$as_save_IFS 8168 case $as_dir in #((( 8169 '') as_dir=./ ;; 8170 */) ;; 8171 *) as_dir=$as_dir/ ;; 8172 esac 8173 for ac_exec_ext in '' $ac_executable_extensions; do 8174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8175 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8177 break 2 8178 fi 8179 done 8180 done 8181 IFS=$as_save_IFS 8182 8183 fi ;; 8184 esac 8185 fi 8186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8187 if test -n "$ac_ct_NMEDIT"; then 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8189 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8190 else 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8192 printf "%s\n" "no" >&6; } 8193 fi 8194 8195 if test "x$ac_ct_NMEDIT" = x; then 8196 NMEDIT=":" 8197 else 8198 case $cross_compiling:$ac_tool_warned in 8199 yes:) 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8202 ac_tool_warned=yes ;; 8203 esac 8204 NMEDIT=$ac_ct_NMEDIT 8205 fi 8206 else 8207 NMEDIT="$ac_cv_prog_NMEDIT" 8208 fi 8209 8210 if test -n "$ac_tool_prefix"; then 8211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8212 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8214 printf %s "checking for $ac_word... " >&6; } 8215 if test ${ac_cv_prog_LIPO+y} 8216 then : 8217 printf %s "(cached) " >&6 8218 else case e in #( 8219 e) if test -n "$LIPO"; then 8220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8221 else 8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8223 for as_dir in $PATH 8224 do 8225 IFS=$as_save_IFS 8226 case $as_dir in #((( 8227 '') as_dir=./ ;; 8228 */) ;; 8229 *) as_dir=$as_dir/ ;; 8230 esac 8231 for ac_exec_ext in '' $ac_executable_extensions; do 8232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8233 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8235 break 2 8236 fi 8237 done 8238 done 8239 IFS=$as_save_IFS 8240 8241 fi ;; 8242 esac 8243 fi 8244 LIPO=$ac_cv_prog_LIPO 8245 if test -n "$LIPO"; then 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8247 printf "%s\n" "$LIPO" >&6; } 8248 else 8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250 printf "%s\n" "no" >&6; } 8251 fi 8252 8253 8254 fi 8255 if test -z "$ac_cv_prog_LIPO"; then 8256 ac_ct_LIPO=$LIPO 8257 # Extract the first word of "lipo", so it can be a program name with args. 8258 set dummy lipo; ac_word=$2 8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8260 printf %s "checking for $ac_word... " >&6; } 8261 if test ${ac_cv_prog_ac_ct_LIPO+y} 8262 then : 8263 printf %s "(cached) " >&6 8264 else case e in #( 8265 e) if test -n "$ac_ct_LIPO"; then 8266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8267 else 8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8269 for as_dir in $PATH 8270 do 8271 IFS=$as_save_IFS 8272 case $as_dir in #((( 8273 '') as_dir=./ ;; 8274 */) ;; 8275 *) as_dir=$as_dir/ ;; 8276 esac 8277 for ac_exec_ext in '' $ac_executable_extensions; do 8278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8279 ac_cv_prog_ac_ct_LIPO="lipo" 8280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8281 break 2 8282 fi 8283 done 8284 done 8285 IFS=$as_save_IFS 8286 8287 fi ;; 8288 esac 8289 fi 8290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8291 if test -n "$ac_ct_LIPO"; then 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8293 printf "%s\n" "$ac_ct_LIPO" >&6; } 8294 else 8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8296 printf "%s\n" "no" >&6; } 8297 fi 8298 8299 if test "x$ac_ct_LIPO" = x; then 8300 LIPO=":" 8301 else 8302 case $cross_compiling:$ac_tool_warned in 8303 yes:) 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8306 ac_tool_warned=yes ;; 8307 esac 8308 LIPO=$ac_ct_LIPO 8309 fi 8310 else 8311 LIPO="$ac_cv_prog_LIPO" 8312 fi 8313 8314 if test -n "$ac_tool_prefix"; then 8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8316 set dummy ${ac_tool_prefix}otool; ac_word=$2 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318 printf %s "checking for $ac_word... " >&6; } 8319 if test ${ac_cv_prog_OTOOL+y} 8320 then : 8321 printf %s "(cached) " >&6 8322 else case e in #( 8323 e) if test -n "$OTOOL"; then 8324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8325 else 8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8327 for as_dir in $PATH 8328 do 8329 IFS=$as_save_IFS 8330 case $as_dir in #((( 8331 '') as_dir=./ ;; 8332 */) ;; 8333 *) as_dir=$as_dir/ ;; 8334 esac 8335 for ac_exec_ext in '' $ac_executable_extensions; do 8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8339 break 2 8340 fi 8341 done 8342 done 8343 IFS=$as_save_IFS 8344 8345 fi ;; 8346 esac 8347 fi 8348 OTOOL=$ac_cv_prog_OTOOL 8349 if test -n "$OTOOL"; then 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8351 printf "%s\n" "$OTOOL" >&6; } 8352 else 8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8354 printf "%s\n" "no" >&6; } 8355 fi 8356 8357 8358 fi 8359 if test -z "$ac_cv_prog_OTOOL"; then 8360 ac_ct_OTOOL=$OTOOL 8361 # Extract the first word of "otool", so it can be a program name with args. 8362 set dummy otool; ac_word=$2 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364 printf %s "checking for $ac_word... " >&6; } 8365 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8366 then : 8367 printf %s "(cached) " >&6 8368 else case e in #( 8369 e) if test -n "$ac_ct_OTOOL"; then 8370 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8371 else 8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8373 for as_dir in $PATH 8374 do 8375 IFS=$as_save_IFS 8376 case $as_dir in #((( 8377 '') as_dir=./ ;; 8378 */) ;; 8379 *) as_dir=$as_dir/ ;; 8380 esac 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8383 ac_cv_prog_ac_ct_OTOOL="otool" 8384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387 done 8388 done 8389 IFS=$as_save_IFS 8390 8391 fi ;; 8392 esac 8393 fi 8394 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8395 if test -n "$ac_ct_OTOOL"; then 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8397 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8398 else 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8400 printf "%s\n" "no" >&6; } 8401 fi 8402 8403 if test "x$ac_ct_OTOOL" = x; then 8404 OTOOL=":" 8405 else 8406 case $cross_compiling:$ac_tool_warned in 8407 yes:) 8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8410 ac_tool_warned=yes ;; 8411 esac 8412 OTOOL=$ac_ct_OTOOL 8413 fi 8414 else 8415 OTOOL="$ac_cv_prog_OTOOL" 8416 fi 8417 8418 if test -n "$ac_tool_prefix"; then 8419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8420 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8422 printf %s "checking for $ac_word... " >&6; } 8423 if test ${ac_cv_prog_OTOOL64+y} 8424 then : 8425 printf %s "(cached) " >&6 8426 else case e in #( 8427 e) if test -n "$OTOOL64"; then 8428 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8429 else 8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8431 for as_dir in $PATH 8432 do 8433 IFS=$as_save_IFS 8434 case $as_dir in #((( 8435 '') as_dir=./ ;; 8436 */) ;; 8437 *) as_dir=$as_dir/ ;; 8438 esac 8439 for ac_exec_ext in '' $ac_executable_extensions; do 8440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8443 break 2 8444 fi 8445 done 8446 done 8447 IFS=$as_save_IFS 8448 8449 fi ;; 8450 esac 8451 fi 8452 OTOOL64=$ac_cv_prog_OTOOL64 8453 if test -n "$OTOOL64"; then 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8455 printf "%s\n" "$OTOOL64" >&6; } 8456 else 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8458 printf "%s\n" "no" >&6; } 8459 fi 8460 8461 8462 fi 8463 if test -z "$ac_cv_prog_OTOOL64"; then 8464 ac_ct_OTOOL64=$OTOOL64 8465 # Extract the first word of "otool64", so it can be a program name with args. 8466 set dummy otool64; ac_word=$2 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8468 printf %s "checking for $ac_word... " >&6; } 8469 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8470 then : 8471 printf %s "(cached) " >&6 8472 else case e in #( 8473 e) if test -n "$ac_ct_OTOOL64"; then 8474 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8475 else 8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8477 for as_dir in $PATH 8478 do 8479 IFS=$as_save_IFS 8480 case $as_dir in #((( 8481 '') as_dir=./ ;; 8482 */) ;; 8483 *) as_dir=$as_dir/ ;; 8484 esac 8485 for ac_exec_ext in '' $ac_executable_extensions; do 8486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8487 ac_cv_prog_ac_ct_OTOOL64="otool64" 8488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8489 break 2 8490 fi 8491 done 8492 done 8493 IFS=$as_save_IFS 8494 8495 fi ;; 8496 esac 8497 fi 8498 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8499 if test -n "$ac_ct_OTOOL64"; then 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8501 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8502 else 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8504 printf "%s\n" "no" >&6; } 8505 fi 8506 8507 if test "x$ac_ct_OTOOL64" = x; then 8508 OTOOL64=":" 8509 else 8510 case $cross_compiling:$ac_tool_warned in 8511 yes:) 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8513 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8514 ac_tool_warned=yes ;; 8515 esac 8516 OTOOL64=$ac_ct_OTOOL64 8517 fi 8518 else 8519 OTOOL64="$ac_cv_prog_OTOOL64" 8520 fi 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8549 printf %s "checking for -single_module linker flag... " >&6; } 8550 if test ${lt_cv_apple_cc_single_mod+y} 8551 then : 8552 printf %s "(cached) " >&6 8553 else case e in #( 8554 e) lt_cv_apple_cc_single_mod=no 8555 if test -z "$LT_MULTI_MODULE"; then 8556 # By default we will add the -single_module flag. You can override 8557 # by either setting the environment variable LT_MULTI_MODULE 8558 # non-empty at configure time, or by adding -multi_module to the 8559 # link flags. 8560 rm -rf libconftest.dylib* 8561 echo "int foo(void){return 1;}" > conftest.c 8562 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8563 -dynamiclib -Wl,-single_module conftest.c" >&5 8564 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8565 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8566 _lt_result=$? 8567 # If there is a non-empty error log, and "single_module" 8568 # appears in it, assume the flag caused a linker warning 8569 if test -s conftest.err && $GREP single_module conftest.err; then 8570 cat conftest.err >&5 8571 # Otherwise, if the output was created with a 0 exit code from 8572 # the compiler, it worked. 8573 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8574 lt_cv_apple_cc_single_mod=yes 8575 else 8576 cat conftest.err >&5 8577 fi 8578 rm -rf libconftest.dylib* 8579 rm -f conftest.* 8580 fi ;; 8581 esac 8582 fi 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8584 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8585 8586 # Feature test to disable chained fixups since it is not 8587 # compatible with '-undefined dynamic_lookup' 8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8589 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8590 if test ${lt_cv_support_no_fixup_chains+y} 8591 then : 8592 printf %s "(cached) " >&6 8593 else case e in #( 8594 e) save_LDFLAGS=$LDFLAGS 8595 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597 /* end confdefs.h. */ 8598 8599 int 8600 main (void) 8601 { 8602 8603 ; 8604 return 0; 8605 } 8606 _ACEOF 8607 if ac_fn_c_try_link "$LINENO" 8608 then : 8609 lt_cv_support_no_fixup_chains=yes 8610 else case e in #( 8611 e) lt_cv_support_no_fixup_chains=no 8612 ;; 8613 esac 8614 fi 8615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8616 conftest$ac_exeext conftest.$ac_ext 8617 LDFLAGS=$save_LDFLAGS 8618 8619 ;; 8620 esac 8621 fi 8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8623 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8624 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8626 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8627 if test ${lt_cv_ld_exported_symbols_list+y} 8628 then : 8629 printf %s "(cached) " >&6 8630 else case e in #( 8631 e) lt_cv_ld_exported_symbols_list=no 8632 save_LDFLAGS=$LDFLAGS 8633 echo "_main" > conftest.sym 8634 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8636 /* end confdefs.h. */ 8637 8638 int 8639 main (void) 8640 { 8641 8642 ; 8643 return 0; 8644 } 8645 _ACEOF 8646 if ac_fn_c_try_link "$LINENO" 8647 then : 8648 lt_cv_ld_exported_symbols_list=yes 8649 else case e in #( 8650 e) lt_cv_ld_exported_symbols_list=no ;; 8651 esac 8652 fi 8653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8654 conftest$ac_exeext conftest.$ac_ext 8655 LDFLAGS=$save_LDFLAGS 8656 ;; 8657 esac 8658 fi 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8660 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8661 8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8663 printf %s "checking for -force_load linker flag... " >&6; } 8664 if test ${lt_cv_ld_force_load+y} 8665 then : 8666 printf %s "(cached) " >&6 8667 else case e in #( 8668 e) lt_cv_ld_force_load=no 8669 cat > conftest.c << _LT_EOF 8670 int forced_loaded() { return 2;} 8671 _LT_EOF 8672 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8673 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8674 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8675 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8676 echo "$RANLIB libconftest.a" >&5 8677 $RANLIB libconftest.a 2>&5 8678 cat > conftest.c << _LT_EOF 8679 int main(void) { return 0;} 8680 _LT_EOF 8681 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8682 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8683 _lt_result=$? 8684 if test -s conftest.err && $GREP force_load conftest.err; then 8685 cat conftest.err >&5 8686 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8687 lt_cv_ld_force_load=yes 8688 else 8689 cat conftest.err >&5 8690 fi 8691 rm -f conftest.err libconftest.a conftest conftest.c 8692 rm -rf conftest.dSYM 8693 ;; 8694 esac 8695 fi 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8697 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8698 case $host_os in 8699 rhapsody* | darwin1.[012]) 8700 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8701 darwin1.*) 8702 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8703 darwin*) 8704 case $MACOSX_DEPLOYMENT_TARGET,$host in 8705 10.[012],*|,*powerpc*-darwin[5-8]*) 8706 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8707 *) 8708 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8709 if test yes = "$lt_cv_support_no_fixup_chains"; then 8710 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8711 fi 8712 ;; 8713 esac 8714 ;; 8715 esac 8716 if test yes = "$lt_cv_apple_cc_single_mod"; then 8717 _lt_dar_single_mod='$single_module' 8718 fi 8719 _lt_dar_needs_single_mod=no 8720 case $host_os in 8721 rhapsody* | darwin1.*) 8722 _lt_dar_needs_single_mod=yes ;; 8723 darwin*) 8724 # When targeting Mac OS X 10.4 (darwin 8) or later, 8725 # -single_module is the default and -multi_module is unsupported. 8726 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8727 # target any OS version that needs -single_module. 8728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8729 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8730 _lt_dar_needs_single_mod=yes ;; 8731 esac 8732 ;; 8733 esac 8734 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8735 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8736 else 8737 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8738 fi 8739 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8740 _lt_dsymutil='~$DSYMUTIL $lib || :' 8741 else 8742 _lt_dsymutil= 8743 fi 8744 ;; 8745 esac 8746 8747 # func_munge_path_list VARIABLE PATH 8748 # ----------------------------------- 8749 # VARIABLE is name of variable containing _space_ separated list of 8750 # directories to be munged by the contents of PATH, which is string 8751 # having a format: 8752 # "DIR[:DIR]:" 8753 # string "DIR[ DIR]" will be prepended to VARIABLE 8754 # ":DIR[:DIR]" 8755 # string "DIR[ DIR]" will be appended to VARIABLE 8756 # "DIRP[:DIRP]::[DIRA:]DIRA" 8757 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8758 # "DIRA[ DIRA]" will be appended to VARIABLE 8759 # "DIR[:DIR]" 8760 # VARIABLE will be replaced by "DIR[ DIR]" 8761 func_munge_path_list () 8762 { 8763 case x$2 in 8764 x) 8765 ;; 8766 *:) 8767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8768 ;; 8769 x:*) 8770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8771 ;; 8772 *::*) 8773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8775 ;; 8776 *) 8777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8778 ;; 8779 esac 8780 } 8781 8782 ac_header= ac_cache= 8783 for ac_item in $ac_header_c_list 8784 do 8785 if test $ac_cache; then 8786 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8787 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8788 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8789 fi 8790 ac_header= ac_cache= 8791 elif test $ac_header; then 8792 ac_cache=$ac_item 8793 else 8794 ac_header=$ac_item 8795 fi 8796 done 8797 8798 8799 8800 8801 8802 8803 8804 8805 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8806 then : 8807 8808 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8809 8810 fi 8811 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8812 " 8813 if test "x$ac_cv_header_dlfcn_h" = xyes 8814 then : 8815 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8816 8817 fi 8818 8819 8820 8821 8822 8823 # Set options 8824 8825 8826 8827 enable_dlopen=no 8828 8829 8830 enable_win32_dll=no 8831 8832 8833 # Check whether --enable-shared was given. 8834 if test ${enable_shared+y} 8835 then : 8836 enableval=$enable_shared; p=${PACKAGE-default} 8837 case $enableval in 8838 yes) enable_shared=yes ;; 8839 no) enable_shared=no ;; 8840 *) 8841 enable_shared=no 8842 # Look at the argument we got. We use all the common list separators. 8843 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8844 for pkg in $enableval; do 8845 IFS=$lt_save_ifs 8846 if test "X$pkg" = "X$p"; then 8847 enable_shared=yes 8848 fi 8849 done 8850 IFS=$lt_save_ifs 8851 ;; 8852 esac 8853 else case e in #( 8854 e) enable_shared=yes ;; 8855 esac 8856 fi 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 # Check whether --enable-static was given. 8867 if test ${enable_static+y} 8868 then : 8869 enableval=$enable_static; p=${PACKAGE-default} 8870 case $enableval in 8871 yes) enable_static=yes ;; 8872 no) enable_static=no ;; 8873 *) 8874 enable_static=no 8875 # Look at the argument we got. We use all the common list separators. 8876 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8877 for pkg in $enableval; do 8878 IFS=$lt_save_ifs 8879 if test "X$pkg" = "X$p"; then 8880 enable_static=yes 8881 fi 8882 done 8883 IFS=$lt_save_ifs 8884 ;; 8885 esac 8886 else case e in #( 8887 e) enable_static=yes ;; 8888 esac 8889 fi 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 # Check whether --enable-pic was given. 8900 if test ${enable_pic+y} 8901 then : 8902 enableval=$enable_pic; lt_p=${PACKAGE-default} 8903 case $enableval in 8904 yes|no) pic_mode=$enableval ;; 8905 *) 8906 pic_mode=default 8907 # Look at the argument we got. We use all the common list separators. 8908 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8909 for lt_pkg in $enableval; do 8910 IFS=$lt_save_ifs 8911 if test "X$lt_pkg" = "X$lt_p"; then 8912 pic_mode=yes 8913 fi 8914 done 8915 IFS=$lt_save_ifs 8916 ;; 8917 esac 8918 else case e in #( 8919 e) # Check whether --with-pic was given. 8920 if test ${with_pic+y} 8921 then : 8922 withval=$with_pic; lt_p=${PACKAGE-default} 8923 case $withval in 8924 yes|no) pic_mode=$withval ;; 8925 *) 8926 pic_mode=default 8927 # Look at the argument we got. We use all the common list separators. 8928 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8929 for lt_pkg in $withval; do 8930 IFS=$lt_save_ifs 8931 if test "X$lt_pkg" = "X$lt_p"; then 8932 pic_mode=yes 8933 fi 8934 done 8935 IFS=$lt_save_ifs 8936 ;; 8937 esac 8938 else case e in #( 8939 e) pic_mode=default ;; 8940 esac 8941 fi 8942 8943 ;; 8944 esac 8945 fi 8946 8947 8948 8949 8950 8951 8952 8953 8954 # Check whether --enable-fast-install was given. 8955 if test ${enable_fast_install+y} 8956 then : 8957 enableval=$enable_fast_install; p=${PACKAGE-default} 8958 case $enableval in 8959 yes) enable_fast_install=yes ;; 8960 no) enable_fast_install=no ;; 8961 *) 8962 enable_fast_install=no 8963 # Look at the argument we got. We use all the common list separators. 8964 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8965 for pkg in $enableval; do 8966 IFS=$lt_save_ifs 8967 if test "X$pkg" = "X$p"; then 8968 enable_fast_install=yes 8969 fi 8970 done 8971 IFS=$lt_save_ifs 8972 ;; 8973 esac 8974 else case e in #( 8975 e) enable_fast_install=yes ;; 8976 esac 8977 fi 8978 8979 8980 8981 8982 8983 8984 8985 8986 shared_archive_member_spec= 8987 case $host,$enable_shared in 8988 power*-*-aix[5-9]*,yes) 8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8990 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8991 # Check whether --enable-aix-soname was given. 8992 if test ${enable_aix_soname+y} 8993 then : 8994 enableval=$enable_aix_soname; case $enableval in 8995 aix|svr4|both) 8996 ;; 8997 *) 8998 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8999 ;; 9000 esac 9001 lt_cv_with_aix_soname=$enable_aix_soname 9002 else case e in #( 9003 e) # Check whether --with-aix-soname was given. 9004 if test ${with_aix_soname+y} 9005 then : 9006 withval=$with_aix_soname; case $withval in 9007 aix|svr4|both) 9008 ;; 9009 *) 9010 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9011 ;; 9012 esac 9013 lt_cv_with_aix_soname=$with_aix_soname 9014 else case e in #( 9015 e) if test ${lt_cv_with_aix_soname+y} 9016 then : 9017 printf %s "(cached) " >&6 9018 else case e in #( 9019 e) lt_cv_with_aix_soname=aix ;; 9020 esac 9021 fi 9022 ;; 9023 esac 9024 fi 9025 9026 enable_aix_soname=$lt_cv_with_aix_soname ;; 9027 esac 9028 fi 9029 9030 with_aix_soname=$enable_aix_soname 9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9032 printf "%s\n" "$with_aix_soname" >&6; } 9033 if test aix != "$with_aix_soname"; then 9034 # For the AIX way of multilib, we name the shared archive member 9035 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9036 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9037 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9038 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9039 if test 64 = "${OBJECT_MODE-32}"; then 9040 shared_archive_member_spec=shr_64 9041 else 9042 shared_archive_member_spec=shr 9043 fi 9044 fi 9045 ;; 9046 *) 9047 with_aix_soname=aix 9048 ;; 9049 esac 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 # This can be used to rebuild libtool when needed 9061 LIBTOOL_DEPS=$ltmain 9062 9063 # Always use our own libtool. 9064 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 test -z "$LN_S" && LN_S="ln -s" 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 if test -n "${ZSH_VERSION+set}"; then 9111 setopt NO_GLOB_SUBST 9112 fi 9113 9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9115 printf %s "checking for objdir... " >&6; } 9116 if test ${lt_cv_objdir+y} 9117 then : 9118 printf %s "(cached) " >&6 9119 else case e in #( 9120 e) rm -f .libs 2>/dev/null 9121 mkdir .libs 2>/dev/null 9122 if test -d .libs; then 9123 lt_cv_objdir=.libs 9124 else 9125 # MS-DOS does not allow filenames that begin with a dot. 9126 lt_cv_objdir=_libs 9127 fi 9128 rmdir .libs 2>/dev/null ;; 9129 esac 9130 fi 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9132 printf "%s\n" "$lt_cv_objdir" >&6; } 9133 objdir=$lt_cv_objdir 9134 9135 9136 9137 9138 9139 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9140 9141 9142 9143 9144 case $host_os in 9145 aix3*) 9146 # AIX sometimes has problems with the GCC collect2 program. For some 9147 # reason, if we set the COLLECT_NAMES environment variable, the problems 9148 # vanish in a puff of smoke. 9149 if test set != "${COLLECT_NAMES+set}"; then 9150 COLLECT_NAMES= 9151 export COLLECT_NAMES 9152 fi 9153 ;; 9154 esac 9155 9156 # Global variables: 9157 ofile=libtool 9158 can_build_shared=yes 9159 9160 # All known linkers require a '.a' archive for static linking (except MSVC and 9161 # ICC, which need '.lib'). 9162 libext=a 9163 9164 with_gnu_ld=$lt_cv_prog_gnu_ld 9165 9166 old_CC=$CC 9167 old_CFLAGS=$CFLAGS 9168 9169 # Set sane defaults for various variables 9170 test -z "$CC" && CC=cc 9171 test -z "$LTCC" && LTCC=$CC 9172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9173 test -z "$LD" && LD=ld 9174 test -z "$ac_objext" && ac_objext=o 9175 9176 func_cc_basename $compiler 9177 cc_basename=$func_cc_basename_result 9178 9179 9180 # Only perform the check for file, if the check method requires it 9181 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9182 case $deplibs_check_method in 9183 file_magic*) 9184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9186 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9187 if test ${lt_cv_path_MAGIC_CMD+y} 9188 then : 9189 printf %s "(cached) " >&6 9190 else case e in #( 9191 e) case $MAGIC_CMD in 9192 [\\/*] | ?:[\\/]*) 9193 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9194 ;; 9195 *) 9196 lt_save_MAGIC_CMD=$MAGIC_CMD 9197 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9199 for ac_dir in $ac_dummy; do 9200 IFS=$lt_save_ifs 9201 test -z "$ac_dir" && ac_dir=. 9202 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9203 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9204 if test -n "$file_magic_test_file"; then 9205 case $deplibs_check_method in 9206 "file_magic "*) 9207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9208 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9210 $EGREP "$file_magic_regex" > /dev/null; then 9211 : 9212 else 9213 cat <<_LT_EOF 1>&2 9214 9215 *** Warning: the command libtool uses to detect shared libraries, 9216 *** $file_magic_cmd, produces output that libtool cannot recognize. 9217 *** The result is that libtool may fail to recognize shared libraries 9218 *** as such. This will affect the creation of libtool libraries that 9219 *** depend on shared libraries, but programs linked with such libtool 9220 *** libraries will work regardless of this problem. Nevertheless, you 9221 *** may want to report the problem to your system manager and/or to 9222 *** bug-libtool@gnu.org 9223 9224 _LT_EOF 9225 fi ;; 9226 esac 9227 fi 9228 break 9229 fi 9230 done 9231 IFS=$lt_save_ifs 9232 MAGIC_CMD=$lt_save_MAGIC_CMD 9233 ;; 9234 esac ;; 9235 esac 9236 fi 9237 9238 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9239 if test -n "$MAGIC_CMD"; then 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9241 printf "%s\n" "$MAGIC_CMD" >&6; } 9242 else 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9244 printf "%s\n" "no" >&6; } 9245 fi 9246 9247 9248 9249 9250 9251 if test -z "$lt_cv_path_MAGIC_CMD"; then 9252 if test -n "$ac_tool_prefix"; then 9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9254 printf %s "checking for file... " >&6; } 9255 if test ${lt_cv_path_MAGIC_CMD+y} 9256 then : 9257 printf %s "(cached) " >&6 9258 else case e in #( 9259 e) case $MAGIC_CMD in 9260 [\\/*] | ?:[\\/]*) 9261 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9262 ;; 9263 *) 9264 lt_save_MAGIC_CMD=$MAGIC_CMD 9265 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9267 for ac_dir in $ac_dummy; do 9268 IFS=$lt_save_ifs 9269 test -z "$ac_dir" && ac_dir=. 9270 if test -f "$ac_dir/file"; then 9271 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9272 if test -n "$file_magic_test_file"; then 9273 case $deplibs_check_method in 9274 "file_magic "*) 9275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9276 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9278 $EGREP "$file_magic_regex" > /dev/null; then 9279 : 9280 else 9281 cat <<_LT_EOF 1>&2 9282 9283 *** Warning: the command libtool uses to detect shared libraries, 9284 *** $file_magic_cmd, produces output that libtool cannot recognize. 9285 *** The result is that libtool may fail to recognize shared libraries 9286 *** as such. This will affect the creation of libtool libraries that 9287 *** depend on shared libraries, but programs linked with such libtool 9288 *** libraries will work regardless of this problem. Nevertheless, you 9289 *** may want to report the problem to your system manager and/or to 9290 *** bug-libtool@gnu.org 9291 9292 _LT_EOF 9293 fi ;; 9294 esac 9295 fi 9296 break 9297 fi 9298 done 9299 IFS=$lt_save_ifs 9300 MAGIC_CMD=$lt_save_MAGIC_CMD 9301 ;; 9302 esac ;; 9303 esac 9304 fi 9305 9306 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9307 if test -n "$MAGIC_CMD"; then 9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9309 printf "%s\n" "$MAGIC_CMD" >&6; } 9310 else 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9312 printf "%s\n" "no" >&6; } 9313 fi 9314 9315 9316 else 9317 MAGIC_CMD=: 9318 fi 9319 fi 9320 9321 fi 9322 ;; 9323 esac 9324 9325 # Use C for the default configuration in the libtool script 9326 9327 lt_save_CC=$CC 9328 ac_ext=c 9329 ac_cpp='$CPP $CPPFLAGS' 9330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9332 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9333 9334 9335 # Source file extension for C test sources. 9336 ac_ext=c 9337 9338 # Object file extension for compiled C test sources. 9339 objext=o 9340 objext=$objext 9341 9342 # Code to be used in simple compile tests 9343 lt_simple_compile_test_code="int some_variable = 0;" 9344 9345 # Code to be used in simple link tests 9346 lt_simple_link_test_code='int main(void){return(0);}' 9347 9348 9349 9350 9351 9352 9353 9354 # If no C compiler was specified, use CC. 9355 LTCC=${LTCC-"$CC"} 9356 9357 # If no C compiler flags were specified, use CFLAGS. 9358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9359 9360 # Allow CC to be a program name with arguments. 9361 compiler=$CC 9362 9363 # Save the default compiler, since it gets overwritten when the other 9364 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9365 compiler_DEFAULT=$CC 9366 9367 # save warnings/boilerplate of simple test code 9368 ac_outfile=conftest.$ac_objext 9369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9371 _lt_compiler_boilerplate=`cat conftest.err` 9372 $RM conftest* 9373 9374 ac_outfile=conftest.$ac_objext 9375 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9377 _lt_linker_boilerplate=`cat conftest.err` 9378 $RM -r conftest* 9379 9380 9381 ## CAVEAT EMPTOR: 9382 ## There is no encapsulation within the following macros, do not change 9383 ## the running order or otherwise move them around unless you know exactly 9384 ## what you are doing... 9385 if test -n "$compiler"; then 9386 9387 lt_prog_compiler_no_builtin_flag= 9388 9389 if test yes = "$GCC"; then 9390 case $cc_basename in 9391 nvcc*) 9392 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9393 *) 9394 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9395 esac 9396 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9398 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9399 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9400 then : 9401 printf %s "(cached) " >&6 9402 else case e in #( 9403 e) lt_cv_prog_compiler_rtti_exceptions=no 9404 ac_outfile=conftest.$ac_objext 9405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9406 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9407 # Insert the option either (1) after the last *FLAGS variable, or 9408 # (2) before a word containing "conftest.", or (3) at the end. 9409 # Note that $ac_compile itself does not contain backslashes and begins 9410 # with a dollar sign (not a hyphen), so the echo should work correctly. 9411 # The option is referenced via a variable to avoid confusing sed. 9412 lt_compile=`echo "$ac_compile" | $SED \ 9413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9415 -e 's:$: $lt_compiler_flag:'` 9416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9417 (eval "$lt_compile" 2>conftest.err) 9418 ac_status=$? 9419 cat conftest.err >&5 9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9421 if (exit $ac_status) && test -s "$ac_outfile"; then 9422 # The compiler can only warn and ignore the option if not recognized 9423 # So say no if there are warnings other than the usual output. 9424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9427 lt_cv_prog_compiler_rtti_exceptions=yes 9428 fi 9429 fi 9430 $RM conftest* 9431 ;; 9432 esac 9433 fi 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9435 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9436 9437 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9439 else 9440 : 9441 fi 9442 9443 fi 9444 9445 9446 9447 9448 9449 9450 lt_prog_compiler_wl= 9451 lt_prog_compiler_pic= 9452 lt_prog_compiler_static= 9453 9454 9455 if test yes = "$GCC"; then 9456 lt_prog_compiler_wl='-Wl,' 9457 lt_prog_compiler_static='-static' 9458 9459 case $host_os in 9460 aix*) 9461 # All AIX code is PIC. 9462 if test ia64 = "$host_cpu"; then 9463 # AIX 5 now supports IA64 processor 9464 lt_prog_compiler_static='-Bstatic' 9465 fi 9466 lt_prog_compiler_pic='-fPIC' 9467 ;; 9468 9469 amigaos*) 9470 case $host_cpu in 9471 powerpc) 9472 # see comment about AmigaOS4 .so support 9473 lt_prog_compiler_pic='-fPIC' 9474 ;; 9475 m68k) 9476 # FIXME: we need at least 68020 code to build shared libraries, but 9477 # adding the '-m68020' flag to GCC prevents building anything better, 9478 # like '-m68040'. 9479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9480 ;; 9481 esac 9482 ;; 9483 9484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9485 # PIC is the default for these OSes. 9486 ;; 9487 9488 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9489 # This hack is so that the source file can tell whether it is being 9490 # built for inclusion in a dll (and should export symbols for example). 9491 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9492 # (--disable-auto-import) libraries 9493 lt_prog_compiler_pic='-DDLL_EXPORT' 9494 case $host_os in 9495 os2*) 9496 lt_prog_compiler_static='$wl-static' 9497 ;; 9498 esac 9499 ;; 9500 9501 darwin* | rhapsody*) 9502 # PIC is the default on this platform 9503 # Common symbols not allowed in MH_DYLIB files 9504 lt_prog_compiler_pic='-fno-common' 9505 ;; 9506 9507 haiku*) 9508 # PIC is the default for Haiku. 9509 # The "-static" flag exists, but is broken. 9510 lt_prog_compiler_static= 9511 ;; 9512 9513 hpux*) 9514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9516 # sets the default TLS model and affects inlining. 9517 case $host_cpu in 9518 hppa*64*) 9519 # +Z the default 9520 ;; 9521 *) 9522 lt_prog_compiler_pic='-fPIC' 9523 ;; 9524 esac 9525 ;; 9526 9527 interix[3-9]*) 9528 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9529 # Instead, we relocate shared libraries at runtime. 9530 ;; 9531 9532 msdosdjgpp*) 9533 # Just because we use GCC doesn't mean we suddenly get shared libraries 9534 # on systems that don't support them. 9535 lt_prog_compiler_can_build_shared=no 9536 enable_shared=no 9537 ;; 9538 9539 *nto* | *qnx*) 9540 # QNX uses GNU C++, but need to define -shared option too, otherwise 9541 # it will coredump. 9542 lt_prog_compiler_pic='-fPIC -shared' 9543 ;; 9544 9545 sysv4*MP*) 9546 if test -d /usr/nec; then 9547 lt_prog_compiler_pic=-Kconform_pic 9548 fi 9549 ;; 9550 9551 *) 9552 lt_prog_compiler_pic='-fPIC' 9553 ;; 9554 esac 9555 9556 case $cc_basename in 9557 nvcc*) # Cuda Compiler Driver 2.2 9558 lt_prog_compiler_wl='-Xlinker ' 9559 if test -n "$lt_prog_compiler_pic"; then 9560 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9561 fi 9562 ;; 9563 esac 9564 else 9565 # PORTME Check for flag to pass linker flags through the system compiler. 9566 case $host_os in 9567 aix*) 9568 lt_prog_compiler_wl='-Wl,' 9569 if test ia64 = "$host_cpu"; then 9570 # AIX 5 now supports IA64 processor 9571 lt_prog_compiler_static='-Bstatic' 9572 else 9573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9574 fi 9575 ;; 9576 9577 darwin* | rhapsody*) 9578 # PIC is the default on this platform 9579 # Common symbols not allowed in MH_DYLIB files 9580 lt_prog_compiler_pic='-fno-common' 9581 case $cc_basename in 9582 nagfor*) 9583 # NAG Fortran compiler 9584 lt_prog_compiler_wl='-Wl,-Wl,,' 9585 lt_prog_compiler_pic='-PIC' 9586 lt_prog_compiler_static='-Bstatic' 9587 ;; 9588 esac 9589 ;; 9590 9591 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9592 # This hack is so that the source file can tell whether it is being 9593 # built for inclusion in a dll (and should export symbols for example). 9594 lt_prog_compiler_pic='-DDLL_EXPORT' 9595 case $host_os in 9596 os2*) 9597 lt_prog_compiler_static='$wl-static' 9598 ;; 9599 esac 9600 ;; 9601 9602 hpux9* | hpux10* | hpux11*) 9603 lt_prog_compiler_wl='-Wl,' 9604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9605 # not for PA HP-UX. 9606 case $host_cpu in 9607 hppa*64*|ia64*) 9608 # +Z the default 9609 ;; 9610 *) 9611 lt_prog_compiler_pic='+Z' 9612 ;; 9613 esac 9614 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9615 lt_prog_compiler_static='$wl-a ${wl}archive' 9616 ;; 9617 9618 irix5* | irix6* | nonstopux*) 9619 lt_prog_compiler_wl='-Wl,' 9620 # PIC (with -KPIC) is the default. 9621 lt_prog_compiler_static='-non_shared' 9622 ;; 9623 9624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9625 case $cc_basename in 9626 # old Intel for x86_64, which still supported -KPIC. 9627 ecc*) 9628 lt_prog_compiler_wl='-Wl,' 9629 lt_prog_compiler_pic='-KPIC' 9630 lt_prog_compiler_static='-static' 9631 ;; 9632 *flang* | ftn | f18* | f95*) 9633 # Flang compiler. 9634 lt_prog_compiler_wl='-Wl,' 9635 lt_prog_compiler_pic='-fPIC' 9636 lt_prog_compiler_static='-static' 9637 ;; 9638 # icc used to be incompatible with GCC. 9639 # ICC 10 doesn't accept -KPIC any more. 9640 icc* | ifort*) 9641 lt_prog_compiler_wl='-Wl,' 9642 lt_prog_compiler_pic='-fPIC' 9643 lt_prog_compiler_static='-static' 9644 ;; 9645 # Lahey Fortran 8.1. 9646 lf95*) 9647 lt_prog_compiler_wl='-Wl,' 9648 lt_prog_compiler_pic='--shared' 9649 lt_prog_compiler_static='--static' 9650 ;; 9651 nagfor*) 9652 # NAG Fortran compiler 9653 lt_prog_compiler_wl='-Wl,-Wl,,' 9654 lt_prog_compiler_pic='-PIC' 9655 lt_prog_compiler_static='-Bstatic' 9656 ;; 9657 tcc*) 9658 # Fabrice Bellard et al's Tiny C Compiler 9659 lt_prog_compiler_wl='-Wl,' 9660 lt_prog_compiler_pic='-fPIC' 9661 lt_prog_compiler_static='-static' 9662 ;; 9663 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9664 # Portland Group compilers (*not* the Pentium gcc compiler, 9665 # which looks to be a dead project) 9666 lt_prog_compiler_wl='-Wl,' 9667 lt_prog_compiler_pic='-fpic' 9668 lt_prog_compiler_static='-Bstatic' 9669 ;; 9670 ccc*) 9671 lt_prog_compiler_wl='-Wl,' 9672 # All Alpha code is PIC. 9673 lt_prog_compiler_static='-non_shared' 9674 ;; 9675 xl* | bgxl* | bgf* | mpixl*) 9676 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9677 lt_prog_compiler_wl='-Wl,' 9678 lt_prog_compiler_pic='-qpic' 9679 lt_prog_compiler_static='-qstaticlink' 9680 ;; 9681 *) 9682 case `$CC -V 2>&1 | $SED 5q` in 9683 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9684 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9685 lt_prog_compiler_pic='-KPIC' 9686 lt_prog_compiler_static='-Bstatic' 9687 lt_prog_compiler_wl='' 9688 ;; 9689 *Sun\ F* | *Sun*Fortran*) 9690 lt_prog_compiler_pic='-KPIC' 9691 lt_prog_compiler_static='-Bstatic' 9692 lt_prog_compiler_wl='-Qoption ld ' 9693 ;; 9694 *Sun\ C*) 9695 # Sun C 5.9 9696 lt_prog_compiler_pic='-KPIC' 9697 lt_prog_compiler_static='-Bstatic' 9698 lt_prog_compiler_wl='-Wl,' 9699 ;; 9700 *Intel*\ [CF]*Compiler*) 9701 lt_prog_compiler_wl='-Wl,' 9702 lt_prog_compiler_pic='-fPIC' 9703 lt_prog_compiler_static='-static' 9704 ;; 9705 *Portland\ Group*) 9706 lt_prog_compiler_wl='-Wl,' 9707 lt_prog_compiler_pic='-fpic' 9708 lt_prog_compiler_static='-Bstatic' 9709 ;; 9710 esac 9711 ;; 9712 esac 9713 ;; 9714 9715 newsos6) 9716 lt_prog_compiler_pic='-KPIC' 9717 lt_prog_compiler_static='-Bstatic' 9718 ;; 9719 9720 *-mlibc) 9721 lt_prog_compiler_wl='-Wl,' 9722 lt_prog_compiler_pic='-fPIC' 9723 lt_prog_compiler_static='-static' 9724 ;; 9725 9726 *nto* | *qnx*) 9727 # QNX uses GNU C++, but need to define -shared option too, otherwise 9728 # it will coredump. 9729 lt_prog_compiler_pic='-fPIC -shared' 9730 ;; 9731 9732 osf3* | osf4* | osf5*) 9733 lt_prog_compiler_wl='-Wl,' 9734 # All OSF/1 code is PIC. 9735 lt_prog_compiler_static='-non_shared' 9736 ;; 9737 9738 rdos*) 9739 lt_prog_compiler_static='-non_shared' 9740 ;; 9741 9742 serenity*) 9743 ;; 9744 9745 solaris*) 9746 lt_prog_compiler_pic='-KPIC' 9747 lt_prog_compiler_static='-Bstatic' 9748 case $cc_basename in 9749 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9750 lt_prog_compiler_wl='-Qoption ld ';; 9751 *) 9752 lt_prog_compiler_wl='-Wl,';; 9753 esac 9754 ;; 9755 9756 sunos4*) 9757 lt_prog_compiler_wl='-Qoption ld ' 9758 lt_prog_compiler_pic='-PIC' 9759 lt_prog_compiler_static='-Bstatic' 9760 ;; 9761 9762 sysv4 | sysv4.2uw2* | sysv4.3*) 9763 lt_prog_compiler_wl='-Wl,' 9764 lt_prog_compiler_pic='-KPIC' 9765 lt_prog_compiler_static='-Bstatic' 9766 ;; 9767 9768 sysv4*MP*) 9769 if test -d /usr/nec; then 9770 lt_prog_compiler_pic='-Kconform_pic' 9771 lt_prog_compiler_static='-Bstatic' 9772 fi 9773 ;; 9774 9775 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9776 lt_prog_compiler_wl='-Wl,' 9777 lt_prog_compiler_pic='-KPIC' 9778 lt_prog_compiler_static='-Bstatic' 9779 ;; 9780 9781 unicos*) 9782 lt_prog_compiler_wl='-Wl,' 9783 lt_prog_compiler_can_build_shared=no 9784 ;; 9785 9786 uts4*) 9787 lt_prog_compiler_pic='-pic' 9788 lt_prog_compiler_static='-Bstatic' 9789 ;; 9790 9791 *) 9792 lt_prog_compiler_can_build_shared=no 9793 ;; 9794 esac 9795 fi 9796 9797 case $host_os in 9798 # For platforms that do not support PIC, -DPIC is meaningless: 9799 *djgpp*) 9800 lt_prog_compiler_pic= 9801 ;; 9802 *) 9803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9804 ;; 9805 esac 9806 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9808 printf %s "checking for $compiler option to produce PIC... " >&6; } 9809 if test ${lt_cv_prog_compiler_pic+y} 9810 then : 9811 printf %s "(cached) " >&6 9812 else case e in #( 9813 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9814 esac 9815 fi 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9817 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9818 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9819 9820 # 9821 # Check to make sure the PIC flag actually works. 9822 # 9823 if test -n "$lt_prog_compiler_pic"; then 9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9825 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9826 if test ${lt_cv_prog_compiler_pic_works+y} 9827 then : 9828 printf %s "(cached) " >&6 9829 else case e in #( 9830 e) lt_cv_prog_compiler_pic_works=no 9831 ac_outfile=conftest.$ac_objext 9832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9834 # Insert the option either (1) after the last *FLAGS variable, or 9835 # (2) before a word containing "conftest.", or (3) at the end. 9836 # Note that $ac_compile itself does not contain backslashes and begins 9837 # with a dollar sign (not a hyphen), so the echo should work correctly. 9838 # The option is referenced via a variable to avoid confusing sed. 9839 lt_compile=`echo "$ac_compile" | $SED \ 9840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9842 -e 's:$: $lt_compiler_flag:'` 9843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9844 (eval "$lt_compile" 2>conftest.err) 9845 ac_status=$? 9846 cat conftest.err >&5 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 if (exit $ac_status) && test -s "$ac_outfile"; then 9849 # The compiler can only warn and ignore the option if not recognized 9850 # So say no if there are warnings other than the usual output. 9851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9854 lt_cv_prog_compiler_pic_works=yes 9855 fi 9856 fi 9857 $RM conftest* 9858 ;; 9859 esac 9860 fi 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9862 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9863 9864 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9865 case $lt_prog_compiler_pic in 9866 "" | " "*) ;; 9867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9868 esac 9869 else 9870 lt_prog_compiler_pic= 9871 lt_prog_compiler_can_build_shared=no 9872 fi 9873 9874 fi 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 # 9887 # Check to make sure the static flag actually works. 9888 # 9889 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9891 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9892 if test ${lt_cv_prog_compiler_static_works+y} 9893 then : 9894 printf %s "(cached) " >&6 9895 else case e in #( 9896 e) lt_cv_prog_compiler_static_works=no 9897 save_LDFLAGS=$LDFLAGS 9898 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9899 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9900 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9901 # The linker can only warn and ignore the option if not recognized 9902 # So say no if there are warnings 9903 if test -s conftest.err; then 9904 # Append any errors to the config.log. 9905 cat conftest.err 1>&5 9906 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9908 if diff conftest.exp conftest.er2 >/dev/null; then 9909 lt_cv_prog_compiler_static_works=yes 9910 fi 9911 else 9912 lt_cv_prog_compiler_static_works=yes 9913 fi 9914 fi 9915 $RM -r conftest* 9916 LDFLAGS=$save_LDFLAGS 9917 ;; 9918 esac 9919 fi 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9921 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9922 9923 if test yes = "$lt_cv_prog_compiler_static_works"; then 9924 : 9925 else 9926 lt_prog_compiler_static= 9927 fi 9928 9929 9930 9931 9932 9933 9934 9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9936 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9937 if test ${lt_cv_prog_compiler_c_o+y} 9938 then : 9939 printf %s "(cached) " >&6 9940 else case e in #( 9941 e) lt_cv_prog_compiler_c_o=no 9942 $RM -r conftest 2>/dev/null 9943 mkdir conftest 9944 cd conftest 9945 mkdir out 9946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9947 9948 lt_compiler_flag="-o out/conftest2.$ac_objext" 9949 # Insert the option either (1) after the last *FLAGS variable, or 9950 # (2) before a word containing "conftest.", or (3) at the end. 9951 # Note that $ac_compile itself does not contain backslashes and begins 9952 # with a dollar sign (not a hyphen), so the echo should work correctly. 9953 lt_compile=`echo "$ac_compile" | $SED \ 9954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9956 -e 's:$: $lt_compiler_flag:'` 9957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9958 (eval "$lt_compile" 2>out/conftest.err) 9959 ac_status=$? 9960 cat out/conftest.err >&5 9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9962 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9963 then 9964 # The compiler can only warn and ignore the option if not recognized 9965 # So say no if there are warnings 9966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9969 lt_cv_prog_compiler_c_o=yes 9970 fi 9971 fi 9972 chmod u+w . 2>&5 9973 $RM conftest* 9974 # SGI C++ compiler will create directory out/ii_files/ for 9975 # template instantiation 9976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9977 $RM out/* && rmdir out 9978 cd .. 9979 $RM -r conftest 9980 $RM conftest* 9981 ;; 9982 esac 9983 fi 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9985 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9986 9987 9988 9989 9990 9991 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9993 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9994 if test ${lt_cv_prog_compiler_c_o+y} 9995 then : 9996 printf %s "(cached) " >&6 9997 else case e in #( 9998 e) lt_cv_prog_compiler_c_o=no 9999 $RM -r conftest 2>/dev/null 10000 mkdir conftest 10001 cd conftest 10002 mkdir out 10003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10004 10005 lt_compiler_flag="-o out/conftest2.$ac_objext" 10006 # Insert the option either (1) after the last *FLAGS variable, or 10007 # (2) before a word containing "conftest.", or (3) at the end. 10008 # Note that $ac_compile itself does not contain backslashes and begins 10009 # with a dollar sign (not a hyphen), so the echo should work correctly. 10010 lt_compile=`echo "$ac_compile" | $SED \ 10011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10013 -e 's:$: $lt_compiler_flag:'` 10014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10015 (eval "$lt_compile" 2>out/conftest.err) 10016 ac_status=$? 10017 cat out/conftest.err >&5 10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10020 then 10021 # The compiler can only warn and ignore the option if not recognized 10022 # So say no if there are warnings 10023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10026 lt_cv_prog_compiler_c_o=yes 10027 fi 10028 fi 10029 chmod u+w . 2>&5 10030 $RM conftest* 10031 # SGI C++ compiler will create directory out/ii_files/ for 10032 # template instantiation 10033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10034 $RM out/* && rmdir out 10035 cd .. 10036 $RM -r conftest 10037 $RM conftest* 10038 ;; 10039 esac 10040 fi 10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10042 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10043 10044 10045 10046 10047 hard_links=nottested 10048 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10049 # do not overwrite the value of need_locks provided by the user 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10051 printf %s "checking if we can lock with hard links... " >&6; } 10052 hard_links=yes 10053 $RM conftest* 10054 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10055 touch conftest.a 10056 ln conftest.a conftest.b 2>&5 || hard_links=no 10057 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10059 printf "%s\n" "$hard_links" >&6; } 10060 if test no = "$hard_links"; then 10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10062 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10063 need_locks=warn 10064 fi 10065 else 10066 need_locks=no 10067 fi 10068 10069 10070 10071 10072 10073 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10075 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10076 10077 runpath_var= 10078 allow_undefined_flag= 10079 always_export_symbols=no 10080 archive_cmds= 10081 archive_expsym_cmds= 10082 compiler_needs_object=no 10083 enable_shared_with_static_runtimes=no 10084 export_dynamic_flag_spec= 10085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10086 hardcode_automatic=no 10087 hardcode_direct=no 10088 hardcode_direct_absolute=no 10089 hardcode_libdir_flag_spec= 10090 hardcode_libdir_separator= 10091 hardcode_minus_L=no 10092 hardcode_shlibpath_var=unsupported 10093 inherit_rpath=no 10094 link_all_deplibs=unknown 10095 module_cmds= 10096 module_expsym_cmds= 10097 old_archive_from_new_cmds= 10098 old_archive_from_expsyms_cmds= 10099 thread_safe_flag_spec= 10100 whole_archive_flag_spec= 10101 # include_expsyms should be a list of space-separated symbols to be *always* 10102 # included in the symbol list 10103 include_expsyms= 10104 # exclude_expsyms can be an extended regexp of symbols to exclude 10105 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10106 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10107 # as well as any symbol that contains 'd'. 10108 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10110 # platforms (ab)use it in PIC code, but their linkers get confused if 10111 # the symbol is explicitly referenced. Since portable code cannot 10112 # rely on this symbol name, it's probably fine to never include it in 10113 # preloaded symbol tables. 10114 # Exclude shared library initialization/finalization symbols. 10115 extract_expsyms_cmds= 10116 10117 case $host_os in 10118 cygwin* | mingw* | windows* | pw32* | cegcc*) 10119 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10120 # When not using gcc, we currently assume that we are using 10121 # Microsoft Visual C++ or Intel C++ Compiler. 10122 if test yes != "$GCC"; then 10123 with_gnu_ld=no 10124 fi 10125 ;; 10126 interix*) 10127 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10128 with_gnu_ld=yes 10129 ;; 10130 esac 10131 10132 ld_shlibs=yes 10133 10134 # On some targets, GNU ld is compatible enough with the native linker 10135 # that we're better off using the native interface for both. 10136 lt_use_gnu_ld_interface=no 10137 if test yes = "$with_gnu_ld"; then 10138 case $host_os in 10139 aix*) 10140 # The AIX port of GNU ld has always aspired to compatibility 10141 # with the native linker. However, as the warning in the GNU ld 10142 # block says, versions before 2.19.5* couldn't really create working 10143 # shared libraries, regardless of the interface used. 10144 case `$LD -v 2>&1` in 10145 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10146 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10147 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10148 *) 10149 lt_use_gnu_ld_interface=yes 10150 ;; 10151 esac 10152 ;; 10153 *) 10154 lt_use_gnu_ld_interface=yes 10155 ;; 10156 esac 10157 fi 10158 10159 if test yes = "$lt_use_gnu_ld_interface"; then 10160 # If archive_cmds runs LD, not CC, wlarc should be empty 10161 wlarc='$wl' 10162 10163 # Set some defaults for GNU ld with shared library support. These 10164 # are reset later if shared libraries are not supported. Putting them 10165 # here allows them to be overridden if necessary. 10166 runpath_var=LD_RUN_PATH 10167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10168 export_dynamic_flag_spec='$wl--export-dynamic' 10169 # ancient GNU ld didn't support --whole-archive et. al. 10170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10171 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10172 else 10173 whole_archive_flag_spec= 10174 fi 10175 supports_anon_versioning=no 10176 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10177 *GNU\ gold*) supports_anon_versioning=yes ;; 10178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10181 *\ 2.11.*) ;; # other 2.11 versions 10182 *) supports_anon_versioning=yes ;; 10183 esac 10184 10185 # See if GNU ld supports shared libraries. 10186 case $host_os in 10187 aix[3-9]*) 10188 # On AIX/PPC, the GNU linker is very broken 10189 if test ia64 != "$host_cpu"; then 10190 ld_shlibs=no 10191 cat <<_LT_EOF 1>&2 10192 10193 *** Warning: the GNU linker, at least up to release 2.19, is reported 10194 *** to be unable to reliably create shared libraries on AIX. 10195 *** Therefore, libtool is disabling shared libraries support. If you 10196 *** really care for shared libraries, you may want to install binutils 10197 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10198 *** You will then need to restart the configuration process. 10199 10200 _LT_EOF 10201 fi 10202 ;; 10203 10204 amigaos*) 10205 case $host_cpu in 10206 powerpc) 10207 # see comment about AmigaOS4 .so support 10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10209 archive_expsym_cmds='' 10210 ;; 10211 m68k) 10212 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)' 10213 hardcode_libdir_flag_spec='-L$libdir' 10214 hardcode_minus_L=yes 10215 ;; 10216 esac 10217 ;; 10218 10219 beos*) 10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10221 allow_undefined_flag=unsupported 10222 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10223 # support --undefined. This deserves some investigation. FIXME 10224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10225 else 10226 ld_shlibs=no 10227 fi 10228 ;; 10229 10230 cygwin* | mingw* | windows* | pw32* | cegcc*) 10231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10232 # as there is no search path for DLLs. 10233 hardcode_libdir_flag_spec='-L$libdir' 10234 export_dynamic_flag_spec='$wl--export-all-symbols' 10235 allow_undefined_flag=unsupported 10236 always_export_symbols=no 10237 enable_shared_with_static_runtimes=yes 10238 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' 10239 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10240 file_list_spec='@' 10241 10242 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10244 # If the export-symbols file already is a .def file, use it as 10245 # is; otherwise, prepend EXPORTS... 10246 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10247 cp $export_symbols $output_objdir/$soname.def; 10248 else 10249 echo EXPORTS > $output_objdir/$soname.def; 10250 cat $export_symbols >> $output_objdir/$soname.def; 10251 fi~ 10252 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10253 else 10254 ld_shlibs=no 10255 fi 10256 ;; 10257 10258 haiku*) 10259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10260 link_all_deplibs=no 10261 ;; 10262 10263 os2*) 10264 hardcode_libdir_flag_spec='-L$libdir' 10265 hardcode_minus_L=yes 10266 allow_undefined_flag=unsupported 10267 shrext_cmds=.dll 10268 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10271 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10272 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10274 emximp -o $lib $output_objdir/$libname.def' 10275 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10278 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10279 prefix_cmds="$SED"~ 10280 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10281 prefix_cmds="$prefix_cmds -e 1d"; 10282 fi~ 10283 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10284 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10286 emximp -o $lib $output_objdir/$libname.def' 10287 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10288 enable_shared_with_static_runtimes=yes 10289 file_list_spec='@' 10290 ;; 10291 10292 interix[3-9]*) 10293 hardcode_direct=no 10294 hardcode_shlibpath_var=no 10295 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10296 export_dynamic_flag_spec='$wl-E' 10297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10298 # Instead, shared libraries are loaded at an image base (0x10000000 by 10299 # default) and relocated if they conflict, which is a slow very memory 10300 # consuming and fragmenting process. To avoid this, we pick a random, 10301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10302 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10304 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' 10305 ;; 10306 10307 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10308 tmp_diet=no 10309 if test linux-dietlibc = "$host_os"; then 10310 case $cc_basename in 10311 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10312 esac 10313 fi 10314 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10315 && test no = "$tmp_diet" 10316 then 10317 tmp_addflag=' $pic_flag' 10318 tmp_sharedflag='-shared' 10319 case $cc_basename,$host_cpu in 10320 pgcc*) # Portland Group C compiler 10321 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' 10322 tmp_addflag=' $pic_flag' 10323 ;; 10324 pgf77* | pgf90* | pgf95* | pgfortran*) 10325 # Portland Group f77 and f90 compilers 10326 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' 10327 tmp_addflag=' $pic_flag -Mnomain' ;; 10328 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10329 tmp_addflag=' -i_dynamic' ;; 10330 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10331 tmp_addflag=' -i_dynamic -nofor_main' ;; 10332 ifc* | ifort*) # Intel Fortran compiler 10333 tmp_addflag=' -nofor_main' ;; 10334 lf95*) # Lahey Fortran 8.1 10335 whole_archive_flag_spec= 10336 tmp_sharedflag='--shared' ;; 10337 nagfor*) # NAGFOR 5.3 10338 tmp_sharedflag='-Wl,-shared' ;; 10339 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10340 tmp_sharedflag='-qmkshrobj' 10341 tmp_addflag= ;; 10342 nvcc*) # Cuda Compiler Driver 2.2 10343 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' 10344 compiler_needs_object=yes 10345 ;; 10346 esac 10347 case `$CC -V 2>&1 | $SED 5q` in 10348 *Sun\ C*) # Sun C 5.9 10349 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' 10350 compiler_needs_object=yes 10351 tmp_sharedflag='-G' ;; 10352 *Sun\ F*) # Sun Fortran 8.3 10353 tmp_sharedflag='-G' ;; 10354 esac 10355 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10356 10357 if test yes = "$supports_anon_versioning"; then 10358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10359 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10360 echo "local: *; };" >> $output_objdir/$libname.ver~ 10361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10362 fi 10363 10364 case $cc_basename in 10365 tcc*) 10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10367 export_dynamic_flag_spec='-rdynamic' 10368 ;; 10369 xlf* | bgf* | bgxlf* | mpixlf*) 10370 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10371 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10373 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10374 if test yes = "$supports_anon_versioning"; then 10375 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10376 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10377 echo "local: *; };" >> $output_objdir/$libname.ver~ 10378 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10379 fi 10380 ;; 10381 esac 10382 else 10383 ld_shlibs=no 10384 fi 10385 ;; 10386 10387 *-mlibc) 10388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10389 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10390 ;; 10391 10392 netbsd* | netbsdelf*-gnu) 10393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10395 wlarc= 10396 else 10397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10399 fi 10400 ;; 10401 10402 solaris*) 10403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10404 ld_shlibs=no 10405 cat <<_LT_EOF 1>&2 10406 10407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10408 *** create shared libraries on Solaris systems. Therefore, libtool 10409 *** is disabling shared libraries support. We urge you to upgrade GNU 10410 *** binutils to release 2.9.1 or newer. Another option is to modify 10411 *** your PATH or compiler configuration so that the native linker is 10412 *** used, and then restart. 10413 10414 _LT_EOF 10415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10418 else 10419 ld_shlibs=no 10420 fi 10421 ;; 10422 10423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10424 case `$LD -v 2>&1` in 10425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10426 ld_shlibs=no 10427 cat <<_LT_EOF 1>&2 10428 10429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10430 *** reliably create shared libraries on SCO systems. Therefore, libtool 10431 *** is disabling shared libraries support. We urge you to upgrade GNU 10432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10433 *** your PATH or compiler configuration so that the native linker is 10434 *** used, and then restart. 10435 10436 _LT_EOF 10437 ;; 10438 *) 10439 # For security reasons, it is highly recommended that you always 10440 # use absolute paths for naming shared libraries, and exclude the 10441 # DT_RUNPATH tag from executables and libraries. But doing so 10442 # requires that you compile everything twice, which is a pain. 10443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10447 else 10448 ld_shlibs=no 10449 fi 10450 ;; 10451 esac 10452 ;; 10453 10454 sunos4*) 10455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10456 wlarc= 10457 hardcode_direct=yes 10458 hardcode_shlibpath_var=no 10459 ;; 10460 10461 *) 10462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10465 else 10466 ld_shlibs=no 10467 fi 10468 ;; 10469 esac 10470 10471 if test no = "$ld_shlibs"; then 10472 runpath_var= 10473 hardcode_libdir_flag_spec= 10474 export_dynamic_flag_spec= 10475 whole_archive_flag_spec= 10476 fi 10477 else 10478 # PORTME fill in a description of your system's linker (not GNU ld) 10479 case $host_os in 10480 aix3*) 10481 allow_undefined_flag=unsupported 10482 always_export_symbols=yes 10483 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' 10484 # Note: this linker hardcodes the directories in LIBPATH if there 10485 # are no directories specified by -L. 10486 hardcode_minus_L=yes 10487 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10488 # Neither direct hardcoding nor static linking is supported with a 10489 # broken collect2. 10490 hardcode_direct=unsupported 10491 fi 10492 ;; 10493 10494 aix[4-9]*) 10495 if test ia64 = "$host_cpu"; then 10496 # On IA64, the linker does run time linking by default, so we don't 10497 # have to do anything special. 10498 aix_use_runtimelinking=no 10499 exp_sym_flag='-Bexport' 10500 no_entry_flag= 10501 else 10502 # If we're using GNU nm, then we don't want the "-C" option. 10503 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10504 # Without the "-l" option, or with the "-B" option, AIX nm treats 10505 # weak defined symbols like other global defined symbols, whereas 10506 # GNU nm marks them as "W". 10507 # While the 'weak' keyword is ignored in the Export File, we need 10508 # it in the Import File for the 'aix-soname' feature, so we have 10509 # to replace the "-B" option with "-P" for AIX nm. 10510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10511 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' 10512 else 10513 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' 10514 fi 10515 aix_use_runtimelinking=no 10516 10517 # Test if we are trying to use run time linking or normal 10518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10519 # have runtime linking enabled, and use it for executables. 10520 # For shared libraries, we enable/disable runtime linking 10521 # depending on the kind of the shared library created - 10522 # when "with_aix_soname,aix_use_runtimelinking" is: 10523 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10524 # "aix,yes" lib.so shared, rtl:yes, for executables 10525 # lib.a static archive 10526 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10527 # lib.a(lib.so.V) shared, rtl:no, for executables 10528 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10529 # lib.a(lib.so.V) shared, rtl:no 10530 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10531 # lib.a static archive 10532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10533 for ld_flag in $LDFLAGS; do 10534 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10535 aix_use_runtimelinking=yes 10536 break 10537 fi 10538 done 10539 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10540 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10541 # so we don't have lib.a shared libs to link our executables. 10542 # We have to force runtime linking in this case. 10543 aix_use_runtimelinking=yes 10544 LDFLAGS="$LDFLAGS -Wl,-brtl" 10545 fi 10546 ;; 10547 esac 10548 10549 exp_sym_flag='-bexport' 10550 no_entry_flag='-bnoentry' 10551 fi 10552 10553 # When large executables or shared objects are built, AIX ld can 10554 # have problems creating the table of contents. If linking a library 10555 # or program results in "error TOC overflow" add -mminimal-toc to 10556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10558 10559 archive_cmds='' 10560 hardcode_direct=yes 10561 hardcode_direct_absolute=yes 10562 hardcode_libdir_separator=':' 10563 link_all_deplibs=yes 10564 file_list_spec='$wl-f,' 10565 case $with_aix_soname,$aix_use_runtimelinking in 10566 aix,*) ;; # traditional, no import file 10567 svr4,* | *,yes) # use import file 10568 # The Import File defines what to hardcode. 10569 hardcode_direct=no 10570 hardcode_direct_absolute=no 10571 ;; 10572 esac 10573 10574 if test yes = "$GCC"; then 10575 case $host_os in aix4.[012]|aix4.[012].*) 10576 # We only want to do this on AIX 4.2 and lower, the check 10577 # below for broken collect2 doesn't work under 4.3+ 10578 collect2name=`$CC -print-prog-name=collect2` 10579 if test -f "$collect2name" && 10580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10581 then 10582 # We have reworked collect2 10583 : 10584 else 10585 # We have old collect2 10586 hardcode_direct=unsupported 10587 # It fails to find uninstalled libraries when the uninstalled 10588 # path is not listed in the libpath. Setting hardcode_minus_L 10589 # to unsupported forces relinking 10590 hardcode_minus_L=yes 10591 hardcode_libdir_flag_spec='-L$libdir' 10592 hardcode_libdir_separator= 10593 fi 10594 ;; 10595 esac 10596 shared_flag='-shared' 10597 if test yes = "$aix_use_runtimelinking"; then 10598 shared_flag="$shared_flag "'$wl-G' 10599 fi 10600 # Need to ensure runtime linking is disabled for the traditional 10601 # shared library, or the linker may eventually find shared libraries 10602 # /with/ Import File - we do not want to mix them. 10603 shared_flag_aix='-shared' 10604 shared_flag_svr4='-shared $wl-G' 10605 else 10606 # not using gcc 10607 if test ia64 = "$host_cpu"; then 10608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10609 # chokes on -Wl,-G. The following line is correct: 10610 shared_flag='-G' 10611 else 10612 if test yes = "$aix_use_runtimelinking"; then 10613 shared_flag='$wl-G' 10614 else 10615 shared_flag='$wl-bM:SRE' 10616 fi 10617 shared_flag_aix='$wl-bM:SRE' 10618 shared_flag_svr4='$wl-G' 10619 fi 10620 fi 10621 10622 export_dynamic_flag_spec='$wl-bexpall' 10623 # It seems that -bexpall does not export symbols beginning with 10624 # underscore (_), so it is better to generate a list of symbols to export. 10625 always_export_symbols=yes 10626 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10627 # Warning - without using the other runtime loading flags (-brtl), 10628 # -berok will link without error, but may produce a broken library. 10629 allow_undefined_flag='-berok' 10630 # Determine the default libpath from the value encoded in an 10631 # empty executable. 10632 if test set = "${lt_cv_aix_libpath+set}"; then 10633 aix_libpath=$lt_cv_aix_libpath 10634 else 10635 if test ${lt_cv_aix_libpath_+y} 10636 then : 10637 printf %s "(cached) " >&6 10638 else case e in #( 10639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640 /* end confdefs.h. */ 10641 10642 int 10643 main (void) 10644 { 10645 10646 ; 10647 return 0; 10648 } 10649 _ACEOF 10650 if ac_fn_c_try_link "$LINENO" 10651 then : 10652 10653 lt_aix_libpath_sed=' 10654 /Import File Strings/,/^$/ { 10655 /^0/ { 10656 s/^0 *\([^ ]*\) *$/\1/ 10657 p 10658 } 10659 }' 10660 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10661 # Check for a 64-bit object if we didn't find anything. 10662 if test -z "$lt_cv_aix_libpath_"; then 10663 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10664 fi 10665 fi 10666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10667 conftest$ac_exeext conftest.$ac_ext 10668 if test -z "$lt_cv_aix_libpath_"; then 10669 lt_cv_aix_libpath_=/usr/lib:/lib 10670 fi 10671 ;; 10672 esac 10673 fi 10674 10675 aix_libpath=$lt_cv_aix_libpath_ 10676 fi 10677 10678 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10679 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 10680 else 10681 if test ia64 = "$host_cpu"; then 10682 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10683 allow_undefined_flag="-z nodefs" 10684 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" 10685 else 10686 # Determine the default libpath from the value encoded in an 10687 # empty executable. 10688 if test set = "${lt_cv_aix_libpath+set}"; then 10689 aix_libpath=$lt_cv_aix_libpath 10690 else 10691 if test ${lt_cv_aix_libpath_+y} 10692 then : 10693 printf %s "(cached) " >&6 10694 else case e in #( 10695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10696 /* end confdefs.h. */ 10697 10698 int 10699 main (void) 10700 { 10701 10702 ; 10703 return 0; 10704 } 10705 _ACEOF 10706 if ac_fn_c_try_link "$LINENO" 10707 then : 10708 10709 lt_aix_libpath_sed=' 10710 /Import File Strings/,/^$/ { 10711 /^0/ { 10712 s/^0 *\([^ ]*\) *$/\1/ 10713 p 10714 } 10715 }' 10716 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10717 # Check for a 64-bit object if we didn't find anything. 10718 if test -z "$lt_cv_aix_libpath_"; then 10719 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10720 fi 10721 fi 10722 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10723 conftest$ac_exeext conftest.$ac_ext 10724 if test -z "$lt_cv_aix_libpath_"; then 10725 lt_cv_aix_libpath_=/usr/lib:/lib 10726 fi 10727 ;; 10728 esac 10729 fi 10730 10731 aix_libpath=$lt_cv_aix_libpath_ 10732 fi 10733 10734 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10735 # Warning - without using the other run time loading flags, 10736 # -berok will link without error, but may produce a broken library. 10737 no_undefined_flag=' $wl-bernotok' 10738 allow_undefined_flag=' $wl-berok' 10739 if test yes = "$with_gnu_ld"; then 10740 # We only use this code for GNU lds that support --whole-archive. 10741 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10742 else 10743 # Exported symbols can be pulled into shared objects from archives 10744 whole_archive_flag_spec='$convenience' 10745 fi 10746 archive_cmds_need_lc=yes 10747 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10748 # -brtl affects multiple linker settings, -berok does not and is overridden later 10749 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10750 if test svr4 != "$with_aix_soname"; then 10751 # This is similar to how AIX traditionally builds its shared libraries. 10752 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' 10753 fi 10754 if test aix != "$with_aix_soname"; then 10755 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' 10756 else 10757 # used by -dlpreopen to get the symbols 10758 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10759 fi 10760 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10761 fi 10762 fi 10763 ;; 10764 10765 amigaos*) 10766 case $host_cpu in 10767 powerpc) 10768 # see comment about AmigaOS4 .so support 10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10770 archive_expsym_cmds='' 10771 ;; 10772 m68k) 10773 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)' 10774 hardcode_libdir_flag_spec='-L$libdir' 10775 hardcode_minus_L=yes 10776 ;; 10777 esac 10778 ;; 10779 10780 bsdi[45]*) 10781 export_dynamic_flag_spec=-rdynamic 10782 ;; 10783 10784 cygwin* | mingw* | windows* | pw32* | cegcc*) 10785 # When not using gcc, we currently assume that we are using 10786 # Microsoft Visual C++ or Intel C++ Compiler. 10787 # hardcode_libdir_flag_spec is actually meaningless, as there is 10788 # no search path for DLLs. 10789 case $cc_basename in 10790 cl* | icl*) 10791 # Native MSVC or ICC 10792 hardcode_libdir_flag_spec=' ' 10793 allow_undefined_flag=unsupported 10794 always_export_symbols=yes 10795 file_list_spec='@' 10796 # Tell ltmain to make .lib files, not .a files. 10797 libext=lib 10798 # Tell ltmain to make .dll files, not .so files. 10799 shrext_cmds=.dll 10800 # FIXME: Setting linknames here is a bad hack. 10801 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10802 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10803 cp "$export_symbols" "$output_objdir/$soname.def"; 10804 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10805 else 10806 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10807 fi~ 10808 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10809 linknames=' 10810 # The linker will not automatically build a static lib if we build a DLL. 10811 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10812 enable_shared_with_static_runtimes=yes 10813 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10815 # Don't use ranlib 10816 old_postinstall_cmds='chmod 644 $oldlib' 10817 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10818 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10819 case $lt_outputfile in 10820 *.exe|*.EXE) ;; 10821 *) 10822 lt_outputfile=$lt_outputfile.exe 10823 lt_tool_outputfile=$lt_tool_outputfile.exe 10824 ;; 10825 esac~ 10826 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10828 $RM "$lt_outputfile.manifest"; 10829 fi' 10830 ;; 10831 *) 10832 # Assume MSVC and ICC wrapper 10833 hardcode_libdir_flag_spec=' ' 10834 allow_undefined_flag=unsupported 10835 # Tell ltmain to make .lib files, not .a files. 10836 libext=lib 10837 # Tell ltmain to make .dll files, not .so files. 10838 shrext_cmds=.dll 10839 # FIXME: Setting linknames here is a bad hack. 10840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10841 # The linker will automatically build a .lib file if we build a DLL. 10842 old_archive_from_new_cmds='true' 10843 # FIXME: Should let the user specify the lib program. 10844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10845 enable_shared_with_static_runtimes=yes 10846 ;; 10847 esac 10848 ;; 10849 10850 darwin* | rhapsody*) 10851 10852 10853 archive_cmds_need_lc=no 10854 hardcode_direct=no 10855 hardcode_automatic=yes 10856 hardcode_shlibpath_var=unsupported 10857 if test yes = "$lt_cv_ld_force_load"; then 10858 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\"`' 10859 10860 else 10861 whole_archive_flag_spec='' 10862 fi 10863 link_all_deplibs=yes 10864 allow_undefined_flag=$_lt_dar_allow_undefined 10865 case $cc_basename in 10866 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10867 *) _lt_dar_can_shared=$GCC ;; 10868 esac 10869 if test yes = "$_lt_dar_can_shared"; then 10870 output_verbose_link_cmd=func_echo_all 10871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10873 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" 10874 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" 10875 10876 else 10877 ld_shlibs=no 10878 fi 10879 10880 ;; 10881 10882 dgux*) 10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10884 hardcode_libdir_flag_spec='-L$libdir' 10885 hardcode_shlibpath_var=no 10886 ;; 10887 10888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10889 # support. Future versions do this automatically, but an explicit c++rt0.o 10890 # does not break anything, and helps significantly (at the cost of a little 10891 # extra space). 10892 freebsd2.2*) 10893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10894 hardcode_libdir_flag_spec='-R$libdir' 10895 hardcode_direct=yes 10896 hardcode_shlibpath_var=no 10897 ;; 10898 10899 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10900 freebsd2.*) 10901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10902 hardcode_direct=yes 10903 hardcode_minus_L=yes 10904 hardcode_shlibpath_var=no 10905 ;; 10906 10907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10908 freebsd* | dragonfly* | midnightbsd*) 10909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10910 hardcode_libdir_flag_spec='-R$libdir' 10911 hardcode_direct=yes 10912 hardcode_shlibpath_var=no 10913 ;; 10914 10915 hpux9*) 10916 if test yes = "$GCC"; then 10917 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' 10918 else 10919 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' 10920 fi 10921 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10922 hardcode_libdir_separator=: 10923 hardcode_direct=yes 10924 10925 # hardcode_minus_L: Not really in the search PATH, 10926 # but as the default location of the library. 10927 hardcode_minus_L=yes 10928 export_dynamic_flag_spec='$wl-E' 10929 ;; 10930 10931 hpux10*) 10932 if test yes,no = "$GCC,$with_gnu_ld"; then 10933 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10934 else 10935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10936 fi 10937 if test no = "$with_gnu_ld"; then 10938 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10939 hardcode_libdir_separator=: 10940 hardcode_direct=yes 10941 hardcode_direct_absolute=yes 10942 export_dynamic_flag_spec='$wl-E' 10943 # hardcode_minus_L: Not really in the search PATH, 10944 # but as the default location of the library. 10945 hardcode_minus_L=yes 10946 fi 10947 ;; 10948 10949 hpux11*) 10950 if test yes,no = "$GCC,$with_gnu_ld"; then 10951 case $host_cpu in 10952 hppa*64*) 10953 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10954 ;; 10955 ia64*) 10956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10957 ;; 10958 *) 10959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10960 ;; 10961 esac 10962 else 10963 case $host_cpu in 10964 hppa*64*) 10965 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10966 ;; 10967 ia64*) 10968 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10969 ;; 10970 *) 10971 10972 # Older versions of the 11.00 compiler do not understand -b yet 10973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10975 printf %s "checking if $CC understands -b... " >&6; } 10976 if test ${lt_cv_prog_compiler__b+y} 10977 then : 10978 printf %s "(cached) " >&6 10979 else case e in #( 10980 e) lt_cv_prog_compiler__b=no 10981 save_LDFLAGS=$LDFLAGS 10982 LDFLAGS="$LDFLAGS -b" 10983 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10985 # The linker can only warn and ignore the option if not recognized 10986 # So say no if there are warnings 10987 if test -s conftest.err; then 10988 # Append any errors to the config.log. 10989 cat conftest.err 1>&5 10990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10992 if diff conftest.exp conftest.er2 >/dev/null; then 10993 lt_cv_prog_compiler__b=yes 10994 fi 10995 else 10996 lt_cv_prog_compiler__b=yes 10997 fi 10998 fi 10999 $RM -r conftest* 11000 LDFLAGS=$save_LDFLAGS 11001 ;; 11002 esac 11003 fi 11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11005 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11006 11007 if test yes = "$lt_cv_prog_compiler__b"; then 11008 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11009 else 11010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11011 fi 11012 11013 ;; 11014 esac 11015 fi 11016 if test no = "$with_gnu_ld"; then 11017 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11018 hardcode_libdir_separator=: 11019 11020 case $host_cpu in 11021 hppa*64*|ia64*) 11022 hardcode_direct=no 11023 hardcode_shlibpath_var=no 11024 ;; 11025 *) 11026 hardcode_direct=yes 11027 hardcode_direct_absolute=yes 11028 export_dynamic_flag_spec='$wl-E' 11029 11030 # hardcode_minus_L: Not really in the search PATH, 11031 # but as the default location of the library. 11032 hardcode_minus_L=yes 11033 ;; 11034 esac 11035 fi 11036 ;; 11037 11038 irix5* | irix6* | nonstopux*) 11039 if test yes = "$GCC"; then 11040 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' 11041 # Try to use the -exported_symbol ld option, if it does not 11042 # work, assume that -exports_file does not work either and 11043 # implicitly export all symbols. 11044 # This should be the same for all languages, so no per-tag cache variable. 11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11046 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11047 if test ${lt_cv_irix_exported_symbol+y} 11048 then : 11049 printf %s "(cached) " >&6 11050 else case e in #( 11051 e) save_LDFLAGS=$LDFLAGS 11052 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054 /* end confdefs.h. */ 11055 int foo (void) { return 0; } 11056 _ACEOF 11057 if ac_fn_c_try_link "$LINENO" 11058 then : 11059 lt_cv_irix_exported_symbol=yes 11060 else case e in #( 11061 e) lt_cv_irix_exported_symbol=no ;; 11062 esac 11063 fi 11064 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11065 conftest$ac_exeext conftest.$ac_ext 11066 LDFLAGS=$save_LDFLAGS ;; 11067 esac 11068 fi 11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11070 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11071 if test yes = "$lt_cv_irix_exported_symbol"; then 11072 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' 11073 fi 11074 else 11075 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' 11076 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' 11077 fi 11078 archive_cmds_need_lc='no' 11079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11080 hardcode_libdir_separator=: 11081 inherit_rpath=yes 11082 link_all_deplibs=yes 11083 ;; 11084 11085 linux*) 11086 case $cc_basename in 11087 tcc*) 11088 # Fabrice Bellard et al's Tiny C Compiler 11089 ld_shlibs=yes 11090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11092 ;; 11093 esac 11094 ;; 11095 11096 *-mlibc) 11097 ;; 11098 11099 netbsd* | netbsdelf*-gnu) 11100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11102 else 11103 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11104 fi 11105 hardcode_libdir_flag_spec='-R$libdir' 11106 hardcode_direct=yes 11107 hardcode_shlibpath_var=no 11108 ;; 11109 11110 newsos6) 11111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11112 hardcode_direct=yes 11113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11114 hardcode_libdir_separator=: 11115 hardcode_shlibpath_var=no 11116 ;; 11117 11118 *nto* | *qnx*) 11119 ;; 11120 11121 openbsd*) 11122 if test -f /usr/libexec/ld.so; then 11123 hardcode_direct=yes 11124 hardcode_shlibpath_var=no 11125 hardcode_direct_absolute=yes 11126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11129 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11130 export_dynamic_flag_spec='$wl-E' 11131 else 11132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11133 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11134 fi 11135 else 11136 ld_shlibs=no 11137 fi 11138 ;; 11139 11140 os2*) 11141 hardcode_libdir_flag_spec='-L$libdir' 11142 hardcode_minus_L=yes 11143 allow_undefined_flag=unsupported 11144 shrext_cmds=.dll 11145 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11148 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11149 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11151 emximp -o $lib $output_objdir/$libname.def' 11152 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11153 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11154 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11155 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11156 prefix_cmds="$SED"~ 11157 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11158 prefix_cmds="$prefix_cmds -e 1d"; 11159 fi~ 11160 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11161 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11163 emximp -o $lib $output_objdir/$libname.def' 11164 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11165 enable_shared_with_static_runtimes=yes 11166 file_list_spec='@' 11167 ;; 11168 11169 osf3*) 11170 if test yes = "$GCC"; then 11171 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11172 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' 11173 else 11174 allow_undefined_flag=' -expect_unresolved \*' 11175 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' 11176 fi 11177 archive_cmds_need_lc='no' 11178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11179 hardcode_libdir_separator=: 11180 ;; 11181 11182 osf4* | osf5*) # as osf3* with the addition of -msym flag 11183 if test yes = "$GCC"; then 11184 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11185 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' 11186 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11187 else 11188 allow_undefined_flag=' -expect_unresolved \*' 11189 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' 11190 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~ 11191 $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' 11192 11193 # Both c and cxx compiler support -rpath directly 11194 hardcode_libdir_flag_spec='-rpath $libdir' 11195 fi 11196 archive_cmds_need_lc='no' 11197 hardcode_libdir_separator=: 11198 ;; 11199 11200 serenity*) 11201 ;; 11202 11203 solaris*) 11204 no_undefined_flag=' -z defs' 11205 if test yes = "$GCC"; then 11206 wlarc='$wl' 11207 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11208 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11209 $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' 11210 else 11211 case `$CC -V 2>&1` in 11212 *"Compilers 5.0"*) 11213 wlarc='' 11214 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11216 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11217 ;; 11218 *) 11219 wlarc='$wl' 11220 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11222 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11223 ;; 11224 esac 11225 fi 11226 hardcode_libdir_flag_spec='-R$libdir' 11227 hardcode_shlibpath_var=no 11228 case $host_os in 11229 solaris2.[0-5] | solaris2.[0-5].*) ;; 11230 *) 11231 # The compiler driver will combine and reorder linker options, 11232 # but understands '-z linker_flag'. GCC discards it without '$wl', 11233 # but is careful enough not to reorder. 11234 # Supported since Solaris 2.6 (maybe 2.5.1?) 11235 if test yes = "$GCC"; then 11236 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11237 else 11238 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11239 fi 11240 ;; 11241 esac 11242 link_all_deplibs=yes 11243 ;; 11244 11245 sunos4*) 11246 if test sequent = "$host_vendor"; then 11247 # Use $CC to link under sequent, because it throws in some extra .o 11248 # files that make .init and .fini sections work. 11249 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11250 else 11251 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11252 fi 11253 hardcode_libdir_flag_spec='-L$libdir' 11254 hardcode_direct=yes 11255 hardcode_minus_L=yes 11256 hardcode_shlibpath_var=no 11257 ;; 11258 11259 sysv4) 11260 case $host_vendor in 11261 sni) 11262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11263 hardcode_direct=yes # is this really true??? 11264 ;; 11265 siemens) 11266 ## LD is ld it makes a PLAMLIB 11267 ## CC just makes a GrossModule. 11268 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11269 reload_cmds='$CC -r -o $output$reload_objs' 11270 hardcode_direct=no 11271 ;; 11272 motorola) 11273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11274 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11275 ;; 11276 esac 11277 runpath_var='LD_RUN_PATH' 11278 hardcode_shlibpath_var=no 11279 ;; 11280 11281 sysv4.3*) 11282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11283 hardcode_shlibpath_var=no 11284 export_dynamic_flag_spec='-Bexport' 11285 ;; 11286 11287 sysv4*MP*) 11288 if test -d /usr/nec; then 11289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11290 hardcode_shlibpath_var=no 11291 runpath_var=LD_RUN_PATH 11292 hardcode_runpath_var=yes 11293 ld_shlibs=yes 11294 fi 11295 ;; 11296 11297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11298 no_undefined_flag='$wl-z,text' 11299 archive_cmds_need_lc=no 11300 hardcode_shlibpath_var=no 11301 runpath_var='LD_RUN_PATH' 11302 11303 if test yes = "$GCC"; then 11304 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11305 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11306 else 11307 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11308 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11309 fi 11310 ;; 11311 11312 sysv5* | sco3.2v5* | sco5v6*) 11313 # Note: We CANNOT use -z defs as we might desire, because we do not 11314 # link with -lc, and that would cause any symbols used from libc to 11315 # always be unresolved, which means just about no library would 11316 # ever link correctly. If we're not using GNU ld we use -z text 11317 # though, which does catch some bad symbols but isn't as heavy-handed 11318 # as -z defs. 11319 no_undefined_flag='$wl-z,text' 11320 allow_undefined_flag='$wl-z,nodefs' 11321 archive_cmds_need_lc=no 11322 hardcode_shlibpath_var=no 11323 hardcode_libdir_flag_spec='$wl-R,$libdir' 11324 hardcode_libdir_separator=':' 11325 link_all_deplibs=yes 11326 export_dynamic_flag_spec='$wl-Bexport' 11327 runpath_var='LD_RUN_PATH' 11328 11329 if test yes = "$GCC"; then 11330 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11331 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11332 else 11333 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11334 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11335 fi 11336 ;; 11337 11338 uts4*) 11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11340 hardcode_libdir_flag_spec='-L$libdir' 11341 hardcode_shlibpath_var=no 11342 ;; 11343 11344 *) 11345 ld_shlibs=no 11346 ;; 11347 esac 11348 11349 if test sni = "$host_vendor"; then 11350 case $host in 11351 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11352 export_dynamic_flag_spec='$wl-Blargedynsym' 11353 ;; 11354 esac 11355 fi 11356 fi 11357 11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11359 printf "%s\n" "$ld_shlibs" >&6; } 11360 test no = "$ld_shlibs" && can_build_shared=no 11361 11362 with_gnu_ld=$with_gnu_ld 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 # 11379 # Do we need to explicitly link libc? 11380 # 11381 case "x$archive_cmds_need_lc" in 11382 x|xyes) 11383 # Assume -lc should be added 11384 archive_cmds_need_lc=yes 11385 11386 if test yes,yes = "$GCC,$enable_shared"; then 11387 case $archive_cmds in 11388 *'~'*) 11389 # FIXME: we may have to deal with multi-command sequences. 11390 ;; 11391 '$CC '*) 11392 # Test whether the compiler implicitly links with -lc since on some 11393 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11394 # to ld, don't add -lc before -lgcc. 11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11396 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11397 if test ${lt_cv_archive_cmds_need_lc+y} 11398 then : 11399 printf %s "(cached) " >&6 11400 else case e in #( 11401 e) $RM conftest* 11402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11403 11404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11405 (eval $ac_compile) 2>&5 11406 ac_status=$? 11407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11408 test $ac_status = 0; } 2>conftest.err; then 11409 soname=conftest 11410 lib=conftest 11411 libobjs=conftest.$ac_objext 11412 deplibs= 11413 wl=$lt_prog_compiler_wl 11414 pic_flag=$lt_prog_compiler_pic 11415 compiler_flags=-v 11416 linker_flags=-v 11417 verstring= 11418 output_objdir=. 11419 libname=conftest 11420 lt_save_allow_undefined_flag=$allow_undefined_flag 11421 allow_undefined_flag= 11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11423 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11424 ac_status=$? 11425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11426 test $ac_status = 0; } 11427 then 11428 lt_cv_archive_cmds_need_lc=no 11429 else 11430 lt_cv_archive_cmds_need_lc=yes 11431 fi 11432 allow_undefined_flag=$lt_save_allow_undefined_flag 11433 else 11434 cat conftest.err 1>&5 11435 fi 11436 $RM conftest* 11437 ;; 11438 esac 11439 fi 11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11441 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11443 ;; 11444 esac 11445 fi 11446 ;; 11447 esac 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 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11601 printf %s "checking dynamic linker characteristics... " >&6; } 11602 11603 if test yes = "$GCC"; then 11604 case $host_os in 11605 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11606 *) lt_awk_arg='/^libraries:/' ;; 11607 esac 11608 case $host_os in 11609 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11610 *) lt_sed_strip_eq='s|=/|/|g' ;; 11611 esac 11612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11613 case $lt_search_path_spec in 11614 *\;*) 11615 # if the path contains ";" then we assume it to be the separator 11616 # otherwise default to the standard path separator (i.e. ":") - it is 11617 # assumed that no part of a normal pathname contains ";" but that should 11618 # okay in the real world where ";" in dirpaths is itself problematic. 11619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11620 ;; 11621 *) 11622 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11623 ;; 11624 esac 11625 # Ok, now we have the path, separated by spaces, we can step through it 11626 # and add multilib dir if necessary... 11627 lt_tmp_lt_search_path_spec= 11628 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11629 # ...but if some path component already ends with the multilib dir we assume 11630 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11631 case "$lt_multi_os_dir; $lt_search_path_spec " in 11632 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11633 lt_multi_os_dir= 11634 ;; 11635 esac 11636 for lt_sys_path in $lt_search_path_spec; do 11637 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11639 elif test -n "$lt_multi_os_dir"; then 11640 test -d "$lt_sys_path" && \ 11641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11642 fi 11643 done 11644 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11645 BEGIN {RS = " "; FS = "/|\n";} { 11646 lt_foo = ""; 11647 lt_count = 0; 11648 for (lt_i = NF; lt_i > 0; lt_i--) { 11649 if ($lt_i != "" && $lt_i != ".") { 11650 if ($lt_i == "..") { 11651 lt_count++; 11652 } else { 11653 if (lt_count == 0) { 11654 lt_foo = "/" $lt_i lt_foo; 11655 } else { 11656 lt_count--; 11657 } 11658 } 11659 } 11660 } 11661 if (lt_foo != "") { lt_freq[lt_foo]++; } 11662 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11663 }'` 11664 # AWK program above erroneously prepends '/' to C:/dos/paths 11665 # for these hosts. 11666 case $host_os in 11667 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11668 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11669 esac 11670 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11671 else 11672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11673 fi 11674 library_names_spec= 11675 libname_spec='lib$name' 11676 soname_spec= 11677 shrext_cmds=.so 11678 postinstall_cmds= 11679 postuninstall_cmds= 11680 finish_cmds= 11681 finish_eval= 11682 shlibpath_var= 11683 shlibpath_overrides_runpath=unknown 11684 version_type=none 11685 dynamic_linker="$host_os ld.so" 11686 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11687 need_lib_prefix=unknown 11688 hardcode_into_libs=no 11689 11690 # when you set need_version to no, make sure it does not cause -set_version 11691 # flags to be left without arguments 11692 need_version=unknown 11693 11694 11695 11696 case $host_os in 11697 aix3*) 11698 version_type=linux # correct to gnu/linux during the next big refactor 11699 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11700 shlibpath_var=LIBPATH 11701 11702 # AIX 3 has no versioning support, so we append a major version to the name. 11703 soname_spec='$libname$release$shared_ext$major' 11704 ;; 11705 11706 aix[4-9]*) 11707 version_type=linux # correct to gnu/linux during the next big refactor 11708 need_lib_prefix=no 11709 need_version=no 11710 hardcode_into_libs=yes 11711 if test ia64 = "$host_cpu"; then 11712 # AIX 5 supports IA64 11713 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11714 shlibpath_var=LD_LIBRARY_PATH 11715 else 11716 # With GCC up to 2.95.x, collect2 would create an import file 11717 # for dependence libraries. The import file would start with 11718 # the line '#! .'. This would cause the generated library to 11719 # depend on '.', always an invalid library. This was fixed in 11720 # development snapshots of GCC prior to 3.0. 11721 case $host_os in 11722 aix4 | aix4.[01] | aix4.[01].*) 11723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11724 echo ' yes ' 11725 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11726 : 11727 else 11728 can_build_shared=no 11729 fi 11730 ;; 11731 esac 11732 # Using Import Files as archive members, it is possible to support 11733 # filename-based versioning of shared library archives on AIX. While 11734 # this would work for both with and without runtime linking, it will 11735 # prevent static linking of such archives. So we do filename-based 11736 # shared library versioning with .so extension only, which is used 11737 # when both runtime linking and shared linking is enabled. 11738 # Unfortunately, runtime linking may impact performance, so we do 11739 # not want this to be the default eventually. Also, we use the 11740 # versioned .so libs for executables only if there is the -brtl 11741 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11742 # To allow for filename-based versioning support, we need to create 11743 # libNAME.so.V as an archive file, containing: 11744 # *) an Import File, referring to the versioned filename of the 11745 # archive as well as the shared archive member, telling the 11746 # bitwidth (32 or 64) of that shared object, and providing the 11747 # list of exported symbols of that shared object, eventually 11748 # decorated with the 'weak' keyword 11749 # *) the shared object with the F_LOADONLY flag set, to really avoid 11750 # it being seen by the linker. 11751 # At run time we better use the real file rather than another symlink, 11752 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11753 11754 case $with_aix_soname,$aix_use_runtimelinking in 11755 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11756 # soname into executable. Probably we can add versioning support to 11757 # collect2, so additional links can be useful in future. 11758 aix,yes) # traditional libtool 11759 dynamic_linker='AIX unversionable lib.so' 11760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11761 # instead of lib<name>.a to let people know that these are not 11762 # typical AIX shared libraries. 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11764 ;; 11765 aix,no) # traditional AIX only 11766 dynamic_linker='AIX lib.a(lib.so.V)' 11767 # We preserve .a as extension for shared libraries through AIX4.2 11768 # and later when we are not doing run time linking. 11769 library_names_spec='$libname$release.a $libname.a' 11770 soname_spec='$libname$release$shared_ext$major' 11771 ;; 11772 svr4,*) # full svr4 only 11773 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11774 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11775 # We do not specify a path in Import Files, so LIBPATH fires. 11776 shlibpath_overrides_runpath=yes 11777 ;; 11778 *,yes) # both, prefer svr4 11779 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11780 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11781 # unpreferred sharedlib libNAME.a needs extra handling 11782 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"' 11783 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"' 11784 # We do not specify a path in Import Files, so LIBPATH fires. 11785 shlibpath_overrides_runpath=yes 11786 ;; 11787 *,no) # both, prefer aix 11788 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11789 library_names_spec='$libname$release.a $libname.a' 11790 soname_spec='$libname$release$shared_ext$major' 11791 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11792 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)' 11793 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"' 11794 ;; 11795 esac 11796 shlibpath_var=LIBPATH 11797 fi 11798 ;; 11799 11800 amigaos*) 11801 case $host_cpu in 11802 powerpc) 11803 # Since July 2007 AmigaOS4 officially supports .so libraries. 11804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11806 ;; 11807 m68k) 11808 library_names_spec='$libname.ixlibrary $libname.a' 11809 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11810 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' 11811 ;; 11812 esac 11813 ;; 11814 11815 beos*) 11816 library_names_spec='$libname$shared_ext' 11817 dynamic_linker="$host_os ld.so" 11818 shlibpath_var=LIBRARY_PATH 11819 ;; 11820 11821 bsdi[45]*) 11822 version_type=linux # correct to gnu/linux during the next big refactor 11823 need_version=no 11824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11825 soname_spec='$libname$release$shared_ext$major' 11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11827 shlibpath_var=LD_LIBRARY_PATH 11828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11830 # the default ld.so.conf also contains /usr/contrib/lib and 11831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11832 # libtool to hard-code these into programs 11833 ;; 11834 11835 cygwin* | mingw* | windows* | pw32* | cegcc*) 11836 version_type=windows 11837 shrext_cmds=.dll 11838 need_version=no 11839 need_lib_prefix=no 11840 11841 case $GCC,$cc_basename in 11842 yes,*) 11843 # gcc 11844 library_names_spec='$libname.dll.a' 11845 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11846 # If user builds GCC with multilib enabled, 11847 # it should just install on $(libdir) 11848 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11849 if test xyes = x"$multilib"; then 11850 postinstall_cmds='base_file=`basename \$file`~ 11851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11852 dldir=$destdir/`dirname \$dlpath`~ 11853 $install_prog $dir/$dlname $destdir/$dlname~ 11854 chmod a+x $destdir/$dlname~ 11855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11856 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11857 fi' 11858 else 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname~ 11864 chmod a+x \$dldir/$dlname~ 11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11867 fi' 11868 fi 11869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11870 dlpath=$dir/\$dldll~ 11871 $RM \$dlpath' 11872 shlibpath_overrides_runpath=yes 11873 11874 case $host_os in 11875 cygwin*) 11876 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11877 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11878 11879 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11880 ;; 11881 mingw* | windows* | cegcc*) 11882 # MinGW DLLs use traditional 'lib' prefix 11883 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11884 ;; 11885 pw32*) 11886 # pw32 DLLs use 'pw' prefix rather than 'lib' 11887 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11888 ;; 11889 esac 11890 dynamic_linker='Win32 ld.exe' 11891 ;; 11892 11893 *,cl* | *,icl*) 11894 # Native MSVC or ICC 11895 libname_spec='$name' 11896 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11897 library_names_spec='$libname.dll.lib' 11898 11899 case $build_os in 11900 mingw* | windows*) 11901 sys_lib_search_path_spec= 11902 lt_save_ifs=$IFS 11903 IFS=';' 11904 for lt_path in $LIB 11905 do 11906 IFS=$lt_save_ifs 11907 # Let DOS variable expansion print the short 8.3 style file name. 11908 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11909 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11910 done 11911 IFS=$lt_save_ifs 11912 # Convert to MSYS style. 11913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11914 ;; 11915 cygwin*) 11916 # Convert to unix form, then to dos form, then back to unix form 11917 # but this time dos style (no spaces!) so that the unix form looks 11918 # like /cygdrive/c/PROGRA~1:/cygdr... 11919 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11920 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11921 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11922 ;; 11923 *) 11924 sys_lib_search_path_spec=$LIB 11925 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11926 # It is most probably a Windows format PATH. 11927 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11928 else 11929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11930 fi 11931 # FIXME: find the short name or the path components, as spaces are 11932 # common. (e.g. "Program Files" -> "PROGRA~1") 11933 ;; 11934 esac 11935 11936 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11937 postinstall_cmds='base_file=`basename \$file`~ 11938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11939 dldir=$destdir/`dirname \$dlpath`~ 11940 test -d \$dldir || mkdir -p \$dldir~ 11941 $install_prog $dir/$dlname \$dldir/$dlname' 11942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11943 dlpath=$dir/\$dldll~ 11944 $RM \$dlpath' 11945 shlibpath_overrides_runpath=yes 11946 dynamic_linker='Win32 link.exe' 11947 ;; 11948 11949 *) 11950 # Assume MSVC and ICC wrapper 11951 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11952 dynamic_linker='Win32 ld.exe' 11953 ;; 11954 esac 11955 # FIXME: first we should search . and the directory the executable is in 11956 shlibpath_var=PATH 11957 ;; 11958 11959 darwin* | rhapsody*) 11960 dynamic_linker="$host_os dyld" 11961 version_type=darwin 11962 need_lib_prefix=no 11963 need_version=no 11964 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11965 soname_spec='$libname$release$major$shared_ext' 11966 shlibpath_overrides_runpath=yes 11967 shlibpath_var=DYLD_LIBRARY_PATH 11968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11969 11970 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11972 ;; 11973 11974 dgux*) 11975 version_type=linux # correct to gnu/linux during the next big refactor 11976 need_lib_prefix=no 11977 need_version=no 11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11979 soname_spec='$libname$release$shared_ext$major' 11980 shlibpath_var=LD_LIBRARY_PATH 11981 ;; 11982 11983 freebsd* | dragonfly* | midnightbsd*) 11984 # DragonFly does not have aout. When/if they implement a new 11985 # versioning mechanism, adjust this. 11986 if test -x /usr/bin/objformat; then 11987 objformat=`/usr/bin/objformat` 11988 else 11989 case $host_os in 11990 freebsd[23].*) objformat=aout ;; 11991 *) objformat=elf ;; 11992 esac 11993 fi 11994 version_type=freebsd-$objformat 11995 case $version_type in 11996 freebsd-elf*) 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11998 soname_spec='$libname$release$shared_ext$major' 11999 need_version=no 12000 need_lib_prefix=no 12001 ;; 12002 freebsd-*) 12003 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12004 need_version=yes 12005 ;; 12006 esac 12007 case $host_cpu in 12008 powerpc64) 12009 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12010 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012 /* end confdefs.h. */ 12013 int test_pointer_size[sizeof (void *) - 5]; 12014 12015 _ACEOF 12016 if ac_fn_c_try_compile "$LINENO" 12017 then : 12018 shlibpath_var=LD_LIBRARY_PATH 12019 else case e in #( 12020 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12021 esac 12022 fi 12023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12024 ;; 12025 *) 12026 shlibpath_var=LD_LIBRARY_PATH 12027 ;; 12028 esac 12029 case $host_os in 12030 freebsd2.*) 12031 shlibpath_overrides_runpath=yes 12032 ;; 12033 freebsd3.[01]* | freebsdelf3.[01]*) 12034 shlibpath_overrides_runpath=yes 12035 hardcode_into_libs=yes 12036 ;; 12037 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12038 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12039 shlibpath_overrides_runpath=no 12040 hardcode_into_libs=yes 12041 ;; 12042 *) # from 4.6 on, and DragonFly 12043 shlibpath_overrides_runpath=yes 12044 hardcode_into_libs=yes 12045 ;; 12046 esac 12047 ;; 12048 12049 haiku*) 12050 version_type=linux # correct to gnu/linux during the next big refactor 12051 need_lib_prefix=no 12052 need_version=no 12053 dynamic_linker="$host_os runtime_loader" 12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12055 soname_spec='$libname$release$shared_ext$major' 12056 shlibpath_var=LIBRARY_PATH 12057 shlibpath_overrides_runpath=no 12058 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12059 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12060 hardcode_into_libs=no 12061 ;; 12062 12063 hpux9* | hpux10* | hpux11*) 12064 # Give a soname corresponding to the major version so that dld.sl refuses to 12065 # link against other versions. 12066 version_type=sunos 12067 need_lib_prefix=no 12068 need_version=no 12069 case $host_cpu in 12070 ia64*) 12071 shrext_cmds='.so' 12072 hardcode_into_libs=yes 12073 dynamic_linker="$host_os dld.so" 12074 shlibpath_var=LD_LIBRARY_PATH 12075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12077 soname_spec='$libname$release$shared_ext$major' 12078 if test 32 = "$HPUX_IA64_MODE"; then 12079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12080 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12081 else 12082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12083 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12084 fi 12085 ;; 12086 hppa*64*) 12087 shrext_cmds='.sl' 12088 hardcode_into_libs=yes 12089 dynamic_linker="$host_os dld.sl" 12090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12093 soname_spec='$libname$release$shared_ext$major' 12094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12096 ;; 12097 *) 12098 shrext_cmds='.sl' 12099 dynamic_linker="$host_os dld.sl" 12100 shlibpath_var=SHLIB_PATH 12101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12103 soname_spec='$libname$release$shared_ext$major' 12104 ;; 12105 esac 12106 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12107 postinstall_cmds='chmod 555 $lib' 12108 # or fails outright, so override atomically: 12109 install_override_mode=555 12110 ;; 12111 12112 interix[3-9]*) 12113 version_type=linux # correct to gnu/linux during the next big refactor 12114 need_lib_prefix=no 12115 need_version=no 12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12117 soname_spec='$libname$release$shared_ext$major' 12118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12119 shlibpath_var=LD_LIBRARY_PATH 12120 shlibpath_overrides_runpath=no 12121 hardcode_into_libs=yes 12122 ;; 12123 12124 irix5* | irix6* | nonstopux*) 12125 case $host_os in 12126 nonstopux*) version_type=nonstopux ;; 12127 *) 12128 if test yes = "$lt_cv_prog_gnu_ld"; then 12129 version_type=linux # correct to gnu/linux during the next big refactor 12130 else 12131 version_type=irix 12132 fi ;; 12133 esac 12134 need_lib_prefix=no 12135 need_version=no 12136 soname_spec='$libname$release$shared_ext$major' 12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12138 case $host_os in 12139 irix5* | nonstopux*) 12140 libsuff= shlibsuff= 12141 ;; 12142 *) 12143 case $LD in # libtool.m4 will add one of these switches to LD 12144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12145 libsuff= shlibsuff= libmagic=32-bit;; 12146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12147 libsuff=32 shlibsuff=N32 libmagic=N32;; 12148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12149 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12150 *) libsuff= shlibsuff= libmagic=never-match;; 12151 esac 12152 ;; 12153 esac 12154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12155 shlibpath_overrides_runpath=no 12156 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12157 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12158 hardcode_into_libs=yes 12159 ;; 12160 12161 # No shared lib support for Linux oldld, aout, or coff. 12162 linux*oldld* | linux*aout* | linux*coff*) 12163 dynamic_linker=no 12164 ;; 12165 12166 linux*android*) 12167 version_type=none # Android doesn't support versioned libraries. 12168 need_lib_prefix=no 12169 need_version=no 12170 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12171 soname_spec='$libname$release$shared_ext' 12172 finish_cmds= 12173 shlibpath_var=LD_LIBRARY_PATH 12174 shlibpath_overrides_runpath=yes 12175 12176 # This implies no fast_install, which is unacceptable. 12177 # Some rework will be needed to allow for fast_install 12178 # before this can be enabled. 12179 hardcode_into_libs=yes 12180 12181 dynamic_linker='Android linker' 12182 # -rpath works at least for libraries that are not overridden by 12183 # libraries installed in system locations. 12184 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12185 ;; 12186 12187 # This must be glibc/ELF. 12188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12189 version_type=linux # correct to gnu/linux during the next big refactor 12190 need_lib_prefix=no 12191 need_version=no 12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12193 soname_spec='$libname$release$shared_ext$major' 12194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12195 shlibpath_var=LD_LIBRARY_PATH 12196 shlibpath_overrides_runpath=no 12197 12198 # Some binutils ld are patched to set DT_RUNPATH 12199 if test ${lt_cv_shlibpath_overrides_runpath+y} 12200 then : 12201 printf %s "(cached) " >&6 12202 else case e in #( 12203 e) lt_cv_shlibpath_overrides_runpath=no 12204 save_LDFLAGS=$LDFLAGS 12205 save_libdir=$libdir 12206 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12207 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12209 /* end confdefs.h. */ 12210 12211 int 12212 main (void) 12213 { 12214 12215 ; 12216 return 0; 12217 } 12218 _ACEOF 12219 if ac_fn_c_try_link "$LINENO" 12220 then : 12221 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12222 then : 12223 lt_cv_shlibpath_overrides_runpath=yes 12224 fi 12225 fi 12226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12227 conftest$ac_exeext conftest.$ac_ext 12228 LDFLAGS=$save_LDFLAGS 12229 libdir=$save_libdir 12230 ;; 12231 esac 12232 fi 12233 12234 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12235 12236 # This implies no fast_install, which is unacceptable. 12237 # Some rework will be needed to allow for fast_install 12238 # before this can be enabled. 12239 hardcode_into_libs=yes 12240 12241 # Add ABI-specific directories to the system library path. 12242 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12243 12244 # Ideally, we could use ldconfig to report *all* directories which are 12245 # searched for libraries, however this is still not possible. Aside from not 12246 # being certain /sbin/ldconfig is available, command 12247 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12248 # even though it is searched at run-time. Try to do the best guess by 12249 # appending ld.so.conf contents (and includes) to the search path. 12250 if test -f /etc/ld.so.conf; then 12251 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' ' '` 12252 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12253 fi 12254 12255 # We used to test for /lib/ld.so.1 and disable shared libraries on 12256 # powerpc, because MkLinux only supported shared libraries with the 12257 # GNU dynamic linker. Since this was broken with cross compilers, 12258 # most powerpc-linux boxes support dynamic linking these days and 12259 # people can always --disable-shared, the test was removed, and we 12260 # assume the GNU/Linux dynamic linker is in use. 12261 dynamic_linker='GNU/Linux ld.so' 12262 ;; 12263 12264 netbsdelf*-gnu) 12265 version_type=linux 12266 need_lib_prefix=no 12267 need_version=no 12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12269 soname_spec='$libname$release$shared_ext$major' 12270 shlibpath_var=LD_LIBRARY_PATH 12271 shlibpath_overrides_runpath=no 12272 hardcode_into_libs=yes 12273 dynamic_linker='NetBSD ld.elf_so' 12274 ;; 12275 12276 netbsd*) 12277 version_type=sunos 12278 need_lib_prefix=no 12279 need_version=no 12280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12283 dynamic_linker='NetBSD (a.out) ld.so' 12284 else 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 soname_spec='$libname$release$shared_ext$major' 12287 dynamic_linker='NetBSD ld.elf_so' 12288 fi 12289 shlibpath_var=LD_LIBRARY_PATH 12290 shlibpath_overrides_runpath=yes 12291 hardcode_into_libs=yes 12292 ;; 12293 12294 *-mlibc) 12295 version_type=linux # correct to gnu/linux during the next big refactor 12296 need_lib_prefix=no 12297 need_version=no 12298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12299 soname_spec='$libname$release$shared_ext$major' 12300 dynamic_linker='mlibc ld.so' 12301 shlibpath_var=LD_LIBRARY_PATH 12302 shlibpath_overrides_runpath=no 12303 hardcode_into_libs=yes 12304 ;; 12305 12306 newsos6) 12307 version_type=linux # correct to gnu/linux during the next big refactor 12308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12309 shlibpath_var=LD_LIBRARY_PATH 12310 shlibpath_overrides_runpath=yes 12311 ;; 12312 12313 *nto* | *qnx*) 12314 version_type=qnx 12315 need_lib_prefix=no 12316 need_version=no 12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12318 soname_spec='$libname$release$shared_ext$major' 12319 shlibpath_var=LD_LIBRARY_PATH 12320 shlibpath_overrides_runpath=no 12321 hardcode_into_libs=yes 12322 dynamic_linker='ldqnx.so' 12323 ;; 12324 12325 openbsd*) 12326 version_type=sunos 12327 sys_lib_dlsearch_path_spec=/usr/lib 12328 need_lib_prefix=no 12329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12330 need_version=no 12331 else 12332 need_version=yes 12333 fi 12334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12336 shlibpath_var=LD_LIBRARY_PATH 12337 shlibpath_overrides_runpath=yes 12338 ;; 12339 12340 os2*) 12341 libname_spec='$name' 12342 version_type=windows 12343 shrext_cmds=.dll 12344 need_version=no 12345 need_lib_prefix=no 12346 # OS/2 can only load a DLL with a base name of 8 characters or less. 12347 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12348 v=$($ECHO $release$versuffix | tr -d .-); 12349 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12350 $ECHO $n$v`$shared_ext' 12351 library_names_spec='${libname}_dll.$libext' 12352 dynamic_linker='OS/2 ld.exe' 12353 shlibpath_var=BEGINLIBPATH 12354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12356 postinstall_cmds='base_file=`basename \$file`~ 12357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12358 dldir=$destdir/`dirname \$dlpath`~ 12359 test -d \$dldir || mkdir -p \$dldir~ 12360 $install_prog $dir/$dlname \$dldir/$dlname~ 12361 chmod a+x \$dldir/$dlname~ 12362 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12363 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12364 fi' 12365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12366 dlpath=$dir/\$dldll~ 12367 $RM \$dlpath' 12368 ;; 12369 12370 osf3* | osf4* | osf5*) 12371 version_type=osf 12372 need_lib_prefix=no 12373 need_version=no 12374 soname_spec='$libname$release$shared_ext$major' 12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12379 ;; 12380 12381 rdos*) 12382 dynamic_linker=no 12383 ;; 12384 12385 serenity*) 12386 version_type=linux # correct to gnu/linux during the next big refactor 12387 need_lib_prefix=no 12388 need_version=no 12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12390 soname_spec='$libname$release$shared_ext$major' 12391 shlibpath_var=LD_LIBRARY_PATH 12392 shlibpath_overrides_runpath=no 12393 dynamic_linker='SerenityOS LibELF' 12394 ;; 12395 12396 solaris*) 12397 version_type=linux # correct to gnu/linux during the next big refactor 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12401 soname_spec='$libname$release$shared_ext$major' 12402 shlibpath_var=LD_LIBRARY_PATH 12403 shlibpath_overrides_runpath=yes 12404 hardcode_into_libs=yes 12405 # ldd complains unless libraries are executable 12406 postinstall_cmds='chmod +x $lib' 12407 ;; 12408 12409 sunos4*) 12410 version_type=sunos 12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12412 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12413 shlibpath_var=LD_LIBRARY_PATH 12414 shlibpath_overrides_runpath=yes 12415 if test yes = "$with_gnu_ld"; then 12416 need_lib_prefix=no 12417 fi 12418 need_version=yes 12419 ;; 12420 12421 sysv4 | sysv4.3*) 12422 version_type=linux # correct to gnu/linux during the next big refactor 12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12424 soname_spec='$libname$release$shared_ext$major' 12425 shlibpath_var=LD_LIBRARY_PATH 12426 case $host_vendor in 12427 sni) 12428 shlibpath_overrides_runpath=no 12429 need_lib_prefix=no 12430 runpath_var=LD_RUN_PATH 12431 ;; 12432 siemens) 12433 need_lib_prefix=no 12434 ;; 12435 motorola) 12436 need_lib_prefix=no 12437 need_version=no 12438 shlibpath_overrides_runpath=no 12439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12440 ;; 12441 esac 12442 ;; 12443 12444 sysv4*MP*) 12445 if test -d /usr/nec; then 12446 version_type=linux # correct to gnu/linux during the next big refactor 12447 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12448 soname_spec='$libname$shared_ext.$major' 12449 shlibpath_var=LD_LIBRARY_PATH 12450 fi 12451 ;; 12452 12453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12454 version_type=sco 12455 need_lib_prefix=no 12456 need_version=no 12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12458 soname_spec='$libname$release$shared_ext$major' 12459 shlibpath_var=LD_LIBRARY_PATH 12460 shlibpath_overrides_runpath=yes 12461 hardcode_into_libs=yes 12462 if test yes = "$with_gnu_ld"; then 12463 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12464 else 12465 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12466 case $host_os in 12467 sco3.2v5*) 12468 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12469 ;; 12470 esac 12471 fi 12472 sys_lib_dlsearch_path_spec='/usr/lib' 12473 ;; 12474 12475 tpf*) 12476 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12477 version_type=linux # correct to gnu/linux during the next big refactor 12478 need_lib_prefix=no 12479 need_version=no 12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12481 shlibpath_var=LD_LIBRARY_PATH 12482 shlibpath_overrides_runpath=no 12483 hardcode_into_libs=yes 12484 ;; 12485 12486 uts4*) 12487 version_type=linux # correct to gnu/linux during the next big refactor 12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12489 soname_spec='$libname$release$shared_ext$major' 12490 shlibpath_var=LD_LIBRARY_PATH 12491 ;; 12492 12493 emscripten*) 12494 version_type=none 12495 need_lib_prefix=no 12496 need_version=no 12497 library_names_spec='$libname$release$shared_ext' 12498 soname_spec='$libname$release$shared_ext' 12499 finish_cmds= 12500 dynamic_linker="Emscripten linker" 12501 lt_prog_compiler_wl= 12502 lt_prog_compiler_pic= 12503 lt_prog_compiler_static= 12504 12505 12506 if test yes = "$GCC"; then 12507 lt_prog_compiler_wl='-Wl,' 12508 lt_prog_compiler_static='-static' 12509 12510 case $host_os in 12511 aix*) 12512 # All AIX code is PIC. 12513 if test ia64 = "$host_cpu"; then 12514 # AIX 5 now supports IA64 processor 12515 lt_prog_compiler_static='-Bstatic' 12516 fi 12517 lt_prog_compiler_pic='-fPIC' 12518 ;; 12519 12520 amigaos*) 12521 case $host_cpu in 12522 powerpc) 12523 # see comment about AmigaOS4 .so support 12524 lt_prog_compiler_pic='-fPIC' 12525 ;; 12526 m68k) 12527 # FIXME: we need at least 68020 code to build shared libraries, but 12528 # adding the '-m68020' flag to GCC prevents building anything better, 12529 # like '-m68040'. 12530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12531 ;; 12532 esac 12533 ;; 12534 12535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12536 # PIC is the default for these OSes. 12537 ;; 12538 12539 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12540 # This hack is so that the source file can tell whether it is being 12541 # built for inclusion in a dll (and should export symbols for example). 12542 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12543 # (--disable-auto-import) libraries 12544 lt_prog_compiler_pic='-DDLL_EXPORT' 12545 case $host_os in 12546 os2*) 12547 lt_prog_compiler_static='$wl-static' 12548 ;; 12549 esac 12550 ;; 12551 12552 darwin* | rhapsody*) 12553 # PIC is the default on this platform 12554 # Common symbols not allowed in MH_DYLIB files 12555 lt_prog_compiler_pic='-fno-common' 12556 ;; 12557 12558 haiku*) 12559 # PIC is the default for Haiku. 12560 # The "-static" flag exists, but is broken. 12561 lt_prog_compiler_static= 12562 ;; 12563 12564 hpux*) 12565 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12566 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12567 # sets the default TLS model and affects inlining. 12568 case $host_cpu in 12569 hppa*64*) 12570 # +Z the default 12571 ;; 12572 *) 12573 lt_prog_compiler_pic='-fPIC' 12574 ;; 12575 esac 12576 ;; 12577 12578 interix[3-9]*) 12579 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12580 # Instead, we relocate shared libraries at runtime. 12581 ;; 12582 12583 msdosdjgpp*) 12584 # Just because we use GCC doesn't mean we suddenly get shared libraries 12585 # on systems that don't support them. 12586 lt_prog_compiler_can_build_shared=no 12587 enable_shared=no 12588 ;; 12589 12590 *nto* | *qnx*) 12591 # QNX uses GNU C++, but need to define -shared option too, otherwise 12592 # it will coredump. 12593 lt_prog_compiler_pic='-fPIC -shared' 12594 ;; 12595 12596 sysv4*MP*) 12597 if test -d /usr/nec; then 12598 lt_prog_compiler_pic=-Kconform_pic 12599 fi 12600 ;; 12601 12602 *) 12603 lt_prog_compiler_pic='-fPIC' 12604 ;; 12605 esac 12606 12607 case $cc_basename in 12608 nvcc*) # Cuda Compiler Driver 2.2 12609 lt_prog_compiler_wl='-Xlinker ' 12610 if test -n "$lt_prog_compiler_pic"; then 12611 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12612 fi 12613 ;; 12614 esac 12615 else 12616 # PORTME Check for flag to pass linker flags through the system compiler. 12617 case $host_os in 12618 aix*) 12619 lt_prog_compiler_wl='-Wl,' 12620 if test ia64 = "$host_cpu"; then 12621 # AIX 5 now supports IA64 processor 12622 lt_prog_compiler_static='-Bstatic' 12623 else 12624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12625 fi 12626 ;; 12627 12628 darwin* | rhapsody*) 12629 # PIC is the default on this platform 12630 # Common symbols not allowed in MH_DYLIB files 12631 lt_prog_compiler_pic='-fno-common' 12632 case $cc_basename in 12633 nagfor*) 12634 # NAG Fortran compiler 12635 lt_prog_compiler_wl='-Wl,-Wl,,' 12636 lt_prog_compiler_pic='-PIC' 12637 lt_prog_compiler_static='-Bstatic' 12638 ;; 12639 esac 12640 ;; 12641 12642 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12643 # This hack is so that the source file can tell whether it is being 12644 # built for inclusion in a dll (and should export symbols for example). 12645 lt_prog_compiler_pic='-DDLL_EXPORT' 12646 case $host_os in 12647 os2*) 12648 lt_prog_compiler_static='$wl-static' 12649 ;; 12650 esac 12651 ;; 12652 12653 hpux9* | hpux10* | hpux11*) 12654 lt_prog_compiler_wl='-Wl,' 12655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12656 # not for PA HP-UX. 12657 case $host_cpu in 12658 hppa*64*|ia64*) 12659 # +Z the default 12660 ;; 12661 *) 12662 lt_prog_compiler_pic='+Z' 12663 ;; 12664 esac 12665 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12666 lt_prog_compiler_static='$wl-a ${wl}archive' 12667 ;; 12668 12669 irix5* | irix6* | nonstopux*) 12670 lt_prog_compiler_wl='-Wl,' 12671 # PIC (with -KPIC) is the default. 12672 lt_prog_compiler_static='-non_shared' 12673 ;; 12674 12675 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12676 case $cc_basename in 12677 # old Intel for x86_64, which still supported -KPIC. 12678 ecc*) 12679 lt_prog_compiler_wl='-Wl,' 12680 lt_prog_compiler_pic='-KPIC' 12681 lt_prog_compiler_static='-static' 12682 ;; 12683 *flang* | ftn | f18* | f95*) 12684 # Flang compiler. 12685 lt_prog_compiler_wl='-Wl,' 12686 lt_prog_compiler_pic='-fPIC' 12687 lt_prog_compiler_static='-static' 12688 ;; 12689 # icc used to be incompatible with GCC. 12690 # ICC 10 doesn't accept -KPIC any more. 12691 icc* | ifort*) 12692 lt_prog_compiler_wl='-Wl,' 12693 lt_prog_compiler_pic='-fPIC' 12694 lt_prog_compiler_static='-static' 12695 ;; 12696 # Lahey Fortran 8.1. 12697 lf95*) 12698 lt_prog_compiler_wl='-Wl,' 12699 lt_prog_compiler_pic='--shared' 12700 lt_prog_compiler_static='--static' 12701 ;; 12702 nagfor*) 12703 # NAG Fortran compiler 12704 lt_prog_compiler_wl='-Wl,-Wl,,' 12705 lt_prog_compiler_pic='-PIC' 12706 lt_prog_compiler_static='-Bstatic' 12707 ;; 12708 tcc*) 12709 # Fabrice Bellard et al's Tiny C Compiler 12710 lt_prog_compiler_wl='-Wl,' 12711 lt_prog_compiler_pic='-fPIC' 12712 lt_prog_compiler_static='-static' 12713 ;; 12714 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12715 # Portland Group compilers (*not* the Pentium gcc compiler, 12716 # which looks to be a dead project) 12717 lt_prog_compiler_wl='-Wl,' 12718 lt_prog_compiler_pic='-fpic' 12719 lt_prog_compiler_static='-Bstatic' 12720 ;; 12721 ccc*) 12722 lt_prog_compiler_wl='-Wl,' 12723 # All Alpha code is PIC. 12724 lt_prog_compiler_static='-non_shared' 12725 ;; 12726 xl* | bgxl* | bgf* | mpixl*) 12727 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12728 lt_prog_compiler_wl='-Wl,' 12729 lt_prog_compiler_pic='-qpic' 12730 lt_prog_compiler_static='-qstaticlink' 12731 ;; 12732 *) 12733 case `$CC -V 2>&1 | $SED 5q` in 12734 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12735 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12736 lt_prog_compiler_pic='-KPIC' 12737 lt_prog_compiler_static='-Bstatic' 12738 lt_prog_compiler_wl='' 12739 ;; 12740 *Sun\ F* | *Sun*Fortran*) 12741 lt_prog_compiler_pic='-KPIC' 12742 lt_prog_compiler_static='-Bstatic' 12743 lt_prog_compiler_wl='-Qoption ld ' 12744 ;; 12745 *Sun\ C*) 12746 # Sun C 5.9 12747 lt_prog_compiler_pic='-KPIC' 12748 lt_prog_compiler_static='-Bstatic' 12749 lt_prog_compiler_wl='-Wl,' 12750 ;; 12751 *Intel*\ [CF]*Compiler*) 12752 lt_prog_compiler_wl='-Wl,' 12753 lt_prog_compiler_pic='-fPIC' 12754 lt_prog_compiler_static='-static' 12755 ;; 12756 *Portland\ Group*) 12757 lt_prog_compiler_wl='-Wl,' 12758 lt_prog_compiler_pic='-fpic' 12759 lt_prog_compiler_static='-Bstatic' 12760 ;; 12761 esac 12762 ;; 12763 esac 12764 ;; 12765 12766 newsos6) 12767 lt_prog_compiler_pic='-KPIC' 12768 lt_prog_compiler_static='-Bstatic' 12769 ;; 12770 12771 *-mlibc) 12772 lt_prog_compiler_wl='-Wl,' 12773 lt_prog_compiler_pic='-fPIC' 12774 lt_prog_compiler_static='-static' 12775 ;; 12776 12777 *nto* | *qnx*) 12778 # QNX uses GNU C++, but need to define -shared option too, otherwise 12779 # it will coredump. 12780 lt_prog_compiler_pic='-fPIC -shared' 12781 ;; 12782 12783 osf3* | osf4* | osf5*) 12784 lt_prog_compiler_wl='-Wl,' 12785 # All OSF/1 code is PIC. 12786 lt_prog_compiler_static='-non_shared' 12787 ;; 12788 12789 rdos*) 12790 lt_prog_compiler_static='-non_shared' 12791 ;; 12792 12793 serenity*) 12794 ;; 12795 12796 solaris*) 12797 lt_prog_compiler_pic='-KPIC' 12798 lt_prog_compiler_static='-Bstatic' 12799 case $cc_basename in 12800 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12801 lt_prog_compiler_wl='-Qoption ld ';; 12802 *) 12803 lt_prog_compiler_wl='-Wl,';; 12804 esac 12805 ;; 12806 12807 sunos4*) 12808 lt_prog_compiler_wl='-Qoption ld ' 12809 lt_prog_compiler_pic='-PIC' 12810 lt_prog_compiler_static='-Bstatic' 12811 ;; 12812 12813 sysv4 | sysv4.2uw2* | sysv4.3*) 12814 lt_prog_compiler_wl='-Wl,' 12815 lt_prog_compiler_pic='-KPIC' 12816 lt_prog_compiler_static='-Bstatic' 12817 ;; 12818 12819 sysv4*MP*) 12820 if test -d /usr/nec; then 12821 lt_prog_compiler_pic='-Kconform_pic' 12822 lt_prog_compiler_static='-Bstatic' 12823 fi 12824 ;; 12825 12826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12827 lt_prog_compiler_wl='-Wl,' 12828 lt_prog_compiler_pic='-KPIC' 12829 lt_prog_compiler_static='-Bstatic' 12830 ;; 12831 12832 unicos*) 12833 lt_prog_compiler_wl='-Wl,' 12834 lt_prog_compiler_can_build_shared=no 12835 ;; 12836 12837 uts4*) 12838 lt_prog_compiler_pic='-pic' 12839 lt_prog_compiler_static='-Bstatic' 12840 ;; 12841 12842 *) 12843 lt_prog_compiler_can_build_shared=no 12844 ;; 12845 esac 12846 fi 12847 12848 case $host_os in 12849 # For platforms that do not support PIC, -DPIC is meaningless: 12850 *djgpp*) 12851 lt_prog_compiler_pic= 12852 ;; 12853 *) 12854 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12855 ;; 12856 esac 12857 12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12859 printf %s "checking for $compiler option to produce PIC... " >&6; } 12860 if test ${lt_cv_prog_compiler_pic+y} 12861 then : 12862 printf %s "(cached) " >&6 12863 else case e in #( 12864 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12865 esac 12866 fi 12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12868 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12869 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12870 12871 # 12872 # Check to make sure the PIC flag actually works. 12873 # 12874 if test -n "$lt_prog_compiler_pic"; then 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12876 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12877 if test ${lt_cv_prog_compiler_pic_works+y} 12878 then : 12879 printf %s "(cached) " >&6 12880 else case e in #( 12881 e) lt_cv_prog_compiler_pic_works=no 12882 ac_outfile=conftest.$ac_objext 12883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12885 # Insert the option either (1) after the last *FLAGS variable, or 12886 # (2) before a word containing "conftest.", or (3) at the end. 12887 # Note that $ac_compile itself does not contain backslashes and begins 12888 # with a dollar sign (not a hyphen), so the echo should work correctly. 12889 # The option is referenced via a variable to avoid confusing sed. 12890 lt_compile=`echo "$ac_compile" | $SED \ 12891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12893 -e 's:$: $lt_compiler_flag:'` 12894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12895 (eval "$lt_compile" 2>conftest.err) 12896 ac_status=$? 12897 cat conftest.err >&5 12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12899 if (exit $ac_status) && test -s "$ac_outfile"; then 12900 # The compiler can only warn and ignore the option if not recognized 12901 # So say no if there are warnings other than the usual output. 12902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12905 lt_cv_prog_compiler_pic_works=yes 12906 fi 12907 fi 12908 $RM conftest* 12909 ;; 12910 esac 12911 fi 12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12913 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12914 12915 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12916 case $lt_prog_compiler_pic in 12917 "" | " "*) ;; 12918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12919 esac 12920 else 12921 lt_prog_compiler_pic= 12922 lt_prog_compiler_can_build_shared=no 12923 fi 12924 12925 fi 12926 12927 12928 12929 12930 12931 # 12932 # Check to make sure the static flag actually works. 12933 # 12934 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12936 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12937 if test ${lt_cv_prog_compiler_static_works+y} 12938 then : 12939 printf %s "(cached) " >&6 12940 else case e in #( 12941 e) lt_cv_prog_compiler_static_works=no 12942 save_LDFLAGS=$LDFLAGS 12943 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12944 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12946 # The linker can only warn and ignore the option if not recognized 12947 # So say no if there are warnings 12948 if test -s conftest.err; then 12949 # Append any errors to the config.log. 12950 cat conftest.err 1>&5 12951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12953 if diff conftest.exp conftest.er2 >/dev/null; then 12954 lt_cv_prog_compiler_static_works=yes 12955 fi 12956 else 12957 lt_cv_prog_compiler_static_works=yes 12958 fi 12959 fi 12960 $RM -r conftest* 12961 LDFLAGS=$save_LDFLAGS 12962 ;; 12963 esac 12964 fi 12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12966 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12967 12968 if test yes = "$lt_cv_prog_compiler_static_works"; then 12969 : 12970 else 12971 lt_prog_compiler_static= 12972 fi 12973 12974 12975 12976 ='-fPIC' 12977 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12978 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' 12979 archive_cmds_need_lc=no 12980 no_undefined_flag= 12981 ;; 12982 12983 *) 12984 dynamic_linker=no 12985 ;; 12986 esac 12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12988 printf "%s\n" "$dynamic_linker" >&6; } 12989 test no = "$dynamic_linker" && can_build_shared=no 12990 12991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12992 if test yes = "$GCC"; then 12993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12994 fi 12995 12996 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12997 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12998 fi 12999 13000 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13001 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13002 fi 13003 13004 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13005 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13006 13007 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13008 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13009 13010 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13011 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13110 printf %s "checking how to hardcode library paths into programs... " >&6; } 13111 hardcode_action= 13112 if test -n "$hardcode_libdir_flag_spec" || 13113 test -n "$runpath_var" || 13114 test yes = "$hardcode_automatic"; then 13115 13116 # We can hardcode non-existent directories. 13117 if test no != "$hardcode_direct" && 13118 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13119 # have to relink, otherwise we might link with an installed library 13120 # when we should be linking with a yet-to-be-installed one 13121 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13122 test no != "$hardcode_minus_L"; then 13123 # Linking always hardcodes the temporary library directory. 13124 hardcode_action=relink 13125 else 13126 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13127 hardcode_action=immediate 13128 fi 13129 else 13130 # We cannot hardcode anything, or else we can only hardcode existing 13131 # directories. 13132 hardcode_action=unsupported 13133 fi 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13135 printf "%s\n" "$hardcode_action" >&6; } 13136 13137 if test relink = "$hardcode_action" || 13138 test yes = "$inherit_rpath"; then 13139 # Fast installation is not supported 13140 enable_fast_install=no 13141 elif test yes = "$shlibpath_overrides_runpath" || 13142 test no = "$enable_shared"; then 13143 # Fast installation is not necessary 13144 enable_fast_install=needless 13145 fi 13146 13147 13148 13149 13150 13151 13152 if test yes != "$enable_dlopen"; then 13153 enable_dlopen=unknown 13154 enable_dlopen_self=unknown 13155 enable_dlopen_self_static=unknown 13156 else 13157 lt_cv_dlopen=no 13158 lt_cv_dlopen_libs= 13159 13160 case $host_os in 13161 beos*) 13162 lt_cv_dlopen=load_add_on 13163 lt_cv_dlopen_libs= 13164 lt_cv_dlopen_self=yes 13165 ;; 13166 13167 mingw* | windows* | pw32* | cegcc*) 13168 lt_cv_dlopen=LoadLibrary 13169 lt_cv_dlopen_libs= 13170 ;; 13171 13172 cygwin*) 13173 lt_cv_dlopen=dlopen 13174 lt_cv_dlopen_libs= 13175 ;; 13176 13177 darwin*) 13178 # if libdl is installed we need to link against it 13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13180 printf %s "checking for dlopen in -ldl... " >&6; } 13181 if test ${ac_cv_lib_dl_dlopen+y} 13182 then : 13183 printf %s "(cached) " >&6 13184 else case e in #( 13185 e) ac_check_lib_save_LIBS=$LIBS 13186 LIBS="-ldl $LIBS" 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188 /* end confdefs.h. */ 13189 13190 /* Override any GCC internal prototype to avoid an error. 13191 Use char because int might match the return type of a GCC 13192 builtin and then its argument prototype would still apply. 13193 The 'extern "C"' is for builds by C++ compilers; 13194 although this is not generally supported in C code supporting it here 13195 has little cost and some practical benefit (sr 110532). */ 13196 #ifdef __cplusplus 13197 extern "C" 13198 #endif 13199 char dlopen (void); 13200 int 13201 main (void) 13202 { 13203 return dlopen (); 13204 ; 13205 return 0; 13206 } 13207 _ACEOF 13208 if ac_fn_c_try_link "$LINENO" 13209 then : 13210 ac_cv_lib_dl_dlopen=yes 13211 else case e in #( 13212 e) ac_cv_lib_dl_dlopen=no ;; 13213 esac 13214 fi 13215 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13216 conftest$ac_exeext conftest.$ac_ext 13217 LIBS=$ac_check_lib_save_LIBS ;; 13218 esac 13219 fi 13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13221 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13222 if test "x$ac_cv_lib_dl_dlopen" = xyes 13223 then : 13224 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13225 else case e in #( 13226 e) 13227 lt_cv_dlopen=dyld 13228 lt_cv_dlopen_libs= 13229 lt_cv_dlopen_self=yes 13230 ;; 13231 esac 13232 fi 13233 13234 ;; 13235 13236 tpf*) 13237 # Don't try to run any link tests for TPF. We know it's impossible 13238 # because TPF is a cross-compiler, and we know how we open DSOs. 13239 lt_cv_dlopen=dlopen 13240 lt_cv_dlopen_libs= 13241 lt_cv_dlopen_self=no 13242 ;; 13243 13244 *) 13245 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13246 if test "x$ac_cv_func_shl_load" = xyes 13247 then : 13248 lt_cv_dlopen=shl_load 13249 else case e in #( 13250 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13251 printf %s "checking for shl_load in -ldld... " >&6; } 13252 if test ${ac_cv_lib_dld_shl_load+y} 13253 then : 13254 printf %s "(cached) " >&6 13255 else case e in #( 13256 e) ac_check_lib_save_LIBS=$LIBS 13257 LIBS="-ldld $LIBS" 13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259 /* end confdefs.h. */ 13260 13261 /* Override any GCC internal prototype to avoid an error. 13262 Use char because int might match the return type of a GCC 13263 builtin and then its argument prototype would still apply. 13264 The 'extern "C"' is for builds by C++ compilers; 13265 although this is not generally supported in C code supporting it here 13266 has little cost and some practical benefit (sr 110532). */ 13267 #ifdef __cplusplus 13268 extern "C" 13269 #endif 13270 char shl_load (void); 13271 int 13272 main (void) 13273 { 13274 return shl_load (); 13275 ; 13276 return 0; 13277 } 13278 _ACEOF 13279 if ac_fn_c_try_link "$LINENO" 13280 then : 13281 ac_cv_lib_dld_shl_load=yes 13282 else case e in #( 13283 e) ac_cv_lib_dld_shl_load=no ;; 13284 esac 13285 fi 13286 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13287 conftest$ac_exeext conftest.$ac_ext 13288 LIBS=$ac_check_lib_save_LIBS ;; 13289 esac 13290 fi 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13292 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13293 if test "x$ac_cv_lib_dld_shl_load" = xyes 13294 then : 13295 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13296 else case e in #( 13297 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13298 if test "x$ac_cv_func_dlopen" = xyes 13299 then : 13300 lt_cv_dlopen=dlopen 13301 else case e in #( 13302 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13303 printf %s "checking for dlopen in -ldl... " >&6; } 13304 if test ${ac_cv_lib_dl_dlopen+y} 13305 then : 13306 printf %s "(cached) " >&6 13307 else case e in #( 13308 e) ac_check_lib_save_LIBS=$LIBS 13309 LIBS="-ldl $LIBS" 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311 /* end confdefs.h. */ 13312 13313 /* Override any GCC internal prototype to avoid an error. 13314 Use char because int might match the return type of a GCC 13315 builtin and then its argument prototype would still apply. 13316 The 'extern "C"' is for builds by C++ compilers; 13317 although this is not generally supported in C code supporting it here 13318 has little cost and some practical benefit (sr 110532). */ 13319 #ifdef __cplusplus 13320 extern "C" 13321 #endif 13322 char dlopen (void); 13323 int 13324 main (void) 13325 { 13326 return dlopen (); 13327 ; 13328 return 0; 13329 } 13330 _ACEOF 13331 if ac_fn_c_try_link "$LINENO" 13332 then : 13333 ac_cv_lib_dl_dlopen=yes 13334 else case e in #( 13335 e) ac_cv_lib_dl_dlopen=no ;; 13336 esac 13337 fi 13338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13339 conftest$ac_exeext conftest.$ac_ext 13340 LIBS=$ac_check_lib_save_LIBS ;; 13341 esac 13342 fi 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13344 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13345 if test "x$ac_cv_lib_dl_dlopen" = xyes 13346 then : 13347 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13348 else case e in #( 13349 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13350 printf %s "checking for dlopen in -lsvld... " >&6; } 13351 if test ${ac_cv_lib_svld_dlopen+y} 13352 then : 13353 printf %s "(cached) " >&6 13354 else case e in #( 13355 e) ac_check_lib_save_LIBS=$LIBS 13356 LIBS="-lsvld $LIBS" 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358 /* end confdefs.h. */ 13359 13360 /* Override any GCC internal prototype to avoid an error. 13361 Use char because int might match the return type of a GCC 13362 builtin and then its argument prototype would still apply. 13363 The 'extern "C"' is for builds by C++ compilers; 13364 although this is not generally supported in C code supporting it here 13365 has little cost and some practical benefit (sr 110532). */ 13366 #ifdef __cplusplus 13367 extern "C" 13368 #endif 13369 char dlopen (void); 13370 int 13371 main (void) 13372 { 13373 return dlopen (); 13374 ; 13375 return 0; 13376 } 13377 _ACEOF 13378 if ac_fn_c_try_link "$LINENO" 13379 then : 13380 ac_cv_lib_svld_dlopen=yes 13381 else case e in #( 13382 e) ac_cv_lib_svld_dlopen=no ;; 13383 esac 13384 fi 13385 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13386 conftest$ac_exeext conftest.$ac_ext 13387 LIBS=$ac_check_lib_save_LIBS ;; 13388 esac 13389 fi 13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13391 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13392 if test "x$ac_cv_lib_svld_dlopen" = xyes 13393 then : 13394 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13395 else case e in #( 13396 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13397 printf %s "checking for dld_link in -ldld... " >&6; } 13398 if test ${ac_cv_lib_dld_dld_link+y} 13399 then : 13400 printf %s "(cached) " >&6 13401 else case e in #( 13402 e) ac_check_lib_save_LIBS=$LIBS 13403 LIBS="-ldld $LIBS" 13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13405 /* end confdefs.h. */ 13406 13407 /* Override any GCC internal prototype to avoid an error. 13408 Use char because int might match the return type of a GCC 13409 builtin and then its argument prototype would still apply. 13410 The 'extern "C"' is for builds by C++ compilers; 13411 although this is not generally supported in C code supporting it here 13412 has little cost and some practical benefit (sr 110532). */ 13413 #ifdef __cplusplus 13414 extern "C" 13415 #endif 13416 char dld_link (void); 13417 int 13418 main (void) 13419 { 13420 return dld_link (); 13421 ; 13422 return 0; 13423 } 13424 _ACEOF 13425 if ac_fn_c_try_link "$LINENO" 13426 then : 13427 ac_cv_lib_dld_dld_link=yes 13428 else case e in #( 13429 e) ac_cv_lib_dld_dld_link=no ;; 13430 esac 13431 fi 13432 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13433 conftest$ac_exeext conftest.$ac_ext 13434 LIBS=$ac_check_lib_save_LIBS ;; 13435 esac 13436 fi 13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13438 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13439 if test "x$ac_cv_lib_dld_dld_link" = xyes 13440 then : 13441 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13442 fi 13443 13444 ;; 13445 esac 13446 fi 13447 13448 ;; 13449 esac 13450 fi 13451 13452 ;; 13453 esac 13454 fi 13455 13456 ;; 13457 esac 13458 fi 13459 13460 ;; 13461 esac 13462 fi 13463 13464 ;; 13465 esac 13466 13467 if test no = "$lt_cv_dlopen"; then 13468 enable_dlopen=no 13469 else 13470 enable_dlopen=yes 13471 fi 13472 13473 case $lt_cv_dlopen in 13474 dlopen) 13475 save_CPPFLAGS=$CPPFLAGS 13476 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13477 13478 save_LDFLAGS=$LDFLAGS 13479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13480 13481 save_LIBS=$LIBS 13482 LIBS="$lt_cv_dlopen_libs $LIBS" 13483 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13485 printf %s "checking whether a program can dlopen itself... " >&6; } 13486 if test ${lt_cv_dlopen_self+y} 13487 then : 13488 printf %s "(cached) " >&6 13489 else case e in #( 13490 e) if test yes = "$cross_compiling"; then : 13491 lt_cv_dlopen_self=cross 13492 else 13493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13494 lt_status=$lt_dlunknown 13495 cat > conftest.$ac_ext <<_LT_EOF 13496 #line $LINENO "configure" 13497 #include "confdefs.h" 13498 13499 #if HAVE_DLFCN_H 13500 #include <dlfcn.h> 13501 #endif 13502 13503 #include <stdio.h> 13504 13505 #ifdef RTLD_GLOBAL 13506 # define LT_DLGLOBAL RTLD_GLOBAL 13507 #else 13508 # ifdef DL_GLOBAL 13509 # define LT_DLGLOBAL DL_GLOBAL 13510 # else 13511 # define LT_DLGLOBAL 0 13512 # endif 13513 #endif 13514 13515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13516 find out it does not work in some platform. */ 13517 #ifndef LT_DLLAZY_OR_NOW 13518 # ifdef RTLD_LAZY 13519 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13520 # else 13521 # ifdef DL_LAZY 13522 # define LT_DLLAZY_OR_NOW DL_LAZY 13523 # else 13524 # ifdef RTLD_NOW 13525 # define LT_DLLAZY_OR_NOW RTLD_NOW 13526 # else 13527 # ifdef DL_NOW 13528 # define LT_DLLAZY_OR_NOW DL_NOW 13529 # else 13530 # define LT_DLLAZY_OR_NOW 0 13531 # endif 13532 # endif 13533 # endif 13534 # endif 13535 #endif 13536 13537 /* When -fvisibility=hidden is used, assume the code has been annotated 13538 correspondingly for the symbols needed. */ 13539 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13540 int fnord (void) __attribute__((visibility("default"))); 13541 #endif 13542 13543 int fnord (void) { return 42; } 13544 int main (void) 13545 { 13546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13547 int status = $lt_dlunknown; 13548 13549 if (self) 13550 { 13551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13552 else 13553 { 13554 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13555 else puts (dlerror ()); 13556 } 13557 /* dlclose (self); */ 13558 } 13559 else 13560 puts (dlerror ()); 13561 13562 return status; 13563 } 13564 _LT_EOF 13565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13566 (eval $ac_link) 2>&5 13567 ac_status=$? 13568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13569 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13570 (./conftest; exit; ) >&5 2>/dev/null 13571 lt_status=$? 13572 case x$lt_status in 13573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13576 esac 13577 else : 13578 # compilation failed 13579 lt_cv_dlopen_self=no 13580 fi 13581 fi 13582 rm -fr conftest* 13583 13584 ;; 13585 esac 13586 fi 13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13588 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13589 13590 if test yes = "$lt_cv_dlopen_self"; then 13591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13593 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13594 if test ${lt_cv_dlopen_self_static+y} 13595 then : 13596 printf %s "(cached) " >&6 13597 else case e in #( 13598 e) if test yes = "$cross_compiling"; then : 13599 lt_cv_dlopen_self_static=cross 13600 else 13601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13602 lt_status=$lt_dlunknown 13603 cat > conftest.$ac_ext <<_LT_EOF 13604 #line $LINENO "configure" 13605 #include "confdefs.h" 13606 13607 #if HAVE_DLFCN_H 13608 #include <dlfcn.h> 13609 #endif 13610 13611 #include <stdio.h> 13612 13613 #ifdef RTLD_GLOBAL 13614 # define LT_DLGLOBAL RTLD_GLOBAL 13615 #else 13616 # ifdef DL_GLOBAL 13617 # define LT_DLGLOBAL DL_GLOBAL 13618 # else 13619 # define LT_DLGLOBAL 0 13620 # endif 13621 #endif 13622 13623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13624 find out it does not work in some platform. */ 13625 #ifndef LT_DLLAZY_OR_NOW 13626 # ifdef RTLD_LAZY 13627 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13628 # else 13629 # ifdef DL_LAZY 13630 # define LT_DLLAZY_OR_NOW DL_LAZY 13631 # else 13632 # ifdef RTLD_NOW 13633 # define LT_DLLAZY_OR_NOW RTLD_NOW 13634 # else 13635 # ifdef DL_NOW 13636 # define LT_DLLAZY_OR_NOW DL_NOW 13637 # else 13638 # define LT_DLLAZY_OR_NOW 0 13639 # endif 13640 # endif 13641 # endif 13642 # endif 13643 #endif 13644 13645 /* When -fvisibility=hidden is used, assume the code has been annotated 13646 correspondingly for the symbols needed. */ 13647 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13648 int fnord (void) __attribute__((visibility("default"))); 13649 #endif 13650 13651 int fnord (void) { return 42; } 13652 int main (void) 13653 { 13654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13655 int status = $lt_dlunknown; 13656 13657 if (self) 13658 { 13659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13660 else 13661 { 13662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13663 else puts (dlerror ()); 13664 } 13665 /* dlclose (self); */ 13666 } 13667 else 13668 puts (dlerror ()); 13669 13670 return status; 13671 } 13672 _LT_EOF 13673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13674 (eval $ac_link) 2>&5 13675 ac_status=$? 13676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13677 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13678 (./conftest; exit; ) >&5 2>/dev/null 13679 lt_status=$? 13680 case x$lt_status in 13681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13684 esac 13685 else : 13686 # compilation failed 13687 lt_cv_dlopen_self_static=no 13688 fi 13689 fi 13690 rm -fr conftest* 13691 13692 ;; 13693 esac 13694 fi 13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13696 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13697 fi 13698 13699 CPPFLAGS=$save_CPPFLAGS 13700 LDFLAGS=$save_LDFLAGS 13701 LIBS=$save_LIBS 13702 ;; 13703 esac 13704 13705 case $lt_cv_dlopen_self in 13706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13707 *) enable_dlopen_self=unknown ;; 13708 esac 13709 13710 case $lt_cv_dlopen_self_static in 13711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13712 *) enable_dlopen_self_static=unknown ;; 13713 esac 13714 fi 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 striplib= 13733 old_striplib= 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13735 printf %s "checking whether stripping libraries is possible... " >&6; } 13736 if test -z "$STRIP"; then 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13738 printf "%s\n" "no" >&6; } 13739 else 13740 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13741 old_striplib="$STRIP --strip-debug" 13742 striplib="$STRIP --strip-unneeded" 13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13744 printf "%s\n" "yes" >&6; } 13745 else 13746 case $host_os in 13747 darwin*) 13748 # FIXME - insert some real tests, host_os isn't really good enough 13749 striplib="$STRIP -x" 13750 old_striplib="$STRIP -S" 13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13752 printf "%s\n" "yes" >&6; } 13753 ;; 13754 freebsd*) 13755 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13756 old_striplib="$STRIP --strip-debug" 13757 striplib="$STRIP --strip-unneeded" 13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13759 printf "%s\n" "yes" >&6; } 13760 else 13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13762 printf "%s\n" "no" >&6; } 13763 fi 13764 ;; 13765 *) 13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13767 printf "%s\n" "no" >&6; } 13768 ;; 13769 esac 13770 fi 13771 fi 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 # Report what library types will actually be built 13785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13786 printf %s "checking if libtool supports shared libraries... " >&6; } 13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13788 printf "%s\n" "$can_build_shared" >&6; } 13789 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13791 printf %s "checking whether to build shared libraries... " >&6; } 13792 test no = "$can_build_shared" && enable_shared=no 13793 13794 # On AIX, shared libraries and static libraries use the same namespace, and 13795 # are all built from PIC. 13796 case $host_os in 13797 aix3*) 13798 test yes = "$enable_shared" && enable_static=no 13799 if test -n "$RANLIB"; then 13800 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13801 postinstall_cmds='$RANLIB $lib' 13802 fi 13803 ;; 13804 13805 aix[4-9]*) 13806 if test ia64 != "$host_cpu"; then 13807 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13808 yes,aix,yes) ;; # shared object as lib.so file only 13809 yes,svr4,*) ;; # shared object as lib.so archive member only 13810 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13811 esac 13812 fi 13813 ;; 13814 esac 13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13816 printf "%s\n" "$enable_shared" >&6; } 13817 13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13819 printf %s "checking whether to build static libraries... " >&6; } 13820 # Make sure either enable_shared or enable_static is yes. 13821 test yes = "$enable_shared" || enable_static=yes 13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13823 printf "%s\n" "$enable_static" >&6; } 13824 13825 13826 13827 13828 fi 13829 ac_ext=c 13830 ac_cpp='$CPP $CPPFLAGS' 13831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13833 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13834 13835 CC=$lt_save_CC 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 ac_config_commands="$ac_config_commands libtool" 13852 13853 13854 13855 13856 # Only expand once: 13857 13858 13859 13860 # Require xorg-macros minimum of 1.12 for DocBook external references 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13873 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13874 if test ${ac_cv_c_undeclared_builtin_options+y} 13875 then : 13876 printf %s "(cached) " >&6 13877 else case e in #( 13878 e) ac_save_CFLAGS=$CFLAGS 13879 ac_cv_c_undeclared_builtin_options='cannot detect' 13880 for ac_arg in '' -fno-builtin; do 13881 CFLAGS="$ac_save_CFLAGS $ac_arg" 13882 # This test program should *not* compile successfully. 13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884 /* end confdefs.h. */ 13885 13886 int 13887 main (void) 13888 { 13889 (void) strchr; 13890 ; 13891 return 0; 13892 } 13893 _ACEOF 13894 if ac_fn_c_try_compile "$LINENO" 13895 then : 13896 13897 else case e in #( 13898 e) # This test program should compile successfully. 13899 # No library function is consistently available on 13900 # freestanding implementations, so test against a dummy 13901 # declaration. Include always-available headers on the 13902 # off chance that they somehow elicit warnings. 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904 /* end confdefs.h. */ 13905 #include <float.h> 13906 #include <limits.h> 13907 #include <stdarg.h> 13908 #include <stddef.h> 13909 extern void ac_decl (int, char *); 13910 13911 int 13912 main (void) 13913 { 13914 (void) ac_decl (0, (char *) 0); 13915 (void) ac_decl; 13916 13917 ; 13918 return 0; 13919 } 13920 _ACEOF 13921 if ac_fn_c_try_compile "$LINENO" 13922 then : 13923 if test x"$ac_arg" = x 13924 then : 13925 ac_cv_c_undeclared_builtin_options='none needed' 13926 else case e in #( 13927 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13928 esac 13929 fi 13930 break 13931 fi 13932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13933 esac 13934 fi 13935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13936 done 13937 CFLAGS=$ac_save_CFLAGS 13938 ;; 13939 esac 13940 fi 13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13942 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13943 case $ac_cv_c_undeclared_builtin_options in #( 13944 'cannot detect') : 13945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13946 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13947 as_fn_error $? "cannot make $CC report undeclared builtins 13948 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13949 'none needed') : 13950 ac_c_undeclared_builtin_options='' ;; #( 13951 *) : 13952 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13953 esac 13954 13955 13956 13957 13958 13959 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13960 if test "x$ac_cv_have_decl___clang__" = xyes 13961 then : 13962 CLANGCC="yes" 13963 else case e in #( 13964 e) CLANGCC="no" ;; 13965 esac 13966 fi 13967 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13968 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13969 then : 13970 INTELCC="yes" 13971 else case e in #( 13972 e) INTELCC="no" ;; 13973 esac 13974 fi 13975 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13976 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13977 then : 13978 SUNCC="yes" 13979 else case e in #( 13980 e) SUNCC="no" ;; 13981 esac 13982 fi 13983 13984 13985 13986 13987 13988 13989 13990 13991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13992 if test -n "$ac_tool_prefix"; then 13993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13996 printf %s "checking for $ac_word... " >&6; } 13997 if test ${ac_cv_path_PKG_CONFIG+y} 13998 then : 13999 printf %s "(cached) " >&6 14000 else case e in #( 14001 e) case $PKG_CONFIG in 14002 [\\/]* | ?:[\\/]*) 14003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14004 ;; 14005 *) 14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14007 for as_dir in $PATH 14008 do 14009 IFS=$as_save_IFS 14010 case $as_dir in #((( 14011 '') as_dir=./ ;; 14012 */) ;; 14013 *) as_dir=$as_dir/ ;; 14014 esac 14015 for ac_exec_ext in '' $ac_executable_extensions; do 14016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14017 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14019 break 2 14020 fi 14021 done 14022 done 14023 IFS=$as_save_IFS 14024 14025 ;; 14026 esac ;; 14027 esac 14028 fi 14029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14030 if test -n "$PKG_CONFIG"; then 14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14032 printf "%s\n" "$PKG_CONFIG" >&6; } 14033 else 14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14035 printf "%s\n" "no" >&6; } 14036 fi 14037 14038 14039 fi 14040 if test -z "$ac_cv_path_PKG_CONFIG"; then 14041 ac_pt_PKG_CONFIG=$PKG_CONFIG 14042 # Extract the first word of "pkg-config", so it can be a program name with args. 14043 set dummy pkg-config; ac_word=$2 14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14045 printf %s "checking for $ac_word... " >&6; } 14046 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14047 then : 14048 printf %s "(cached) " >&6 14049 else case e in #( 14050 e) case $ac_pt_PKG_CONFIG in 14051 [\\/]* | ?:[\\/]*) 14052 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14053 ;; 14054 *) 14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14056 for as_dir in $PATH 14057 do 14058 IFS=$as_save_IFS 14059 case $as_dir in #((( 14060 '') as_dir=./ ;; 14061 */) ;; 14062 *) as_dir=$as_dir/ ;; 14063 esac 14064 for ac_exec_ext in '' $ac_executable_extensions; do 14065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14066 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14068 break 2 14069 fi 14070 done 14071 done 14072 IFS=$as_save_IFS 14073 14074 ;; 14075 esac ;; 14076 esac 14077 fi 14078 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14079 if test -n "$ac_pt_PKG_CONFIG"; then 14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14081 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14082 else 14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14084 printf "%s\n" "no" >&6; } 14085 fi 14086 14087 if test "x$ac_pt_PKG_CONFIG" = x; then 14088 PKG_CONFIG="" 14089 else 14090 case $cross_compiling:$ac_tool_warned in 14091 yes:) 14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14094 ac_tool_warned=yes ;; 14095 esac 14096 PKG_CONFIG=$ac_pt_PKG_CONFIG 14097 fi 14098 else 14099 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14100 fi 14101 14102 fi 14103 if test -n "$PKG_CONFIG"; then 14104 _pkg_min_version=0.9.0 14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14106 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14107 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14109 printf "%s\n" "yes" >&6; } 14110 else 14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14112 printf "%s\n" "no" >&6; } 14113 PKG_CONFIG="" 14114 fi 14115 fi 14116 if test -z "$PKG_CONFIG"; then 14117 as_fn_error $? "pkg-config not found" "$LINENO" 5 14118 fi 14119 14120 14121 14122 14123 14124 # Check whether --enable-selective-werror was given. 14125 if test ${enable_selective_werror+y} 14126 then : 14127 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14128 else case e in #( 14129 e) SELECTIVE_WERROR=yes ;; 14130 esac 14131 fi 14132 14133 14134 14135 14136 14137 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14138 if test "x$SUNCC" = "xyes"; then 14139 BASE_CFLAGS="-v" 14140 else 14141 BASE_CFLAGS="" 14142 fi 14143 14144 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 xorg_testset_save_CFLAGS="$CFLAGS" 14159 14160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14164 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14165 then : 14166 printf %s "(cached) " >&6 14167 else case e in #( 14168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169 /* end confdefs.h. */ 14170 int i; 14171 _ACEOF 14172 if ac_fn_c_try_compile "$LINENO" 14173 then : 14174 xorg_cv_cc_flag_unknown_warning_option=yes 14175 else case e in #( 14176 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14177 esac 14178 fi 14179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14180 esac 14181 fi 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14185 CFLAGS="$xorg_testset_save_CFLAGS" 14186 fi 14187 14188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14191 fi 14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14196 then : 14197 printf %s "(cached) " >&6 14198 else case e in #( 14199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200 /* end confdefs.h. */ 14201 int i; 14202 _ACEOF 14203 if ac_fn_c_try_compile "$LINENO" 14204 then : 14205 xorg_cv_cc_flag_unused_command_line_argument=yes 14206 else case e in #( 14207 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14208 esac 14209 fi 14210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14211 esac 14212 fi 14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14216 CFLAGS="$xorg_testset_save_CFLAGS" 14217 fi 14218 14219 found="no" 14220 14221 if test $found = "no" ; then 14222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14224 fi 14225 14226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14228 fi 14229 14230 CFLAGS="$CFLAGS -Wall" 14231 14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14233 printf %s "checking if $CC supports -Wall... " >&6; } 14234 cacheid=xorg_cv_cc_flag__Wall 14235 if eval test \${$cacheid+y} 14236 then : 14237 printf %s "(cached) " >&6 14238 else case e in #( 14239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240 /* end confdefs.h. */ 14241 int i; 14242 int 14243 main (void) 14244 { 14245 14246 ; 14247 return 0; 14248 } 14249 _ACEOF 14250 if ac_fn_c_try_link "$LINENO" 14251 then : 14252 eval $cacheid=yes 14253 else case e in #( 14254 e) eval $cacheid=no ;; 14255 esac 14256 fi 14257 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14258 conftest$ac_exeext conftest.$ac_ext ;; 14259 esac 14260 fi 14261 14262 14263 CFLAGS="$xorg_testset_save_CFLAGS" 14264 14265 eval supported=\$$cacheid 14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14267 printf "%s\n" "$supported" >&6; } 14268 if test "$supported" = "yes" ; then 14269 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14270 found="yes" 14271 fi 14272 fi 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 xorg_testset_save_CFLAGS="$CFLAGS" 14289 14290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14294 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14295 then : 14296 printf %s "(cached) " >&6 14297 else case e in #( 14298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299 /* end confdefs.h. */ 14300 int i; 14301 _ACEOF 14302 if ac_fn_c_try_compile "$LINENO" 14303 then : 14304 xorg_cv_cc_flag_unknown_warning_option=yes 14305 else case e in #( 14306 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14307 esac 14308 fi 14309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14310 esac 14311 fi 14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14315 CFLAGS="$xorg_testset_save_CFLAGS" 14316 fi 14317 14318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 fi 14322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14326 then : 14327 printf %s "(cached) " >&6 14328 else case e in #( 14329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330 /* end confdefs.h. */ 14331 int i; 14332 _ACEOF 14333 if ac_fn_c_try_compile "$LINENO" 14334 then : 14335 xorg_cv_cc_flag_unused_command_line_argument=yes 14336 else case e in #( 14337 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14338 esac 14339 fi 14340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14341 esac 14342 fi 14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14344 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347 fi 14348 14349 found="no" 14350 14351 if test $found = "no" ; then 14352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14354 fi 14355 14356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14358 fi 14359 14360 CFLAGS="$CFLAGS -Wpointer-arith" 14361 14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14363 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14364 cacheid=xorg_cv_cc_flag__Wpointer_arith 14365 if eval test \${$cacheid+y} 14366 then : 14367 printf %s "(cached) " >&6 14368 else case e in #( 14369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370 /* end confdefs.h. */ 14371 int i; 14372 int 14373 main (void) 14374 { 14375 14376 ; 14377 return 0; 14378 } 14379 _ACEOF 14380 if ac_fn_c_try_link "$LINENO" 14381 then : 14382 eval $cacheid=yes 14383 else case e in #( 14384 e) eval $cacheid=no ;; 14385 esac 14386 fi 14387 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14388 conftest$ac_exeext conftest.$ac_ext ;; 14389 esac 14390 fi 14391 14392 14393 CFLAGS="$xorg_testset_save_CFLAGS" 14394 14395 eval supported=\$$cacheid 14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14397 printf "%s\n" "$supported" >&6; } 14398 if test "$supported" = "yes" ; then 14399 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14400 found="yes" 14401 fi 14402 fi 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 xorg_testset_save_CFLAGS="$CFLAGS" 14419 14420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14424 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14425 then : 14426 printf %s "(cached) " >&6 14427 else case e in #( 14428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14429 /* end confdefs.h. */ 14430 int i; 14431 _ACEOF 14432 if ac_fn_c_try_compile "$LINENO" 14433 then : 14434 xorg_cv_cc_flag_unknown_warning_option=yes 14435 else case e in #( 14436 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14437 esac 14438 fi 14439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14440 esac 14441 fi 14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14445 CFLAGS="$xorg_testset_save_CFLAGS" 14446 fi 14447 14448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14451 fi 14452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14456 then : 14457 printf %s "(cached) " >&6 14458 else case e in #( 14459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460 /* end confdefs.h. */ 14461 int i; 14462 _ACEOF 14463 if ac_fn_c_try_compile "$LINENO" 14464 then : 14465 xorg_cv_cc_flag_unused_command_line_argument=yes 14466 else case e in #( 14467 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14468 esac 14469 fi 14470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14471 esac 14472 fi 14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14476 CFLAGS="$xorg_testset_save_CFLAGS" 14477 fi 14478 14479 found="no" 14480 14481 if test $found = "no" ; then 14482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14484 fi 14485 14486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14488 fi 14489 14490 CFLAGS="$CFLAGS -Wmissing-declarations" 14491 14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14493 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14494 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14495 if eval test \${$cacheid+y} 14496 then : 14497 printf %s "(cached) " >&6 14498 else case e in #( 14499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500 /* end confdefs.h. */ 14501 int i; 14502 int 14503 main (void) 14504 { 14505 14506 ; 14507 return 0; 14508 } 14509 _ACEOF 14510 if ac_fn_c_try_link "$LINENO" 14511 then : 14512 eval $cacheid=yes 14513 else case e in #( 14514 e) eval $cacheid=no ;; 14515 esac 14516 fi 14517 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14518 conftest$ac_exeext conftest.$ac_ext ;; 14519 esac 14520 fi 14521 14522 14523 CFLAGS="$xorg_testset_save_CFLAGS" 14524 14525 eval supported=\$$cacheid 14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14527 printf "%s\n" "$supported" >&6; } 14528 if test "$supported" = "yes" ; then 14529 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14530 found="yes" 14531 fi 14532 fi 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 xorg_testset_save_CFLAGS="$CFLAGS" 14549 14550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14554 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14555 then : 14556 printf %s "(cached) " >&6 14557 else case e in #( 14558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559 /* end confdefs.h. */ 14560 int i; 14561 _ACEOF 14562 if ac_fn_c_try_compile "$LINENO" 14563 then : 14564 xorg_cv_cc_flag_unknown_warning_option=yes 14565 else case e in #( 14566 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14567 esac 14568 fi 14569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14570 esac 14571 fi 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14573 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14575 CFLAGS="$xorg_testset_save_CFLAGS" 14576 fi 14577 14578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14581 fi 14582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14584 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14585 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14586 then : 14587 printf %s "(cached) " >&6 14588 else case e in #( 14589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14590 /* end confdefs.h. */ 14591 int i; 14592 _ACEOF 14593 if ac_fn_c_try_compile "$LINENO" 14594 then : 14595 xorg_cv_cc_flag_unused_command_line_argument=yes 14596 else case e in #( 14597 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14598 esac 14599 fi 14600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14601 esac 14602 fi 14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14606 CFLAGS="$xorg_testset_save_CFLAGS" 14607 fi 14608 14609 found="no" 14610 14611 if test $found = "no" ; then 14612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14614 fi 14615 14616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14618 fi 14619 14620 CFLAGS="$CFLAGS -Wformat=2" 14621 14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14623 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14624 cacheid=xorg_cv_cc_flag__Wformat_2 14625 if eval test \${$cacheid+y} 14626 then : 14627 printf %s "(cached) " >&6 14628 else case e in #( 14629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630 /* end confdefs.h. */ 14631 int i; 14632 int 14633 main (void) 14634 { 14635 14636 ; 14637 return 0; 14638 } 14639 _ACEOF 14640 if ac_fn_c_try_link "$LINENO" 14641 then : 14642 eval $cacheid=yes 14643 else case e in #( 14644 e) eval $cacheid=no ;; 14645 esac 14646 fi 14647 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14648 conftest$ac_exeext conftest.$ac_ext ;; 14649 esac 14650 fi 14651 14652 14653 CFLAGS="$xorg_testset_save_CFLAGS" 14654 14655 eval supported=\$$cacheid 14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14657 printf "%s\n" "$supported" >&6; } 14658 if test "$supported" = "yes" ; then 14659 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14660 found="yes" 14661 fi 14662 fi 14663 14664 if test $found = "no" ; then 14665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14667 fi 14668 14669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14671 fi 14672 14673 CFLAGS="$CFLAGS -Wformat" 14674 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14676 printf %s "checking if $CC supports -Wformat... " >&6; } 14677 cacheid=xorg_cv_cc_flag__Wformat 14678 if eval test \${$cacheid+y} 14679 then : 14680 printf %s "(cached) " >&6 14681 else case e in #( 14682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14683 /* end confdefs.h. */ 14684 int i; 14685 int 14686 main (void) 14687 { 14688 14689 ; 14690 return 0; 14691 } 14692 _ACEOF 14693 if ac_fn_c_try_link "$LINENO" 14694 then : 14695 eval $cacheid=yes 14696 else case e in #( 14697 e) eval $cacheid=no ;; 14698 esac 14699 fi 14700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14701 conftest$ac_exeext conftest.$ac_ext ;; 14702 esac 14703 fi 14704 14705 14706 CFLAGS="$xorg_testset_save_CFLAGS" 14707 14708 eval supported=\$$cacheid 14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14710 printf "%s\n" "$supported" >&6; } 14711 if test "$supported" = "yes" ; then 14712 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14713 found="yes" 14714 fi 14715 fi 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 xorg_testset_save_CFLAGS="$CFLAGS" 14734 14735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14738 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14739 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14740 then : 14741 printf %s "(cached) " >&6 14742 else case e in #( 14743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744 /* end confdefs.h. */ 14745 int i; 14746 _ACEOF 14747 if ac_fn_c_try_compile "$LINENO" 14748 then : 14749 xorg_cv_cc_flag_unknown_warning_option=yes 14750 else case e in #( 14751 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14752 esac 14753 fi 14754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14755 esac 14756 fi 14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14758 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14760 CFLAGS="$xorg_testset_save_CFLAGS" 14761 fi 14762 14763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14766 fi 14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14769 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14770 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14771 then : 14772 printf %s "(cached) " >&6 14773 else case e in #( 14774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14775 /* end confdefs.h. */ 14776 int i; 14777 _ACEOF 14778 if ac_fn_c_try_compile "$LINENO" 14779 then : 14780 xorg_cv_cc_flag_unused_command_line_argument=yes 14781 else case e in #( 14782 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14783 esac 14784 fi 14785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14786 esac 14787 fi 14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14791 CFLAGS="$xorg_testset_save_CFLAGS" 14792 fi 14793 14794 found="no" 14795 14796 if test $found = "no" ; then 14797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14799 fi 14800 14801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14803 fi 14804 14805 CFLAGS="$CFLAGS -Wstrict-prototypes" 14806 14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14808 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14809 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14810 if eval test \${$cacheid+y} 14811 then : 14812 printf %s "(cached) " >&6 14813 else case e in #( 14814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14815 /* end confdefs.h. */ 14816 int i; 14817 int 14818 main (void) 14819 { 14820 14821 ; 14822 return 0; 14823 } 14824 _ACEOF 14825 if ac_fn_c_try_link "$LINENO" 14826 then : 14827 eval $cacheid=yes 14828 else case e in #( 14829 e) eval $cacheid=no ;; 14830 esac 14831 fi 14832 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14833 conftest$ac_exeext conftest.$ac_ext ;; 14834 esac 14835 fi 14836 14837 14838 CFLAGS="$xorg_testset_save_CFLAGS" 14839 14840 eval supported=\$$cacheid 14841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14842 printf "%s\n" "$supported" >&6; } 14843 if test "$supported" = "yes" ; then 14844 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14845 found="yes" 14846 fi 14847 fi 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 xorg_testset_save_CFLAGS="$CFLAGS" 14864 14865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14869 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14870 then : 14871 printf %s "(cached) " >&6 14872 else case e in #( 14873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14874 /* end confdefs.h. */ 14875 int i; 14876 _ACEOF 14877 if ac_fn_c_try_compile "$LINENO" 14878 then : 14879 xorg_cv_cc_flag_unknown_warning_option=yes 14880 else case e in #( 14881 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14882 esac 14883 fi 14884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14885 esac 14886 fi 14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14888 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14890 CFLAGS="$xorg_testset_save_CFLAGS" 14891 fi 14892 14893 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14896 fi 14897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14899 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14900 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14901 then : 14902 printf %s "(cached) " >&6 14903 else case e in #( 14904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14905 /* end confdefs.h. */ 14906 int i; 14907 _ACEOF 14908 if ac_fn_c_try_compile "$LINENO" 14909 then : 14910 xorg_cv_cc_flag_unused_command_line_argument=yes 14911 else case e in #( 14912 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14913 esac 14914 fi 14915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14916 esac 14917 fi 14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14919 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922 fi 14923 14924 found="no" 14925 14926 if test $found = "no" ; then 14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14929 fi 14930 14931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14933 fi 14934 14935 CFLAGS="$CFLAGS -Wmissing-prototypes" 14936 14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14938 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14939 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14940 if eval test \${$cacheid+y} 14941 then : 14942 printf %s "(cached) " >&6 14943 else case e in #( 14944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945 /* end confdefs.h. */ 14946 int i; 14947 int 14948 main (void) 14949 { 14950 14951 ; 14952 return 0; 14953 } 14954 _ACEOF 14955 if ac_fn_c_try_link "$LINENO" 14956 then : 14957 eval $cacheid=yes 14958 else case e in #( 14959 e) eval $cacheid=no ;; 14960 esac 14961 fi 14962 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14963 conftest$ac_exeext conftest.$ac_ext ;; 14964 esac 14965 fi 14966 14967 14968 CFLAGS="$xorg_testset_save_CFLAGS" 14969 14970 eval supported=\$$cacheid 14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14972 printf "%s\n" "$supported" >&6; } 14973 if test "$supported" = "yes" ; then 14974 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14975 found="yes" 14976 fi 14977 fi 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 xorg_testset_save_CFLAGS="$CFLAGS" 14994 14995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14998 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14999 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15000 then : 15001 printf %s "(cached) " >&6 15002 else case e in #( 15003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004 /* end confdefs.h. */ 15005 int i; 15006 _ACEOF 15007 if ac_fn_c_try_compile "$LINENO" 15008 then : 15009 xorg_cv_cc_flag_unknown_warning_option=yes 15010 else case e in #( 15011 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15012 esac 15013 fi 15014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15015 esac 15016 fi 15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021 fi 15022 15023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15026 fi 15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15031 then : 15032 printf %s "(cached) " >&6 15033 else case e in #( 15034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035 /* end confdefs.h. */ 15036 int i; 15037 _ACEOF 15038 if ac_fn_c_try_compile "$LINENO" 15039 then : 15040 xorg_cv_cc_flag_unused_command_line_argument=yes 15041 else case e in #( 15042 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15043 esac 15044 fi 15045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15046 esac 15047 fi 15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15051 CFLAGS="$xorg_testset_save_CFLAGS" 15052 fi 15053 15054 found="no" 15055 15056 if test $found = "no" ; then 15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15059 fi 15060 15061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15063 fi 15064 15065 CFLAGS="$CFLAGS -Wnested-externs" 15066 15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15068 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15069 cacheid=xorg_cv_cc_flag__Wnested_externs 15070 if eval test \${$cacheid+y} 15071 then : 15072 printf %s "(cached) " >&6 15073 else case e in #( 15074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075 /* end confdefs.h. */ 15076 int i; 15077 int 15078 main (void) 15079 { 15080 15081 ; 15082 return 0; 15083 } 15084 _ACEOF 15085 if ac_fn_c_try_link "$LINENO" 15086 then : 15087 eval $cacheid=yes 15088 else case e in #( 15089 e) eval $cacheid=no ;; 15090 esac 15091 fi 15092 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15093 conftest$ac_exeext conftest.$ac_ext ;; 15094 esac 15095 fi 15096 15097 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099 15100 eval supported=\$$cacheid 15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15102 printf "%s\n" "$supported" >&6; } 15103 if test "$supported" = "yes" ; then 15104 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15105 found="yes" 15106 fi 15107 fi 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 xorg_testset_save_CFLAGS="$CFLAGS" 15124 15125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15129 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15130 then : 15131 printf %s "(cached) " >&6 15132 else case e in #( 15133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15134 /* end confdefs.h. */ 15135 int i; 15136 _ACEOF 15137 if ac_fn_c_try_compile "$LINENO" 15138 then : 15139 xorg_cv_cc_flag_unknown_warning_option=yes 15140 else case e in #( 15141 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15142 esac 15143 fi 15144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15145 esac 15146 fi 15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15148 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15150 CFLAGS="$xorg_testset_save_CFLAGS" 15151 fi 15152 15153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15156 fi 15157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15159 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15160 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15161 then : 15162 printf %s "(cached) " >&6 15163 else case e in #( 15164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165 /* end confdefs.h. */ 15166 int i; 15167 _ACEOF 15168 if ac_fn_c_try_compile "$LINENO" 15169 then : 15170 xorg_cv_cc_flag_unused_command_line_argument=yes 15171 else case e in #( 15172 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15173 esac 15174 fi 15175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15176 esac 15177 fi 15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15179 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15181 CFLAGS="$xorg_testset_save_CFLAGS" 15182 fi 15183 15184 found="no" 15185 15186 if test $found = "no" ; then 15187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15189 fi 15190 15191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15193 fi 15194 15195 CFLAGS="$CFLAGS -Wbad-function-cast" 15196 15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15198 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15199 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15200 if eval test \${$cacheid+y} 15201 then : 15202 printf %s "(cached) " >&6 15203 else case e in #( 15204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205 /* end confdefs.h. */ 15206 int i; 15207 int 15208 main (void) 15209 { 15210 15211 ; 15212 return 0; 15213 } 15214 _ACEOF 15215 if ac_fn_c_try_link "$LINENO" 15216 then : 15217 eval $cacheid=yes 15218 else case e in #( 15219 e) eval $cacheid=no ;; 15220 esac 15221 fi 15222 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15223 conftest$ac_exeext conftest.$ac_ext ;; 15224 esac 15225 fi 15226 15227 15228 CFLAGS="$xorg_testset_save_CFLAGS" 15229 15230 eval supported=\$$cacheid 15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15232 printf "%s\n" "$supported" >&6; } 15233 if test "$supported" = "yes" ; then 15234 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15235 found="yes" 15236 fi 15237 fi 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 xorg_testset_save_CFLAGS="$CFLAGS" 15254 15255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15259 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15260 then : 15261 printf %s "(cached) " >&6 15262 else case e in #( 15263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15264 /* end confdefs.h. */ 15265 int i; 15266 _ACEOF 15267 if ac_fn_c_try_compile "$LINENO" 15268 then : 15269 xorg_cv_cc_flag_unknown_warning_option=yes 15270 else case e in #( 15271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15272 esac 15273 fi 15274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15275 esac 15276 fi 15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15278 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15280 CFLAGS="$xorg_testset_save_CFLAGS" 15281 fi 15282 15283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15286 fi 15287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15289 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15290 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15291 then : 15292 printf %s "(cached) " >&6 15293 else case e in #( 15294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15295 /* end confdefs.h. */ 15296 int i; 15297 _ACEOF 15298 if ac_fn_c_try_compile "$LINENO" 15299 then : 15300 xorg_cv_cc_flag_unused_command_line_argument=yes 15301 else case e in #( 15302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15303 esac 15304 fi 15305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15306 esac 15307 fi 15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312 fi 15313 15314 found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Wold-style-definition" 15326 15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15328 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15329 cacheid=xorg_cv_cc_flag__Wold_style_definition 15330 if eval test \${$cacheid+y} 15331 then : 15332 printf %s "(cached) " >&6 15333 else case e in #( 15334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335 /* end confdefs.h. */ 15336 int i; 15337 int 15338 main (void) 15339 { 15340 15341 ; 15342 return 0; 15343 } 15344 _ACEOF 15345 if ac_fn_c_try_link "$LINENO" 15346 then : 15347 eval $cacheid=yes 15348 else case e in #( 15349 e) eval $cacheid=no ;; 15350 esac 15351 fi 15352 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15353 conftest$ac_exeext conftest.$ac_ext ;; 15354 esac 15355 fi 15356 15357 15358 CFLAGS="$xorg_testset_save_CFLAGS" 15359 15360 eval supported=\$$cacheid 15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15362 printf "%s\n" "$supported" >&6; } 15363 if test "$supported" = "yes" ; then 15364 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15365 found="yes" 15366 fi 15367 fi 15368 15369 if test $found = "no" ; then 15370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15372 fi 15373 15374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15376 fi 15377 15378 CFLAGS="$CFLAGS -fd" 15379 15380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15381 printf %s "checking if $CC supports -fd... " >&6; } 15382 cacheid=xorg_cv_cc_flag__fd 15383 if eval test \${$cacheid+y} 15384 then : 15385 printf %s "(cached) " >&6 15386 else case e in #( 15387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388 /* end confdefs.h. */ 15389 int i; 15390 int 15391 main (void) 15392 { 15393 15394 ; 15395 return 0; 15396 } 15397 _ACEOF 15398 if ac_fn_c_try_link "$LINENO" 15399 then : 15400 eval $cacheid=yes 15401 else case e in #( 15402 e) eval $cacheid=no ;; 15403 esac 15404 fi 15405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15406 conftest$ac_exeext conftest.$ac_ext ;; 15407 esac 15408 fi 15409 15410 15411 CFLAGS="$xorg_testset_save_CFLAGS" 15412 15413 eval supported=\$$cacheid 15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15415 printf "%s\n" "$supported" >&6; } 15416 if test "$supported" = "yes" ; then 15417 BASE_CFLAGS="$BASE_CFLAGS -fd" 15418 found="yes" 15419 fi 15420 fi 15421 15422 15423 15424 15425 15426 # This chunk adds additional warnings that could catch undesired effects. 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 xorg_testset_save_CFLAGS="$CFLAGS" 15441 15442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15446 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15447 then : 15448 printf %s "(cached) " >&6 15449 else case e in #( 15450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451 /* end confdefs.h. */ 15452 int i; 15453 _ACEOF 15454 if ac_fn_c_try_compile "$LINENO" 15455 then : 15456 xorg_cv_cc_flag_unknown_warning_option=yes 15457 else case e in #( 15458 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15459 esac 15460 fi 15461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15462 esac 15463 fi 15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15467 CFLAGS="$xorg_testset_save_CFLAGS" 15468 fi 15469 15470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15473 fi 15474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15478 then : 15479 printf %s "(cached) " >&6 15480 else case e in #( 15481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15482 /* end confdefs.h. */ 15483 int i; 15484 _ACEOF 15485 if ac_fn_c_try_compile "$LINENO" 15486 then : 15487 xorg_cv_cc_flag_unused_command_line_argument=yes 15488 else case e in #( 15489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15490 esac 15491 fi 15492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15493 esac 15494 fi 15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15498 CFLAGS="$xorg_testset_save_CFLAGS" 15499 fi 15500 15501 found="no" 15502 15503 if test $found = "no" ; then 15504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15506 fi 15507 15508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15510 fi 15511 15512 CFLAGS="$CFLAGS -Wunused" 15513 15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15515 printf %s "checking if $CC supports -Wunused... " >&6; } 15516 cacheid=xorg_cv_cc_flag__Wunused 15517 if eval test \${$cacheid+y} 15518 then : 15519 printf %s "(cached) " >&6 15520 else case e in #( 15521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522 /* end confdefs.h. */ 15523 int i; 15524 int 15525 main (void) 15526 { 15527 15528 ; 15529 return 0; 15530 } 15531 _ACEOF 15532 if ac_fn_c_try_link "$LINENO" 15533 then : 15534 eval $cacheid=yes 15535 else case e in #( 15536 e) eval $cacheid=no ;; 15537 esac 15538 fi 15539 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15540 conftest$ac_exeext conftest.$ac_ext ;; 15541 esac 15542 fi 15543 15544 15545 CFLAGS="$xorg_testset_save_CFLAGS" 15546 15547 eval supported=\$$cacheid 15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15549 printf "%s\n" "$supported" >&6; } 15550 if test "$supported" = "yes" ; then 15551 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15552 found="yes" 15553 fi 15554 fi 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 xorg_testset_save_CFLAGS="$CFLAGS" 15571 15572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15576 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15577 then : 15578 printf %s "(cached) " >&6 15579 else case e in #( 15580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15581 /* end confdefs.h. */ 15582 int i; 15583 _ACEOF 15584 if ac_fn_c_try_compile "$LINENO" 15585 then : 15586 xorg_cv_cc_flag_unknown_warning_option=yes 15587 else case e in #( 15588 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15589 esac 15590 fi 15591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15592 esac 15593 fi 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15597 CFLAGS="$xorg_testset_save_CFLAGS" 15598 fi 15599 15600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 fi 15604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15608 then : 15609 printf %s "(cached) " >&6 15610 else case e in #( 15611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612 /* end confdefs.h. */ 15613 int i; 15614 _ACEOF 15615 if ac_fn_c_try_compile "$LINENO" 15616 then : 15617 xorg_cv_cc_flag_unused_command_line_argument=yes 15618 else case e in #( 15619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15620 esac 15621 fi 15622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15623 esac 15624 fi 15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15626 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629 fi 15630 15631 found="no" 15632 15633 if test $found = "no" ; then 15634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15636 fi 15637 15638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15640 fi 15641 15642 CFLAGS="$CFLAGS -Wuninitialized" 15643 15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15645 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15646 cacheid=xorg_cv_cc_flag__Wuninitialized 15647 if eval test \${$cacheid+y} 15648 then : 15649 printf %s "(cached) " >&6 15650 else case e in #( 15651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652 /* end confdefs.h. */ 15653 int i; 15654 int 15655 main (void) 15656 { 15657 15658 ; 15659 return 0; 15660 } 15661 _ACEOF 15662 if ac_fn_c_try_link "$LINENO" 15663 then : 15664 eval $cacheid=yes 15665 else case e in #( 15666 e) eval $cacheid=no ;; 15667 esac 15668 fi 15669 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15670 conftest$ac_exeext conftest.$ac_ext ;; 15671 esac 15672 fi 15673 15674 15675 CFLAGS="$xorg_testset_save_CFLAGS" 15676 15677 eval supported=\$$cacheid 15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15679 printf "%s\n" "$supported" >&6; } 15680 if test "$supported" = "yes" ; then 15681 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15682 found="yes" 15683 fi 15684 fi 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 xorg_testset_save_CFLAGS="$CFLAGS" 15701 15702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15706 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15707 then : 15708 printf %s "(cached) " >&6 15709 else case e in #( 15710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15711 /* end confdefs.h. */ 15712 int i; 15713 _ACEOF 15714 if ac_fn_c_try_compile "$LINENO" 15715 then : 15716 xorg_cv_cc_flag_unknown_warning_option=yes 15717 else case e in #( 15718 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15719 esac 15720 fi 15721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15722 esac 15723 fi 15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728 fi 15729 15730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15733 fi 15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15738 then : 15739 printf %s "(cached) " >&6 15740 else case e in #( 15741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15742 /* end confdefs.h. */ 15743 int i; 15744 _ACEOF 15745 if ac_fn_c_try_compile "$LINENO" 15746 then : 15747 xorg_cv_cc_flag_unused_command_line_argument=yes 15748 else case e in #( 15749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15750 esac 15751 fi 15752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15753 esac 15754 fi 15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15758 CFLAGS="$xorg_testset_save_CFLAGS" 15759 fi 15760 15761 found="no" 15762 15763 if test $found = "no" ; then 15764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15766 fi 15767 15768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15770 fi 15771 15772 CFLAGS="$CFLAGS -Wshadow" 15773 15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15775 printf %s "checking if $CC supports -Wshadow... " >&6; } 15776 cacheid=xorg_cv_cc_flag__Wshadow 15777 if eval test \${$cacheid+y} 15778 then : 15779 printf %s "(cached) " >&6 15780 else case e in #( 15781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782 /* end confdefs.h. */ 15783 int i; 15784 int 15785 main (void) 15786 { 15787 15788 ; 15789 return 0; 15790 } 15791 _ACEOF 15792 if ac_fn_c_try_link "$LINENO" 15793 then : 15794 eval $cacheid=yes 15795 else case e in #( 15796 e) eval $cacheid=no ;; 15797 esac 15798 fi 15799 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15800 conftest$ac_exeext conftest.$ac_ext ;; 15801 esac 15802 fi 15803 15804 15805 CFLAGS="$xorg_testset_save_CFLAGS" 15806 15807 eval supported=\$$cacheid 15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15809 printf "%s\n" "$supported" >&6; } 15810 if test "$supported" = "yes" ; then 15811 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15812 found="yes" 15813 fi 15814 fi 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 xorg_testset_save_CFLAGS="$CFLAGS" 15831 15832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15836 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15837 then : 15838 printf %s "(cached) " >&6 15839 else case e in #( 15840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15841 /* end confdefs.h. */ 15842 int i; 15843 _ACEOF 15844 if ac_fn_c_try_compile "$LINENO" 15845 then : 15846 xorg_cv_cc_flag_unknown_warning_option=yes 15847 else case e in #( 15848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15849 esac 15850 fi 15851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15852 esac 15853 fi 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15857 CFLAGS="$xorg_testset_save_CFLAGS" 15858 fi 15859 15860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15863 fi 15864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15868 then : 15869 printf %s "(cached) " >&6 15870 else case e in #( 15871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15872 /* end confdefs.h. */ 15873 int i; 15874 _ACEOF 15875 if ac_fn_c_try_compile "$LINENO" 15876 then : 15877 xorg_cv_cc_flag_unused_command_line_argument=yes 15878 else case e in #( 15879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15880 esac 15881 fi 15882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15883 esac 15884 fi 15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15888 CFLAGS="$xorg_testset_save_CFLAGS" 15889 fi 15890 15891 found="no" 15892 15893 if test $found = "no" ; then 15894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15896 fi 15897 15898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15900 fi 15901 15902 CFLAGS="$CFLAGS -Wmissing-noreturn" 15903 15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15905 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15906 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15907 if eval test \${$cacheid+y} 15908 then : 15909 printf %s "(cached) " >&6 15910 else case e in #( 15911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912 /* end confdefs.h. */ 15913 int i; 15914 int 15915 main (void) 15916 { 15917 15918 ; 15919 return 0; 15920 } 15921 _ACEOF 15922 if ac_fn_c_try_link "$LINENO" 15923 then : 15924 eval $cacheid=yes 15925 else case e in #( 15926 e) eval $cacheid=no ;; 15927 esac 15928 fi 15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15930 conftest$ac_exeext conftest.$ac_ext ;; 15931 esac 15932 fi 15933 15934 15935 CFLAGS="$xorg_testset_save_CFLAGS" 15936 15937 eval supported=\$$cacheid 15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15939 printf "%s\n" "$supported" >&6; } 15940 if test "$supported" = "yes" ; then 15941 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15942 found="yes" 15943 fi 15944 fi 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 xorg_testset_save_CFLAGS="$CFLAGS" 15961 15962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15966 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15967 then : 15968 printf %s "(cached) " >&6 15969 else case e in #( 15970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971 /* end confdefs.h. */ 15972 int i; 15973 _ACEOF 15974 if ac_fn_c_try_compile "$LINENO" 15975 then : 15976 xorg_cv_cc_flag_unknown_warning_option=yes 15977 else case e in #( 15978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15979 esac 15980 fi 15981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15982 esac 15983 fi 15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15987 CFLAGS="$xorg_testset_save_CFLAGS" 15988 fi 15989 15990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15993 fi 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15998 then : 15999 printf %s "(cached) " >&6 16000 else case e in #( 16001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002 /* end confdefs.h. */ 16003 int i; 16004 _ACEOF 16005 if ac_fn_c_try_compile "$LINENO" 16006 then : 16007 xorg_cv_cc_flag_unused_command_line_argument=yes 16008 else case e in #( 16009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16010 esac 16011 fi 16012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16013 esac 16014 fi 16015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019 fi 16020 16021 found="no" 16022 16023 if test $found = "no" ; then 16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16026 fi 16027 16028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16030 fi 16031 16032 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16033 16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16035 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16036 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16037 if eval test \${$cacheid+y} 16038 then : 16039 printf %s "(cached) " >&6 16040 else case e in #( 16041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042 /* end confdefs.h. */ 16043 int i; 16044 int 16045 main (void) 16046 { 16047 16048 ; 16049 return 0; 16050 } 16051 _ACEOF 16052 if ac_fn_c_try_link "$LINENO" 16053 then : 16054 eval $cacheid=yes 16055 else case e in #( 16056 e) eval $cacheid=no ;; 16057 esac 16058 fi 16059 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16060 conftest$ac_exeext conftest.$ac_ext ;; 16061 esac 16062 fi 16063 16064 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066 16067 eval supported=\$$cacheid 16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16069 printf "%s\n" "$supported" >&6; } 16070 if test "$supported" = "yes" ; then 16071 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16072 found="yes" 16073 fi 16074 fi 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 xorg_testset_save_CFLAGS="$CFLAGS" 16091 16092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16096 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16097 then : 16098 printf %s "(cached) " >&6 16099 else case e in #( 16100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101 /* end confdefs.h. */ 16102 int i; 16103 _ACEOF 16104 if ac_fn_c_try_compile "$LINENO" 16105 then : 16106 xorg_cv_cc_flag_unknown_warning_option=yes 16107 else case e in #( 16108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16109 esac 16110 fi 16111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16112 esac 16113 fi 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16117 CFLAGS="$xorg_testset_save_CFLAGS" 16118 fi 16119 16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16123 fi 16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16128 then : 16129 printf %s "(cached) " >&6 16130 else case e in #( 16131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16132 /* end confdefs.h. */ 16133 int i; 16134 _ACEOF 16135 if ac_fn_c_try_compile "$LINENO" 16136 then : 16137 xorg_cv_cc_flag_unused_command_line_argument=yes 16138 else case e in #( 16139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16140 esac 16141 fi 16142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16143 esac 16144 fi 16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16148 CFLAGS="$xorg_testset_save_CFLAGS" 16149 fi 16150 16151 found="no" 16152 16153 if test $found = "no" ; then 16154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16156 fi 16157 16158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16160 fi 16161 16162 CFLAGS="$CFLAGS -Wredundant-decls" 16163 16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16165 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16166 cacheid=xorg_cv_cc_flag__Wredundant_decls 16167 if eval test \${$cacheid+y} 16168 then : 16169 printf %s "(cached) " >&6 16170 else case e in #( 16171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16172 /* end confdefs.h. */ 16173 int i; 16174 int 16175 main (void) 16176 { 16177 16178 ; 16179 return 0; 16180 } 16181 _ACEOF 16182 if ac_fn_c_try_link "$LINENO" 16183 then : 16184 eval $cacheid=yes 16185 else case e in #( 16186 e) eval $cacheid=no ;; 16187 esac 16188 fi 16189 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16190 conftest$ac_exeext conftest.$ac_ext ;; 16191 esac 16192 fi 16193 16194 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196 16197 eval supported=\$$cacheid 16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16199 printf "%s\n" "$supported" >&6; } 16200 if test "$supported" = "yes" ; then 16201 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16202 found="yes" 16203 fi 16204 fi 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 xorg_testset_save_CFLAGS="$CFLAGS" 16221 16222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16226 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16227 then : 16228 printf %s "(cached) " >&6 16229 else case e in #( 16230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16231 /* end confdefs.h. */ 16232 int i; 16233 _ACEOF 16234 if ac_fn_c_try_compile "$LINENO" 16235 then : 16236 xorg_cv_cc_flag_unknown_warning_option=yes 16237 else case e in #( 16238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16239 esac 16240 fi 16241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16242 esac 16243 fi 16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16247 CFLAGS="$xorg_testset_save_CFLAGS" 16248 fi 16249 16250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16253 fi 16254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16258 then : 16259 printf %s "(cached) " >&6 16260 else case e in #( 16261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262 /* end confdefs.h. */ 16263 int i; 16264 _ACEOF 16265 if ac_fn_c_try_compile "$LINENO" 16266 then : 16267 xorg_cv_cc_flag_unused_command_line_argument=yes 16268 else case e in #( 16269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16270 esac 16271 fi 16272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16273 esac 16274 fi 16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16278 CFLAGS="$xorg_testset_save_CFLAGS" 16279 fi 16280 16281 found="no" 16282 16283 if test $found = "no" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 16288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16290 fi 16291 16292 CFLAGS="$CFLAGS -Wlogical-op" 16293 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16295 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16296 cacheid=xorg_cv_cc_flag__Wlogical_op 16297 if eval test \${$cacheid+y} 16298 then : 16299 printf %s "(cached) " >&6 16300 else case e in #( 16301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16302 /* end confdefs.h. */ 16303 int i; 16304 int 16305 main (void) 16306 { 16307 16308 ; 16309 return 0; 16310 } 16311 _ACEOF 16312 if ac_fn_c_try_link "$LINENO" 16313 then : 16314 eval $cacheid=yes 16315 else case e in #( 16316 e) eval $cacheid=no ;; 16317 esac 16318 fi 16319 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16320 conftest$ac_exeext conftest.$ac_ext ;; 16321 esac 16322 fi 16323 16324 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326 16327 eval supported=\$$cacheid 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16329 printf "%s\n" "$supported" >&6; } 16330 if test "$supported" = "yes" ; then 16331 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16332 found="yes" 16333 fi 16334 fi 16335 16336 16337 16338 # These are currently disabled because they are noisy. They will be enabled 16339 # in the future once the codebase is sufficiently modernized to silence 16340 # them. For now, I don't want them to drown out the other warnings. 16341 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16342 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16343 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16344 16345 # Turn some warnings into errors, so we don't accidentally get successful builds 16346 # when there are problems that should be fixed. 16347 16348 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 xorg_testset_save_CFLAGS="$CFLAGS" 16363 16364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16368 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16369 then : 16370 printf %s "(cached) " >&6 16371 else case e in #( 16372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373 /* end confdefs.h. */ 16374 int i; 16375 _ACEOF 16376 if ac_fn_c_try_compile "$LINENO" 16377 then : 16378 xorg_cv_cc_flag_unknown_warning_option=yes 16379 else case e in #( 16380 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16381 esac 16382 fi 16383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16384 esac 16385 fi 16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16387 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16389 CFLAGS="$xorg_testset_save_CFLAGS" 16390 fi 16391 16392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16395 fi 16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16398 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16399 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16400 then : 16401 printf %s "(cached) " >&6 16402 else case e in #( 16403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404 /* end confdefs.h. */ 16405 int i; 16406 _ACEOF 16407 if ac_fn_c_try_compile "$LINENO" 16408 then : 16409 xorg_cv_cc_flag_unused_command_line_argument=yes 16410 else case e in #( 16411 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16412 esac 16413 fi 16414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16415 esac 16416 fi 16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16420 CFLAGS="$xorg_testset_save_CFLAGS" 16421 fi 16422 16423 found="no" 16424 16425 if test $found = "no" ; then 16426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16428 fi 16429 16430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16432 fi 16433 16434 CFLAGS="$CFLAGS -Werror=implicit" 16435 16436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16437 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16438 cacheid=xorg_cv_cc_flag__Werror_implicit 16439 if eval test \${$cacheid+y} 16440 then : 16441 printf %s "(cached) " >&6 16442 else case e in #( 16443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16444 /* end confdefs.h. */ 16445 int i; 16446 int 16447 main (void) 16448 { 16449 16450 ; 16451 return 0; 16452 } 16453 _ACEOF 16454 if ac_fn_c_try_link "$LINENO" 16455 then : 16456 eval $cacheid=yes 16457 else case e in #( 16458 e) eval $cacheid=no ;; 16459 esac 16460 fi 16461 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16462 conftest$ac_exeext conftest.$ac_ext ;; 16463 esac 16464 fi 16465 16466 16467 CFLAGS="$xorg_testset_save_CFLAGS" 16468 16469 eval supported=\$$cacheid 16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16471 printf "%s\n" "$supported" >&6; } 16472 if test "$supported" = "yes" ; then 16473 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16474 found="yes" 16475 fi 16476 fi 16477 16478 if test $found = "no" ; then 16479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16481 fi 16482 16483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16485 fi 16486 16487 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16488 16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 16490 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16491 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16492 if eval test \${$cacheid+y} 16493 then : 16494 printf %s "(cached) " >&6 16495 else case e in #( 16496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497 /* end confdefs.h. */ 16498 int i; 16499 int 16500 main (void) 16501 { 16502 16503 ; 16504 return 0; 16505 } 16506 _ACEOF 16507 if ac_fn_c_try_link "$LINENO" 16508 then : 16509 eval $cacheid=yes 16510 else case e in #( 16511 e) eval $cacheid=no ;; 16512 esac 16513 fi 16514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16515 conftest$ac_exeext conftest.$ac_ext ;; 16516 esac 16517 fi 16518 16519 16520 CFLAGS="$xorg_testset_save_CFLAGS" 16521 16522 eval supported=\$$cacheid 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16524 printf "%s\n" "$supported" >&6; } 16525 if test "$supported" = "yes" ; then 16526 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16527 found="yes" 16528 fi 16529 fi 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 xorg_testset_save_CFLAGS="$CFLAGS" 16546 16547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16551 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16552 then : 16553 printf %s "(cached) " >&6 16554 else case e in #( 16555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16556 /* end confdefs.h. */ 16557 int i; 16558 _ACEOF 16559 if ac_fn_c_try_compile "$LINENO" 16560 then : 16561 xorg_cv_cc_flag_unknown_warning_option=yes 16562 else case e in #( 16563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16564 esac 16565 fi 16566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16567 esac 16568 fi 16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573 fi 16574 16575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16578 fi 16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16583 then : 16584 printf %s "(cached) " >&6 16585 else case e in #( 16586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587 /* end confdefs.h. */ 16588 int i; 16589 _ACEOF 16590 if ac_fn_c_try_compile "$LINENO" 16591 then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593 else case e in #( 16594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16595 esac 16596 fi 16597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16598 esac 16599 fi 16600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16601 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16603 CFLAGS="$xorg_testset_save_CFLAGS" 16604 fi 16605 16606 found="no" 16607 16608 if test $found = "no" ; then 16609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16611 fi 16612 16613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16615 fi 16616 16617 CFLAGS="$CFLAGS -Werror=nonnull" 16618 16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16620 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16621 cacheid=xorg_cv_cc_flag__Werror_nonnull 16622 if eval test \${$cacheid+y} 16623 then : 16624 printf %s "(cached) " >&6 16625 else case e in #( 16626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627 /* end confdefs.h. */ 16628 int i; 16629 int 16630 main (void) 16631 { 16632 16633 ; 16634 return 0; 16635 } 16636 _ACEOF 16637 if ac_fn_c_try_link "$LINENO" 16638 then : 16639 eval $cacheid=yes 16640 else case e in #( 16641 e) eval $cacheid=no ;; 16642 esac 16643 fi 16644 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16645 conftest$ac_exeext conftest.$ac_ext ;; 16646 esac 16647 fi 16648 16649 16650 CFLAGS="$xorg_testset_save_CFLAGS" 16651 16652 eval supported=\$$cacheid 16653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16654 printf "%s\n" "$supported" >&6; } 16655 if test "$supported" = "yes" ; then 16656 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16657 found="yes" 16658 fi 16659 fi 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 xorg_testset_save_CFLAGS="$CFLAGS" 16676 16677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16680 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16681 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16682 then : 16683 printf %s "(cached) " >&6 16684 else case e in #( 16685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686 /* end confdefs.h. */ 16687 int i; 16688 _ACEOF 16689 if ac_fn_c_try_compile "$LINENO" 16690 then : 16691 xorg_cv_cc_flag_unknown_warning_option=yes 16692 else case e in #( 16693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16694 esac 16695 fi 16696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16697 esac 16698 fi 16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16700 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16702 CFLAGS="$xorg_testset_save_CFLAGS" 16703 fi 16704 16705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16708 fi 16709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16711 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16712 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16713 then : 16714 printf %s "(cached) " >&6 16715 else case e in #( 16716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16717 /* end confdefs.h. */ 16718 int i; 16719 _ACEOF 16720 if ac_fn_c_try_compile "$LINENO" 16721 then : 16722 xorg_cv_cc_flag_unused_command_line_argument=yes 16723 else case e in #( 16724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16725 esac 16726 fi 16727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16728 esac 16729 fi 16730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16731 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16733 CFLAGS="$xorg_testset_save_CFLAGS" 16734 fi 16735 16736 found="no" 16737 16738 if test $found = "no" ; then 16739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16741 fi 16742 16743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16745 fi 16746 16747 CFLAGS="$CFLAGS -Werror=init-self" 16748 16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16750 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16751 cacheid=xorg_cv_cc_flag__Werror_init_self 16752 if eval test \${$cacheid+y} 16753 then : 16754 printf %s "(cached) " >&6 16755 else case e in #( 16756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757 /* end confdefs.h. */ 16758 int i; 16759 int 16760 main (void) 16761 { 16762 16763 ; 16764 return 0; 16765 } 16766 _ACEOF 16767 if ac_fn_c_try_link "$LINENO" 16768 then : 16769 eval $cacheid=yes 16770 else case e in #( 16771 e) eval $cacheid=no ;; 16772 esac 16773 fi 16774 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16775 conftest$ac_exeext conftest.$ac_ext ;; 16776 esac 16777 fi 16778 16779 16780 CFLAGS="$xorg_testset_save_CFLAGS" 16781 16782 eval supported=\$$cacheid 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16784 printf "%s\n" "$supported" >&6; } 16785 if test "$supported" = "yes" ; then 16786 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16787 found="yes" 16788 fi 16789 fi 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 xorg_testset_save_CFLAGS="$CFLAGS" 16806 16807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16810 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16811 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16812 then : 16813 printf %s "(cached) " >&6 16814 else case e in #( 16815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816 /* end confdefs.h. */ 16817 int i; 16818 _ACEOF 16819 if ac_fn_c_try_compile "$LINENO" 16820 then : 16821 xorg_cv_cc_flag_unknown_warning_option=yes 16822 else case e in #( 16823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16824 esac 16825 fi 16826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16827 esac 16828 fi 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16832 CFLAGS="$xorg_testset_save_CFLAGS" 16833 fi 16834 16835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16838 fi 16839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16843 then : 16844 printf %s "(cached) " >&6 16845 else case e in #( 16846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16847 /* end confdefs.h. */ 16848 int i; 16849 _ACEOF 16850 if ac_fn_c_try_compile "$LINENO" 16851 then : 16852 xorg_cv_cc_flag_unused_command_line_argument=yes 16853 else case e in #( 16854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16855 esac 16856 fi 16857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16858 esac 16859 fi 16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16863 CFLAGS="$xorg_testset_save_CFLAGS" 16864 fi 16865 16866 found="no" 16867 16868 if test $found = "no" ; then 16869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 fi 16872 16873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16875 fi 16876 16877 CFLAGS="$CFLAGS -Werror=main" 16878 16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16880 printf %s "checking if $CC supports -Werror=main... " >&6; } 16881 cacheid=xorg_cv_cc_flag__Werror_main 16882 if eval test \${$cacheid+y} 16883 then : 16884 printf %s "(cached) " >&6 16885 else case e in #( 16886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887 /* end confdefs.h. */ 16888 int i; 16889 int 16890 main (void) 16891 { 16892 16893 ; 16894 return 0; 16895 } 16896 _ACEOF 16897 if ac_fn_c_try_link "$LINENO" 16898 then : 16899 eval $cacheid=yes 16900 else case e in #( 16901 e) eval $cacheid=no ;; 16902 esac 16903 fi 16904 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16905 conftest$ac_exeext conftest.$ac_ext ;; 16906 esac 16907 fi 16908 16909 16910 CFLAGS="$xorg_testset_save_CFLAGS" 16911 16912 eval supported=\$$cacheid 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16914 printf "%s\n" "$supported" >&6; } 16915 if test "$supported" = "yes" ; then 16916 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16917 found="yes" 16918 fi 16919 fi 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 xorg_testset_save_CFLAGS="$CFLAGS" 16936 16937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16941 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16942 then : 16943 printf %s "(cached) " >&6 16944 else case e in #( 16945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16946 /* end confdefs.h. */ 16947 int i; 16948 _ACEOF 16949 if ac_fn_c_try_compile "$LINENO" 16950 then : 16951 xorg_cv_cc_flag_unknown_warning_option=yes 16952 else case e in #( 16953 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16954 esac 16955 fi 16956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16957 esac 16958 fi 16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963 fi 16964 16965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16968 fi 16969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16973 then : 16974 printf %s "(cached) " >&6 16975 else case e in #( 16976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977 /* end confdefs.h. */ 16978 int i; 16979 _ACEOF 16980 if ac_fn_c_try_compile "$LINENO" 16981 then : 16982 xorg_cv_cc_flag_unused_command_line_argument=yes 16983 else case e in #( 16984 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16985 esac 16986 fi 16987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16988 esac 16989 fi 16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994 fi 16995 16996 found="no" 16997 16998 if test $found = "no" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17005 fi 17006 17007 CFLAGS="$CFLAGS -Werror=missing-braces" 17008 17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17010 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17011 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17012 if eval test \${$cacheid+y} 17013 then : 17014 printf %s "(cached) " >&6 17015 else case e in #( 17016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017 /* end confdefs.h. */ 17018 int i; 17019 int 17020 main (void) 17021 { 17022 17023 ; 17024 return 0; 17025 } 17026 _ACEOF 17027 if ac_fn_c_try_link "$LINENO" 17028 then : 17029 eval $cacheid=yes 17030 else case e in #( 17031 e) eval $cacheid=no ;; 17032 esac 17033 fi 17034 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17035 conftest$ac_exeext conftest.$ac_ext ;; 17036 esac 17037 fi 17038 17039 17040 CFLAGS="$xorg_testset_save_CFLAGS" 17041 17042 eval supported=\$$cacheid 17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17044 printf "%s\n" "$supported" >&6; } 17045 if test "$supported" = "yes" ; then 17046 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17047 found="yes" 17048 fi 17049 fi 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 xorg_testset_save_CFLAGS="$CFLAGS" 17066 17067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17070 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17071 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17072 then : 17073 printf %s "(cached) " >&6 17074 else case e in #( 17075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17076 /* end confdefs.h. */ 17077 int i; 17078 _ACEOF 17079 if ac_fn_c_try_compile "$LINENO" 17080 then : 17081 xorg_cv_cc_flag_unknown_warning_option=yes 17082 else case e in #( 17083 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17084 esac 17085 fi 17086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17087 esac 17088 fi 17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17092 CFLAGS="$xorg_testset_save_CFLAGS" 17093 fi 17094 17095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17098 fi 17099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17103 then : 17104 printf %s "(cached) " >&6 17105 else case e in #( 17106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107 /* end confdefs.h. */ 17108 int i; 17109 _ACEOF 17110 if ac_fn_c_try_compile "$LINENO" 17111 then : 17112 xorg_cv_cc_flag_unused_command_line_argument=yes 17113 else case e in #( 17114 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17115 esac 17116 fi 17117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17118 esac 17119 fi 17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17123 CFLAGS="$xorg_testset_save_CFLAGS" 17124 fi 17125 17126 found="no" 17127 17128 if test $found = "no" ; then 17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17131 fi 17132 17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17135 fi 17136 17137 CFLAGS="$CFLAGS -Werror=sequence-point" 17138 17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17140 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17141 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17142 if eval test \${$cacheid+y} 17143 then : 17144 printf %s "(cached) " >&6 17145 else case e in #( 17146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17147 /* end confdefs.h. */ 17148 int i; 17149 int 17150 main (void) 17151 { 17152 17153 ; 17154 return 0; 17155 } 17156 _ACEOF 17157 if ac_fn_c_try_link "$LINENO" 17158 then : 17159 eval $cacheid=yes 17160 else case e in #( 17161 e) eval $cacheid=no ;; 17162 esac 17163 fi 17164 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17165 conftest$ac_exeext conftest.$ac_ext ;; 17166 esac 17167 fi 17168 17169 17170 CFLAGS="$xorg_testset_save_CFLAGS" 17171 17172 eval supported=\$$cacheid 17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17174 printf "%s\n" "$supported" >&6; } 17175 if test "$supported" = "yes" ; then 17176 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17177 found="yes" 17178 fi 17179 fi 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 xorg_testset_save_CFLAGS="$CFLAGS" 17196 17197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17201 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17202 then : 17203 printf %s "(cached) " >&6 17204 else case e in #( 17205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17206 /* end confdefs.h. */ 17207 int i; 17208 _ACEOF 17209 if ac_fn_c_try_compile "$LINENO" 17210 then : 17211 xorg_cv_cc_flag_unknown_warning_option=yes 17212 else case e in #( 17213 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17214 esac 17215 fi 17216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17217 esac 17218 fi 17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17220 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17222 CFLAGS="$xorg_testset_save_CFLAGS" 17223 fi 17224 17225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17228 fi 17229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17231 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17232 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17233 then : 17234 printf %s "(cached) " >&6 17235 else case e in #( 17236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237 /* end confdefs.h. */ 17238 int i; 17239 _ACEOF 17240 if ac_fn_c_try_compile "$LINENO" 17241 then : 17242 xorg_cv_cc_flag_unused_command_line_argument=yes 17243 else case e in #( 17244 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17245 esac 17246 fi 17247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17248 esac 17249 fi 17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17251 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17253 CFLAGS="$xorg_testset_save_CFLAGS" 17254 fi 17255 17256 found="no" 17257 17258 if test $found = "no" ; then 17259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17261 fi 17262 17263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17265 fi 17266 17267 CFLAGS="$CFLAGS -Werror=return-type" 17268 17269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17270 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17271 cacheid=xorg_cv_cc_flag__Werror_return_type 17272 if eval test \${$cacheid+y} 17273 then : 17274 printf %s "(cached) " >&6 17275 else case e in #( 17276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17277 /* end confdefs.h. */ 17278 int i; 17279 int 17280 main (void) 17281 { 17282 17283 ; 17284 return 0; 17285 } 17286 _ACEOF 17287 if ac_fn_c_try_link "$LINENO" 17288 then : 17289 eval $cacheid=yes 17290 else case e in #( 17291 e) eval $cacheid=no ;; 17292 esac 17293 fi 17294 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17295 conftest$ac_exeext conftest.$ac_ext ;; 17296 esac 17297 fi 17298 17299 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301 17302 eval supported=\$$cacheid 17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17304 printf "%s\n" "$supported" >&6; } 17305 if test "$supported" = "yes" ; then 17306 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17307 found="yes" 17308 fi 17309 fi 17310 17311 if test $found = "no" ; then 17312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17314 fi 17315 17316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17318 fi 17319 17320 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17321 17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17323 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17324 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17325 if eval test \${$cacheid+y} 17326 then : 17327 printf %s "(cached) " >&6 17328 else case e in #( 17329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17330 /* end confdefs.h. */ 17331 int i; 17332 int 17333 main (void) 17334 { 17335 17336 ; 17337 return 0; 17338 } 17339 _ACEOF 17340 if ac_fn_c_try_link "$LINENO" 17341 then : 17342 eval $cacheid=yes 17343 else case e in #( 17344 e) eval $cacheid=no ;; 17345 esac 17346 fi 17347 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17348 conftest$ac_exeext conftest.$ac_ext ;; 17349 esac 17350 fi 17351 17352 17353 CFLAGS="$xorg_testset_save_CFLAGS" 17354 17355 eval supported=\$$cacheid 17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17357 printf "%s\n" "$supported" >&6; } 17358 if test "$supported" = "yes" ; then 17359 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17360 found="yes" 17361 fi 17362 fi 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 xorg_testset_save_CFLAGS="$CFLAGS" 17379 17380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17384 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17385 then : 17386 printf %s "(cached) " >&6 17387 else case e in #( 17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17389 /* end confdefs.h. */ 17390 int i; 17391 _ACEOF 17392 if ac_fn_c_try_compile "$LINENO" 17393 then : 17394 xorg_cv_cc_flag_unknown_warning_option=yes 17395 else case e in #( 17396 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17397 esac 17398 fi 17399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17400 esac 17401 fi 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17405 CFLAGS="$xorg_testset_save_CFLAGS" 17406 fi 17407 17408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17411 fi 17412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17416 then : 17417 printf %s "(cached) " >&6 17418 else case e in #( 17419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420 /* end confdefs.h. */ 17421 int i; 17422 _ACEOF 17423 if ac_fn_c_try_compile "$LINENO" 17424 then : 17425 xorg_cv_cc_flag_unused_command_line_argument=yes 17426 else case e in #( 17427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17428 esac 17429 fi 17430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17431 esac 17432 fi 17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17436 CFLAGS="$xorg_testset_save_CFLAGS" 17437 fi 17438 17439 found="no" 17440 17441 if test $found = "no" ; then 17442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17444 fi 17445 17446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17448 fi 17449 17450 CFLAGS="$CFLAGS -Werror=trigraphs" 17451 17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17453 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17454 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17455 if eval test \${$cacheid+y} 17456 then : 17457 printf %s "(cached) " >&6 17458 else case e in #( 17459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17460 /* end confdefs.h. */ 17461 int i; 17462 int 17463 main (void) 17464 { 17465 17466 ; 17467 return 0; 17468 } 17469 _ACEOF 17470 if ac_fn_c_try_link "$LINENO" 17471 then : 17472 eval $cacheid=yes 17473 else case e in #( 17474 e) eval $cacheid=no ;; 17475 esac 17476 fi 17477 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17478 conftest$ac_exeext conftest.$ac_ext ;; 17479 esac 17480 fi 17481 17482 17483 CFLAGS="$xorg_testset_save_CFLAGS" 17484 17485 eval supported=\$$cacheid 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17487 printf "%s\n" "$supported" >&6; } 17488 if test "$supported" = "yes" ; then 17489 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17490 found="yes" 17491 fi 17492 fi 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 xorg_testset_save_CFLAGS="$CFLAGS" 17509 17510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17514 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17515 then : 17516 printf %s "(cached) " >&6 17517 else case e in #( 17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17519 /* end confdefs.h. */ 17520 int i; 17521 _ACEOF 17522 if ac_fn_c_try_compile "$LINENO" 17523 then : 17524 xorg_cv_cc_flag_unknown_warning_option=yes 17525 else case e in #( 17526 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17527 esac 17528 fi 17529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17530 esac 17531 fi 17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17535 CFLAGS="$xorg_testset_save_CFLAGS" 17536 fi 17537 17538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17541 fi 17542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17546 then : 17547 printf %s "(cached) " >&6 17548 else case e in #( 17549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17550 /* end confdefs.h. */ 17551 int i; 17552 _ACEOF 17553 if ac_fn_c_try_compile "$LINENO" 17554 then : 17555 xorg_cv_cc_flag_unused_command_line_argument=yes 17556 else case e in #( 17557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17558 esac 17559 fi 17560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17561 esac 17562 fi 17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17566 CFLAGS="$xorg_testset_save_CFLAGS" 17567 fi 17568 17569 found="no" 17570 17571 if test $found = "no" ; then 17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17574 fi 17575 17576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17578 fi 17579 17580 CFLAGS="$CFLAGS -Werror=array-bounds" 17581 17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17583 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17584 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17585 if eval test \${$cacheid+y} 17586 then : 17587 printf %s "(cached) " >&6 17588 else case e in #( 17589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17590 /* end confdefs.h. */ 17591 int i; 17592 int 17593 main (void) 17594 { 17595 17596 ; 17597 return 0; 17598 } 17599 _ACEOF 17600 if ac_fn_c_try_link "$LINENO" 17601 then : 17602 eval $cacheid=yes 17603 else case e in #( 17604 e) eval $cacheid=no ;; 17605 esac 17606 fi 17607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17608 conftest$ac_exeext conftest.$ac_ext ;; 17609 esac 17610 fi 17611 17612 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 17615 eval supported=\$$cacheid 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17617 printf "%s\n" "$supported" >&6; } 17618 if test "$supported" = "yes" ; then 17619 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17620 found="yes" 17621 fi 17622 fi 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 xorg_testset_save_CFLAGS="$CFLAGS" 17639 17640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17644 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17645 then : 17646 printf %s "(cached) " >&6 17647 else case e in #( 17648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17649 /* end confdefs.h. */ 17650 int i; 17651 _ACEOF 17652 if ac_fn_c_try_compile "$LINENO" 17653 then : 17654 xorg_cv_cc_flag_unknown_warning_option=yes 17655 else case e in #( 17656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17657 esac 17658 fi 17659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17660 esac 17661 fi 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17665 CFLAGS="$xorg_testset_save_CFLAGS" 17666 fi 17667 17668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17671 fi 17672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17676 then : 17677 printf %s "(cached) " >&6 17678 else case e in #( 17679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17680 /* end confdefs.h. */ 17681 int i; 17682 _ACEOF 17683 if ac_fn_c_try_compile "$LINENO" 17684 then : 17685 xorg_cv_cc_flag_unused_command_line_argument=yes 17686 else case e in #( 17687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17688 esac 17689 fi 17690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17691 esac 17692 fi 17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17696 CFLAGS="$xorg_testset_save_CFLAGS" 17697 fi 17698 17699 found="no" 17700 17701 if test $found = "no" ; then 17702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17704 fi 17705 17706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17708 fi 17709 17710 CFLAGS="$CFLAGS -Werror=write-strings" 17711 17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17713 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17714 cacheid=xorg_cv_cc_flag__Werror_write_strings 17715 if eval test \${$cacheid+y} 17716 then : 17717 printf %s "(cached) " >&6 17718 else case e in #( 17719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17720 /* end confdefs.h. */ 17721 int i; 17722 int 17723 main (void) 17724 { 17725 17726 ; 17727 return 0; 17728 } 17729 _ACEOF 17730 if ac_fn_c_try_link "$LINENO" 17731 then : 17732 eval $cacheid=yes 17733 else case e in #( 17734 e) eval $cacheid=no ;; 17735 esac 17736 fi 17737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17738 conftest$ac_exeext conftest.$ac_ext ;; 17739 esac 17740 fi 17741 17742 17743 CFLAGS="$xorg_testset_save_CFLAGS" 17744 17745 eval supported=\$$cacheid 17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17747 printf "%s\n" "$supported" >&6; } 17748 if test "$supported" = "yes" ; then 17749 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17750 found="yes" 17751 fi 17752 fi 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 xorg_testset_save_CFLAGS="$CFLAGS" 17769 17770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17773 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17774 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17775 then : 17776 printf %s "(cached) " >&6 17777 else case e in #( 17778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779 /* end confdefs.h. */ 17780 int i; 17781 _ACEOF 17782 if ac_fn_c_try_compile "$LINENO" 17783 then : 17784 xorg_cv_cc_flag_unknown_warning_option=yes 17785 else case e in #( 17786 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17787 esac 17788 fi 17789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17790 esac 17791 fi 17792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17793 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17795 CFLAGS="$xorg_testset_save_CFLAGS" 17796 fi 17797 17798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17801 fi 17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17804 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17805 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17806 then : 17807 printf %s "(cached) " >&6 17808 else case e in #( 17809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17810 /* end confdefs.h. */ 17811 int i; 17812 _ACEOF 17813 if ac_fn_c_try_compile "$LINENO" 17814 then : 17815 xorg_cv_cc_flag_unused_command_line_argument=yes 17816 else case e in #( 17817 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17818 esac 17819 fi 17820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17821 esac 17822 fi 17823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17826 CFLAGS="$xorg_testset_save_CFLAGS" 17827 fi 17828 17829 found="no" 17830 17831 if test $found = "no" ; then 17832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17834 fi 17835 17836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17838 fi 17839 17840 CFLAGS="$CFLAGS -Werror=address" 17841 17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17843 printf %s "checking if $CC supports -Werror=address... " >&6; } 17844 cacheid=xorg_cv_cc_flag__Werror_address 17845 if eval test \${$cacheid+y} 17846 then : 17847 printf %s "(cached) " >&6 17848 else case e in #( 17849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17850 /* end confdefs.h. */ 17851 int i; 17852 int 17853 main (void) 17854 { 17855 17856 ; 17857 return 0; 17858 } 17859 _ACEOF 17860 if ac_fn_c_try_link "$LINENO" 17861 then : 17862 eval $cacheid=yes 17863 else case e in #( 17864 e) eval $cacheid=no ;; 17865 esac 17866 fi 17867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17868 conftest$ac_exeext conftest.$ac_ext ;; 17869 esac 17870 fi 17871 17872 17873 CFLAGS="$xorg_testset_save_CFLAGS" 17874 17875 eval supported=\$$cacheid 17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17877 printf "%s\n" "$supported" >&6; } 17878 if test "$supported" = "yes" ; then 17879 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17880 found="yes" 17881 fi 17882 fi 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 xorg_testset_save_CFLAGS="$CFLAGS" 17899 17900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17904 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17905 then : 17906 printf %s "(cached) " >&6 17907 else case e in #( 17908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17909 /* end confdefs.h. */ 17910 int i; 17911 _ACEOF 17912 if ac_fn_c_try_compile "$LINENO" 17913 then : 17914 xorg_cv_cc_flag_unknown_warning_option=yes 17915 else case e in #( 17916 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17917 esac 17918 fi 17919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17920 esac 17921 fi 17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17923 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17925 CFLAGS="$xorg_testset_save_CFLAGS" 17926 fi 17927 17928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17931 fi 17932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17934 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17935 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17936 then : 17937 printf %s "(cached) " >&6 17938 else case e in #( 17939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17940 /* end confdefs.h. */ 17941 int i; 17942 _ACEOF 17943 if ac_fn_c_try_compile "$LINENO" 17944 then : 17945 xorg_cv_cc_flag_unused_command_line_argument=yes 17946 else case e in #( 17947 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17948 esac 17949 fi 17950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17951 esac 17952 fi 17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17954 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17956 CFLAGS="$xorg_testset_save_CFLAGS" 17957 fi 17958 17959 found="no" 17960 17961 if test $found = "no" ; then 17962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 fi 17965 17966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17968 fi 17969 17970 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17971 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17973 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17974 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17975 if eval test \${$cacheid+y} 17976 then : 17977 printf %s "(cached) " >&6 17978 else case e in #( 17979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17980 /* end confdefs.h. */ 17981 int i; 17982 int 17983 main (void) 17984 { 17985 17986 ; 17987 return 0; 17988 } 17989 _ACEOF 17990 if ac_fn_c_try_link "$LINENO" 17991 then : 17992 eval $cacheid=yes 17993 else case e in #( 17994 e) eval $cacheid=no ;; 17995 esac 17996 fi 17997 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17998 conftest$ac_exeext conftest.$ac_ext ;; 17999 esac 18000 fi 18001 18002 18003 CFLAGS="$xorg_testset_save_CFLAGS" 18004 18005 eval supported=\$$cacheid 18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18007 printf "%s\n" "$supported" >&6; } 18008 if test "$supported" = "yes" ; then 18009 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18010 found="yes" 18011 fi 18012 fi 18013 18014 if test $found = "no" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 18019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18021 fi 18022 18023 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18024 18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18026 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18027 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18028 if eval test \${$cacheid+y} 18029 then : 18030 printf %s "(cached) " >&6 18031 else case e in #( 18032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18033 /* end confdefs.h. */ 18034 int i; 18035 int 18036 main (void) 18037 { 18038 18039 ; 18040 return 0; 18041 } 18042 _ACEOF 18043 if ac_fn_c_try_link "$LINENO" 18044 then : 18045 eval $cacheid=yes 18046 else case e in #( 18047 e) eval $cacheid=no ;; 18048 esac 18049 fi 18050 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18051 conftest$ac_exeext conftest.$ac_ext ;; 18052 esac 18053 fi 18054 18055 18056 CFLAGS="$xorg_testset_save_CFLAGS" 18057 18058 eval supported=\$$cacheid 18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18060 printf "%s\n" "$supported" >&6; } 18061 if test "$supported" = "yes" ; then 18062 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18063 found="yes" 18064 fi 18065 fi 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 xorg_testset_save_CFLAGS="$CFLAGS" 18082 18083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18087 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18088 then : 18089 printf %s "(cached) " >&6 18090 else case e in #( 18091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18092 /* end confdefs.h. */ 18093 int i; 18094 _ACEOF 18095 if ac_fn_c_try_compile "$LINENO" 18096 then : 18097 xorg_cv_cc_flag_unknown_warning_option=yes 18098 else case e in #( 18099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18100 esac 18101 fi 18102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18103 esac 18104 fi 18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18108 CFLAGS="$xorg_testset_save_CFLAGS" 18109 fi 18110 18111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18114 fi 18115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18119 then : 18120 printf %s "(cached) " >&6 18121 else case e in #( 18122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18123 /* end confdefs.h. */ 18124 int i; 18125 _ACEOF 18126 if ac_fn_c_try_compile "$LINENO" 18127 then : 18128 xorg_cv_cc_flag_unused_command_line_argument=yes 18129 else case e in #( 18130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18131 esac 18132 fi 18133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18134 esac 18135 fi 18136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18139 CFLAGS="$xorg_testset_save_CFLAGS" 18140 fi 18141 18142 found="no" 18143 18144 if test $found = "no" ; then 18145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18147 fi 18148 18149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18151 fi 18152 18153 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18154 18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18156 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18157 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18158 if eval test \${$cacheid+y} 18159 then : 18160 printf %s "(cached) " >&6 18161 else case e in #( 18162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18163 /* end confdefs.h. */ 18164 int i; 18165 int 18166 main (void) 18167 { 18168 18169 ; 18170 return 0; 18171 } 18172 _ACEOF 18173 if ac_fn_c_try_link "$LINENO" 18174 then : 18175 eval $cacheid=yes 18176 else case e in #( 18177 e) eval $cacheid=no ;; 18178 esac 18179 fi 18180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18181 conftest$ac_exeext conftest.$ac_ext ;; 18182 esac 18183 fi 18184 18185 18186 CFLAGS="$xorg_testset_save_CFLAGS" 18187 18188 eval supported=\$$cacheid 18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18190 printf "%s\n" "$supported" >&6; } 18191 if test "$supported" = "yes" ; then 18192 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18193 found="yes" 18194 fi 18195 fi 18196 18197 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18198 else 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 18200 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 xorg_testset_save_CFLAGS="$CFLAGS" 18215 18216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18220 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18221 then : 18222 printf %s "(cached) " >&6 18223 else case e in #( 18224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18225 /* end confdefs.h. */ 18226 int i; 18227 _ACEOF 18228 if ac_fn_c_try_compile "$LINENO" 18229 then : 18230 xorg_cv_cc_flag_unknown_warning_option=yes 18231 else case e in #( 18232 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18233 esac 18234 fi 18235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18236 esac 18237 fi 18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18241 CFLAGS="$xorg_testset_save_CFLAGS" 18242 fi 18243 18244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18247 fi 18248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18252 then : 18253 printf %s "(cached) " >&6 18254 else case e in #( 18255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18256 /* end confdefs.h. */ 18257 int i; 18258 _ACEOF 18259 if ac_fn_c_try_compile "$LINENO" 18260 then : 18261 xorg_cv_cc_flag_unused_command_line_argument=yes 18262 else case e in #( 18263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18264 esac 18265 fi 18266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18267 esac 18268 fi 18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18272 CFLAGS="$xorg_testset_save_CFLAGS" 18273 fi 18274 18275 found="no" 18276 18277 if test $found = "no" ; then 18278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18280 fi 18281 18282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18284 fi 18285 18286 CFLAGS="$CFLAGS -Wimplicit" 18287 18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18289 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18290 cacheid=xorg_cv_cc_flag__Wimplicit 18291 if eval test \${$cacheid+y} 18292 then : 18293 printf %s "(cached) " >&6 18294 else case e in #( 18295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18296 /* end confdefs.h. */ 18297 int i; 18298 int 18299 main (void) 18300 { 18301 18302 ; 18303 return 0; 18304 } 18305 _ACEOF 18306 if ac_fn_c_try_link "$LINENO" 18307 then : 18308 eval $cacheid=yes 18309 else case e in #( 18310 e) eval $cacheid=no ;; 18311 esac 18312 fi 18313 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18314 conftest$ac_exeext conftest.$ac_ext ;; 18315 esac 18316 fi 18317 18318 18319 CFLAGS="$xorg_testset_save_CFLAGS" 18320 18321 eval supported=\$$cacheid 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18323 printf "%s\n" "$supported" >&6; } 18324 if test "$supported" = "yes" ; then 18325 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18326 found="yes" 18327 fi 18328 fi 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 xorg_testset_save_CFLAGS="$CFLAGS" 18345 18346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18350 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18351 then : 18352 printf %s "(cached) " >&6 18353 else case e in #( 18354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18355 /* end confdefs.h. */ 18356 int i; 18357 _ACEOF 18358 if ac_fn_c_try_compile "$LINENO" 18359 then : 18360 xorg_cv_cc_flag_unknown_warning_option=yes 18361 else case e in #( 18362 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18363 esac 18364 fi 18365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18366 esac 18367 fi 18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18371 CFLAGS="$xorg_testset_save_CFLAGS" 18372 fi 18373 18374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18377 fi 18378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18382 then : 18383 printf %s "(cached) " >&6 18384 else case e in #( 18385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18386 /* end confdefs.h. */ 18387 int i; 18388 _ACEOF 18389 if ac_fn_c_try_compile "$LINENO" 18390 then : 18391 xorg_cv_cc_flag_unused_command_line_argument=yes 18392 else case e in #( 18393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18394 esac 18395 fi 18396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18397 esac 18398 fi 18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18402 CFLAGS="$xorg_testset_save_CFLAGS" 18403 fi 18404 18405 found="no" 18406 18407 if test $found = "no" ; then 18408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18410 fi 18411 18412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18414 fi 18415 18416 CFLAGS="$CFLAGS -Wnonnull" 18417 18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18419 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18420 cacheid=xorg_cv_cc_flag__Wnonnull 18421 if eval test \${$cacheid+y} 18422 then : 18423 printf %s "(cached) " >&6 18424 else case e in #( 18425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18426 /* end confdefs.h. */ 18427 int i; 18428 int 18429 main (void) 18430 { 18431 18432 ; 18433 return 0; 18434 } 18435 _ACEOF 18436 if ac_fn_c_try_link "$LINENO" 18437 then : 18438 eval $cacheid=yes 18439 else case e in #( 18440 e) eval $cacheid=no ;; 18441 esac 18442 fi 18443 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18444 conftest$ac_exeext conftest.$ac_ext ;; 18445 esac 18446 fi 18447 18448 18449 CFLAGS="$xorg_testset_save_CFLAGS" 18450 18451 eval supported=\$$cacheid 18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18453 printf "%s\n" "$supported" >&6; } 18454 if test "$supported" = "yes" ; then 18455 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18456 found="yes" 18457 fi 18458 fi 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 xorg_testset_save_CFLAGS="$CFLAGS" 18475 18476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18480 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18481 then : 18482 printf %s "(cached) " >&6 18483 else case e in #( 18484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18485 /* end confdefs.h. */ 18486 int i; 18487 _ACEOF 18488 if ac_fn_c_try_compile "$LINENO" 18489 then : 18490 xorg_cv_cc_flag_unknown_warning_option=yes 18491 else case e in #( 18492 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18493 esac 18494 fi 18495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18496 esac 18497 fi 18498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18499 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18501 CFLAGS="$xorg_testset_save_CFLAGS" 18502 fi 18503 18504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18507 fi 18508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18512 then : 18513 printf %s "(cached) " >&6 18514 else case e in #( 18515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516 /* end confdefs.h. */ 18517 int i; 18518 _ACEOF 18519 if ac_fn_c_try_compile "$LINENO" 18520 then : 18521 xorg_cv_cc_flag_unused_command_line_argument=yes 18522 else case e in #( 18523 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18524 esac 18525 fi 18526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18527 esac 18528 fi 18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18532 CFLAGS="$xorg_testset_save_CFLAGS" 18533 fi 18534 18535 found="no" 18536 18537 if test $found = "no" ; then 18538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18540 fi 18541 18542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18544 fi 18545 18546 CFLAGS="$CFLAGS -Winit-self" 18547 18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18549 printf %s "checking if $CC supports -Winit-self... " >&6; } 18550 cacheid=xorg_cv_cc_flag__Winit_self 18551 if eval test \${$cacheid+y} 18552 then : 18553 printf %s "(cached) " >&6 18554 else case e in #( 18555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556 /* end confdefs.h. */ 18557 int i; 18558 int 18559 main (void) 18560 { 18561 18562 ; 18563 return 0; 18564 } 18565 _ACEOF 18566 if ac_fn_c_try_link "$LINENO" 18567 then : 18568 eval $cacheid=yes 18569 else case e in #( 18570 e) eval $cacheid=no ;; 18571 esac 18572 fi 18573 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18574 conftest$ac_exeext conftest.$ac_ext ;; 18575 esac 18576 fi 18577 18578 18579 CFLAGS="$xorg_testset_save_CFLAGS" 18580 18581 eval supported=\$$cacheid 18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18583 printf "%s\n" "$supported" >&6; } 18584 if test "$supported" = "yes" ; then 18585 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18586 found="yes" 18587 fi 18588 fi 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 xorg_testset_save_CFLAGS="$CFLAGS" 18605 18606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18610 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18611 then : 18612 printf %s "(cached) " >&6 18613 else case e in #( 18614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18615 /* end confdefs.h. */ 18616 int i; 18617 _ACEOF 18618 if ac_fn_c_try_compile "$LINENO" 18619 then : 18620 xorg_cv_cc_flag_unknown_warning_option=yes 18621 else case e in #( 18622 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18623 esac 18624 fi 18625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18626 esac 18627 fi 18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18631 CFLAGS="$xorg_testset_save_CFLAGS" 18632 fi 18633 18634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18637 fi 18638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18642 then : 18643 printf %s "(cached) " >&6 18644 else case e in #( 18645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646 /* end confdefs.h. */ 18647 int i; 18648 _ACEOF 18649 if ac_fn_c_try_compile "$LINENO" 18650 then : 18651 xorg_cv_cc_flag_unused_command_line_argument=yes 18652 else case e in #( 18653 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18654 esac 18655 fi 18656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18657 esac 18658 fi 18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18662 CFLAGS="$xorg_testset_save_CFLAGS" 18663 fi 18664 18665 found="no" 18666 18667 if test $found = "no" ; then 18668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18670 fi 18671 18672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18674 fi 18675 18676 CFLAGS="$CFLAGS -Wmain" 18677 18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18679 printf %s "checking if $CC supports -Wmain... " >&6; } 18680 cacheid=xorg_cv_cc_flag__Wmain 18681 if eval test \${$cacheid+y} 18682 then : 18683 printf %s "(cached) " >&6 18684 else case e in #( 18685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686 /* end confdefs.h. */ 18687 int i; 18688 int 18689 main (void) 18690 { 18691 18692 ; 18693 return 0; 18694 } 18695 _ACEOF 18696 if ac_fn_c_try_link "$LINENO" 18697 then : 18698 eval $cacheid=yes 18699 else case e in #( 18700 e) eval $cacheid=no ;; 18701 esac 18702 fi 18703 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18704 conftest$ac_exeext conftest.$ac_ext ;; 18705 esac 18706 fi 18707 18708 18709 CFLAGS="$xorg_testset_save_CFLAGS" 18710 18711 eval supported=\$$cacheid 18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18713 printf "%s\n" "$supported" >&6; } 18714 if test "$supported" = "yes" ; then 18715 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18716 found="yes" 18717 fi 18718 fi 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 xorg_testset_save_CFLAGS="$CFLAGS" 18735 18736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18740 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18741 then : 18742 printf %s "(cached) " >&6 18743 else case e in #( 18744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18745 /* end confdefs.h. */ 18746 int i; 18747 _ACEOF 18748 if ac_fn_c_try_compile "$LINENO" 18749 then : 18750 xorg_cv_cc_flag_unknown_warning_option=yes 18751 else case e in #( 18752 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18753 esac 18754 fi 18755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18756 esac 18757 fi 18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18759 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18761 CFLAGS="$xorg_testset_save_CFLAGS" 18762 fi 18763 18764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18767 fi 18768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18772 then : 18773 printf %s "(cached) " >&6 18774 else case e in #( 18775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18776 /* end confdefs.h. */ 18777 int i; 18778 _ACEOF 18779 if ac_fn_c_try_compile "$LINENO" 18780 then : 18781 xorg_cv_cc_flag_unused_command_line_argument=yes 18782 else case e in #( 18783 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18784 esac 18785 fi 18786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18787 esac 18788 fi 18789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18792 CFLAGS="$xorg_testset_save_CFLAGS" 18793 fi 18794 18795 found="no" 18796 18797 if test $found = "no" ; then 18798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18800 fi 18801 18802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18804 fi 18805 18806 CFLAGS="$CFLAGS -Wmissing-braces" 18807 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18809 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18810 cacheid=xorg_cv_cc_flag__Wmissing_braces 18811 if eval test \${$cacheid+y} 18812 then : 18813 printf %s "(cached) " >&6 18814 else case e in #( 18815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816 /* end confdefs.h. */ 18817 int i; 18818 int 18819 main (void) 18820 { 18821 18822 ; 18823 return 0; 18824 } 18825 _ACEOF 18826 if ac_fn_c_try_link "$LINENO" 18827 then : 18828 eval $cacheid=yes 18829 else case e in #( 18830 e) eval $cacheid=no ;; 18831 esac 18832 fi 18833 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18834 conftest$ac_exeext conftest.$ac_ext ;; 18835 esac 18836 fi 18837 18838 18839 CFLAGS="$xorg_testset_save_CFLAGS" 18840 18841 eval supported=\$$cacheid 18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18843 printf "%s\n" "$supported" >&6; } 18844 if test "$supported" = "yes" ; then 18845 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18846 found="yes" 18847 fi 18848 fi 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 xorg_testset_save_CFLAGS="$CFLAGS" 18865 18866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18870 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18871 then : 18872 printf %s "(cached) " >&6 18873 else case e in #( 18874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18875 /* end confdefs.h. */ 18876 int i; 18877 _ACEOF 18878 if ac_fn_c_try_compile "$LINENO" 18879 then : 18880 xorg_cv_cc_flag_unknown_warning_option=yes 18881 else case e in #( 18882 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18883 esac 18884 fi 18885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18886 esac 18887 fi 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18891 CFLAGS="$xorg_testset_save_CFLAGS" 18892 fi 18893 18894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18897 fi 18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18902 then : 18903 printf %s "(cached) " >&6 18904 else case e in #( 18905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18906 /* end confdefs.h. */ 18907 int i; 18908 _ACEOF 18909 if ac_fn_c_try_compile "$LINENO" 18910 then : 18911 xorg_cv_cc_flag_unused_command_line_argument=yes 18912 else case e in #( 18913 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18914 esac 18915 fi 18916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18917 esac 18918 fi 18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18920 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18922 CFLAGS="$xorg_testset_save_CFLAGS" 18923 fi 18924 18925 found="no" 18926 18927 if test $found = "no" ; then 18928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18930 fi 18931 18932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18934 fi 18935 18936 CFLAGS="$CFLAGS -Wsequence-point" 18937 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18939 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18940 cacheid=xorg_cv_cc_flag__Wsequence_point 18941 if eval test \${$cacheid+y} 18942 then : 18943 printf %s "(cached) " >&6 18944 else case e in #( 18945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18946 /* end confdefs.h. */ 18947 int i; 18948 int 18949 main (void) 18950 { 18951 18952 ; 18953 return 0; 18954 } 18955 _ACEOF 18956 if ac_fn_c_try_link "$LINENO" 18957 then : 18958 eval $cacheid=yes 18959 else case e in #( 18960 e) eval $cacheid=no ;; 18961 esac 18962 fi 18963 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18964 conftest$ac_exeext conftest.$ac_ext ;; 18965 esac 18966 fi 18967 18968 18969 CFLAGS="$xorg_testset_save_CFLAGS" 18970 18971 eval supported=\$$cacheid 18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18973 printf "%s\n" "$supported" >&6; } 18974 if test "$supported" = "yes" ; then 18975 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18976 found="yes" 18977 fi 18978 fi 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 xorg_testset_save_CFLAGS="$CFLAGS" 18995 18996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19000 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19001 then : 19002 printf %s "(cached) " >&6 19003 else case e in #( 19004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19005 /* end confdefs.h. */ 19006 int i; 19007 _ACEOF 19008 if ac_fn_c_try_compile "$LINENO" 19009 then : 19010 xorg_cv_cc_flag_unknown_warning_option=yes 19011 else case e in #( 19012 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19013 esac 19014 fi 19015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19016 esac 19017 fi 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19019 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19021 CFLAGS="$xorg_testset_save_CFLAGS" 19022 fi 19023 19024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19027 fi 19028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19032 then : 19033 printf %s "(cached) " >&6 19034 else case e in #( 19035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19036 /* end confdefs.h. */ 19037 int i; 19038 _ACEOF 19039 if ac_fn_c_try_compile "$LINENO" 19040 then : 19041 xorg_cv_cc_flag_unused_command_line_argument=yes 19042 else case e in #( 19043 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19044 esac 19045 fi 19046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19047 esac 19048 fi 19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19052 CFLAGS="$xorg_testset_save_CFLAGS" 19053 fi 19054 19055 found="no" 19056 19057 if test $found = "no" ; then 19058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19060 fi 19061 19062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19064 fi 19065 19066 CFLAGS="$CFLAGS -Wreturn-type" 19067 19068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19069 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19070 cacheid=xorg_cv_cc_flag__Wreturn_type 19071 if eval test \${$cacheid+y} 19072 then : 19073 printf %s "(cached) " >&6 19074 else case e in #( 19075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19076 /* end confdefs.h. */ 19077 int i; 19078 int 19079 main (void) 19080 { 19081 19082 ; 19083 return 0; 19084 } 19085 _ACEOF 19086 if ac_fn_c_try_link "$LINENO" 19087 then : 19088 eval $cacheid=yes 19089 else case e in #( 19090 e) eval $cacheid=no ;; 19091 esac 19092 fi 19093 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19094 conftest$ac_exeext conftest.$ac_ext ;; 19095 esac 19096 fi 19097 19098 19099 CFLAGS="$xorg_testset_save_CFLAGS" 19100 19101 eval supported=\$$cacheid 19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19103 printf "%s\n" "$supported" >&6; } 19104 if test "$supported" = "yes" ; then 19105 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19106 found="yes" 19107 fi 19108 fi 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 xorg_testset_save_CFLAGS="$CFLAGS" 19125 19126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19129 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19130 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19131 then : 19132 printf %s "(cached) " >&6 19133 else case e in #( 19134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19135 /* end confdefs.h. */ 19136 int i; 19137 _ACEOF 19138 if ac_fn_c_try_compile "$LINENO" 19139 then : 19140 xorg_cv_cc_flag_unknown_warning_option=yes 19141 else case e in #( 19142 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19143 esac 19144 fi 19145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19146 esac 19147 fi 19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19149 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19151 CFLAGS="$xorg_testset_save_CFLAGS" 19152 fi 19153 19154 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19157 fi 19158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19160 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19161 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19162 then : 19163 printf %s "(cached) " >&6 19164 else case e in #( 19165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19166 /* end confdefs.h. */ 19167 int i; 19168 _ACEOF 19169 if ac_fn_c_try_compile "$LINENO" 19170 then : 19171 xorg_cv_cc_flag_unused_command_line_argument=yes 19172 else case e in #( 19173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19174 esac 19175 fi 19176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19177 esac 19178 fi 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19182 CFLAGS="$xorg_testset_save_CFLAGS" 19183 fi 19184 19185 found="no" 19186 19187 if test $found = "no" ; then 19188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19190 fi 19191 19192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19194 fi 19195 19196 CFLAGS="$CFLAGS -Wtrigraphs" 19197 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19199 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19200 cacheid=xorg_cv_cc_flag__Wtrigraphs 19201 if eval test \${$cacheid+y} 19202 then : 19203 printf %s "(cached) " >&6 19204 else case e in #( 19205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19206 /* end confdefs.h. */ 19207 int i; 19208 int 19209 main (void) 19210 { 19211 19212 ; 19213 return 0; 19214 } 19215 _ACEOF 19216 if ac_fn_c_try_link "$LINENO" 19217 then : 19218 eval $cacheid=yes 19219 else case e in #( 19220 e) eval $cacheid=no ;; 19221 esac 19222 fi 19223 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19224 conftest$ac_exeext conftest.$ac_ext ;; 19225 esac 19226 fi 19227 19228 19229 CFLAGS="$xorg_testset_save_CFLAGS" 19230 19231 eval supported=\$$cacheid 19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19233 printf "%s\n" "$supported" >&6; } 19234 if test "$supported" = "yes" ; then 19235 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19236 found="yes" 19237 fi 19238 fi 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 xorg_testset_save_CFLAGS="$CFLAGS" 19255 19256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19260 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19261 then : 19262 printf %s "(cached) " >&6 19263 else case e in #( 19264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19265 /* end confdefs.h. */ 19266 int i; 19267 _ACEOF 19268 if ac_fn_c_try_compile "$LINENO" 19269 then : 19270 xorg_cv_cc_flag_unknown_warning_option=yes 19271 else case e in #( 19272 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19273 esac 19274 fi 19275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19276 esac 19277 fi 19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19281 CFLAGS="$xorg_testset_save_CFLAGS" 19282 fi 19283 19284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19287 fi 19288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19292 then : 19293 printf %s "(cached) " >&6 19294 else case e in #( 19295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19296 /* end confdefs.h. */ 19297 int i; 19298 _ACEOF 19299 if ac_fn_c_try_compile "$LINENO" 19300 then : 19301 xorg_cv_cc_flag_unused_command_line_argument=yes 19302 else case e in #( 19303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19304 esac 19305 fi 19306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19307 esac 19308 fi 19309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19312 CFLAGS="$xorg_testset_save_CFLAGS" 19313 fi 19314 19315 found="no" 19316 19317 if test $found = "no" ; then 19318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19320 fi 19321 19322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19324 fi 19325 19326 CFLAGS="$CFLAGS -Warray-bounds" 19327 19328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19329 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19330 cacheid=xorg_cv_cc_flag__Warray_bounds 19331 if eval test \${$cacheid+y} 19332 then : 19333 printf %s "(cached) " >&6 19334 else case e in #( 19335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19336 /* end confdefs.h. */ 19337 int i; 19338 int 19339 main (void) 19340 { 19341 19342 ; 19343 return 0; 19344 } 19345 _ACEOF 19346 if ac_fn_c_try_link "$LINENO" 19347 then : 19348 eval $cacheid=yes 19349 else case e in #( 19350 e) eval $cacheid=no ;; 19351 esac 19352 fi 19353 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19354 conftest$ac_exeext conftest.$ac_ext ;; 19355 esac 19356 fi 19357 19358 19359 CFLAGS="$xorg_testset_save_CFLAGS" 19360 19361 eval supported=\$$cacheid 19362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19363 printf "%s\n" "$supported" >&6; } 19364 if test "$supported" = "yes" ; then 19365 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19366 found="yes" 19367 fi 19368 fi 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 xorg_testset_save_CFLAGS="$CFLAGS" 19385 19386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19390 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19391 then : 19392 printf %s "(cached) " >&6 19393 else case e in #( 19394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395 /* end confdefs.h. */ 19396 int i; 19397 _ACEOF 19398 if ac_fn_c_try_compile "$LINENO" 19399 then : 19400 xorg_cv_cc_flag_unknown_warning_option=yes 19401 else case e in #( 19402 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19403 esac 19404 fi 19405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19406 esac 19407 fi 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19411 CFLAGS="$xorg_testset_save_CFLAGS" 19412 fi 19413 19414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19417 fi 19418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19422 then : 19423 printf %s "(cached) " >&6 19424 else case e in #( 19425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19426 /* end confdefs.h. */ 19427 int i; 19428 _ACEOF 19429 if ac_fn_c_try_compile "$LINENO" 19430 then : 19431 xorg_cv_cc_flag_unused_command_line_argument=yes 19432 else case e in #( 19433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19434 esac 19435 fi 19436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19437 esac 19438 fi 19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19440 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19442 CFLAGS="$xorg_testset_save_CFLAGS" 19443 fi 19444 19445 found="no" 19446 19447 if test $found = "no" ; then 19448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19450 fi 19451 19452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19454 fi 19455 19456 CFLAGS="$CFLAGS -Wwrite-strings" 19457 19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19459 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19460 cacheid=xorg_cv_cc_flag__Wwrite_strings 19461 if eval test \${$cacheid+y} 19462 then : 19463 printf %s "(cached) " >&6 19464 else case e in #( 19465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19466 /* end confdefs.h. */ 19467 int i; 19468 int 19469 main (void) 19470 { 19471 19472 ; 19473 return 0; 19474 } 19475 _ACEOF 19476 if ac_fn_c_try_link "$LINENO" 19477 then : 19478 eval $cacheid=yes 19479 else case e in #( 19480 e) eval $cacheid=no ;; 19481 esac 19482 fi 19483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19484 conftest$ac_exeext conftest.$ac_ext ;; 19485 esac 19486 fi 19487 19488 19489 CFLAGS="$xorg_testset_save_CFLAGS" 19490 19491 eval supported=\$$cacheid 19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19493 printf "%s\n" "$supported" >&6; } 19494 if test "$supported" = "yes" ; then 19495 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19496 found="yes" 19497 fi 19498 fi 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 xorg_testset_save_CFLAGS="$CFLAGS" 19515 19516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19520 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19521 then : 19522 printf %s "(cached) " >&6 19523 else case e in #( 19524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19525 /* end confdefs.h. */ 19526 int i; 19527 _ACEOF 19528 if ac_fn_c_try_compile "$LINENO" 19529 then : 19530 xorg_cv_cc_flag_unknown_warning_option=yes 19531 else case e in #( 19532 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19533 esac 19534 fi 19535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19536 esac 19537 fi 19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19539 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19541 CFLAGS="$xorg_testset_save_CFLAGS" 19542 fi 19543 19544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19547 fi 19548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19552 then : 19553 printf %s "(cached) " >&6 19554 else case e in #( 19555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19556 /* end confdefs.h. */ 19557 int i; 19558 _ACEOF 19559 if ac_fn_c_try_compile "$LINENO" 19560 then : 19561 xorg_cv_cc_flag_unused_command_line_argument=yes 19562 else case e in #( 19563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19564 esac 19565 fi 19566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19567 esac 19568 fi 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19572 CFLAGS="$xorg_testset_save_CFLAGS" 19573 fi 19574 19575 found="no" 19576 19577 if test $found = "no" ; then 19578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19580 fi 19581 19582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19584 fi 19585 19586 CFLAGS="$CFLAGS -Waddress" 19587 19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19589 printf %s "checking if $CC supports -Waddress... " >&6; } 19590 cacheid=xorg_cv_cc_flag__Waddress 19591 if eval test \${$cacheid+y} 19592 then : 19593 printf %s "(cached) " >&6 19594 else case e in #( 19595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19596 /* end confdefs.h. */ 19597 int i; 19598 int 19599 main (void) 19600 { 19601 19602 ; 19603 return 0; 19604 } 19605 _ACEOF 19606 if ac_fn_c_try_link "$LINENO" 19607 then : 19608 eval $cacheid=yes 19609 else case e in #( 19610 e) eval $cacheid=no ;; 19611 esac 19612 fi 19613 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19614 conftest$ac_exeext conftest.$ac_ext ;; 19615 esac 19616 fi 19617 19618 19619 CFLAGS="$xorg_testset_save_CFLAGS" 19620 19621 eval supported=\$$cacheid 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19623 printf "%s\n" "$supported" >&6; } 19624 if test "$supported" = "yes" ; then 19625 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19626 found="yes" 19627 fi 19628 fi 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 xorg_testset_save_CFLAGS="$CFLAGS" 19645 19646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19650 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19651 then : 19652 printf %s "(cached) " >&6 19653 else case e in #( 19654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19655 /* end confdefs.h. */ 19656 int i; 19657 _ACEOF 19658 if ac_fn_c_try_compile "$LINENO" 19659 then : 19660 xorg_cv_cc_flag_unknown_warning_option=yes 19661 else case e in #( 19662 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19663 esac 19664 fi 19665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19666 esac 19667 fi 19668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19669 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19671 CFLAGS="$xorg_testset_save_CFLAGS" 19672 fi 19673 19674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19677 fi 19678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19682 then : 19683 printf %s "(cached) " >&6 19684 else case e in #( 19685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19686 /* end confdefs.h. */ 19687 int i; 19688 _ACEOF 19689 if ac_fn_c_try_compile "$LINENO" 19690 then : 19691 xorg_cv_cc_flag_unused_command_line_argument=yes 19692 else case e in #( 19693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19694 esac 19695 fi 19696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19697 esac 19698 fi 19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19700 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19702 CFLAGS="$xorg_testset_save_CFLAGS" 19703 fi 19704 19705 found="no" 19706 19707 if test $found = "no" ; then 19708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19710 fi 19711 19712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19714 fi 19715 19716 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19717 19718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19719 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19720 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19721 if eval test \${$cacheid+y} 19722 then : 19723 printf %s "(cached) " >&6 19724 else case e in #( 19725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19726 /* end confdefs.h. */ 19727 int i; 19728 int 19729 main (void) 19730 { 19731 19732 ; 19733 return 0; 19734 } 19735 _ACEOF 19736 if ac_fn_c_try_link "$LINENO" 19737 then : 19738 eval $cacheid=yes 19739 else case e in #( 19740 e) eval $cacheid=no ;; 19741 esac 19742 fi 19743 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19744 conftest$ac_exeext conftest.$ac_ext ;; 19745 esac 19746 fi 19747 19748 19749 CFLAGS="$xorg_testset_save_CFLAGS" 19750 19751 eval supported=\$$cacheid 19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19753 printf "%s\n" "$supported" >&6; } 19754 if test "$supported" = "yes" ; then 19755 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19756 found="yes" 19757 fi 19758 fi 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 xorg_testset_save_CFLAGS="$CFLAGS" 19775 19776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19780 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19781 then : 19782 printf %s "(cached) " >&6 19783 else case e in #( 19784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19785 /* end confdefs.h. */ 19786 int i; 19787 _ACEOF 19788 if ac_fn_c_try_compile "$LINENO" 19789 then : 19790 xorg_cv_cc_flag_unknown_warning_option=yes 19791 else case e in #( 19792 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19793 esac 19794 fi 19795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19796 esac 19797 fi 19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19801 CFLAGS="$xorg_testset_save_CFLAGS" 19802 fi 19803 19804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19807 fi 19808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19812 then : 19813 printf %s "(cached) " >&6 19814 else case e in #( 19815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19816 /* end confdefs.h. */ 19817 int i; 19818 _ACEOF 19819 if ac_fn_c_try_compile "$LINENO" 19820 then : 19821 xorg_cv_cc_flag_unused_command_line_argument=yes 19822 else case e in #( 19823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19824 esac 19825 fi 19826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19827 esac 19828 fi 19829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19830 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19832 CFLAGS="$xorg_testset_save_CFLAGS" 19833 fi 19834 19835 found="no" 19836 19837 if test $found = "no" ; then 19838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19840 fi 19841 19842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19844 fi 19845 19846 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19847 19848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19849 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19850 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19851 if eval test \${$cacheid+y} 19852 then : 19853 printf %s "(cached) " >&6 19854 else case e in #( 19855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19856 /* end confdefs.h. */ 19857 int i; 19858 int 19859 main (void) 19860 { 19861 19862 ; 19863 return 0; 19864 } 19865 _ACEOF 19866 if ac_fn_c_try_link "$LINENO" 19867 then : 19868 eval $cacheid=yes 19869 else case e in #( 19870 e) eval $cacheid=no ;; 19871 esac 19872 fi 19873 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19874 conftest$ac_exeext conftest.$ac_ext ;; 19875 esac 19876 fi 19877 19878 19879 CFLAGS="$xorg_testset_save_CFLAGS" 19880 19881 eval supported=\$$cacheid 19882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19883 printf "%s\n" "$supported" >&6; } 19884 if test "$supported" = "yes" ; then 19885 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19886 found="yes" 19887 fi 19888 fi 19889 19890 19891 fi 19892 19893 19894 19895 19896 19897 19898 19899 CWARNFLAGS="$BASE_CFLAGS" 19900 if test "x$GCC" = xyes ; then 19901 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19902 fi 19903 19904 19905 19906 19907 19908 19909 19910 19911 # Check whether --enable-strict-compilation was given. 19912 if test ${enable_strict_compilation+y} 19913 then : 19914 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19915 else case e in #( 19916 e) STRICT_COMPILE=no ;; 19917 esac 19918 fi 19919 19920 19921 19922 19923 19924 19925 STRICT_CFLAGS="" 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 xorg_testset_save_CFLAGS="$CFLAGS" 19940 19941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19945 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19946 then : 19947 printf %s "(cached) " >&6 19948 else case e in #( 19949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19950 /* end confdefs.h. */ 19951 int i; 19952 _ACEOF 19953 if ac_fn_c_try_compile "$LINENO" 19954 then : 19955 xorg_cv_cc_flag_unknown_warning_option=yes 19956 else case e in #( 19957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19958 esac 19959 fi 19960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19961 esac 19962 fi 19963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19966 CFLAGS="$xorg_testset_save_CFLAGS" 19967 fi 19968 19969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19972 fi 19973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19977 then : 19978 printf %s "(cached) " >&6 19979 else case e in #( 19980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19981 /* end confdefs.h. */ 19982 int i; 19983 _ACEOF 19984 if ac_fn_c_try_compile "$LINENO" 19985 then : 19986 xorg_cv_cc_flag_unused_command_line_argument=yes 19987 else case e in #( 19988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19989 esac 19990 fi 19991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19992 esac 19993 fi 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19997 CFLAGS="$xorg_testset_save_CFLAGS" 19998 fi 19999 20000 found="no" 20001 20002 if test $found = "no" ; then 20003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20005 fi 20006 20007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20009 fi 20010 20011 CFLAGS="$CFLAGS -pedantic" 20012 20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20014 printf %s "checking if $CC supports -pedantic... " >&6; } 20015 cacheid=xorg_cv_cc_flag__pedantic 20016 if eval test \${$cacheid+y} 20017 then : 20018 printf %s "(cached) " >&6 20019 else case e in #( 20020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021 /* end confdefs.h. */ 20022 int i; 20023 int 20024 main (void) 20025 { 20026 20027 ; 20028 return 0; 20029 } 20030 _ACEOF 20031 if ac_fn_c_try_link "$LINENO" 20032 then : 20033 eval $cacheid=yes 20034 else case e in #( 20035 e) eval $cacheid=no ;; 20036 esac 20037 fi 20038 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20039 conftest$ac_exeext conftest.$ac_ext ;; 20040 esac 20041 fi 20042 20043 20044 CFLAGS="$xorg_testset_save_CFLAGS" 20045 20046 eval supported=\$$cacheid 20047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20048 printf "%s\n" "$supported" >&6; } 20049 if test "$supported" = "yes" ; then 20050 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20051 found="yes" 20052 fi 20053 fi 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 xorg_testset_save_CFLAGS="$CFLAGS" 20070 20071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20075 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20076 then : 20077 printf %s "(cached) " >&6 20078 else case e in #( 20079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20080 /* end confdefs.h. */ 20081 int i; 20082 _ACEOF 20083 if ac_fn_c_try_compile "$LINENO" 20084 then : 20085 xorg_cv_cc_flag_unknown_warning_option=yes 20086 else case e in #( 20087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20088 esac 20089 fi 20090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20091 esac 20092 fi 20093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20096 CFLAGS="$xorg_testset_save_CFLAGS" 20097 fi 20098 20099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20102 fi 20103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20107 then : 20108 printf %s "(cached) " >&6 20109 else case e in #( 20110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20111 /* end confdefs.h. */ 20112 int i; 20113 _ACEOF 20114 if ac_fn_c_try_compile "$LINENO" 20115 then : 20116 xorg_cv_cc_flag_unused_command_line_argument=yes 20117 else case e in #( 20118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20119 esac 20120 fi 20121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20122 esac 20123 fi 20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20125 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20127 CFLAGS="$xorg_testset_save_CFLAGS" 20128 fi 20129 20130 found="no" 20131 20132 if test $found = "no" ; then 20133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20135 fi 20136 20137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20139 fi 20140 20141 CFLAGS="$CFLAGS -Werror" 20142 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20144 printf %s "checking if $CC supports -Werror... " >&6; } 20145 cacheid=xorg_cv_cc_flag__Werror 20146 if eval test \${$cacheid+y} 20147 then : 20148 printf %s "(cached) " >&6 20149 else case e in #( 20150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20151 /* end confdefs.h. */ 20152 int i; 20153 int 20154 main (void) 20155 { 20156 20157 ; 20158 return 0; 20159 } 20160 _ACEOF 20161 if ac_fn_c_try_link "$LINENO" 20162 then : 20163 eval $cacheid=yes 20164 else case e in #( 20165 e) eval $cacheid=no ;; 20166 esac 20167 fi 20168 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20169 conftest$ac_exeext conftest.$ac_ext ;; 20170 esac 20171 fi 20172 20173 20174 CFLAGS="$xorg_testset_save_CFLAGS" 20175 20176 eval supported=\$$cacheid 20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20178 printf "%s\n" "$supported" >&6; } 20179 if test "$supported" = "yes" ; then 20180 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20181 found="yes" 20182 fi 20183 fi 20184 20185 if test $found = "no" ; then 20186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20188 fi 20189 20190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20192 fi 20193 20194 CFLAGS="$CFLAGS -errwarn" 20195 20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20197 printf %s "checking if $CC supports -errwarn... " >&6; } 20198 cacheid=xorg_cv_cc_flag__errwarn 20199 if eval test \${$cacheid+y} 20200 then : 20201 printf %s "(cached) " >&6 20202 else case e in #( 20203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20204 /* end confdefs.h. */ 20205 int i; 20206 int 20207 main (void) 20208 { 20209 20210 ; 20211 return 0; 20212 } 20213 _ACEOF 20214 if ac_fn_c_try_link "$LINENO" 20215 then : 20216 eval $cacheid=yes 20217 else case e in #( 20218 e) eval $cacheid=no ;; 20219 esac 20220 fi 20221 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20222 conftest$ac_exeext conftest.$ac_ext ;; 20223 esac 20224 fi 20225 20226 20227 CFLAGS="$xorg_testset_save_CFLAGS" 20228 20229 eval supported=\$$cacheid 20230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20231 printf "%s\n" "$supported" >&6; } 20232 if test "$supported" = "yes" ; then 20233 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20234 found="yes" 20235 fi 20236 fi 20237 20238 20239 20240 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20241 # activate it with -Werror, so we add it here explicitly. 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 xorg_testset_save_CFLAGS="$CFLAGS" 20256 20257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20261 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20262 then : 20263 printf %s "(cached) " >&6 20264 else case e in #( 20265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20266 /* end confdefs.h. */ 20267 int i; 20268 _ACEOF 20269 if ac_fn_c_try_compile "$LINENO" 20270 then : 20271 xorg_cv_cc_flag_unknown_warning_option=yes 20272 else case e in #( 20273 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20274 esac 20275 fi 20276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20277 esac 20278 fi 20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20282 CFLAGS="$xorg_testset_save_CFLAGS" 20283 fi 20284 20285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20288 fi 20289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20293 then : 20294 printf %s "(cached) " >&6 20295 else case e in #( 20296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20297 /* end confdefs.h. */ 20298 int i; 20299 _ACEOF 20300 if ac_fn_c_try_compile "$LINENO" 20301 then : 20302 xorg_cv_cc_flag_unused_command_line_argument=yes 20303 else case e in #( 20304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20305 esac 20306 fi 20307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20308 esac 20309 fi 20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20313 CFLAGS="$xorg_testset_save_CFLAGS" 20314 fi 20315 20316 found="no" 20317 20318 if test $found = "no" ; then 20319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20321 fi 20322 20323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20325 fi 20326 20327 CFLAGS="$CFLAGS -Werror=attributes" 20328 20329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20330 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20331 cacheid=xorg_cv_cc_flag__Werror_attributes 20332 if eval test \${$cacheid+y} 20333 then : 20334 printf %s "(cached) " >&6 20335 else case e in #( 20336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20337 /* end confdefs.h. */ 20338 int i; 20339 int 20340 main (void) 20341 { 20342 20343 ; 20344 return 0; 20345 } 20346 _ACEOF 20347 if ac_fn_c_try_link "$LINENO" 20348 then : 20349 eval $cacheid=yes 20350 else case e in #( 20351 e) eval $cacheid=no ;; 20352 esac 20353 fi 20354 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20355 conftest$ac_exeext conftest.$ac_ext ;; 20356 esac 20357 fi 20358 20359 20360 CFLAGS="$xorg_testset_save_CFLAGS" 20361 20362 eval supported=\$$cacheid 20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20364 printf "%s\n" "$supported" >&6; } 20365 if test "$supported" = "yes" ; then 20366 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20367 found="yes" 20368 fi 20369 fi 20370 20371 20372 20373 if test "x$STRICT_COMPILE" = "xyes"; then 20374 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20375 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20376 fi 20377 20378 20379 20380 20381 20382 20383 20384 20385 cat >>confdefs.h <<_ACEOF 20386 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20387 _ACEOF 20388 20389 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20390 if test "x$PVM" = "x"; then 20391 PVM="0" 20392 fi 20393 20394 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20395 20396 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20397 if test "x$PVP" = "x"; then 20398 PVP="0" 20399 fi 20400 20401 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20402 20403 20404 20405 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20406 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20407 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20408 touch \$(top_srcdir)/ChangeLog; \ 20409 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20410 20411 20412 20413 20414 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20415 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20416 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20417 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20418 touch \$(top_srcdir)/INSTALL; \ 20419 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20420 20421 20422 20423 20424 20425 20426 case $host_os in 20427 solaris*) 20428 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20429 # check for a man page file found in later versions that use 20430 # traditional section numbers instead 20431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20432 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20433 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20434 then : 20435 printf %s "(cached) " >&6 20436 else case e in #( 20437 e) test "$cross_compiling" = yes && 20438 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20439 if test -r "/usr/share/man/man7/attributes.7"; then 20440 ac_cv_file__usr_share_man_man7_attributes_7=yes 20441 else 20442 ac_cv_file__usr_share_man_man7_attributes_7=no 20443 fi ;; 20444 esac 20445 fi 20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20447 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20448 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20449 then : 20450 SYSV_MAN_SECTIONS=false 20451 else case e in #( 20452 e) SYSV_MAN_SECTIONS=true ;; 20453 esac 20454 fi 20455 20456 ;; 20457 *) SYSV_MAN_SECTIONS=false ;; 20458 esac 20459 20460 if test x$APP_MAN_SUFFIX = x ; then 20461 APP_MAN_SUFFIX=1 20462 fi 20463 if test x$APP_MAN_DIR = x ; then 20464 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20465 fi 20466 20467 if test x$LIB_MAN_SUFFIX = x ; then 20468 LIB_MAN_SUFFIX=3 20469 fi 20470 if test x$LIB_MAN_DIR = x ; then 20471 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20472 fi 20473 20474 if test x$FILE_MAN_SUFFIX = x ; then 20475 case $SYSV_MAN_SECTIONS in 20476 true) FILE_MAN_SUFFIX=4 ;; 20477 *) FILE_MAN_SUFFIX=5 ;; 20478 esac 20479 fi 20480 if test x$FILE_MAN_DIR = x ; then 20481 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20482 fi 20483 20484 if test x$MISC_MAN_SUFFIX = x ; then 20485 case $SYSV_MAN_SECTIONS in 20486 true) MISC_MAN_SUFFIX=5 ;; 20487 *) MISC_MAN_SUFFIX=7 ;; 20488 esac 20489 fi 20490 if test x$MISC_MAN_DIR = x ; then 20491 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20492 fi 20493 20494 if test x$DRIVER_MAN_SUFFIX = x ; then 20495 case $SYSV_MAN_SECTIONS in 20496 true) DRIVER_MAN_SUFFIX=7 ;; 20497 *) DRIVER_MAN_SUFFIX=4 ;; 20498 esac 20499 fi 20500 if test x$DRIVER_MAN_DIR = x ; then 20501 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20502 fi 20503 20504 if test x$ADMIN_MAN_SUFFIX = x ; then 20505 case $SYSV_MAN_SECTIONS in 20506 true) ADMIN_MAN_SUFFIX=1m ;; 20507 *) ADMIN_MAN_SUFFIX=8 ;; 20508 esac 20509 fi 20510 if test x$ADMIN_MAN_DIR = x ; then 20511 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20512 fi 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 XORG_MAN_PAGE="X Version 11" 20529 20530 MAN_SUBSTS="\ 20531 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20532 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20533 -e 's|__xservername__|Xorg|g' \ 20534 -e 's|__xconfigfile__|xorg.conf|g' \ 20535 -e 's|__projectroot__|\$(prefix)|g' \ 20536 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20537 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20538 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20539 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20540 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20541 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20542 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20543 20544 20545 20546 20547 AM_DEFAULT_VERBOSITY=0 20548 20549 20550 20551 20552 20553 20554 # Check whether --enable-docs was given. 20555 if test ${enable_docs+y} 20556 then : 20557 enableval=$enable_docs; build_docs=$enableval 20558 else case e in #( 20559 e) build_docs=yes ;; 20560 esac 20561 fi 20562 20563 20564 if test x$build_docs = xyes; then 20565 ENABLE_DOCS_TRUE= 20566 ENABLE_DOCS_FALSE='#' 20567 else 20568 ENABLE_DOCS_TRUE='#' 20569 ENABLE_DOCS_FALSE= 20570 fi 20571 20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 20573 printf %s "checking whether to build documentation... " >&6; } 20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 20575 printf "%s\n" "$build_docs" >&6; } 20576 20577 20578 20579 # Check whether --enable-specs was given. 20580 if test ${enable_specs+y} 20581 then : 20582 enableval=$enable_specs; build_specs=$enableval 20583 else case e in #( 20584 e) build_specs=yes ;; 20585 esac 20586 fi 20587 20588 20589 if test x$build_specs = xyes; then 20590 ENABLE_SPECS_TRUE= 20591 ENABLE_SPECS_FALSE='#' 20592 else 20593 ENABLE_SPECS_TRUE='#' 20594 ENABLE_SPECS_FALSE= 20595 fi 20596 20597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20598 printf %s "checking whether to build functional specifications... " >&6; } 20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20600 printf "%s\n" "$build_specs" >&6; } 20601 20602 20603 20604 20605 20606 # Check whether --with-xmlto was given. 20607 if test ${with_xmlto+y} 20608 then : 20609 withval=$with_xmlto; use_xmlto=$withval 20610 else case e in #( 20611 e) use_xmlto=auto ;; 20612 esac 20613 fi 20614 20615 20616 20617 if test "x$use_xmlto" = x"auto"; then 20618 # Extract the first word of "xmlto", so it can be a program name with args. 20619 set dummy xmlto; ac_word=$2 20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20621 printf %s "checking for $ac_word... " >&6; } 20622 if test ${ac_cv_path_XMLTO+y} 20623 then : 20624 printf %s "(cached) " >&6 20625 else case e in #( 20626 e) case $XMLTO in 20627 [\\/]* | ?:[\\/]*) 20628 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20629 ;; 20630 *) 20631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20632 for as_dir in $PATH 20633 do 20634 IFS=$as_save_IFS 20635 case $as_dir in #((( 20636 '') as_dir=./ ;; 20637 */) ;; 20638 *) as_dir=$as_dir/ ;; 20639 esac 20640 for ac_exec_ext in '' $ac_executable_extensions; do 20641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20642 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20644 break 2 20645 fi 20646 done 20647 done 20648 IFS=$as_save_IFS 20649 20650 ;; 20651 esac ;; 20652 esac 20653 fi 20654 XMLTO=$ac_cv_path_XMLTO 20655 if test -n "$XMLTO"; then 20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20657 printf "%s\n" "$XMLTO" >&6; } 20658 else 20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20660 printf "%s\n" "no" >&6; } 20661 fi 20662 20663 20664 if test "x$XMLTO" = "x"; then 20665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20666 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20667 have_xmlto=no 20668 else 20669 have_xmlto=yes 20670 fi 20671 elif test "x$use_xmlto" = x"yes" ; then 20672 # Extract the first word of "xmlto", so it can be a program name with args. 20673 set dummy xmlto; ac_word=$2 20674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20675 printf %s "checking for $ac_word... " >&6; } 20676 if test ${ac_cv_path_XMLTO+y} 20677 then : 20678 printf %s "(cached) " >&6 20679 else case e in #( 20680 e) case $XMLTO in 20681 [\\/]* | ?:[\\/]*) 20682 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20683 ;; 20684 *) 20685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20686 for as_dir in $PATH 20687 do 20688 IFS=$as_save_IFS 20689 case $as_dir in #((( 20690 '') as_dir=./ ;; 20691 */) ;; 20692 *) as_dir=$as_dir/ ;; 20693 esac 20694 for ac_exec_ext in '' $ac_executable_extensions; do 20695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20696 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20698 break 2 20699 fi 20700 done 20701 done 20702 IFS=$as_save_IFS 20703 20704 ;; 20705 esac ;; 20706 esac 20707 fi 20708 XMLTO=$ac_cv_path_XMLTO 20709 if test -n "$XMLTO"; then 20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20711 printf "%s\n" "$XMLTO" >&6; } 20712 else 20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20714 printf "%s\n" "no" >&6; } 20715 fi 20716 20717 20718 if test "x$XMLTO" = "x"; then 20719 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20720 fi 20721 have_xmlto=yes 20722 elif test "x$use_xmlto" = x"no" ; then 20723 if test "x$XMLTO" != "x"; then 20724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20725 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20726 fi 20727 have_xmlto=no 20728 else 20729 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20730 fi 20731 20732 # Test for a minimum version of xmlto, if provided. 20733 if test "$have_xmlto" = yes; then 20734 # scrape the xmlto version 20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20736 printf %s "checking the xmlto version... " >&6; } 20737 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20739 printf "%s\n" "$xmlto_version" >&6; } 20740 as_arg_v1=$xmlto_version 20741 as_arg_v2=0.0.22 20742 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20743 case $? in #( 20744 1) : 20745 if test "x$use_xmlto" = xauto; then 20746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20747 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20748 have_xmlto=no 20749 else 20750 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20751 fi ;; #( 20752 0) : 20753 ;; #( 20754 2) : 20755 ;; #( 20756 *) : 20757 ;; 20758 esac 20759 fi 20760 20761 # Test for the ability of xmlto to generate a text target 20762 # 20763 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20764 # following test for empty XML docbook files. 20765 # For compatibility reasons use the following empty XML docbook file and if 20766 # it fails try it again with a non-empty XML file. 20767 have_xmlto_text=no 20768 cat > conftest.xml << "EOF" 20769 EOF 20770 if test "$have_xmlto" = yes 20771 then : 20772 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20773 then : 20774 have_xmlto_text=yes 20775 else case e in #( 20776 e) # Try it again with a non-empty XML file. 20777 cat > conftest.xml << "EOF" 20778 <x></x> 20779 EOF 20780 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20781 then : 20782 have_xmlto_text=yes 20783 else case e in #( 20784 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20785 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20786 esac 20787 fi ;; 20788 esac 20789 fi 20790 fi 20791 rm -f conftest.xml 20792 if test $have_xmlto_text = yes; then 20793 HAVE_XMLTO_TEXT_TRUE= 20794 HAVE_XMLTO_TEXT_FALSE='#' 20795 else 20796 HAVE_XMLTO_TEXT_TRUE='#' 20797 HAVE_XMLTO_TEXT_FALSE= 20798 fi 20799 20800 if test "$have_xmlto" = yes; then 20801 HAVE_XMLTO_TRUE= 20802 HAVE_XMLTO_FALSE='#' 20803 else 20804 HAVE_XMLTO_TRUE='#' 20805 HAVE_XMLTO_FALSE= 20806 fi 20807 20808 20809 20810 20811 20812 20813 # Check whether --with-fop was given. 20814 if test ${with_fop+y} 20815 then : 20816 withval=$with_fop; use_fop=$withval 20817 else case e in #( 20818 e) use_fop=auto ;; 20819 esac 20820 fi 20821 20822 20823 20824 if test "x$use_fop" = x"auto"; then 20825 # Extract the first word of "fop", so it can be a program name with args. 20826 set dummy fop; ac_word=$2 20827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20828 printf %s "checking for $ac_word... " >&6; } 20829 if test ${ac_cv_path_FOP+y} 20830 then : 20831 printf %s "(cached) " >&6 20832 else case e in #( 20833 e) case $FOP in 20834 [\\/]* | ?:[\\/]*) 20835 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20836 ;; 20837 *) 20838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20839 for as_dir in $PATH 20840 do 20841 IFS=$as_save_IFS 20842 case $as_dir in #((( 20843 '') as_dir=./ ;; 20844 */) ;; 20845 *) as_dir=$as_dir/ ;; 20846 esac 20847 for ac_exec_ext in '' $ac_executable_extensions; do 20848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20849 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20851 break 2 20852 fi 20853 done 20854 done 20855 IFS=$as_save_IFS 20856 20857 ;; 20858 esac ;; 20859 esac 20860 fi 20861 FOP=$ac_cv_path_FOP 20862 if test -n "$FOP"; then 20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20864 printf "%s\n" "$FOP" >&6; } 20865 else 20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20867 printf "%s\n" "no" >&6; } 20868 fi 20869 20870 20871 if test "x$FOP" = "x"; then 20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20873 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20874 have_fop=no 20875 else 20876 have_fop=yes 20877 fi 20878 elif test "x$use_fop" = x"yes" ; then 20879 # Extract the first word of "fop", so it can be a program name with args. 20880 set dummy fop; ac_word=$2 20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20882 printf %s "checking for $ac_word... " >&6; } 20883 if test ${ac_cv_path_FOP+y} 20884 then : 20885 printf %s "(cached) " >&6 20886 else case e in #( 20887 e) case $FOP in 20888 [\\/]* | ?:[\\/]*) 20889 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20890 ;; 20891 *) 20892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20893 for as_dir in $PATH 20894 do 20895 IFS=$as_save_IFS 20896 case $as_dir in #((( 20897 '') as_dir=./ ;; 20898 */) ;; 20899 *) as_dir=$as_dir/ ;; 20900 esac 20901 for ac_exec_ext in '' $ac_executable_extensions; do 20902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20903 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20905 break 2 20906 fi 20907 done 20908 done 20909 IFS=$as_save_IFS 20910 20911 ;; 20912 esac ;; 20913 esac 20914 fi 20915 FOP=$ac_cv_path_FOP 20916 if test -n "$FOP"; then 20917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20918 printf "%s\n" "$FOP" >&6; } 20919 else 20920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20921 printf "%s\n" "no" >&6; } 20922 fi 20923 20924 20925 if test "x$FOP" = "x"; then 20926 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20927 fi 20928 have_fop=yes 20929 elif test "x$use_fop" = x"no" ; then 20930 if test "x$FOP" != "x"; then 20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20932 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20933 fi 20934 have_fop=no 20935 else 20936 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20937 fi 20938 20939 # Test for a minimum version of fop, if provided. 20940 20941 if test "$have_fop" = yes; then 20942 HAVE_FOP_TRUE= 20943 HAVE_FOP_FALSE='#' 20944 else 20945 HAVE_FOP_TRUE='#' 20946 HAVE_FOP_FALSE= 20947 fi 20948 20949 20950 20951 20952 # Preserves the interface, should it be implemented later 20953 20954 20955 20956 # Check whether --with-xsltproc was given. 20957 if test ${with_xsltproc+y} 20958 then : 20959 withval=$with_xsltproc; use_xsltproc=$withval 20960 else case e in #( 20961 e) use_xsltproc=auto ;; 20962 esac 20963 fi 20964 20965 20966 20967 if test "x$use_xsltproc" = x"auto"; then 20968 # Extract the first word of "xsltproc", so it can be a program name with args. 20969 set dummy xsltproc; ac_word=$2 20970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20971 printf %s "checking for $ac_word... " >&6; } 20972 if test ${ac_cv_path_XSLTPROC+y} 20973 then : 20974 printf %s "(cached) " >&6 20975 else case e in #( 20976 e) case $XSLTPROC in 20977 [\\/]* | ?:[\\/]*) 20978 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20979 ;; 20980 *) 20981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20982 for as_dir in $PATH 20983 do 20984 IFS=$as_save_IFS 20985 case $as_dir in #((( 20986 '') as_dir=./ ;; 20987 */) ;; 20988 *) as_dir=$as_dir/ ;; 20989 esac 20990 for ac_exec_ext in '' $ac_executable_extensions; do 20991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20992 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20994 break 2 20995 fi 20996 done 20997 done 20998 IFS=$as_save_IFS 20999 21000 ;; 21001 esac ;; 21002 esac 21003 fi 21004 XSLTPROC=$ac_cv_path_XSLTPROC 21005 if test -n "$XSLTPROC"; then 21006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21007 printf "%s\n" "$XSLTPROC" >&6; } 21008 else 21009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21010 printf "%s\n" "no" >&6; } 21011 fi 21012 21013 21014 if test "x$XSLTPROC" = "x"; then 21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 21016 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 21017 have_xsltproc=no 21018 else 21019 have_xsltproc=yes 21020 fi 21021 elif test "x$use_xsltproc" = x"yes" ; then 21022 # Extract the first word of "xsltproc", so it can be a program name with args. 21023 set dummy xsltproc; ac_word=$2 21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21025 printf %s "checking for $ac_word... " >&6; } 21026 if test ${ac_cv_path_XSLTPROC+y} 21027 then : 21028 printf %s "(cached) " >&6 21029 else case e in #( 21030 e) case $XSLTPROC in 21031 [\\/]* | ?:[\\/]*) 21032 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21033 ;; 21034 *) 21035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21036 for as_dir in $PATH 21037 do 21038 IFS=$as_save_IFS 21039 case $as_dir in #((( 21040 '') as_dir=./ ;; 21041 */) ;; 21042 *) as_dir=$as_dir/ ;; 21043 esac 21044 for ac_exec_ext in '' $ac_executable_extensions; do 21045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21046 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21048 break 2 21049 fi 21050 done 21051 done 21052 IFS=$as_save_IFS 21053 21054 ;; 21055 esac ;; 21056 esac 21057 fi 21058 XSLTPROC=$ac_cv_path_XSLTPROC 21059 if test -n "$XSLTPROC"; then 21060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21061 printf "%s\n" "$XSLTPROC" >&6; } 21062 else 21063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21064 printf "%s\n" "no" >&6; } 21065 fi 21066 21067 21068 if test "x$XSLTPROC" = "x"; then 21069 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21070 fi 21071 have_xsltproc=yes 21072 elif test "x$use_xsltproc" = x"no" ; then 21073 if test "x$XSLTPROC" != "x"; then 21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21075 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21076 fi 21077 have_xsltproc=no 21078 else 21079 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21080 fi 21081 21082 if test "$have_xsltproc" = yes; then 21083 HAVE_XSLTPROC_TRUE= 21084 HAVE_XSLTPROC_FALSE='#' 21085 else 21086 HAVE_XSLTPROC_TRUE='#' 21087 HAVE_XSLTPROC_FALSE= 21088 fi 21089 21090 21091 21092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21093 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21094 XORG_SGML_PATH= 21095 if test -n "$PKG_CONFIG" && \ 21096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21097 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21098 ac_status=$? 21099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21100 test $ac_status = 0; }; then 21101 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21102 else 21103 : 21104 21105 fi 21106 21107 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21108 # the path and the name of the doc stylesheet 21109 if test "x$XORG_SGML_PATH" != "x" ; then 21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21111 printf "%s\n" "$XORG_SGML_PATH" >&6; } 21112 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21113 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21114 else 21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21116 printf "%s\n" "no" >&6; } 21117 fi 21118 21119 21120 21121 21122 if test "x$XSL_STYLESHEET" != "x"; then 21123 HAVE_STYLESHEETS_TRUE= 21124 HAVE_STYLESHEETS_FALSE='#' 21125 else 21126 HAVE_STYLESHEETS_TRUE='#' 21127 HAVE_STYLESHEETS_FALSE= 21128 fi 21129 21130 21131 21132 21133 21134 21135 # Check whether --with-asciidoc was given. 21136 if test ${with_asciidoc+y} 21137 then : 21138 withval=$with_asciidoc; use_asciidoc=$withval 21139 else case e in #( 21140 e) use_asciidoc=auto ;; 21141 esac 21142 fi 21143 21144 21145 21146 if test "x$use_asciidoc" = x"auto"; then 21147 # Extract the first word of "asciidoc", so it can be a program name with args. 21148 set dummy asciidoc; ac_word=$2 21149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21150 printf %s "checking for $ac_word... " >&6; } 21151 if test ${ac_cv_path_ASCIIDOC+y} 21152 then : 21153 printf %s "(cached) " >&6 21154 else case e in #( 21155 e) case $ASCIIDOC in 21156 [\\/]* | ?:[\\/]*) 21157 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 21158 ;; 21159 *) 21160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21161 for as_dir in $PATH 21162 do 21163 IFS=$as_save_IFS 21164 case $as_dir in #((( 21165 '') as_dir=./ ;; 21166 */) ;; 21167 *) as_dir=$as_dir/ ;; 21168 esac 21169 for ac_exec_ext in '' $ac_executable_extensions; do 21170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21171 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 21172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21173 break 2 21174 fi 21175 done 21176 done 21177 IFS=$as_save_IFS 21178 21179 ;; 21180 esac ;; 21181 esac 21182 fi 21183 ASCIIDOC=$ac_cv_path_ASCIIDOC 21184 if test -n "$ASCIIDOC"; then 21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 21186 printf "%s\n" "$ASCIIDOC" >&6; } 21187 else 21188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21189 printf "%s\n" "no" >&6; } 21190 fi 21191 21192 21193 if test "x$ASCIIDOC" = "x"; then 21194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 21195 printf "%s\n" "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 21196 have_asciidoc=no 21197 else 21198 have_asciidoc=yes 21199 fi 21200 elif test "x$use_asciidoc" = x"yes" ; then 21201 # Extract the first word of "asciidoc", so it can be a program name with args. 21202 set dummy asciidoc; ac_word=$2 21203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21204 printf %s "checking for $ac_word... " >&6; } 21205 if test ${ac_cv_path_ASCIIDOC+y} 21206 then : 21207 printf %s "(cached) " >&6 21208 else case e in #( 21209 e) case $ASCIIDOC in 21210 [\\/]* | ?:[\\/]*) 21211 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 21212 ;; 21213 *) 21214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21215 for as_dir in $PATH 21216 do 21217 IFS=$as_save_IFS 21218 case $as_dir in #((( 21219 '') as_dir=./ ;; 21220 */) ;; 21221 *) as_dir=$as_dir/ ;; 21222 esac 21223 for ac_exec_ext in '' $ac_executable_extensions; do 21224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21225 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 21226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21227 break 2 21228 fi 21229 done 21230 done 21231 IFS=$as_save_IFS 21232 21233 ;; 21234 esac ;; 21235 esac 21236 fi 21237 ASCIIDOC=$ac_cv_path_ASCIIDOC 21238 if test -n "$ASCIIDOC"; then 21239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 21240 printf "%s\n" "$ASCIIDOC" >&6; } 21241 else 21242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21243 printf "%s\n" "no" >&6; } 21244 fi 21245 21246 21247 if test "x$ASCIIDOC" = "x"; then 21248 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 21249 fi 21250 have_asciidoc=yes 21251 elif test "x$use_asciidoc" = x"no" ; then 21252 if test "x$ASCIIDOC" != "x"; then 21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 21254 printf "%s\n" "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 21255 fi 21256 have_asciidoc=no 21257 else 21258 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 21259 fi 21260 if test "$have_asciidoc" = yes; then 21261 # scrape the asciidoc version 21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 21263 printf %s "checking the asciidoc version... " >&6; } 21264 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 21266 printf "%s\n" "$asciidoc_version" >&6; } 21267 as_arg_v1=$asciidoc_version 21268 as_arg_v2=8.4.5 21269 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 21270 case $? in #( 21271 1) : 21272 if test "x$use_asciidoc" = xauto; then 21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 21274 printf "%s\n" "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 21275 have_asciidoc=no 21276 else 21277 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 21278 fi ;; #( 21279 0) : 21280 ;; #( 21281 2) : 21282 ;; #( 21283 *) : 21284 ;; 21285 esac 21286 fi 21287 if test "$have_asciidoc" = yes; then 21288 HAVE_ASCIIDOC_TRUE= 21289 HAVE_ASCIIDOC_FALSE='#' 21290 else 21291 HAVE_ASCIIDOC_TRUE='#' 21292 HAVE_ASCIIDOC_FALSE= 21293 fi 21294 21295 21296 21297 # Check whether --enable-malloc0returnsnull was given. 21298 if test ${enable_malloc0returnsnull+y} 21299 then : 21300 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21301 else case e in #( 21302 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 21303 esac 21304 fi 21305 21306 21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 21308 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 21309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21310 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21311 21312 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21313 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21314 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21315 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21316 else 21317 MALLOC_ZERO_CFLAGS="" 21318 XMALLOC_ZERO_CFLAGS="" 21319 XTMALLOC_ZERO_CFLAGS="" 21320 fi 21321 21322 21323 21324 21325 21326 21327 # Obtain compiler/linker options for dependencies 21328 21329 pkg_failed=no 21330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" >&5 21331 printf %s "checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1... " >&6; } 21332 21333 if test -n "$XI_CFLAGS"; then 21334 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 21335 elif test -n "$PKG_CONFIG"; then 21336 if test -n "$PKG_CONFIG" && \ 21337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 21338 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 21339 ac_status=$? 21340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21341 test $ac_status = 0; }; then 21342 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 21343 test "x$?" != "x0" && pkg_failed=yes 21344 else 21345 pkg_failed=yes 21346 fi 21347 else 21348 pkg_failed=untried 21349 fi 21350 if test -n "$XI_LIBS"; then 21351 pkg_cv_XI_LIBS="$XI_LIBS" 21352 elif test -n "$PKG_CONFIG"; then 21353 if test -n "$PKG_CONFIG" && \ 21354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 21355 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 21356 ac_status=$? 21357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21358 test $ac_status = 0; }; then 21359 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 21360 test "x$?" != "x0" && pkg_failed=yes 21361 else 21362 pkg_failed=yes 21363 fi 21364 else 21365 pkg_failed=untried 21366 fi 21367 21368 21369 21370 if test $pkg_failed = yes; then 21371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21372 printf "%s\n" "no" >&6; } 21373 21374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21375 _pkg_short_errors_supported=yes 21376 else 21377 _pkg_short_errors_supported=no 21378 fi 21379 if test $_pkg_short_errors_supported = yes; then 21380 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 21381 else 21382 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 21383 fi 21384 # Put the nasty error message in config.log where it belongs 21385 echo "$XI_PKG_ERRORS" >&5 21386 21387 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met: 21388 21389 $XI_PKG_ERRORS 21390 21391 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21392 installed software in a non-standard prefix. 21393 21394 Alternatively, you may set the environment variables XI_CFLAGS 21395 and XI_LIBS to avoid the need to call pkg-config. 21396 See the pkg-config man page for more details." "$LINENO" 5 21397 elif test $pkg_failed = untried; then 21398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21399 printf "%s\n" "no" >&6; } 21400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21401 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21402 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21403 is in your PATH or set the PKG_CONFIG environment variable to the full 21404 path to pkg-config. 21405 21406 Alternatively, you may set the environment variables XI_CFLAGS 21407 and XI_LIBS to avoid the need to call pkg-config. 21408 See the pkg-config man page for more details. 21409 21410 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21411 See 'config.log' for more details" "$LINENO" 5; } 21412 else 21413 XI_CFLAGS=$pkg_cv_XI_CFLAGS 21414 XI_LIBS=$pkg_cv_XI_LIBS 21415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21416 printf "%s\n" "yes" >&6; } 21417 21418 fi 21419 # CFLAGS only for PointerBarrier typedef 21420 21421 pkg_failed=no 21422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xfixes >= 5" >&5 21423 printf %s "checking for xfixes >= 5... " >&6; } 21424 21425 if test -n "$XFIXES_CFLAGS"; then 21426 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 21427 elif test -n "$PKG_CONFIG"; then 21428 if test -n "$PKG_CONFIG" && \ 21429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 21430 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 21431 ac_status=$? 21432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21433 test $ac_status = 0; }; then 21434 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 21435 test "x$?" != "x0" && pkg_failed=yes 21436 else 21437 pkg_failed=yes 21438 fi 21439 else 21440 pkg_failed=untried 21441 fi 21442 if test -n "$XFIXES_LIBS"; then 21443 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 21444 elif test -n "$PKG_CONFIG"; then 21445 if test -n "$PKG_CONFIG" && \ 21446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 21447 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 21448 ac_status=$? 21449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21450 test $ac_status = 0; }; then 21451 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 21452 test "x$?" != "x0" && pkg_failed=yes 21453 else 21454 pkg_failed=yes 21455 fi 21456 else 21457 pkg_failed=untried 21458 fi 21459 21460 21461 21462 if test $pkg_failed = yes; then 21463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21464 printf "%s\n" "no" >&6; } 21465 21466 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21467 _pkg_short_errors_supported=yes 21468 else 21469 _pkg_short_errors_supported=no 21470 fi 21471 if test $_pkg_short_errors_supported = yes; then 21472 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 21473 else 21474 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 21475 fi 21476 # Put the nasty error message in config.log where it belongs 21477 echo "$XFIXES_PKG_ERRORS" >&5 21478 21479 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 21480 21481 $XFIXES_PKG_ERRORS 21482 21483 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21484 installed software in a non-standard prefix. 21485 21486 Alternatively, you may set the environment variables XFIXES_CFLAGS 21487 and XFIXES_LIBS to avoid the need to call pkg-config. 21488 See the pkg-config man page for more details." "$LINENO" 5 21489 elif test $pkg_failed = untried; then 21490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21491 printf "%s\n" "no" >&6; } 21492 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21493 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21494 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21495 is in your PATH or set the PKG_CONFIG environment variable to the full 21496 path to pkg-config. 21497 21498 Alternatively, you may set the environment variables XFIXES_CFLAGS 21499 and XFIXES_LIBS to avoid the need to call pkg-config. 21500 See the pkg-config man page for more details. 21501 21502 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21503 See 'config.log' for more details" "$LINENO" 5; } 21504 else 21505 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 21506 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 21507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21508 printf "%s\n" "yes" >&6; } 21509 21510 fi 21511 21512 # Check for xmlto and asciidoc for man page conversion 21513 # (only needed by people building tarballs) 21514 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 21515 have_doctools=yes 21516 else 21517 have_doctools=no 21518 fi 21519 if test $have_doctools = yes; then 21520 HAVE_DOCTOOLS_TRUE= 21521 HAVE_DOCTOOLS_FALSE='#' 21522 else 21523 HAVE_DOCTOOLS_TRUE='#' 21524 HAVE_DOCTOOLS_FALSE= 21525 fi 21526 21527 if test $have_doctools = no; then 21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 21529 printf "%s\n" "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 21530 fi 21531 21532 # Determine if the source for man pages is available 21533 # It may already be present (tarball) or can be generated using doctools 21534 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 21535 test $have_doctools = yes; then 21536 INSTALL_MANPAGES_TRUE= 21537 INSTALL_MANPAGES_FALSE='#' 21538 else 21539 INSTALL_MANPAGES_TRUE='#' 21540 INSTALL_MANPAGES_FALSE= 21541 fi 21542 21543 21544 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 21545 21546 cat >confcache <<\_ACEOF 21547 # This file is a shell script that caches the results of configure 21548 # tests run on this system so they can be shared between configure 21549 # scripts and configure runs, see configure's option --config-cache. 21550 # It is not useful on other systems. If it contains results you don't 21551 # want to keep, you may remove or edit it. 21552 # 21553 # config.status only pays attention to the cache file if you give it 21554 # the --recheck option to rerun configure. 21555 # 21556 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 21557 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 21558 # following values. 21559 21560 _ACEOF 21561 21562 # The following way of writing the cache mishandles newlines in values, 21563 # but we know of no workaround that is simple, portable, and efficient. 21564 # So, we kill variables containing newlines. 21565 # Ultrix sh set writes to stderr and can't be redirected directly, 21566 # and sets the high bit in the cache file unless we assign to the vars. 21567 ( 21568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21569 eval ac_val=\$$ac_var 21570 case $ac_val in #( 21571 *${as_nl}*) 21572 case $ac_var in #( 21573 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21574 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21575 esac 21576 case $ac_var in #( 21577 _ | IFS | as_nl) ;; #( 21578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21579 *) { eval $ac_var=; unset $ac_var;} ;; 21580 esac ;; 21581 esac 21582 done 21583 21584 (set) 2>&1 | 21585 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21586 *${as_nl}ac_space=\ *) 21587 # 'set' does not quote correctly, so add quotes: double-quote 21588 # substitution turns \\\\ into \\, and sed turns \\ into \. 21589 sed -n \ 21590 "s/'/'\\\\''/g; 21591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21592 ;; #( 21593 *) 21594 # 'set' quotes correctly as required by POSIX, so do not add quotes. 21595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21596 ;; 21597 esac | 21598 sort 21599 ) | 21600 sed ' 21601 /^ac_cv_env_/b end 21602 t clear 21603 :clear 21604 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21605 t end 21606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21607 :end' >>confcache 21608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21609 if test -w "$cache_file"; then 21610 if test "x$cache_file" != "x/dev/null"; then 21611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21612 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21613 if test ! -f "$cache_file" || test -h "$cache_file"; then 21614 cat confcache >"$cache_file" 21615 else 21616 case $cache_file in #( 21617 */* | ?:*) 21618 mv -f confcache "$cache_file"$$ && 21619 mv -f "$cache_file"$$ "$cache_file" ;; #( 21620 *) 21621 mv -f confcache "$cache_file" ;; 21622 esac 21623 fi 21624 fi 21625 else 21626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21627 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21628 fi 21629 fi 21630 rm -f confcache 21631 21632 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21633 # Let make expand exec_prefix. 21634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21635 21636 DEFS=-DHAVE_CONFIG_H 21637 21638 ac_libobjs= 21639 ac_ltlibobjs= 21640 U= 21641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21642 # 1. Remove the extension, and $U if already installed. 21643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21644 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21646 # will be set to the directory where LIBOBJS objects are built. 21647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21649 done 21650 LIBOBJS=$ac_libobjs 21651 21652 LTLIBOBJS=$ac_ltlibobjs 21653 21654 21655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21656 printf %s "checking that generated files are newer than configure... " >&6; } 21657 if test -n "$am_sleep_pid"; then 21658 # Hide warnings about reused PIDs. 21659 wait $am_sleep_pid 2>/dev/null 21660 fi 21661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21662 printf "%s\n" "done" >&6; } 21663 case $enable_silent_rules in # ((( 21664 yes) AM_DEFAULT_VERBOSITY=0;; 21665 no) AM_DEFAULT_VERBOSITY=1;; 21666 esac 21667 if test $am_cv_make_support_nested_variables = yes; then 21668 AM_V='$(V)' 21669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 21670 else 21671 AM_V=$AM_DEFAULT_VERBOSITY 21672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 21673 fi 21674 21675 if test -n "$EXEEXT"; then 21676 am__EXEEXT_TRUE= 21677 am__EXEEXT_FALSE='#' 21678 else 21679 am__EXEEXT_TRUE='#' 21680 am__EXEEXT_FALSE= 21681 fi 21682 21683 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21684 as_fn_error $? "conditional \"AMDEP\" was never defined. 21685 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21686 fi 21687 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21688 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21689 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21690 fi 21691 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 21692 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 21693 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21694 fi 21695 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21696 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21697 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21698 fi 21699 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21700 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21701 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21702 fi 21703 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21704 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21705 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21706 fi 21707 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21708 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21709 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21710 fi 21711 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21712 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21713 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21714 fi 21715 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21716 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21717 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21718 fi 21719 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 21720 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 21721 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21722 fi 21723 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 21724 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 21725 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21726 fi 21727 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 21728 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 21729 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21730 fi 21731 21732 : "${CONFIG_STATUS=./config.status}" 21733 ac_write_fail=0 21734 ac_clean_files_save=$ac_clean_files 21735 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21737 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21738 as_write_fail=0 21739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21740 #! $SHELL 21741 # Generated by $as_me. 21742 # Run this file to recreate the current configuration. 21743 # Compiler output produced by configure, useful for debugging 21744 # configure, is in config.log if it exists. 21745 21746 debug=false 21747 ac_cs_recheck=false 21748 ac_cs_silent=false 21749 21750 SHELL=\${CONFIG_SHELL-$SHELL} 21751 export SHELL 21752 _ASEOF 21753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21754 ## -------------------- ## 21755 ## M4sh Initialization. ## 21756 ## -------------------- ## 21757 21758 # Be more Bourne compatible 21759 DUALCASE=1; export DUALCASE # for MKS sh 21760 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21761 then : 21762 emulate sh 21763 NULLCMD=: 21764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21765 # is contrary to our usage. Disable this feature. 21766 alias -g '${1+"$@"}'='"$@"' 21767 setopt NO_GLOB_SUBST 21768 else case e in #( 21769 e) case `(set -o) 2>/dev/null` in #( 21770 *posix*) : 21771 set -o posix ;; #( 21772 *) : 21773 ;; 21774 esac ;; 21775 esac 21776 fi 21777 21778 21779 21780 # Reset variables that may have inherited troublesome values from 21781 # the environment. 21782 21783 # IFS needs to be set, to space, tab, and newline, in precisely that order. 21784 # (If _AS_PATH_WALK were called with IFS unset, it would have the 21785 # side effect of setting IFS to empty, thus disabling word splitting.) 21786 # Quoting is to prevent editors from complaining about space-tab. 21787 as_nl=' 21788 ' 21789 export as_nl 21790 IFS=" "" $as_nl" 21791 21792 PS1='$ ' 21793 PS2='> ' 21794 PS4='+ ' 21795 21796 # Ensure predictable behavior from utilities with locale-dependent output. 21797 LC_ALL=C 21798 export LC_ALL 21799 LANGUAGE=C 21800 export LANGUAGE 21801 21802 # We cannot yet rely on "unset" to work, but we need these variables 21803 # to be unset--not just set to an empty or harmless value--now, to 21804 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21805 # also avoids known problems related to "unset" and subshell syntax 21806 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21807 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21808 do eval test \${$as_var+y} \ 21809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21810 done 21811 21812 # Ensure that fds 0, 1, and 2 are open. 21813 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21814 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21815 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21816 21817 # The user is always right. 21818 if ${PATH_SEPARATOR+false} :; then 21819 PATH_SEPARATOR=: 21820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21822 PATH_SEPARATOR=';' 21823 } 21824 fi 21825 21826 21827 # Find who we are. Look in the path if we contain no directory separator. 21828 as_myself= 21829 case $0 in #(( 21830 *[\\/]* ) as_myself=$0 ;; 21831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21832 for as_dir in $PATH 21833 do 21834 IFS=$as_save_IFS 21835 case $as_dir in #((( 21836 '') as_dir=./ ;; 21837 */) ;; 21838 *) as_dir=$as_dir/ ;; 21839 esac 21840 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21841 done 21842 IFS=$as_save_IFS 21843 21844 ;; 21845 esac 21846 # We did not find ourselves, most probably we were run as 'sh COMMAND' 21847 # in which case we are not to be found in the path. 21848 if test "x$as_myself" = x; then 21849 as_myself=$0 21850 fi 21851 if test ! -f "$as_myself"; then 21852 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21853 exit 1 21854 fi 21855 21856 21857 21858 # as_fn_error STATUS ERROR [LINENO LOG_FD] 21859 # ---------------------------------------- 21860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21862 # script with STATUS, using 1 if that was 0. 21863 as_fn_error () 21864 { 21865 as_status=$1; test $as_status -eq 0 && as_status=1 21866 if test "$4"; then 21867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21869 fi 21870 printf "%s\n" "$as_me: error: $2" >&2 21871 as_fn_exit $as_status 21872 } # as_fn_error 21873 21874 21875 # as_fn_set_status STATUS 21876 # ----------------------- 21877 # Set $? to STATUS, without forking. 21878 as_fn_set_status () 21879 { 21880 return $1 21881 } # as_fn_set_status 21882 21883 # as_fn_exit STATUS 21884 # ----------------- 21885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21886 as_fn_exit () 21887 { 21888 set +e 21889 as_fn_set_status $1 21890 exit $1 21891 } # as_fn_exit 21892 21893 # as_fn_unset VAR 21894 # --------------- 21895 # Portably unset VAR. 21896 as_fn_unset () 21897 { 21898 { eval $1=; unset $1;} 21899 } 21900 as_unset=as_fn_unset 21901 21902 # as_fn_append VAR VALUE 21903 # ---------------------- 21904 # Append the text in VALUE to the end of the definition contained in VAR. Take 21905 # advantage of any shell optimizations that allow amortized linear growth over 21906 # repeated appends, instead of the typical quadratic growth present in naive 21907 # implementations. 21908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21909 then : 21910 eval 'as_fn_append () 21911 { 21912 eval $1+=\$2 21913 }' 21914 else case e in #( 21915 e) as_fn_append () 21916 { 21917 eval $1=\$$1\$2 21918 } ;; 21919 esac 21920 fi # as_fn_append 21921 21922 # as_fn_arith ARG... 21923 # ------------------ 21924 # Perform arithmetic evaluation on the ARGs, and store the result in the 21925 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21926 # must be portable across $(()) and expr. 21927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21928 then : 21929 eval 'as_fn_arith () 21930 { 21931 as_val=$(( $* )) 21932 }' 21933 else case e in #( 21934 e) as_fn_arith () 21935 { 21936 as_val=`expr "$@" || test $? -eq 1` 21937 } ;; 21938 esac 21939 fi # as_fn_arith 21940 21941 21942 if expr a : '\(a\)' >/dev/null 2>&1 && 21943 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21944 as_expr=expr 21945 else 21946 as_expr=false 21947 fi 21948 21949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21950 as_basename=basename 21951 else 21952 as_basename=false 21953 fi 21954 21955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21956 as_dirname=dirname 21957 else 21958 as_dirname=false 21959 fi 21960 21961 as_me=`$as_basename -- "$0" || 21962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21963 X"$0" : 'X\(//\)$' \| \ 21964 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21965 printf "%s\n" X/"$0" | 21966 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21967 s//\1/ 21968 q 21969 } 21970 /^X\/\(\/\/\)$/{ 21971 s//\1/ 21972 q 21973 } 21974 /^X\/\(\/\).*/{ 21975 s//\1/ 21976 q 21977 } 21978 s/.*/./; q'` 21979 21980 # Avoid depending upon Character Ranges. 21981 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21984 as_cr_digits='0123456789' 21985 as_cr_alnum=$as_cr_Letters$as_cr_digits 21986 21987 21988 # Determine whether it's possible to make 'echo' print without a newline. 21989 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21990 # for compatibility with existing Makefiles. 21991 ECHO_C= ECHO_N= ECHO_T= 21992 case `echo -n x` in #((((( 21993 -n*) 21994 case `echo 'xy\c'` in 21995 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21996 xy) ECHO_C='\c';; 21997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21998 ECHO_T=' ';; 21999 esac;; 22000 *) 22001 ECHO_N='-n';; 22002 esac 22003 22004 # For backward compatibility with old third-party macros, we provide 22005 # the shell variables $as_echo and $as_echo_n. New code should use 22006 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22007 as_echo='printf %s\n' 22008 as_echo_n='printf %s' 22009 22010 rm -f conf$$ conf$$.exe conf$$.file 22011 if test -d conf$$.dir; then 22012 rm -f conf$$.dir/conf$$.file 22013 else 22014 rm -f conf$$.dir 22015 mkdir conf$$.dir 2>/dev/null 22016 fi 22017 if (echo >conf$$.file) 2>/dev/null; then 22018 if ln -s conf$$.file conf$$ 2>/dev/null; then 22019 as_ln_s='ln -s' 22020 # ... but there are two gotchas: 22021 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22022 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22023 # In both cases, we have to default to 'cp -pR'. 22024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22025 as_ln_s='cp -pR' 22026 elif ln conf$$.file conf$$ 2>/dev/null; then 22027 as_ln_s=ln 22028 else 22029 as_ln_s='cp -pR' 22030 fi 22031 else 22032 as_ln_s='cp -pR' 22033 fi 22034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22035 rmdir conf$$.dir 2>/dev/null 22036 22037 22038 # as_fn_mkdir_p 22039 # ------------- 22040 # Create "$as_dir" as a directory, including parents if necessary. 22041 as_fn_mkdir_p () 22042 { 22043 22044 case $as_dir in #( 22045 -*) as_dir=./$as_dir;; 22046 esac 22047 test -d "$as_dir" || eval $as_mkdir_p || { 22048 as_dirs= 22049 while :; do 22050 case $as_dir in #( 22051 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22052 *) as_qdir=$as_dir;; 22053 esac 22054 as_dirs="'$as_qdir' $as_dirs" 22055 as_dir=`$as_dirname -- "$as_dir" || 22056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22057 X"$as_dir" : 'X\(//\)[^/]' \| \ 22058 X"$as_dir" : 'X\(//\)$' \| \ 22059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22060 printf "%s\n" X"$as_dir" | 22061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22062 s//\1/ 22063 q 22064 } 22065 /^X\(\/\/\)[^/].*/{ 22066 s//\1/ 22067 q 22068 } 22069 /^X\(\/\/\)$/{ 22070 s//\1/ 22071 q 22072 } 22073 /^X\(\/\).*/{ 22074 s//\1/ 22075 q 22076 } 22077 s/.*/./; q'` 22078 test -d "$as_dir" && break 22079 done 22080 test -z "$as_dirs" || eval "mkdir $as_dirs" 22081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22082 22083 22084 } # as_fn_mkdir_p 22085 if mkdir -p . 2>/dev/null; then 22086 as_mkdir_p='mkdir -p "$as_dir"' 22087 else 22088 test -d ./-p && rmdir ./-p 22089 as_mkdir_p=false 22090 fi 22091 22092 22093 # as_fn_executable_p FILE 22094 # ----------------------- 22095 # Test if FILE is an executable regular file. 22096 as_fn_executable_p () 22097 { 22098 test -f "$1" && test -x "$1" 22099 } # as_fn_executable_p 22100 as_test_x='test -x' 22101 as_executable_p=as_fn_executable_p 22102 22103 # Sed expression to map a string onto a valid CPP name. 22104 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22105 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22106 22107 # Sed expression to map a string onto a valid variable name. 22108 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22109 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22110 22111 22112 exec 6>&1 22113 ## ----------------------------------- ## 22114 ## Main body of $CONFIG_STATUS script. ## 22115 ## ----------------------------------- ## 22116 _ASEOF 22117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22118 22119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22120 # Save the log message, to keep $0 and so on meaningful, and to 22121 # report actual input values of CONFIG_FILES etc. instead of their 22122 # values after options handling. 22123 ac_log=" 22124 This file was extended by libXi $as_me 1.8.3, which was 22125 generated by GNU Autoconf 2.72. Invocation command line was 22126 22127 CONFIG_FILES = $CONFIG_FILES 22128 CONFIG_HEADERS = $CONFIG_HEADERS 22129 CONFIG_LINKS = $CONFIG_LINKS 22130 CONFIG_COMMANDS = $CONFIG_COMMANDS 22131 $ $0 $@ 22132 22133 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22134 " 22135 22136 _ACEOF 22137 22138 case $ac_config_files in *" 22139 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22140 esac 22141 22142 case $ac_config_headers in *" 22143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22144 esac 22145 22146 22147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22148 # Files that config.status was made for. 22149 config_files="$ac_config_files" 22150 config_headers="$ac_config_headers" 22151 config_commands="$ac_config_commands" 22152 22153 _ACEOF 22154 22155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22156 ac_cs_usage="\ 22157 '$as_me' instantiates files and other configuration actions 22158 from templates according to the current configuration. Unless the files 22159 and actions are specified as TAGs, all are instantiated by default. 22160 22161 Usage: $0 [OPTION]... [TAG]... 22162 22163 -h, --help print this help, then exit 22164 -V, --version print version number and configuration settings, then exit 22165 --config print configuration, then exit 22166 -q, --quiet, --silent 22167 do not print progress messages 22168 -d, --debug don't remove temporary files 22169 --recheck update $as_me by reconfiguring in the same conditions 22170 --file=FILE[:TEMPLATE] 22171 instantiate the configuration file FILE 22172 --header=FILE[:TEMPLATE] 22173 instantiate the configuration header FILE 22174 22175 Configuration files: 22176 $config_files 22177 22178 Configuration headers: 22179 $config_headers 22180 22181 Configuration commands: 22182 $config_commands 22183 22184 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>." 22185 22186 _ACEOF 22187 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22188 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22190 ac_cs_config='$ac_cs_config_escaped' 22191 ac_cs_version="\\ 22192 libXi config.status 1.8.3 22193 configured by $0, generated by GNU Autoconf 2.72, 22194 with options \\"\$ac_cs_config\\" 22195 22196 Copyright (C) 2023 Free Software Foundation, Inc. 22197 This config.status script is free software; the Free Software Foundation 22198 gives unlimited permission to copy, distribute and modify it." 22199 22200 ac_pwd='$ac_pwd' 22201 srcdir='$srcdir' 22202 INSTALL='$INSTALL' 22203 MKDIR_P='$MKDIR_P' 22204 AWK='$AWK' 22205 test -n "\$AWK" || AWK=awk 22206 _ACEOF 22207 22208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22209 # The default lists apply if the user does not specify any file. 22210 ac_need_defaults=: 22211 while test $# != 0 22212 do 22213 case $1 in 22214 --*=?*) 22215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22217 ac_shift=: 22218 ;; 22219 --*=) 22220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22221 ac_optarg= 22222 ac_shift=: 22223 ;; 22224 *) 22225 ac_option=$1 22226 ac_optarg=$2 22227 ac_shift=shift 22228 ;; 22229 esac 22230 22231 case $ac_option in 22232 # Handling of the options. 22233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22234 ac_cs_recheck=: ;; 22235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22236 printf "%s\n" "$ac_cs_version"; exit ;; 22237 --config | --confi | --conf | --con | --co | --c ) 22238 printf "%s\n" "$ac_cs_config"; exit ;; 22239 --debug | --debu | --deb | --de | --d | -d ) 22240 debug=: ;; 22241 --file | --fil | --fi | --f ) 22242 $ac_shift 22243 case $ac_optarg in 22244 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22245 '') as_fn_error $? "missing file argument" ;; 22246 esac 22247 as_fn_append CONFIG_FILES " '$ac_optarg'" 22248 ac_need_defaults=false;; 22249 --header | --heade | --head | --hea ) 22250 $ac_shift 22251 case $ac_optarg in 22252 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22253 esac 22254 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22255 ac_need_defaults=false;; 22256 --he | --h) 22257 # Conflict between --help and --header 22258 as_fn_error $? "ambiguous option: '$1' 22259 Try '$0 --help' for more information.";; 22260 --help | --hel | -h ) 22261 printf "%s\n" "$ac_cs_usage"; exit ;; 22262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22263 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22264 ac_cs_silent=: ;; 22265 22266 # This is an error. 22267 -*) as_fn_error $? "unrecognized option: '$1' 22268 Try '$0 --help' for more information." ;; 22269 22270 *) as_fn_append ac_config_targets " $1" 22271 ac_need_defaults=false ;; 22272 22273 esac 22274 shift 22275 done 22276 22277 ac_configure_extra_args= 22278 22279 if $ac_cs_silent; then 22280 exec 6>/dev/null 22281 ac_configure_extra_args="$ac_configure_extra_args --silent" 22282 fi 22283 22284 _ACEOF 22285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22286 if \$ac_cs_recheck; then 22287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22288 shift 22289 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22290 CONFIG_SHELL='$SHELL' 22291 export CONFIG_SHELL 22292 exec "\$@" 22293 fi 22294 22295 _ACEOF 22296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22297 exec 5>>config.log 22298 { 22299 echo 22300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22301 ## Running $as_me. ## 22302 _ASBOX 22303 printf "%s\n" "$ac_log" 22304 } >&5 22305 22306 _ACEOF 22307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22308 # 22309 # INIT-COMMANDS 22310 # 22311 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22312 22313 22314 # The HP-UX ksh and POSIX shell print the target directory to stdout 22315 # if CDPATH is set. 22316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22317 22318 sed_quote_subst='$sed_quote_subst' 22319 double_quote_subst='$double_quote_subst' 22320 delay_variable_subst='$delay_variable_subst' 22321 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22322 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22323 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22324 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22325 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22326 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22327 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22328 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22329 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22330 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22331 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22332 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22333 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22334 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22335 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22336 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22337 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22338 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22339 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22340 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22341 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22342 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22343 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22344 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22345 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22346 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22347 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22348 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22349 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22350 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22351 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22352 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22353 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22354 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22355 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22356 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22361 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22362 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22364 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22365 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22366 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22367 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22368 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22369 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22370 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22371 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22372 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22373 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22374 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22375 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22376 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22377 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22378 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22379 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22380 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22381 lt_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"`' 22382 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22383 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22384 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22385 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22386 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22387 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22388 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22389 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22390 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22391 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22392 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22393 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22394 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22395 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22396 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22397 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22398 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22399 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22400 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22401 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22402 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22403 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22404 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22405 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22406 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22407 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22408 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22409 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22410 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22411 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22412 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22413 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22414 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22415 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22416 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22417 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22418 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22419 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22420 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22421 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22422 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22423 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22424 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22425 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22426 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22427 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22428 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22429 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22430 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22431 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22432 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22433 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22434 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22435 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22436 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22437 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22438 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22439 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22440 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22441 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22442 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22443 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22444 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22445 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22446 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22447 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22448 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22449 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22450 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22451 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22452 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22453 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22454 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22455 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22456 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22457 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22458 22459 LTCC='$LTCC' 22460 LTCFLAGS='$LTCFLAGS' 22461 compiler='$compiler_DEFAULT' 22462 22463 # A function that is used when there is no print builtin or printf. 22464 func_fallback_echo () 22465 { 22466 eval 'cat <<_LTECHO_EOF 22467 \$1 22468 _LTECHO_EOF' 22469 } 22470 22471 # Quote evaled strings. 22472 for var in SHELL \ 22473 ECHO \ 22474 PATH_SEPARATOR \ 22475 SED \ 22476 GREP \ 22477 EGREP \ 22478 FGREP \ 22479 LD \ 22480 NM \ 22481 LN_S \ 22482 lt_SP2NL \ 22483 lt_NL2SP \ 22484 reload_flag \ 22485 FILECMD \ 22486 OBJDUMP \ 22487 deplibs_check_method \ 22488 file_magic_cmd \ 22489 file_magic_glob \ 22490 want_nocaseglob \ 22491 DLLTOOL \ 22492 sharedlib_from_linklib_cmd \ 22493 AR \ 22494 archiver_list_spec \ 22495 STRIP \ 22496 RANLIB \ 22497 CC \ 22498 CFLAGS \ 22499 compiler \ 22500 lt_cv_sys_global_symbol_pipe \ 22501 lt_cv_sys_global_symbol_to_cdecl \ 22502 lt_cv_sys_global_symbol_to_import \ 22503 lt_cv_sys_global_symbol_to_c_name_address \ 22504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22505 lt_cv_nm_interface \ 22506 nm_file_list_spec \ 22507 lt_cv_truncate_bin \ 22508 lt_prog_compiler_no_builtin_flag \ 22509 lt_prog_compiler_pic \ 22510 lt_prog_compiler_wl \ 22511 lt_prog_compiler_static \ 22512 lt_cv_prog_compiler_c_o \ 22513 need_locks \ 22514 MANIFEST_TOOL \ 22515 DSYMUTIL \ 22516 NMEDIT \ 22517 LIPO \ 22518 OTOOL \ 22519 OTOOL64 \ 22520 shrext_cmds \ 22521 export_dynamic_flag_spec \ 22522 whole_archive_flag_spec \ 22523 compiler_needs_object \ 22524 with_gnu_ld \ 22525 allow_undefined_flag \ 22526 no_undefined_flag \ 22527 hardcode_libdir_flag_spec \ 22528 hardcode_libdir_separator \ 22529 exclude_expsyms \ 22530 include_expsyms \ 22531 file_list_spec \ 22532 variables_saved_for_relink \ 22533 libname_spec \ 22534 library_names_spec \ 22535 soname_spec \ 22536 install_override_mode \ 22537 finish_eval \ 22538 old_striplib \ 22539 striplib; do 22540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22541 *[\\\\\\\`\\"\\\$]*) 22542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22543 ;; 22544 *) 22545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22546 ;; 22547 esac 22548 done 22549 22550 # Double-quote double-evaled strings. 22551 for var in reload_cmds \ 22552 old_postinstall_cmds \ 22553 old_postuninstall_cmds \ 22554 old_archive_cmds \ 22555 extract_expsyms_cmds \ 22556 old_archive_from_new_cmds \ 22557 old_archive_from_expsyms_cmds \ 22558 archive_cmds \ 22559 archive_expsym_cmds \ 22560 module_cmds \ 22561 module_expsym_cmds \ 22562 export_symbols_cmds \ 22563 prelink_cmds \ 22564 postlink_cmds \ 22565 postinstall_cmds \ 22566 postuninstall_cmds \ 22567 finish_cmds \ 22568 sys_lib_search_path_spec \ 22569 configure_time_dlsearch_path \ 22570 configure_time_lt_sys_library_path; do 22571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22572 *[\\\\\\\`\\"\\\$]*) 22573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22574 ;; 22575 *) 22576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22577 ;; 22578 esac 22579 done 22580 22581 ac_aux_dir='$ac_aux_dir' 22582 22583 # See if we are running on zsh, and set the options that allow our 22584 # commands through without removal of \ escapes INIT. 22585 if test -n "\${ZSH_VERSION+set}"; then 22586 setopt NO_GLOB_SUBST 22587 fi 22588 22589 22590 PACKAGE='$PACKAGE' 22591 VERSION='$VERSION' 22592 RM='$RM' 22593 ofile='$ofile' 22594 22595 22596 22597 22598 _ACEOF 22599 22600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22601 22602 # Handling of arguments. 22603 for ac_config_target in $ac_config_targets 22604 do 22605 case $ac_config_target in 22606 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22607 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22608 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22610 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22611 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22612 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22613 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 22614 22615 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22616 esac 22617 done 22618 22619 22620 # If the user did not use the arguments to specify the items to instantiate, 22621 # then the envvar interface is used. Set only those that are not. 22622 # We use the long form for the default assignment because of an extremely 22623 # bizarre bug on SunOS 4.1.3. 22624 if $ac_need_defaults; then 22625 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22626 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22627 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22628 fi 22629 22630 # Have a temporary directory for convenience. Make it in the build tree 22631 # simply because there is no reason against having it here, and in addition, 22632 # creating and moving files from /tmp can sometimes cause problems. 22633 # Hook for its removal unless debugging. 22634 # Note that there is a small window in which the directory will not be cleaned: 22635 # after its creation but before its name has been assigned to '$tmp'. 22636 $debug || 22637 { 22638 tmp= ac_tmp= 22639 trap 'exit_status=$? 22640 : "${ac_tmp:=$tmp}" 22641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22642 ' 0 22643 trap 'as_fn_exit 1' 1 2 13 15 22644 } 22645 # Create a (secure) tmp directory for tmp files. 22646 22647 { 22648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22649 test -d "$tmp" 22650 } || 22651 { 22652 tmp=./conf$$-$RANDOM 22653 (umask 077 && mkdir "$tmp") 22654 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22655 ac_tmp=$tmp 22656 22657 # Set up the scripts for CONFIG_FILES section. 22658 # No need to generate them if there are no CONFIG_FILES. 22659 # This happens for instance with './config.status config.h'. 22660 if test -n "$CONFIG_FILES"; then 22661 22662 22663 ac_cr=`echo X | tr X '\015'` 22664 # On cygwin, bash can eat \r inside `` if the user requested igncr. 22665 # But we know of no other shell where ac_cr would be empty at this 22666 # point, so we can use a bashism as a fallback. 22667 if test "x$ac_cr" = x; then 22668 eval ac_cr=\$\'\\r\' 22669 fi 22670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22672 ac_cs_awk_cr='\\r' 22673 else 22674 ac_cs_awk_cr=$ac_cr 22675 fi 22676 22677 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22678 _ACEOF 22679 22680 22681 { 22682 echo "cat >conf$$subs.awk <<_ACEOF" && 22683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22684 echo "_ACEOF" 22685 } >conf$$subs.sh || 22686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22687 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22688 ac_delim='%!_!# ' 22689 for ac_last_try in false false false false false :; do 22690 . ./conf$$subs.sh || 22691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22692 22693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22694 if test $ac_delim_n = $ac_delim_num; then 22695 break 22696 elif $ac_last_try; then 22697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22698 else 22699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22700 fi 22701 done 22702 rm -f conf$$subs.sh 22703 22704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22705 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22706 _ACEOF 22707 sed -n ' 22708 h 22709 s/^/S["/; s/!.*/"]=/ 22710 p 22711 g 22712 s/^[^!]*!// 22713 :repl 22714 t repl 22715 s/'"$ac_delim"'$// 22716 t delim 22717 :nl 22718 h 22719 s/\(.\{148\}\)..*/\1/ 22720 t more1 22721 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22722 p 22723 n 22724 b repl 22725 :more1 22726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22727 p 22728 g 22729 s/.\{148\}// 22730 t nl 22731 :delim 22732 h 22733 s/\(.\{148\}\)..*/\1/ 22734 t more2 22735 s/["\\]/\\&/g; s/^/"/; s/$/"/ 22736 p 22737 b 22738 :more2 22739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22740 p 22741 g 22742 s/.\{148\}// 22743 t delim 22744 ' <conf$$subs.awk | sed ' 22745 /^[^""]/{ 22746 N 22747 s/\n// 22748 } 22749 ' >>$CONFIG_STATUS || ac_write_fail=1 22750 rm -f conf$$subs.awk 22751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22752 _ACAWK 22753 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22754 for (key in S) S_is_set[key] = 1 22755 FS = "" 22756 22757 } 22758 { 22759 line = $ 0 22760 nfields = split(line, field, "@") 22761 substed = 0 22762 len = length(field[1]) 22763 for (i = 2; i < nfields; i++) { 22764 key = field[i] 22765 keylen = length(key) 22766 if (S_is_set[key]) { 22767 value = S[key] 22768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22769 len += length(value) + length(field[++i]) 22770 substed = 1 22771 } else 22772 len += 1 + keylen 22773 } 22774 22775 print line 22776 } 22777 22778 _ACAWK 22779 _ACEOF 22780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22781 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22783 else 22784 cat 22785 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22786 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22787 _ACEOF 22788 22789 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22790 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22791 # trailing colons and then remove the whole line if VPATH becomes empty 22792 # (actually we leave an empty line to preserve line numbers). 22793 if test "x$srcdir" = x.; then 22794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22795 h 22796 s/// 22797 s/^/:/ 22798 s/[ ]*$/:/ 22799 s/:\$(srcdir):/:/g 22800 s/:\${srcdir}:/:/g 22801 s/:@srcdir@:/:/g 22802 s/^:*// 22803 s/:*$// 22804 x 22805 s/\(=[ ]*\).*/\1/ 22806 G 22807 s/\n// 22808 s/^[^=]*=[ ]*$// 22809 }' 22810 fi 22811 22812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22813 fi # test -n "$CONFIG_FILES" 22814 22815 # Set up the scripts for CONFIG_HEADERS section. 22816 # No need to generate them if there are no CONFIG_HEADERS. 22817 # This happens for instance with './config.status Makefile'. 22818 if test -n "$CONFIG_HEADERS"; then 22819 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22820 BEGIN { 22821 _ACEOF 22822 22823 # Transform confdefs.h into an awk script 'defines.awk', embedded as 22824 # here-document in config.status, that substitutes the proper values into 22825 # config.h.in to produce config.h. 22826 22827 # Create a delimiter string that does not exist in confdefs.h, to ease 22828 # handling of long lines. 22829 ac_delim='%!_!# ' 22830 for ac_last_try in false false :; do 22831 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22832 if test -z "$ac_tt"; then 22833 break 22834 elif $ac_last_try; then 22835 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22836 else 22837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22838 fi 22839 done 22840 22841 # For the awk script, D is an array of macro values keyed by name, 22842 # likewise P contains macro parameters if any. Preserve backslash 22843 # newline sequences. 22844 22845 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22846 sed -n ' 22847 s/.\{148\}/&'"$ac_delim"'/g 22848 t rset 22849 :rset 22850 s/^[ ]*#[ ]*define[ ][ ]*/ / 22851 t def 22852 d 22853 :def 22854 s/\\$// 22855 t bsnl 22856 s/["\\]/\\&/g 22857 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22858 D["\1"]=" \3"/p 22859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22860 d 22861 :bsnl 22862 s/["\\]/\\&/g 22863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22864 D["\1"]=" \3\\\\\\n"\\/p 22865 t cont 22866 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22867 t cont 22868 d 22869 :cont 22870 n 22871 s/.\{148\}/&'"$ac_delim"'/g 22872 t clear 22873 :clear 22874 s/\\$// 22875 t bsnlc 22876 s/["\\]/\\&/g; s/^/"/; s/$/"/p 22877 d 22878 :bsnlc 22879 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22880 b cont 22881 ' <confdefs.h | sed ' 22882 s/'"$ac_delim"'/"\\\ 22883 "/g' >>$CONFIG_STATUS || ac_write_fail=1 22884 22885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22886 for (key in D) D_is_set[key] = 1 22887 FS = "" 22888 } 22889 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22890 line = \$ 0 22891 split(line, arg, " ") 22892 if (arg[1] == "#") { 22893 defundef = arg[2] 22894 mac1 = arg[3] 22895 } else { 22896 defundef = substr(arg[1], 2) 22897 mac1 = arg[2] 22898 } 22899 split(mac1, mac2, "(") #) 22900 macro = mac2[1] 22901 prefix = substr(line, 1, index(line, defundef) - 1) 22902 if (D_is_set[macro]) { 22903 # Preserve the white space surrounding the "#". 22904 print prefix "define", macro P[macro] D[macro] 22905 next 22906 } else { 22907 # Replace #undef with comments. This is necessary, for example, 22908 # in the case of _POSIX_SOURCE, which is predefined and required 22909 # on some systems where configure will not decide to define it. 22910 if (defundef == "undef") { 22911 print "/*", prefix defundef, macro, "*/" 22912 next 22913 } 22914 } 22915 } 22916 { print } 22917 _ACAWK 22918 _ACEOF 22919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22920 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22921 fi # test -n "$CONFIG_HEADERS" 22922 22923 22924 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22925 shift 22926 for ac_tag 22927 do 22928 case $ac_tag in 22929 :[FHLC]) ac_mode=$ac_tag; continue;; 22930 esac 22931 case $ac_mode$ac_tag in 22932 :[FHL]*:*);; 22933 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22934 :[FH]-) ac_tag=-:-;; 22935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22936 esac 22937 ac_save_IFS=$IFS 22938 IFS=: 22939 set x $ac_tag 22940 IFS=$ac_save_IFS 22941 shift 22942 ac_file=$1 22943 shift 22944 22945 case $ac_mode in 22946 :L) ac_source=$1;; 22947 :[FH]) 22948 ac_file_inputs= 22949 for ac_f 22950 do 22951 case $ac_f in 22952 -) ac_f="$ac_tmp/stdin";; 22953 *) # Look for the file first in the build tree, then in the source tree 22954 # (if the path is not absolute). The absolute path cannot be DOS-style, 22955 # because $ac_f cannot contain ':'. 22956 test -f "$ac_f" || 22957 case $ac_f in 22958 [\\/$]*) false;; 22959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22960 esac || 22961 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22962 esac 22963 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22964 as_fn_append ac_file_inputs " '$ac_f'" 22965 done 22966 22967 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22968 # use $as_me), people would be surprised to read: 22969 # /* config.h. Generated by config.status. */ 22970 configure_input='Generated from '` 22971 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22972 `' by configure.' 22973 if test x"$ac_file" != x-; then 22974 configure_input="$ac_file. $configure_input" 22975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22976 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22977 fi 22978 # Neutralize special characters interpreted by sed in replacement strings. 22979 case $configure_input in #( 22980 *\&* | *\|* | *\\* ) 22981 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22982 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22983 *) ac_sed_conf_input=$configure_input;; 22984 esac 22985 22986 case $ac_tag in 22987 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22989 esac 22990 ;; 22991 esac 22992 22993 ac_dir=`$as_dirname -- "$ac_file" || 22994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22995 X"$ac_file" : 'X\(//\)[^/]' \| \ 22996 X"$ac_file" : 'X\(//\)$' \| \ 22997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22998 printf "%s\n" X"$ac_file" | 22999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23000 s//\1/ 23001 q 23002 } 23003 /^X\(\/\/\)[^/].*/{ 23004 s//\1/ 23005 q 23006 } 23007 /^X\(\/\/\)$/{ 23008 s//\1/ 23009 q 23010 } 23011 /^X\(\/\).*/{ 23012 s//\1/ 23013 q 23014 } 23015 s/.*/./; q'` 23016 as_dir="$ac_dir"; as_fn_mkdir_p 23017 ac_builddir=. 23018 23019 case "$ac_dir" in 23020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23021 *) 23022 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23023 # A ".." for each directory in $ac_dir_suffix. 23024 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23025 case $ac_top_builddir_sub in 23026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23028 esac ;; 23029 esac 23030 ac_abs_top_builddir=$ac_pwd 23031 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23032 # for backward compatibility: 23033 ac_top_builddir=$ac_top_build_prefix 23034 23035 case $srcdir in 23036 .) # We are building in place. 23037 ac_srcdir=. 23038 ac_top_srcdir=$ac_top_builddir_sub 23039 ac_abs_top_srcdir=$ac_pwd ;; 23040 [\\/]* | ?:[\\/]* ) # Absolute name. 23041 ac_srcdir=$srcdir$ac_dir_suffix; 23042 ac_top_srcdir=$srcdir 23043 ac_abs_top_srcdir=$srcdir ;; 23044 *) # Relative name. 23045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23046 ac_top_srcdir=$ac_top_build_prefix$srcdir 23047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23048 esac 23049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23050 23051 23052 case $ac_mode in 23053 :F) 23054 # 23055 # CONFIG_FILE 23056 # 23057 23058 case $INSTALL in 23059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23061 esac 23062 ac_MKDIR_P=$MKDIR_P 23063 case $MKDIR_P in 23064 [\\/$]* | ?:[\\/]* ) ;; 23065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23066 esac 23067 _ACEOF 23068 23069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23070 # If the template does not know about datarootdir, expand it. 23071 # FIXME: This hack should be removed a few years after 2.60. 23072 ac_datarootdir_hack=; ac_datarootdir_seen= 23073 ac_sed_dataroot=' 23074 /datarootdir/ { 23075 p 23076 q 23077 } 23078 /@datadir@/p 23079 /@docdir@/p 23080 /@infodir@/p 23081 /@localedir@/p 23082 /@mandir@/p' 23083 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23084 *datarootdir*) ac_datarootdir_seen=yes;; 23085 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23087 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23088 _ACEOF 23089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23090 ac_datarootdir_hack=' 23091 s&@datadir@&$datadir&g 23092 s&@docdir@&$docdir&g 23093 s&@infodir@&$infodir&g 23094 s&@localedir@&$localedir&g 23095 s&@mandir@&$mandir&g 23096 s&\\\${datarootdir}&$datarootdir&g' ;; 23097 esac 23098 _ACEOF 23099 23100 # Neutralize VPATH when '$srcdir' = '.'. 23101 # Shell code in configure.ac might set extrasub. 23102 # FIXME: do we really want to maintain this feature? 23103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23104 ac_sed_extra="$ac_vpsub 23105 $extrasub 23106 _ACEOF 23107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23108 :t 23109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23110 s|@configure_input@|$ac_sed_conf_input|;t t 23111 s&@top_builddir@&$ac_top_builddir_sub&;t t 23112 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23113 s&@srcdir@&$ac_srcdir&;t t 23114 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23115 s&@top_srcdir@&$ac_top_srcdir&;t t 23116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23117 s&@builddir@&$ac_builddir&;t t 23118 s&@abs_builddir@&$ac_abs_builddir&;t t 23119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23120 s&@INSTALL@&$ac_INSTALL&;t t 23121 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23122 $ac_datarootdir_hack 23123 " 23124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23126 23127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23130 "$ac_tmp/out"`; test -z "$ac_out"; } && 23131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23132 which seems to be undefined. Please make sure it is defined" >&5 23133 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23134 which seems to be undefined. Please make sure it is defined" >&2;} 23135 23136 rm -f "$ac_tmp/stdin" 23137 case $ac_file in 23138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23140 esac \ 23141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23142 ;; 23143 :H) 23144 # 23145 # CONFIG_HEADER 23146 # 23147 if test x"$ac_file" != x-; then 23148 { 23149 printf "%s\n" "/* $configure_input */" >&1 \ 23150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23151 } >"$ac_tmp/config.h" \ 23152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23155 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23156 else 23157 rm -f "$ac_file" 23158 mv "$ac_tmp/config.h" "$ac_file" \ 23159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23160 fi 23161 else 23162 printf "%s\n" "/* $configure_input */" >&1 \ 23163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23164 || as_fn_error $? "could not create -" "$LINENO" 5 23165 fi 23166 # Compute "$ac_file"'s index in $config_headers. 23167 _am_arg="$ac_file" 23168 _am_stamp_count=1 23169 for _am_header in $config_headers :; do 23170 case $_am_header in 23171 $_am_arg | $_am_arg:* ) 23172 break ;; 23173 * ) 23174 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23175 esac 23176 done 23177 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23178 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23179 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23180 X"$_am_arg" : 'X\(//\)$' \| \ 23181 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23182 printf "%s\n" X"$_am_arg" | 23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23184 s//\1/ 23185 q 23186 } 23187 /^X\(\/\/\)[^/].*/{ 23188 s//\1/ 23189 q 23190 } 23191 /^X\(\/\/\)$/{ 23192 s//\1/ 23193 q 23194 } 23195 /^X\(\/\).*/{ 23196 s//\1/ 23197 q 23198 } 23199 s/.*/./; q'`/stamp-h$_am_stamp_count 23200 ;; 23201 23202 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23203 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23204 ;; 23205 esac 23206 23207 23208 case $ac_file$ac_mode in 23209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23210 # Older Autoconf quotes --file arguments for eval, but not when files 23211 # are listed without --file. Let's play safe and only enable the eval 23212 # if we detect the quoting. 23213 # TODO: see whether this extra hack can be removed once we start 23214 # requiring Autoconf 2.70 or later. 23215 case $CONFIG_FILES in #( 23216 *\'*) : 23217 eval set x "$CONFIG_FILES" ;; #( 23218 *) : 23219 set x $CONFIG_FILES ;; #( 23220 *) : 23221 ;; 23222 esac 23223 shift 23224 # Used to flag and report bootstrapping failures. 23225 am_rc=0 23226 for am_mf 23227 do 23228 # Strip MF so we end up with the name of the file. 23229 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23230 # Check whether this is an Automake generated Makefile which includes 23231 # dependency-tracking related rules and includes. 23232 # Grep'ing the whole file directly is not great: AIX grep has a line 23233 # limit of 2048, but all sed's we know have understand at least 4000. 23234 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23235 || continue 23236 am_dirpart=`$as_dirname -- "$am_mf" || 23237 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23238 X"$am_mf" : 'X\(//\)[^/]' \| \ 23239 X"$am_mf" : 'X\(//\)$' \| \ 23240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23241 printf "%s\n" X"$am_mf" | 23242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23243 s//\1/ 23244 q 23245 } 23246 /^X\(\/\/\)[^/].*/{ 23247 s//\1/ 23248 q 23249 } 23250 /^X\(\/\/\)$/{ 23251 s//\1/ 23252 q 23253 } 23254 /^X\(\/\).*/{ 23255 s//\1/ 23256 q 23257 } 23258 s/.*/./; q'` 23259 am_filepart=`$as_basename -- "$am_mf" || 23260 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23261 X"$am_mf" : 'X\(//\)$' \| \ 23262 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23263 printf "%s\n" X/"$am_mf" | 23264 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23265 s//\1/ 23266 q 23267 } 23268 /^X\/\(\/\/\)$/{ 23269 s//\1/ 23270 q 23271 } 23272 /^X\/\(\/\).*/{ 23273 s//\1/ 23274 q 23275 } 23276 s/.*/./; q'` 23277 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23278 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23279 | $MAKE -f - am--depfiles" >&5 23280 (cd "$am_dirpart" \ 23281 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23282 | $MAKE -f - am--depfiles) >&5 2>&5 23283 ac_status=$? 23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23285 (exit $ac_status); } || am_rc=$? 23286 done 23287 if test $am_rc -ne 0; then 23288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23289 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23290 as_fn_error $? "Something went wrong bootstrapping makefile fragments 23291 for automatic dependency tracking. If GNU make was not used, consider 23292 re-running the configure script with MAKE=\"gmake\" (or whatever is 23293 necessary). You can also try re-running configure with the 23294 '--disable-dependency-tracking' option to at least be able to build 23295 the package (albeit without support for automatic dependency tracking). 23296 See 'config.log' for more details" "$LINENO" 5; } 23297 fi 23298 { am_dirpart=; unset am_dirpart;} 23299 { am_filepart=; unset am_filepart;} 23300 { am_mf=; unset am_mf;} 23301 { am_rc=; unset am_rc;} 23302 rm -f conftest-deps.mk 23303 } 23304 ;; 23305 "libtool":C) 23306 23307 # See if we are running on zsh, and set the options that allow our 23308 # commands through without removal of \ escapes. 23309 if test -n "${ZSH_VERSION+set}"; then 23310 setopt NO_GLOB_SUBST 23311 fi 23312 23313 cfgfile=${ofile}T 23314 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23315 $RM "$cfgfile" 23316 23317 cat <<_LT_EOF >> "$cfgfile" 23318 #! $SHELL 23319 # Generated automatically by $as_me ($PACKAGE) $VERSION 23320 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 23321 23322 # Provide generalized library-building support services. 23323 # Written by Gordon Matzigkeit, 1996 23324 23325 # Copyright (C) 2024 Free Software Foundation, Inc. 23326 # This is free software; see the source for copying conditions. There is NO 23327 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23328 23329 # GNU Libtool is free software; you can redistribute it and/or modify 23330 # it under the terms of the GNU General Public License as published by 23331 # the Free Software Foundation; either version 2 of the License, or 23332 # (at your option) any later version. 23333 # 23334 # As a special exception to the GNU General Public License, if you 23335 # distribute this file as part of a program or library that is built 23336 # using GNU Libtool, you may include this file under the same 23337 # distribution terms that you use for the rest of that program. 23338 # 23339 # GNU Libtool is distributed in the hope that it will be useful, but 23340 # WITHOUT ANY WARRANTY; without even the implied warranty of 23341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23342 # GNU General Public License for more details. 23343 # 23344 # You should have received a copy of the GNU General Public License 23345 # along with this program. If not, see <http://www.gnu.org/licenses/>. 23346 23347 23348 # The names of the tagged configurations supported by this script. 23349 available_tags='' 23350 23351 # Configured defaults for sys_lib_dlsearch_path munging. 23352 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23353 23354 # ### BEGIN LIBTOOL CONFIG 23355 23356 # Which release of libtool.m4 was used? 23357 macro_version=$macro_version 23358 macro_revision=$macro_revision 23359 23360 # Whether or not to build shared libraries. 23361 build_libtool_libs=$enable_shared 23362 23363 # Whether or not to build static libraries. 23364 build_old_libs=$enable_static 23365 23366 # What type of objects to build. 23367 pic_mode=$pic_mode 23368 23369 # Whether or not to optimize for fast installation. 23370 fast_install=$enable_fast_install 23371 23372 # Shared archive member basename,for filename based shared library versioning on AIX. 23373 shared_archive_member_spec=$shared_archive_member_spec 23374 23375 # Shell to use when invoking shell scripts. 23376 SHELL=$lt_SHELL 23377 23378 # An echo program that protects backslashes. 23379 ECHO=$lt_ECHO 23380 23381 # The PATH separator for the build system. 23382 PATH_SEPARATOR=$lt_PATH_SEPARATOR 23383 23384 # The host system. 23385 host_alias=$host_alias 23386 host=$host 23387 host_os=$host_os 23388 23389 # The build system. 23390 build_alias=$build_alias 23391 build=$build 23392 build_os=$build_os 23393 23394 # A sed program that does not truncate output. 23395 SED=$lt_SED 23396 23397 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 23398 Xsed="\$SED -e 1s/^X//" 23399 23400 # A grep program that handles long lines. 23401 GREP=$lt_GREP 23402 23403 # An ERE matcher. 23404 EGREP=$lt_EGREP 23405 23406 # A literal string matcher. 23407 FGREP=$lt_FGREP 23408 23409 # A BSD- or MS-compatible name lister. 23410 NM=$lt_NM 23411 23412 # Whether we need soft or hard links. 23413 LN_S=$lt_LN_S 23414 23415 # What is the maximum length of a command? 23416 max_cmd_len=$max_cmd_len 23417 23418 # Object file suffix (normally "o"). 23419 objext=$ac_objext 23420 23421 # Executable file suffix (normally ""). 23422 exeext=$exeext 23423 23424 # whether the shell understands "unset". 23425 lt_unset=$lt_unset 23426 23427 # turn spaces into newlines. 23428 SP2NL=$lt_lt_SP2NL 23429 23430 # turn newlines into spaces. 23431 NL2SP=$lt_lt_NL2SP 23432 23433 # convert \$build file names to \$host format. 23434 to_host_file_cmd=$lt_cv_to_host_file_cmd 23435 23436 # convert \$build files to toolchain format. 23437 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23438 23439 # A file(cmd) program that detects file types. 23440 FILECMD=$lt_FILECMD 23441 23442 # An object symbol dumper. 23443 OBJDUMP=$lt_OBJDUMP 23444 23445 # Method to check whether dependent libraries are shared objects. 23446 deplibs_check_method=$lt_deplibs_check_method 23447 23448 # Command to use when deplibs_check_method = "file_magic". 23449 file_magic_cmd=$lt_file_magic_cmd 23450 23451 # How to find potential files when deplibs_check_method = "file_magic". 23452 file_magic_glob=$lt_file_magic_glob 23453 23454 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23455 want_nocaseglob=$lt_want_nocaseglob 23456 23457 # DLL creation program. 23458 DLLTOOL=$lt_DLLTOOL 23459 23460 # Command to associate shared and link libraries. 23461 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23462 23463 # The archiver. 23464 AR=$lt_AR 23465 23466 # Flags to create an archive (by configure). 23467 lt_ar_flags=$lt_ar_flags 23468 23469 # Flags to create an archive. 23470 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23471 23472 # How to feed a file listing to the archiver. 23473 archiver_list_spec=$lt_archiver_list_spec 23474 23475 # A symbol stripping program. 23476 STRIP=$lt_STRIP 23477 23478 # Commands used to install an old-style archive. 23479 RANLIB=$lt_RANLIB 23480 old_postinstall_cmds=$lt_old_postinstall_cmds 23481 old_postuninstall_cmds=$lt_old_postuninstall_cmds 23482 23483 # Whether to use a lock for old archive extraction. 23484 lock_old_archive_extraction=$lock_old_archive_extraction 23485 23486 # A C compiler. 23487 LTCC=$lt_CC 23488 23489 # LTCC compiler flags. 23490 LTCFLAGS=$lt_CFLAGS 23491 23492 # Take the output of nm and produce a listing of raw symbols and C names. 23493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23494 23495 # Transform the output of nm in a proper C declaration. 23496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23497 23498 # Transform the output of nm into a list of symbols to manually relocate. 23499 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23500 23501 # Transform the output of nm in a C name address pair. 23502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23503 23504 # Transform the output of nm in a C name address pair when lib prefix is needed. 23505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23506 23507 # The name lister interface. 23508 nm_interface=$lt_lt_cv_nm_interface 23509 23510 # Specify filename containing input files for \$NM. 23511 nm_file_list_spec=$lt_nm_file_list_spec 23512 23513 # The root where to search for dependent libraries,and where our libraries should be installed. 23514 lt_sysroot=$lt_sysroot 23515 23516 # Command to truncate a binary pipe. 23517 lt_truncate_bin=$lt_lt_cv_truncate_bin 23518 23519 # The name of the directory that contains temporary libtool files. 23520 objdir=$objdir 23521 23522 # Used to examine libraries when file_magic_cmd begins with "file". 23523 MAGIC_CMD=$MAGIC_CMD 23524 23525 # Must we lock files when doing compilation? 23526 need_locks=$lt_need_locks 23527 23528 # Manifest tool. 23529 MANIFEST_TOOL=$lt_MANIFEST_TOOL 23530 23531 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23532 DSYMUTIL=$lt_DSYMUTIL 23533 23534 # Tool to change global to local symbols on Mac OS X. 23535 NMEDIT=$lt_NMEDIT 23536 23537 # Tool to manipulate fat objects and archives on Mac OS X. 23538 LIPO=$lt_LIPO 23539 23540 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 23541 OTOOL=$lt_OTOOL 23542 23543 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23544 OTOOL64=$lt_OTOOL64 23545 23546 # Old archive suffix (normally "a"). 23547 libext=$libext 23548 23549 # Shared library suffix (normally ".so"). 23550 shrext_cmds=$lt_shrext_cmds 23551 23552 # The commands to extract the exported symbol list from a shared archive. 23553 extract_expsyms_cmds=$lt_extract_expsyms_cmds 23554 23555 # Variables whose values should be saved in libtool wrapper scripts and 23556 # restored at link time. 23557 variables_saved_for_relink=$lt_variables_saved_for_relink 23558 23559 # Do we need the "lib" prefix for modules? 23560 need_lib_prefix=$need_lib_prefix 23561 23562 # Do we need a version for libraries? 23563 need_version=$need_version 23564 23565 # Library versioning type. 23566 version_type=$version_type 23567 23568 # Shared library runtime path variable. 23569 runpath_var=$runpath_var 23570 23571 # Shared library path variable. 23572 shlibpath_var=$shlibpath_var 23573 23574 # Is shlibpath searched before the hard-coded library search path? 23575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23576 23577 # Format of library name prefix. 23578 libname_spec=$lt_libname_spec 23579 23580 # List of archive names. First name is the real one, the rest are links. 23581 # The last name is the one that the linker finds with -lNAME 23582 library_names_spec=$lt_library_names_spec 23583 23584 # The coded name of the library, if different from the real name. 23585 soname_spec=$lt_soname_spec 23586 23587 # Permission mode override for installation of shared libraries. 23588 install_override_mode=$lt_install_override_mode 23589 23590 # Command to use after installation of a shared archive. 23591 postinstall_cmds=$lt_postinstall_cmds 23592 23593 # Command to use after uninstallation of a shared archive. 23594 postuninstall_cmds=$lt_postuninstall_cmds 23595 23596 # Commands used to finish a libtool library installation in a directory. 23597 finish_cmds=$lt_finish_cmds 23598 23599 # As "finish_cmds", except a single script fragment to be evaled but 23600 # not shown. 23601 finish_eval=$lt_finish_eval 23602 23603 # Whether we should hardcode library paths into libraries. 23604 hardcode_into_libs=$hardcode_into_libs 23605 23606 # Compile-time system search path for libraries. 23607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23608 23609 # Detected run-time system search path for libraries. 23610 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23611 23612 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23613 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23614 23615 # Whether dlopen is supported. 23616 dlopen_support=$enable_dlopen 23617 23618 # Whether dlopen of programs is supported. 23619 dlopen_self=$enable_dlopen_self 23620 23621 # Whether dlopen of statically linked programs is supported. 23622 dlopen_self_static=$enable_dlopen_self_static 23623 23624 # Commands to strip libraries. 23625 old_striplib=$lt_old_striplib 23626 striplib=$lt_striplib 23627 23628 23629 # The linker used to build libraries. 23630 LD=$lt_LD 23631 23632 # How to create reloadable object files. 23633 reload_flag=$lt_reload_flag 23634 reload_cmds=$lt_reload_cmds 23635 23636 # Commands used to build an old-style archive. 23637 old_archive_cmds=$lt_old_archive_cmds 23638 23639 # A language specific compiler. 23640 CC=$lt_compiler 23641 23642 # Is the compiler the GNU compiler? 23643 with_gcc=$GCC 23644 23645 # Compiler flag to turn off builtin functions. 23646 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23647 23648 # Additional compiler flags for building library objects. 23649 pic_flag=$lt_lt_prog_compiler_pic 23650 23651 # How to pass a linker flag through the compiler. 23652 wl=$lt_lt_prog_compiler_wl 23653 23654 # Compiler flag to prevent dynamic linking. 23655 link_static_flag=$lt_lt_prog_compiler_static 23656 23657 # Does compiler simultaneously support -c and -o options? 23658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23659 23660 # Whether or not to add -lc for building shared libraries. 23661 build_libtool_need_lc=$archive_cmds_need_lc 23662 23663 # Whether or not to disallow shared libs when runtime libs are static. 23664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23665 23666 # Compiler flag to allow reflexive dlopens. 23667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23668 23669 # Compiler flag to generate shared objects directly from archives. 23670 whole_archive_flag_spec=$lt_whole_archive_flag_spec 23671 23672 # Whether the compiler copes with passing no objects directly. 23673 compiler_needs_object=$lt_compiler_needs_object 23674 23675 # Create an old-style archive from a shared archive. 23676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23677 23678 # Create a temporary old-style archive to link instead of a shared archive. 23679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23680 23681 # Commands used to build a shared archive. 23682 archive_cmds=$lt_archive_cmds 23683 archive_expsym_cmds=$lt_archive_expsym_cmds 23684 23685 # Commands used to build a loadable module if different from building 23686 # a shared archive. 23687 module_cmds=$lt_module_cmds 23688 module_expsym_cmds=$lt_module_expsym_cmds 23689 23690 # Whether we are building with GNU ld or not. 23691 with_gnu_ld=$lt_with_gnu_ld 23692 23693 # Flag that allows shared libraries with undefined symbols to be built. 23694 allow_undefined_flag=$lt_allow_undefined_flag 23695 23696 # Flag that enforces no undefined symbols. 23697 no_undefined_flag=$lt_no_undefined_flag 23698 23699 # Flag to hardcode \$libdir into a binary during linking. 23700 # This must work even if \$libdir does not exist 23701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23702 23703 # Whether we need a single "-rpath" flag with a separated argument. 23704 hardcode_libdir_separator=$lt_hardcode_libdir_separator 23705 23706 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23707 # DIR into the resulting binary. 23708 hardcode_direct=$hardcode_direct 23709 23710 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23711 # DIR into the resulting binary and the resulting library dependency is 23712 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 23713 # library is relocated. 23714 hardcode_direct_absolute=$hardcode_direct_absolute 23715 23716 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23717 # into the resulting binary. 23718 hardcode_minus_L=$hardcode_minus_L 23719 23720 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23721 # into the resulting binary. 23722 hardcode_shlibpath_var=$hardcode_shlibpath_var 23723 23724 # Set to "yes" if building a shared library automatically hardcodes DIR 23725 # into the library and all subsequent libraries and executables linked 23726 # against it. 23727 hardcode_automatic=$hardcode_automatic 23728 23729 # Set to yes if linker adds runtime paths of dependent libraries 23730 # to runtime path list. 23731 inherit_rpath=$inherit_rpath 23732 23733 # Whether libtool must link a program against all its dependency libraries. 23734 link_all_deplibs=$link_all_deplibs 23735 23736 # Set to "yes" if exported symbols are required. 23737 always_export_symbols=$always_export_symbols 23738 23739 # The commands to list exported symbols. 23740 export_symbols_cmds=$lt_export_symbols_cmds 23741 23742 # Symbols that should not be listed in the preloaded symbols. 23743 exclude_expsyms=$lt_exclude_expsyms 23744 23745 # Symbols that must always be exported. 23746 include_expsyms=$lt_include_expsyms 23747 23748 # Commands necessary for linking programs (against libraries) with templates. 23749 prelink_cmds=$lt_prelink_cmds 23750 23751 # Commands necessary for finishing linking programs. 23752 postlink_cmds=$lt_postlink_cmds 23753 23754 # Specify filename containing input files. 23755 file_list_spec=$lt_file_list_spec 23756 23757 # How to hardcode a shared library path into an executable. 23758 hardcode_action=$hardcode_action 23759 23760 # ### END LIBTOOL CONFIG 23761 23762 _LT_EOF 23763 23764 cat <<'_LT_EOF' >> "$cfgfile" 23765 23766 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23767 23768 # func_munge_path_list VARIABLE PATH 23769 # ----------------------------------- 23770 # VARIABLE is name of variable containing _space_ separated list of 23771 # directories to be munged by the contents of PATH, which is string 23772 # having a format: 23773 # "DIR[:DIR]:" 23774 # string "DIR[ DIR]" will be prepended to VARIABLE 23775 # ":DIR[:DIR]" 23776 # string "DIR[ DIR]" will be appended to VARIABLE 23777 # "DIRP[:DIRP]::[DIRA:]DIRA" 23778 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23779 # "DIRA[ DIRA]" will be appended to VARIABLE 23780 # "DIR[:DIR]" 23781 # VARIABLE will be replaced by "DIR[ DIR]" 23782 func_munge_path_list () 23783 { 23784 case x$2 in 23785 x) 23786 ;; 23787 *:) 23788 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23789 ;; 23790 x:*) 23791 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23792 ;; 23793 *::*) 23794 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23795 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23796 ;; 23797 *) 23798 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23799 ;; 23800 esac 23801 } 23802 23803 23804 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23805 func_cc_basename () 23806 { 23807 for cc_temp in $*""; do 23808 case $cc_temp in 23809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23811 \-*) ;; 23812 *) break;; 23813 esac 23814 done 23815 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23816 } 23817 23818 23819 # ### END FUNCTIONS SHARED WITH CONFIGURE 23820 23821 _LT_EOF 23822 23823 case $host_os in 23824 aix3*) 23825 cat <<\_LT_EOF >> "$cfgfile" 23826 # AIX sometimes has problems with the GCC collect2 program. For some 23827 # reason, if we set the COLLECT_NAMES environment variable, the problems 23828 # vanish in a puff of smoke. 23829 if test set != "${COLLECT_NAMES+set}"; then 23830 COLLECT_NAMES= 23831 export COLLECT_NAMES 23832 fi 23833 _LT_EOF 23834 ;; 23835 esac 23836 23837 23838 23839 ltmain=$ac_aux_dir/ltmain.sh 23840 23841 23842 # We use sed instead of cat because bash on DJGPP gets confused if 23843 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23844 # text mode, it properly converts lines to CR/LF. This bash problem 23845 # is reportedly fixed, but why not run on old versions too? 23846 $SED '$q' "$ltmain" >> "$cfgfile" \ 23847 || (rm -f "$cfgfile"; exit 1) 23848 23849 mv -f "$cfgfile" "$ofile" || 23850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23851 chmod +x "$ofile" 23852 23853 ;; 23854 23855 esac 23856 done # for ac_tag 23857 23858 23859 as_fn_exit 0 23860 _ACEOF 23861 ac_clean_files=$ac_clean_files_save 23862 23863 test $ac_write_fail = 0 || 23864 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23865 23866 23867 # configure is writing to config.log, and then calls config.status. 23868 # config.status does its own redirection, appending to config.log. 23869 # Unfortunately, on DOS this fails, as config.log is still kept open 23870 # by configure, so config.status won't be able to write to it; its 23871 # output is simply discarded. So we exec the FD to /dev/null, 23872 # effectively closing config.log, so it can be properly (re)opened and 23873 # appended to by config.status. When coming back to configure, we 23874 # need to make the FD available again. 23875 if test "$no_create" != yes; then 23876 ac_cs_success=: 23877 ac_config_status_args= 23878 test "$silent" = yes && 23879 ac_config_status_args="$ac_config_status_args --quiet" 23880 exec 5>/dev/null 23881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23882 exec 5>>config.log 23883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23884 # would make configure fail if this is the last instruction. 23885 $ac_cs_success || as_fn_exit 1 23886 fi 23887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23889 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23890 fi 23891 23892 23893