1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXext 1.3.7. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/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/libxext/-/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='libXext' 677 PACKAGE_TARNAME='libXext' 678 PACKAGE_VERSION='1.3.7' 679 PACKAGE_STRING='libXext 1.3.7' 680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxext/-/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 MAKE_LINT_LIB_FALSE 720 MAKE_LINT_LIB_TRUE 721 LINTLIB 722 LINT_FALSE 723 LINT_TRUE 724 LINT_FLAGS 725 LINT 726 LIBOBJS 727 XEXT_LIBS 728 XEXT_CFLAGS 729 XEXT_SOREV 730 XTMALLOC_ZERO_CFLAGS 731 XMALLOC_ZERO_CFLAGS 732 MALLOC_ZERO_CFLAGS 733 HAVE_STYLESHEETS_FALSE 734 HAVE_STYLESHEETS_TRUE 735 XSL_STYLESHEET 736 STYLESHEET_SRCDIR 737 XORG_SGML_PATH 738 HAVE_XSLTPROC_FALSE 739 HAVE_XSLTPROC_TRUE 740 XSLTPROC 741 HAVE_FOP_FALSE 742 HAVE_FOP_TRUE 743 FOP 744 HAVE_XMLTO_FALSE 745 HAVE_XMLTO_TRUE 746 HAVE_XMLTO_TEXT_FALSE 747 HAVE_XMLTO_TEXT_TRUE 748 XMLTO 749 ENABLE_SPECS_FALSE 750 ENABLE_SPECS_TRUE 751 MAN_SUBSTS 752 XORG_MAN_PAGE 753 ADMIN_MAN_DIR 754 DRIVER_MAN_DIR 755 MISC_MAN_DIR 756 FILE_MAN_DIR 757 LIB_MAN_DIR 758 APP_MAN_DIR 759 ADMIN_MAN_SUFFIX 760 DRIVER_MAN_SUFFIX 761 MISC_MAN_SUFFIX 762 FILE_MAN_SUFFIX 763 LIB_MAN_SUFFIX 764 APP_MAN_SUFFIX 765 INSTALL_CMD 766 PKG_CONFIG_LIBDIR 767 PKG_CONFIG_PATH 768 PKG_CONFIG 769 CHANGELOG_CMD 770 STRICT_CFLAGS 771 CWARNFLAGS 772 BASE_CFLAGS 773 LT_SYS_LIBRARY_PATH 774 OTOOL64 775 OTOOL 776 LIPO 777 NMEDIT 778 DSYMUTIL 779 MANIFEST_TOOL 780 RANLIB 781 ac_ct_AR 782 AR 783 DLLTOOL 784 OBJDUMP 785 FILECMD 786 LN_S 787 NM 788 ac_ct_DUMPBIN 789 DUMPBIN 790 LD 791 FGREP 792 EGREP 793 GREP 794 SED 795 host_os 796 host_vendor 797 host_cpu 798 host 799 build_os 800 build_vendor 801 build_cpu 802 build 803 LIBTOOL 804 am__xargs_n 805 am__rm_f_notfound 806 AM_BACKSLASH 807 AM_DEFAULT_VERBOSITY 808 AM_DEFAULT_V 809 AM_V 810 CSCOPE 811 ETAGS 812 CTAGS 813 am__fastdepCC_FALSE 814 am__fastdepCC_TRUE 815 CCDEPMODE 816 am__nodep 817 AMDEPBACKSLASH 818 AMDEP_FALSE 819 AMDEP_TRUE 820 am__include 821 DEPDIR 822 am__untar 823 am__tar 824 AMTAR 825 am__leading_dot 826 SET_MAKE 827 AWK 828 mkdir_p 829 MKDIR_P 830 INSTALL_STRIP_PROGRAM 831 STRIP 832 install_sh 833 MAKEINFO 834 AUTOHEADER 835 AUTOMAKE 836 AUTOCONF 837 ACLOCAL 838 VERSION 839 PACKAGE 840 CYGPATH_W 841 am__isrc 842 INSTALL_DATA 843 INSTALL_SCRIPT 844 INSTALL_PROGRAM 845 OBJEXT 846 EXEEXT 847 ac_ct_CC 848 CPPFLAGS 849 LDFLAGS 850 CFLAGS 851 CC 852 target_alias 853 host_alias 854 build_alias 855 LIBS 856 ECHO_T 857 ECHO_N 858 ECHO_C 859 DEFS 860 mandir 861 localedir 862 libdir 863 psdir 864 pdfdir 865 dvidir 866 htmldir 867 infodir 868 docdir 869 oldincludedir 870 includedir 871 runstatedir 872 localstatedir 873 sharedstatedir 874 sysconfdir 875 datadir 876 datarootdir 877 libexecdir 878 sbindir 879 bindir 880 program_transform_name 881 prefix 882 exec_prefix 883 PACKAGE_URL 884 PACKAGE_BUGREPORT 885 PACKAGE_STRING 886 PACKAGE_VERSION 887 PACKAGE_TARNAME 888 PACKAGE_NAME 889 PATH_SEPARATOR 890 SHELL 891 am__quote' 892 ac_subst_files='' 893 ac_user_opts=' 894 enable_option_checking 895 enable_dependency_tracking 896 enable_silent_rules 897 enable_shared 898 enable_static 899 enable_pic 900 with_pic 901 enable_fast_install 902 enable_aix_soname 903 with_aix_soname 904 with_gnu_ld 905 with_sysroot 906 enable_libtool_lock 907 enable_selective_werror 908 enable_strict_compilation 909 enable_specs 910 with_xmlto 911 with_fop 912 with_xsltproc 913 enable_malloc0returnsnull 914 with_lint 915 enable_lint_library 916 ' 917 ac_precious_vars='build_alias 918 host_alias 919 target_alias 920 CC 921 CFLAGS 922 LDFLAGS 923 LIBS 924 CPPFLAGS 925 LT_SYS_LIBRARY_PATH 926 PKG_CONFIG 927 PKG_CONFIG_PATH 928 PKG_CONFIG_LIBDIR 929 XMLTO 930 FOP 931 XSLTPROC 932 XEXT_CFLAGS 933 XEXT_LIBS 934 LINT 935 LINT_FLAGS' 936 937 938 # Initialize some variables set by options. 939 ac_init_help= 940 ac_init_version=false 941 ac_unrecognized_opts= 942 ac_unrecognized_sep= 943 # The variables have the same names as the options, with 944 # dashes changed to underlines. 945 cache_file=/dev/null 946 exec_prefix=NONE 947 no_create= 948 no_recursion= 949 prefix=NONE 950 program_prefix=NONE 951 program_suffix=NONE 952 program_transform_name=s,x,x, 953 silent= 954 site= 955 srcdir= 956 verbose= 957 x_includes=NONE 958 x_libraries=NONE 959 960 # Installation directory options. 961 # These are left unexpanded so users can "make install exec_prefix=/foo" 962 # and all the variables that are supposed to be based on exec_prefix 963 # by default will actually change. 964 # Use braces instead of parens because sh, perl, etc. also accept them. 965 # (The list follows the same order as the GNU Coding Standards.) 966 bindir='${exec_prefix}/bin' 967 sbindir='${exec_prefix}/sbin' 968 libexecdir='${exec_prefix}/libexec' 969 datarootdir='${prefix}/share' 970 datadir='${datarootdir}' 971 sysconfdir='${prefix}/etc' 972 sharedstatedir='${prefix}/com' 973 localstatedir='${prefix}/var' 974 runstatedir='${localstatedir}/run' 975 includedir='${prefix}/include' 976 oldincludedir='/usr/include' 977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 978 infodir='${datarootdir}/info' 979 htmldir='${docdir}' 980 dvidir='${docdir}' 981 pdfdir='${docdir}' 982 psdir='${docdir}' 983 libdir='${exec_prefix}/lib' 984 localedir='${datarootdir}/locale' 985 mandir='${datarootdir}/man' 986 987 ac_prev= 988 ac_dashdash= 989 for ac_option 990 do 991 # If the previous option needs an argument, assign it. 992 if test -n "$ac_prev"; then 993 eval $ac_prev=\$ac_option 994 ac_prev= 995 continue 996 fi 997 998 case $ac_option in 999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1000 *=) ac_optarg= ;; 1001 *) ac_optarg=yes ;; 1002 esac 1003 1004 case $ac_dashdash$ac_option in 1005 --) 1006 ac_dashdash=yes ;; 1007 1008 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1009 ac_prev=bindir ;; 1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1011 bindir=$ac_optarg ;; 1012 1013 -build | --build | --buil | --bui | --bu) 1014 ac_prev=build_alias ;; 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1016 build_alias=$ac_optarg ;; 1017 1018 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1020 ac_prev=cache_file ;; 1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1023 cache_file=$ac_optarg ;; 1024 1025 --config-cache | -C) 1026 cache_file=config.cache ;; 1027 1028 -datadir | --datadir | --datadi | --datad) 1029 ac_prev=datadir ;; 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1031 datadir=$ac_optarg ;; 1032 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1034 | --dataroo | --dataro | --datar) 1035 ac_prev=datarootdir ;; 1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1038 datarootdir=$ac_optarg ;; 1039 1040 -disable-* | --disable-*) 1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1044 as_fn_error $? "invalid feature name: '$ac_useropt'" 1045 ac_useropt_orig=$ac_useropt 1046 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1047 case $ac_user_opts in 1048 *" 1049 "enable_$ac_useropt" 1050 "*) ;; 1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1052 ac_unrecognized_sep=', ';; 1053 esac 1054 eval enable_$ac_useropt=no ;; 1055 1056 -docdir | --docdir | --docdi | --doc | --do) 1057 ac_prev=docdir ;; 1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1059 docdir=$ac_optarg ;; 1060 1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1062 ac_prev=dvidir ;; 1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1064 dvidir=$ac_optarg ;; 1065 1066 -enable-* | --enable-*) 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 as_fn_error $? "invalid feature name: '$ac_useropt'" 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075 "enable_$ac_useropt" 1076 "*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1226 | --runstate | --runstat | --runsta | --runst | --runs \ 1227 | --run | --ru | --r) 1228 ac_prev=runstatedir ;; 1229 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1230 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1231 | --run=* | --ru=* | --r=*) 1232 runstatedir=$ac_optarg ;; 1233 1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1235 ac_prev=sbindir ;; 1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1237 | --sbi=* | --sb=*) 1238 sbindir=$ac_optarg ;; 1239 1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1242 | --sharedst | --shareds | --shared | --share | --shar \ 1243 | --sha | --sh) 1244 ac_prev=sharedstatedir ;; 1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1248 | --sha=* | --sh=*) 1249 sharedstatedir=$ac_optarg ;; 1250 1251 -site | --site | --sit) 1252 ac_prev=site ;; 1253 -site=* | --site=* | --sit=*) 1254 site=$ac_optarg ;; 1255 1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1257 ac_prev=srcdir ;; 1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1259 srcdir=$ac_optarg ;; 1260 1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1262 | --syscon | --sysco | --sysc | --sys | --sy) 1263 ac_prev=sysconfdir ;; 1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1266 sysconfdir=$ac_optarg ;; 1267 1268 -target | --target | --targe | --targ | --tar | --ta | --t) 1269 ac_prev=target_alias ;; 1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1271 target_alias=$ac_optarg ;; 1272 1273 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1274 verbose=yes ;; 1275 1276 -version | --version | --versio | --versi | --vers | -V) 1277 ac_init_version=: ;; 1278 1279 -with-* | --with-*) 1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1281 # Reject names that are not valid shell variable names. 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1283 as_fn_error $? "invalid package name: '$ac_useropt'" 1284 ac_useropt_orig=$ac_useropt 1285 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1286 case $ac_user_opts in 1287 *" 1288 "with_$ac_useropt" 1289 "*) ;; 1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1291 ac_unrecognized_sep=', ';; 1292 esac 1293 eval with_$ac_useropt=\$ac_optarg ;; 1294 1295 -without-* | --without-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 as_fn_error $? "invalid package name: '$ac_useropt'" 1300 ac_useropt_orig=$ac_useropt 1301 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1302 case $ac_user_opts in 1303 *" 1304 "with_$ac_useropt" 1305 "*) ;; 1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1307 ac_unrecognized_sep=', ';; 1308 esac 1309 eval with_$ac_useropt=no ;; 1310 1311 --x) 1312 # Obsolete; use --with-x. 1313 with_x=yes ;; 1314 1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1316 | --x-incl | --x-inc | --x-in | --x-i) 1317 ac_prev=x_includes ;; 1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1320 x_includes=$ac_optarg ;; 1321 1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1324 ac_prev=x_libraries ;; 1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1327 x_libraries=$ac_optarg ;; 1328 1329 -*) as_fn_error $? "unrecognized option: '$ac_option' 1330 Try '$0 --help' for more information" 1331 ;; 1332 1333 *=*) 1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1335 # Reject names that are not valid shell variable names. 1336 case $ac_envvar in #( 1337 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1338 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1339 esac 1340 eval $ac_envvar=\$ac_optarg 1341 export $ac_envvar ;; 1342 1343 *) 1344 # FIXME: should be removed in autoconf 3.0. 1345 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1347 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1348 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1349 ;; 1350 1351 esac 1352 done 1353 1354 if test -n "$ac_prev"; then 1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1356 as_fn_error $? "missing argument to $ac_option" 1357 fi 1358 1359 if test -n "$ac_unrecognized_opts"; then 1360 case $enable_option_checking in 1361 no) ;; 1362 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1363 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1364 esac 1365 fi 1366 1367 # Check all directory arguments for consistency. 1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1369 datadir sysconfdir sharedstatedir localstatedir includedir \ 1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1371 libdir localedir mandir runstatedir 1372 do 1373 eval ac_val=\$$ac_var 1374 # Remove trailing slashes. 1375 case $ac_val in 1376 */ ) 1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1378 eval $ac_var=\$ac_val;; 1379 esac 1380 # Be sure to have absolute directory names. 1381 case $ac_val in 1382 [\\/$]* | ?:[\\/]* ) continue;; 1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1384 esac 1385 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1386 done 1387 1388 # There might be people who depend on the old broken behavior: '$host' 1389 # used to hold the argument of --host etc. 1390 # FIXME: To remove some day. 1391 build=$build_alias 1392 host=$host_alias 1393 target=$target_alias 1394 1395 # FIXME: To remove some day. 1396 if test "x$host_alias" != x; then 1397 if test "x$build_alias" = x; then 1398 cross_compiling=maybe 1399 elif test "x$build_alias" != "x$host_alias"; then 1400 cross_compiling=yes 1401 fi 1402 fi 1403 1404 ac_tool_prefix= 1405 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1406 1407 test "$silent" = yes && exec 6>/dev/null 1408 1409 1410 ac_pwd=`pwd` && test -n "$ac_pwd" && 1411 ac_ls_di=`ls -di .` && 1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1413 as_fn_error $? "working directory cannot be determined" 1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1415 as_fn_error $? "pwd does not report name of working directory" 1416 1417 1418 # Find the source files, if location was not specified. 1419 if test -z "$srcdir"; then 1420 ac_srcdir_defaulted=yes 1421 # Try the directory containing this script, then the parent directory. 1422 ac_confdir=`$as_dirname -- "$as_myself" || 1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1424 X"$as_myself" : 'X\(//\)[^/]' \| \ 1425 X"$as_myself" : 'X\(//\)$' \| \ 1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1427 printf "%s\n" X"$as_myself" | 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)[^/].*/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\).*/{ 1441 s//\1/ 1442 q 1443 } 1444 s/.*/./; q'` 1445 srcdir=$ac_confdir 1446 if test ! -r "$srcdir/$ac_unique_file"; then 1447 srcdir=.. 1448 fi 1449 else 1450 ac_srcdir_defaulted=no 1451 fi 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1455 fi 1456 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1457 ac_abs_confdir=`( 1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1459 pwd)` 1460 # When building in place, set srcdir=. 1461 if test "$ac_abs_confdir" = "$ac_pwd"; then 1462 srcdir=. 1463 fi 1464 # Remove unnecessary trailing slashes from srcdir. 1465 # Double slashes in file names in object file debugging info 1466 # mess up M-x gdb in Emacs. 1467 case $srcdir in 1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1469 esac 1470 for ac_var in $ac_precious_vars; do 1471 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_env_${ac_var}_value=\$${ac_var} 1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1475 done 1476 1477 # 1478 # Report the --help message. 1479 # 1480 if test "$ac_init_help" = "long"; then 1481 # Omit some internal or obsolete options to make the list less imposing. 1482 # This message is too long to be a string in the A/UX 3.1 sh. 1483 cat <<_ACEOF 1484 'configure' configures libXext 1.3.7 to adapt to many kinds of systems. 1485 1486 Usage: $0 [OPTION]... [VAR=VALUE]... 1487 1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1489 VAR=VALUE. See below for descriptions of some of the useful variables. 1490 1491 Defaults for the options are specified in brackets. 1492 1493 Configuration: 1494 -h, --help display this help and exit 1495 --help=short display options specific to this package 1496 --help=recursive display the short help of all the included packages 1497 -V, --version display version information and exit 1498 -q, --quiet, --silent do not print 'checking ...' messages 1499 --cache-file=FILE cache test results in FILE [disabled] 1500 -C, --config-cache alias for '--cache-file=config.cache' 1501 -n, --no-create do not create output files 1502 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1503 1504 Installation directories: 1505 --prefix=PREFIX install architecture-independent files in PREFIX 1506 [$ac_default_prefix] 1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1508 [PREFIX] 1509 1510 By default, 'make install' will install all the files in 1511 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1512 an installation prefix other than '$ac_default_prefix' using '--prefix', 1513 for instance '--prefix=\$HOME'. 1514 1515 For better control, use the options below. 1516 1517 Fine tuning of the installation directories: 1518 --bindir=DIR user executables [EPREFIX/bin] 1519 --sbindir=DIR system admin executables [EPREFIX/sbin] 1520 --libexecdir=DIR program executables [EPREFIX/libexec] 1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1524 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1525 --libdir=DIR object code libraries [EPREFIX/lib] 1526 --includedir=DIR C header files [PREFIX/include] 1527 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1530 --infodir=DIR info documentation [DATAROOTDIR/info] 1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1532 --mandir=DIR man documentation [DATAROOTDIR/man] 1533 --docdir=DIR documentation root [DATAROOTDIR/doc/libXext] 1534 --htmldir=DIR html documentation [DOCDIR] 1535 --dvidir=DIR dvi documentation [DOCDIR] 1536 --pdfdir=DIR pdf documentation [DOCDIR] 1537 --psdir=DIR ps documentation [DOCDIR] 1538 _ACEOF 1539 1540 cat <<\_ACEOF 1541 1542 Program names: 1543 --program-prefix=PREFIX prepend PREFIX to installed program names 1544 --program-suffix=SUFFIX append SUFFIX to installed program names 1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1546 1547 System types: 1548 --build=BUILD configure for building on BUILD [guessed] 1549 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1550 _ACEOF 1551 fi 1552 1553 if test -n "$ac_init_help"; then 1554 case $ac_init_help in 1555 short | recursive ) echo "Configuration of libXext 1.3.7:";; 1556 esac 1557 cat <<\_ACEOF 1558 1559 Optional Features: 1560 --disable-option-checking ignore unrecognized --enable/--with options 1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1563 --enable-dependency-tracking 1564 do not reject slow dependency extractors 1565 --disable-dependency-tracking 1566 speeds up one-time build 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 --disable-libtool-lock avoid locking (might break parallel builds) 1579 --disable-selective-werror 1580 Turn off selective compiler errors. (default: 1581 enabled) 1582 --enable-strict-compilation 1583 Enable all warnings from compiler and make them 1584 errors (default: disabled) 1585 --enable-specs Enable building the specs (default: yes) 1586 --enable-malloc0returnsnull 1587 assume malloc(0) can return NULL (default: yes) 1588 --enable-lint-library Create lint library (default: disabled) 1589 1590 Optional Packages: 1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1594 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1595 compiler's sysroot if not specified). 1596 --with-xmlto Use xmlto to regenerate documentation (default: 1597 auto) 1598 --with-fop Use fop to regenerate documentation (default: auto) 1599 --with-xsltproc Use xsltproc for the transformation of XML documents 1600 (default: auto) 1601 --with-lint Use a lint-style source code checker (default: 1602 disabled) 1603 1604 Some influential environment variables: 1605 CC C compiler command 1606 CFLAGS C compiler flags 1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1608 nonstandard directory <lib dir> 1609 LIBS libraries to pass to the linker, e.g. -l<library> 1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1611 you have headers in a nonstandard directory <include dir> 1612 LT_SYS_LIBRARY_PATH 1613 User-defined run-time library search path. 1614 PKG_CONFIG path to pkg-config utility 1615 PKG_CONFIG_PATH 1616 directories to add to pkg-config's search path 1617 PKG_CONFIG_LIBDIR 1618 path overriding pkg-config's built-in search path 1619 XMLTO Path to xmlto command 1620 FOP Path to fop command 1621 XSLTPROC Path to xsltproc command 1622 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1623 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1624 LINT Path to a lint-style command 1625 LINT_FLAGS Flags for the lint-style command 1626 1627 Use these variables to override the choices made by 'configure' or to help 1628 it to find libraries and programs with nonstandard names/locations. 1629 1630 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>. 1631 _ACEOF 1632 ac_status=$? 1633 fi 1634 1635 if test "$ac_init_help" = "recursive"; then 1636 # If there are subdirs, report their specific --help. 1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1638 test -d "$ac_dir" || 1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1640 continue 1641 ac_builddir=. 1642 1643 case "$ac_dir" in 1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645 *) 1646 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1647 # A ".." for each directory in $ac_dir_suffix. 1648 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1649 case $ac_top_builddir_sub in 1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1652 esac ;; 1653 esac 1654 ac_abs_top_builddir=$ac_pwd 1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1656 # for backward compatibility: 1657 ac_top_builddir=$ac_top_build_prefix 1658 1659 case $srcdir in 1660 .) # We are building in place. 1661 ac_srcdir=. 1662 ac_top_srcdir=$ac_top_builddir_sub 1663 ac_abs_top_srcdir=$ac_pwd ;; 1664 [\\/]* | ?:[\\/]* ) # Absolute name. 1665 ac_srcdir=$srcdir$ac_dir_suffix; 1666 ac_top_srcdir=$srcdir 1667 ac_abs_top_srcdir=$srcdir ;; 1668 *) # Relative name. 1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1670 ac_top_srcdir=$ac_top_build_prefix$srcdir 1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1672 esac 1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1674 1675 cd "$ac_dir" || { ac_status=$?; continue; } 1676 # Check for configure.gnu first; this name is used for a wrapper for 1677 # Metaconfig's "Configure" on case-insensitive file systems. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689 fi 1690 1691 test -n "$ac_init_help" && exit $ac_status 1692 if $ac_init_version; then 1693 cat <<\_ACEOF 1694 libXext configure 1.3.7 1695 generated by GNU Autoconf 2.72 1696 1697 Copyright (C) 2023 Free Software Foundation, Inc. 1698 This configure script is free software; the Free Software Foundation 1699 gives unlimited permission to copy, distribute and modify it. 1700 _ACEOF 1701 exit 1702 fi 1703 1704 ## ------------------------ ## 1705 ## Autoconf initialization. ## 1706 ## ------------------------ ## 1707 1708 # ac_fn_c_try_compile LINENO 1709 # -------------------------- 1710 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1711 ac_fn_c_try_compile () 1712 { 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest.beam 1715 if { { ac_try="$ac_compile" 1716 case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719 esac 1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721 printf "%s\n" "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext 1734 then : 1735 ac_retval=0 1736 else case e in #( 1737 e) printf "%s\n" "$as_me: failed program was:" >&5 1738 sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 ;; 1741 esac 1742 fi 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746 } # ac_fn_c_try_compile 1747 1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1749 # ------------------------------------------------------- 1750 # Tests whether HEADER exists and can be compiled using the include files in 1751 # INCLUDES, setting the cache variable VAR accordingly. 1752 ac_fn_c_check_header_compile () 1753 { 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756 printf %s "checking for $2... " >&6; } 1757 if eval test \${$3+y} 1758 then : 1759 printf %s "(cached) " >&6 1760 else case e in #( 1761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762 /* end confdefs.h. */ 1763 $4 1764 #include <$2> 1765 _ACEOF 1766 if ac_fn_c_try_compile "$LINENO" 1767 then : 1768 eval "$3=yes" 1769 else case e in #( 1770 e) eval "$3=no" ;; 1771 esac 1772 fi 1773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1774 esac 1775 fi 1776 eval ac_res=\$$3 1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778 printf "%s\n" "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781 } # ac_fn_c_check_header_compile 1782 1783 # ac_fn_c_try_link LINENO 1784 # ----------------------- 1785 # Try to link conftest.$ac_ext, and return whether this succeeded. 1786 ac_fn_c_try_link () 1787 { 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1790 if { { ac_try="$ac_link" 1791 case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794 esac 1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796 printf "%s\n" "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest$ac_exeext && { 1809 test "$cross_compiling" = yes || 1810 test -x conftest$ac_exeext 1811 } 1812 then : 1813 ac_retval=0 1814 else case e in #( 1815 e) printf "%s\n" "$as_me: failed program was:" >&5 1816 sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 ;; 1819 esac 1820 fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829 } # ac_fn_c_try_link 1830 1831 # ac_fn_c_check_func LINENO FUNC VAR 1832 # ---------------------------------- 1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1834 ac_fn_c_check_func () 1835 { 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838 printf %s "checking for $2... " >&6; } 1839 if eval test \${$3+y} 1840 then : 1841 printf %s "(cached) " >&6 1842 else case e in #( 1843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844 /* end confdefs.h. */ 1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847 #define $2 innocuous_$2 1848 1849 /* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (void); below. */ 1851 1852 #include <limits.h> 1853 #undef $2 1854 1855 /* Override any GCC internal prototype to avoid an error. 1856 Use char because int might match the return type of a GCC 1857 builtin and then its argument prototype would still apply. */ 1858 #ifdef __cplusplus 1859 extern "C" 1860 #endif 1861 char $2 (void); 1862 /* The GNU C library defines this for functions which it implements 1863 to always fail with ENOSYS. Some functions are actually named 1864 something starting with __ and the normal name is an alias. */ 1865 #if defined __stub_$2 || defined __stub___$2 1866 choke me 1867 #endif 1868 1869 int 1870 main (void) 1871 { 1872 return $2 (); 1873 ; 1874 return 0; 1875 } 1876 _ACEOF 1877 if ac_fn_c_try_link "$LINENO" 1878 then : 1879 eval "$3=yes" 1880 else case e in #( 1881 e) eval "$3=no" ;; 1882 esac 1883 fi 1884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1885 conftest$ac_exeext conftest.$ac_ext ;; 1886 esac 1887 fi 1888 eval ac_res=\$$3 1889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890 printf "%s\n" "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893 } # ac_fn_c_check_func 1894 1895 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1896 # ------------------------------------------------------------------ 1897 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1898 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1899 ac_fn_check_decl () 1900 { 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 as_decl_name=`echo $2|sed 's/ *(.*//'` 1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1904 printf %s "checking whether $as_decl_name is declared... " >&6; } 1905 if eval test \${$3+y} 1906 then : 1907 printf %s "(cached) " >&6 1908 else case e in #( 1909 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1910 eval ac_save_FLAGS=\$$6 1911 as_fn_append $6 " $5" 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913 /* end confdefs.h. */ 1914 $4 1915 int 1916 main (void) 1917 { 1918 #ifndef $as_decl_name 1919 #ifdef __cplusplus 1920 (void) $as_decl_use; 1921 #else 1922 (void) $as_decl_name; 1923 #endif 1924 #endif 1925 1926 ; 1927 return 0; 1928 } 1929 _ACEOF 1930 if ac_fn_c_try_compile "$LINENO" 1931 then : 1932 eval "$3=yes" 1933 else case e in #( 1934 e) eval "$3=no" ;; 1935 esac 1936 fi 1937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1938 eval $6=\$ac_save_FLAGS 1939 ;; 1940 esac 1941 fi 1942 eval ac_res=\$$3 1943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1944 printf "%s\n" "$ac_res" >&6; } 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 1947 } # ac_fn_check_decl 1948 ac_configure_args_raw= 1949 for ac_arg 1950 do 1951 case $ac_arg in 1952 *\'*) 1953 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1954 esac 1955 as_fn_append ac_configure_args_raw " '$ac_arg'" 1956 done 1957 1958 case $ac_configure_args_raw in 1959 *$as_nl*) 1960 ac_safe_unquote= ;; 1961 *) 1962 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1963 ac_unsafe_a="$ac_unsafe_z#~" 1964 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1965 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1966 esac 1967 1968 cat >config.log <<_ACEOF 1969 This file contains any messages produced by compilers while 1970 running configure, to aid debugging if configure makes a mistake. 1971 1972 It was created by libXext $as_me 1.3.7, which was 1973 generated by GNU Autoconf 2.72. Invocation command line was 1974 1975 $ $0$ac_configure_args_raw 1976 1977 _ACEOF 1978 exec 5>>config.log 1979 { 1980 cat <<_ASUNAME 1981 ## --------- ## 1982 ## Platform. ## 1983 ## --------- ## 1984 1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1986 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1987 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1988 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1989 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1990 1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1993 1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2001 2002 _ASUNAME 2003 2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005 for as_dir in $PATH 2006 do 2007 IFS=$as_save_IFS 2008 case $as_dir in #((( 2009 '') as_dir=./ ;; 2010 */) ;; 2011 *) as_dir=$as_dir/ ;; 2012 esac 2013 printf "%s\n" "PATH: $as_dir" 2014 done 2015 IFS=$as_save_IFS 2016 2017 } >&5 2018 2019 cat >&5 <<_ACEOF 2020 2021 2022 ## ----------- ## 2023 ## Core tests. ## 2024 ## ----------- ## 2025 2026 _ACEOF 2027 2028 2029 # Keep a trace of the command line. 2030 # Strip out --no-create and --no-recursion so they do not pile up. 2031 # Strip out --silent because we don't want to record it for future runs. 2032 # Also quote any args containing shell meta-characters. 2033 # Make two passes to allow for proper duplicate-argument suppression. 2034 ac_configure_args= 2035 ac_configure_args0= 2036 ac_configure_args1= 2037 ac_must_keep_next=false 2038 for ac_pass in 1 2 2039 do 2040 for ac_arg 2041 do 2042 case $ac_arg in 2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2045 | -silent | --silent | --silen | --sile | --sil) 2046 continue ;; 2047 *\'*) 2048 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2049 esac 2050 case $ac_pass in 2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2052 2) 2053 as_fn_append ac_configure_args1 " '$ac_arg'" 2054 if test $ac_must_keep_next = true; then 2055 ac_must_keep_next=false # Got value, back to normal. 2056 else 2057 case $ac_arg in 2058 *=* | --config-cache | -C | -disable-* | --disable-* \ 2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2061 | -with-* | --with-* | -without-* | --without-* | --x) 2062 case "$ac_configure_args0 " in 2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2064 esac 2065 ;; 2066 -* ) ac_must_keep_next=true ;; 2067 esac 2068 fi 2069 as_fn_append ac_configure_args " '$ac_arg'" 2070 ;; 2071 esac 2072 done 2073 done 2074 { ac_configure_args0=; unset ac_configure_args0;} 2075 { ac_configure_args1=; unset ac_configure_args1;} 2076 2077 # When interrupted or exit'd, cleanup temporary files, and complete 2078 # config.log. We remove comments because anyway the quotes in there 2079 # would cause problems or look ugly. 2080 # WARNING: Use '\'' to represent an apostrophe within the trap. 2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2082 trap 'exit_status=$? 2083 # Sanitize IFS. 2084 IFS=" "" $as_nl" 2085 # Save into config.log some information that might help in debugging. 2086 { 2087 echo 2088 2089 printf "%s\n" "## ---------------- ## 2090 ## Cache variables. ## 2091 ## ---------------- ##" 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094 ( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122 ) 2123 echo 2124 2125 printf "%s\n" "## ----------------- ## 2126 ## Output variables. ## 2127 ## ----------------- ##" 2128 echo 2129 for ac_var in $ac_subst_vars 2130 do 2131 eval ac_val=\$$ac_var 2132 case $ac_val in 2133 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2134 esac 2135 printf "%s\n" "$ac_var='\''$ac_val'\''" 2136 done | sort 2137 echo 2138 2139 if test -n "$ac_subst_files"; then 2140 printf "%s\n" "## ------------------- ## 2141 ## File substitutions. ## 2142 ## ------------------- ##" 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 printf "%s\n" "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 printf "%s\n" "## ----------- ## 2157 ## confdefs.h. ## 2158 ## ----------- ##" 2159 echo 2160 cat confdefs.h 2161 echo 2162 fi 2163 test "$ac_signal" != 0 && 2164 printf "%s\n" "$as_me: caught signal $ac_signal" 2165 printf "%s\n" "$as_me: exit $exit_status" 2166 } >&5 2167 rm -f core *.core core.conftest.* && 2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2169 exit $exit_status 2170 ' 0 2171 for ac_signal in 1 2 13 15; do 2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2173 done 2174 ac_signal=0 2175 2176 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2177 rm -f -r conftest* confdefs.h 2178 2179 printf "%s\n" "/* confdefs.h */" > confdefs.h 2180 2181 # Predefined preprocessor variables. 2182 2183 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2184 2185 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2186 2187 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2188 2189 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2190 2191 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2192 2193 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2194 2195 2196 # Let the site file select an alternate cache file if it wants to. 2197 # Prefer an explicitly selected file to automatically selected ones. 2198 if test -n "$CONFIG_SITE"; then 2199 ac_site_files="$CONFIG_SITE" 2200 elif test "x$prefix" != xNONE; then 2201 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2202 else 2203 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2204 fi 2205 2206 for ac_site_file in $ac_site_files 2207 do 2208 case $ac_site_file in #( 2209 */*) : 2210 ;; #( 2211 *) : 2212 ac_site_file=./$ac_site_file ;; 2213 esac 2214 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2216 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2217 sed 's/^/| /' "$ac_site_file" >&5 2218 . "$ac_site_file" \ 2219 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2221 as_fn_error $? "failed to load site script $ac_site_file 2222 See 'config.log' for more details" "$LINENO" 5; } 2223 fi 2224 done 2225 2226 if test -r "$cache_file"; then 2227 # Some versions of bash will fail to source /dev/null (special files 2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2231 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2232 case $cache_file in 2233 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2234 *) . "./$cache_file";; 2235 esac 2236 fi 2237 else 2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2239 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2240 >$cache_file 2241 fi 2242 2243 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2244 # Test code for whether the C compiler supports C89 (global declarations) 2245 ac_c_conftest_c89_globals=' 2246 /* Does the compiler advertise C89 conformance? 2247 Do not test the value of __STDC__, because some compilers set it to 0 2248 while being otherwise adequately conformant. */ 2249 #if !defined __STDC__ 2250 # error "Compiler does not advertise C89 conformance" 2251 #endif 2252 2253 #include <stddef.h> 2254 #include <stdarg.h> 2255 struct stat; 2256 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2257 struct buf { int x; }; 2258 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2259 static char *e (char **p, int i) 2260 { 2261 return p[i]; 2262 } 2263 static char *f (char * (*g) (char **, int), char **p, ...) 2264 { 2265 char *s; 2266 va_list v; 2267 va_start (v,p); 2268 s = g (p, va_arg (v,int)); 2269 va_end (v); 2270 return s; 2271 } 2272 2273 /* C89 style stringification. */ 2274 #define noexpand_stringify(a) #a 2275 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2276 2277 /* C89 style token pasting. Exercises some of the corner cases that 2278 e.g. old MSVC gets wrong, but not very hard. */ 2279 #define noexpand_concat(a,b) a##b 2280 #define expand_concat(a,b) noexpand_concat(a,b) 2281 extern int vA; 2282 extern int vbee; 2283 #define aye A 2284 #define bee B 2285 int *pvA = &expand_concat(v,aye); 2286 int *pvbee = &noexpand_concat(v,bee); 2287 2288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2289 function prototypes and stuff, but not \xHH hex character constants. 2290 These do not provoke an error unfortunately, instead are silently treated 2291 as an "x". The following induces an error, until -std is added to get 2292 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2293 array size at least. It is necessary to write \x00 == 0 to get something 2294 that is true only with -std. */ 2295 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2296 2297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2298 inside strings and character constants. */ 2299 #define FOO(x) '\''x'\'' 2300 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2301 2302 int test (int i, double x); 2303 struct s1 {int (*f) (int a);}; 2304 struct s2 {int (*f) (double a);}; 2305 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2306 int, int);' 2307 2308 # Test code for whether the C compiler supports C89 (body of main). 2309 ac_c_conftest_c89_main=' 2310 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2311 ' 2312 2313 # Test code for whether the C compiler supports C99 (global declarations) 2314 ac_c_conftest_c99_globals=' 2315 /* Does the compiler advertise C99 conformance? */ 2316 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2317 # error "Compiler does not advertise C99 conformance" 2318 #endif 2319 2320 // See if C++-style comments work. 2321 2322 #include <stdbool.h> 2323 extern int puts (const char *); 2324 extern int printf (const char *, ...); 2325 extern int dprintf (int, const char *, ...); 2326 extern void *malloc (size_t); 2327 extern void free (void *); 2328 2329 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2330 // dprintf is used instead of fprintf to avoid needing to declare 2331 // FILE and stderr. 2332 #define debug(...) dprintf (2, __VA_ARGS__) 2333 #define showlist(...) puts (#__VA_ARGS__) 2334 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2335 static void 2336 test_varargs_macros (void) 2337 { 2338 int x = 1234; 2339 int y = 5678; 2340 debug ("Flag"); 2341 debug ("X = %d\n", x); 2342 showlist (The first, second, and third items.); 2343 report (x>y, "x is %d but y is %d", x, y); 2344 } 2345 2346 // Check long long types. 2347 #define BIG64 18446744073709551615ull 2348 #define BIG32 4294967295ul 2349 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2350 #if !BIG_OK 2351 #error "your preprocessor is broken" 2352 #endif 2353 #if BIG_OK 2354 #else 2355 #error "your preprocessor is broken" 2356 #endif 2357 static long long int bignum = -9223372036854775807LL; 2358 static unsigned long long int ubignum = BIG64; 2359 2360 struct incomplete_array 2361 { 2362 int datasize; 2363 double data[]; 2364 }; 2365 2366 struct named_init { 2367 int number; 2368 const wchar_t *name; 2369 double average; 2370 }; 2371 2372 typedef const char *ccp; 2373 2374 static inline int 2375 test_restrict (ccp restrict text) 2376 { 2377 // Iterate through items via the restricted pointer. 2378 // Also check for declarations in for loops. 2379 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2380 continue; 2381 return 0; 2382 } 2383 2384 // Check varargs and va_copy. 2385 static bool 2386 test_varargs (const char *format, ...) 2387 { 2388 va_list args; 2389 va_start (args, format); 2390 va_list args_copy; 2391 va_copy (args_copy, args); 2392 2393 const char *str = ""; 2394 int number = 0; 2395 float fnumber = 0; 2396 2397 while (*format) 2398 { 2399 switch (*format++) 2400 { 2401 case '\''s'\'': // string 2402 str = va_arg (args_copy, const char *); 2403 break; 2404 case '\''d'\'': // int 2405 number = va_arg (args_copy, int); 2406 break; 2407 case '\''f'\'': // float 2408 fnumber = va_arg (args_copy, double); 2409 break; 2410 default: 2411 break; 2412 } 2413 } 2414 va_end (args_copy); 2415 va_end (args); 2416 2417 return *str && number && fnumber; 2418 } 2419 ' 2420 2421 # Test code for whether the C compiler supports C99 (body of main). 2422 ac_c_conftest_c99_main=' 2423 // Check bool. 2424 _Bool success = false; 2425 success |= (argc != 0); 2426 2427 // Check restrict. 2428 if (test_restrict ("String literal") == 0) 2429 success = true; 2430 char *restrict newvar = "Another string"; 2431 2432 // Check varargs. 2433 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2434 test_varargs_macros (); 2435 2436 // Check flexible array members. 2437 struct incomplete_array *ia = 2438 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2439 ia->datasize = 10; 2440 for (int i = 0; i < ia->datasize; ++i) 2441 ia->data[i] = i * 1.234; 2442 // Work around memory leak warnings. 2443 free (ia); 2444 2445 // Check named initializers. 2446 struct named_init ni = { 2447 .number = 34, 2448 .name = L"Test wide string", 2449 .average = 543.34343, 2450 }; 2451 2452 ni.number = 58; 2453 2454 int dynamic_array[ni.number]; 2455 dynamic_array[0] = argv[0][0]; 2456 dynamic_array[ni.number - 1] = 543; 2457 2458 // work around unused variable warnings 2459 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2460 || dynamic_array[ni.number - 1] != 543); 2461 ' 2462 2463 # Test code for whether the C compiler supports C11 (global declarations) 2464 ac_c_conftest_c11_globals=' 2465 /* Does the compiler advertise C11 conformance? */ 2466 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2467 # error "Compiler does not advertise C11 conformance" 2468 #endif 2469 2470 // Check _Alignas. 2471 char _Alignas (double) aligned_as_double; 2472 char _Alignas (0) no_special_alignment; 2473 extern char aligned_as_int; 2474 char _Alignas (0) _Alignas (int) aligned_as_int; 2475 2476 // Check _Alignof. 2477 enum 2478 { 2479 int_alignment = _Alignof (int), 2480 int_array_alignment = _Alignof (int[100]), 2481 char_alignment = _Alignof (char) 2482 }; 2483 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2484 2485 // Check _Noreturn. 2486 int _Noreturn does_not_return (void) { for (;;) continue; } 2487 2488 // Check _Static_assert. 2489 struct test_static_assert 2490 { 2491 int x; 2492 _Static_assert (sizeof (int) <= sizeof (long int), 2493 "_Static_assert does not work in struct"); 2494 long int y; 2495 }; 2496 2497 // Check UTF-8 literals. 2498 #define u8 syntax error! 2499 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2500 2501 // Check duplicate typedefs. 2502 typedef long *long_ptr; 2503 typedef long int *long_ptr; 2504 typedef long_ptr long_ptr; 2505 2506 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2507 struct anonymous 2508 { 2509 union { 2510 struct { int i; int j; }; 2511 struct { int k; long int l; } w; 2512 }; 2513 int m; 2514 } v1; 2515 ' 2516 2517 # Test code for whether the C compiler supports C11 (body of main). 2518 ac_c_conftest_c11_main=' 2519 _Static_assert ((offsetof (struct anonymous, i) 2520 == offsetof (struct anonymous, w.k)), 2521 "Anonymous union alignment botch"); 2522 v1.i = 2; 2523 v1.w.k = 5; 2524 ok |= v1.i != 5; 2525 ' 2526 2527 # Test code for whether the C compiler supports C11 (complete). 2528 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2529 ${ac_c_conftest_c99_globals} 2530 ${ac_c_conftest_c11_globals} 2531 2532 int 2533 main (int argc, char **argv) 2534 { 2535 int ok = 0; 2536 ${ac_c_conftest_c89_main} 2537 ${ac_c_conftest_c99_main} 2538 ${ac_c_conftest_c11_main} 2539 return ok; 2540 } 2541 " 2542 2543 # Test code for whether the C compiler supports C99 (complete). 2544 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2545 ${ac_c_conftest_c99_globals} 2546 2547 int 2548 main (int argc, char **argv) 2549 { 2550 int ok = 0; 2551 ${ac_c_conftest_c89_main} 2552 ${ac_c_conftest_c99_main} 2553 return ok; 2554 } 2555 " 2556 2557 # Test code for whether the C compiler supports C89 (complete). 2558 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2559 2560 int 2561 main (int argc, char **argv) 2562 { 2563 int ok = 0; 2564 ${ac_c_conftest_c89_main} 2565 return ok; 2566 } 2567 " 2568 2569 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2570 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2571 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2572 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2573 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2574 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2575 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2576 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2577 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2578 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2579 2580 # Auxiliary files required by this configure script. 2581 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2582 2583 # Locations in which to look for auxiliary files. 2584 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2585 2586 # Search for a directory containing all of the required auxiliary files, 2587 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2588 # If we don't find one directory that contains all the files we need, 2589 # we report the set of missing files from the *first* directory in 2590 # $ac_aux_dir_candidates and give up. 2591 ac_missing_aux_files="" 2592 ac_first_candidate=: 2593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2595 as_found=false 2596 for as_dir in $ac_aux_dir_candidates 2597 do 2598 IFS=$as_save_IFS 2599 case $as_dir in #((( 2600 '') as_dir=./ ;; 2601 */) ;; 2602 *) as_dir=$as_dir/ ;; 2603 esac 2604 as_found=: 2605 2606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2607 ac_aux_dir_found=yes 2608 ac_install_sh= 2609 for ac_aux in $ac_aux_files 2610 do 2611 # As a special case, if "install-sh" is required, that requirement 2612 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2613 # and $ac_install_sh is set appropriately for whichever one is found. 2614 if test x"$ac_aux" = x"install-sh" 2615 then 2616 if test -f "${as_dir}install-sh"; then 2617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2618 ac_install_sh="${as_dir}install-sh -c" 2619 elif test -f "${as_dir}install.sh"; then 2620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2621 ac_install_sh="${as_dir}install.sh -c" 2622 elif test -f "${as_dir}shtool"; then 2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2624 ac_install_sh="${as_dir}shtool install -c" 2625 else 2626 ac_aux_dir_found=no 2627 if $ac_first_candidate; then 2628 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2629 else 2630 break 2631 fi 2632 fi 2633 else 2634 if test -f "${as_dir}${ac_aux}"; then 2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2636 else 2637 ac_aux_dir_found=no 2638 if $ac_first_candidate; then 2639 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2640 else 2641 break 2642 fi 2643 fi 2644 fi 2645 done 2646 if test "$ac_aux_dir_found" = yes; then 2647 ac_aux_dir="$as_dir" 2648 break 2649 fi 2650 ac_first_candidate=false 2651 2652 as_found=false 2653 done 2654 IFS=$as_save_IFS 2655 if $as_found 2656 then : 2657 2658 else case e in #( 2659 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2660 esac 2661 fi 2662 2663 2664 # These three variables are undocumented and unsupported, 2665 # and are intended to be withdrawn in a future Autoconf release. 2666 # They can cause serious problems if a builder's source tree is in a directory 2667 # whose full name contains unusual characters. 2668 if test -f "${ac_aux_dir}config.guess"; then 2669 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2670 fi 2671 if test -f "${ac_aux_dir}config.sub"; then 2672 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2673 fi 2674 if test -f "$ac_aux_dir/configure"; then 2675 ac_configure="$SHELL ${ac_aux_dir}configure" 2676 fi 2677 2678 # Check that the precious variables saved in the cache have kept the same 2679 # value. 2680 ac_cache_corrupted=false 2681 for ac_var in $ac_precious_vars; do 2682 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2683 eval ac_new_set=\$ac_env_${ac_var}_set 2684 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2685 eval ac_new_val=\$ac_env_${ac_var}_value 2686 case $ac_old_set,$ac_new_set in 2687 set,) 2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2689 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2690 ac_cache_corrupted=: ;; 2691 ,set) 2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2693 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2694 ac_cache_corrupted=: ;; 2695 ,);; 2696 *) 2697 if test "x$ac_old_val" != "x$ac_new_val"; then 2698 # differences in whitespace do not lead to failure. 2699 ac_old_val_w=`echo x $ac_old_val` 2700 ac_new_val_w=`echo x $ac_new_val` 2701 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2703 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2704 ac_cache_corrupted=: 2705 else 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2707 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2708 eval $ac_var=\$ac_old_val 2709 fi 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2711 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2713 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2714 fi;; 2715 esac 2716 # Pass precious variables to config.status. 2717 if test "$ac_new_set" = set; then 2718 case $ac_new_val in 2719 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2720 *) ac_arg=$ac_var=$ac_new_val ;; 2721 esac 2722 case " $ac_configure_args " in 2723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2724 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2725 esac 2726 fi 2727 done 2728 if $ac_cache_corrupted; then 2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2730 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2732 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2733 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2734 and start over" "$LINENO" 5 2735 fi 2736 ## -------------------- ## 2737 ## Main body of script. ## 2738 ## -------------------- ## 2739 2740 ac_ext=c 2741 ac_cpp='$CPP $CPPFLAGS' 2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2745 2746 2747 2748 ac_config_headers="$ac_config_headers config.h" 2749 2750 2751 2752 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 2753 # Must be called before any macros that run the compiler (like LT_INIT) 2754 # to avoid autoconf errors. 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 # Expand $ac_aux_dir to an absolute path. 2767 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2768 2769 ac_ext=c 2770 ac_cpp='$CPP $CPPFLAGS' 2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2774 if test -n "$ac_tool_prefix"; then 2775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2776 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2778 printf %s "checking for $ac_word... " >&6; } 2779 if test ${ac_cv_prog_CC+y} 2780 then : 2781 printf %s "(cached) " >&6 2782 else case e in #( 2783 e) if test -n "$CC"; then 2784 ac_cv_prog_CC="$CC" # Let the user override the test. 2785 else 2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787 for as_dir in $PATH 2788 do 2789 IFS=$as_save_IFS 2790 case $as_dir in #((( 2791 '') as_dir=./ ;; 2792 */) ;; 2793 *) as_dir=$as_dir/ ;; 2794 esac 2795 for ac_exec_ext in '' $ac_executable_extensions; do 2796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2797 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2799 break 2 2800 fi 2801 done 2802 done 2803 IFS=$as_save_IFS 2804 2805 fi ;; 2806 esac 2807 fi 2808 CC=$ac_cv_prog_CC 2809 if test -n "$CC"; then 2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2811 printf "%s\n" "$CC" >&6; } 2812 else 2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814 printf "%s\n" "no" >&6; } 2815 fi 2816 2817 2818 fi 2819 if test -z "$ac_cv_prog_CC"; then 2820 ac_ct_CC=$CC 2821 # Extract the first word of "gcc", so it can be a program name with args. 2822 set dummy gcc; ac_word=$2 2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2824 printf %s "checking for $ac_word... " >&6; } 2825 if test ${ac_cv_prog_ac_ct_CC+y} 2826 then : 2827 printf %s "(cached) " >&6 2828 else case e in #( 2829 e) if test -n "$ac_ct_CC"; then 2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2831 else 2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833 for as_dir in $PATH 2834 do 2835 IFS=$as_save_IFS 2836 case $as_dir in #((( 2837 '') as_dir=./ ;; 2838 */) ;; 2839 *) as_dir=$as_dir/ ;; 2840 esac 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2843 ac_cv_prog_ac_ct_CC="gcc" 2844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847 done 2848 done 2849 IFS=$as_save_IFS 2850 2851 fi ;; 2852 esac 2853 fi 2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2855 if test -n "$ac_ct_CC"; then 2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2857 printf "%s\n" "$ac_ct_CC" >&6; } 2858 else 2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860 printf "%s\n" "no" >&6; } 2861 fi 2862 2863 if test "x$ac_ct_CC" = x; then 2864 CC="" 2865 else 2866 case $cross_compiling:$ac_tool_warned in 2867 yes:) 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2869 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2870 ac_tool_warned=yes ;; 2871 esac 2872 CC=$ac_ct_CC 2873 fi 2874 else 2875 CC="$ac_cv_prog_CC" 2876 fi 2877 2878 if test -z "$CC"; then 2879 if test -n "$ac_tool_prefix"; then 2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2881 set dummy ${ac_tool_prefix}cc; ac_word=$2 2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883 printf %s "checking for $ac_word... " >&6; } 2884 if test ${ac_cv_prog_CC+y} 2885 then : 2886 printf %s "(cached) " >&6 2887 else case e in #( 2888 e) if test -n "$CC"; then 2889 ac_cv_prog_CC="$CC" # Let the user override the test. 2890 else 2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892 for as_dir in $PATH 2893 do 2894 IFS=$as_save_IFS 2895 case $as_dir in #((( 2896 '') as_dir=./ ;; 2897 */) ;; 2898 *) as_dir=$as_dir/ ;; 2899 esac 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2902 ac_cv_prog_CC="${ac_tool_prefix}cc" 2903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906 done 2907 done 2908 IFS=$as_save_IFS 2909 2910 fi ;; 2911 esac 2912 fi 2913 CC=$ac_cv_prog_CC 2914 if test -n "$CC"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2916 printf "%s\n" "$CC" >&6; } 2917 else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919 printf "%s\n" "no" >&6; } 2920 fi 2921 2922 2923 fi 2924 fi 2925 if test -z "$CC"; then 2926 # Extract the first word of "cc", so it can be a program name with args. 2927 set dummy cc; ac_word=$2 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929 printf %s "checking for $ac_word... " >&6; } 2930 if test ${ac_cv_prog_CC+y} 2931 then : 2932 printf %s "(cached) " >&6 2933 else case e in #( 2934 e) if test -n "$CC"; then 2935 ac_cv_prog_CC="$CC" # Let the user override the test. 2936 else 2937 ac_prog_rejected=no 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939 for as_dir in $PATH 2940 do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2949 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2950 ac_prog_rejected=yes 2951 continue 2952 fi 2953 ac_cv_prog_CC="cc" 2954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957 done 2958 done 2959 IFS=$as_save_IFS 2960 2961 if test $ac_prog_rejected = yes; then 2962 # We found a bogon in the path, so make sure we never use it. 2963 set dummy $ac_cv_prog_CC 2964 shift 2965 if test $# != 0; then 2966 # We chose a different compiler from the bogus one. 2967 # However, it has the same basename, so the bogon will be chosen 2968 # first if we set CC to just the basename; use the full file name. 2969 shift 2970 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2971 fi 2972 fi 2973 fi ;; 2974 esac 2975 fi 2976 CC=$ac_cv_prog_CC 2977 if test -n "$CC"; then 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2979 printf "%s\n" "$CC" >&6; } 2980 else 2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982 printf "%s\n" "no" >&6; } 2983 fi 2984 2985 2986 fi 2987 if test -z "$CC"; then 2988 if test -n "$ac_tool_prefix"; then 2989 for ac_prog in cl.exe 2990 do 2991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994 printf %s "checking for $ac_word... " >&6; } 2995 if test ${ac_cv_prog_CC+y} 2996 then : 2997 printf %s "(cached) " >&6 2998 else case e in #( 2999 e) if test -n "$CC"; then 3000 ac_cv_prog_CC="$CC" # Let the user override the test. 3001 else 3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003 for as_dir in $PATH 3004 do 3005 IFS=$as_save_IFS 3006 case $as_dir in #((( 3007 '') as_dir=./ ;; 3008 */) ;; 3009 *) as_dir=$as_dir/ ;; 3010 esac 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017 done 3018 done 3019 IFS=$as_save_IFS 3020 3021 fi ;; 3022 esac 3023 fi 3024 CC=$ac_cv_prog_CC 3025 if test -n "$CC"; then 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3027 printf "%s\n" "$CC" >&6; } 3028 else 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3030 printf "%s\n" "no" >&6; } 3031 fi 3032 3033 3034 test -n "$CC" && break 3035 done 3036 fi 3037 if test -z "$CC"; then 3038 ac_ct_CC=$CC 3039 for ac_prog in cl.exe 3040 do 3041 # Extract the first word of "$ac_prog", so it can be a program name with args. 3042 set dummy $ac_prog; ac_word=$2 3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3044 printf %s "checking for $ac_word... " >&6; } 3045 if test ${ac_cv_prog_ac_ct_CC+y} 3046 then : 3047 printf %s "(cached) " >&6 3048 else case e in #( 3049 e) if test -n "$ac_ct_CC"; then 3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3051 else 3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053 for as_dir in $PATH 3054 do 3055 IFS=$as_save_IFS 3056 case $as_dir in #((( 3057 '') as_dir=./ ;; 3058 */) ;; 3059 *) as_dir=$as_dir/ ;; 3060 esac 3061 for ac_exec_ext in '' $ac_executable_extensions; do 3062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3063 ac_cv_prog_ac_ct_CC="$ac_prog" 3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3065 break 2 3066 fi 3067 done 3068 done 3069 IFS=$as_save_IFS 3070 3071 fi ;; 3072 esac 3073 fi 3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3075 if test -n "$ac_ct_CC"; then 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3077 printf "%s\n" "$ac_ct_CC" >&6; } 3078 else 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080 printf "%s\n" "no" >&6; } 3081 fi 3082 3083 3084 test -n "$ac_ct_CC" && break 3085 done 3086 3087 if test "x$ac_ct_CC" = x; then 3088 CC="" 3089 else 3090 case $cross_compiling:$ac_tool_warned in 3091 yes:) 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3094 ac_tool_warned=yes ;; 3095 esac 3096 CC=$ac_ct_CC 3097 fi 3098 fi 3099 3100 fi 3101 if test -z "$CC"; then 3102 if test -n "$ac_tool_prefix"; then 3103 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3104 set dummy ${ac_tool_prefix}clang; ac_word=$2 3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106 printf %s "checking for $ac_word... " >&6; } 3107 if test ${ac_cv_prog_CC+y} 3108 then : 3109 printf %s "(cached) " >&6 3110 else case e in #( 3111 e) if test -n "$CC"; then 3112 ac_cv_prog_CC="$CC" # Let the user override the test. 3113 else 3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115 for as_dir in $PATH 3116 do 3117 IFS=$as_save_IFS 3118 case $as_dir in #((( 3119 '') as_dir=./ ;; 3120 */) ;; 3121 *) as_dir=$as_dir/ ;; 3122 esac 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3125 ac_cv_prog_CC="${ac_tool_prefix}clang" 3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3127 break 2 3128 fi 3129 done 3130 done 3131 IFS=$as_save_IFS 3132 3133 fi ;; 3134 esac 3135 fi 3136 CC=$ac_cv_prog_CC 3137 if test -n "$CC"; then 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3139 printf "%s\n" "$CC" >&6; } 3140 else 3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142 printf "%s\n" "no" >&6; } 3143 fi 3144 3145 3146 fi 3147 if test -z "$ac_cv_prog_CC"; then 3148 ac_ct_CC=$CC 3149 # Extract the first word of "clang", so it can be a program name with args. 3150 set dummy clang; ac_word=$2 3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3152 printf %s "checking for $ac_word... " >&6; } 3153 if test ${ac_cv_prog_ac_ct_CC+y} 3154 then : 3155 printf %s "(cached) " >&6 3156 else case e in #( 3157 e) if test -n "$ac_ct_CC"; then 3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3159 else 3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161 for as_dir in $PATH 3162 do 3163 IFS=$as_save_IFS 3164 case $as_dir in #((( 3165 '') as_dir=./ ;; 3166 */) ;; 3167 *) as_dir=$as_dir/ ;; 3168 esac 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3171 ac_cv_prog_ac_ct_CC="clang" 3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175 done 3176 done 3177 IFS=$as_save_IFS 3178 3179 fi ;; 3180 esac 3181 fi 3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3183 if test -n "$ac_ct_CC"; then 3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3185 printf "%s\n" "$ac_ct_CC" >&6; } 3186 else 3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3188 printf "%s\n" "no" >&6; } 3189 fi 3190 3191 if test "x$ac_ct_CC" = x; then 3192 CC="" 3193 else 3194 case $cross_compiling:$ac_tool_warned in 3195 yes:) 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3198 ac_tool_warned=yes ;; 3199 esac 3200 CC=$ac_ct_CC 3201 fi 3202 else 3203 CC="$ac_cv_prog_CC" 3204 fi 3205 3206 fi 3207 3208 3209 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3210 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3211 as_fn_error $? "no acceptable C compiler found in \$PATH 3212 See 'config.log' for more details" "$LINENO" 5; } 3213 3214 # Provide some information about the compiler. 3215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3216 set X $ac_compile 3217 ac_compiler=$2 3218 for ac_option in --version -v -V -qversion -version; do 3219 { { ac_try="$ac_compiler $ac_option >&5" 3220 case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223 esac 3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225 printf "%s\n" "$ac_try_echo"; } >&5 3226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3227 ac_status=$? 3228 if test -s conftest.err; then 3229 sed '10a\ 3230 ... rest of stderr output deleted ... 3231 10q' conftest.err >conftest.er1 3232 cat conftest.er1 >&5 3233 fi 3234 rm -f conftest.er1 conftest.err 3235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3236 test $ac_status = 0; } 3237 done 3238 3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3240 /* end confdefs.h. */ 3241 3242 int 3243 main (void) 3244 { 3245 3246 ; 3247 return 0; 3248 } 3249 _ACEOF 3250 ac_clean_files_save=$ac_clean_files 3251 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3252 # Try to create an executable without -o first, disregard a.out. 3253 # It will help us diagnose broken compilers, and finding out an intuition 3254 # of exeext. 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3256 printf %s "checking whether the C compiler works... " >&6; } 3257 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3258 3259 # The possible output files: 3260 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3261 3262 ac_rmfiles= 3263 for ac_file in $ac_files 3264 do 3265 case $ac_file in 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3267 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3268 esac 3269 done 3270 rm -f $ac_rmfiles 3271 3272 if { { ac_try="$ac_link_default" 3273 case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276 esac 3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3278 printf "%s\n" "$ac_try_echo"; } >&5 3279 (eval "$ac_link_default") 2>&5 3280 ac_status=$? 3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3282 test $ac_status = 0; } 3283 then : 3284 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3285 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3286 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3287 # so that the user can short-circuit this test for compilers unknown to 3288 # Autoconf. 3289 for ac_file in $ac_files '' 3290 do 3291 test -f "$ac_file" || continue 3292 case $ac_file in 3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3294 ;; 3295 [ab].out ) 3296 # We found the default executable, but exeext='' is most 3297 # certainly right. 3298 break;; 3299 *.* ) 3300 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3301 then :; else 3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3303 fi 3304 # We set ac_cv_exeext here because the later test for it is not 3305 # safe: cross compilers may not add the suffix if given an '-o' 3306 # argument, so we may need to know it at that point already. 3307 # Even if this section looks crufty: it has the advantage of 3308 # actually working. 3309 break;; 3310 * ) 3311 break;; 3312 esac 3313 done 3314 test "$ac_cv_exeext" = no && ac_cv_exeext= 3315 3316 else case e in #( 3317 e) ac_file='' ;; 3318 esac 3319 fi 3320 if test -z "$ac_file" 3321 then : 3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323 printf "%s\n" "no" >&6; } 3324 printf "%s\n" "$as_me: failed program was:" >&5 3325 sed 's/^/| /' conftest.$ac_ext >&5 3326 3327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3329 as_fn_error 77 "C compiler cannot create executables 3330 See 'config.log' for more details" "$LINENO" 5; } 3331 else case e in #( 3332 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333 printf "%s\n" "yes" >&6; } ;; 3334 esac 3335 fi 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3337 printf %s "checking for C compiler default output file name... " >&6; } 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3339 printf "%s\n" "$ac_file" >&6; } 3340 ac_exeext=$ac_cv_exeext 3341 3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3343 ac_clean_files=$ac_clean_files_save 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3345 printf %s "checking for suffix of executables... " >&6; } 3346 if { { ac_try="$ac_link" 3347 case "(($ac_try" in 3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3349 *) ac_try_echo=$ac_try;; 3350 esac 3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3352 printf "%s\n" "$ac_try_echo"; } >&5 3353 (eval "$ac_link") 2>&5 3354 ac_status=$? 3355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356 test $ac_status = 0; } 3357 then : 3358 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3359 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3360 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3361 # 'rm'. 3362 for ac_file in conftest.exe conftest conftest.*; do 3363 test -f "$ac_file" || continue 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3367 break;; 3368 * ) break;; 3369 esac 3370 done 3371 else case e in #( 3372 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3373 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3375 See 'config.log' for more details" "$LINENO" 5; } ;; 3376 esac 3377 fi 3378 rm -f conftest conftest$ac_cv_exeext 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3380 printf "%s\n" "$ac_cv_exeext" >&6; } 3381 3382 rm -f conftest.$ac_ext 3383 EXEEXT=$ac_cv_exeext 3384 ac_exeext=$EXEEXT 3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3386 /* end confdefs.h. */ 3387 #include <stdio.h> 3388 int 3389 main (void) 3390 { 3391 FILE *f = fopen ("conftest.out", "w"); 3392 if (!f) 3393 return 1; 3394 return ferror (f) || fclose (f) != 0; 3395 3396 ; 3397 return 0; 3398 } 3399 _ACEOF 3400 ac_clean_files="$ac_clean_files conftest.out" 3401 # Check that the compiler produces executables we can run. If not, either 3402 # the compiler is broken, or we cross compile. 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3404 printf %s "checking whether we are cross compiling... " >&6; } 3405 if test "$cross_compiling" != yes; then 3406 { { ac_try="$ac_link" 3407 case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410 esac 3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412 printf "%s\n" "$ac_try_echo"; } >&5 3413 (eval "$ac_link") 2>&5 3414 ac_status=$? 3415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3416 test $ac_status = 0; } 3417 if { ac_try='./conftest$ac_cv_exeext' 3418 { { case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421 esac 3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3423 printf "%s\n" "$ac_try_echo"; } >&5 3424 (eval "$ac_try") 2>&5 3425 ac_status=$? 3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3427 test $ac_status = 0; }; }; then 3428 cross_compiling=no 3429 else 3430 if test "$cross_compiling" = maybe; then 3431 cross_compiling=yes 3432 else 3433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3435 as_fn_error 77 "cannot run C compiled programs. 3436 If you meant to cross compile, use '--host'. 3437 See 'config.log' for more details" "$LINENO" 5; } 3438 fi 3439 fi 3440 fi 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3442 printf "%s\n" "$cross_compiling" >&6; } 3443 3444 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3445 conftest.o conftest.obj conftest.out 3446 ac_clean_files=$ac_clean_files_save 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3448 printf %s "checking for suffix of object files... " >&6; } 3449 if test ${ac_cv_objext+y} 3450 then : 3451 printf %s "(cached) " >&6 3452 else case e in #( 3453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454 /* end confdefs.h. */ 3455 3456 int 3457 main (void) 3458 { 3459 3460 ; 3461 return 0; 3462 } 3463 _ACEOF 3464 rm -f conftest.o conftest.obj 3465 if { { ac_try="$ac_compile" 3466 case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469 esac 3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471 printf "%s\n" "$ac_try_echo"; } >&5 3472 (eval "$ac_compile") 2>&5 3473 ac_status=$? 3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; } 3476 then : 3477 for ac_file in conftest.o conftest.obj conftest.*; do 3478 test -f "$ac_file" || continue; 3479 case $ac_file in 3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3482 break;; 3483 esac 3484 done 3485 else case e in #( 3486 e) printf "%s\n" "$as_me: failed program was:" >&5 3487 sed 's/^/| /' conftest.$ac_ext >&5 3488 3489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3490 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3491 as_fn_error $? "cannot compute suffix of object files: cannot compile 3492 See 'config.log' for more details" "$LINENO" 5; } ;; 3493 esac 3494 fi 3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3496 esac 3497 fi 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3499 printf "%s\n" "$ac_cv_objext" >&6; } 3500 OBJEXT=$ac_cv_objext 3501 ac_objext=$OBJEXT 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3503 printf %s "checking whether the compiler supports GNU C... " >&6; } 3504 if test ${ac_cv_c_compiler_gnu+y} 3505 then : 3506 printf %s "(cached) " >&6 3507 else case e in #( 3508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509 /* end confdefs.h. */ 3510 3511 int 3512 main (void) 3513 { 3514 #ifndef __GNUC__ 3515 choke me 3516 #endif 3517 3518 ; 3519 return 0; 3520 } 3521 _ACEOF 3522 if ac_fn_c_try_compile "$LINENO" 3523 then : 3524 ac_compiler_gnu=yes 3525 else case e in #( 3526 e) ac_compiler_gnu=no ;; 3527 esac 3528 fi 3529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3531 ;; 3532 esac 3533 fi 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3535 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3537 3538 if test $ac_compiler_gnu = yes; then 3539 GCC=yes 3540 else 3541 GCC= 3542 fi 3543 ac_test_CFLAGS=${CFLAGS+y} 3544 ac_save_CFLAGS=$CFLAGS 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3546 printf %s "checking whether $CC accepts -g... " >&6; } 3547 if test ${ac_cv_prog_cc_g+y} 3548 then : 3549 printf %s "(cached) " >&6 3550 else case e in #( 3551 e) ac_save_c_werror_flag=$ac_c_werror_flag 3552 ac_c_werror_flag=yes 3553 ac_cv_prog_cc_g=no 3554 CFLAGS="-g" 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 /* end confdefs.h. */ 3557 3558 int 3559 main (void) 3560 { 3561 3562 ; 3563 return 0; 3564 } 3565 _ACEOF 3566 if ac_fn_c_try_compile "$LINENO" 3567 then : 3568 ac_cv_prog_cc_g=yes 3569 else case e in #( 3570 e) CFLAGS="" 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572 /* end confdefs.h. */ 3573 3574 int 3575 main (void) 3576 { 3577 3578 ; 3579 return 0; 3580 } 3581 _ACEOF 3582 if ac_fn_c_try_compile "$LINENO" 3583 then : 3584 3585 else case e in #( 3586 e) ac_c_werror_flag=$ac_save_c_werror_flag 3587 CFLAGS="-g" 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589 /* end confdefs.h. */ 3590 3591 int 3592 main (void) 3593 { 3594 3595 ; 3596 return 0; 3597 } 3598 _ACEOF 3599 if ac_fn_c_try_compile "$LINENO" 3600 then : 3601 ac_cv_prog_cc_g=yes 3602 fi 3603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3604 esac 3605 fi 3606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3607 esac 3608 fi 3609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3610 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3611 esac 3612 fi 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3614 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3615 if test $ac_test_CFLAGS; then 3616 CFLAGS=$ac_save_CFLAGS 3617 elif test $ac_cv_prog_cc_g = yes; then 3618 if test "$GCC" = yes; then 3619 CFLAGS="-g -O2" 3620 else 3621 CFLAGS="-g" 3622 fi 3623 else 3624 if test "$GCC" = yes; then 3625 CFLAGS="-O2" 3626 else 3627 CFLAGS= 3628 fi 3629 fi 3630 ac_prog_cc_stdc=no 3631 if test x$ac_prog_cc_stdc = xno 3632 then : 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3634 printf %s "checking for $CC option to enable C11 features... " >&6; } 3635 if test ${ac_cv_prog_cc_c11+y} 3636 then : 3637 printf %s "(cached) " >&6 3638 else case e in #( 3639 e) ac_cv_prog_cc_c11=no 3640 ac_save_CC=$CC 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642 /* end confdefs.h. */ 3643 $ac_c_conftest_c11_program 3644 _ACEOF 3645 for ac_arg in '' -std=gnu11 3646 do 3647 CC="$ac_save_CC $ac_arg" 3648 if ac_fn_c_try_compile "$LINENO" 3649 then : 3650 ac_cv_prog_cc_c11=$ac_arg 3651 fi 3652 rm -f core conftest.err conftest.$ac_objext conftest.beam 3653 test "x$ac_cv_prog_cc_c11" != "xno" && break 3654 done 3655 rm -f conftest.$ac_ext 3656 CC=$ac_save_CC ;; 3657 esac 3658 fi 3659 3660 if test "x$ac_cv_prog_cc_c11" = xno 3661 then : 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3663 printf "%s\n" "unsupported" >&6; } 3664 else case e in #( 3665 e) if test "x$ac_cv_prog_cc_c11" = x 3666 then : 3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3668 printf "%s\n" "none needed" >&6; } 3669 else case e in #( 3670 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3671 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3672 CC="$CC $ac_cv_prog_cc_c11" ;; 3673 esac 3674 fi 3675 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3676 ac_prog_cc_stdc=c11 ;; 3677 esac 3678 fi 3679 fi 3680 if test x$ac_prog_cc_stdc = xno 3681 then : 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3683 printf %s "checking for $CC option to enable C99 features... " >&6; } 3684 if test ${ac_cv_prog_cc_c99+y} 3685 then : 3686 printf %s "(cached) " >&6 3687 else case e in #( 3688 e) ac_cv_prog_cc_c99=no 3689 ac_save_CC=$CC 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3691 /* end confdefs.h. */ 3692 $ac_c_conftest_c99_program 3693 _ACEOF 3694 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3695 do 3696 CC="$ac_save_CC $ac_arg" 3697 if ac_fn_c_try_compile "$LINENO" 3698 then : 3699 ac_cv_prog_cc_c99=$ac_arg 3700 fi 3701 rm -f core conftest.err conftest.$ac_objext conftest.beam 3702 test "x$ac_cv_prog_cc_c99" != "xno" && break 3703 done 3704 rm -f conftest.$ac_ext 3705 CC=$ac_save_CC ;; 3706 esac 3707 fi 3708 3709 if test "x$ac_cv_prog_cc_c99" = xno 3710 then : 3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3712 printf "%s\n" "unsupported" >&6; } 3713 else case e in #( 3714 e) if test "x$ac_cv_prog_cc_c99" = x 3715 then : 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3717 printf "%s\n" "none needed" >&6; } 3718 else case e in #( 3719 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3720 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3721 CC="$CC $ac_cv_prog_cc_c99" ;; 3722 esac 3723 fi 3724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3725 ac_prog_cc_stdc=c99 ;; 3726 esac 3727 fi 3728 fi 3729 if test x$ac_prog_cc_stdc = xno 3730 then : 3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3732 printf %s "checking for $CC option to enable C89 features... " >&6; } 3733 if test ${ac_cv_prog_cc_c89+y} 3734 then : 3735 printf %s "(cached) " >&6 3736 else case e in #( 3737 e) ac_cv_prog_cc_c89=no 3738 ac_save_CC=$CC 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740 /* end confdefs.h. */ 3741 $ac_c_conftest_c89_program 3742 _ACEOF 3743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3744 do 3745 CC="$ac_save_CC $ac_arg" 3746 if ac_fn_c_try_compile "$LINENO" 3747 then : 3748 ac_cv_prog_cc_c89=$ac_arg 3749 fi 3750 rm -f core conftest.err conftest.$ac_objext conftest.beam 3751 test "x$ac_cv_prog_cc_c89" != "xno" && break 3752 done 3753 rm -f conftest.$ac_ext 3754 CC=$ac_save_CC ;; 3755 esac 3756 fi 3757 3758 if test "x$ac_cv_prog_cc_c89" = xno 3759 then : 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3761 printf "%s\n" "unsupported" >&6; } 3762 else case e in #( 3763 e) if test "x$ac_cv_prog_cc_c89" = x 3764 then : 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3766 printf "%s\n" "none needed" >&6; } 3767 else case e in #( 3768 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3769 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3770 CC="$CC $ac_cv_prog_cc_c89" ;; 3771 esac 3772 fi 3773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3774 ac_prog_cc_stdc=c89 ;; 3775 esac 3776 fi 3777 fi 3778 3779 ac_ext=c 3780 ac_cpp='$CPP $CPPFLAGS' 3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3784 3785 3786 ac_ext=c 3787 ac_cpp='$CPP $CPPFLAGS' 3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3792 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3793 if test ${am_cv_prog_cc_c_o+y} 3794 then : 3795 printf %s "(cached) " >&6 3796 else case e in #( 3797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798 /* end confdefs.h. */ 3799 3800 int 3801 main (void) 3802 { 3803 3804 ; 3805 return 0; 3806 } 3807 _ACEOF 3808 # Make sure it works both with $CC and with simple cc. 3809 # Following AC_PROG_CC_C_O, we do the test twice because some 3810 # compilers refuse to overwrite an existing .o file with -o, 3811 # though they will create one. 3812 am_cv_prog_cc_c_o=yes 3813 for am_i in 1 2; do 3814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3816 ac_status=$? 3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3818 (exit $ac_status); } \ 3819 && test -f conftest2.$ac_objext; then 3820 : OK 3821 else 3822 am_cv_prog_cc_c_o=no 3823 break 3824 fi 3825 done 3826 # aligned with autoconf, so not including core; see bug#72225. 3827 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 3828 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 3829 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 3830 unset am_i ;; 3831 esac 3832 fi 3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3834 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3835 if test "$am_cv_prog_cc_c_o" != yes; then 3836 # Losing compiler, so override with the script. 3837 # FIXME: It is wrong to rewrite CC. 3838 # But if we don't then we get into trouble of one sort or another. 3839 # A longer-term fix would be to have automake use am__CC in this case, 3840 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3841 CC="$am_aux_dir/compile $CC" 3842 fi 3843 ac_ext=c 3844 ac_cpp='$CPP $CPPFLAGS' 3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3848 3849 3850 3851 ac_header= ac_cache= 3852 for ac_item in $ac_header_c_list 3853 do 3854 if test $ac_cache; then 3855 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3856 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3857 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3858 fi 3859 ac_header= ac_cache= 3860 elif test $ac_header; then 3861 ac_cache=$ac_item 3862 else 3863 ac_header=$ac_item 3864 fi 3865 done 3866 3867 3868 3869 3870 3871 3872 3873 3874 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3875 then : 3876 3877 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3878 3879 fi 3880 3881 3882 3883 3884 3885 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3887 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3888 if test ${ac_cv_safe_to_define___extensions__+y} 3889 then : 3890 printf %s "(cached) " >&6 3891 else case e in #( 3892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893 /* end confdefs.h. */ 3894 3895 # define __EXTENSIONS__ 1 3896 $ac_includes_default 3897 int 3898 main (void) 3899 { 3900 3901 ; 3902 return 0; 3903 } 3904 _ACEOF 3905 if ac_fn_c_try_compile "$LINENO" 3906 then : 3907 ac_cv_safe_to_define___extensions__=yes 3908 else case e in #( 3909 e) ac_cv_safe_to_define___extensions__=no ;; 3910 esac 3911 fi 3912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3913 esac 3914 fi 3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3916 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3917 3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3919 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3920 if test ${ac_cv_should_define__xopen_source+y} 3921 then : 3922 printf %s "(cached) " >&6 3923 else case e in #( 3924 e) ac_cv_should_define__xopen_source=no 3925 if test $ac_cv_header_wchar_h = yes 3926 then : 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3928 /* end confdefs.h. */ 3929 3930 #include <wchar.h> 3931 mbstate_t x; 3932 int 3933 main (void) 3934 { 3935 3936 ; 3937 return 0; 3938 } 3939 _ACEOF 3940 if ac_fn_c_try_compile "$LINENO" 3941 then : 3942 3943 else case e in #( 3944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945 /* end confdefs.h. */ 3946 3947 #define _XOPEN_SOURCE 500 3948 #include <wchar.h> 3949 mbstate_t x; 3950 int 3951 main (void) 3952 { 3953 3954 ; 3955 return 0; 3956 } 3957 _ACEOF 3958 if ac_fn_c_try_compile "$LINENO" 3959 then : 3960 ac_cv_should_define__xopen_source=yes 3961 fi 3962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3963 esac 3964 fi 3965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3966 fi ;; 3967 esac 3968 fi 3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3970 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3971 3972 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3973 3974 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3975 3976 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3977 3978 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3979 3980 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3981 3982 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3983 3984 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3985 3986 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3987 3988 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3989 3990 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3991 3992 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3993 3994 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3995 3996 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3997 3998 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3999 4000 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4001 4002 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4003 4004 if test $ac_cv_header_minix_config_h = yes 4005 then : 4006 MINIX=yes 4007 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4008 4009 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4010 4011 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4012 4013 else case e in #( 4014 e) MINIX= ;; 4015 esac 4016 fi 4017 if test $ac_cv_safe_to_define___extensions__ = yes 4018 then : 4019 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4020 4021 fi 4022 if test $ac_cv_should_define__xopen_source = yes 4023 then : 4024 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4025 4026 fi 4027 4028 4029 # Initialize Automake 4030 am__api_version='1.18' 4031 4032 4033 # Find a good install program. We prefer a C program (faster), 4034 # so one script is as good as another. But avoid the broken or 4035 # incompatible versions: 4036 # SysV /etc/install, /usr/sbin/install 4037 # SunOS /usr/etc/install 4038 # IRIX /sbin/install 4039 # AIX /bin/install 4040 # AmigaOS /C/install, which installs bootblocks on floppy discs 4041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4044 # OS/2's system install, which has a completely different semantic 4045 # ./install, which can be erroneously created by make from ./install.sh. 4046 # Reject install programs that cannot install multiple files. 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4048 printf %s "checking for a BSD-compatible install... " >&6; } 4049 if test -z "$INSTALL"; then 4050 if test ${ac_cv_path_install+y} 4051 then : 4052 printf %s "(cached) " >&6 4053 else case e in #( 4054 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055 for as_dir in $PATH 4056 do 4057 IFS=$as_save_IFS 4058 case $as_dir in #((( 4059 '') as_dir=./ ;; 4060 */) ;; 4061 *) as_dir=$as_dir/ ;; 4062 esac 4063 # Account for fact that we put trailing slashes in our PATH walk. 4064 case $as_dir in #(( 4065 ./ | /[cC]/* | \ 4066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4068 /usr/ucb/* ) ;; 4069 *) 4070 # OSF1 and SCO ODT 3.0 have their own names for install. 4071 # Don't use installbsd from OSF since it installs stuff as root 4072 # by default. 4073 for ac_prog in ginstall scoinst install; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4076 if test $ac_prog = install && 4077 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4078 # AIX install. It has an incompatible calling convention. 4079 : 4080 elif test $ac_prog = install && 4081 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4082 # program-specific install script used by HP pwplus--don't use. 4083 : 4084 else 4085 rm -rf conftest.one conftest.two conftest.dir 4086 echo one > conftest.one 4087 echo two > conftest.two 4088 mkdir conftest.dir 4089 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4090 test -s conftest.one && test -s conftest.two && 4091 test -s conftest.dir/conftest.one && 4092 test -s conftest.dir/conftest.two 4093 then 4094 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4095 break 3 4096 fi 4097 fi 4098 fi 4099 done 4100 done 4101 ;; 4102 esac 4103 4104 done 4105 IFS=$as_save_IFS 4106 4107 rm -rf conftest.one conftest.two conftest.dir 4108 ;; 4109 esac 4110 fi 4111 if test ${ac_cv_path_install+y}; then 4112 INSTALL=$ac_cv_path_install 4113 else 4114 # As a last resort, use the slow shell script. Don't cache a 4115 # value for INSTALL within a source directory, because that will 4116 # break other packages using the cache if that directory is 4117 # removed, or if the value is a relative name. 4118 INSTALL=$ac_install_sh 4119 fi 4120 fi 4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4122 printf "%s\n" "$INSTALL" >&6; } 4123 4124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4125 # It thinks the first close brace ends the variable substitution. 4126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4127 4128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4129 4130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4131 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4133 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4134 if test ${am_cv_sleep_fractional_seconds+y} 4135 then : 4136 printf %s "(cached) " >&6 4137 else case e in #( 4138 e) if sleep 0.001 2>/dev/null 4139 then : 4140 am_cv_sleep_fractional_seconds=yes 4141 else case e in #( 4142 e) am_cv_sleep_fractional_seconds=no ;; 4143 esac 4144 fi 4145 ;; 4146 esac 4147 fi 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4149 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4150 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4152 printf %s "checking filesystem timestamp resolution... " >&6; } 4153 if test ${am_cv_filesystem_timestamp_resolution+y} 4154 then : 4155 printf %s "(cached) " >&6 4156 else case e in #( 4157 e) # Default to the worst case. 4158 am_cv_filesystem_timestamp_resolution=2 4159 4160 # Only try to go finer than 1 sec if sleep can do it. 4161 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4162 # - 1 sec is not much of a win compared to 2 sec, and 4163 # - it takes 2 seconds to perform the test whether 1 sec works. 4164 # 4165 # Instead, just use the default 2s on platforms that have 1s resolution, 4166 # accept the extra 1s delay when using $sleep in the Automake tests, in 4167 # exchange for not incurring the 2s delay for running the test for all 4168 # packages. 4169 # 4170 am_try_resolutions= 4171 if test "$am_cv_sleep_fractional_seconds" = yes; then 4172 # Even a millisecond often causes a bunch of false positives, 4173 # so just try a hundredth of a second. The time saved between .001 and 4174 # .01 is not terribly consequential. 4175 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4176 fi 4177 4178 # In order to catch current-generation FAT out, we must *modify* files 4179 # that already exist; the *creation* timestamp is finer. Use names 4180 # that make ls -t sort them differently when they have equal 4181 # timestamps than when they have distinct timestamps, keeping 4182 # in mind that ls -t prints the *newest* file first. 4183 rm -f conftest.ts? 4184 : > conftest.ts1 4185 : > conftest.ts2 4186 : > conftest.ts3 4187 4188 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4189 # clobber the current shell's arguments. (Outer-level square brackets 4190 # are removed by m4; they're present so that m4 does not expand 4191 # <dollar><star>; be careful, easy to get confused.) 4192 if ( 4193 set X `ls -t conftest.ts[12]` && 4194 { 4195 test "$*" != "X conftest.ts1 conftest.ts2" || 4196 test "$*" != "X conftest.ts2 conftest.ts1"; 4197 } 4198 ); then :; else 4199 # If neither matched, then we have a broken ls. This can happen 4200 # if, for instance, CONFIG_SHELL is bash and it inherits a 4201 # broken ls alias from the environment. This has actually 4202 # happened. Such a system could not be considered "sane". 4203 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4205 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4206 as_fn_error $? "ls -t produces unexpected output. 4207 Make sure there is not a broken ls alias in your environment. 4208 See 'config.log' for more details" "$LINENO" 5; } 4209 fi 4210 4211 for am_try_res in $am_try_resolutions; do 4212 # Any one fine-grained sleep might happen to cross the boundary 4213 # between two values of a coarser actual resolution, but if we do 4214 # two fine-grained sleeps in a row, at least one of them will fall 4215 # entirely within a coarse interval. 4216 echo alpha > conftest.ts1 4217 sleep $am_try_res 4218 echo beta > conftest.ts2 4219 sleep $am_try_res 4220 echo gamma > conftest.ts3 4221 4222 # We assume that 'ls -t' will make use of high-resolution 4223 # timestamps if the operating system supports them at all. 4224 if (set X `ls -t conftest.ts?` && 4225 test "$2" = conftest.ts3 && 4226 test "$3" = conftest.ts2 && 4227 test "$4" = conftest.ts1); then 4228 # 4229 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4230 # because we don't need to test make. 4231 make_ok=true 4232 if test $am_try_res != 1; then 4233 # But if we've succeeded so far with a subsecond resolution, we 4234 # have one more thing to check: make. It can happen that 4235 # everything else supports the subsecond mtimes, but make doesn't; 4236 # notably on macOS, which ships make 3.81 from 2006 (the last one 4237 # released under GPLv2). https://bugs.gnu.org/68808 4238 # 4239 # We test $MAKE if it is defined in the environment, else "make". 4240 # It might get overridden later, but our hope is that in practice 4241 # it does not matter: it is the system "make" which is (by far) 4242 # the most likely to be broken, whereas if the user overrides it, 4243 # probably they did so with a better, or at least not worse, make. 4244 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4245 # 4246 # Create a Makefile (real tab character here): 4247 rm -f conftest.mk 4248 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4249 echo ' touch conftest.ts2' >>conftest.mk 4250 # 4251 # Now, running 4252 # touch conftest.ts1; touch conftest.ts2; make 4253 # should touch ts1 because ts2 is newer. This could happen by luck, 4254 # but most often, it will fail if make's support is insufficient. So 4255 # test for several consecutive successes. 4256 # 4257 # (We reuse conftest.ts[12] because we still want to modify existing 4258 # files, not create new ones, per above.) 4259 n=0 4260 make=${MAKE-make} 4261 until test $n -eq 3; do 4262 echo one > conftest.ts1 4263 sleep $am_try_res 4264 echo two > conftest.ts2 # ts2 should now be newer than ts1 4265 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4266 make_ok=false 4267 break # out of $n loop 4268 fi 4269 n=`expr $n + 1` 4270 done 4271 fi 4272 # 4273 if $make_ok; then 4274 # Everything we know to check worked out, so call this resolution good. 4275 am_cv_filesystem_timestamp_resolution=$am_try_res 4276 break # out of $am_try_res loop 4277 fi 4278 # Otherwise, we'll go on to check the next resolution. 4279 fi 4280 done 4281 rm -f conftest.ts? 4282 # (end _am_filesystem_timestamp_resolution) 4283 ;; 4284 esac 4285 fi 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4287 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4288 4289 # This check should not be cached, as it may vary across builds of 4290 # different projects. 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4292 printf %s "checking whether build environment is sane... " >&6; } 4293 # Reject unsafe characters in $srcdir or the absolute working directory 4294 # name. Accept space and tab only in the latter. 4295 am_lf=' 4296 ' 4297 case `pwd` in 4298 *[\\\"\#\$\&\'\`$am_lf]*) 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300 printf "%s\n" "no" >&6; } 4301 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4302 esac 4303 case $srcdir in 4304 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4306 printf "%s\n" "no" >&6; } 4307 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4308 esac 4309 4310 # Do 'set' in a subshell so we don't clobber the current shell's 4311 # arguments. Must try -L first in case configure is actually a 4312 # symlink; some systems play weird games with the mod time of symlinks 4313 # (eg FreeBSD returns the mod time of the symlink's containing 4314 # directory). 4315 am_build_env_is_sane=no 4316 am_has_slept=no 4317 rm -f conftest.file 4318 for am_try in 1 2; do 4319 echo "timestamp, slept: $am_has_slept" > conftest.file 4320 if ( 4321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4322 if test "$*" = "X"; then 4323 # -L didn't work. 4324 set X `ls -t "$srcdir/configure" conftest.file` 4325 fi 4326 test "$2" = conftest.file 4327 ); then 4328 am_build_env_is_sane=yes 4329 break 4330 fi 4331 # Just in case. 4332 sleep "$am_cv_filesystem_timestamp_resolution" 4333 am_has_slept=yes 4334 done 4335 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4337 printf "%s\n" "$am_build_env_is_sane" >&6; } 4338 if test "$am_build_env_is_sane" = no; then 4339 as_fn_error $? "newly created file is older than distributed files! 4340 Check your system clock" "$LINENO" 5 4341 fi 4342 4343 # If we didn't sleep, we still need to ensure time stamps of config.status and 4344 # generated files are strictly newer. 4345 am_sleep_pid= 4346 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4347 then : 4348 4349 else case e in #( 4350 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4351 am_sleep_pid=$! 4352 ;; 4353 esac 4354 fi 4355 4356 rm -f conftest.file 4357 4358 test "$program_prefix" != NONE && 4359 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4360 # Use a double $ so make ignores it. 4361 test "$program_suffix" != NONE && 4362 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4363 # Double any \ or $. 4364 # By default was 's,x,x', remove it if useless. 4365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4366 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4367 4368 4369 if test x"${MISSING+set}" != xset; then 4370 MISSING="\${SHELL} '$am_aux_dir/missing'" 4371 fi 4372 # Use eval to expand $SHELL 4373 if eval "$MISSING --is-lightweight"; then 4374 am_missing_run="$MISSING " 4375 else 4376 am_missing_run= 4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4378 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4379 fi 4380 4381 if test x"${install_sh+set}" != xset; then 4382 case $am_aux_dir in 4383 *\ * | *\ *) 4384 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4385 *) 4386 install_sh="\${SHELL} $am_aux_dir/install-sh" 4387 esac 4388 fi 4389 4390 # Installed binaries are usually stripped using 'strip' when the user 4391 # run "make install-strip". However 'strip' might not be the right 4392 # tool to use in cross-compilation environments, therefore Automake 4393 # will honor the 'STRIP' environment variable to overrule this program. 4394 if test "$cross_compiling" != no; then 4395 if test -n "$ac_tool_prefix"; then 4396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4397 set dummy ${ac_tool_prefix}strip; ac_word=$2 4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399 printf %s "checking for $ac_word... " >&6; } 4400 if test ${ac_cv_prog_STRIP+y} 4401 then : 4402 printf %s "(cached) " >&6 4403 else case e in #( 4404 e) if test -n "$STRIP"; then 4405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4406 else 4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408 for as_dir in $PATH 4409 do 4410 IFS=$as_save_IFS 4411 case $as_dir in #((( 4412 '') as_dir=./ ;; 4413 */) ;; 4414 *) as_dir=$as_dir/ ;; 4415 esac 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4418 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4420 break 2 4421 fi 4422 done 4423 done 4424 IFS=$as_save_IFS 4425 4426 fi ;; 4427 esac 4428 fi 4429 STRIP=$ac_cv_prog_STRIP 4430 if test -n "$STRIP"; then 4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4432 printf "%s\n" "$STRIP" >&6; } 4433 else 4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435 printf "%s\n" "no" >&6; } 4436 fi 4437 4438 4439 fi 4440 if test -z "$ac_cv_prog_STRIP"; then 4441 ac_ct_STRIP=$STRIP 4442 # Extract the first word of "strip", so it can be a program name with args. 4443 set dummy strip; ac_word=$2 4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4445 printf %s "checking for $ac_word... " >&6; } 4446 if test ${ac_cv_prog_ac_ct_STRIP+y} 4447 then : 4448 printf %s "(cached) " >&6 4449 else case e in #( 4450 e) if test -n "$ac_ct_STRIP"; then 4451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4452 else 4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4454 for as_dir in $PATH 4455 do 4456 IFS=$as_save_IFS 4457 case $as_dir in #((( 4458 '') as_dir=./ ;; 4459 */) ;; 4460 *) as_dir=$as_dir/ ;; 4461 esac 4462 for ac_exec_ext in '' $ac_executable_extensions; do 4463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4464 ac_cv_prog_ac_ct_STRIP="strip" 4465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4466 break 2 4467 fi 4468 done 4469 done 4470 IFS=$as_save_IFS 4471 4472 fi ;; 4473 esac 4474 fi 4475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4476 if test -n "$ac_ct_STRIP"; then 4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4478 printf "%s\n" "$ac_ct_STRIP" >&6; } 4479 else 4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4481 printf "%s\n" "no" >&6; } 4482 fi 4483 4484 if test "x$ac_ct_STRIP" = x; then 4485 STRIP=":" 4486 else 4487 case $cross_compiling:$ac_tool_warned in 4488 yes:) 4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4491 ac_tool_warned=yes ;; 4492 esac 4493 STRIP=$ac_ct_STRIP 4494 fi 4495 else 4496 STRIP="$ac_cv_prog_STRIP" 4497 fi 4498 4499 fi 4500 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4501 4502 4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4504 printf %s "checking for a race-free mkdir -p... " >&6; } 4505 if test -z "$MKDIR_P"; then 4506 if test ${ac_cv_path_mkdir+y} 4507 then : 4508 printf %s "(cached) " >&6 4509 else case e in #( 4510 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4512 do 4513 IFS=$as_save_IFS 4514 case $as_dir in #((( 4515 '') as_dir=./ ;; 4516 */) ;; 4517 *) as_dir=$as_dir/ ;; 4518 esac 4519 for ac_prog in mkdir gmkdir; do 4520 for ac_exec_ext in '' $ac_executable_extensions; do 4521 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4522 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4523 'mkdir ('*'coreutils) '* | \ 4524 *'BusyBox '* | \ 4525 'mkdir (fileutils) '4.1*) 4526 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4527 break 3;; 4528 esac 4529 done 4530 done 4531 done 4532 IFS=$as_save_IFS 4533 ;; 4534 esac 4535 fi 4536 4537 test -d ./--version && rmdir ./--version 4538 if test ${ac_cv_path_mkdir+y}; then 4539 MKDIR_P="$ac_cv_path_mkdir -p" 4540 else 4541 # As a last resort, use plain mkdir -p, 4542 # in the hope it doesn't have the bugs of ancient mkdir. 4543 MKDIR_P='mkdir -p' 4544 fi 4545 fi 4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4547 printf "%s\n" "$MKDIR_P" >&6; } 4548 4549 for ac_prog in gawk mawk nawk awk 4550 do 4551 # Extract the first word of "$ac_prog", so it can be a program name with args. 4552 set dummy $ac_prog; ac_word=$2 4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4554 printf %s "checking for $ac_word... " >&6; } 4555 if test ${ac_cv_prog_AWK+y} 4556 then : 4557 printf %s "(cached) " >&6 4558 else case e in #( 4559 e) if test -n "$AWK"; then 4560 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4561 else 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563 for as_dir in $PATH 4564 do 4565 IFS=$as_save_IFS 4566 case $as_dir in #((( 4567 '') as_dir=./ ;; 4568 */) ;; 4569 *) as_dir=$as_dir/ ;; 4570 esac 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4573 ac_cv_prog_AWK="$ac_prog" 4574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577 done 4578 done 4579 IFS=$as_save_IFS 4580 4581 fi ;; 4582 esac 4583 fi 4584 AWK=$ac_cv_prog_AWK 4585 if test -n "$AWK"; then 4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4587 printf "%s\n" "$AWK" >&6; } 4588 else 4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590 printf "%s\n" "no" >&6; } 4591 fi 4592 4593 4594 test -n "$AWK" && break 4595 done 4596 4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4598 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4599 set x ${MAKE-make} 4600 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4601 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4602 then : 4603 printf %s "(cached) " >&6 4604 else case e in #( 4605 e) cat >conftest.make <<\_ACEOF 4606 SHELL = /bin/sh 4607 all: 4608 @echo '@@@%%%=$(MAKE)=@@@%%%' 4609 _ACEOF 4610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4611 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4612 *@@@%%%=?*=@@@%%%*) 4613 eval ac_cv_prog_make_${ac_make}_set=yes;; 4614 *) 4615 eval ac_cv_prog_make_${ac_make}_set=no;; 4616 esac 4617 rm -f conftest.make ;; 4618 esac 4619 fi 4620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4622 printf "%s\n" "yes" >&6; } 4623 SET_MAKE= 4624 else 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626 printf "%s\n" "no" >&6; } 4627 SET_MAKE="MAKE=${MAKE-make}" 4628 fi 4629 4630 rm -rf .tst 2>/dev/null 4631 mkdir .tst 2>/dev/null 4632 if test -d .tst; then 4633 am__leading_dot=. 4634 else 4635 am__leading_dot=_ 4636 fi 4637 rmdir .tst 2>/dev/null 4638 4639 DEPDIR="${am__leading_dot}deps" 4640 4641 ac_config_commands="$ac_config_commands depfiles" 4642 4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4644 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4645 cat > confinc.mk << 'END' 4646 am__doit: 4647 @echo this is the am__doit target >confinc.out 4648 .PHONY: am__doit 4649 END 4650 am__include="#" 4651 am__quote= 4652 # BSD make does it like this. 4653 echo '.include "confinc.mk" # ignored' > confmf.BSD 4654 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4655 echo 'include confinc.mk # ignored' > confmf.GNU 4656 _am_result=no 4657 for s in GNU BSD; do 4658 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4659 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4660 ac_status=$? 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } 4663 case $?:`cat confinc.out 2>/dev/null` in #( 4664 '0:this is the am__doit target') : 4665 case $s in #( 4666 BSD) : 4667 am__include='.include' am__quote='"' ;; #( 4668 *) : 4669 am__include='include' am__quote='' ;; 4670 esac ;; #( 4671 *) : 4672 ;; 4673 esac 4674 if test "$am__include" != "#"; then 4675 _am_result="yes ($s style)" 4676 break 4677 fi 4678 done 4679 rm -f confinc.* confmf.* 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4681 printf "%s\n" "${_am_result}" >&6; } 4682 4683 # Check whether --enable-dependency-tracking was given. 4684 if test ${enable_dependency_tracking+y} 4685 then : 4686 enableval=$enable_dependency_tracking; 4687 fi 4688 4689 if test "x$enable_dependency_tracking" != xno; then 4690 am_depcomp="$ac_aux_dir/depcomp" 4691 AMDEPBACKSLASH='\' 4692 am__nodep='_no' 4693 fi 4694 if test "x$enable_dependency_tracking" != xno; then 4695 AMDEP_TRUE= 4696 AMDEP_FALSE='#' 4697 else 4698 AMDEP_TRUE='#' 4699 AMDEP_FALSE= 4700 fi 4701 4702 4703 AM_DEFAULT_VERBOSITY=1 4704 # Check whether --enable-silent-rules was given. 4705 if test ${enable_silent_rules+y} 4706 then : 4707 enableval=$enable_silent_rules; 4708 fi 4709 4710 am_make=${MAKE-make} 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4712 printf %s "checking whether $am_make supports nested variables... " >&6; } 4713 if test ${am_cv_make_support_nested_variables+y} 4714 then : 4715 printf %s "(cached) " >&6 4716 else case e in #( 4717 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4718 BAR0=false 4719 BAR1=true 4720 V=1 4721 am__doit: 4722 @$(TRUE) 4723 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4724 am_cv_make_support_nested_variables=yes 4725 else 4726 am_cv_make_support_nested_variables=no 4727 fi ;; 4728 esac 4729 fi 4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4731 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4732 AM_BACKSLASH='\' 4733 4734 am__rm_f_notfound= 4735 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4736 then : 4737 4738 else case e in #( 4739 e) am__rm_f_notfound='""' ;; 4740 esac 4741 fi 4742 4743 4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4745 printf %s "checking xargs -n works... " >&6; } 4746 if test ${am_cv_xargs_n_works+y} 4747 then : 4748 printf %s "(cached) " >&6 4749 else case e in #( 4750 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4751 3" 4752 then : 4753 am_cv_xargs_n_works=yes 4754 else case e in #( 4755 e) am_cv_xargs_n_works=no ;; 4756 esac 4757 fi ;; 4758 esac 4759 fi 4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4761 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4762 if test "$am_cv_xargs_n_works" = yes 4763 then : 4764 am__xargs_n='xargs -n' 4765 else case e in #( 4766 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4767 ;; 4768 esac 4769 fi 4770 4771 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4772 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4773 # is not polluted with repeated "-I." 4774 am__isrc=' -I$(srcdir)' 4775 # test to see if srcdir already configured 4776 if test -f $srcdir/config.status; then 4777 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4778 fi 4779 fi 4780 4781 # test whether we have cygpath 4782 if test -z "$CYGPATH_W"; then 4783 if (cygpath --version) >/dev/null 2>/dev/null; then 4784 CYGPATH_W='cygpath -w' 4785 else 4786 CYGPATH_W=echo 4787 fi 4788 fi 4789 4790 4791 # Define the identity of the package. 4792 PACKAGE='libXext' 4793 VERSION='1.3.7' 4794 4795 4796 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4797 4798 4799 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4800 4801 # Some tools Automake needs. 4802 4803 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4804 4805 4806 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4807 4808 4809 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4810 4811 4812 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4813 4814 4815 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4816 4817 # For better backward compatibility. To be removed once Automake 1.9.x 4818 # dies out for good. For more background, see: 4819 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4820 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4821 mkdir_p='$(MKDIR_P)' 4822 4823 # We need awk for the "check" target (and possibly the TAP driver). The 4824 # system "awk" is bad on some platforms. 4825 # Always define AMTAR for backward compatibility. Yes, it's still used 4826 # in the wild :-( We should find a proper way to deprecate it ... 4827 AMTAR='$${TAR-tar}' 4828 4829 4830 # We'll loop over all known methods to create a tar archive until one works. 4831 _am_tools='gnutar plaintar pax cpio none' 4832 4833 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4834 # There is notably a 21 bits limit for the UID and the GID. In fact, 4835 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4836 # and bug#13588). 4837 am_max_uid=2097151 # 2^21 - 1 4838 am_max_gid=$am_max_uid 4839 # The $UID and $GID variables are not portable, so we need to resort 4840 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4841 # below are definitely unexpected, so allow the users to see them 4842 # (that is, avoid stderr redirection). 4843 am_uid=`id -u || echo unknown` 4844 am_gid=`id -g || echo unknown` 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4846 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4847 if test x$am_uid = xunknown; then 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4849 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4850 elif test $am_uid -le $am_max_uid; then 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4852 printf "%s\n" "yes" >&6; } 4853 else 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855 printf "%s\n" "no" >&6; } 4856 _am_tools=none 4857 fi 4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4859 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4860 if test x$gm_gid = xunknown; then 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4862 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4863 elif test $am_gid -le $am_max_gid; then 4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4865 printf "%s\n" "yes" >&6; } 4866 else 4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868 printf "%s\n" "no" >&6; } 4869 _am_tools=none 4870 fi 4871 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4873 printf %s "checking how to create a ustar tar archive... " >&6; } 4874 4875 # Go ahead even if we have the value already cached. We do so because we 4876 # need to set the values for the 'am__tar' and 'am__untar' variables. 4877 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4878 4879 for _am_tool in $_am_tools; do 4880 case $_am_tool in 4881 gnutar) 4882 for _am_tar in tar gnutar gtar; do 4883 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4884 ($_am_tar --version) >&5 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); } && break 4888 done 4889 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4890 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4891 am__untar="$_am_tar -xf -" 4892 ;; 4893 plaintar) 4894 # Must skip GNU tar: if it does not support --format= it doesn't create 4895 # ustar tarball either. 4896 (tar --version) >/dev/null 2>&1 && continue 4897 am__tar='tar chf - "$$tardir"' 4898 am__tar_='tar chf - "$tardir"' 4899 am__untar='tar xf -' 4900 ;; 4901 pax) 4902 am__tar='pax -L -x ustar -w "$$tardir"' 4903 am__tar_='pax -L -x ustar -w "$tardir"' 4904 am__untar='pax -r' 4905 ;; 4906 cpio) 4907 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4908 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4909 am__untar='cpio -i -H ustar -d' 4910 ;; 4911 none) 4912 am__tar=false 4913 am__tar_=false 4914 am__untar=false 4915 ;; 4916 esac 4917 4918 # If the value was cached, stop now. We just wanted to have am__tar 4919 # and am__untar set. 4920 test -n "${am_cv_prog_tar_ustar}" && break 4921 4922 # tar/untar a dummy directory, and stop if the command works. 4923 rm -rf conftest.dir 4924 mkdir conftest.dir 4925 echo GrepMe > conftest.dir/file 4926 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4927 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); } 4931 rm -rf conftest.dir 4932 if test -s conftest.tar; then 4933 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4934 ($am__untar <conftest.tar) >&5 2>&5 4935 ac_status=$? 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } 4938 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4939 (cat conftest.dir/file) >&5 2>&5 4940 ac_status=$? 4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); } 4943 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4944 fi 4945 done 4946 rm -rf conftest.dir 4947 4948 if test ${am_cv_prog_tar_ustar+y} 4949 then : 4950 printf %s "(cached) " >&6 4951 else case e in #( 4952 e) am_cv_prog_tar_ustar=$_am_tool ;; 4953 esac 4954 fi 4955 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4957 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4958 4959 4960 4961 4962 4963 depcc="$CC" am_compiler_list= 4964 4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4966 printf %s "checking dependency style of $depcc... " >&6; } 4967 if test ${am_cv_CC_dependencies_compiler_type+y} 4968 then : 4969 printf %s "(cached) " >&6 4970 else case e in #( 4971 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4972 # We make a subdir and do the tests there. Otherwise we can end up 4973 # making bogus files that we don't know about and never remove. For 4974 # instance it was reported that on HP-UX the gcc test will end up 4975 # making a dummy file named 'D' -- because '-MD' means "put the output 4976 # in D". 4977 rm -rf conftest.dir 4978 mkdir conftest.dir 4979 # Copy depcomp to subdir because otherwise we won't find it if we're 4980 # using a relative directory. 4981 cp "$am_depcomp" conftest.dir 4982 cd conftest.dir 4983 # We will build objects and dependencies in a subdirectory because 4984 # it helps to detect inapplicable dependency modes. For instance 4985 # both Tru64's cc and ICC support -MD to output dependencies as a 4986 # side effect of compilation, but ICC will put the dependencies in 4987 # the current directory while Tru64 will put them in the object 4988 # directory. 4989 mkdir sub 4990 4991 am_cv_CC_dependencies_compiler_type=none 4992 if test "$am_compiler_list" = ""; then 4993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4994 fi 4995 am__universal=false 4996 case " $depcc " in #( 4997 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4998 esac 4999 5000 for depmode in $am_compiler_list; do 5001 # Setup a source with many dependencies, because some compilers 5002 # like to wrap large dependency lists on column 80 (with \), and 5003 # we should not choose a depcomp mode which is confused by this. 5004 # 5005 # We need to recreate these files for each test, as the compiler may 5006 # overwrite some of them when testing with obscure command lines. 5007 # This happens at least with the AIX C compiler. 5008 : > sub/conftest.c 5009 for i in 1 2 3 4 5 6; do 5010 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5011 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5012 # Solaris 10 /bin/sh. 5013 echo '/* dummy */' > sub/conftst$i.h 5014 done 5015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5016 5017 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5018 # mode. It turns out that the SunPro C++ compiler does not properly 5019 # handle '-M -o', and we need to detect this. Also, some Intel 5020 # versions had trouble with output in subdirs. 5021 am__obj=sub/conftest.${OBJEXT-o} 5022 am__minus_obj="-o $am__obj" 5023 case $depmode in 5024 gcc) 5025 # This depmode causes a compiler race in universal mode. 5026 test "$am__universal" = false || continue 5027 ;; 5028 nosideeffect) 5029 # After this tag, mechanisms are not by side-effect, so they'll 5030 # only be used when explicitly requested. 5031 if test "x$enable_dependency_tracking" = xyes; then 5032 continue 5033 else 5034 break 5035 fi 5036 ;; 5037 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5038 # This compiler won't grok '-c -o', but also, the minuso test has 5039 # not run yet. These depmodes are late enough in the game, and 5040 # so weak that their functioning should not be impacted. 5041 am__obj=conftest.${OBJEXT-o} 5042 am__minus_obj= 5043 ;; 5044 none) break ;; 5045 esac 5046 if depmode=$depmode \ 5047 source=sub/conftest.c object=$am__obj \ 5048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5049 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5050 >/dev/null 2>conftest.err && 5051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5053 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5055 # icc doesn't choke on unknown options, it will just issue warnings 5056 # or remarks (even with -Werror). So we grep stderr for any message 5057 # that says an option was ignored or not supported. 5058 # When given -MP, icc 7.0 and 7.1 complain thus: 5059 # icc: Command line warning: ignoring option '-M'; no argument required 5060 # The diagnosis changed in icc 8.0: 5061 # icc: Command line remark: option '-MP' not supported 5062 if (grep 'ignoring option' conftest.err || 5063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5064 am_cv_CC_dependencies_compiler_type=$depmode 5065 break 5066 fi 5067 fi 5068 done 5069 5070 cd .. 5071 rm -rf conftest.dir 5072 else 5073 am_cv_CC_dependencies_compiler_type=none 5074 fi 5075 ;; 5076 esac 5077 fi 5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5079 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5081 5082 if 5083 test "x$enable_dependency_tracking" != xno \ 5084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5085 am__fastdepCC_TRUE= 5086 am__fastdepCC_FALSE='#' 5087 else 5088 am__fastdepCC_TRUE='#' 5089 am__fastdepCC_FALSE= 5090 fi 5091 5092 5093 # Variables for tags utilities; see am/tags.am 5094 if test -z "$CTAGS"; then 5095 CTAGS=ctags 5096 fi 5097 5098 if test -z "$ETAGS"; then 5099 ETAGS=etags 5100 fi 5101 5102 if test -z "$CSCOPE"; then 5103 CSCOPE=cscope 5104 fi 5105 5106 5107 5108 5109 5110 5111 5112 5113 # Initialize libtool 5114 case `pwd` in 5115 *\ * | *\ *) 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5117 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5118 esac 5119 5120 5121 5122 macro_version='2.5.4' 5123 macro_revision='2.5.4' 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 ltmain=$ac_aux_dir/ltmain.sh 5139 5140 5141 5142 # Make sure we can run config.sub. 5143 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5144 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5145 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5147 printf %s "checking build system type... " >&6; } 5148 if test ${ac_cv_build+y} 5149 then : 5150 printf %s "(cached) " >&6 5151 else case e in #( 5152 e) ac_build_alias=$build_alias 5153 test "x$ac_build_alias" = x && 5154 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5155 test "x$ac_build_alias" = x && 5156 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5157 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5158 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5159 ;; 5160 esac 5161 fi 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5163 printf "%s\n" "$ac_cv_build" >&6; } 5164 case $ac_cv_build in 5165 *-*-*) ;; 5166 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5167 esac 5168 build=$ac_cv_build 5169 ac_save_IFS=$IFS; IFS='-' 5170 set x $ac_cv_build 5171 shift 5172 build_cpu=$1 5173 build_vendor=$2 5174 shift; shift 5175 # Remember, the first character of IFS is used to create $*, 5176 # except with old shells: 5177 build_os=$* 5178 IFS=$ac_save_IFS 5179 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5180 5181 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5183 printf %s "checking host system type... " >&6; } 5184 if test ${ac_cv_host+y} 5185 then : 5186 printf %s "(cached) " >&6 5187 else case e in #( 5188 e) if test "x$host_alias" = x; then 5189 ac_cv_host=$ac_cv_build 5190 else 5191 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5192 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5193 fi 5194 ;; 5195 esac 5196 fi 5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5198 printf "%s\n" "$ac_cv_host" >&6; } 5199 case $ac_cv_host in 5200 *-*-*) ;; 5201 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5202 esac 5203 host=$ac_cv_host 5204 ac_save_IFS=$IFS; IFS='-' 5205 set x $ac_cv_host 5206 shift 5207 host_cpu=$1 5208 host_vendor=$2 5209 shift; shift 5210 # Remember, the first character of IFS is used to create $*, 5211 # except with old shells: 5212 host_os=$* 5213 IFS=$ac_save_IFS 5214 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5215 5216 5217 # Backslashify metacharacters that are still active within 5218 # double-quoted strings. 5219 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5220 5221 # Same as above, but do not quote variable references. 5222 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5223 5224 # Sed substitution to delay expansion of an escaped shell variable in a 5225 # double_quote_subst'ed string. 5226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5227 5228 # Sed substitution to delay expansion of an escaped single quote. 5229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5230 5231 # Sed substitution to avoid accidental globbing in evaled expressions 5232 no_glob_subst='s/\*/\\\*/g' 5233 5234 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5236 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5237 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5239 printf %s "checking how to print strings... " >&6; } 5240 # Test print first, because it will be a builtin if present. 5241 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5242 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5243 ECHO='print -r --' 5244 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5245 ECHO='printf %s\n' 5246 else 5247 # Use this function as a fallback that always works. 5248 func_fallback_echo () 5249 { 5250 eval 'cat <<_LTECHO_EOF 5251 $1 5252 _LTECHO_EOF' 5253 } 5254 ECHO='func_fallback_echo' 5255 fi 5256 5257 # func_echo_all arg... 5258 # Invoke $ECHO with all args, space-separated. 5259 func_echo_all () 5260 { 5261 $ECHO "" 5262 } 5263 5264 case $ECHO in 5265 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5266 printf "%s\n" "printf" >&6; } ;; 5267 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5268 printf "%s\n" "print -r" >&6; } ;; 5269 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5270 printf "%s\n" "cat" >&6; } ;; 5271 esac 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5287 printf %s "checking for a sed that does not truncate output... " >&6; } 5288 if test ${ac_cv_path_SED+y} 5289 then : 5290 printf %s "(cached) " >&6 5291 else case e in #( 5292 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5293 for ac_i in 1 2 3 4 5 6 7; do 5294 ac_script="$ac_script$as_nl$ac_script" 5295 done 5296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5297 { ac_script=; unset ac_script;} 5298 if test -z "$SED"; then 5299 ac_path_SED_found=false 5300 # Loop through the user's path and test for each of PROGNAME-LIST 5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5302 for as_dir in $PATH 5303 do 5304 IFS=$as_save_IFS 5305 case $as_dir in #((( 5306 '') as_dir=./ ;; 5307 */) ;; 5308 *) as_dir=$as_dir/ ;; 5309 esac 5310 for ac_prog in sed gsed 5311 do 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5314 as_fn_executable_p "$ac_path_SED" || continue 5315 # Check for GNU ac_path_SED and select it if it is found. 5316 # Check for GNU $ac_path_SED 5317 case `"$ac_path_SED" --version 2>&1` in #( 5318 *GNU*) 5319 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5320 #( 5321 *) 5322 ac_count=0 5323 printf %s 0123456789 >"conftest.in" 5324 while : 5325 do 5326 cat "conftest.in" "conftest.in" >"conftest.tmp" 5327 mv "conftest.tmp" "conftest.in" 5328 cp "conftest.in" "conftest.nl" 5329 printf "%s\n" '' >> "conftest.nl" 5330 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5332 as_fn_arith $ac_count + 1 && ac_count=$as_val 5333 if test $ac_count -gt ${ac_path_SED_max-0}; then 5334 # Best one so far, save it but keep looking for a better one 5335 ac_cv_path_SED="$ac_path_SED" 5336 ac_path_SED_max=$ac_count 5337 fi 5338 # 10*(2^10) chars as input seems more than enough 5339 test $ac_count -gt 10 && break 5340 done 5341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5342 esac 5343 5344 $ac_path_SED_found && break 3 5345 done 5346 done 5347 done 5348 IFS=$as_save_IFS 5349 if test -z "$ac_cv_path_SED"; then 5350 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5351 fi 5352 else 5353 ac_cv_path_SED=$SED 5354 fi 5355 ;; 5356 esac 5357 fi 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5359 printf "%s\n" "$ac_cv_path_SED" >&6; } 5360 SED="$ac_cv_path_SED" 5361 rm -f conftest.sed 5362 5363 test -z "$SED" && SED=sed 5364 Xsed="$SED -e 1s/^X//" 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5377 printf %s "checking for grep that handles long lines and -e... " >&6; } 5378 if test ${ac_cv_path_GREP+y} 5379 then : 5380 printf %s "(cached) " >&6 5381 else case e in #( 5382 e) if test -z "$GREP"; then 5383 ac_path_GREP_found=false 5384 # Loop through the user's path and test for each of PROGNAME-LIST 5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5387 do 5388 IFS=$as_save_IFS 5389 case $as_dir in #((( 5390 '') as_dir=./ ;; 5391 */) ;; 5392 *) as_dir=$as_dir/ ;; 5393 esac 5394 for ac_prog in grep ggrep 5395 do 5396 for ac_exec_ext in '' $ac_executable_extensions; do 5397 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5398 as_fn_executable_p "$ac_path_GREP" || continue 5399 # Check for GNU ac_path_GREP and select it if it is found. 5400 # Check for GNU $ac_path_GREP 5401 case `"$ac_path_GREP" --version 2>&1` in #( 5402 *GNU*) 5403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5404 #( 5405 *) 5406 ac_count=0 5407 printf %s 0123456789 >"conftest.in" 5408 while : 5409 do 5410 cat "conftest.in" "conftest.in" >"conftest.tmp" 5411 mv "conftest.tmp" "conftest.in" 5412 cp "conftest.in" "conftest.nl" 5413 printf "%s\n" 'GREP' >> "conftest.nl" 5414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5416 as_fn_arith $ac_count + 1 && ac_count=$as_val 5417 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5418 # Best one so far, save it but keep looking for a better one 5419 ac_cv_path_GREP="$ac_path_GREP" 5420 ac_path_GREP_max=$ac_count 5421 fi 5422 # 10*(2^10) chars as input seems more than enough 5423 test $ac_count -gt 10 && break 5424 done 5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5426 esac 5427 5428 $ac_path_GREP_found && break 3 5429 done 5430 done 5431 done 5432 IFS=$as_save_IFS 5433 if test -z "$ac_cv_path_GREP"; then 5434 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5435 fi 5436 else 5437 ac_cv_path_GREP=$GREP 5438 fi 5439 ;; 5440 esac 5441 fi 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5443 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5444 GREP="$ac_cv_path_GREP" 5445 5446 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5448 printf %s "checking for egrep... " >&6; } 5449 if test ${ac_cv_path_EGREP+y} 5450 then : 5451 printf %s "(cached) " >&6 5452 else case e in #( 5453 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5454 then ac_cv_path_EGREP="$GREP -E" 5455 else 5456 if test -z "$EGREP"; then 5457 ac_path_EGREP_found=false 5458 # Loop through the user's path and test for each of PROGNAME-LIST 5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5461 do 5462 IFS=$as_save_IFS 5463 case $as_dir in #((( 5464 '') as_dir=./ ;; 5465 */) ;; 5466 *) as_dir=$as_dir/ ;; 5467 esac 5468 for ac_prog in egrep 5469 do 5470 for ac_exec_ext in '' $ac_executable_extensions; do 5471 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5472 as_fn_executable_p "$ac_path_EGREP" || continue 5473 # Check for GNU ac_path_EGREP and select it if it is found. 5474 # Check for GNU $ac_path_EGREP 5475 case `"$ac_path_EGREP" --version 2>&1` in #( 5476 *GNU*) 5477 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5478 #( 5479 *) 5480 ac_count=0 5481 printf %s 0123456789 >"conftest.in" 5482 while : 5483 do 5484 cat "conftest.in" "conftest.in" >"conftest.tmp" 5485 mv "conftest.tmp" "conftest.in" 5486 cp "conftest.in" "conftest.nl" 5487 printf "%s\n" 'EGREP' >> "conftest.nl" 5488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5490 as_fn_arith $ac_count + 1 && ac_count=$as_val 5491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5492 # Best one so far, save it but keep looking for a better one 5493 ac_cv_path_EGREP="$ac_path_EGREP" 5494 ac_path_EGREP_max=$ac_count 5495 fi 5496 # 10*(2^10) chars as input seems more than enough 5497 test $ac_count -gt 10 && break 5498 done 5499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5500 esac 5501 5502 $ac_path_EGREP_found && break 3 5503 done 5504 done 5505 done 5506 IFS=$as_save_IFS 5507 if test -z "$ac_cv_path_EGREP"; then 5508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5509 fi 5510 else 5511 ac_cv_path_EGREP=$EGREP 5512 fi 5513 5514 fi ;; 5515 esac 5516 fi 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5518 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5519 EGREP="$ac_cv_path_EGREP" 5520 5521 EGREP_TRADITIONAL=$EGREP 5522 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5523 5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5525 printf %s "checking for fgrep... " >&6; } 5526 if test ${ac_cv_path_FGREP+y} 5527 then : 5528 printf %s "(cached) " >&6 5529 else case e in #( 5530 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5531 then ac_cv_path_FGREP="$GREP -F" 5532 else 5533 if test -z "$FGREP"; then 5534 ac_path_FGREP_found=false 5535 # Loop through the user's path and test for each of PROGNAME-LIST 5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5538 do 5539 IFS=$as_save_IFS 5540 case $as_dir in #((( 5541 '') as_dir=./ ;; 5542 */) ;; 5543 *) as_dir=$as_dir/ ;; 5544 esac 5545 for ac_prog in fgrep 5546 do 5547 for ac_exec_ext in '' $ac_executable_extensions; do 5548 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5549 as_fn_executable_p "$ac_path_FGREP" || continue 5550 # Check for GNU ac_path_FGREP and select it if it is found. 5551 # Check for GNU $ac_path_FGREP 5552 case `"$ac_path_FGREP" --version 2>&1` in #( 5553 *GNU*) 5554 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5555 #( 5556 *) 5557 ac_count=0 5558 printf %s 0123456789 >"conftest.in" 5559 while : 5560 do 5561 cat "conftest.in" "conftest.in" >"conftest.tmp" 5562 mv "conftest.tmp" "conftest.in" 5563 cp "conftest.in" "conftest.nl" 5564 printf "%s\n" 'FGREP' >> "conftest.nl" 5565 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5567 as_fn_arith $ac_count + 1 && ac_count=$as_val 5568 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5569 # Best one so far, save it but keep looking for a better one 5570 ac_cv_path_FGREP="$ac_path_FGREP" 5571 ac_path_FGREP_max=$ac_count 5572 fi 5573 # 10*(2^10) chars as input seems more than enough 5574 test $ac_count -gt 10 && break 5575 done 5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5577 esac 5578 5579 $ac_path_FGREP_found && break 3 5580 done 5581 done 5582 done 5583 IFS=$as_save_IFS 5584 if test -z "$ac_cv_path_FGREP"; then 5585 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5586 fi 5587 else 5588 ac_cv_path_FGREP=$FGREP 5589 fi 5590 5591 fi ;; 5592 esac 5593 fi 5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5595 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5596 FGREP="$ac_cv_path_FGREP" 5597 5598 5599 test -z "$GREP" && GREP=grep 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 # Check whether --with-gnu-ld was given. 5620 if test ${with_gnu_ld+y} 5621 then : 5622 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5623 else case e in #( 5624 e) with_gnu_ld=no ;; 5625 esac 5626 fi 5627 5628 ac_prog=ld 5629 if test yes = "$GCC"; then 5630 # Check if gcc -print-prog-name=ld gives a path. 5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5632 printf %s "checking for ld used by $CC... " >&6; } 5633 case $host in 5634 *-*-mingw* | *-*-windows*) 5635 # gcc leaves a trailing carriage return, which upsets mingw 5636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5637 *) 5638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5639 esac 5640 case $ac_prog in 5641 # Accept absolute paths. 5642 [\\/]* | ?:[\\/]*) 5643 re_direlt='/[^/][^/]*/\.\./' 5644 # Canonicalize the pathname of ld 5645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5648 done 5649 test -z "$LD" && LD=$ac_prog 5650 ;; 5651 "") 5652 # If it fails, then pretend we aren't using GCC. 5653 ac_prog=ld 5654 ;; 5655 *) 5656 # If it is relative, then search for the first ld in PATH. 5657 with_gnu_ld=unknown 5658 ;; 5659 esac 5660 elif test yes = "$with_gnu_ld"; then 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5662 printf %s "checking for GNU ld... " >&6; } 5663 else 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5665 printf %s "checking for non-GNU ld... " >&6; } 5666 fi 5667 if test ${lt_cv_path_LD+y} 5668 then : 5669 printf %s "(cached) " >&6 5670 else case e in #( 5671 e) if test -z "$LD"; then 5672 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5673 for ac_dir in $PATH; do 5674 IFS=$lt_save_ifs 5675 test -z "$ac_dir" && ac_dir=. 5676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5677 lt_cv_path_LD=$ac_dir/$ac_prog 5678 # Check to see if the program is GNU ld. I'd rather use --version, 5679 # but apparently some variants of GNU ld only accept -v. 5680 # Break only if it was the GNU/non-GNU ld that we prefer. 5681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5682 *GNU* | *'with BFD'*) 5683 test no != "$with_gnu_ld" && break 5684 ;; 5685 *) 5686 test yes != "$with_gnu_ld" && break 5687 ;; 5688 esac 5689 fi 5690 done 5691 IFS=$lt_save_ifs 5692 else 5693 lt_cv_path_LD=$LD # Let the user override the test with a path. 5694 fi ;; 5695 esac 5696 fi 5697 5698 LD=$lt_cv_path_LD 5699 if test -n "$LD"; then 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5701 printf "%s\n" "$LD" >&6; } 5702 else 5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704 printf "%s\n" "no" >&6; } 5705 fi 5706 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5708 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5709 if test ${lt_cv_prog_gnu_ld+y} 5710 then : 5711 printf %s "(cached) " >&6 5712 else case e in #( 5713 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5714 case `$LD -v 2>&1 </dev/null` in 5715 *GNU* | *'with BFD'*) 5716 lt_cv_prog_gnu_ld=yes 5717 ;; 5718 *) 5719 lt_cv_prog_gnu_ld=no 5720 ;; 5721 esac ;; 5722 esac 5723 fi 5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5725 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5726 with_gnu_ld=$lt_cv_prog_gnu_ld 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5737 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5738 if test ${lt_cv_path_NM+y} 5739 then : 5740 printf %s "(cached) " >&6 5741 else case e in #( 5742 e) if test -n "$NM"; then 5743 # Let the user override the test. 5744 lt_cv_path_NM=$NM 5745 else 5746 lt_nm_to_check=${ac_tool_prefix}nm 5747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5748 lt_nm_to_check="$lt_nm_to_check nm" 5749 fi 5750 for lt_tmp_nm in $lt_nm_to_check; do 5751 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5753 IFS=$lt_save_ifs 5754 test -z "$ac_dir" && ac_dir=. 5755 tmp_nm=$ac_dir/$lt_tmp_nm 5756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5757 # Check to see if the nm accepts a BSD-compat flag. 5758 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5759 # nm: unknown option "B" ignored 5760 # Tru64's nm complains that /dev/null is an invalid object file 5761 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5762 case $build_os in 5763 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5764 *) lt_bad_file=/dev/null ;; 5765 esac 5766 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5767 *$lt_bad_file* | *'Invalid file or object type'*) 5768 lt_cv_path_NM="$tmp_nm -B" 5769 break 2 5770 ;; 5771 *) 5772 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5773 */dev/null*) 5774 lt_cv_path_NM="$tmp_nm -p" 5775 break 2 5776 ;; 5777 *) 5778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5779 continue # so that we can try to find one that supports BSD flags 5780 ;; 5781 esac 5782 ;; 5783 esac 5784 fi 5785 done 5786 IFS=$lt_save_ifs 5787 done 5788 : ${lt_cv_path_NM=no} 5789 fi ;; 5790 esac 5791 fi 5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5793 printf "%s\n" "$lt_cv_path_NM" >&6; } 5794 if test no != "$lt_cv_path_NM"; then 5795 NM=$lt_cv_path_NM 5796 else 5797 # Didn't find any BSD compatible name lister, look for dumpbin. 5798 if test -n "$DUMPBIN"; then : 5799 # Let the user override the test. 5800 else 5801 if test -n "$ac_tool_prefix"; then 5802 for ac_prog in dumpbin "link -dump" 5803 do 5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5807 printf %s "checking for $ac_word... " >&6; } 5808 if test ${ac_cv_prog_DUMPBIN+y} 5809 then : 5810 printf %s "(cached) " >&6 5811 else case e in #( 5812 e) if test -n "$DUMPBIN"; then 5813 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5814 else 5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816 for as_dir in $PATH 5817 do 5818 IFS=$as_save_IFS 5819 case $as_dir in #((( 5820 '') as_dir=./ ;; 5821 */) ;; 5822 *) as_dir=$as_dir/ ;; 5823 esac 5824 for ac_exec_ext in '' $ac_executable_extensions; do 5825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5826 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5828 break 2 5829 fi 5830 done 5831 done 5832 IFS=$as_save_IFS 5833 5834 fi ;; 5835 esac 5836 fi 5837 DUMPBIN=$ac_cv_prog_DUMPBIN 5838 if test -n "$DUMPBIN"; then 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5840 printf "%s\n" "$DUMPBIN" >&6; } 5841 else 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5843 printf "%s\n" "no" >&6; } 5844 fi 5845 5846 5847 test -n "$DUMPBIN" && break 5848 done 5849 fi 5850 if test -z "$DUMPBIN"; then 5851 ac_ct_DUMPBIN=$DUMPBIN 5852 for ac_prog in dumpbin "link -dump" 5853 do 5854 # Extract the first word of "$ac_prog", so it can be a program name with args. 5855 set dummy $ac_prog; ac_word=$2 5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857 printf %s "checking for $ac_word... " >&6; } 5858 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5859 then : 5860 printf %s "(cached) " >&6 5861 else case e in #( 5862 e) if test -n "$ac_ct_DUMPBIN"; then 5863 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5864 else 5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5866 for as_dir in $PATH 5867 do 5868 IFS=$as_save_IFS 5869 case $as_dir in #((( 5870 '') as_dir=./ ;; 5871 */) ;; 5872 *) as_dir=$as_dir/ ;; 5873 esac 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880 done 5881 done 5882 IFS=$as_save_IFS 5883 5884 fi ;; 5885 esac 5886 fi 5887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5888 if test -n "$ac_ct_DUMPBIN"; then 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5890 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5891 else 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5893 printf "%s\n" "no" >&6; } 5894 fi 5895 5896 5897 test -n "$ac_ct_DUMPBIN" && break 5898 done 5899 5900 if test "x$ac_ct_DUMPBIN" = x; then 5901 DUMPBIN=":" 5902 else 5903 case $cross_compiling:$ac_tool_warned in 5904 yes:) 5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5907 ac_tool_warned=yes ;; 5908 esac 5909 DUMPBIN=$ac_ct_DUMPBIN 5910 fi 5911 fi 5912 5913 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5914 *COFF*) 5915 DUMPBIN="$DUMPBIN -symbols -headers" 5916 ;; 5917 *) 5918 DUMPBIN=: 5919 ;; 5920 esac 5921 fi 5922 5923 if test : != "$DUMPBIN"; then 5924 NM=$DUMPBIN 5925 fi 5926 fi 5927 test -z "$NM" && NM=nm 5928 5929 5930 5931 5932 5933 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5935 printf %s "checking the name lister ($NM) interface... " >&6; } 5936 if test ${lt_cv_nm_interface+y} 5937 then : 5938 printf %s "(cached) " >&6 5939 else case e in #( 5940 e) lt_cv_nm_interface="BSD nm" 5941 echo "int some_variable = 0;" > conftest.$ac_ext 5942 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5943 (eval "$ac_compile" 2>conftest.err) 5944 cat conftest.err >&5 5945 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5946 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5947 cat conftest.err >&5 5948 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5949 cat conftest.out >&5 5950 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5951 lt_cv_nm_interface="MS dumpbin" 5952 fi 5953 rm -f conftest* ;; 5954 esac 5955 fi 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5957 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5958 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5960 printf %s "checking whether ln -s works... " >&6; } 5961 LN_S=$as_ln_s 5962 if test "$LN_S" = "ln -s"; then 5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5964 printf "%s\n" "yes" >&6; } 5965 else 5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5967 printf "%s\n" "no, using $LN_S" >&6; } 5968 fi 5969 5970 # find the maximum length of command line arguments 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5972 printf %s "checking the maximum length of command line arguments... " >&6; } 5973 if test ${lt_cv_sys_max_cmd_len+y} 5974 then : 5975 printf %s "(cached) " >&6 5976 else case e in #( 5977 e) i=0 5978 teststring=ABCD 5979 5980 case $build_os in 5981 msdosdjgpp*) 5982 # On DJGPP, this test can blow up pretty badly due to problems in libc 5983 # (any single argument exceeding 2000 bytes causes a buffer overrun 5984 # during glob expansion). Even if it were fixed, the result of this 5985 # check would be larger than it should be. 5986 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5987 ;; 5988 5989 gnu* | ironclad*) 5990 # Under GNU Hurd and Ironclad, this test is not required because there 5991 # is no limit to the length of command line arguments. 5992 # Libtool will interpret -1 as no limit whatsoever 5993 lt_cv_sys_max_cmd_len=-1; 5994 ;; 5995 5996 cygwin* | mingw* | windows* | cegcc*) 5997 # On Win9x/ME, this test blows up -- it succeeds, but takes 5998 # about 5 minutes as the teststring grows exponentially. 5999 # Worse, since 9x/ME are not pre-emptively multitasking, 6000 # you end up with a "frozen" computer, even though with patience 6001 # the test eventually succeeds (with a max line length of 256k). 6002 # Instead, let's just punt: use the minimum linelength reported by 6003 # all of the supported platforms: 8192 (on NT/2K/XP). 6004 lt_cv_sys_max_cmd_len=8192; 6005 ;; 6006 6007 mint*) 6008 # On MiNT this can take a long time and run out of memory. 6009 lt_cv_sys_max_cmd_len=8192; 6010 ;; 6011 6012 amigaos*) 6013 # On AmigaOS with pdksh, this test takes hours, literally. 6014 # So we just punt and use a minimum line length of 8192. 6015 lt_cv_sys_max_cmd_len=8192; 6016 ;; 6017 6018 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6019 # This has been around since 386BSD, at least. Likely further. 6020 if test -x /sbin/sysctl; then 6021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6022 elif test -x /usr/sbin/sysctl; then 6023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6024 else 6025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6026 fi 6027 # And add a safety zone 6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6030 ;; 6031 6032 interix*) 6033 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6034 lt_cv_sys_max_cmd_len=196608 6035 ;; 6036 6037 os2*) 6038 # The test takes a long time on OS/2. 6039 lt_cv_sys_max_cmd_len=8192 6040 ;; 6041 6042 osf*) 6043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6045 # nice to cause kernel panics so lets avoid the loop below. 6046 # First set a reasonable default. 6047 lt_cv_sys_max_cmd_len=16384 6048 # 6049 if test -x /sbin/sysconfig; then 6050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6051 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6052 esac 6053 fi 6054 ;; 6055 sco3.2v5*) 6056 lt_cv_sys_max_cmd_len=102400 6057 ;; 6058 sysv5* | sco5v6* | sysv4.2uw2*) 6059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6060 if test -n "$kargmax"; then 6061 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6062 else 6063 lt_cv_sys_max_cmd_len=32768 6064 fi 6065 ;; 6066 *) 6067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6068 if test -n "$lt_cv_sys_max_cmd_len" && \ 6069 test undefined != "$lt_cv_sys_max_cmd_len"; then 6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6072 else 6073 # Make teststring a little bigger before we do anything with it. 6074 # a 1K string should be a reasonable start. 6075 for i in 1 2 3 4 5 6 7 8; do 6076 teststring=$teststring$teststring 6077 done 6078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6079 # If test is not a shell built-in, we'll probably end up computing a 6080 # maximum length that is only half of the actual maximum length, but 6081 # we can't tell. 6082 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6083 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6084 test 17 != "$i" # 1/2 MB should be enough 6085 do 6086 i=`expr $i + 1` 6087 teststring=$teststring$teststring 6088 done 6089 # Only check the string length outside the loop. 6090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6091 teststring= 6092 # Add a significant safety factor because C++ compilers can tack on 6093 # massive amounts of additional arguments before passing them to the 6094 # linker. It appears as though 1/2 is a usable value. 6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6096 fi 6097 ;; 6098 esac 6099 ;; 6100 esac 6101 fi 6102 6103 if test -n "$lt_cv_sys_max_cmd_len"; then 6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6105 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6106 else 6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6108 printf "%s\n" "none" >&6; } 6109 fi 6110 max_cmd_len=$lt_cv_sys_max_cmd_len 6111 6112 6113 6114 6115 6116 6117 : ${CP="cp -f"} 6118 : ${MV="mv -f"} 6119 : ${RM="rm -f"} 6120 6121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6122 lt_unset=unset 6123 else 6124 lt_unset=false 6125 fi 6126 6127 6128 6129 6130 6131 # test EBCDIC or ASCII 6132 case `echo X|tr X '\101'` in 6133 A) # ASCII based system 6134 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6135 lt_SP2NL='tr \040 \012' 6136 lt_NL2SP='tr \015\012 \040\040' 6137 ;; 6138 *) # EBCDIC based system 6139 lt_SP2NL='tr \100 \n' 6140 lt_NL2SP='tr \r\n \100\100' 6141 ;; 6142 esac 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6153 printf %s "checking how to convert $build file names to $host format... " >&6; } 6154 if test ${lt_cv_to_host_file_cmd+y} 6155 then : 6156 printf %s "(cached) " >&6 6157 else case e in #( 6158 e) case $host in 6159 *-*-mingw* ) 6160 case $build in 6161 *-*-mingw* | *-*-windows* ) # actually msys 6162 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6163 ;; 6164 *-*-cygwin* ) 6165 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6166 ;; 6167 * ) # otherwise, assume *nix 6168 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6169 ;; 6170 esac 6171 ;; 6172 *-*-cygwin* ) 6173 case $build in 6174 *-*-mingw* | *-*-windows* ) # actually msys 6175 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6176 ;; 6177 *-*-cygwin* ) 6178 lt_cv_to_host_file_cmd=func_convert_file_noop 6179 ;; 6180 * ) # otherwise, assume *nix 6181 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6182 ;; 6183 esac 6184 ;; 6185 * ) # unhandled hosts (and "normal" native builds) 6186 lt_cv_to_host_file_cmd=func_convert_file_noop 6187 ;; 6188 esac 6189 ;; 6190 esac 6191 fi 6192 6193 to_host_file_cmd=$lt_cv_to_host_file_cmd 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6195 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6196 6197 6198 6199 6200 6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6202 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6203 if test ${lt_cv_to_tool_file_cmd+y} 6204 then : 6205 printf %s "(cached) " >&6 6206 else case e in #( 6207 e) #assume ordinary cross tools, or native build. 6208 lt_cv_to_tool_file_cmd=func_convert_file_noop 6209 case $host in 6210 *-*-mingw* | *-*-windows* ) 6211 case $build in 6212 *-*-mingw* | *-*-windows* ) # actually msys 6213 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6214 ;; 6215 esac 6216 ;; 6217 esac 6218 ;; 6219 esac 6220 fi 6221 6222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6224 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6225 6226 6227 6228 6229 6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6231 printf %s "checking for $LD option to reload object files... " >&6; } 6232 if test ${lt_cv_ld_reload_flag+y} 6233 then : 6234 printf %s "(cached) " >&6 6235 else case e in #( 6236 e) lt_cv_ld_reload_flag='-r' ;; 6237 esac 6238 fi 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6240 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6241 reload_flag=$lt_cv_ld_reload_flag 6242 case $reload_flag in 6243 "" | " "*) ;; 6244 *) reload_flag=" $reload_flag" ;; 6245 esac 6246 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6247 case $host_os in 6248 cygwin* | mingw* | windows* | pw32* | cegcc*) 6249 if test yes != "$GCC"; then 6250 reload_cmds=false 6251 fi 6252 ;; 6253 darwin*) 6254 if test yes = "$GCC"; then 6255 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6256 else 6257 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6258 fi 6259 ;; 6260 esac 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 # Extract the first word of "file", so it can be a program name with args. 6271 set dummy file; ac_word=$2 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6273 printf %s "checking for $ac_word... " >&6; } 6274 if test ${ac_cv_prog_FILECMD+y} 6275 then : 6276 printf %s "(cached) " >&6 6277 else case e in #( 6278 e) if test -n "$FILECMD"; then 6279 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6280 else 6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282 for as_dir in $PATH 6283 do 6284 IFS=$as_save_IFS 6285 case $as_dir in #((( 6286 '') as_dir=./ ;; 6287 */) ;; 6288 *) as_dir=$as_dir/ ;; 6289 esac 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6292 ac_cv_prog_FILECMD="file" 6293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296 done 6297 done 6298 IFS=$as_save_IFS 6299 6300 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6301 fi ;; 6302 esac 6303 fi 6304 FILECMD=$ac_cv_prog_FILECMD 6305 if test -n "$FILECMD"; then 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6307 printf "%s\n" "$FILECMD" >&6; } 6308 else 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310 printf "%s\n" "no" >&6; } 6311 fi 6312 6313 6314 6315 6316 6317 6318 6319 6320 if test -n "$ac_tool_prefix"; then 6321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6322 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324 printf %s "checking for $ac_word... " >&6; } 6325 if test ${ac_cv_prog_OBJDUMP+y} 6326 then : 6327 printf %s "(cached) " >&6 6328 else case e in #( 6329 e) if test -n "$OBJDUMP"; then 6330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6331 else 6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6333 for as_dir in $PATH 6334 do 6335 IFS=$as_save_IFS 6336 case $as_dir in #((( 6337 '') as_dir=./ ;; 6338 */) ;; 6339 *) as_dir=$as_dir/ ;; 6340 esac 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347 done 6348 done 6349 IFS=$as_save_IFS 6350 6351 fi ;; 6352 esac 6353 fi 6354 OBJDUMP=$ac_cv_prog_OBJDUMP 6355 if test -n "$OBJDUMP"; then 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6357 printf "%s\n" "$OBJDUMP" >&6; } 6358 else 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360 printf "%s\n" "no" >&6; } 6361 fi 6362 6363 6364 fi 6365 if test -z "$ac_cv_prog_OBJDUMP"; then 6366 ac_ct_OBJDUMP=$OBJDUMP 6367 # Extract the first word of "objdump", so it can be a program name with args. 6368 set dummy objdump; ac_word=$2 6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6370 printf %s "checking for $ac_word... " >&6; } 6371 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6372 then : 6373 printf %s "(cached) " >&6 6374 else case e in #( 6375 e) if test -n "$ac_ct_OBJDUMP"; then 6376 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6377 else 6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379 for as_dir in $PATH 6380 do 6381 IFS=$as_save_IFS 6382 case $as_dir in #((( 6383 '') as_dir=./ ;; 6384 */) ;; 6385 *) as_dir=$as_dir/ ;; 6386 esac 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6389 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393 done 6394 done 6395 IFS=$as_save_IFS 6396 6397 fi ;; 6398 esac 6399 fi 6400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6401 if test -n "$ac_ct_OBJDUMP"; then 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6403 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6404 else 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406 printf "%s\n" "no" >&6; } 6407 fi 6408 6409 if test "x$ac_ct_OBJDUMP" = x; then 6410 OBJDUMP="false" 6411 else 6412 case $cross_compiling:$ac_tool_warned in 6413 yes:) 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6416 ac_tool_warned=yes ;; 6417 esac 6418 OBJDUMP=$ac_ct_OBJDUMP 6419 fi 6420 else 6421 OBJDUMP="$ac_cv_prog_OBJDUMP" 6422 fi 6423 6424 test -z "$OBJDUMP" && OBJDUMP=objdump 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6435 printf %s "checking how to recognize dependent libraries... " >&6; } 6436 if test ${lt_cv_deplibs_check_method+y} 6437 then : 6438 printf %s "(cached) " >&6 6439 else case e in #( 6440 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6441 lt_cv_file_magic_test_file= 6442 lt_cv_deplibs_check_method='unknown' 6443 # Need to set the preceding variable on all platforms that support 6444 # interlibrary dependencies. 6445 # 'none' -- dependencies not supported. 6446 # 'unknown' -- same as none, but documents that we really don't know. 6447 # 'pass_all' -- all dependencies passed with no checks. 6448 # 'file_magic [[regex]]' -- check by looking for files in library path 6449 # that responds to the $file_magic_cmd with a given extended regex. 6450 # If you have 'file' or equivalent on your system and you're not sure 6451 # whether 'pass_all' will *always* work, you probably want this one. 6452 6453 case $host_os in 6454 aix[4-9]*) 6455 lt_cv_deplibs_check_method=pass_all 6456 ;; 6457 6458 beos*) 6459 lt_cv_deplibs_check_method=pass_all 6460 ;; 6461 6462 bsdi[45]*) 6463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6464 lt_cv_file_magic_cmd='$FILECMD -L' 6465 lt_cv_file_magic_test_file=/shlib/libc.so 6466 ;; 6467 6468 cygwin*) 6469 # func_win32_libid is a shell function defined in ltmain.sh 6470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6471 lt_cv_file_magic_cmd='func_win32_libid' 6472 ;; 6473 6474 mingw* | windows* | pw32*) 6475 # Base MSYS/MinGW do not provide the 'file' command needed by 6476 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6477 # unless we find 'file', for example because we are cross-compiling. 6478 if ( file / ) >/dev/null 2>&1; then 6479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6480 lt_cv_file_magic_cmd='func_win32_libid' 6481 else 6482 # Keep this pattern in sync with the one in func_win32_libid. 6483 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6484 lt_cv_file_magic_cmd='$OBJDUMP -f' 6485 fi 6486 ;; 6487 6488 cegcc*) 6489 # use the weaker test based on 'objdump'. See mingw*. 6490 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6491 lt_cv_file_magic_cmd='$OBJDUMP -f' 6492 ;; 6493 6494 darwin* | rhapsody*) 6495 lt_cv_deplibs_check_method=pass_all 6496 ;; 6497 6498 freebsd* | dragonfly* | midnightbsd*) 6499 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6500 case $host_cpu in 6501 i*86 ) 6502 # Not sure whether the presence of OpenBSD here was a mistake. 6503 # Let's accept both of them until this is cleared up. 6504 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6505 lt_cv_file_magic_cmd=$FILECMD 6506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6507 ;; 6508 esac 6509 else 6510 lt_cv_deplibs_check_method=pass_all 6511 fi 6512 ;; 6513 6514 haiku*) 6515 lt_cv_deplibs_check_method=pass_all 6516 ;; 6517 6518 hpux10.20* | hpux11*) 6519 lt_cv_file_magic_cmd=$FILECMD 6520 case $host_cpu in 6521 ia64*) 6522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6524 ;; 6525 hppa*64*) 6526 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]' 6527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6528 ;; 6529 *) 6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6531 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6532 ;; 6533 esac 6534 ;; 6535 6536 interix[3-9]*) 6537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6539 ;; 6540 6541 irix5* | irix6* | nonstopux*) 6542 case $LD in 6543 *-32|*"-32 ") libmagic=32-bit;; 6544 *-n32|*"-n32 ") libmagic=N32;; 6545 *-64|*"-64 ") libmagic=64-bit;; 6546 *) libmagic=never-match;; 6547 esac 6548 lt_cv_deplibs_check_method=pass_all 6549 ;; 6550 6551 # This must be glibc/ELF. 6552 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6553 lt_cv_deplibs_check_method=pass_all 6554 ;; 6555 6556 *-mlibc) 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560 netbsd* | netbsdelf*-gnu) 6561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6563 else 6564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6565 fi 6566 ;; 6567 6568 newos6*) 6569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6570 lt_cv_file_magic_cmd=$FILECMD 6571 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6572 ;; 6573 6574 *nto* | *qnx*) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578 openbsd*) 6579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6581 else 6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6583 fi 6584 ;; 6585 6586 osf3* | osf4* | osf5*) 6587 lt_cv_deplibs_check_method=pass_all 6588 ;; 6589 6590 rdos*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594 serenity*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598 solaris*) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 6602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6603 lt_cv_deplibs_check_method=pass_all 6604 ;; 6605 6606 sysv4 | sysv4.3*) 6607 case $host_vendor in 6608 motorola) 6609 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]' 6610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6611 ;; 6612 ncr) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 sequent) 6616 lt_cv_file_magic_cmd='/bin/file' 6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6618 ;; 6619 sni) 6620 lt_cv_file_magic_cmd='/bin/file' 6621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6622 lt_cv_file_magic_test_file=/lib/libc.so 6623 ;; 6624 siemens) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 pc) 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630 esac 6631 ;; 6632 6633 tpf*) 6634 lt_cv_deplibs_check_method=pass_all 6635 ;; 6636 os2*) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 esac 6640 ;; 6641 esac 6642 fi 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6644 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6645 6646 file_magic_glob= 6647 want_nocaseglob=no 6648 if test "$build" = "$host"; then 6649 case $host_os in 6650 mingw* | windows* | pw32*) 6651 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6652 want_nocaseglob=yes 6653 else 6654 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6655 fi 6656 ;; 6657 esac 6658 fi 6659 6660 file_magic_cmd=$lt_cv_file_magic_cmd 6661 deplibs_check_method=$lt_cv_deplibs_check_method 6662 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 if test -n "$ac_tool_prefix"; then 6686 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6687 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6689 printf %s "checking for $ac_word... " >&6; } 6690 if test ${ac_cv_prog_DLLTOOL+y} 6691 then : 6692 printf %s "(cached) " >&6 6693 else case e in #( 6694 e) if test -n "$DLLTOOL"; then 6695 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6696 else 6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6698 for as_dir in $PATH 6699 do 6700 IFS=$as_save_IFS 6701 case $as_dir in #((( 6702 '') as_dir=./ ;; 6703 */) ;; 6704 *) as_dir=$as_dir/ ;; 6705 esac 6706 for ac_exec_ext in '' $ac_executable_extensions; do 6707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6708 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6710 break 2 6711 fi 6712 done 6713 done 6714 IFS=$as_save_IFS 6715 6716 fi ;; 6717 esac 6718 fi 6719 DLLTOOL=$ac_cv_prog_DLLTOOL 6720 if test -n "$DLLTOOL"; then 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6722 printf "%s\n" "$DLLTOOL" >&6; } 6723 else 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725 printf "%s\n" "no" >&6; } 6726 fi 6727 6728 6729 fi 6730 if test -z "$ac_cv_prog_DLLTOOL"; then 6731 ac_ct_DLLTOOL=$DLLTOOL 6732 # Extract the first word of "dlltool", so it can be a program name with args. 6733 set dummy dlltool; ac_word=$2 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735 printf %s "checking for $ac_word... " >&6; } 6736 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6737 then : 6738 printf %s "(cached) " >&6 6739 else case e in #( 6740 e) if test -n "$ac_ct_DLLTOOL"; then 6741 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6742 else 6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744 for as_dir in $PATH 6745 do 6746 IFS=$as_save_IFS 6747 case $as_dir in #((( 6748 '') as_dir=./ ;; 6749 */) ;; 6750 *) as_dir=$as_dir/ ;; 6751 esac 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758 done 6759 done 6760 IFS=$as_save_IFS 6761 6762 fi ;; 6763 esac 6764 fi 6765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6766 if test -n "$ac_ct_DLLTOOL"; then 6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6768 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6769 else 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771 printf "%s\n" "no" >&6; } 6772 fi 6773 6774 if test "x$ac_ct_DLLTOOL" = x; then 6775 DLLTOOL="false" 6776 else 6777 case $cross_compiling:$ac_tool_warned in 6778 yes:) 6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6781 ac_tool_warned=yes ;; 6782 esac 6783 DLLTOOL=$ac_ct_DLLTOOL 6784 fi 6785 else 6786 DLLTOOL="$ac_cv_prog_DLLTOOL" 6787 fi 6788 6789 test -z "$DLLTOOL" && DLLTOOL=dlltool 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6801 printf %s "checking how to associate runtime and link libraries... " >&6; } 6802 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6803 then : 6804 printf %s "(cached) " >&6 6805 else case e in #( 6806 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6807 6808 case $host_os in 6809 cygwin* | mingw* | windows* | pw32* | cegcc*) 6810 # two different shell functions defined in ltmain.sh; 6811 # decide which one to use based on capabilities of $DLLTOOL 6812 case `$DLLTOOL --help 2>&1` in 6813 *--identify-strict*) 6814 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6815 ;; 6816 *) 6817 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6818 ;; 6819 esac 6820 ;; 6821 *) 6822 # fallback: assume linklib IS sharedlib 6823 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6824 ;; 6825 esac 6826 ;; 6827 esac 6828 fi 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6830 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6831 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6832 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6833 6834 6835 6836 6837 6838 6839 6840 if test -n "$ac_tool_prefix"; then 6841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6844 printf %s "checking for $ac_word... " >&6; } 6845 if test ${ac_cv_prog_RANLIB+y} 6846 then : 6847 printf %s "(cached) " >&6 6848 else case e in #( 6849 e) if test -n "$RANLIB"; then 6850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6851 else 6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853 for as_dir in $PATH 6854 do 6855 IFS=$as_save_IFS 6856 case $as_dir in #((( 6857 '') as_dir=./ ;; 6858 */) ;; 6859 *) as_dir=$as_dir/ ;; 6860 esac 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867 done 6868 done 6869 IFS=$as_save_IFS 6870 6871 fi ;; 6872 esac 6873 fi 6874 RANLIB=$ac_cv_prog_RANLIB 6875 if test -n "$RANLIB"; then 6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6877 printf "%s\n" "$RANLIB" >&6; } 6878 else 6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880 printf "%s\n" "no" >&6; } 6881 fi 6882 6883 6884 fi 6885 if test -z "$ac_cv_prog_RANLIB"; then 6886 ac_ct_RANLIB=$RANLIB 6887 # Extract the first word of "ranlib", so it can be a program name with args. 6888 set dummy ranlib; ac_word=$2 6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890 printf %s "checking for $ac_word... " >&6; } 6891 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6892 then : 6893 printf %s "(cached) " >&6 6894 else case e in #( 6895 e) if test -n "$ac_ct_RANLIB"; then 6896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6897 else 6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899 for as_dir in $PATH 6900 do 6901 IFS=$as_save_IFS 6902 case $as_dir in #((( 6903 '') as_dir=./ ;; 6904 */) ;; 6905 *) as_dir=$as_dir/ ;; 6906 esac 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6909 ac_cv_prog_ac_ct_RANLIB="ranlib" 6910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913 done 6914 done 6915 IFS=$as_save_IFS 6916 6917 fi ;; 6918 esac 6919 fi 6920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6921 if test -n "$ac_ct_RANLIB"; then 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6923 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6924 else 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926 printf "%s\n" "no" >&6; } 6927 fi 6928 6929 if test "x$ac_ct_RANLIB" = x; then 6930 RANLIB=":" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933 yes:) 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6936 ac_tool_warned=yes ;; 6937 esac 6938 RANLIB=$ac_ct_RANLIB 6939 fi 6940 else 6941 RANLIB="$ac_cv_prog_RANLIB" 6942 fi 6943 6944 if test -n "$ac_tool_prefix"; then 6945 for ac_prog in ar 6946 do 6947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6950 printf %s "checking for $ac_word... " >&6; } 6951 if test ${ac_cv_prog_AR+y} 6952 then : 6953 printf %s "(cached) " >&6 6954 else case e in #( 6955 e) if test -n "$AR"; then 6956 ac_cv_prog_AR="$AR" # Let the user override the test. 6957 else 6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959 for as_dir in $PATH 6960 do 6961 IFS=$as_save_IFS 6962 case $as_dir in #((( 6963 '') as_dir=./ ;; 6964 */) ;; 6965 *) as_dir=$as_dir/ ;; 6966 esac 6967 for ac_exec_ext in '' $ac_executable_extensions; do 6968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6969 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6971 break 2 6972 fi 6973 done 6974 done 6975 IFS=$as_save_IFS 6976 6977 fi ;; 6978 esac 6979 fi 6980 AR=$ac_cv_prog_AR 6981 if test -n "$AR"; then 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6983 printf "%s\n" "$AR" >&6; } 6984 else 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986 printf "%s\n" "no" >&6; } 6987 fi 6988 6989 6990 test -n "$AR" && break 6991 done 6992 fi 6993 if test -z "$AR"; then 6994 ac_ct_AR=$AR 6995 for ac_prog in ar 6996 do 6997 # Extract the first word of "$ac_prog", so it can be a program name with args. 6998 set dummy $ac_prog; ac_word=$2 6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000 printf %s "checking for $ac_word... " >&6; } 7001 if test ${ac_cv_prog_ac_ct_AR+y} 7002 then : 7003 printf %s "(cached) " >&6 7004 else case e in #( 7005 e) if test -n "$ac_ct_AR"; then 7006 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7007 else 7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009 for as_dir in $PATH 7010 do 7011 IFS=$as_save_IFS 7012 case $as_dir in #((( 7013 '') as_dir=./ ;; 7014 */) ;; 7015 *) as_dir=$as_dir/ ;; 7016 esac 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7019 ac_cv_prog_ac_ct_AR="$ac_prog" 7020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 fi ;; 7028 esac 7029 fi 7030 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7031 if test -n "$ac_ct_AR"; then 7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7033 printf "%s\n" "$ac_ct_AR" >&6; } 7034 else 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7036 printf "%s\n" "no" >&6; } 7037 fi 7038 7039 7040 test -n "$ac_ct_AR" && break 7041 done 7042 7043 if test "x$ac_ct_AR" = x; then 7044 AR="false" 7045 else 7046 case $cross_compiling:$ac_tool_warned in 7047 yes:) 7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7050 ac_tool_warned=yes ;; 7051 esac 7052 AR=$ac_ct_AR 7053 fi 7054 fi 7055 7056 : ${AR=ar} 7057 7058 7059 7060 7061 7062 7063 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7064 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7065 # higher priority because that's what people were doing historically (setting 7066 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7067 # variable obsoleted/removed. 7068 7069 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7070 lt_ar_flags=$AR_FLAGS 7071 7072 7073 7074 7075 7076 7077 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7078 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7079 7080 7081 7082 7083 7084 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7086 printf %s "checking for archiver @FILE support... " >&6; } 7087 if test ${lt_cv_ar_at_file+y} 7088 then : 7089 printf %s "(cached) " >&6 7090 else case e in #( 7091 e) lt_cv_ar_at_file=no 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093 /* end confdefs.h. */ 7094 7095 int 7096 main (void) 7097 { 7098 7099 ; 7100 return 0; 7101 } 7102 _ACEOF 7103 if ac_fn_c_try_compile "$LINENO" 7104 then : 7105 echo conftest.$ac_objext > conftest.lst 7106 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7108 (eval $lt_ar_try) 2>&5 7109 ac_status=$? 7110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7111 test $ac_status = 0; } 7112 if test 0 -eq "$ac_status"; then 7113 # Ensure the archiver fails upon bogus file names. 7114 rm -f conftest.$ac_objext libconftest.a 7115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7116 (eval $lt_ar_try) 2>&5 7117 ac_status=$? 7118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7119 test $ac_status = 0; } 7120 if test 0 -ne "$ac_status"; then 7121 lt_cv_ar_at_file=@ 7122 fi 7123 fi 7124 rm -f conftest.* libconftest.a 7125 7126 fi 7127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7128 ;; 7129 esac 7130 fi 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7132 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7133 7134 if test no = "$lt_cv_ar_at_file"; then 7135 archiver_list_spec= 7136 else 7137 archiver_list_spec=$lt_cv_ar_at_file 7138 fi 7139 7140 7141 7142 7143 7144 7145 7146 if test -n "$ac_tool_prefix"; then 7147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7148 set dummy ${ac_tool_prefix}strip; ac_word=$2 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150 printf %s "checking for $ac_word... " >&6; } 7151 if test ${ac_cv_prog_STRIP+y} 7152 then : 7153 printf %s "(cached) " >&6 7154 else case e in #( 7155 e) if test -n "$STRIP"; then 7156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7157 else 7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7159 for as_dir in $PATH 7160 do 7161 IFS=$as_save_IFS 7162 case $as_dir in #((( 7163 '') as_dir=./ ;; 7164 */) ;; 7165 *) as_dir=$as_dir/ ;; 7166 esac 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7169 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173 done 7174 done 7175 IFS=$as_save_IFS 7176 7177 fi ;; 7178 esac 7179 fi 7180 STRIP=$ac_cv_prog_STRIP 7181 if test -n "$STRIP"; then 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7183 printf "%s\n" "$STRIP" >&6; } 7184 else 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186 printf "%s\n" "no" >&6; } 7187 fi 7188 7189 7190 fi 7191 if test -z "$ac_cv_prog_STRIP"; then 7192 ac_ct_STRIP=$STRIP 7193 # Extract the first word of "strip", so it can be a program name with args. 7194 set dummy strip; ac_word=$2 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196 printf %s "checking for $ac_word... " >&6; } 7197 if test ${ac_cv_prog_ac_ct_STRIP+y} 7198 then : 7199 printf %s "(cached) " >&6 7200 else case e in #( 7201 e) if test -n "$ac_ct_STRIP"; then 7202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7203 else 7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205 for as_dir in $PATH 7206 do 7207 IFS=$as_save_IFS 7208 case $as_dir in #((( 7209 '') as_dir=./ ;; 7210 */) ;; 7211 *) as_dir=$as_dir/ ;; 7212 esac 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7215 ac_cv_prog_ac_ct_STRIP="strip" 7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219 done 7220 done 7221 IFS=$as_save_IFS 7222 7223 fi ;; 7224 esac 7225 fi 7226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7227 if test -n "$ac_ct_STRIP"; then 7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7229 printf "%s\n" "$ac_ct_STRIP" >&6; } 7230 else 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7232 printf "%s\n" "no" >&6; } 7233 fi 7234 7235 if test "x$ac_ct_STRIP" = x; then 7236 STRIP=":" 7237 else 7238 case $cross_compiling:$ac_tool_warned in 7239 yes:) 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7242 ac_tool_warned=yes ;; 7243 esac 7244 STRIP=$ac_ct_STRIP 7245 fi 7246 else 7247 STRIP="$ac_cv_prog_STRIP" 7248 fi 7249 7250 test -z "$STRIP" && STRIP=: 7251 7252 7253 7254 7255 7256 7257 7258 test -z "$RANLIB" && RANLIB=: 7259 7260 7261 7262 7263 7264 7265 # Determine commands to create old-style static archives. 7266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7267 old_postinstall_cmds='chmod 644 $oldlib' 7268 old_postuninstall_cmds= 7269 7270 if test -n "$RANLIB"; then 7271 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7273 fi 7274 7275 case $host_os in 7276 darwin*) 7277 lock_old_archive_extraction=yes ;; 7278 *) 7279 lock_old_archive_extraction=no ;; 7280 esac 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 # If no C compiler was specified, use CC. 7321 LTCC=${LTCC-"$CC"} 7322 7323 # If no C compiler flags were specified, use CFLAGS. 7324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7325 7326 # Allow CC to be a program name with arguments. 7327 compiler=$CC 7328 7329 7330 # Check for command to grab the raw symbol name followed by C symbol from nm. 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7332 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7333 if test ${lt_cv_sys_global_symbol_pipe+y} 7334 then : 7335 printf %s "(cached) " >&6 7336 else case e in #( 7337 e) 7338 # These are sane defaults that work on at least a few old systems. 7339 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7340 7341 # Character class describing NM global symbol codes. 7342 symcode='[BCDEGRST]' 7343 7344 # Regexp to match symbols that can be accessed directly from C. 7345 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7346 7347 # Define system-specific variables. 7348 case $host_os in 7349 aix*) 7350 symcode='[BCDT]' 7351 ;; 7352 cygwin* | mingw* | windows* | pw32* | cegcc*) 7353 symcode='[ABCDGISTW]' 7354 ;; 7355 hpux*) 7356 if test ia64 = "$host_cpu"; then 7357 symcode='[ABCDEGRST]' 7358 fi 7359 ;; 7360 irix* | nonstopux*) 7361 symcode='[BCDEGRST]' 7362 ;; 7363 osf*) 7364 symcode='[BCDEGQRST]' 7365 ;; 7366 solaris*) 7367 symcode='[BCDRT]' 7368 ;; 7369 sco3.2v5*) 7370 symcode='[DT]' 7371 ;; 7372 sysv4.2uw2*) 7373 symcode='[DT]' 7374 ;; 7375 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7376 symcode='[ABDT]' 7377 ;; 7378 sysv4) 7379 symcode='[DFNSTU]' 7380 ;; 7381 esac 7382 7383 # If we're using GNU nm, then use its standard symbol codes. 7384 case `$NM -V 2>&1` in 7385 *GNU* | *'with BFD'*) 7386 symcode='[ABCDGIRSTW]' ;; 7387 esac 7388 7389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7390 # Gets list of data symbols to import. 7391 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7392 # Adjust the below global symbol transforms to fixup imported variables. 7393 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7394 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7395 lt_c_name_lib_hook="\ 7396 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7397 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7398 else 7399 # Disable hooks by default. 7400 lt_cv_sys_global_symbol_to_import= 7401 lt_cdecl_hook= 7402 lt_c_name_hook= 7403 lt_c_name_lib_hook= 7404 fi 7405 7406 # Transform an extracted symbol line into a proper C declaration. 7407 # Some systems (esp. on ia64) link data and code symbols differently, 7408 # so use this general approach. 7409 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7410 $lt_cdecl_hook\ 7411 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7412 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7413 7414 # Transform an extracted symbol line into symbol name and symbol address 7415 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7416 $lt_c_name_hook\ 7417 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7418 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7419 7420 # Transform an extracted symbol line into symbol name with lib prefix and 7421 # symbol address. 7422 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7423 $lt_c_name_lib_hook\ 7424 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7425 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7426 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7427 7428 # Handle CRLF in mingw tool chain 7429 opt_cr= 7430 case $build_os in 7431 mingw* | windows*) 7432 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7433 ;; 7434 esac 7435 7436 # Try without a prefix underscore, then with it. 7437 for ac_symprfx in "" "_"; do 7438 7439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7440 symxfrm="\\1 $ac_symprfx\\2 \\2" 7441 7442 # Write the raw and C identifiers. 7443 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7444 # Fake it for dumpbin and say T for any non-static function, 7445 # D for any global variable and I for any imported variable. 7446 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7447 # which start with @ or ?. 7448 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7449 " {last_section=section; section=\$ 3};"\ 7450 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7451 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7452 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7453 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7454 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7455 " \$ 0!~/External *\|/{next};"\ 7456 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7457 " {if(hide[section]) next};"\ 7458 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7459 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7460 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7461 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7462 " ' prfx=^$ac_symprfx" 7463 else 7464 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7465 fi 7466 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7467 7468 # Check to see that the pipe works correctly. 7469 pipe_works=no 7470 7471 rm -f conftest* 7472 cat > conftest.$ac_ext <<_LT_EOF 7473 #ifdef __cplusplus 7474 extern "C" { 7475 #endif 7476 char nm_test_var; 7477 void nm_test_func(void); 7478 void nm_test_func(void){} 7479 #ifdef __cplusplus 7480 } 7481 #endif 7482 int main(void){nm_test_var='a';nm_test_func();return(0);} 7483 _LT_EOF 7484 7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7486 (eval $ac_compile) 2>&5 7487 ac_status=$? 7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7489 test $ac_status = 0; }; then 7490 # Now try to grab the symbols. 7491 nlist=conftest.nm 7492 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7493 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7494 # Try sorting and uniquifying the output. 7495 if sort "$nlist" | uniq > "$nlist"T; then 7496 mv -f "$nlist"T "$nlist" 7497 else 7498 rm -f "$nlist"T 7499 fi 7500 7501 # Make sure that we snagged all the symbols we need. 7502 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7503 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7504 cat <<_LT_EOF > conftest.$ac_ext 7505 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7506 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7507 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7508 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7509 # define LT_DLSYM_CONST 7510 #elif defined __osf__ 7511 /* This system does not cope well with relocations in const data. */ 7512 # define LT_DLSYM_CONST 7513 #else 7514 # define LT_DLSYM_CONST const 7515 #endif 7516 7517 #ifdef __cplusplus 7518 extern "C" { 7519 #endif 7520 7521 _LT_EOF 7522 # Now generate the symbol file. 7523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7524 7525 cat <<_LT_EOF >> conftest.$ac_ext 7526 7527 /* The mapping between symbol names and symbols. */ 7528 LT_DLSYM_CONST struct { 7529 const char *name; 7530 void *address; 7531 } 7532 lt__PROGRAM__LTX_preloaded_symbols[] = 7533 { 7534 { "@PROGRAM@", (void *) 0 }, 7535 _LT_EOF 7536 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7537 cat <<\_LT_EOF >> conftest.$ac_ext 7538 {0, (void *) 0} 7539 }; 7540 7541 /* This works around a problem in FreeBSD linker */ 7542 #ifdef FREEBSD_WORKAROUND 7543 static const void *lt_preloaded_setup() { 7544 return lt__PROGRAM__LTX_preloaded_symbols; 7545 } 7546 #endif 7547 7548 #ifdef __cplusplus 7549 } 7550 #endif 7551 _LT_EOF 7552 # Now try linking the two files. 7553 mv conftest.$ac_objext conftstm.$ac_objext 7554 lt_globsym_save_LIBS=$LIBS 7555 lt_globsym_save_CFLAGS=$CFLAGS 7556 LIBS=conftstm.$ac_objext 7557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7559 (eval $ac_link) 2>&5 7560 ac_status=$? 7561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7562 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7563 pipe_works=yes 7564 fi 7565 LIBS=$lt_globsym_save_LIBS 7566 CFLAGS=$lt_globsym_save_CFLAGS 7567 else 7568 echo "cannot find nm_test_func in $nlist" >&5 7569 fi 7570 else 7571 echo "cannot find nm_test_var in $nlist" >&5 7572 fi 7573 else 7574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7575 fi 7576 else 7577 echo "$progname: failed program was:" >&5 7578 cat conftest.$ac_ext >&5 7579 fi 7580 rm -rf conftest* conftst* 7581 7582 # Do not use the global_symbol_pipe unless it works. 7583 if test yes = "$pipe_works"; then 7584 break 7585 else 7586 lt_cv_sys_global_symbol_pipe= 7587 fi 7588 done 7589 ;; 7590 esac 7591 fi 7592 7593 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7594 lt_cv_sys_global_symbol_to_cdecl= 7595 fi 7596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7598 printf "%s\n" "failed" >&6; } 7599 else 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7601 printf "%s\n" "ok" >&6; } 7602 fi 7603 7604 # Response file support. 7605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7606 nm_file_list_spec='@' 7607 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7608 nm_file_list_spec='@' 7609 fi 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7648 printf %s "checking for sysroot... " >&6; } 7649 7650 # Check whether --with-sysroot was given. 7651 if test ${with_sysroot+y} 7652 then : 7653 withval=$with_sysroot; 7654 else case e in #( 7655 e) with_sysroot=no ;; 7656 esac 7657 fi 7658 7659 7660 lt_sysroot= 7661 case $with_sysroot in #( 7662 yes) 7663 if test yes = "$GCC"; then 7664 # Trim trailing / since we'll always append absolute paths and we want 7665 # to avoid //, if only for less confusing output for the user. 7666 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7667 fi 7668 ;; #( 7669 /*) 7670 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7671 ;; #( 7672 no|'') 7673 ;; #( 7674 *) 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7676 printf "%s\n" "$with_sysroot" >&6; } 7677 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7678 ;; 7679 esac 7680 7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7682 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7683 7684 7685 7686 7687 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7689 printf %s "checking for a working dd... " >&6; } 7690 if test ${ac_cv_path_lt_DD+y} 7691 then : 7692 printf %s "(cached) " >&6 7693 else case e in #( 7694 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7695 cat conftest.i conftest.i >conftest2.i 7696 : ${lt_DD:=$DD} 7697 if test -z "$lt_DD"; then 7698 ac_path_lt_DD_found=false 7699 # Loop through the user's path and test for each of PROGNAME-LIST 7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7701 for as_dir in $PATH 7702 do 7703 IFS=$as_save_IFS 7704 case $as_dir in #((( 7705 '') as_dir=./ ;; 7706 */) ;; 7707 *) as_dir=$as_dir/ ;; 7708 esac 7709 for ac_prog in dd 7710 do 7711 for ac_exec_ext in '' $ac_executable_extensions; do 7712 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7713 as_fn_executable_p "$ac_path_lt_DD" || continue 7714 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7715 cmp -s conftest.i conftest.out \ 7716 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7717 fi 7718 $ac_path_lt_DD_found && break 3 7719 done 7720 done 7721 done 7722 IFS=$as_save_IFS 7723 if test -z "$ac_cv_path_lt_DD"; then 7724 : 7725 fi 7726 else 7727 ac_cv_path_lt_DD=$lt_DD 7728 fi 7729 7730 rm -f conftest.i conftest2.i conftest.out ;; 7731 esac 7732 fi 7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7734 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7735 7736 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7738 printf %s "checking how to truncate binary pipes... " >&6; } 7739 if test ${lt_cv_truncate_bin+y} 7740 then : 7741 printf %s "(cached) " >&6 7742 else case e in #( 7743 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7744 cat conftest.i conftest.i >conftest2.i 7745 lt_cv_truncate_bin= 7746 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7747 cmp -s conftest.i conftest.out \ 7748 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7749 fi 7750 rm -f conftest.i conftest2.i conftest.out 7751 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7752 esac 7753 fi 7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7755 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7756 7757 7758 7759 7760 7761 7762 7763 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7764 func_cc_basename () 7765 { 7766 for cc_temp in $*""; do 7767 case $cc_temp in 7768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7770 \-*) ;; 7771 *) break;; 7772 esac 7773 done 7774 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7775 } 7776 7777 # Check whether --enable-libtool-lock was given. 7778 if test ${enable_libtool_lock+y} 7779 then : 7780 enableval=$enable_libtool_lock; 7781 fi 7782 7783 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7784 7785 # Some flags need to be propagated to the compiler or linker for good 7786 # libtool support. 7787 case $host in 7788 ia64-*-hpux*) 7789 # Find out what ABI is being produced by ac_compile, and set mode 7790 # options accordingly. 7791 echo 'int i;' > conftest.$ac_ext 7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7793 (eval $ac_compile) 2>&5 7794 ac_status=$? 7795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7796 test $ac_status = 0; }; then 7797 case `$FILECMD conftest.$ac_objext` in 7798 *ELF-32*) 7799 HPUX_IA64_MODE=32 7800 ;; 7801 *ELF-64*) 7802 HPUX_IA64_MODE=64 7803 ;; 7804 esac 7805 fi 7806 rm -rf conftest* 7807 ;; 7808 *-*-irix6*) 7809 # Find out what ABI is being produced by ac_compile, and set linker 7810 # options accordingly. 7811 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7813 (eval $ac_compile) 2>&5 7814 ac_status=$? 7815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7816 test $ac_status = 0; }; then 7817 if test yes = "$lt_cv_prog_gnu_ld"; then 7818 case `$FILECMD conftest.$ac_objext` in 7819 *32-bit*) 7820 LD="${LD-ld} -melf32bsmip" 7821 ;; 7822 *N32*) 7823 LD="${LD-ld} -melf32bmipn32" 7824 ;; 7825 *64-bit*) 7826 LD="${LD-ld} -melf64bmip" 7827 ;; 7828 esac 7829 else 7830 case `$FILECMD conftest.$ac_objext` in 7831 *32-bit*) 7832 LD="${LD-ld} -32" 7833 ;; 7834 *N32*) 7835 LD="${LD-ld} -n32" 7836 ;; 7837 *64-bit*) 7838 LD="${LD-ld} -64" 7839 ;; 7840 esac 7841 fi 7842 fi 7843 rm -rf conftest* 7844 ;; 7845 7846 mips64*-*linux*) 7847 # Find out what ABI is being produced by ac_compile, and set linker 7848 # options accordingly. 7849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7851 (eval $ac_compile) 2>&5 7852 ac_status=$? 7853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7854 test $ac_status = 0; }; then 7855 emul=elf 7856 case `$FILECMD conftest.$ac_objext` in 7857 *32-bit*) 7858 emul="${emul}32" 7859 ;; 7860 *64-bit*) 7861 emul="${emul}64" 7862 ;; 7863 esac 7864 case `$FILECMD conftest.$ac_objext` in 7865 *MSB*) 7866 emul="${emul}btsmip" 7867 ;; 7868 *LSB*) 7869 emul="${emul}ltsmip" 7870 ;; 7871 esac 7872 case `$FILECMD conftest.$ac_objext` in 7873 *N32*) 7874 emul="${emul}n32" 7875 ;; 7876 esac 7877 LD="${LD-ld} -m $emul" 7878 fi 7879 rm -rf conftest* 7880 ;; 7881 7882 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7883 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7884 # Find out what ABI is being produced by ac_compile, and set linker 7885 # options accordingly. Note that the listed cases only cover the 7886 # situations where additional linker options are needed (such as when 7887 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7888 # vice versa); the common cases where no linker options are needed do 7889 # not appear in the list. 7890 echo 'int i;' > conftest.$ac_ext 7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7892 (eval $ac_compile) 2>&5 7893 ac_status=$? 7894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7895 test $ac_status = 0; }; then 7896 case `$FILECMD conftest.o` in 7897 *32-bit*) 7898 case $host in 7899 x86_64-*kfreebsd*-gnu) 7900 LD="${LD-ld} -m elf_i386_fbsd" 7901 ;; 7902 x86_64-*linux*|x86_64-gnu*) 7903 case `$FILECMD conftest.o` in 7904 *x86-64*) 7905 LD="${LD-ld} -m elf32_x86_64" 7906 ;; 7907 *) 7908 LD="${LD-ld} -m elf_i386" 7909 ;; 7910 esac 7911 ;; 7912 powerpc64le-*linux*) 7913 LD="${LD-ld} -m elf32lppclinux" 7914 ;; 7915 powerpc64-*linux*) 7916 LD="${LD-ld} -m elf32ppclinux" 7917 ;; 7918 s390x-*linux*) 7919 LD="${LD-ld} -m elf_s390" 7920 ;; 7921 sparc64-*linux*) 7922 LD="${LD-ld} -m elf32_sparc" 7923 ;; 7924 esac 7925 ;; 7926 *64-bit*) 7927 case $host in 7928 x86_64-*kfreebsd*-gnu) 7929 LD="${LD-ld} -m elf_x86_64_fbsd" 7930 ;; 7931 x86_64-*linux*|x86_64-gnu*) 7932 LD="${LD-ld} -m elf_x86_64" 7933 ;; 7934 powerpcle-*linux*) 7935 LD="${LD-ld} -m elf64lppc" 7936 ;; 7937 powerpc-*linux*) 7938 LD="${LD-ld} -m elf64ppc" 7939 ;; 7940 s390*-*linux*|s390*-*tpf*) 7941 LD="${LD-ld} -m elf64_s390" 7942 ;; 7943 sparc*-*linux*) 7944 LD="${LD-ld} -m elf64_sparc" 7945 ;; 7946 esac 7947 ;; 7948 esac 7949 fi 7950 rm -rf conftest* 7951 ;; 7952 7953 *-*-sco3.2v5*) 7954 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7955 SAVE_CFLAGS=$CFLAGS 7956 CFLAGS="$CFLAGS -belf" 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7958 printf %s "checking whether the C compiler needs -belf... " >&6; } 7959 if test ${lt_cv_cc_needs_belf+y} 7960 then : 7961 printf %s "(cached) " >&6 7962 else case e in #( 7963 e) ac_ext=c 7964 ac_cpp='$CPP $CPPFLAGS' 7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7968 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970 /* end confdefs.h. */ 7971 7972 int 7973 main (void) 7974 { 7975 7976 ; 7977 return 0; 7978 } 7979 _ACEOF 7980 if ac_fn_c_try_link "$LINENO" 7981 then : 7982 lt_cv_cc_needs_belf=yes 7983 else case e in #( 7984 e) lt_cv_cc_needs_belf=no ;; 7985 esac 7986 fi 7987 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7988 conftest$ac_exeext conftest.$ac_ext 7989 ac_ext=c 7990 ac_cpp='$CPP $CPPFLAGS' 7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7994 ;; 7995 esac 7996 fi 7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7998 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7999 if test yes != "$lt_cv_cc_needs_belf"; then 8000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8001 CFLAGS=$SAVE_CFLAGS 8002 fi 8003 ;; 8004 *-*solaris*) 8005 # Find out what ABI is being produced by ac_compile, and set linker 8006 # options accordingly. 8007 echo 'int i;' > conftest.$ac_ext 8008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8009 (eval $ac_compile) 2>&5 8010 ac_status=$? 8011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8012 test $ac_status = 0; }; then 8013 case `$FILECMD conftest.o` in 8014 *64-bit*) 8015 case $lt_cv_prog_gnu_ld in 8016 yes*) 8017 case $host in 8018 i?86-*-solaris*|x86_64-*-solaris*) 8019 LD="${LD-ld} -m elf_x86_64" 8020 ;; 8021 sparc*-*-solaris*) 8022 LD="${LD-ld} -m elf64_sparc" 8023 ;; 8024 esac 8025 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8026 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8027 LD=${LD-ld}_sol2 8028 fi 8029 ;; 8030 *) 8031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8032 LD="${LD-ld} -64" 8033 fi 8034 ;; 8035 esac 8036 ;; 8037 esac 8038 fi 8039 rm -rf conftest* 8040 ;; 8041 esac 8042 8043 need_locks=$enable_libtool_lock 8044 8045 if test -n "$ac_tool_prefix"; then 8046 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8047 set dummy ${ac_tool_prefix}mt; ac_word=$2 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8049 printf %s "checking for $ac_word... " >&6; } 8050 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8051 then : 8052 printf %s "(cached) " >&6 8053 else case e in #( 8054 e) if test -n "$MANIFEST_TOOL"; then 8055 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8056 else 8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8058 for as_dir in $PATH 8059 do 8060 IFS=$as_save_IFS 8061 case $as_dir in #((( 8062 '') as_dir=./ ;; 8063 */) ;; 8064 *) as_dir=$as_dir/ ;; 8065 esac 8066 for ac_exec_ext in '' $ac_executable_extensions; do 8067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8068 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8070 break 2 8071 fi 8072 done 8073 done 8074 IFS=$as_save_IFS 8075 8076 fi ;; 8077 esac 8078 fi 8079 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8080 if test -n "$MANIFEST_TOOL"; then 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8082 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8083 else 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8085 printf "%s\n" "no" >&6; } 8086 fi 8087 8088 8089 fi 8090 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8091 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8092 # Extract the first word of "mt", so it can be a program name with args. 8093 set dummy mt; ac_word=$2 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8095 printf %s "checking for $ac_word... " >&6; } 8096 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8097 then : 8098 printf %s "(cached) " >&6 8099 else case e in #( 8100 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8101 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8102 else 8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104 for as_dir in $PATH 8105 do 8106 IFS=$as_save_IFS 8107 case $as_dir in #((( 8108 '') as_dir=./ ;; 8109 */) ;; 8110 *) as_dir=$as_dir/ ;; 8111 esac 8112 for ac_exec_ext in '' $ac_executable_extensions; do 8113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8114 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8116 break 2 8117 fi 8118 done 8119 done 8120 IFS=$as_save_IFS 8121 8122 fi ;; 8123 esac 8124 fi 8125 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8126 if test -n "$ac_ct_MANIFEST_TOOL"; then 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8128 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8129 else 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8131 printf "%s\n" "no" >&6; } 8132 fi 8133 8134 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8135 MANIFEST_TOOL=":" 8136 else 8137 case $cross_compiling:$ac_tool_warned in 8138 yes:) 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8140 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8141 ac_tool_warned=yes ;; 8142 esac 8143 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8144 fi 8145 else 8146 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8147 fi 8148 8149 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8151 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8152 if test ${lt_cv_path_manifest_tool+y} 8153 then : 8154 printf %s "(cached) " >&6 8155 else case e in #( 8156 e) lt_cv_path_manifest_tool=no 8157 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8158 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8159 cat conftest.err >&5 8160 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8161 lt_cv_path_manifest_tool=yes 8162 fi 8163 rm -f conftest* ;; 8164 esac 8165 fi 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8167 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 8168 if test yes != "$lt_cv_path_manifest_tool"; then 8169 MANIFEST_TOOL=: 8170 fi 8171 8172 8173 8174 8175 8176 8177 case $host_os in 8178 rhapsody* | darwin*) 8179 if test -n "$ac_tool_prefix"; then 8180 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8181 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8183 printf %s "checking for $ac_word... " >&6; } 8184 if test ${ac_cv_prog_DSYMUTIL+y} 8185 then : 8186 printf %s "(cached) " >&6 8187 else case e in #( 8188 e) if test -n "$DSYMUTIL"; then 8189 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8190 else 8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8192 for as_dir in $PATH 8193 do 8194 IFS=$as_save_IFS 8195 case $as_dir in #((( 8196 '') as_dir=./ ;; 8197 */) ;; 8198 *) as_dir=$as_dir/ ;; 8199 esac 8200 for ac_exec_ext in '' $ac_executable_extensions; do 8201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8202 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8204 break 2 8205 fi 8206 done 8207 done 8208 IFS=$as_save_IFS 8209 8210 fi ;; 8211 esac 8212 fi 8213 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8214 if test -n "$DSYMUTIL"; then 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8216 printf "%s\n" "$DSYMUTIL" >&6; } 8217 else 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8219 printf "%s\n" "no" >&6; } 8220 fi 8221 8222 8223 fi 8224 if test -z "$ac_cv_prog_DSYMUTIL"; then 8225 ac_ct_DSYMUTIL=$DSYMUTIL 8226 # Extract the first word of "dsymutil", so it can be a program name with args. 8227 set dummy dsymutil; ac_word=$2 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229 printf %s "checking for $ac_word... " >&6; } 8230 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8231 then : 8232 printf %s "(cached) " >&6 8233 else case e in #( 8234 e) if test -n "$ac_ct_DSYMUTIL"; then 8235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8236 else 8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8238 for as_dir in $PATH 8239 do 8240 IFS=$as_save_IFS 8241 case $as_dir in #((( 8242 '') as_dir=./ ;; 8243 */) ;; 8244 *) as_dir=$as_dir/ ;; 8245 esac 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252 done 8253 done 8254 IFS=$as_save_IFS 8255 8256 fi ;; 8257 esac 8258 fi 8259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8260 if test -n "$ac_ct_DSYMUTIL"; then 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8262 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8263 else 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265 printf "%s\n" "no" >&6; } 8266 fi 8267 8268 if test "x$ac_ct_DSYMUTIL" = x; then 8269 DSYMUTIL=":" 8270 else 8271 case $cross_compiling:$ac_tool_warned in 8272 yes:) 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8274 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8275 ac_tool_warned=yes ;; 8276 esac 8277 DSYMUTIL=$ac_ct_DSYMUTIL 8278 fi 8279 else 8280 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8281 fi 8282 8283 if test -n "$ac_tool_prefix"; then 8284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287 printf %s "checking for $ac_word... " >&6; } 8288 if test ${ac_cv_prog_NMEDIT+y} 8289 then : 8290 printf %s "(cached) " >&6 8291 else case e in #( 8292 e) if test -n "$NMEDIT"; then 8293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8294 else 8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8296 for as_dir in $PATH 8297 do 8298 IFS=$as_save_IFS 8299 case $as_dir in #((( 8300 '') as_dir=./ ;; 8301 */) ;; 8302 *) as_dir=$as_dir/ ;; 8303 esac 8304 for ac_exec_ext in '' $ac_executable_extensions; do 8305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8306 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8308 break 2 8309 fi 8310 done 8311 done 8312 IFS=$as_save_IFS 8313 8314 fi ;; 8315 esac 8316 fi 8317 NMEDIT=$ac_cv_prog_NMEDIT 8318 if test -n "$NMEDIT"; then 8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8320 printf "%s\n" "$NMEDIT" >&6; } 8321 else 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323 printf "%s\n" "no" >&6; } 8324 fi 8325 8326 8327 fi 8328 if test -z "$ac_cv_prog_NMEDIT"; then 8329 ac_ct_NMEDIT=$NMEDIT 8330 # Extract the first word of "nmedit", so it can be a program name with args. 8331 set dummy nmedit; ac_word=$2 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8333 printf %s "checking for $ac_word... " >&6; } 8334 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8335 then : 8336 printf %s "(cached) " >&6 8337 else case e in #( 8338 e) if test -n "$ac_ct_NMEDIT"; then 8339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8340 else 8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8342 for as_dir in $PATH 8343 do 8344 IFS=$as_save_IFS 8345 case $as_dir in #((( 8346 '') as_dir=./ ;; 8347 */) ;; 8348 *) as_dir=$as_dir/ ;; 8349 esac 8350 for ac_exec_ext in '' $ac_executable_extensions; do 8351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8352 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8354 break 2 8355 fi 8356 done 8357 done 8358 IFS=$as_save_IFS 8359 8360 fi ;; 8361 esac 8362 fi 8363 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8364 if test -n "$ac_ct_NMEDIT"; then 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8366 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8367 else 8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369 printf "%s\n" "no" >&6; } 8370 fi 8371 8372 if test "x$ac_ct_NMEDIT" = x; then 8373 NMEDIT=":" 8374 else 8375 case $cross_compiling:$ac_tool_warned in 8376 yes:) 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8379 ac_tool_warned=yes ;; 8380 esac 8381 NMEDIT=$ac_ct_NMEDIT 8382 fi 8383 else 8384 NMEDIT="$ac_cv_prog_NMEDIT" 8385 fi 8386 8387 if test -n "$ac_tool_prefix"; then 8388 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8389 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391 printf %s "checking for $ac_word... " >&6; } 8392 if test ${ac_cv_prog_LIPO+y} 8393 then : 8394 printf %s "(cached) " >&6 8395 else case e in #( 8396 e) if test -n "$LIPO"; then 8397 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8398 else 8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8400 for as_dir in $PATH 8401 do 8402 IFS=$as_save_IFS 8403 case $as_dir in #((( 8404 '') as_dir=./ ;; 8405 */) ;; 8406 *) as_dir=$as_dir/ ;; 8407 esac 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414 done 8415 done 8416 IFS=$as_save_IFS 8417 8418 fi ;; 8419 esac 8420 fi 8421 LIPO=$ac_cv_prog_LIPO 8422 if test -n "$LIPO"; then 8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8424 printf "%s\n" "$LIPO" >&6; } 8425 else 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8427 printf "%s\n" "no" >&6; } 8428 fi 8429 8430 8431 fi 8432 if test -z "$ac_cv_prog_LIPO"; then 8433 ac_ct_LIPO=$LIPO 8434 # Extract the first word of "lipo", so it can be a program name with args. 8435 set dummy lipo; ac_word=$2 8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8437 printf %s "checking for $ac_word... " >&6; } 8438 if test ${ac_cv_prog_ac_ct_LIPO+y} 8439 then : 8440 printf %s "(cached) " >&6 8441 else case e in #( 8442 e) if test -n "$ac_ct_LIPO"; then 8443 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8444 else 8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8446 for as_dir in $PATH 8447 do 8448 IFS=$as_save_IFS 8449 case $as_dir in #((( 8450 '') as_dir=./ ;; 8451 */) ;; 8452 *) as_dir=$as_dir/ ;; 8453 esac 8454 for ac_exec_ext in '' $ac_executable_extensions; do 8455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8456 ac_cv_prog_ac_ct_LIPO="lipo" 8457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8458 break 2 8459 fi 8460 done 8461 done 8462 IFS=$as_save_IFS 8463 8464 fi ;; 8465 esac 8466 fi 8467 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8468 if test -n "$ac_ct_LIPO"; then 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8470 printf "%s\n" "$ac_ct_LIPO" >&6; } 8471 else 8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8473 printf "%s\n" "no" >&6; } 8474 fi 8475 8476 if test "x$ac_ct_LIPO" = x; then 8477 LIPO=":" 8478 else 8479 case $cross_compiling:$ac_tool_warned in 8480 yes:) 8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8483 ac_tool_warned=yes ;; 8484 esac 8485 LIPO=$ac_ct_LIPO 8486 fi 8487 else 8488 LIPO="$ac_cv_prog_LIPO" 8489 fi 8490 8491 if test -n "$ac_tool_prefix"; then 8492 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8493 set dummy ${ac_tool_prefix}otool; ac_word=$2 8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8495 printf %s "checking for $ac_word... " >&6; } 8496 if test ${ac_cv_prog_OTOOL+y} 8497 then : 8498 printf %s "(cached) " >&6 8499 else case e in #( 8500 e) if test -n "$OTOOL"; then 8501 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8502 else 8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8504 for as_dir in $PATH 8505 do 8506 IFS=$as_save_IFS 8507 case $as_dir in #((( 8508 '') as_dir=./ ;; 8509 */) ;; 8510 *) as_dir=$as_dir/ ;; 8511 esac 8512 for ac_exec_ext in '' $ac_executable_extensions; do 8513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8514 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8516 break 2 8517 fi 8518 done 8519 done 8520 IFS=$as_save_IFS 8521 8522 fi ;; 8523 esac 8524 fi 8525 OTOOL=$ac_cv_prog_OTOOL 8526 if test -n "$OTOOL"; then 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8528 printf "%s\n" "$OTOOL" >&6; } 8529 else 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8531 printf "%s\n" "no" >&6; } 8532 fi 8533 8534 8535 fi 8536 if test -z "$ac_cv_prog_OTOOL"; then 8537 ac_ct_OTOOL=$OTOOL 8538 # Extract the first word of "otool", so it can be a program name with args. 8539 set dummy otool; ac_word=$2 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541 printf %s "checking for $ac_word... " >&6; } 8542 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8543 then : 8544 printf %s "(cached) " >&6 8545 else case e in #( 8546 e) if test -n "$ac_ct_OTOOL"; then 8547 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8548 else 8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8550 for as_dir in $PATH 8551 do 8552 IFS=$as_save_IFS 8553 case $as_dir in #((( 8554 '') as_dir=./ ;; 8555 */) ;; 8556 *) as_dir=$as_dir/ ;; 8557 esac 8558 for ac_exec_ext in '' $ac_executable_extensions; do 8559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8560 ac_cv_prog_ac_ct_OTOOL="otool" 8561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8562 break 2 8563 fi 8564 done 8565 done 8566 IFS=$as_save_IFS 8567 8568 fi ;; 8569 esac 8570 fi 8571 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8572 if test -n "$ac_ct_OTOOL"; then 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8574 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8575 else 8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577 printf "%s\n" "no" >&6; } 8578 fi 8579 8580 if test "x$ac_ct_OTOOL" = x; then 8581 OTOOL=":" 8582 else 8583 case $cross_compiling:$ac_tool_warned in 8584 yes:) 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8587 ac_tool_warned=yes ;; 8588 esac 8589 OTOOL=$ac_ct_OTOOL 8590 fi 8591 else 8592 OTOOL="$ac_cv_prog_OTOOL" 8593 fi 8594 8595 if test -n "$ac_tool_prefix"; then 8596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8597 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8599 printf %s "checking for $ac_word... " >&6; } 8600 if test ${ac_cv_prog_OTOOL64+y} 8601 then : 8602 printf %s "(cached) " >&6 8603 else case e in #( 8604 e) if test -n "$OTOOL64"; then 8605 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8606 else 8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8608 for as_dir in $PATH 8609 do 8610 IFS=$as_save_IFS 8611 case $as_dir in #((( 8612 '') as_dir=./ ;; 8613 */) ;; 8614 *) as_dir=$as_dir/ ;; 8615 esac 8616 for ac_exec_ext in '' $ac_executable_extensions; do 8617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8618 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8620 break 2 8621 fi 8622 done 8623 done 8624 IFS=$as_save_IFS 8625 8626 fi ;; 8627 esac 8628 fi 8629 OTOOL64=$ac_cv_prog_OTOOL64 8630 if test -n "$OTOOL64"; then 8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8632 printf "%s\n" "$OTOOL64" >&6; } 8633 else 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8635 printf "%s\n" "no" >&6; } 8636 fi 8637 8638 8639 fi 8640 if test -z "$ac_cv_prog_OTOOL64"; then 8641 ac_ct_OTOOL64=$OTOOL64 8642 # Extract the first word of "otool64", so it can be a program name with args. 8643 set dummy otool64; ac_word=$2 8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8645 printf %s "checking for $ac_word... " >&6; } 8646 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8647 then : 8648 printf %s "(cached) " >&6 8649 else case e in #( 8650 e) if test -n "$ac_ct_OTOOL64"; then 8651 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8652 else 8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8654 for as_dir in $PATH 8655 do 8656 IFS=$as_save_IFS 8657 case $as_dir in #((( 8658 '') as_dir=./ ;; 8659 */) ;; 8660 *) as_dir=$as_dir/ ;; 8661 esac 8662 for ac_exec_ext in '' $ac_executable_extensions; do 8663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8664 ac_cv_prog_ac_ct_OTOOL64="otool64" 8665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8666 break 2 8667 fi 8668 done 8669 done 8670 IFS=$as_save_IFS 8671 8672 fi ;; 8673 esac 8674 fi 8675 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8676 if test -n "$ac_ct_OTOOL64"; then 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8678 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8679 else 8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8681 printf "%s\n" "no" >&6; } 8682 fi 8683 8684 if test "x$ac_ct_OTOOL64" = x; then 8685 OTOOL64=":" 8686 else 8687 case $cross_compiling:$ac_tool_warned in 8688 yes:) 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8690 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8691 ac_tool_warned=yes ;; 8692 esac 8693 OTOOL64=$ac_ct_OTOOL64 8694 fi 8695 else 8696 OTOOL64="$ac_cv_prog_OTOOL64" 8697 fi 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8726 printf %s "checking for -single_module linker flag... " >&6; } 8727 if test ${lt_cv_apple_cc_single_mod+y} 8728 then : 8729 printf %s "(cached) " >&6 8730 else case e in #( 8731 e) lt_cv_apple_cc_single_mod=no 8732 if test -z "$LT_MULTI_MODULE"; then 8733 # By default we will add the -single_module flag. You can override 8734 # by either setting the environment variable LT_MULTI_MODULE 8735 # non-empty at configure time, or by adding -multi_module to the 8736 # link flags. 8737 rm -rf libconftest.dylib* 8738 echo "int foo(void){return 1;}" > conftest.c 8739 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8740 -dynamiclib -Wl,-single_module conftest.c" >&5 8741 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8742 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8743 _lt_result=$? 8744 # If there is a non-empty error log, and "single_module" 8745 # appears in it, assume the flag caused a linker warning 8746 if test -s conftest.err && $GREP single_module conftest.err; then 8747 cat conftest.err >&5 8748 # Otherwise, if the output was created with a 0 exit code from 8749 # the compiler, it worked. 8750 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8751 lt_cv_apple_cc_single_mod=yes 8752 else 8753 cat conftest.err >&5 8754 fi 8755 rm -rf libconftest.dylib* 8756 rm -f conftest.* 8757 fi ;; 8758 esac 8759 fi 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8761 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8762 8763 # Feature test to disable chained fixups since it is not 8764 # compatible with '-undefined dynamic_lookup' 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8766 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8767 if test ${lt_cv_support_no_fixup_chains+y} 8768 then : 8769 printf %s "(cached) " >&6 8770 else case e in #( 8771 e) save_LDFLAGS=$LDFLAGS 8772 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774 /* end confdefs.h. */ 8775 8776 int 8777 main (void) 8778 { 8779 8780 ; 8781 return 0; 8782 } 8783 _ACEOF 8784 if ac_fn_c_try_link "$LINENO" 8785 then : 8786 lt_cv_support_no_fixup_chains=yes 8787 else case e in #( 8788 e) lt_cv_support_no_fixup_chains=no 8789 ;; 8790 esac 8791 fi 8792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8793 conftest$ac_exeext conftest.$ac_ext 8794 LDFLAGS=$save_LDFLAGS 8795 8796 ;; 8797 esac 8798 fi 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8800 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8801 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8803 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8804 if test ${lt_cv_ld_exported_symbols_list+y} 8805 then : 8806 printf %s "(cached) " >&6 8807 else case e in #( 8808 e) lt_cv_ld_exported_symbols_list=no 8809 save_LDFLAGS=$LDFLAGS 8810 echo "_main" > conftest.sym 8811 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813 /* end confdefs.h. */ 8814 8815 int 8816 main (void) 8817 { 8818 8819 ; 8820 return 0; 8821 } 8822 _ACEOF 8823 if ac_fn_c_try_link "$LINENO" 8824 then : 8825 lt_cv_ld_exported_symbols_list=yes 8826 else case e in #( 8827 e) lt_cv_ld_exported_symbols_list=no ;; 8828 esac 8829 fi 8830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8831 conftest$ac_exeext conftest.$ac_ext 8832 LDFLAGS=$save_LDFLAGS 8833 ;; 8834 esac 8835 fi 8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8837 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8838 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8840 printf %s "checking for -force_load linker flag... " >&6; } 8841 if test ${lt_cv_ld_force_load+y} 8842 then : 8843 printf %s "(cached) " >&6 8844 else case e in #( 8845 e) lt_cv_ld_force_load=no 8846 cat > conftest.c << _LT_EOF 8847 int forced_loaded() { return 2;} 8848 _LT_EOF 8849 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8850 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8851 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8852 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8853 echo "$RANLIB libconftest.a" >&5 8854 $RANLIB libconftest.a 2>&5 8855 cat > conftest.c << _LT_EOF 8856 int main(void) { return 0;} 8857 _LT_EOF 8858 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8859 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8860 _lt_result=$? 8861 if test -s conftest.err && $GREP force_load conftest.err; then 8862 cat conftest.err >&5 8863 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8864 lt_cv_ld_force_load=yes 8865 else 8866 cat conftest.err >&5 8867 fi 8868 rm -f conftest.err libconftest.a conftest conftest.c 8869 rm -rf conftest.dSYM 8870 ;; 8871 esac 8872 fi 8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8874 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8875 case $host_os in 8876 rhapsody* | darwin1.[012]) 8877 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8878 darwin1.*) 8879 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8880 darwin*) 8881 case $MACOSX_DEPLOYMENT_TARGET,$host in 8882 10.[012],*|,*powerpc*-darwin[5-8]*) 8883 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8884 *) 8885 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8886 if test yes = "$lt_cv_support_no_fixup_chains"; then 8887 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8888 fi 8889 ;; 8890 esac 8891 ;; 8892 esac 8893 if test yes = "$lt_cv_apple_cc_single_mod"; then 8894 _lt_dar_single_mod='$single_module' 8895 fi 8896 _lt_dar_needs_single_mod=no 8897 case $host_os in 8898 rhapsody* | darwin1.*) 8899 _lt_dar_needs_single_mod=yes ;; 8900 darwin*) 8901 # When targeting Mac OS X 10.4 (darwin 8) or later, 8902 # -single_module is the default and -multi_module is unsupported. 8903 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8904 # target any OS version that needs -single_module. 8905 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8906 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8907 _lt_dar_needs_single_mod=yes ;; 8908 esac 8909 ;; 8910 esac 8911 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8912 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8913 else 8914 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8915 fi 8916 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8917 _lt_dsymutil='~$DSYMUTIL $lib || :' 8918 else 8919 _lt_dsymutil= 8920 fi 8921 ;; 8922 esac 8923 8924 # func_munge_path_list VARIABLE PATH 8925 # ----------------------------------- 8926 # VARIABLE is name of variable containing _space_ separated list of 8927 # directories to be munged by the contents of PATH, which is string 8928 # having a format: 8929 # "DIR[:DIR]:" 8930 # string "DIR[ DIR]" will be prepended to VARIABLE 8931 # ":DIR[:DIR]" 8932 # string "DIR[ DIR]" will be appended to VARIABLE 8933 # "DIRP[:DIRP]::[DIRA:]DIRA" 8934 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8935 # "DIRA[ DIRA]" will be appended to VARIABLE 8936 # "DIR[:DIR]" 8937 # VARIABLE will be replaced by "DIR[ DIR]" 8938 func_munge_path_list () 8939 { 8940 case x$2 in 8941 x) 8942 ;; 8943 *:) 8944 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8945 ;; 8946 x:*) 8947 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8948 ;; 8949 *::*) 8950 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8951 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8952 ;; 8953 *) 8954 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8955 ;; 8956 esac 8957 } 8958 8959 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8960 " 8961 if test "x$ac_cv_header_dlfcn_h" = xyes 8962 then : 8963 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8964 8965 fi 8966 8967 8968 8969 8970 8971 # Set options 8972 8973 8974 8975 enable_dlopen=no 8976 8977 8978 enable_win32_dll=no 8979 8980 8981 # Check whether --enable-shared was given. 8982 if test ${enable_shared+y} 8983 then : 8984 enableval=$enable_shared; p=${PACKAGE-default} 8985 case $enableval in 8986 yes) enable_shared=yes ;; 8987 no) enable_shared=no ;; 8988 *) 8989 enable_shared=no 8990 # Look at the argument we got. We use all the common list separators. 8991 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8992 for pkg in $enableval; do 8993 IFS=$lt_save_ifs 8994 if test "X$pkg" = "X$p"; then 8995 enable_shared=yes 8996 fi 8997 done 8998 IFS=$lt_save_ifs 8999 ;; 9000 esac 9001 else case e in #( 9002 e) enable_shared=yes ;; 9003 esac 9004 fi 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 # Check whether --enable-static was given. 9015 if test ${enable_static+y} 9016 then : 9017 enableval=$enable_static; p=${PACKAGE-default} 9018 case $enableval in 9019 yes) enable_static=yes ;; 9020 no) enable_static=no ;; 9021 *) 9022 enable_static=no 9023 # Look at the argument we got. We use all the common list separators. 9024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9025 for pkg in $enableval; do 9026 IFS=$lt_save_ifs 9027 if test "X$pkg" = "X$p"; then 9028 enable_static=yes 9029 fi 9030 done 9031 IFS=$lt_save_ifs 9032 ;; 9033 esac 9034 else case e in #( 9035 e) enable_static=yes ;; 9036 esac 9037 fi 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 # Check whether --enable-pic was given. 9048 if test ${enable_pic+y} 9049 then : 9050 enableval=$enable_pic; lt_p=${PACKAGE-default} 9051 case $enableval in 9052 yes|no) pic_mode=$enableval ;; 9053 *) 9054 pic_mode=default 9055 # Look at the argument we got. We use all the common list separators. 9056 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9057 for lt_pkg in $enableval; do 9058 IFS=$lt_save_ifs 9059 if test "X$lt_pkg" = "X$lt_p"; then 9060 pic_mode=yes 9061 fi 9062 done 9063 IFS=$lt_save_ifs 9064 ;; 9065 esac 9066 else case e in #( 9067 e) # Check whether --with-pic was given. 9068 if test ${with_pic+y} 9069 then : 9070 withval=$with_pic; lt_p=${PACKAGE-default} 9071 case $withval in 9072 yes|no) pic_mode=$withval ;; 9073 *) 9074 pic_mode=default 9075 # Look at the argument we got. We use all the common list separators. 9076 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9077 for lt_pkg in $withval; do 9078 IFS=$lt_save_ifs 9079 if test "X$lt_pkg" = "X$lt_p"; then 9080 pic_mode=yes 9081 fi 9082 done 9083 IFS=$lt_save_ifs 9084 ;; 9085 esac 9086 else case e in #( 9087 e) pic_mode=default ;; 9088 esac 9089 fi 9090 9091 ;; 9092 esac 9093 fi 9094 9095 9096 9097 9098 9099 9100 9101 9102 # Check whether --enable-fast-install was given. 9103 if test ${enable_fast_install+y} 9104 then : 9105 enableval=$enable_fast_install; p=${PACKAGE-default} 9106 case $enableval in 9107 yes) enable_fast_install=yes ;; 9108 no) enable_fast_install=no ;; 9109 *) 9110 enable_fast_install=no 9111 # Look at the argument we got. We use all the common list separators. 9112 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9113 for pkg in $enableval; do 9114 IFS=$lt_save_ifs 9115 if test "X$pkg" = "X$p"; then 9116 enable_fast_install=yes 9117 fi 9118 done 9119 IFS=$lt_save_ifs 9120 ;; 9121 esac 9122 else case e in #( 9123 e) enable_fast_install=yes ;; 9124 esac 9125 fi 9126 9127 9128 9129 9130 9131 9132 9133 9134 shared_archive_member_spec= 9135 case $host,$enable_shared in 9136 power*-*-aix[5-9]*,yes) 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9138 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9139 # Check whether --enable-aix-soname was given. 9140 if test ${enable_aix_soname+y} 9141 then : 9142 enableval=$enable_aix_soname; case $enableval in 9143 aix|svr4|both) 9144 ;; 9145 *) 9146 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9147 ;; 9148 esac 9149 lt_cv_with_aix_soname=$enable_aix_soname 9150 else case e in #( 9151 e) # Check whether --with-aix-soname was given. 9152 if test ${with_aix_soname+y} 9153 then : 9154 withval=$with_aix_soname; case $withval in 9155 aix|svr4|both) 9156 ;; 9157 *) 9158 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9159 ;; 9160 esac 9161 lt_cv_with_aix_soname=$with_aix_soname 9162 else case e in #( 9163 e) if test ${lt_cv_with_aix_soname+y} 9164 then : 9165 printf %s "(cached) " >&6 9166 else case e in #( 9167 e) lt_cv_with_aix_soname=aix ;; 9168 esac 9169 fi 9170 ;; 9171 esac 9172 fi 9173 9174 enable_aix_soname=$lt_cv_with_aix_soname ;; 9175 esac 9176 fi 9177 9178 with_aix_soname=$enable_aix_soname 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9180 printf "%s\n" "$with_aix_soname" >&6; } 9181 if test aix != "$with_aix_soname"; then 9182 # For the AIX way of multilib, we name the shared archive member 9183 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9184 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9185 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9186 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9187 if test 64 = "${OBJECT_MODE-32}"; then 9188 shared_archive_member_spec=shr_64 9189 else 9190 shared_archive_member_spec=shr 9191 fi 9192 fi 9193 ;; 9194 *) 9195 with_aix_soname=aix 9196 ;; 9197 esac 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 # This can be used to rebuild libtool when needed 9209 LIBTOOL_DEPS=$ltmain 9210 9211 # Always use our own libtool. 9212 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 test -z "$LN_S" && LN_S="ln -s" 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 if test -n "${ZSH_VERSION+set}"; then 9259 setopt NO_GLOB_SUBST 9260 fi 9261 9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9263 printf %s "checking for objdir... " >&6; } 9264 if test ${lt_cv_objdir+y} 9265 then : 9266 printf %s "(cached) " >&6 9267 else case e in #( 9268 e) rm -f .libs 2>/dev/null 9269 mkdir .libs 2>/dev/null 9270 if test -d .libs; then 9271 lt_cv_objdir=.libs 9272 else 9273 # MS-DOS does not allow filenames that begin with a dot. 9274 lt_cv_objdir=_libs 9275 fi 9276 rmdir .libs 2>/dev/null ;; 9277 esac 9278 fi 9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9280 printf "%s\n" "$lt_cv_objdir" >&6; } 9281 objdir=$lt_cv_objdir 9282 9283 9284 9285 9286 9287 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9288 9289 9290 9291 9292 case $host_os in 9293 aix3*) 9294 # AIX sometimes has problems with the GCC collect2 program. For some 9295 # reason, if we set the COLLECT_NAMES environment variable, the problems 9296 # vanish in a puff of smoke. 9297 if test set != "${COLLECT_NAMES+set}"; then 9298 COLLECT_NAMES= 9299 export COLLECT_NAMES 9300 fi 9301 ;; 9302 esac 9303 9304 # Global variables: 9305 ofile=libtool 9306 can_build_shared=yes 9307 9308 # All known linkers require a '.a' archive for static linking (except MSVC and 9309 # ICC, which need '.lib'). 9310 libext=a 9311 9312 with_gnu_ld=$lt_cv_prog_gnu_ld 9313 9314 old_CC=$CC 9315 old_CFLAGS=$CFLAGS 9316 9317 # Set sane defaults for various variables 9318 test -z "$CC" && CC=cc 9319 test -z "$LTCC" && LTCC=$CC 9320 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9321 test -z "$LD" && LD=ld 9322 test -z "$ac_objext" && ac_objext=o 9323 9324 func_cc_basename $compiler 9325 cc_basename=$func_cc_basename_result 9326 9327 9328 # Only perform the check for file, if the check method requires it 9329 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9330 case $deplibs_check_method in 9331 file_magic*) 9332 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9334 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9335 if test ${lt_cv_path_MAGIC_CMD+y} 9336 then : 9337 printf %s "(cached) " >&6 9338 else case e in #( 9339 e) case $MAGIC_CMD in 9340 [\\/*] | ?:[\\/]*) 9341 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9342 ;; 9343 *) 9344 lt_save_MAGIC_CMD=$MAGIC_CMD 9345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9347 for ac_dir in $ac_dummy; do 9348 IFS=$lt_save_ifs 9349 test -z "$ac_dir" && ac_dir=. 9350 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9351 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9352 if test -n "$file_magic_test_file"; then 9353 case $deplibs_check_method in 9354 "file_magic "*) 9355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9356 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9358 $EGREP "$file_magic_regex" > /dev/null; then 9359 : 9360 else 9361 cat <<_LT_EOF 1>&2 9362 9363 *** Warning: the command libtool uses to detect shared libraries, 9364 *** $file_magic_cmd, produces output that libtool cannot recognize. 9365 *** The result is that libtool may fail to recognize shared libraries 9366 *** as such. This will affect the creation of libtool libraries that 9367 *** depend on shared libraries, but programs linked with such libtool 9368 *** libraries will work regardless of this problem. Nevertheless, you 9369 *** may want to report the problem to your system manager and/or to 9370 *** bug-libtool@gnu.org 9371 9372 _LT_EOF 9373 fi ;; 9374 esac 9375 fi 9376 break 9377 fi 9378 done 9379 IFS=$lt_save_ifs 9380 MAGIC_CMD=$lt_save_MAGIC_CMD 9381 ;; 9382 esac ;; 9383 esac 9384 fi 9385 9386 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9387 if test -n "$MAGIC_CMD"; then 9388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9389 printf "%s\n" "$MAGIC_CMD" >&6; } 9390 else 9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9392 printf "%s\n" "no" >&6; } 9393 fi 9394 9395 9396 9397 9398 9399 if test -z "$lt_cv_path_MAGIC_CMD"; then 9400 if test -n "$ac_tool_prefix"; then 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9402 printf %s "checking for file... " >&6; } 9403 if test ${lt_cv_path_MAGIC_CMD+y} 9404 then : 9405 printf %s "(cached) " >&6 9406 else case e in #( 9407 e) case $MAGIC_CMD in 9408 [\\/*] | ?:[\\/]*) 9409 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9410 ;; 9411 *) 9412 lt_save_MAGIC_CMD=$MAGIC_CMD 9413 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9415 for ac_dir in $ac_dummy; do 9416 IFS=$lt_save_ifs 9417 test -z "$ac_dir" && ac_dir=. 9418 if test -f "$ac_dir/file"; then 9419 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9420 if test -n "$file_magic_test_file"; then 9421 case $deplibs_check_method in 9422 "file_magic "*) 9423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9424 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9426 $EGREP "$file_magic_regex" > /dev/null; then 9427 : 9428 else 9429 cat <<_LT_EOF 1>&2 9430 9431 *** Warning: the command libtool uses to detect shared libraries, 9432 *** $file_magic_cmd, produces output that libtool cannot recognize. 9433 *** The result is that libtool may fail to recognize shared libraries 9434 *** as such. This will affect the creation of libtool libraries that 9435 *** depend on shared libraries, but programs linked with such libtool 9436 *** libraries will work regardless of this problem. Nevertheless, you 9437 *** may want to report the problem to your system manager and/or to 9438 *** bug-libtool@gnu.org 9439 9440 _LT_EOF 9441 fi ;; 9442 esac 9443 fi 9444 break 9445 fi 9446 done 9447 IFS=$lt_save_ifs 9448 MAGIC_CMD=$lt_save_MAGIC_CMD 9449 ;; 9450 esac ;; 9451 esac 9452 fi 9453 9454 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9455 if test -n "$MAGIC_CMD"; then 9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9457 printf "%s\n" "$MAGIC_CMD" >&6; } 9458 else 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9460 printf "%s\n" "no" >&6; } 9461 fi 9462 9463 9464 else 9465 MAGIC_CMD=: 9466 fi 9467 fi 9468 9469 fi 9470 ;; 9471 esac 9472 9473 # Use C for the default configuration in the libtool script 9474 9475 lt_save_CC=$CC 9476 ac_ext=c 9477 ac_cpp='$CPP $CPPFLAGS' 9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9481 9482 9483 # Source file extension for C test sources. 9484 ac_ext=c 9485 9486 # Object file extension for compiled C test sources. 9487 objext=o 9488 objext=$objext 9489 9490 # Code to be used in simple compile tests 9491 lt_simple_compile_test_code="int some_variable = 0;" 9492 9493 # Code to be used in simple link tests 9494 lt_simple_link_test_code='int main(void){return(0);}' 9495 9496 9497 9498 9499 9500 9501 9502 # If no C compiler was specified, use CC. 9503 LTCC=${LTCC-"$CC"} 9504 9505 # If no C compiler flags were specified, use CFLAGS. 9506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9507 9508 # Allow CC to be a program name with arguments. 9509 compiler=$CC 9510 9511 # Save the default compiler, since it gets overwritten when the other 9512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9513 compiler_DEFAULT=$CC 9514 9515 # save warnings/boilerplate of simple test code 9516 ac_outfile=conftest.$ac_objext 9517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9519 _lt_compiler_boilerplate=`cat conftest.err` 9520 $RM conftest* 9521 9522 ac_outfile=conftest.$ac_objext 9523 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9525 _lt_linker_boilerplate=`cat conftest.err` 9526 $RM -r conftest* 9527 9528 9529 ## CAVEAT EMPTOR: 9530 ## There is no encapsulation within the following macros, do not change 9531 ## the running order or otherwise move them around unless you know exactly 9532 ## what you are doing... 9533 if test -n "$compiler"; then 9534 9535 lt_prog_compiler_no_builtin_flag= 9536 9537 if test yes = "$GCC"; then 9538 case $cc_basename in 9539 nvcc*) 9540 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9541 *) 9542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9543 esac 9544 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9546 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9547 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9548 then : 9549 printf %s "(cached) " >&6 9550 else case e in #( 9551 e) lt_cv_prog_compiler_rtti_exceptions=no 9552 ac_outfile=conftest.$ac_objext 9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9554 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9555 # Insert the option either (1) after the last *FLAGS variable, or 9556 # (2) before a word containing "conftest.", or (3) at the end. 9557 # Note that $ac_compile itself does not contain backslashes and begins 9558 # with a dollar sign (not a hyphen), so the echo should work correctly. 9559 # The option is referenced via a variable to avoid confusing sed. 9560 lt_compile=`echo "$ac_compile" | $SED \ 9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9563 -e 's:$: $lt_compiler_flag:'` 9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9565 (eval "$lt_compile" 2>conftest.err) 9566 ac_status=$? 9567 cat conftest.err >&5 9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9569 if (exit $ac_status) && test -s "$ac_outfile"; then 9570 # The compiler can only warn and ignore the option if not recognized 9571 # So say no if there are warnings other than the usual output. 9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9575 lt_cv_prog_compiler_rtti_exceptions=yes 9576 fi 9577 fi 9578 $RM conftest* 9579 ;; 9580 esac 9581 fi 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9583 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9584 9585 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9586 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9587 else 9588 : 9589 fi 9590 9591 fi 9592 9593 9594 9595 9596 9597 9598 lt_prog_compiler_wl= 9599 lt_prog_compiler_pic= 9600 lt_prog_compiler_static= 9601 9602 9603 if test yes = "$GCC"; then 9604 lt_prog_compiler_wl='-Wl,' 9605 lt_prog_compiler_static='-static' 9606 9607 case $host_os in 9608 aix*) 9609 # All AIX code is PIC. 9610 if test ia64 = "$host_cpu"; then 9611 # AIX 5 now supports IA64 processor 9612 lt_prog_compiler_static='-Bstatic' 9613 fi 9614 lt_prog_compiler_pic='-fPIC' 9615 ;; 9616 9617 amigaos*) 9618 case $host_cpu in 9619 powerpc) 9620 # see comment about AmigaOS4 .so support 9621 lt_prog_compiler_pic='-fPIC' 9622 ;; 9623 m68k) 9624 # FIXME: we need at least 68020 code to build shared libraries, but 9625 # adding the '-m68020' flag to GCC prevents building anything better, 9626 # like '-m68040'. 9627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9628 ;; 9629 esac 9630 ;; 9631 9632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9633 # PIC is the default for these OSes. 9634 ;; 9635 9636 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9637 # This hack is so that the source file can tell whether it is being 9638 # built for inclusion in a dll (and should export symbols for example). 9639 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9640 # (--disable-auto-import) libraries 9641 lt_prog_compiler_pic='-DDLL_EXPORT' 9642 case $host_os in 9643 os2*) 9644 lt_prog_compiler_static='$wl-static' 9645 ;; 9646 esac 9647 ;; 9648 9649 darwin* | rhapsody*) 9650 # PIC is the default on this platform 9651 # Common symbols not allowed in MH_DYLIB files 9652 lt_prog_compiler_pic='-fno-common' 9653 ;; 9654 9655 haiku*) 9656 # PIC is the default for Haiku. 9657 # The "-static" flag exists, but is broken. 9658 lt_prog_compiler_static= 9659 ;; 9660 9661 hpux*) 9662 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9663 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9664 # sets the default TLS model and affects inlining. 9665 case $host_cpu in 9666 hppa*64*) 9667 # +Z the default 9668 ;; 9669 *) 9670 lt_prog_compiler_pic='-fPIC' 9671 ;; 9672 esac 9673 ;; 9674 9675 interix[3-9]*) 9676 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9677 # Instead, we relocate shared libraries at runtime. 9678 ;; 9679 9680 msdosdjgpp*) 9681 # Just because we use GCC doesn't mean we suddenly get shared libraries 9682 # on systems that don't support them. 9683 lt_prog_compiler_can_build_shared=no 9684 enable_shared=no 9685 ;; 9686 9687 *nto* | *qnx*) 9688 # QNX uses GNU C++, but need to define -shared option too, otherwise 9689 # it will coredump. 9690 lt_prog_compiler_pic='-fPIC -shared' 9691 ;; 9692 9693 sysv4*MP*) 9694 if test -d /usr/nec; then 9695 lt_prog_compiler_pic=-Kconform_pic 9696 fi 9697 ;; 9698 9699 *) 9700 lt_prog_compiler_pic='-fPIC' 9701 ;; 9702 esac 9703 9704 case $cc_basename in 9705 nvcc*) # Cuda Compiler Driver 2.2 9706 lt_prog_compiler_wl='-Xlinker ' 9707 if test -n "$lt_prog_compiler_pic"; then 9708 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9709 fi 9710 ;; 9711 esac 9712 else 9713 # PORTME Check for flag to pass linker flags through the system compiler. 9714 case $host_os in 9715 aix*) 9716 lt_prog_compiler_wl='-Wl,' 9717 if test ia64 = "$host_cpu"; then 9718 # AIX 5 now supports IA64 processor 9719 lt_prog_compiler_static='-Bstatic' 9720 else 9721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9722 fi 9723 ;; 9724 9725 darwin* | rhapsody*) 9726 # PIC is the default on this platform 9727 # Common symbols not allowed in MH_DYLIB files 9728 lt_prog_compiler_pic='-fno-common' 9729 case $cc_basename in 9730 nagfor*) 9731 # NAG Fortran compiler 9732 lt_prog_compiler_wl='-Wl,-Wl,,' 9733 lt_prog_compiler_pic='-PIC' 9734 lt_prog_compiler_static='-Bstatic' 9735 ;; 9736 esac 9737 ;; 9738 9739 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9740 # This hack is so that the source file can tell whether it is being 9741 # built for inclusion in a dll (and should export symbols for example). 9742 lt_prog_compiler_pic='-DDLL_EXPORT' 9743 case $host_os in 9744 os2*) 9745 lt_prog_compiler_static='$wl-static' 9746 ;; 9747 esac 9748 ;; 9749 9750 hpux9* | hpux10* | hpux11*) 9751 lt_prog_compiler_wl='-Wl,' 9752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9753 # not for PA HP-UX. 9754 case $host_cpu in 9755 hppa*64*|ia64*) 9756 # +Z the default 9757 ;; 9758 *) 9759 lt_prog_compiler_pic='+Z' 9760 ;; 9761 esac 9762 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9763 lt_prog_compiler_static='$wl-a ${wl}archive' 9764 ;; 9765 9766 irix5* | irix6* | nonstopux*) 9767 lt_prog_compiler_wl='-Wl,' 9768 # PIC (with -KPIC) is the default. 9769 lt_prog_compiler_static='-non_shared' 9770 ;; 9771 9772 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9773 case $cc_basename in 9774 # old Intel for x86_64, which still supported -KPIC. 9775 ecc*) 9776 lt_prog_compiler_wl='-Wl,' 9777 lt_prog_compiler_pic='-KPIC' 9778 lt_prog_compiler_static='-static' 9779 ;; 9780 *flang* | ftn | f18* | f95*) 9781 # Flang compiler. 9782 lt_prog_compiler_wl='-Wl,' 9783 lt_prog_compiler_pic='-fPIC' 9784 lt_prog_compiler_static='-static' 9785 ;; 9786 # icc used to be incompatible with GCC. 9787 # ICC 10 doesn't accept -KPIC any more. 9788 icc* | ifort*) 9789 lt_prog_compiler_wl='-Wl,' 9790 lt_prog_compiler_pic='-fPIC' 9791 lt_prog_compiler_static='-static' 9792 ;; 9793 # Lahey Fortran 8.1. 9794 lf95*) 9795 lt_prog_compiler_wl='-Wl,' 9796 lt_prog_compiler_pic='--shared' 9797 lt_prog_compiler_static='--static' 9798 ;; 9799 nagfor*) 9800 # NAG Fortran compiler 9801 lt_prog_compiler_wl='-Wl,-Wl,,' 9802 lt_prog_compiler_pic='-PIC' 9803 lt_prog_compiler_static='-Bstatic' 9804 ;; 9805 tcc*) 9806 # Fabrice Bellard et al's Tiny C Compiler 9807 lt_prog_compiler_wl='-Wl,' 9808 lt_prog_compiler_pic='-fPIC' 9809 lt_prog_compiler_static='-static' 9810 ;; 9811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9812 # Portland Group compilers (*not* the Pentium gcc compiler, 9813 # which looks to be a dead project) 9814 lt_prog_compiler_wl='-Wl,' 9815 lt_prog_compiler_pic='-fpic' 9816 lt_prog_compiler_static='-Bstatic' 9817 ;; 9818 ccc*) 9819 lt_prog_compiler_wl='-Wl,' 9820 # All Alpha code is PIC. 9821 lt_prog_compiler_static='-non_shared' 9822 ;; 9823 xl* | bgxl* | bgf* | mpixl*) 9824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9825 lt_prog_compiler_wl='-Wl,' 9826 lt_prog_compiler_pic='-qpic' 9827 lt_prog_compiler_static='-qstaticlink' 9828 ;; 9829 *) 9830 case `$CC -V 2>&1 | $SED 5q` in 9831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9833 lt_prog_compiler_pic='-KPIC' 9834 lt_prog_compiler_static='-Bstatic' 9835 lt_prog_compiler_wl='' 9836 ;; 9837 *Sun\ F* | *Sun*Fortran*) 9838 lt_prog_compiler_pic='-KPIC' 9839 lt_prog_compiler_static='-Bstatic' 9840 lt_prog_compiler_wl='-Qoption ld ' 9841 ;; 9842 *Sun\ C*) 9843 # Sun C 5.9 9844 lt_prog_compiler_pic='-KPIC' 9845 lt_prog_compiler_static='-Bstatic' 9846 lt_prog_compiler_wl='-Wl,' 9847 ;; 9848 *Intel*\ [CF]*Compiler*) 9849 lt_prog_compiler_wl='-Wl,' 9850 lt_prog_compiler_pic='-fPIC' 9851 lt_prog_compiler_static='-static' 9852 ;; 9853 *Portland\ Group*) 9854 lt_prog_compiler_wl='-Wl,' 9855 lt_prog_compiler_pic='-fpic' 9856 lt_prog_compiler_static='-Bstatic' 9857 ;; 9858 esac 9859 ;; 9860 esac 9861 ;; 9862 9863 newsos6) 9864 lt_prog_compiler_pic='-KPIC' 9865 lt_prog_compiler_static='-Bstatic' 9866 ;; 9867 9868 *-mlibc) 9869 lt_prog_compiler_wl='-Wl,' 9870 lt_prog_compiler_pic='-fPIC' 9871 lt_prog_compiler_static='-static' 9872 ;; 9873 9874 *nto* | *qnx*) 9875 # QNX uses GNU C++, but need to define -shared option too, otherwise 9876 # it will coredump. 9877 lt_prog_compiler_pic='-fPIC -shared' 9878 ;; 9879 9880 osf3* | osf4* | osf5*) 9881 lt_prog_compiler_wl='-Wl,' 9882 # All OSF/1 code is PIC. 9883 lt_prog_compiler_static='-non_shared' 9884 ;; 9885 9886 rdos*) 9887 lt_prog_compiler_static='-non_shared' 9888 ;; 9889 9890 serenity*) 9891 ;; 9892 9893 solaris*) 9894 lt_prog_compiler_pic='-KPIC' 9895 lt_prog_compiler_static='-Bstatic' 9896 case $cc_basename in 9897 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9898 lt_prog_compiler_wl='-Qoption ld ';; 9899 *) 9900 lt_prog_compiler_wl='-Wl,';; 9901 esac 9902 ;; 9903 9904 sunos4*) 9905 lt_prog_compiler_wl='-Qoption ld ' 9906 lt_prog_compiler_pic='-PIC' 9907 lt_prog_compiler_static='-Bstatic' 9908 ;; 9909 9910 sysv4 | sysv4.2uw2* | sysv4.3*) 9911 lt_prog_compiler_wl='-Wl,' 9912 lt_prog_compiler_pic='-KPIC' 9913 lt_prog_compiler_static='-Bstatic' 9914 ;; 9915 9916 sysv4*MP*) 9917 if test -d /usr/nec; then 9918 lt_prog_compiler_pic='-Kconform_pic' 9919 lt_prog_compiler_static='-Bstatic' 9920 fi 9921 ;; 9922 9923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9924 lt_prog_compiler_wl='-Wl,' 9925 lt_prog_compiler_pic='-KPIC' 9926 lt_prog_compiler_static='-Bstatic' 9927 ;; 9928 9929 unicos*) 9930 lt_prog_compiler_wl='-Wl,' 9931 lt_prog_compiler_can_build_shared=no 9932 ;; 9933 9934 uts4*) 9935 lt_prog_compiler_pic='-pic' 9936 lt_prog_compiler_static='-Bstatic' 9937 ;; 9938 9939 *) 9940 lt_prog_compiler_can_build_shared=no 9941 ;; 9942 esac 9943 fi 9944 9945 case $host_os in 9946 # For platforms that do not support PIC, -DPIC is meaningless: 9947 *djgpp*) 9948 lt_prog_compiler_pic= 9949 ;; 9950 *) 9951 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9952 ;; 9953 esac 9954 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9956 printf %s "checking for $compiler option to produce PIC... " >&6; } 9957 if test ${lt_cv_prog_compiler_pic+y} 9958 then : 9959 printf %s "(cached) " >&6 9960 else case e in #( 9961 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9962 esac 9963 fi 9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9965 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9967 9968 # 9969 # Check to make sure the PIC flag actually works. 9970 # 9971 if test -n "$lt_prog_compiler_pic"; then 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9973 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9974 if test ${lt_cv_prog_compiler_pic_works+y} 9975 then : 9976 printf %s "(cached) " >&6 9977 else case e in #( 9978 e) lt_cv_prog_compiler_pic_works=no 9979 ac_outfile=conftest.$ac_objext 9980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9981 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9982 # Insert the option either (1) after the last *FLAGS variable, or 9983 # (2) before a word containing "conftest.", or (3) at the end. 9984 # Note that $ac_compile itself does not contain backslashes and begins 9985 # with a dollar sign (not a hyphen), so the echo should work correctly. 9986 # The option is referenced via a variable to avoid confusing sed. 9987 lt_compile=`echo "$ac_compile" | $SED \ 9988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9990 -e 's:$: $lt_compiler_flag:'` 9991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9992 (eval "$lt_compile" 2>conftest.err) 9993 ac_status=$? 9994 cat conftest.err >&5 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 if (exit $ac_status) && test -s "$ac_outfile"; then 9997 # The compiler can only warn and ignore the option if not recognized 9998 # So say no if there are warnings other than the usual output. 9999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10002 lt_cv_prog_compiler_pic_works=yes 10003 fi 10004 fi 10005 $RM conftest* 10006 ;; 10007 esac 10008 fi 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10010 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10011 10012 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10013 case $lt_prog_compiler_pic in 10014 "" | " "*) ;; 10015 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10016 esac 10017 else 10018 lt_prog_compiler_pic= 10019 lt_prog_compiler_can_build_shared=no 10020 fi 10021 10022 fi 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 # 10035 # Check to make sure the static flag actually works. 10036 # 10037 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10039 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10040 if test ${lt_cv_prog_compiler_static_works+y} 10041 then : 10042 printf %s "(cached) " >&6 10043 else case e in #( 10044 e) lt_cv_prog_compiler_static_works=no 10045 save_LDFLAGS=$LDFLAGS 10046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10047 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10049 # The linker can only warn and ignore the option if not recognized 10050 # So say no if there are warnings 10051 if test -s conftest.err; then 10052 # Append any errors to the config.log. 10053 cat conftest.err 1>&5 10054 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10056 if diff conftest.exp conftest.er2 >/dev/null; then 10057 lt_cv_prog_compiler_static_works=yes 10058 fi 10059 else 10060 lt_cv_prog_compiler_static_works=yes 10061 fi 10062 fi 10063 $RM -r conftest* 10064 LDFLAGS=$save_LDFLAGS 10065 ;; 10066 esac 10067 fi 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10069 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10070 10071 if test yes = "$lt_cv_prog_compiler_static_works"; then 10072 : 10073 else 10074 lt_prog_compiler_static= 10075 fi 10076 10077 10078 10079 10080 10081 10082 10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10084 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10085 if test ${lt_cv_prog_compiler_c_o+y} 10086 then : 10087 printf %s "(cached) " >&6 10088 else case e in #( 10089 e) lt_cv_prog_compiler_c_o=no 10090 $RM -r conftest 2>/dev/null 10091 mkdir conftest 10092 cd conftest 10093 mkdir out 10094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10095 10096 lt_compiler_flag="-o out/conftest2.$ac_objext" 10097 # Insert the option either (1) after the last *FLAGS variable, or 10098 # (2) before a word containing "conftest.", or (3) at the end. 10099 # Note that $ac_compile itself does not contain backslashes and begins 10100 # with a dollar sign (not a hyphen), so the echo should work correctly. 10101 lt_compile=`echo "$ac_compile" | $SED \ 10102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10104 -e 's:$: $lt_compiler_flag:'` 10105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10106 (eval "$lt_compile" 2>out/conftest.err) 10107 ac_status=$? 10108 cat out/conftest.err >&5 10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10110 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10111 then 10112 # The compiler can only warn and ignore the option if not recognized 10113 # So say no if there are warnings 10114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10117 lt_cv_prog_compiler_c_o=yes 10118 fi 10119 fi 10120 chmod u+w . 2>&5 10121 $RM conftest* 10122 # SGI C++ compiler will create directory out/ii_files/ for 10123 # template instantiation 10124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10125 $RM out/* && rmdir out 10126 cd .. 10127 $RM -r conftest 10128 $RM conftest* 10129 ;; 10130 esac 10131 fi 10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10133 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10134 10135 10136 10137 10138 10139 10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10141 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10142 if test ${lt_cv_prog_compiler_c_o+y} 10143 then : 10144 printf %s "(cached) " >&6 10145 else case e in #( 10146 e) lt_cv_prog_compiler_c_o=no 10147 $RM -r conftest 2>/dev/null 10148 mkdir conftest 10149 cd conftest 10150 mkdir out 10151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10152 10153 lt_compiler_flag="-o out/conftest2.$ac_objext" 10154 # Insert the option either (1) after the last *FLAGS variable, or 10155 # (2) before a word containing "conftest.", or (3) at the end. 10156 # Note that $ac_compile itself does not contain backslashes and begins 10157 # with a dollar sign (not a hyphen), so the echo should work correctly. 10158 lt_compile=`echo "$ac_compile" | $SED \ 10159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10161 -e 's:$: $lt_compiler_flag:'` 10162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10163 (eval "$lt_compile" 2>out/conftest.err) 10164 ac_status=$? 10165 cat out/conftest.err >&5 10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10167 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10168 then 10169 # The compiler can only warn and ignore the option if not recognized 10170 # So say no if there are warnings 10171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10174 lt_cv_prog_compiler_c_o=yes 10175 fi 10176 fi 10177 chmod u+w . 2>&5 10178 $RM conftest* 10179 # SGI C++ compiler will create directory out/ii_files/ for 10180 # template instantiation 10181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10182 $RM out/* && rmdir out 10183 cd .. 10184 $RM -r conftest 10185 $RM conftest* 10186 ;; 10187 esac 10188 fi 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10190 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10191 10192 10193 10194 10195 hard_links=nottested 10196 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10197 # do not overwrite the value of need_locks provided by the user 10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10199 printf %s "checking if we can lock with hard links... " >&6; } 10200 hard_links=yes 10201 $RM conftest* 10202 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10203 touch conftest.a 10204 ln conftest.a conftest.b 2>&5 || hard_links=no 10205 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10207 printf "%s\n" "$hard_links" >&6; } 10208 if test no = "$hard_links"; then 10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10210 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10211 need_locks=warn 10212 fi 10213 else 10214 need_locks=no 10215 fi 10216 10217 10218 10219 10220 10221 10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10223 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10224 10225 runpath_var= 10226 allow_undefined_flag= 10227 always_export_symbols=no 10228 archive_cmds= 10229 archive_expsym_cmds= 10230 compiler_needs_object=no 10231 enable_shared_with_static_runtimes=no 10232 export_dynamic_flag_spec= 10233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10234 hardcode_automatic=no 10235 hardcode_direct=no 10236 hardcode_direct_absolute=no 10237 hardcode_libdir_flag_spec= 10238 hardcode_libdir_separator= 10239 hardcode_minus_L=no 10240 hardcode_shlibpath_var=unsupported 10241 inherit_rpath=no 10242 link_all_deplibs=unknown 10243 module_cmds= 10244 module_expsym_cmds= 10245 old_archive_from_new_cmds= 10246 old_archive_from_expsyms_cmds= 10247 thread_safe_flag_spec= 10248 whole_archive_flag_spec= 10249 # include_expsyms should be a list of space-separated symbols to be *always* 10250 # included in the symbol list 10251 include_expsyms= 10252 # exclude_expsyms can be an extended regexp of symbols to exclude 10253 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10254 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10255 # as well as any symbol that contains 'd'. 10256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10258 # platforms (ab)use it in PIC code, but their linkers get confused if 10259 # the symbol is explicitly referenced. Since portable code cannot 10260 # rely on this symbol name, it's probably fine to never include it in 10261 # preloaded symbol tables. 10262 # Exclude shared library initialization/finalization symbols. 10263 extract_expsyms_cmds= 10264 10265 case $host_os in 10266 cygwin* | mingw* | windows* | pw32* | cegcc*) 10267 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10268 # When not using gcc, we currently assume that we are using 10269 # Microsoft Visual C++ or Intel C++ Compiler. 10270 if test yes != "$GCC"; then 10271 with_gnu_ld=no 10272 fi 10273 ;; 10274 interix*) 10275 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10276 with_gnu_ld=yes 10277 ;; 10278 esac 10279 10280 ld_shlibs=yes 10281 10282 # On some targets, GNU ld is compatible enough with the native linker 10283 # that we're better off using the native interface for both. 10284 lt_use_gnu_ld_interface=no 10285 if test yes = "$with_gnu_ld"; then 10286 case $host_os in 10287 aix*) 10288 # The AIX port of GNU ld has always aspired to compatibility 10289 # with the native linker. However, as the warning in the GNU ld 10290 # block says, versions before 2.19.5* couldn't really create working 10291 # shared libraries, regardless of the interface used. 10292 case `$LD -v 2>&1` in 10293 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10294 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10295 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10296 *) 10297 lt_use_gnu_ld_interface=yes 10298 ;; 10299 esac 10300 ;; 10301 *) 10302 lt_use_gnu_ld_interface=yes 10303 ;; 10304 esac 10305 fi 10306 10307 if test yes = "$lt_use_gnu_ld_interface"; then 10308 # If archive_cmds runs LD, not CC, wlarc should be empty 10309 wlarc='$wl' 10310 10311 # Set some defaults for GNU ld with shared library support. These 10312 # are reset later if shared libraries are not supported. Putting them 10313 # here allows them to be overridden if necessary. 10314 runpath_var=LD_RUN_PATH 10315 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10316 export_dynamic_flag_spec='$wl--export-dynamic' 10317 # ancient GNU ld didn't support --whole-archive et. al. 10318 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10319 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10320 else 10321 whole_archive_flag_spec= 10322 fi 10323 supports_anon_versioning=no 10324 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10325 *GNU\ gold*) supports_anon_versioning=yes ;; 10326 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10329 *\ 2.11.*) ;; # other 2.11 versions 10330 *) supports_anon_versioning=yes ;; 10331 esac 10332 10333 # See if GNU ld supports shared libraries. 10334 case $host_os in 10335 aix[3-9]*) 10336 # On AIX/PPC, the GNU linker is very broken 10337 if test ia64 != "$host_cpu"; then 10338 ld_shlibs=no 10339 cat <<_LT_EOF 1>&2 10340 10341 *** Warning: the GNU linker, at least up to release 2.19, is reported 10342 *** to be unable to reliably create shared libraries on AIX. 10343 *** Therefore, libtool is disabling shared libraries support. If you 10344 *** really care for shared libraries, you may want to install binutils 10345 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10346 *** You will then need to restart the configuration process. 10347 10348 _LT_EOF 10349 fi 10350 ;; 10351 10352 amigaos*) 10353 case $host_cpu in 10354 powerpc) 10355 # see comment about AmigaOS4 .so support 10356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10357 archive_expsym_cmds='' 10358 ;; 10359 m68k) 10360 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)' 10361 hardcode_libdir_flag_spec='-L$libdir' 10362 hardcode_minus_L=yes 10363 ;; 10364 esac 10365 ;; 10366 10367 beos*) 10368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10369 allow_undefined_flag=unsupported 10370 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10371 # support --undefined. This deserves some investigation. FIXME 10372 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10373 else 10374 ld_shlibs=no 10375 fi 10376 ;; 10377 10378 cygwin* | mingw* | windows* | pw32* | cegcc*) 10379 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10380 # as there is no search path for DLLs. 10381 hardcode_libdir_flag_spec='-L$libdir' 10382 export_dynamic_flag_spec='$wl--export-all-symbols' 10383 allow_undefined_flag=unsupported 10384 always_export_symbols=no 10385 enable_shared_with_static_runtimes=yes 10386 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' 10387 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10388 file_list_spec='@' 10389 10390 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10392 # If the export-symbols file already is a .def file, use it as 10393 # is; otherwise, prepend EXPORTS... 10394 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10395 cp $export_symbols $output_objdir/$soname.def; 10396 else 10397 echo EXPORTS > $output_objdir/$soname.def; 10398 cat $export_symbols >> $output_objdir/$soname.def; 10399 fi~ 10400 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10401 else 10402 ld_shlibs=no 10403 fi 10404 ;; 10405 10406 haiku*) 10407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10408 link_all_deplibs=no 10409 ;; 10410 10411 os2*) 10412 hardcode_libdir_flag_spec='-L$libdir' 10413 hardcode_minus_L=yes 10414 allow_undefined_flag=unsupported 10415 shrext_cmds=.dll 10416 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10419 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10420 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10422 emximp -o $lib $output_objdir/$libname.def' 10423 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10424 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10425 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10426 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10427 prefix_cmds="$SED"~ 10428 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10429 prefix_cmds="$prefix_cmds -e 1d"; 10430 fi~ 10431 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10432 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10434 emximp -o $lib $output_objdir/$libname.def' 10435 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10436 enable_shared_with_static_runtimes=yes 10437 file_list_spec='@' 10438 ;; 10439 10440 interix[3-9]*) 10441 hardcode_direct=no 10442 hardcode_shlibpath_var=no 10443 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10444 export_dynamic_flag_spec='$wl-E' 10445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10446 # Instead, shared libraries are loaded at an image base (0x10000000 by 10447 # default) and relocated if they conflict, which is a slow very memory 10448 # consuming and fragmenting process. To avoid this, we pick a random, 10449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10450 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10452 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' 10453 ;; 10454 10455 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10456 tmp_diet=no 10457 if test linux-dietlibc = "$host_os"; then 10458 case $cc_basename in 10459 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10460 esac 10461 fi 10462 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10463 && test no = "$tmp_diet" 10464 then 10465 tmp_addflag=' $pic_flag' 10466 tmp_sharedflag='-shared' 10467 case $cc_basename,$host_cpu in 10468 pgcc*) # Portland Group C compiler 10469 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' 10470 tmp_addflag=' $pic_flag' 10471 ;; 10472 pgf77* | pgf90* | pgf95* | pgfortran*) 10473 # Portland Group f77 and f90 compilers 10474 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' 10475 tmp_addflag=' $pic_flag -Mnomain' ;; 10476 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10477 tmp_addflag=' -i_dynamic' ;; 10478 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10479 tmp_addflag=' -i_dynamic -nofor_main' ;; 10480 ifc* | ifort*) # Intel Fortran compiler 10481 tmp_addflag=' -nofor_main' ;; 10482 lf95*) # Lahey Fortran 8.1 10483 whole_archive_flag_spec= 10484 tmp_sharedflag='--shared' ;; 10485 nagfor*) # NAGFOR 5.3 10486 tmp_sharedflag='-Wl,-shared' ;; 10487 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10488 tmp_sharedflag='-qmkshrobj' 10489 tmp_addflag= ;; 10490 nvcc*) # Cuda Compiler Driver 2.2 10491 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' 10492 compiler_needs_object=yes 10493 ;; 10494 esac 10495 case `$CC -V 2>&1 | $SED 5q` in 10496 *Sun\ C*) # Sun C 5.9 10497 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' 10498 compiler_needs_object=yes 10499 tmp_sharedflag='-G' ;; 10500 *Sun\ F*) # Sun Fortran 8.3 10501 tmp_sharedflag='-G' ;; 10502 esac 10503 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10504 10505 if test yes = "$supports_anon_versioning"; then 10506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10507 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10508 echo "local: *; };" >> $output_objdir/$libname.ver~ 10509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10510 fi 10511 10512 case $cc_basename in 10513 tcc*) 10514 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10515 export_dynamic_flag_spec='-rdynamic' 10516 ;; 10517 xlf* | bgf* | bgxlf* | mpixlf*) 10518 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10519 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10521 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10522 if test yes = "$supports_anon_versioning"; then 10523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10524 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10525 echo "local: *; };" >> $output_objdir/$libname.ver~ 10526 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10527 fi 10528 ;; 10529 esac 10530 else 10531 ld_shlibs=no 10532 fi 10533 ;; 10534 10535 *-mlibc) 10536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10538 ;; 10539 10540 netbsd* | netbsdelf*-gnu) 10541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10542 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10543 wlarc= 10544 else 10545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10547 fi 10548 ;; 10549 10550 solaris*) 10551 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10552 ld_shlibs=no 10553 cat <<_LT_EOF 1>&2 10554 10555 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10556 *** create shared libraries on Solaris systems. Therefore, libtool 10557 *** is disabling shared libraries support. We urge you to upgrade GNU 10558 *** binutils to release 2.9.1 or newer. Another option is to modify 10559 *** your PATH or compiler configuration so that the native linker is 10560 *** used, and then restart. 10561 10562 _LT_EOF 10563 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10566 else 10567 ld_shlibs=no 10568 fi 10569 ;; 10570 10571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10572 case `$LD -v 2>&1` in 10573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10574 ld_shlibs=no 10575 cat <<_LT_EOF 1>&2 10576 10577 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10578 *** reliably create shared libraries on SCO systems. Therefore, libtool 10579 *** is disabling shared libraries support. We urge you to upgrade GNU 10580 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10581 *** your PATH or compiler configuration so that the native linker is 10582 *** used, and then restart. 10583 10584 _LT_EOF 10585 ;; 10586 *) 10587 # For security reasons, it is highly recommended that you always 10588 # use absolute paths for naming shared libraries, and exclude the 10589 # DT_RUNPATH tag from executables and libraries. But doing so 10590 # requires that you compile everything twice, which is a pain. 10591 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10595 else 10596 ld_shlibs=no 10597 fi 10598 ;; 10599 esac 10600 ;; 10601 10602 sunos4*) 10603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10604 wlarc= 10605 hardcode_direct=yes 10606 hardcode_shlibpath_var=no 10607 ;; 10608 10609 *) 10610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10613 else 10614 ld_shlibs=no 10615 fi 10616 ;; 10617 esac 10618 10619 if test no = "$ld_shlibs"; then 10620 runpath_var= 10621 hardcode_libdir_flag_spec= 10622 export_dynamic_flag_spec= 10623 whole_archive_flag_spec= 10624 fi 10625 else 10626 # PORTME fill in a description of your system's linker (not GNU ld) 10627 case $host_os in 10628 aix3*) 10629 allow_undefined_flag=unsupported 10630 always_export_symbols=yes 10631 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' 10632 # Note: this linker hardcodes the directories in LIBPATH if there 10633 # are no directories specified by -L. 10634 hardcode_minus_L=yes 10635 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10636 # Neither direct hardcoding nor static linking is supported with a 10637 # broken collect2. 10638 hardcode_direct=unsupported 10639 fi 10640 ;; 10641 10642 aix[4-9]*) 10643 if test ia64 = "$host_cpu"; then 10644 # On IA64, the linker does run time linking by default, so we don't 10645 # have to do anything special. 10646 aix_use_runtimelinking=no 10647 exp_sym_flag='-Bexport' 10648 no_entry_flag= 10649 else 10650 # If we're using GNU nm, then we don't want the "-C" option. 10651 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10652 # Without the "-l" option, or with the "-B" option, AIX nm treats 10653 # weak defined symbols like other global defined symbols, whereas 10654 # GNU nm marks them as "W". 10655 # While the 'weak' keyword is ignored in the Export File, we need 10656 # it in the Import File for the 'aix-soname' feature, so we have 10657 # to replace the "-B" option with "-P" for AIX nm. 10658 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10659 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' 10660 else 10661 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' 10662 fi 10663 aix_use_runtimelinking=no 10664 10665 # Test if we are trying to use run time linking or normal 10666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10667 # have runtime linking enabled, and use it for executables. 10668 # For shared libraries, we enable/disable runtime linking 10669 # depending on the kind of the shared library created - 10670 # when "with_aix_soname,aix_use_runtimelinking" is: 10671 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10672 # "aix,yes" lib.so shared, rtl:yes, for executables 10673 # lib.a static archive 10674 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10675 # lib.a(lib.so.V) shared, rtl:no, for executables 10676 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10677 # lib.a(lib.so.V) shared, rtl:no 10678 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10679 # lib.a static archive 10680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10681 for ld_flag in $LDFLAGS; do 10682 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10683 aix_use_runtimelinking=yes 10684 break 10685 fi 10686 done 10687 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10688 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10689 # so we don't have lib.a shared libs to link our executables. 10690 # We have to force runtime linking in this case. 10691 aix_use_runtimelinking=yes 10692 LDFLAGS="$LDFLAGS -Wl,-brtl" 10693 fi 10694 ;; 10695 esac 10696 10697 exp_sym_flag='-bexport' 10698 no_entry_flag='-bnoentry' 10699 fi 10700 10701 # When large executables or shared objects are built, AIX ld can 10702 # have problems creating the table of contents. If linking a library 10703 # or program results in "error TOC overflow" add -mminimal-toc to 10704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10706 10707 archive_cmds='' 10708 hardcode_direct=yes 10709 hardcode_direct_absolute=yes 10710 hardcode_libdir_separator=':' 10711 link_all_deplibs=yes 10712 file_list_spec='$wl-f,' 10713 case $with_aix_soname,$aix_use_runtimelinking in 10714 aix,*) ;; # traditional, no import file 10715 svr4,* | *,yes) # use import file 10716 # The Import File defines what to hardcode. 10717 hardcode_direct=no 10718 hardcode_direct_absolute=no 10719 ;; 10720 esac 10721 10722 if test yes = "$GCC"; then 10723 case $host_os in aix4.[012]|aix4.[012].*) 10724 # We only want to do this on AIX 4.2 and lower, the check 10725 # below for broken collect2 doesn't work under 4.3+ 10726 collect2name=`$CC -print-prog-name=collect2` 10727 if test -f "$collect2name" && 10728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10729 then 10730 # We have reworked collect2 10731 : 10732 else 10733 # We have old collect2 10734 hardcode_direct=unsupported 10735 # It fails to find uninstalled libraries when the uninstalled 10736 # path is not listed in the libpath. Setting hardcode_minus_L 10737 # to unsupported forces relinking 10738 hardcode_minus_L=yes 10739 hardcode_libdir_flag_spec='-L$libdir' 10740 hardcode_libdir_separator= 10741 fi 10742 ;; 10743 esac 10744 shared_flag='-shared' 10745 if test yes = "$aix_use_runtimelinking"; then 10746 shared_flag="$shared_flag "'$wl-G' 10747 fi 10748 # Need to ensure runtime linking is disabled for the traditional 10749 # shared library, or the linker may eventually find shared libraries 10750 # /with/ Import File - we do not want to mix them. 10751 shared_flag_aix='-shared' 10752 shared_flag_svr4='-shared $wl-G' 10753 else 10754 # not using gcc 10755 if test ia64 = "$host_cpu"; then 10756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10757 # chokes on -Wl,-G. The following line is correct: 10758 shared_flag='-G' 10759 else 10760 if test yes = "$aix_use_runtimelinking"; then 10761 shared_flag='$wl-G' 10762 else 10763 shared_flag='$wl-bM:SRE' 10764 fi 10765 shared_flag_aix='$wl-bM:SRE' 10766 shared_flag_svr4='$wl-G' 10767 fi 10768 fi 10769 10770 export_dynamic_flag_spec='$wl-bexpall' 10771 # It seems that -bexpall does not export symbols beginning with 10772 # underscore (_), so it is better to generate a list of symbols to export. 10773 always_export_symbols=yes 10774 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10775 # Warning - without using the other runtime loading flags (-brtl), 10776 # -berok will link without error, but may produce a broken library. 10777 allow_undefined_flag='-berok' 10778 # Determine the default libpath from the value encoded in an 10779 # empty executable. 10780 if test set = "${lt_cv_aix_libpath+set}"; then 10781 aix_libpath=$lt_cv_aix_libpath 10782 else 10783 if test ${lt_cv_aix_libpath_+y} 10784 then : 10785 printf %s "(cached) " >&6 10786 else case e in #( 10787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788 /* end confdefs.h. */ 10789 10790 int 10791 main (void) 10792 { 10793 10794 ; 10795 return 0; 10796 } 10797 _ACEOF 10798 if ac_fn_c_try_link "$LINENO" 10799 then : 10800 10801 lt_aix_libpath_sed=' 10802 /Import File Strings/,/^$/ { 10803 /^0/ { 10804 s/^0 *\([^ ]*\) *$/\1/ 10805 p 10806 } 10807 }' 10808 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10809 # Check for a 64-bit object if we didn't find anything. 10810 if test -z "$lt_cv_aix_libpath_"; then 10811 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10812 fi 10813 fi 10814 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10815 conftest$ac_exeext conftest.$ac_ext 10816 if test -z "$lt_cv_aix_libpath_"; then 10817 lt_cv_aix_libpath_=/usr/lib:/lib 10818 fi 10819 ;; 10820 esac 10821 fi 10822 10823 aix_libpath=$lt_cv_aix_libpath_ 10824 fi 10825 10826 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10827 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 10828 else 10829 if test ia64 = "$host_cpu"; then 10830 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10831 allow_undefined_flag="-z nodefs" 10832 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" 10833 else 10834 # Determine the default libpath from the value encoded in an 10835 # empty executable. 10836 if test set = "${lt_cv_aix_libpath+set}"; then 10837 aix_libpath=$lt_cv_aix_libpath 10838 else 10839 if test ${lt_cv_aix_libpath_+y} 10840 then : 10841 printf %s "(cached) " >&6 10842 else case e in #( 10843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844 /* end confdefs.h. */ 10845 10846 int 10847 main (void) 10848 { 10849 10850 ; 10851 return 0; 10852 } 10853 _ACEOF 10854 if ac_fn_c_try_link "$LINENO" 10855 then : 10856 10857 lt_aix_libpath_sed=' 10858 /Import File Strings/,/^$/ { 10859 /^0/ { 10860 s/^0 *\([^ ]*\) *$/\1/ 10861 p 10862 } 10863 }' 10864 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10865 # Check for a 64-bit object if we didn't find anything. 10866 if test -z "$lt_cv_aix_libpath_"; then 10867 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10868 fi 10869 fi 10870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10871 conftest$ac_exeext conftest.$ac_ext 10872 if test -z "$lt_cv_aix_libpath_"; then 10873 lt_cv_aix_libpath_=/usr/lib:/lib 10874 fi 10875 ;; 10876 esac 10877 fi 10878 10879 aix_libpath=$lt_cv_aix_libpath_ 10880 fi 10881 10882 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10883 # Warning - without using the other run time loading flags, 10884 # -berok will link without error, but may produce a broken library. 10885 no_undefined_flag=' $wl-bernotok' 10886 allow_undefined_flag=' $wl-berok' 10887 if test yes = "$with_gnu_ld"; then 10888 # We only use this code for GNU lds that support --whole-archive. 10889 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10890 else 10891 # Exported symbols can be pulled into shared objects from archives 10892 whole_archive_flag_spec='$convenience' 10893 fi 10894 archive_cmds_need_lc=yes 10895 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10896 # -brtl affects multiple linker settings, -berok does not and is overridden later 10897 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10898 if test svr4 != "$with_aix_soname"; then 10899 # This is similar to how AIX traditionally builds its shared libraries. 10900 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' 10901 fi 10902 if test aix != "$with_aix_soname"; then 10903 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' 10904 else 10905 # used by -dlpreopen to get the symbols 10906 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10907 fi 10908 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10909 fi 10910 fi 10911 ;; 10912 10913 amigaos*) 10914 case $host_cpu in 10915 powerpc) 10916 # see comment about AmigaOS4 .so support 10917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10918 archive_expsym_cmds='' 10919 ;; 10920 m68k) 10921 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)' 10922 hardcode_libdir_flag_spec='-L$libdir' 10923 hardcode_minus_L=yes 10924 ;; 10925 esac 10926 ;; 10927 10928 bsdi[45]*) 10929 export_dynamic_flag_spec=-rdynamic 10930 ;; 10931 10932 cygwin* | mingw* | windows* | pw32* | cegcc*) 10933 # When not using gcc, we currently assume that we are using 10934 # Microsoft Visual C++ or Intel C++ Compiler. 10935 # hardcode_libdir_flag_spec is actually meaningless, as there is 10936 # no search path for DLLs. 10937 case $cc_basename in 10938 cl* | icl*) 10939 # Native MSVC or ICC 10940 hardcode_libdir_flag_spec=' ' 10941 allow_undefined_flag=unsupported 10942 always_export_symbols=yes 10943 file_list_spec='@' 10944 # Tell ltmain to make .lib files, not .a files. 10945 libext=lib 10946 # Tell ltmain to make .dll files, not .so files. 10947 shrext_cmds=.dll 10948 # FIXME: Setting linknames here is a bad hack. 10949 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10950 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10951 cp "$export_symbols" "$output_objdir/$soname.def"; 10952 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10953 else 10954 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10955 fi~ 10956 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10957 linknames=' 10958 # The linker will not automatically build a static lib if we build a DLL. 10959 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10960 enable_shared_with_static_runtimes=yes 10961 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10963 # Don't use ranlib 10964 old_postinstall_cmds='chmod 644 $oldlib' 10965 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10966 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10967 case $lt_outputfile in 10968 *.exe|*.EXE) ;; 10969 *) 10970 lt_outputfile=$lt_outputfile.exe 10971 lt_tool_outputfile=$lt_tool_outputfile.exe 10972 ;; 10973 esac~ 10974 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10975 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10976 $RM "$lt_outputfile.manifest"; 10977 fi' 10978 ;; 10979 *) 10980 # Assume MSVC and ICC wrapper 10981 hardcode_libdir_flag_spec=' ' 10982 allow_undefined_flag=unsupported 10983 # Tell ltmain to make .lib files, not .a files. 10984 libext=lib 10985 # Tell ltmain to make .dll files, not .so files. 10986 shrext_cmds=.dll 10987 # FIXME: Setting linknames here is a bad hack. 10988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10989 # The linker will automatically build a .lib file if we build a DLL. 10990 old_archive_from_new_cmds='true' 10991 # FIXME: Should let the user specify the lib program. 10992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10993 enable_shared_with_static_runtimes=yes 10994 ;; 10995 esac 10996 ;; 10997 10998 darwin* | rhapsody*) 10999 11000 11001 archive_cmds_need_lc=no 11002 hardcode_direct=no 11003 hardcode_automatic=yes 11004 hardcode_shlibpath_var=unsupported 11005 if test yes = "$lt_cv_ld_force_load"; then 11006 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\"`' 11007 11008 else 11009 whole_archive_flag_spec='' 11010 fi 11011 link_all_deplibs=yes 11012 allow_undefined_flag=$_lt_dar_allow_undefined 11013 case $cc_basename in 11014 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11015 *) _lt_dar_can_shared=$GCC ;; 11016 esac 11017 if test yes = "$_lt_dar_can_shared"; then 11018 output_verbose_link_cmd=func_echo_all 11019 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11020 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11021 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" 11022 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" 11023 11024 else 11025 ld_shlibs=no 11026 fi 11027 11028 ;; 11029 11030 dgux*) 11031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11032 hardcode_libdir_flag_spec='-L$libdir' 11033 hardcode_shlibpath_var=no 11034 ;; 11035 11036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11037 # support. Future versions do this automatically, but an explicit c++rt0.o 11038 # does not break anything, and helps significantly (at the cost of a little 11039 # extra space). 11040 freebsd2.2*) 11041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11042 hardcode_libdir_flag_spec='-R$libdir' 11043 hardcode_direct=yes 11044 hardcode_shlibpath_var=no 11045 ;; 11046 11047 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11048 freebsd2.*) 11049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11050 hardcode_direct=yes 11051 hardcode_minus_L=yes 11052 hardcode_shlibpath_var=no 11053 ;; 11054 11055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11056 freebsd* | dragonfly* | midnightbsd*) 11057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11058 hardcode_libdir_flag_spec='-R$libdir' 11059 hardcode_direct=yes 11060 hardcode_shlibpath_var=no 11061 ;; 11062 11063 hpux9*) 11064 if test yes = "$GCC"; then 11065 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' 11066 else 11067 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' 11068 fi 11069 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11070 hardcode_libdir_separator=: 11071 hardcode_direct=yes 11072 11073 # hardcode_minus_L: Not really in the search PATH, 11074 # but as the default location of the library. 11075 hardcode_minus_L=yes 11076 export_dynamic_flag_spec='$wl-E' 11077 ;; 11078 11079 hpux10*) 11080 if test yes,no = "$GCC,$with_gnu_ld"; then 11081 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11082 else 11083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11084 fi 11085 if test no = "$with_gnu_ld"; then 11086 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11087 hardcode_libdir_separator=: 11088 hardcode_direct=yes 11089 hardcode_direct_absolute=yes 11090 export_dynamic_flag_spec='$wl-E' 11091 # hardcode_minus_L: Not really in the search PATH, 11092 # but as the default location of the library. 11093 hardcode_minus_L=yes 11094 fi 11095 ;; 11096 11097 hpux11*) 11098 if test yes,no = "$GCC,$with_gnu_ld"; then 11099 case $host_cpu in 11100 hppa*64*) 11101 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 ;; 11103 ia64*) 11104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11105 ;; 11106 *) 11107 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11108 ;; 11109 esac 11110 else 11111 case $host_cpu in 11112 hppa*64*) 11113 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11114 ;; 11115 ia64*) 11116 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11117 ;; 11118 *) 11119 11120 # Older versions of the 11.00 compiler do not understand -b yet 11121 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11123 printf %s "checking if $CC understands -b... " >&6; } 11124 if test ${lt_cv_prog_compiler__b+y} 11125 then : 11126 printf %s "(cached) " >&6 11127 else case e in #( 11128 e) lt_cv_prog_compiler__b=no 11129 save_LDFLAGS=$LDFLAGS 11130 LDFLAGS="$LDFLAGS -b" 11131 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11133 # The linker can only warn and ignore the option if not recognized 11134 # So say no if there are warnings 11135 if test -s conftest.err; then 11136 # Append any errors to the config.log. 11137 cat conftest.err 1>&5 11138 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11140 if diff conftest.exp conftest.er2 >/dev/null; then 11141 lt_cv_prog_compiler__b=yes 11142 fi 11143 else 11144 lt_cv_prog_compiler__b=yes 11145 fi 11146 fi 11147 $RM -r conftest* 11148 LDFLAGS=$save_LDFLAGS 11149 ;; 11150 esac 11151 fi 11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11153 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11154 11155 if test yes = "$lt_cv_prog_compiler__b"; then 11156 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11157 else 11158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11159 fi 11160 11161 ;; 11162 esac 11163 fi 11164 if test no = "$with_gnu_ld"; then 11165 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11166 hardcode_libdir_separator=: 11167 11168 case $host_cpu in 11169 hppa*64*|ia64*) 11170 hardcode_direct=no 11171 hardcode_shlibpath_var=no 11172 ;; 11173 *) 11174 hardcode_direct=yes 11175 hardcode_direct_absolute=yes 11176 export_dynamic_flag_spec='$wl-E' 11177 11178 # hardcode_minus_L: Not really in the search PATH, 11179 # but as the default location of the library. 11180 hardcode_minus_L=yes 11181 ;; 11182 esac 11183 fi 11184 ;; 11185 11186 irix5* | irix6* | nonstopux*) 11187 if test yes = "$GCC"; then 11188 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' 11189 # Try to use the -exported_symbol ld option, if it does not 11190 # work, assume that -exports_file does not work either and 11191 # implicitly export all symbols. 11192 # This should be the same for all languages, so no per-tag cache variable. 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11194 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11195 if test ${lt_cv_irix_exported_symbol+y} 11196 then : 11197 printf %s "(cached) " >&6 11198 else case e in #( 11199 e) save_LDFLAGS=$LDFLAGS 11200 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202 /* end confdefs.h. */ 11203 int foo (void) { return 0; } 11204 _ACEOF 11205 if ac_fn_c_try_link "$LINENO" 11206 then : 11207 lt_cv_irix_exported_symbol=yes 11208 else case e in #( 11209 e) lt_cv_irix_exported_symbol=no ;; 11210 esac 11211 fi 11212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11213 conftest$ac_exeext conftest.$ac_ext 11214 LDFLAGS=$save_LDFLAGS ;; 11215 esac 11216 fi 11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11218 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11219 if test yes = "$lt_cv_irix_exported_symbol"; then 11220 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' 11221 fi 11222 else 11223 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' 11224 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' 11225 fi 11226 archive_cmds_need_lc='no' 11227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11228 hardcode_libdir_separator=: 11229 inherit_rpath=yes 11230 link_all_deplibs=yes 11231 ;; 11232 11233 linux*) 11234 case $cc_basename in 11235 tcc*) 11236 # Fabrice Bellard et al's Tiny C Compiler 11237 ld_shlibs=yes 11238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11240 ;; 11241 esac 11242 ;; 11243 11244 *-mlibc) 11245 ;; 11246 11247 netbsd* | netbsdelf*-gnu) 11248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11250 else 11251 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11252 fi 11253 hardcode_libdir_flag_spec='-R$libdir' 11254 hardcode_direct=yes 11255 hardcode_shlibpath_var=no 11256 ;; 11257 11258 newsos6) 11259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11260 hardcode_direct=yes 11261 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11262 hardcode_libdir_separator=: 11263 hardcode_shlibpath_var=no 11264 ;; 11265 11266 *nto* | *qnx*) 11267 ;; 11268 11269 openbsd*) 11270 if test -f /usr/libexec/ld.so; then 11271 hardcode_direct=yes 11272 hardcode_shlibpath_var=no 11273 hardcode_direct_absolute=yes 11274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11277 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11278 export_dynamic_flag_spec='$wl-E' 11279 else 11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11281 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11282 fi 11283 else 11284 ld_shlibs=no 11285 fi 11286 ;; 11287 11288 os2*) 11289 hardcode_libdir_flag_spec='-L$libdir' 11290 hardcode_minus_L=yes 11291 allow_undefined_flag=unsupported 11292 shrext_cmds=.dll 11293 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11294 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11295 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11296 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11297 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11299 emximp -o $lib $output_objdir/$libname.def' 11300 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11303 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11304 prefix_cmds="$SED"~ 11305 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11306 prefix_cmds="$prefix_cmds -e 1d"; 11307 fi~ 11308 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11309 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11310 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11311 emximp -o $lib $output_objdir/$libname.def' 11312 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11313 enable_shared_with_static_runtimes=yes 11314 file_list_spec='@' 11315 ;; 11316 11317 osf3*) 11318 if test yes = "$GCC"; then 11319 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11320 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' 11321 else 11322 allow_undefined_flag=' -expect_unresolved \*' 11323 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' 11324 fi 11325 archive_cmds_need_lc='no' 11326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11327 hardcode_libdir_separator=: 11328 ;; 11329 11330 osf4* | osf5*) # as osf3* with the addition of -msym flag 11331 if test yes = "$GCC"; then 11332 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11333 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' 11334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11335 else 11336 allow_undefined_flag=' -expect_unresolved \*' 11337 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' 11338 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~ 11339 $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' 11340 11341 # Both c and cxx compiler support -rpath directly 11342 hardcode_libdir_flag_spec='-rpath $libdir' 11343 fi 11344 archive_cmds_need_lc='no' 11345 hardcode_libdir_separator=: 11346 ;; 11347 11348 serenity*) 11349 ;; 11350 11351 solaris*) 11352 no_undefined_flag=' -z defs' 11353 if test yes = "$GCC"; then 11354 wlarc='$wl' 11355 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11357 $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' 11358 else 11359 case `$CC -V 2>&1` in 11360 *"Compilers 5.0"*) 11361 wlarc='' 11362 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11364 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11365 ;; 11366 *) 11367 wlarc='$wl' 11368 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11370 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11371 ;; 11372 esac 11373 fi 11374 hardcode_libdir_flag_spec='-R$libdir' 11375 hardcode_shlibpath_var=no 11376 case $host_os in 11377 solaris2.[0-5] | solaris2.[0-5].*) ;; 11378 *) 11379 # The compiler driver will combine and reorder linker options, 11380 # but understands '-z linker_flag'. GCC discards it without '$wl', 11381 # but is careful enough not to reorder. 11382 # Supported since Solaris 2.6 (maybe 2.5.1?) 11383 if test yes = "$GCC"; then 11384 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11385 else 11386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11387 fi 11388 ;; 11389 esac 11390 link_all_deplibs=yes 11391 ;; 11392 11393 sunos4*) 11394 if test sequent = "$host_vendor"; then 11395 # Use $CC to link under sequent, because it throws in some extra .o 11396 # files that make .init and .fini sections work. 11397 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11398 else 11399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11400 fi 11401 hardcode_libdir_flag_spec='-L$libdir' 11402 hardcode_direct=yes 11403 hardcode_minus_L=yes 11404 hardcode_shlibpath_var=no 11405 ;; 11406 11407 sysv4) 11408 case $host_vendor in 11409 sni) 11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11411 hardcode_direct=yes # is this really true??? 11412 ;; 11413 siemens) 11414 ## LD is ld it makes a PLAMLIB 11415 ## CC just makes a GrossModule. 11416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11417 reload_cmds='$CC -r -o $output$reload_objs' 11418 hardcode_direct=no 11419 ;; 11420 motorola) 11421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11423 ;; 11424 esac 11425 runpath_var='LD_RUN_PATH' 11426 hardcode_shlibpath_var=no 11427 ;; 11428 11429 sysv4.3*) 11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11431 hardcode_shlibpath_var=no 11432 export_dynamic_flag_spec='-Bexport' 11433 ;; 11434 11435 sysv4*MP*) 11436 if test -d /usr/nec; then 11437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11438 hardcode_shlibpath_var=no 11439 runpath_var=LD_RUN_PATH 11440 hardcode_runpath_var=yes 11441 ld_shlibs=yes 11442 fi 11443 ;; 11444 11445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11446 no_undefined_flag='$wl-z,text' 11447 archive_cmds_need_lc=no 11448 hardcode_shlibpath_var=no 11449 runpath_var='LD_RUN_PATH' 11450 11451 if test yes = "$GCC"; then 11452 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11453 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11454 else 11455 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11456 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11457 fi 11458 ;; 11459 11460 sysv5* | sco3.2v5* | sco5v6*) 11461 # Note: We CANNOT use -z defs as we might desire, because we do not 11462 # link with -lc, and that would cause any symbols used from libc to 11463 # always be unresolved, which means just about no library would 11464 # ever link correctly. If we're not using GNU ld we use -z text 11465 # though, which does catch some bad symbols but isn't as heavy-handed 11466 # as -z defs. 11467 no_undefined_flag='$wl-z,text' 11468 allow_undefined_flag='$wl-z,nodefs' 11469 archive_cmds_need_lc=no 11470 hardcode_shlibpath_var=no 11471 hardcode_libdir_flag_spec='$wl-R,$libdir' 11472 hardcode_libdir_separator=':' 11473 link_all_deplibs=yes 11474 export_dynamic_flag_spec='$wl-Bexport' 11475 runpath_var='LD_RUN_PATH' 11476 11477 if test yes = "$GCC"; then 11478 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11479 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11480 else 11481 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11482 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11483 fi 11484 ;; 11485 11486 uts4*) 11487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11488 hardcode_libdir_flag_spec='-L$libdir' 11489 hardcode_shlibpath_var=no 11490 ;; 11491 11492 *) 11493 ld_shlibs=no 11494 ;; 11495 esac 11496 11497 if test sni = "$host_vendor"; then 11498 case $host in 11499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11500 export_dynamic_flag_spec='$wl-Blargedynsym' 11501 ;; 11502 esac 11503 fi 11504 fi 11505 11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11507 printf "%s\n" "$ld_shlibs" >&6; } 11508 test no = "$ld_shlibs" && can_build_shared=no 11509 11510 with_gnu_ld=$with_gnu_ld 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 # 11527 # Do we need to explicitly link libc? 11528 # 11529 case "x$archive_cmds_need_lc" in 11530 x|xyes) 11531 # Assume -lc should be added 11532 archive_cmds_need_lc=yes 11533 11534 if test yes,yes = "$GCC,$enable_shared"; then 11535 case $archive_cmds in 11536 *'~'*) 11537 # FIXME: we may have to deal with multi-command sequences. 11538 ;; 11539 '$CC '*) 11540 # Test whether the compiler implicitly links with -lc since on some 11541 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11542 # to ld, don't add -lc before -lgcc. 11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11544 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11545 if test ${lt_cv_archive_cmds_need_lc+y} 11546 then : 11547 printf %s "(cached) " >&6 11548 else case e in #( 11549 e) $RM conftest* 11550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11551 11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11553 (eval $ac_compile) 2>&5 11554 ac_status=$? 11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11556 test $ac_status = 0; } 2>conftest.err; then 11557 soname=conftest 11558 lib=conftest 11559 libobjs=conftest.$ac_objext 11560 deplibs= 11561 wl=$lt_prog_compiler_wl 11562 pic_flag=$lt_prog_compiler_pic 11563 compiler_flags=-v 11564 linker_flags=-v 11565 verstring= 11566 output_objdir=. 11567 libname=conftest 11568 lt_save_allow_undefined_flag=$allow_undefined_flag 11569 allow_undefined_flag= 11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11572 ac_status=$? 11573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11574 test $ac_status = 0; } 11575 then 11576 lt_cv_archive_cmds_need_lc=no 11577 else 11578 lt_cv_archive_cmds_need_lc=yes 11579 fi 11580 allow_undefined_flag=$lt_save_allow_undefined_flag 11581 else 11582 cat conftest.err 1>&5 11583 fi 11584 $RM conftest* 11585 ;; 11586 esac 11587 fi 11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11589 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11590 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11591 ;; 11592 esac 11593 fi 11594 ;; 11595 esac 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11749 printf %s "checking dynamic linker characteristics... " >&6; } 11750 11751 if test yes = "$GCC"; then 11752 case $host_os in 11753 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11754 *) lt_awk_arg='/^libraries:/' ;; 11755 esac 11756 case $host_os in 11757 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11758 *) lt_sed_strip_eq='s|=/|/|g' ;; 11759 esac 11760 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11761 case $lt_search_path_spec in 11762 *\;*) 11763 # if the path contains ";" then we assume it to be the separator 11764 # otherwise default to the standard path separator (i.e. ":") - it is 11765 # assumed that no part of a normal pathname contains ";" but that should 11766 # okay in the real world where ";" in dirpaths is itself problematic. 11767 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11768 ;; 11769 *) 11770 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11771 ;; 11772 esac 11773 # Ok, now we have the path, separated by spaces, we can step through it 11774 # and add multilib dir if necessary... 11775 lt_tmp_lt_search_path_spec= 11776 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11777 # ...but if some path component already ends with the multilib dir we assume 11778 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11779 case "$lt_multi_os_dir; $lt_search_path_spec " in 11780 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11781 lt_multi_os_dir= 11782 ;; 11783 esac 11784 for lt_sys_path in $lt_search_path_spec; do 11785 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11787 elif test -n "$lt_multi_os_dir"; then 11788 test -d "$lt_sys_path" && \ 11789 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11790 fi 11791 done 11792 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11793 BEGIN {RS = " "; FS = "/|\n";} { 11794 lt_foo = ""; 11795 lt_count = 0; 11796 for (lt_i = NF; lt_i > 0; lt_i--) { 11797 if ($lt_i != "" && $lt_i != ".") { 11798 if ($lt_i == "..") { 11799 lt_count++; 11800 } else { 11801 if (lt_count == 0) { 11802 lt_foo = "/" $lt_i lt_foo; 11803 } else { 11804 lt_count--; 11805 } 11806 } 11807 } 11808 } 11809 if (lt_foo != "") { lt_freq[lt_foo]++; } 11810 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11811 }'` 11812 # AWK program above erroneously prepends '/' to C:/dos/paths 11813 # for these hosts. 11814 case $host_os in 11815 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11816 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11817 esac 11818 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11819 else 11820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11821 fi 11822 library_names_spec= 11823 libname_spec='lib$name' 11824 soname_spec= 11825 shrext_cmds=.so 11826 postinstall_cmds= 11827 postuninstall_cmds= 11828 finish_cmds= 11829 finish_eval= 11830 shlibpath_var= 11831 shlibpath_overrides_runpath=unknown 11832 version_type=none 11833 dynamic_linker="$host_os ld.so" 11834 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11835 need_lib_prefix=unknown 11836 hardcode_into_libs=no 11837 11838 # when you set need_version to no, make sure it does not cause -set_version 11839 # flags to be left without arguments 11840 need_version=unknown 11841 11842 11843 11844 case $host_os in 11845 aix3*) 11846 version_type=linux # correct to gnu/linux during the next big refactor 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11848 shlibpath_var=LIBPATH 11849 11850 # AIX 3 has no versioning support, so we append a major version to the name. 11851 soname_spec='$libname$release$shared_ext$major' 11852 ;; 11853 11854 aix[4-9]*) 11855 version_type=linux # correct to gnu/linux during the next big refactor 11856 need_lib_prefix=no 11857 need_version=no 11858 hardcode_into_libs=yes 11859 if test ia64 = "$host_cpu"; then 11860 # AIX 5 supports IA64 11861 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11862 shlibpath_var=LD_LIBRARY_PATH 11863 else 11864 # With GCC up to 2.95.x, collect2 would create an import file 11865 # for dependence libraries. The import file would start with 11866 # the line '#! .'. This would cause the generated library to 11867 # depend on '.', always an invalid library. This was fixed in 11868 # development snapshots of GCC prior to 3.0. 11869 case $host_os in 11870 aix4 | aix4.[01] | aix4.[01].*) 11871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11872 echo ' yes ' 11873 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11874 : 11875 else 11876 can_build_shared=no 11877 fi 11878 ;; 11879 esac 11880 # Using Import Files as archive members, it is possible to support 11881 # filename-based versioning of shared library archives on AIX. While 11882 # this would work for both with and without runtime linking, it will 11883 # prevent static linking of such archives. So we do filename-based 11884 # shared library versioning with .so extension only, which is used 11885 # when both runtime linking and shared linking is enabled. 11886 # Unfortunately, runtime linking may impact performance, so we do 11887 # not want this to be the default eventually. Also, we use the 11888 # versioned .so libs for executables only if there is the -brtl 11889 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11890 # To allow for filename-based versioning support, we need to create 11891 # libNAME.so.V as an archive file, containing: 11892 # *) an Import File, referring to the versioned filename of the 11893 # archive as well as the shared archive member, telling the 11894 # bitwidth (32 or 64) of that shared object, and providing the 11895 # list of exported symbols of that shared object, eventually 11896 # decorated with the 'weak' keyword 11897 # *) the shared object with the F_LOADONLY flag set, to really avoid 11898 # it being seen by the linker. 11899 # At run time we better use the real file rather than another symlink, 11900 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11901 11902 case $with_aix_soname,$aix_use_runtimelinking in 11903 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11904 # soname into executable. Probably we can add versioning support to 11905 # collect2, so additional links can be useful in future. 11906 aix,yes) # traditional libtool 11907 dynamic_linker='AIX unversionable lib.so' 11908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11909 # instead of lib<name>.a to let people know that these are not 11910 # typical AIX shared libraries. 11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11912 ;; 11913 aix,no) # traditional AIX only 11914 dynamic_linker='AIX lib.a(lib.so.V)' 11915 # We preserve .a as extension for shared libraries through AIX4.2 11916 # and later when we are not doing run time linking. 11917 library_names_spec='$libname$release.a $libname.a' 11918 soname_spec='$libname$release$shared_ext$major' 11919 ;; 11920 svr4,*) # full svr4 only 11921 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11922 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11923 # We do not specify a path in Import Files, so LIBPATH fires. 11924 shlibpath_overrides_runpath=yes 11925 ;; 11926 *,yes) # both, prefer svr4 11927 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11928 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11929 # unpreferred sharedlib libNAME.a needs extra handling 11930 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"' 11931 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"' 11932 # We do not specify a path in Import Files, so LIBPATH fires. 11933 shlibpath_overrides_runpath=yes 11934 ;; 11935 *,no) # both, prefer aix 11936 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11937 library_names_spec='$libname$release.a $libname.a' 11938 soname_spec='$libname$release$shared_ext$major' 11939 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11940 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)' 11941 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"' 11942 ;; 11943 esac 11944 shlibpath_var=LIBPATH 11945 fi 11946 ;; 11947 11948 amigaos*) 11949 case $host_cpu in 11950 powerpc) 11951 # Since July 2007 AmigaOS4 officially supports .so libraries. 11952 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11954 ;; 11955 m68k) 11956 library_names_spec='$libname.ixlibrary $libname.a' 11957 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11958 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' 11959 ;; 11960 esac 11961 ;; 11962 11963 beos*) 11964 library_names_spec='$libname$shared_ext' 11965 dynamic_linker="$host_os ld.so" 11966 shlibpath_var=LIBRARY_PATH 11967 ;; 11968 11969 bsdi[45]*) 11970 version_type=linux # correct to gnu/linux during the next big refactor 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11973 soname_spec='$libname$release$shared_ext$major' 11974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11975 shlibpath_var=LD_LIBRARY_PATH 11976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11978 # the default ld.so.conf also contains /usr/contrib/lib and 11979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11980 # libtool to hard-code these into programs 11981 ;; 11982 11983 cygwin* | mingw* | windows* | pw32* | cegcc*) 11984 version_type=windows 11985 shrext_cmds=.dll 11986 need_version=no 11987 need_lib_prefix=no 11988 11989 case $GCC,$cc_basename in 11990 yes,*) 11991 # gcc 11992 library_names_spec='$libname.dll.a' 11993 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11994 # If user builds GCC with multilib enabled, 11995 # it should just install on $(libdir) 11996 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11997 if test xyes = x"$multilib"; then 11998 postinstall_cmds='base_file=`basename \$file`~ 11999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12000 dldir=$destdir/`dirname \$dlpath`~ 12001 $install_prog $dir/$dlname $destdir/$dlname~ 12002 chmod a+x $destdir/$dlname~ 12003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12004 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12005 fi' 12006 else 12007 postinstall_cmds='base_file=`basename \$file`~ 12008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12009 dldir=$destdir/`dirname \$dlpath`~ 12010 test -d \$dldir || mkdir -p \$dldir~ 12011 $install_prog $dir/$dlname \$dldir/$dlname~ 12012 chmod a+x \$dldir/$dlname~ 12013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12015 fi' 12016 fi 12017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12018 dlpath=$dir/\$dldll~ 12019 $RM \$dlpath' 12020 shlibpath_overrides_runpath=yes 12021 12022 case $host_os in 12023 cygwin*) 12024 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12025 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12026 12027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12028 ;; 12029 mingw* | windows* | cegcc*) 12030 # MinGW DLLs use traditional 'lib' prefix 12031 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12032 ;; 12033 pw32*) 12034 # pw32 DLLs use 'pw' prefix rather than 'lib' 12035 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12036 ;; 12037 esac 12038 dynamic_linker='Win32 ld.exe' 12039 ;; 12040 12041 *,cl* | *,icl*) 12042 # Native MSVC or ICC 12043 libname_spec='$name' 12044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12045 library_names_spec='$libname.dll.lib' 12046 12047 case $build_os in 12048 mingw* | windows*) 12049 sys_lib_search_path_spec= 12050 lt_save_ifs=$IFS 12051 IFS=';' 12052 for lt_path in $LIB 12053 do 12054 IFS=$lt_save_ifs 12055 # Let DOS variable expansion print the short 8.3 style file name. 12056 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12057 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12058 done 12059 IFS=$lt_save_ifs 12060 # Convert to MSYS style. 12061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12062 ;; 12063 cygwin*) 12064 # Convert to unix form, then to dos form, then back to unix form 12065 # but this time dos style (no spaces!) so that the unix form looks 12066 # like /cygdrive/c/PROGRA~1:/cygdr... 12067 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12068 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12069 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12070 ;; 12071 *) 12072 sys_lib_search_path_spec=$LIB 12073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12074 # It is most probably a Windows format PATH. 12075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12076 else 12077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12078 fi 12079 # FIXME: find the short name or the path components, as spaces are 12080 # common. (e.g. "Program Files" -> "PROGRA~1") 12081 ;; 12082 esac 12083 12084 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12085 postinstall_cmds='base_file=`basename \$file`~ 12086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12087 dldir=$destdir/`dirname \$dlpath`~ 12088 test -d \$dldir || mkdir -p \$dldir~ 12089 $install_prog $dir/$dlname \$dldir/$dlname' 12090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12091 dlpath=$dir/\$dldll~ 12092 $RM \$dlpath' 12093 shlibpath_overrides_runpath=yes 12094 dynamic_linker='Win32 link.exe' 12095 ;; 12096 12097 *) 12098 # Assume MSVC and ICC wrapper 12099 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12100 dynamic_linker='Win32 ld.exe' 12101 ;; 12102 esac 12103 # FIXME: first we should search . and the directory the executable is in 12104 shlibpath_var=PATH 12105 ;; 12106 12107 darwin* | rhapsody*) 12108 dynamic_linker="$host_os dyld" 12109 version_type=darwin 12110 need_lib_prefix=no 12111 need_version=no 12112 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12113 soname_spec='$libname$release$major$shared_ext' 12114 shlibpath_overrides_runpath=yes 12115 shlibpath_var=DYLD_LIBRARY_PATH 12116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12117 12118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12120 ;; 12121 12122 dgux*) 12123 version_type=linux # correct to gnu/linux during the next big refactor 12124 need_lib_prefix=no 12125 need_version=no 12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12127 soname_spec='$libname$release$shared_ext$major' 12128 shlibpath_var=LD_LIBRARY_PATH 12129 ;; 12130 12131 freebsd* | dragonfly* | midnightbsd*) 12132 # DragonFly does not have aout. When/if they implement a new 12133 # versioning mechanism, adjust this. 12134 if test -x /usr/bin/objformat; then 12135 objformat=`/usr/bin/objformat` 12136 else 12137 case $host_os in 12138 freebsd[23].*) objformat=aout ;; 12139 *) objformat=elf ;; 12140 esac 12141 fi 12142 version_type=freebsd-$objformat 12143 case $version_type in 12144 freebsd-elf*) 12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12146 soname_spec='$libname$release$shared_ext$major' 12147 need_version=no 12148 need_lib_prefix=no 12149 ;; 12150 freebsd-*) 12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12152 need_version=yes 12153 ;; 12154 esac 12155 case $host_cpu in 12156 powerpc64) 12157 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12158 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160 /* end confdefs.h. */ 12161 int test_pointer_size[sizeof (void *) - 5]; 12162 12163 _ACEOF 12164 if ac_fn_c_try_compile "$LINENO" 12165 then : 12166 shlibpath_var=LD_LIBRARY_PATH 12167 else case e in #( 12168 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12169 esac 12170 fi 12171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12172 ;; 12173 *) 12174 shlibpath_var=LD_LIBRARY_PATH 12175 ;; 12176 esac 12177 case $host_os in 12178 freebsd2.*) 12179 shlibpath_overrides_runpath=yes 12180 ;; 12181 freebsd3.[01]* | freebsdelf3.[01]*) 12182 shlibpath_overrides_runpath=yes 12183 hardcode_into_libs=yes 12184 ;; 12185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12187 shlibpath_overrides_runpath=no 12188 hardcode_into_libs=yes 12189 ;; 12190 *) # from 4.6 on, and DragonFly 12191 shlibpath_overrides_runpath=yes 12192 hardcode_into_libs=yes 12193 ;; 12194 esac 12195 ;; 12196 12197 haiku*) 12198 version_type=linux # correct to gnu/linux during the next big refactor 12199 need_lib_prefix=no 12200 need_version=no 12201 dynamic_linker="$host_os runtime_loader" 12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12203 soname_spec='$libname$release$shared_ext$major' 12204 shlibpath_var=LIBRARY_PATH 12205 shlibpath_overrides_runpath=no 12206 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12207 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12208 hardcode_into_libs=no 12209 ;; 12210 12211 hpux9* | hpux10* | hpux11*) 12212 # Give a soname corresponding to the major version so that dld.sl refuses to 12213 # link against other versions. 12214 version_type=sunos 12215 need_lib_prefix=no 12216 need_version=no 12217 case $host_cpu in 12218 ia64*) 12219 shrext_cmds='.so' 12220 hardcode_into_libs=yes 12221 dynamic_linker="$host_os dld.so" 12222 shlibpath_var=LD_LIBRARY_PATH 12223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12225 soname_spec='$libname$release$shared_ext$major' 12226 if test 32 = "$HPUX_IA64_MODE"; then 12227 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12228 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12229 else 12230 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12231 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12232 fi 12233 ;; 12234 hppa*64*) 12235 shrext_cmds='.sl' 12236 hardcode_into_libs=yes 12237 dynamic_linker="$host_os dld.sl" 12238 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12241 soname_spec='$libname$release$shared_ext$major' 12242 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12244 ;; 12245 *) 12246 shrext_cmds='.sl' 12247 dynamic_linker="$host_os dld.sl" 12248 shlibpath_var=SHLIB_PATH 12249 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12251 soname_spec='$libname$release$shared_ext$major' 12252 ;; 12253 esac 12254 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12255 postinstall_cmds='chmod 555 $lib' 12256 # or fails outright, so override atomically: 12257 install_override_mode=555 12258 ;; 12259 12260 interix[3-9]*) 12261 version_type=linux # correct to gnu/linux during the next big refactor 12262 need_lib_prefix=no 12263 need_version=no 12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12265 soname_spec='$libname$release$shared_ext$major' 12266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12267 shlibpath_var=LD_LIBRARY_PATH 12268 shlibpath_overrides_runpath=no 12269 hardcode_into_libs=yes 12270 ;; 12271 12272 irix5* | irix6* | nonstopux*) 12273 case $host_os in 12274 nonstopux*) version_type=nonstopux ;; 12275 *) 12276 if test yes = "$lt_cv_prog_gnu_ld"; then 12277 version_type=linux # correct to gnu/linux during the next big refactor 12278 else 12279 version_type=irix 12280 fi ;; 12281 esac 12282 need_lib_prefix=no 12283 need_version=no 12284 soname_spec='$libname$release$shared_ext$major' 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12286 case $host_os in 12287 irix5* | nonstopux*) 12288 libsuff= shlibsuff= 12289 ;; 12290 *) 12291 case $LD in # libtool.m4 will add one of these switches to LD 12292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12293 libsuff= shlibsuff= libmagic=32-bit;; 12294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12295 libsuff=32 shlibsuff=N32 libmagic=N32;; 12296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12297 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12298 *) libsuff= shlibsuff= libmagic=never-match;; 12299 esac 12300 ;; 12301 esac 12302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12303 shlibpath_overrides_runpath=no 12304 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12305 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12306 hardcode_into_libs=yes 12307 ;; 12308 12309 # No shared lib support for Linux oldld, aout, or coff. 12310 linux*oldld* | linux*aout* | linux*coff*) 12311 dynamic_linker=no 12312 ;; 12313 12314 linux*android*) 12315 version_type=none # Android doesn't support versioned libraries. 12316 need_lib_prefix=no 12317 need_version=no 12318 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12319 soname_spec='$libname$release$shared_ext' 12320 finish_cmds= 12321 shlibpath_var=LD_LIBRARY_PATH 12322 shlibpath_overrides_runpath=yes 12323 12324 # This implies no fast_install, which is unacceptable. 12325 # Some rework will be needed to allow for fast_install 12326 # before this can be enabled. 12327 hardcode_into_libs=yes 12328 12329 dynamic_linker='Android linker' 12330 # -rpath works at least for libraries that are not overridden by 12331 # libraries installed in system locations. 12332 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12333 ;; 12334 12335 # This must be glibc/ELF. 12336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12337 version_type=linux # correct to gnu/linux during the next big refactor 12338 need_lib_prefix=no 12339 need_version=no 12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12341 soname_spec='$libname$release$shared_ext$major' 12342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12343 shlibpath_var=LD_LIBRARY_PATH 12344 shlibpath_overrides_runpath=no 12345 12346 # Some binutils ld are patched to set DT_RUNPATH 12347 if test ${lt_cv_shlibpath_overrides_runpath+y} 12348 then : 12349 printf %s "(cached) " >&6 12350 else case e in #( 12351 e) lt_cv_shlibpath_overrides_runpath=no 12352 save_LDFLAGS=$LDFLAGS 12353 save_libdir=$libdir 12354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357 /* end confdefs.h. */ 12358 12359 int 12360 main (void) 12361 { 12362 12363 ; 12364 return 0; 12365 } 12366 _ACEOF 12367 if ac_fn_c_try_link "$LINENO" 12368 then : 12369 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12370 then : 12371 lt_cv_shlibpath_overrides_runpath=yes 12372 fi 12373 fi 12374 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12375 conftest$ac_exeext conftest.$ac_ext 12376 LDFLAGS=$save_LDFLAGS 12377 libdir=$save_libdir 12378 ;; 12379 esac 12380 fi 12381 12382 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12383 12384 # This implies no fast_install, which is unacceptable. 12385 # Some rework will be needed to allow for fast_install 12386 # before this can be enabled. 12387 hardcode_into_libs=yes 12388 12389 # Ideally, we could use ldconfig to report *all* directories which are 12390 # searched for libraries, however this is still not possible. Aside from not 12391 # being certain /sbin/ldconfig is available, command 12392 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12393 # even though it is searched at run-time. Try to do the best guess by 12394 # appending ld.so.conf contents (and includes) to the search path. 12395 if test -f /etc/ld.so.conf; then 12396 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' ' '` 12397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12398 fi 12399 12400 # We used to test for /lib/ld.so.1 and disable shared libraries on 12401 # powerpc, because MkLinux only supported shared libraries with the 12402 # GNU dynamic linker. Since this was broken with cross compilers, 12403 # most powerpc-linux boxes support dynamic linking these days and 12404 # people can always --disable-shared, the test was removed, and we 12405 # assume the GNU/Linux dynamic linker is in use. 12406 dynamic_linker='GNU/Linux ld.so' 12407 ;; 12408 12409 netbsdelf*-gnu) 12410 version_type=linux 12411 need_lib_prefix=no 12412 need_version=no 12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12414 soname_spec='$libname$release$shared_ext$major' 12415 shlibpath_var=LD_LIBRARY_PATH 12416 shlibpath_overrides_runpath=no 12417 hardcode_into_libs=yes 12418 dynamic_linker='NetBSD ld.elf_so' 12419 ;; 12420 12421 netbsd*) 12422 version_type=sunos 12423 need_lib_prefix=no 12424 need_version=no 12425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12428 dynamic_linker='NetBSD (a.out) ld.so' 12429 else 12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12431 soname_spec='$libname$release$shared_ext$major' 12432 dynamic_linker='NetBSD ld.elf_so' 12433 fi 12434 shlibpath_var=LD_LIBRARY_PATH 12435 shlibpath_overrides_runpath=yes 12436 hardcode_into_libs=yes 12437 ;; 12438 12439 *-mlibc) 12440 version_type=linux # correct to gnu/linux during the next big refactor 12441 need_lib_prefix=no 12442 need_version=no 12443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12444 soname_spec='$libname$release$shared_ext$major' 12445 dynamic_linker='mlibc ld.so' 12446 shlibpath_var=LD_LIBRARY_PATH 12447 shlibpath_overrides_runpath=no 12448 hardcode_into_libs=yes 12449 ;; 12450 12451 newsos6) 12452 version_type=linux # correct to gnu/linux during the next big refactor 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 shlibpath_var=LD_LIBRARY_PATH 12455 shlibpath_overrides_runpath=yes 12456 ;; 12457 12458 *nto* | *qnx*) 12459 version_type=qnx 12460 need_lib_prefix=no 12461 need_version=no 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12463 soname_spec='$libname$release$shared_ext$major' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 shlibpath_overrides_runpath=no 12466 hardcode_into_libs=yes 12467 dynamic_linker='ldqnx.so' 12468 ;; 12469 12470 openbsd*) 12471 version_type=sunos 12472 sys_lib_dlsearch_path_spec=/usr/lib 12473 need_lib_prefix=no 12474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12475 need_version=no 12476 else 12477 need_version=yes 12478 fi 12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12481 shlibpath_var=LD_LIBRARY_PATH 12482 shlibpath_overrides_runpath=yes 12483 ;; 12484 12485 os2*) 12486 libname_spec='$name' 12487 version_type=windows 12488 shrext_cmds=.dll 12489 need_version=no 12490 need_lib_prefix=no 12491 # OS/2 can only load a DLL with a base name of 8 characters or less. 12492 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12493 v=$($ECHO $release$versuffix | tr -d .-); 12494 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12495 $ECHO $n$v`$shared_ext' 12496 library_names_spec='${libname}_dll.$libext' 12497 dynamic_linker='OS/2 ld.exe' 12498 shlibpath_var=BEGINLIBPATH 12499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12501 postinstall_cmds='base_file=`basename \$file`~ 12502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12503 dldir=$destdir/`dirname \$dlpath`~ 12504 test -d \$dldir || mkdir -p \$dldir~ 12505 $install_prog $dir/$dlname \$dldir/$dlname~ 12506 chmod a+x \$dldir/$dlname~ 12507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12509 fi' 12510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12511 dlpath=$dir/\$dldll~ 12512 $RM \$dlpath' 12513 ;; 12514 12515 osf3* | osf4* | osf5*) 12516 version_type=osf 12517 need_lib_prefix=no 12518 need_version=no 12519 soname_spec='$libname$release$shared_ext$major' 12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12524 ;; 12525 12526 rdos*) 12527 dynamic_linker=no 12528 ;; 12529 12530 serenity*) 12531 version_type=linux # correct to gnu/linux during the next big refactor 12532 need_lib_prefix=no 12533 need_version=no 12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12535 soname_spec='$libname$release$shared_ext$major' 12536 shlibpath_var=LD_LIBRARY_PATH 12537 shlibpath_overrides_runpath=no 12538 dynamic_linker='SerenityOS LibELF' 12539 ;; 12540 12541 solaris*) 12542 version_type=linux # correct to gnu/linux during the next big refactor 12543 need_lib_prefix=no 12544 need_version=no 12545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12546 soname_spec='$libname$release$shared_ext$major' 12547 shlibpath_var=LD_LIBRARY_PATH 12548 shlibpath_overrides_runpath=yes 12549 hardcode_into_libs=yes 12550 # ldd complains unless libraries are executable 12551 postinstall_cmds='chmod +x $lib' 12552 ;; 12553 12554 sunos4*) 12555 version_type=sunos 12556 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12558 shlibpath_var=LD_LIBRARY_PATH 12559 shlibpath_overrides_runpath=yes 12560 if test yes = "$with_gnu_ld"; then 12561 need_lib_prefix=no 12562 fi 12563 need_version=yes 12564 ;; 12565 12566 sysv4 | sysv4.3*) 12567 version_type=linux # correct to gnu/linux during the next big refactor 12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12569 soname_spec='$libname$release$shared_ext$major' 12570 shlibpath_var=LD_LIBRARY_PATH 12571 case $host_vendor in 12572 sni) 12573 shlibpath_overrides_runpath=no 12574 need_lib_prefix=no 12575 runpath_var=LD_RUN_PATH 12576 ;; 12577 siemens) 12578 need_lib_prefix=no 12579 ;; 12580 motorola) 12581 need_lib_prefix=no 12582 need_version=no 12583 shlibpath_overrides_runpath=no 12584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12585 ;; 12586 esac 12587 ;; 12588 12589 sysv4*MP*) 12590 if test -d /usr/nec; then 12591 version_type=linux # correct to gnu/linux during the next big refactor 12592 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12593 soname_spec='$libname$shared_ext.$major' 12594 shlibpath_var=LD_LIBRARY_PATH 12595 fi 12596 ;; 12597 12598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12599 version_type=sco 12600 need_lib_prefix=no 12601 need_version=no 12602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12603 soname_spec='$libname$release$shared_ext$major' 12604 shlibpath_var=LD_LIBRARY_PATH 12605 shlibpath_overrides_runpath=yes 12606 hardcode_into_libs=yes 12607 if test yes = "$with_gnu_ld"; then 12608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12609 else 12610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12611 case $host_os in 12612 sco3.2v5*) 12613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12614 ;; 12615 esac 12616 fi 12617 sys_lib_dlsearch_path_spec='/usr/lib' 12618 ;; 12619 12620 tpf*) 12621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12622 version_type=linux # correct to gnu/linux during the next big refactor 12623 need_lib_prefix=no 12624 need_version=no 12625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12626 shlibpath_var=LD_LIBRARY_PATH 12627 shlibpath_overrides_runpath=no 12628 hardcode_into_libs=yes 12629 ;; 12630 12631 uts4*) 12632 version_type=linux # correct to gnu/linux during the next big refactor 12633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12634 soname_spec='$libname$release$shared_ext$major' 12635 shlibpath_var=LD_LIBRARY_PATH 12636 ;; 12637 12638 emscripten*) 12639 version_type=none 12640 need_lib_prefix=no 12641 need_version=no 12642 library_names_spec='$libname$release$shared_ext' 12643 soname_spec='$libname$release$shared_ext' 12644 finish_cmds= 12645 dynamic_linker="Emscripten linker" 12646 lt_prog_compiler_wl= 12647 lt_prog_compiler_pic= 12648 lt_prog_compiler_static= 12649 12650 12651 if test yes = "$GCC"; then 12652 lt_prog_compiler_wl='-Wl,' 12653 lt_prog_compiler_static='-static' 12654 12655 case $host_os in 12656 aix*) 12657 # All AIX code is PIC. 12658 if test ia64 = "$host_cpu"; then 12659 # AIX 5 now supports IA64 processor 12660 lt_prog_compiler_static='-Bstatic' 12661 fi 12662 lt_prog_compiler_pic='-fPIC' 12663 ;; 12664 12665 amigaos*) 12666 case $host_cpu in 12667 powerpc) 12668 # see comment about AmigaOS4 .so support 12669 lt_prog_compiler_pic='-fPIC' 12670 ;; 12671 m68k) 12672 # FIXME: we need at least 68020 code to build shared libraries, but 12673 # adding the '-m68020' flag to GCC prevents building anything better, 12674 # like '-m68040'. 12675 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12676 ;; 12677 esac 12678 ;; 12679 12680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12681 # PIC is the default for these OSes. 12682 ;; 12683 12684 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12685 # This hack is so that the source file can tell whether it is being 12686 # built for inclusion in a dll (and should export symbols for example). 12687 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12688 # (--disable-auto-import) libraries 12689 lt_prog_compiler_pic='-DDLL_EXPORT' 12690 case $host_os in 12691 os2*) 12692 lt_prog_compiler_static='$wl-static' 12693 ;; 12694 esac 12695 ;; 12696 12697 darwin* | rhapsody*) 12698 # PIC is the default on this platform 12699 # Common symbols not allowed in MH_DYLIB files 12700 lt_prog_compiler_pic='-fno-common' 12701 ;; 12702 12703 haiku*) 12704 # PIC is the default for Haiku. 12705 # The "-static" flag exists, but is broken. 12706 lt_prog_compiler_static= 12707 ;; 12708 12709 hpux*) 12710 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12711 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12712 # sets the default TLS model and affects inlining. 12713 case $host_cpu in 12714 hppa*64*) 12715 # +Z the default 12716 ;; 12717 *) 12718 lt_prog_compiler_pic='-fPIC' 12719 ;; 12720 esac 12721 ;; 12722 12723 interix[3-9]*) 12724 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12725 # Instead, we relocate shared libraries at runtime. 12726 ;; 12727 12728 msdosdjgpp*) 12729 # Just because we use GCC doesn't mean we suddenly get shared libraries 12730 # on systems that don't support them. 12731 lt_prog_compiler_can_build_shared=no 12732 enable_shared=no 12733 ;; 12734 12735 *nto* | *qnx*) 12736 # QNX uses GNU C++, but need to define -shared option too, otherwise 12737 # it will coredump. 12738 lt_prog_compiler_pic='-fPIC -shared' 12739 ;; 12740 12741 sysv4*MP*) 12742 if test -d /usr/nec; then 12743 lt_prog_compiler_pic=-Kconform_pic 12744 fi 12745 ;; 12746 12747 *) 12748 lt_prog_compiler_pic='-fPIC' 12749 ;; 12750 esac 12751 12752 case $cc_basename in 12753 nvcc*) # Cuda Compiler Driver 2.2 12754 lt_prog_compiler_wl='-Xlinker ' 12755 if test -n "$lt_prog_compiler_pic"; then 12756 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12757 fi 12758 ;; 12759 esac 12760 else 12761 # PORTME Check for flag to pass linker flags through the system compiler. 12762 case $host_os in 12763 aix*) 12764 lt_prog_compiler_wl='-Wl,' 12765 if test ia64 = "$host_cpu"; then 12766 # AIX 5 now supports IA64 processor 12767 lt_prog_compiler_static='-Bstatic' 12768 else 12769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12770 fi 12771 ;; 12772 12773 darwin* | rhapsody*) 12774 # PIC is the default on this platform 12775 # Common symbols not allowed in MH_DYLIB files 12776 lt_prog_compiler_pic='-fno-common' 12777 case $cc_basename in 12778 nagfor*) 12779 # NAG Fortran compiler 12780 lt_prog_compiler_wl='-Wl,-Wl,,' 12781 lt_prog_compiler_pic='-PIC' 12782 lt_prog_compiler_static='-Bstatic' 12783 ;; 12784 esac 12785 ;; 12786 12787 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12788 # This hack is so that the source file can tell whether it is being 12789 # built for inclusion in a dll (and should export symbols for example). 12790 lt_prog_compiler_pic='-DDLL_EXPORT' 12791 case $host_os in 12792 os2*) 12793 lt_prog_compiler_static='$wl-static' 12794 ;; 12795 esac 12796 ;; 12797 12798 hpux9* | hpux10* | hpux11*) 12799 lt_prog_compiler_wl='-Wl,' 12800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12801 # not for PA HP-UX. 12802 case $host_cpu in 12803 hppa*64*|ia64*) 12804 # +Z the default 12805 ;; 12806 *) 12807 lt_prog_compiler_pic='+Z' 12808 ;; 12809 esac 12810 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12811 lt_prog_compiler_static='$wl-a ${wl}archive' 12812 ;; 12813 12814 irix5* | irix6* | nonstopux*) 12815 lt_prog_compiler_wl='-Wl,' 12816 # PIC (with -KPIC) is the default. 12817 lt_prog_compiler_static='-non_shared' 12818 ;; 12819 12820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12821 case $cc_basename in 12822 # old Intel for x86_64, which still supported -KPIC. 12823 ecc*) 12824 lt_prog_compiler_wl='-Wl,' 12825 lt_prog_compiler_pic='-KPIC' 12826 lt_prog_compiler_static='-static' 12827 ;; 12828 *flang* | ftn | f18* | f95*) 12829 # Flang compiler. 12830 lt_prog_compiler_wl='-Wl,' 12831 lt_prog_compiler_pic='-fPIC' 12832 lt_prog_compiler_static='-static' 12833 ;; 12834 # icc used to be incompatible with GCC. 12835 # ICC 10 doesn't accept -KPIC any more. 12836 icc* | ifort*) 12837 lt_prog_compiler_wl='-Wl,' 12838 lt_prog_compiler_pic='-fPIC' 12839 lt_prog_compiler_static='-static' 12840 ;; 12841 # Lahey Fortran 8.1. 12842 lf95*) 12843 lt_prog_compiler_wl='-Wl,' 12844 lt_prog_compiler_pic='--shared' 12845 lt_prog_compiler_static='--static' 12846 ;; 12847 nagfor*) 12848 # NAG Fortran compiler 12849 lt_prog_compiler_wl='-Wl,-Wl,,' 12850 lt_prog_compiler_pic='-PIC' 12851 lt_prog_compiler_static='-Bstatic' 12852 ;; 12853 tcc*) 12854 # Fabrice Bellard et al's Tiny C Compiler 12855 lt_prog_compiler_wl='-Wl,' 12856 lt_prog_compiler_pic='-fPIC' 12857 lt_prog_compiler_static='-static' 12858 ;; 12859 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12860 # Portland Group compilers (*not* the Pentium gcc compiler, 12861 # which looks to be a dead project) 12862 lt_prog_compiler_wl='-Wl,' 12863 lt_prog_compiler_pic='-fpic' 12864 lt_prog_compiler_static='-Bstatic' 12865 ;; 12866 ccc*) 12867 lt_prog_compiler_wl='-Wl,' 12868 # All Alpha code is PIC. 12869 lt_prog_compiler_static='-non_shared' 12870 ;; 12871 xl* | bgxl* | bgf* | mpixl*) 12872 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12873 lt_prog_compiler_wl='-Wl,' 12874 lt_prog_compiler_pic='-qpic' 12875 lt_prog_compiler_static='-qstaticlink' 12876 ;; 12877 *) 12878 case `$CC -V 2>&1 | $SED 5q` in 12879 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12880 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12881 lt_prog_compiler_pic='-KPIC' 12882 lt_prog_compiler_static='-Bstatic' 12883 lt_prog_compiler_wl='' 12884 ;; 12885 *Sun\ F* | *Sun*Fortran*) 12886 lt_prog_compiler_pic='-KPIC' 12887 lt_prog_compiler_static='-Bstatic' 12888 lt_prog_compiler_wl='-Qoption ld ' 12889 ;; 12890 *Sun\ C*) 12891 # Sun C 5.9 12892 lt_prog_compiler_pic='-KPIC' 12893 lt_prog_compiler_static='-Bstatic' 12894 lt_prog_compiler_wl='-Wl,' 12895 ;; 12896 *Intel*\ [CF]*Compiler*) 12897 lt_prog_compiler_wl='-Wl,' 12898 lt_prog_compiler_pic='-fPIC' 12899 lt_prog_compiler_static='-static' 12900 ;; 12901 *Portland\ Group*) 12902 lt_prog_compiler_wl='-Wl,' 12903 lt_prog_compiler_pic='-fpic' 12904 lt_prog_compiler_static='-Bstatic' 12905 ;; 12906 esac 12907 ;; 12908 esac 12909 ;; 12910 12911 newsos6) 12912 lt_prog_compiler_pic='-KPIC' 12913 lt_prog_compiler_static='-Bstatic' 12914 ;; 12915 12916 *-mlibc) 12917 lt_prog_compiler_wl='-Wl,' 12918 lt_prog_compiler_pic='-fPIC' 12919 lt_prog_compiler_static='-static' 12920 ;; 12921 12922 *nto* | *qnx*) 12923 # QNX uses GNU C++, but need to define -shared option too, otherwise 12924 # it will coredump. 12925 lt_prog_compiler_pic='-fPIC -shared' 12926 ;; 12927 12928 osf3* | osf4* | osf5*) 12929 lt_prog_compiler_wl='-Wl,' 12930 # All OSF/1 code is PIC. 12931 lt_prog_compiler_static='-non_shared' 12932 ;; 12933 12934 rdos*) 12935 lt_prog_compiler_static='-non_shared' 12936 ;; 12937 12938 serenity*) 12939 ;; 12940 12941 solaris*) 12942 lt_prog_compiler_pic='-KPIC' 12943 lt_prog_compiler_static='-Bstatic' 12944 case $cc_basename in 12945 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12946 lt_prog_compiler_wl='-Qoption ld ';; 12947 *) 12948 lt_prog_compiler_wl='-Wl,';; 12949 esac 12950 ;; 12951 12952 sunos4*) 12953 lt_prog_compiler_wl='-Qoption ld ' 12954 lt_prog_compiler_pic='-PIC' 12955 lt_prog_compiler_static='-Bstatic' 12956 ;; 12957 12958 sysv4 | sysv4.2uw2* | sysv4.3*) 12959 lt_prog_compiler_wl='-Wl,' 12960 lt_prog_compiler_pic='-KPIC' 12961 lt_prog_compiler_static='-Bstatic' 12962 ;; 12963 12964 sysv4*MP*) 12965 if test -d /usr/nec; then 12966 lt_prog_compiler_pic='-Kconform_pic' 12967 lt_prog_compiler_static='-Bstatic' 12968 fi 12969 ;; 12970 12971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12972 lt_prog_compiler_wl='-Wl,' 12973 lt_prog_compiler_pic='-KPIC' 12974 lt_prog_compiler_static='-Bstatic' 12975 ;; 12976 12977 unicos*) 12978 lt_prog_compiler_wl='-Wl,' 12979 lt_prog_compiler_can_build_shared=no 12980 ;; 12981 12982 uts4*) 12983 lt_prog_compiler_pic='-pic' 12984 lt_prog_compiler_static='-Bstatic' 12985 ;; 12986 12987 *) 12988 lt_prog_compiler_can_build_shared=no 12989 ;; 12990 esac 12991 fi 12992 12993 case $host_os in 12994 # For platforms that do not support PIC, -DPIC is meaningless: 12995 *djgpp*) 12996 lt_prog_compiler_pic= 12997 ;; 12998 *) 12999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13000 ;; 13001 esac 13002 13003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13004 printf %s "checking for $compiler option to produce PIC... " >&6; } 13005 if test ${lt_cv_prog_compiler_pic+y} 13006 then : 13007 printf %s "(cached) " >&6 13008 else case e in #( 13009 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13010 esac 13011 fi 13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13013 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13014 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13015 13016 # 13017 # Check to make sure the PIC flag actually works. 13018 # 13019 if test -n "$lt_prog_compiler_pic"; then 13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13021 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13022 if test ${lt_cv_prog_compiler_pic_works+y} 13023 then : 13024 printf %s "(cached) " >&6 13025 else case e in #( 13026 e) lt_cv_prog_compiler_pic_works=no 13027 ac_outfile=conftest.$ac_objext 13028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13030 # Insert the option either (1) after the last *FLAGS variable, or 13031 # (2) before a word containing "conftest.", or (3) at the end. 13032 # Note that $ac_compile itself does not contain backslashes and begins 13033 # with a dollar sign (not a hyphen), so the echo should work correctly. 13034 # The option is referenced via a variable to avoid confusing sed. 13035 lt_compile=`echo "$ac_compile" | $SED \ 13036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13038 -e 's:$: $lt_compiler_flag:'` 13039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13040 (eval "$lt_compile" 2>conftest.err) 13041 ac_status=$? 13042 cat conftest.err >&5 13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13044 if (exit $ac_status) && test -s "$ac_outfile"; then 13045 # The compiler can only warn and ignore the option if not recognized 13046 # So say no if there are warnings other than the usual output. 13047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13050 lt_cv_prog_compiler_pic_works=yes 13051 fi 13052 fi 13053 $RM conftest* 13054 ;; 13055 esac 13056 fi 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13058 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13059 13060 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13061 case $lt_prog_compiler_pic in 13062 "" | " "*) ;; 13063 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13064 esac 13065 else 13066 lt_prog_compiler_pic= 13067 lt_prog_compiler_can_build_shared=no 13068 fi 13069 13070 fi 13071 13072 13073 13074 13075 13076 # 13077 # Check to make sure the static flag actually works. 13078 # 13079 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13081 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13082 if test ${lt_cv_prog_compiler_static_works+y} 13083 then : 13084 printf %s "(cached) " >&6 13085 else case e in #( 13086 e) lt_cv_prog_compiler_static_works=no 13087 save_LDFLAGS=$LDFLAGS 13088 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13089 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13091 # The linker can only warn and ignore the option if not recognized 13092 # So say no if there are warnings 13093 if test -s conftest.err; then 13094 # Append any errors to the config.log. 13095 cat conftest.err 1>&5 13096 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13098 if diff conftest.exp conftest.er2 >/dev/null; then 13099 lt_cv_prog_compiler_static_works=yes 13100 fi 13101 else 13102 lt_cv_prog_compiler_static_works=yes 13103 fi 13104 fi 13105 $RM -r conftest* 13106 LDFLAGS=$save_LDFLAGS 13107 ;; 13108 esac 13109 fi 13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13111 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13112 13113 if test yes = "$lt_cv_prog_compiler_static_works"; then 13114 : 13115 else 13116 lt_prog_compiler_static= 13117 fi 13118 13119 13120 13121 ='-fPIC' 13122 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13123 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' 13124 archive_cmds_need_lc=no 13125 no_undefined_flag= 13126 ;; 13127 13128 *) 13129 dynamic_linker=no 13130 ;; 13131 esac 13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13133 printf "%s\n" "$dynamic_linker" >&6; } 13134 test no = "$dynamic_linker" && can_build_shared=no 13135 13136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13137 if test yes = "$GCC"; then 13138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13139 fi 13140 13141 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13142 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13143 fi 13144 13145 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13146 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13147 fi 13148 13149 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13150 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13151 13152 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13153 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13154 13155 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13156 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13255 printf %s "checking how to hardcode library paths into programs... " >&6; } 13256 hardcode_action= 13257 if test -n "$hardcode_libdir_flag_spec" || 13258 test -n "$runpath_var" || 13259 test yes = "$hardcode_automatic"; then 13260 13261 # We can hardcode non-existent directories. 13262 if test no != "$hardcode_direct" && 13263 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13264 # have to relink, otherwise we might link with an installed library 13265 # when we should be linking with a yet-to-be-installed one 13266 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13267 test no != "$hardcode_minus_L"; then 13268 # Linking always hardcodes the temporary library directory. 13269 hardcode_action=relink 13270 else 13271 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13272 hardcode_action=immediate 13273 fi 13274 else 13275 # We cannot hardcode anything, or else we can only hardcode existing 13276 # directories. 13277 hardcode_action=unsupported 13278 fi 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13280 printf "%s\n" "$hardcode_action" >&6; } 13281 13282 if test relink = "$hardcode_action" || 13283 test yes = "$inherit_rpath"; then 13284 # Fast installation is not supported 13285 enable_fast_install=no 13286 elif test yes = "$shlibpath_overrides_runpath" || 13287 test no = "$enable_shared"; then 13288 # Fast installation is not necessary 13289 enable_fast_install=needless 13290 fi 13291 13292 13293 13294 13295 13296 13297 if test yes != "$enable_dlopen"; then 13298 enable_dlopen=unknown 13299 enable_dlopen_self=unknown 13300 enable_dlopen_self_static=unknown 13301 else 13302 lt_cv_dlopen=no 13303 lt_cv_dlopen_libs= 13304 13305 case $host_os in 13306 beos*) 13307 lt_cv_dlopen=load_add_on 13308 lt_cv_dlopen_libs= 13309 lt_cv_dlopen_self=yes 13310 ;; 13311 13312 mingw* | windows* | pw32* | cegcc*) 13313 lt_cv_dlopen=LoadLibrary 13314 lt_cv_dlopen_libs= 13315 ;; 13316 13317 cygwin*) 13318 lt_cv_dlopen=dlopen 13319 lt_cv_dlopen_libs= 13320 ;; 13321 13322 darwin*) 13323 # if libdl is installed we need to link against it 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13325 printf %s "checking for dlopen in -ldl... " >&6; } 13326 if test ${ac_cv_lib_dl_dlopen+y} 13327 then : 13328 printf %s "(cached) " >&6 13329 else case e in #( 13330 e) ac_check_lib_save_LIBS=$LIBS 13331 LIBS="-ldl $LIBS" 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13333 /* end confdefs.h. */ 13334 13335 /* Override any GCC internal prototype to avoid an error. 13336 Use char because int might match the return type of a GCC 13337 builtin and then its argument prototype would still apply. 13338 The 'extern "C"' is for builds by C++ compilers; 13339 although this is not generally supported in C code supporting it here 13340 has little cost and some practical benefit (sr 110532). */ 13341 #ifdef __cplusplus 13342 extern "C" 13343 #endif 13344 char dlopen (void); 13345 int 13346 main (void) 13347 { 13348 return dlopen (); 13349 ; 13350 return 0; 13351 } 13352 _ACEOF 13353 if ac_fn_c_try_link "$LINENO" 13354 then : 13355 ac_cv_lib_dl_dlopen=yes 13356 else case e in #( 13357 e) ac_cv_lib_dl_dlopen=no ;; 13358 esac 13359 fi 13360 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13361 conftest$ac_exeext conftest.$ac_ext 13362 LIBS=$ac_check_lib_save_LIBS ;; 13363 esac 13364 fi 13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13366 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13367 if test "x$ac_cv_lib_dl_dlopen" = xyes 13368 then : 13369 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13370 else case e in #( 13371 e) 13372 lt_cv_dlopen=dyld 13373 lt_cv_dlopen_libs= 13374 lt_cv_dlopen_self=yes 13375 ;; 13376 esac 13377 fi 13378 13379 ;; 13380 13381 tpf*) 13382 # Don't try to run any link tests for TPF. We know it's impossible 13383 # because TPF is a cross-compiler, and we know how we open DSOs. 13384 lt_cv_dlopen=dlopen 13385 lt_cv_dlopen_libs= 13386 lt_cv_dlopen_self=no 13387 ;; 13388 13389 *) 13390 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13391 if test "x$ac_cv_func_shl_load" = xyes 13392 then : 13393 lt_cv_dlopen=shl_load 13394 else case e in #( 13395 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13396 printf %s "checking for shl_load in -ldld... " >&6; } 13397 if test ${ac_cv_lib_dld_shl_load+y} 13398 then : 13399 printf %s "(cached) " >&6 13400 else case e in #( 13401 e) ac_check_lib_save_LIBS=$LIBS 13402 LIBS="-ldld $LIBS" 13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404 /* end confdefs.h. */ 13405 13406 /* Override any GCC internal prototype to avoid an error. 13407 Use char because int might match the return type of a GCC 13408 builtin and then its argument prototype would still apply. 13409 The 'extern "C"' is for builds by C++ compilers; 13410 although this is not generally supported in C code supporting it here 13411 has little cost and some practical benefit (sr 110532). */ 13412 #ifdef __cplusplus 13413 extern "C" 13414 #endif 13415 char shl_load (void); 13416 int 13417 main (void) 13418 { 13419 return shl_load (); 13420 ; 13421 return 0; 13422 } 13423 _ACEOF 13424 if ac_fn_c_try_link "$LINENO" 13425 then : 13426 ac_cv_lib_dld_shl_load=yes 13427 else case e in #( 13428 e) ac_cv_lib_dld_shl_load=no ;; 13429 esac 13430 fi 13431 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13432 conftest$ac_exeext conftest.$ac_ext 13433 LIBS=$ac_check_lib_save_LIBS ;; 13434 esac 13435 fi 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13437 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13438 if test "x$ac_cv_lib_dld_shl_load" = xyes 13439 then : 13440 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13441 else case e in #( 13442 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13443 if test "x$ac_cv_func_dlopen" = xyes 13444 then : 13445 lt_cv_dlopen=dlopen 13446 else case e in #( 13447 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13448 printf %s "checking for dlopen in -ldl... " >&6; } 13449 if test ${ac_cv_lib_dl_dlopen+y} 13450 then : 13451 printf %s "(cached) " >&6 13452 else case e in #( 13453 e) ac_check_lib_save_LIBS=$LIBS 13454 LIBS="-ldl $LIBS" 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456 /* end confdefs.h. */ 13457 13458 /* Override any GCC internal prototype to avoid an error. 13459 Use char because int might match the return type of a GCC 13460 builtin and then its argument prototype would still apply. 13461 The 'extern "C"' is for builds by C++ compilers; 13462 although this is not generally supported in C code supporting it here 13463 has little cost and some practical benefit (sr 110532). */ 13464 #ifdef __cplusplus 13465 extern "C" 13466 #endif 13467 char dlopen (void); 13468 int 13469 main (void) 13470 { 13471 return dlopen (); 13472 ; 13473 return 0; 13474 } 13475 _ACEOF 13476 if ac_fn_c_try_link "$LINENO" 13477 then : 13478 ac_cv_lib_dl_dlopen=yes 13479 else case e in #( 13480 e) ac_cv_lib_dl_dlopen=no ;; 13481 esac 13482 fi 13483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13484 conftest$ac_exeext conftest.$ac_ext 13485 LIBS=$ac_check_lib_save_LIBS ;; 13486 esac 13487 fi 13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13489 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13490 if test "x$ac_cv_lib_dl_dlopen" = xyes 13491 then : 13492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13493 else case e in #( 13494 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13495 printf %s "checking for dlopen in -lsvld... " >&6; } 13496 if test ${ac_cv_lib_svld_dlopen+y} 13497 then : 13498 printf %s "(cached) " >&6 13499 else case e in #( 13500 e) ac_check_lib_save_LIBS=$LIBS 13501 LIBS="-lsvld $LIBS" 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503 /* end confdefs.h. */ 13504 13505 /* Override any GCC internal prototype to avoid an error. 13506 Use char because int might match the return type of a GCC 13507 builtin and then its argument prototype would still apply. 13508 The 'extern "C"' is for builds by C++ compilers; 13509 although this is not generally supported in C code supporting it here 13510 has little cost and some practical benefit (sr 110532). */ 13511 #ifdef __cplusplus 13512 extern "C" 13513 #endif 13514 char dlopen (void); 13515 int 13516 main (void) 13517 { 13518 return dlopen (); 13519 ; 13520 return 0; 13521 } 13522 _ACEOF 13523 if ac_fn_c_try_link "$LINENO" 13524 then : 13525 ac_cv_lib_svld_dlopen=yes 13526 else case e in #( 13527 e) ac_cv_lib_svld_dlopen=no ;; 13528 esac 13529 fi 13530 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13531 conftest$ac_exeext conftest.$ac_ext 13532 LIBS=$ac_check_lib_save_LIBS ;; 13533 esac 13534 fi 13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13536 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13537 if test "x$ac_cv_lib_svld_dlopen" = xyes 13538 then : 13539 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13540 else case e in #( 13541 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13542 printf %s "checking for dld_link in -ldld... " >&6; } 13543 if test ${ac_cv_lib_dld_dld_link+y} 13544 then : 13545 printf %s "(cached) " >&6 13546 else case e in #( 13547 e) ac_check_lib_save_LIBS=$LIBS 13548 LIBS="-ldld $LIBS" 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550 /* end confdefs.h. */ 13551 13552 /* Override any GCC internal prototype to avoid an error. 13553 Use char because int might match the return type of a GCC 13554 builtin and then its argument prototype would still apply. 13555 The 'extern "C"' is for builds by C++ compilers; 13556 although this is not generally supported in C code supporting it here 13557 has little cost and some practical benefit (sr 110532). */ 13558 #ifdef __cplusplus 13559 extern "C" 13560 #endif 13561 char dld_link (void); 13562 int 13563 main (void) 13564 { 13565 return dld_link (); 13566 ; 13567 return 0; 13568 } 13569 _ACEOF 13570 if ac_fn_c_try_link "$LINENO" 13571 then : 13572 ac_cv_lib_dld_dld_link=yes 13573 else case e in #( 13574 e) ac_cv_lib_dld_dld_link=no ;; 13575 esac 13576 fi 13577 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13578 conftest$ac_exeext conftest.$ac_ext 13579 LIBS=$ac_check_lib_save_LIBS ;; 13580 esac 13581 fi 13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13583 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13584 if test "x$ac_cv_lib_dld_dld_link" = xyes 13585 then : 13586 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13587 fi 13588 13589 ;; 13590 esac 13591 fi 13592 13593 ;; 13594 esac 13595 fi 13596 13597 ;; 13598 esac 13599 fi 13600 13601 ;; 13602 esac 13603 fi 13604 13605 ;; 13606 esac 13607 fi 13608 13609 ;; 13610 esac 13611 13612 if test no = "$lt_cv_dlopen"; then 13613 enable_dlopen=no 13614 else 13615 enable_dlopen=yes 13616 fi 13617 13618 case $lt_cv_dlopen in 13619 dlopen) 13620 save_CPPFLAGS=$CPPFLAGS 13621 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13622 13623 save_LDFLAGS=$LDFLAGS 13624 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13625 13626 save_LIBS=$LIBS 13627 LIBS="$lt_cv_dlopen_libs $LIBS" 13628 13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13630 printf %s "checking whether a program can dlopen itself... " >&6; } 13631 if test ${lt_cv_dlopen_self+y} 13632 then : 13633 printf %s "(cached) " >&6 13634 else case e in #( 13635 e) if test yes = "$cross_compiling"; then : 13636 lt_cv_dlopen_self=cross 13637 else 13638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13639 lt_status=$lt_dlunknown 13640 cat > conftest.$ac_ext <<_LT_EOF 13641 #line $LINENO "configure" 13642 #include "confdefs.h" 13643 13644 #if HAVE_DLFCN_H 13645 #include <dlfcn.h> 13646 #endif 13647 13648 #include <stdio.h> 13649 13650 #ifdef RTLD_GLOBAL 13651 # define LT_DLGLOBAL RTLD_GLOBAL 13652 #else 13653 # ifdef DL_GLOBAL 13654 # define LT_DLGLOBAL DL_GLOBAL 13655 # else 13656 # define LT_DLGLOBAL 0 13657 # endif 13658 #endif 13659 13660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13661 find out it does not work in some platform. */ 13662 #ifndef LT_DLLAZY_OR_NOW 13663 # ifdef RTLD_LAZY 13664 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13665 # else 13666 # ifdef DL_LAZY 13667 # define LT_DLLAZY_OR_NOW DL_LAZY 13668 # else 13669 # ifdef RTLD_NOW 13670 # define LT_DLLAZY_OR_NOW RTLD_NOW 13671 # else 13672 # ifdef DL_NOW 13673 # define LT_DLLAZY_OR_NOW DL_NOW 13674 # else 13675 # define LT_DLLAZY_OR_NOW 0 13676 # endif 13677 # endif 13678 # endif 13679 # endif 13680 #endif 13681 13682 /* When -fvisibility=hidden is used, assume the code has been annotated 13683 correspondingly for the symbols needed. */ 13684 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13685 int fnord (void) __attribute__((visibility("default"))); 13686 #endif 13687 13688 int fnord (void) { return 42; } 13689 int main (void) 13690 { 13691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13692 int status = $lt_dlunknown; 13693 13694 if (self) 13695 { 13696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13697 else 13698 { 13699 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13700 else puts (dlerror ()); 13701 } 13702 /* dlclose (self); */ 13703 } 13704 else 13705 puts (dlerror ()); 13706 13707 return status; 13708 } 13709 _LT_EOF 13710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13711 (eval $ac_link) 2>&5 13712 ac_status=$? 13713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13714 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13715 (./conftest; exit; ) >&5 2>/dev/null 13716 lt_status=$? 13717 case x$lt_status in 13718 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13719 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13720 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13721 esac 13722 else : 13723 # compilation failed 13724 lt_cv_dlopen_self=no 13725 fi 13726 fi 13727 rm -fr conftest* 13728 13729 ;; 13730 esac 13731 fi 13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13733 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13734 13735 if test yes = "$lt_cv_dlopen_self"; then 13736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13738 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13739 if test ${lt_cv_dlopen_self_static+y} 13740 then : 13741 printf %s "(cached) " >&6 13742 else case e in #( 13743 e) if test yes = "$cross_compiling"; then : 13744 lt_cv_dlopen_self_static=cross 13745 else 13746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13747 lt_status=$lt_dlunknown 13748 cat > conftest.$ac_ext <<_LT_EOF 13749 #line $LINENO "configure" 13750 #include "confdefs.h" 13751 13752 #if HAVE_DLFCN_H 13753 #include <dlfcn.h> 13754 #endif 13755 13756 #include <stdio.h> 13757 13758 #ifdef RTLD_GLOBAL 13759 # define LT_DLGLOBAL RTLD_GLOBAL 13760 #else 13761 # ifdef DL_GLOBAL 13762 # define LT_DLGLOBAL DL_GLOBAL 13763 # else 13764 # define LT_DLGLOBAL 0 13765 # endif 13766 #endif 13767 13768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13769 find out it does not work in some platform. */ 13770 #ifndef LT_DLLAZY_OR_NOW 13771 # ifdef RTLD_LAZY 13772 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13773 # else 13774 # ifdef DL_LAZY 13775 # define LT_DLLAZY_OR_NOW DL_LAZY 13776 # else 13777 # ifdef RTLD_NOW 13778 # define LT_DLLAZY_OR_NOW RTLD_NOW 13779 # else 13780 # ifdef DL_NOW 13781 # define LT_DLLAZY_OR_NOW DL_NOW 13782 # else 13783 # define LT_DLLAZY_OR_NOW 0 13784 # endif 13785 # endif 13786 # endif 13787 # endif 13788 #endif 13789 13790 /* When -fvisibility=hidden is used, assume the code has been annotated 13791 correspondingly for the symbols needed. */ 13792 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13793 int fnord (void) __attribute__((visibility("default"))); 13794 #endif 13795 13796 int fnord (void) { return 42; } 13797 int main (void) 13798 { 13799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13800 int status = $lt_dlunknown; 13801 13802 if (self) 13803 { 13804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13805 else 13806 { 13807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13808 else puts (dlerror ()); 13809 } 13810 /* dlclose (self); */ 13811 } 13812 else 13813 puts (dlerror ()); 13814 13815 return status; 13816 } 13817 _LT_EOF 13818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13819 (eval $ac_link) 2>&5 13820 ac_status=$? 13821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13822 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13823 (./conftest; exit; ) >&5 2>/dev/null 13824 lt_status=$? 13825 case x$lt_status in 13826 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13827 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13828 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13829 esac 13830 else : 13831 # compilation failed 13832 lt_cv_dlopen_self_static=no 13833 fi 13834 fi 13835 rm -fr conftest* 13836 13837 ;; 13838 esac 13839 fi 13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13841 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13842 fi 13843 13844 CPPFLAGS=$save_CPPFLAGS 13845 LDFLAGS=$save_LDFLAGS 13846 LIBS=$save_LIBS 13847 ;; 13848 esac 13849 13850 case $lt_cv_dlopen_self in 13851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13852 *) enable_dlopen_self=unknown ;; 13853 esac 13854 13855 case $lt_cv_dlopen_self_static in 13856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13857 *) enable_dlopen_self_static=unknown ;; 13858 esac 13859 fi 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 striplib= 13878 old_striplib= 13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13880 printf %s "checking whether stripping libraries is possible... " >&6; } 13881 if test -z "$STRIP"; then 13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13883 printf "%s\n" "no" >&6; } 13884 else 13885 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13886 old_striplib="$STRIP --strip-debug" 13887 striplib="$STRIP --strip-unneeded" 13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13889 printf "%s\n" "yes" >&6; } 13890 else 13891 case $host_os in 13892 darwin*) 13893 # FIXME - insert some real tests, host_os isn't really good enough 13894 striplib="$STRIP -x" 13895 old_striplib="$STRIP -S" 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13897 printf "%s\n" "yes" >&6; } 13898 ;; 13899 freebsd*) 13900 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13901 old_striplib="$STRIP --strip-debug" 13902 striplib="$STRIP --strip-unneeded" 13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13904 printf "%s\n" "yes" >&6; } 13905 else 13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13907 printf "%s\n" "no" >&6; } 13908 fi 13909 ;; 13910 *) 13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13912 printf "%s\n" "no" >&6; } 13913 ;; 13914 esac 13915 fi 13916 fi 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 # Report what library types will actually be built 13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13931 printf %s "checking if libtool supports shared libraries... " >&6; } 13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13933 printf "%s\n" "$can_build_shared" >&6; } 13934 13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13936 printf %s "checking whether to build shared libraries... " >&6; } 13937 test no = "$can_build_shared" && enable_shared=no 13938 13939 # On AIX, shared libraries and static libraries use the same namespace, and 13940 # are all built from PIC. 13941 case $host_os in 13942 aix3*) 13943 test yes = "$enable_shared" && enable_static=no 13944 if test -n "$RANLIB"; then 13945 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13946 postinstall_cmds='$RANLIB $lib' 13947 fi 13948 ;; 13949 13950 aix[4-9]*) 13951 if test ia64 != "$host_cpu"; then 13952 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13953 yes,aix,yes) ;; # shared object as lib.so file only 13954 yes,svr4,*) ;; # shared object as lib.so archive member only 13955 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13956 esac 13957 fi 13958 ;; 13959 esac 13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13961 printf "%s\n" "$enable_shared" >&6; } 13962 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13964 printf %s "checking whether to build static libraries... " >&6; } 13965 # Make sure either enable_shared or enable_static is yes. 13966 test yes = "$enable_shared" || enable_static=yes 13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13968 printf "%s\n" "$enable_static" >&6; } 13969 13970 13971 13972 13973 fi 13974 ac_ext=c 13975 ac_cpp='$CPP $CPPFLAGS' 13976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13978 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13979 13980 CC=$lt_save_CC 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 ac_config_commands="$ac_config_commands libtool" 13997 13998 13999 14000 14001 # Only expand once: 14002 14003 14004 14005 # Require xorg-macros minimum of 1.12 for DocBook external references 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14018 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14019 if test ${ac_cv_c_undeclared_builtin_options+y} 14020 then : 14021 printf %s "(cached) " >&6 14022 else case e in #( 14023 e) ac_save_CFLAGS=$CFLAGS 14024 ac_cv_c_undeclared_builtin_options='cannot detect' 14025 for ac_arg in '' -fno-builtin; do 14026 CFLAGS="$ac_save_CFLAGS $ac_arg" 14027 # This test program should *not* compile successfully. 14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029 /* end confdefs.h. */ 14030 14031 int 14032 main (void) 14033 { 14034 (void) strchr; 14035 ; 14036 return 0; 14037 } 14038 _ACEOF 14039 if ac_fn_c_try_compile "$LINENO" 14040 then : 14041 14042 else case e in #( 14043 e) # This test program should compile successfully. 14044 # No library function is consistently available on 14045 # freestanding implementations, so test against a dummy 14046 # declaration. Include always-available headers on the 14047 # off chance that they somehow elicit warnings. 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14049 /* end confdefs.h. */ 14050 #include <float.h> 14051 #include <limits.h> 14052 #include <stdarg.h> 14053 #include <stddef.h> 14054 extern void ac_decl (int, char *); 14055 14056 int 14057 main (void) 14058 { 14059 (void) ac_decl (0, (char *) 0); 14060 (void) ac_decl; 14061 14062 ; 14063 return 0; 14064 } 14065 _ACEOF 14066 if ac_fn_c_try_compile "$LINENO" 14067 then : 14068 if test x"$ac_arg" = x 14069 then : 14070 ac_cv_c_undeclared_builtin_options='none needed' 14071 else case e in #( 14072 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14073 esac 14074 fi 14075 break 14076 fi 14077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14078 esac 14079 fi 14080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14081 done 14082 CFLAGS=$ac_save_CFLAGS 14083 ;; 14084 esac 14085 fi 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14087 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14088 case $ac_cv_c_undeclared_builtin_options in #( 14089 'cannot detect') : 14090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14091 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14092 as_fn_error $? "cannot make $CC report undeclared builtins 14093 See 'config.log' for more details" "$LINENO" 5; } ;; #( 14094 'none needed') : 14095 ac_c_undeclared_builtin_options='' ;; #( 14096 *) : 14097 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14098 esac 14099 14100 14101 14102 14103 14104 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14105 if test "x$ac_cv_have_decl___clang__" = xyes 14106 then : 14107 CLANGCC="yes" 14108 else case e in #( 14109 e) CLANGCC="no" ;; 14110 esac 14111 fi 14112 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14113 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14114 then : 14115 INTELCC="yes" 14116 else case e in #( 14117 e) INTELCC="no" ;; 14118 esac 14119 fi 14120 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14121 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14122 then : 14123 SUNCC="yes" 14124 else case e in #( 14125 e) SUNCC="no" ;; 14126 esac 14127 fi 14128 14129 14130 14131 14132 14133 14134 14135 14136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14137 if test -n "$ac_tool_prefix"; then 14138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14141 printf %s "checking for $ac_word... " >&6; } 14142 if test ${ac_cv_path_PKG_CONFIG+y} 14143 then : 14144 printf %s "(cached) " >&6 14145 else case e in #( 14146 e) case $PKG_CONFIG in 14147 [\\/]* | ?:[\\/]*) 14148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14149 ;; 14150 *) 14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14152 for as_dir in $PATH 14153 do 14154 IFS=$as_save_IFS 14155 case $as_dir in #((( 14156 '') as_dir=./ ;; 14157 */) ;; 14158 *) as_dir=$as_dir/ ;; 14159 esac 14160 for ac_exec_ext in '' $ac_executable_extensions; do 14161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14162 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14164 break 2 14165 fi 14166 done 14167 done 14168 IFS=$as_save_IFS 14169 14170 ;; 14171 esac ;; 14172 esac 14173 fi 14174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14175 if test -n "$PKG_CONFIG"; then 14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14177 printf "%s\n" "$PKG_CONFIG" >&6; } 14178 else 14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14180 printf "%s\n" "no" >&6; } 14181 fi 14182 14183 14184 fi 14185 if test -z "$ac_cv_path_PKG_CONFIG"; then 14186 ac_pt_PKG_CONFIG=$PKG_CONFIG 14187 # Extract the first word of "pkg-config", so it can be a program name with args. 14188 set dummy pkg-config; ac_word=$2 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14190 printf %s "checking for $ac_word... " >&6; } 14191 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14192 then : 14193 printf %s "(cached) " >&6 14194 else case e in #( 14195 e) case $ac_pt_PKG_CONFIG in 14196 [\\/]* | ?:[\\/]*) 14197 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14198 ;; 14199 *) 14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14201 for as_dir in $PATH 14202 do 14203 IFS=$as_save_IFS 14204 case $as_dir in #((( 14205 '') as_dir=./ ;; 14206 */) ;; 14207 *) as_dir=$as_dir/ ;; 14208 esac 14209 for ac_exec_ext in '' $ac_executable_extensions; do 14210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14213 break 2 14214 fi 14215 done 14216 done 14217 IFS=$as_save_IFS 14218 14219 ;; 14220 esac ;; 14221 esac 14222 fi 14223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14224 if test -n "$ac_pt_PKG_CONFIG"; then 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14226 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14227 else 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14229 printf "%s\n" "no" >&6; } 14230 fi 14231 14232 if test "x$ac_pt_PKG_CONFIG" = x; then 14233 PKG_CONFIG="" 14234 else 14235 case $cross_compiling:$ac_tool_warned in 14236 yes:) 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14239 ac_tool_warned=yes ;; 14240 esac 14241 PKG_CONFIG=$ac_pt_PKG_CONFIG 14242 fi 14243 else 14244 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14245 fi 14246 14247 fi 14248 if test -n "$PKG_CONFIG"; then 14249 _pkg_min_version=0.9.0 14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14251 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14252 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14254 printf "%s\n" "yes" >&6; } 14255 else 14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14257 printf "%s\n" "no" >&6; } 14258 PKG_CONFIG="" 14259 fi 14260 fi 14261 14262 14263 14264 14265 14266 # Check whether --enable-selective-werror was given. 14267 if test ${enable_selective_werror+y} 14268 then : 14269 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14270 else case e in #( 14271 e) SELECTIVE_WERROR=yes ;; 14272 esac 14273 fi 14274 14275 14276 14277 14278 14279 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14280 if test "x$SUNCC" = "xyes"; then 14281 BASE_CFLAGS="-v" 14282 else 14283 BASE_CFLAGS="" 14284 fi 14285 14286 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 xorg_testset_save_CFLAGS="$CFLAGS" 14301 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14306 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14307 then : 14308 printf %s "(cached) " >&6 14309 else case e in #( 14310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311 /* end confdefs.h. */ 14312 int i; 14313 _ACEOF 14314 if ac_fn_c_try_compile "$LINENO" 14315 then : 14316 xorg_cv_cc_flag_unknown_warning_option=yes 14317 else case e in #( 14318 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14319 esac 14320 fi 14321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14322 esac 14323 fi 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14327 CFLAGS="$xorg_testset_save_CFLAGS" 14328 fi 14329 14330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14338 then : 14339 printf %s "(cached) " >&6 14340 else case e in #( 14341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14342 /* end confdefs.h. */ 14343 int i; 14344 _ACEOF 14345 if ac_fn_c_try_compile "$LINENO" 14346 then : 14347 xorg_cv_cc_flag_unused_command_line_argument=yes 14348 else case e in #( 14349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14350 esac 14351 fi 14352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14353 esac 14354 fi 14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14358 CFLAGS="$xorg_testset_save_CFLAGS" 14359 fi 14360 14361 found="no" 14362 14363 if test $found = "no" ; then 14364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14366 fi 14367 14368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14370 fi 14371 14372 CFLAGS="$CFLAGS -Wall" 14373 14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14375 printf %s "checking if $CC supports -Wall... " >&6; } 14376 cacheid=xorg_cv_cc_flag__Wall 14377 if eval test \${$cacheid+y} 14378 then : 14379 printf %s "(cached) " >&6 14380 else case e in #( 14381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382 /* end confdefs.h. */ 14383 int i; 14384 int 14385 main (void) 14386 { 14387 14388 ; 14389 return 0; 14390 } 14391 _ACEOF 14392 if ac_fn_c_try_link "$LINENO" 14393 then : 14394 eval $cacheid=yes 14395 else case e in #( 14396 e) eval $cacheid=no ;; 14397 esac 14398 fi 14399 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14400 conftest$ac_exeext conftest.$ac_ext ;; 14401 esac 14402 fi 14403 14404 14405 CFLAGS="$xorg_testset_save_CFLAGS" 14406 14407 eval supported=\$$cacheid 14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14409 printf "%s\n" "$supported" >&6; } 14410 if test "$supported" = "yes" ; then 14411 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14412 found="yes" 14413 fi 14414 fi 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 xorg_testset_save_CFLAGS="$CFLAGS" 14431 14432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14436 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14437 then : 14438 printf %s "(cached) " >&6 14439 else case e in #( 14440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14441 /* end confdefs.h. */ 14442 int i; 14443 _ACEOF 14444 if ac_fn_c_try_compile "$LINENO" 14445 then : 14446 xorg_cv_cc_flag_unknown_warning_option=yes 14447 else case e in #( 14448 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14449 esac 14450 fi 14451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14452 esac 14453 fi 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14457 CFLAGS="$xorg_testset_save_CFLAGS" 14458 fi 14459 14460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14463 fi 14464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14468 then : 14469 printf %s "(cached) " >&6 14470 else case e in #( 14471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472 /* end confdefs.h. */ 14473 int i; 14474 _ACEOF 14475 if ac_fn_c_try_compile "$LINENO" 14476 then : 14477 xorg_cv_cc_flag_unused_command_line_argument=yes 14478 else case e in #( 14479 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14480 esac 14481 fi 14482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14483 esac 14484 fi 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14488 CFLAGS="$xorg_testset_save_CFLAGS" 14489 fi 14490 14491 found="no" 14492 14493 if test $found = "no" ; then 14494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14496 fi 14497 14498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14500 fi 14501 14502 CFLAGS="$CFLAGS -Wpointer-arith" 14503 14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14505 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14506 cacheid=xorg_cv_cc_flag__Wpointer_arith 14507 if eval test \${$cacheid+y} 14508 then : 14509 printf %s "(cached) " >&6 14510 else case e in #( 14511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512 /* end confdefs.h. */ 14513 int i; 14514 int 14515 main (void) 14516 { 14517 14518 ; 14519 return 0; 14520 } 14521 _ACEOF 14522 if ac_fn_c_try_link "$LINENO" 14523 then : 14524 eval $cacheid=yes 14525 else case e in #( 14526 e) eval $cacheid=no ;; 14527 esac 14528 fi 14529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14530 conftest$ac_exeext conftest.$ac_ext ;; 14531 esac 14532 fi 14533 14534 14535 CFLAGS="$xorg_testset_save_CFLAGS" 14536 14537 eval supported=\$$cacheid 14538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14539 printf "%s\n" "$supported" >&6; } 14540 if test "$supported" = "yes" ; then 14541 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14542 found="yes" 14543 fi 14544 fi 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 xorg_testset_save_CFLAGS="$CFLAGS" 14561 14562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14566 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14567 then : 14568 printf %s "(cached) " >&6 14569 else case e in #( 14570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571 /* end confdefs.h. */ 14572 int i; 14573 _ACEOF 14574 if ac_fn_c_try_compile "$LINENO" 14575 then : 14576 xorg_cv_cc_flag_unknown_warning_option=yes 14577 else case e in #( 14578 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14579 esac 14580 fi 14581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14582 esac 14583 fi 14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14585 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14587 CFLAGS="$xorg_testset_save_CFLAGS" 14588 fi 14589 14590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14593 fi 14594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14596 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14597 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14598 then : 14599 printf %s "(cached) " >&6 14600 else case e in #( 14601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14602 /* end confdefs.h. */ 14603 int i; 14604 _ACEOF 14605 if ac_fn_c_try_compile "$LINENO" 14606 then : 14607 xorg_cv_cc_flag_unused_command_line_argument=yes 14608 else case e in #( 14609 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14610 esac 14611 fi 14612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14613 esac 14614 fi 14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14618 CFLAGS="$xorg_testset_save_CFLAGS" 14619 fi 14620 14621 found="no" 14622 14623 if test $found = "no" ; then 14624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 fi 14627 14628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14630 fi 14631 14632 CFLAGS="$CFLAGS -Wmissing-declarations" 14633 14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14635 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14636 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14637 if eval test \${$cacheid+y} 14638 then : 14639 printf %s "(cached) " >&6 14640 else case e in #( 14641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14642 /* end confdefs.h. */ 14643 int i; 14644 int 14645 main (void) 14646 { 14647 14648 ; 14649 return 0; 14650 } 14651 _ACEOF 14652 if ac_fn_c_try_link "$LINENO" 14653 then : 14654 eval $cacheid=yes 14655 else case e in #( 14656 e) eval $cacheid=no ;; 14657 esac 14658 fi 14659 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14660 conftest$ac_exeext conftest.$ac_ext ;; 14661 esac 14662 fi 14663 14664 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666 14667 eval supported=\$$cacheid 14668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14669 printf "%s\n" "$supported" >&6; } 14670 if test "$supported" = "yes" ; then 14671 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14672 found="yes" 14673 fi 14674 fi 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 xorg_testset_save_CFLAGS="$CFLAGS" 14691 14692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14696 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14697 then : 14698 printf %s "(cached) " >&6 14699 else case e in #( 14700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701 /* end confdefs.h. */ 14702 int i; 14703 _ACEOF 14704 if ac_fn_c_try_compile "$LINENO" 14705 then : 14706 xorg_cv_cc_flag_unknown_warning_option=yes 14707 else case e in #( 14708 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14709 esac 14710 fi 14711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14712 esac 14713 fi 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718 fi 14719 14720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14723 fi 14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14728 then : 14729 printf %s "(cached) " >&6 14730 else case e in #( 14731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732 /* end confdefs.h. */ 14733 int i; 14734 _ACEOF 14735 if ac_fn_c_try_compile "$LINENO" 14736 then : 14737 xorg_cv_cc_flag_unused_command_line_argument=yes 14738 else case e in #( 14739 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14740 esac 14741 fi 14742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14743 esac 14744 fi 14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14748 CFLAGS="$xorg_testset_save_CFLAGS" 14749 fi 14750 14751 found="no" 14752 14753 if test $found = "no" ; then 14754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14756 fi 14757 14758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14760 fi 14761 14762 CFLAGS="$CFLAGS -Wformat=2" 14763 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14765 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14766 cacheid=xorg_cv_cc_flag__Wformat_2 14767 if eval test \${$cacheid+y} 14768 then : 14769 printf %s "(cached) " >&6 14770 else case e in #( 14771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14772 /* end confdefs.h. */ 14773 int i; 14774 int 14775 main (void) 14776 { 14777 14778 ; 14779 return 0; 14780 } 14781 _ACEOF 14782 if ac_fn_c_try_link "$LINENO" 14783 then : 14784 eval $cacheid=yes 14785 else case e in #( 14786 e) eval $cacheid=no ;; 14787 esac 14788 fi 14789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14790 conftest$ac_exeext conftest.$ac_ext ;; 14791 esac 14792 fi 14793 14794 14795 CFLAGS="$xorg_testset_save_CFLAGS" 14796 14797 eval supported=\$$cacheid 14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14799 printf "%s\n" "$supported" >&6; } 14800 if test "$supported" = "yes" ; then 14801 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14802 found="yes" 14803 fi 14804 fi 14805 14806 if test $found = "no" ; then 14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14809 fi 14810 14811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14813 fi 14814 14815 CFLAGS="$CFLAGS -Wformat" 14816 14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14818 printf %s "checking if $CC supports -Wformat... " >&6; } 14819 cacheid=xorg_cv_cc_flag__Wformat 14820 if eval test \${$cacheid+y} 14821 then : 14822 printf %s "(cached) " >&6 14823 else case e in #( 14824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14825 /* end confdefs.h. */ 14826 int i; 14827 int 14828 main (void) 14829 { 14830 14831 ; 14832 return 0; 14833 } 14834 _ACEOF 14835 if ac_fn_c_try_link "$LINENO" 14836 then : 14837 eval $cacheid=yes 14838 else case e in #( 14839 e) eval $cacheid=no ;; 14840 esac 14841 fi 14842 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14843 conftest$ac_exeext conftest.$ac_ext ;; 14844 esac 14845 fi 14846 14847 14848 CFLAGS="$xorg_testset_save_CFLAGS" 14849 14850 eval supported=\$$cacheid 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14852 printf "%s\n" "$supported" >&6; } 14853 if test "$supported" = "yes" ; then 14854 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14855 found="yes" 14856 fi 14857 fi 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 xorg_testset_save_CFLAGS="$CFLAGS" 14876 14877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14881 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14882 then : 14883 printf %s "(cached) " >&6 14884 else case e in #( 14885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886 /* end confdefs.h. */ 14887 int i; 14888 _ACEOF 14889 if ac_fn_c_try_compile "$LINENO" 14890 then : 14891 xorg_cv_cc_flag_unknown_warning_option=yes 14892 else case e in #( 14893 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14894 esac 14895 fi 14896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14897 esac 14898 fi 14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14902 CFLAGS="$xorg_testset_save_CFLAGS" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 fi 14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14913 then : 14914 printf %s "(cached) " >&6 14915 else case e in #( 14916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917 /* end confdefs.h. */ 14918 int i; 14919 _ACEOF 14920 if ac_fn_c_try_compile "$LINENO" 14921 then : 14922 xorg_cv_cc_flag_unused_command_line_argument=yes 14923 else case e in #( 14924 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14925 esac 14926 fi 14927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14928 esac 14929 fi 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14931 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14933 CFLAGS="$xorg_testset_save_CFLAGS" 14934 fi 14935 14936 found="no" 14937 14938 if test $found = "no" ; then 14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14941 fi 14942 14943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14945 fi 14946 14947 CFLAGS="$CFLAGS -Wstrict-prototypes" 14948 14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14950 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14951 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14952 if eval test \${$cacheid+y} 14953 then : 14954 printf %s "(cached) " >&6 14955 else case e in #( 14956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957 /* end confdefs.h. */ 14958 int i; 14959 int 14960 main (void) 14961 { 14962 14963 ; 14964 return 0; 14965 } 14966 _ACEOF 14967 if ac_fn_c_try_link "$LINENO" 14968 then : 14969 eval $cacheid=yes 14970 else case e in #( 14971 e) eval $cacheid=no ;; 14972 esac 14973 fi 14974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14975 conftest$ac_exeext conftest.$ac_ext ;; 14976 esac 14977 fi 14978 14979 14980 CFLAGS="$xorg_testset_save_CFLAGS" 14981 14982 eval supported=\$$cacheid 14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14984 printf "%s\n" "$supported" >&6; } 14985 if test "$supported" = "yes" ; then 14986 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14987 found="yes" 14988 fi 14989 fi 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 xorg_testset_save_CFLAGS="$CFLAGS" 15006 15007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15011 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15012 then : 15013 printf %s "(cached) " >&6 15014 else case e in #( 15015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15016 /* end confdefs.h. */ 15017 int i; 15018 _ACEOF 15019 if ac_fn_c_try_compile "$LINENO" 15020 then : 15021 xorg_cv_cc_flag_unknown_warning_option=yes 15022 else case e in #( 15023 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15024 esac 15025 fi 15026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15027 esac 15028 fi 15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15032 CFLAGS="$xorg_testset_save_CFLAGS" 15033 fi 15034 15035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15038 fi 15039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15043 then : 15044 printf %s "(cached) " >&6 15045 else case e in #( 15046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15047 /* end confdefs.h. */ 15048 int i; 15049 _ACEOF 15050 if ac_fn_c_try_compile "$LINENO" 15051 then : 15052 xorg_cv_cc_flag_unused_command_line_argument=yes 15053 else case e in #( 15054 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15055 esac 15056 fi 15057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15058 esac 15059 fi 15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15063 CFLAGS="$xorg_testset_save_CFLAGS" 15064 fi 15065 15066 found="no" 15067 15068 if test $found = "no" ; then 15069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15071 fi 15072 15073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15075 fi 15076 15077 CFLAGS="$CFLAGS -Wmissing-prototypes" 15078 15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15080 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15081 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15082 if eval test \${$cacheid+y} 15083 then : 15084 printf %s "(cached) " >&6 15085 else case e in #( 15086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087 /* end confdefs.h. */ 15088 int i; 15089 int 15090 main (void) 15091 { 15092 15093 ; 15094 return 0; 15095 } 15096 _ACEOF 15097 if ac_fn_c_try_link "$LINENO" 15098 then : 15099 eval $cacheid=yes 15100 else case e in #( 15101 e) eval $cacheid=no ;; 15102 esac 15103 fi 15104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15105 conftest$ac_exeext conftest.$ac_ext ;; 15106 esac 15107 fi 15108 15109 15110 CFLAGS="$xorg_testset_save_CFLAGS" 15111 15112 eval supported=\$$cacheid 15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15114 printf "%s\n" "$supported" >&6; } 15115 if test "$supported" = "yes" ; then 15116 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15117 found="yes" 15118 fi 15119 fi 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 xorg_testset_save_CFLAGS="$CFLAGS" 15136 15137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15141 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15142 then : 15143 printf %s "(cached) " >&6 15144 else case e in #( 15145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15146 /* end confdefs.h. */ 15147 int i; 15148 _ACEOF 15149 if ac_fn_c_try_compile "$LINENO" 15150 then : 15151 xorg_cv_cc_flag_unknown_warning_option=yes 15152 else case e in #( 15153 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15154 esac 15155 fi 15156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15157 esac 15158 fi 15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15160 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15162 CFLAGS="$xorg_testset_save_CFLAGS" 15163 fi 15164 15165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15168 fi 15169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15173 then : 15174 printf %s "(cached) " >&6 15175 else case e in #( 15176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15177 /* end confdefs.h. */ 15178 int i; 15179 _ACEOF 15180 if ac_fn_c_try_compile "$LINENO" 15181 then : 15182 xorg_cv_cc_flag_unused_command_line_argument=yes 15183 else case e in #( 15184 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15185 esac 15186 fi 15187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15188 esac 15189 fi 15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15193 CFLAGS="$xorg_testset_save_CFLAGS" 15194 fi 15195 15196 found="no" 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -Wnested-externs" 15208 15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15210 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15211 cacheid=xorg_cv_cc_flag__Wnested_externs 15212 if eval test \${$cacheid+y} 15213 then : 15214 printf %s "(cached) " >&6 15215 else case e in #( 15216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217 /* end confdefs.h. */ 15218 int i; 15219 int 15220 main (void) 15221 { 15222 15223 ; 15224 return 0; 15225 } 15226 _ACEOF 15227 if ac_fn_c_try_link "$LINENO" 15228 then : 15229 eval $cacheid=yes 15230 else case e in #( 15231 e) eval $cacheid=no ;; 15232 esac 15233 fi 15234 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15235 conftest$ac_exeext conftest.$ac_ext ;; 15236 esac 15237 fi 15238 15239 15240 CFLAGS="$xorg_testset_save_CFLAGS" 15241 15242 eval supported=\$$cacheid 15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15244 printf "%s\n" "$supported" >&6; } 15245 if test "$supported" = "yes" ; then 15246 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15247 found="yes" 15248 fi 15249 fi 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 xorg_testset_save_CFLAGS="$CFLAGS" 15266 15267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15272 then : 15273 printf %s "(cached) " >&6 15274 else case e in #( 15275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15276 /* end confdefs.h. */ 15277 int i; 15278 _ACEOF 15279 if ac_fn_c_try_compile "$LINENO" 15280 then : 15281 xorg_cv_cc_flag_unknown_warning_option=yes 15282 else case e in #( 15283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15284 esac 15285 fi 15286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15287 esac 15288 fi 15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15290 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293 fi 15294 15295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15298 fi 15299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15301 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15302 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15303 then : 15304 printf %s "(cached) " >&6 15305 else case e in #( 15306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307 /* end confdefs.h. */ 15308 int i; 15309 _ACEOF 15310 if ac_fn_c_try_compile "$LINENO" 15311 then : 15312 xorg_cv_cc_flag_unused_command_line_argument=yes 15313 else case e in #( 15314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15315 esac 15316 fi 15317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15318 esac 15319 fi 15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15323 CFLAGS="$xorg_testset_save_CFLAGS" 15324 fi 15325 15326 found="no" 15327 15328 if test $found = "no" ; then 15329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15331 fi 15332 15333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15335 fi 15336 15337 CFLAGS="$CFLAGS -Wbad-function-cast" 15338 15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15340 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15341 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15342 if eval test \${$cacheid+y} 15343 then : 15344 printf %s "(cached) " >&6 15345 else case e in #( 15346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347 /* end confdefs.h. */ 15348 int i; 15349 int 15350 main (void) 15351 { 15352 15353 ; 15354 return 0; 15355 } 15356 _ACEOF 15357 if ac_fn_c_try_link "$LINENO" 15358 then : 15359 eval $cacheid=yes 15360 else case e in #( 15361 e) eval $cacheid=no ;; 15362 esac 15363 fi 15364 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15365 conftest$ac_exeext conftest.$ac_ext ;; 15366 esac 15367 fi 15368 15369 15370 CFLAGS="$xorg_testset_save_CFLAGS" 15371 15372 eval supported=\$$cacheid 15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15374 printf "%s\n" "$supported" >&6; } 15375 if test "$supported" = "yes" ; then 15376 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15377 found="yes" 15378 fi 15379 fi 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 xorg_testset_save_CFLAGS="$CFLAGS" 15396 15397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15401 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15402 then : 15403 printf %s "(cached) " >&6 15404 else case e in #( 15405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406 /* end confdefs.h. */ 15407 int i; 15408 _ACEOF 15409 if ac_fn_c_try_compile "$LINENO" 15410 then : 15411 xorg_cv_cc_flag_unknown_warning_option=yes 15412 else case e in #( 15413 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15414 esac 15415 fi 15416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15417 esac 15418 fi 15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423 fi 15424 15425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15428 fi 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15433 then : 15434 printf %s "(cached) " >&6 15435 else case e in #( 15436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15437 /* end confdefs.h. */ 15438 int i; 15439 _ACEOF 15440 if ac_fn_c_try_compile "$LINENO" 15441 then : 15442 xorg_cv_cc_flag_unused_command_line_argument=yes 15443 else case e in #( 15444 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15445 esac 15446 fi 15447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15448 esac 15449 fi 15450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15451 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15453 CFLAGS="$xorg_testset_save_CFLAGS" 15454 fi 15455 15456 found="no" 15457 15458 if test $found = "no" ; then 15459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15461 fi 15462 15463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15465 fi 15466 15467 CFLAGS="$CFLAGS -Wold-style-definition" 15468 15469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15470 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15471 cacheid=xorg_cv_cc_flag__Wold_style_definition 15472 if eval test \${$cacheid+y} 15473 then : 15474 printf %s "(cached) " >&6 15475 else case e in #( 15476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477 /* end confdefs.h. */ 15478 int i; 15479 int 15480 main (void) 15481 { 15482 15483 ; 15484 return 0; 15485 } 15486 _ACEOF 15487 if ac_fn_c_try_link "$LINENO" 15488 then : 15489 eval $cacheid=yes 15490 else case e in #( 15491 e) eval $cacheid=no ;; 15492 esac 15493 fi 15494 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15495 conftest$ac_exeext conftest.$ac_ext ;; 15496 esac 15497 fi 15498 15499 15500 CFLAGS="$xorg_testset_save_CFLAGS" 15501 15502 eval supported=\$$cacheid 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15504 printf "%s\n" "$supported" >&6; } 15505 if test "$supported" = "yes" ; then 15506 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15507 found="yes" 15508 fi 15509 fi 15510 15511 if test $found = "no" ; then 15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15514 fi 15515 15516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15518 fi 15519 15520 CFLAGS="$CFLAGS -fd" 15521 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15523 printf %s "checking if $CC supports -fd... " >&6; } 15524 cacheid=xorg_cv_cc_flag__fd 15525 if eval test \${$cacheid+y} 15526 then : 15527 printf %s "(cached) " >&6 15528 else case e in #( 15529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15530 /* end confdefs.h. */ 15531 int i; 15532 int 15533 main (void) 15534 { 15535 15536 ; 15537 return 0; 15538 } 15539 _ACEOF 15540 if ac_fn_c_try_link "$LINENO" 15541 then : 15542 eval $cacheid=yes 15543 else case e in #( 15544 e) eval $cacheid=no ;; 15545 esac 15546 fi 15547 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15548 conftest$ac_exeext conftest.$ac_ext ;; 15549 esac 15550 fi 15551 15552 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554 15555 eval supported=\$$cacheid 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15557 printf "%s\n" "$supported" >&6; } 15558 if test "$supported" = "yes" ; then 15559 BASE_CFLAGS="$BASE_CFLAGS -fd" 15560 found="yes" 15561 fi 15562 fi 15563 15564 15565 15566 15567 15568 # This chunk adds additional warnings that could catch undesired effects. 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 xorg_testset_save_CFLAGS="$CFLAGS" 15583 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15587 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15588 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15589 then : 15590 printf %s "(cached) " >&6 15591 else case e in #( 15592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593 /* end confdefs.h. */ 15594 int i; 15595 _ACEOF 15596 if ac_fn_c_try_compile "$LINENO" 15597 then : 15598 xorg_cv_cc_flag_unknown_warning_option=yes 15599 else case e in #( 15600 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15601 esac 15602 fi 15603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15604 esac 15605 fi 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610 fi 15611 15612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15615 fi 15616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15620 then : 15621 printf %s "(cached) " >&6 15622 else case e in #( 15623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15624 /* end confdefs.h. */ 15625 int i; 15626 _ACEOF 15627 if ac_fn_c_try_compile "$LINENO" 15628 then : 15629 xorg_cv_cc_flag_unused_command_line_argument=yes 15630 else case e in #( 15631 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15632 esac 15633 fi 15634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15635 esac 15636 fi 15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15640 CFLAGS="$xorg_testset_save_CFLAGS" 15641 fi 15642 15643 found="no" 15644 15645 if test $found = "no" ; then 15646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15648 fi 15649 15650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15652 fi 15653 15654 CFLAGS="$CFLAGS -Wunused" 15655 15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15657 printf %s "checking if $CC supports -Wunused... " >&6; } 15658 cacheid=xorg_cv_cc_flag__Wunused 15659 if eval test \${$cacheid+y} 15660 then : 15661 printf %s "(cached) " >&6 15662 else case e in #( 15663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664 /* end confdefs.h. */ 15665 int i; 15666 int 15667 main (void) 15668 { 15669 15670 ; 15671 return 0; 15672 } 15673 _ACEOF 15674 if ac_fn_c_try_link "$LINENO" 15675 then : 15676 eval $cacheid=yes 15677 else case e in #( 15678 e) eval $cacheid=no ;; 15679 esac 15680 fi 15681 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15682 conftest$ac_exeext conftest.$ac_ext ;; 15683 esac 15684 fi 15685 15686 15687 CFLAGS="$xorg_testset_save_CFLAGS" 15688 15689 eval supported=\$$cacheid 15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15691 printf "%s\n" "$supported" >&6; } 15692 if test "$supported" = "yes" ; then 15693 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15694 found="yes" 15695 fi 15696 fi 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 xorg_testset_save_CFLAGS="$CFLAGS" 15713 15714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15718 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15719 then : 15720 printf %s "(cached) " >&6 15721 else case e in #( 15722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723 /* end confdefs.h. */ 15724 int i; 15725 _ACEOF 15726 if ac_fn_c_try_compile "$LINENO" 15727 then : 15728 xorg_cv_cc_flag_unknown_warning_option=yes 15729 else case e in #( 15730 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15731 esac 15732 fi 15733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15734 esac 15735 fi 15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15739 CFLAGS="$xorg_testset_save_CFLAGS" 15740 fi 15741 15742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15745 fi 15746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15750 then : 15751 printf %s "(cached) " >&6 15752 else case e in #( 15753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15754 /* end confdefs.h. */ 15755 int i; 15756 _ACEOF 15757 if ac_fn_c_try_compile "$LINENO" 15758 then : 15759 xorg_cv_cc_flag_unused_command_line_argument=yes 15760 else case e in #( 15761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15762 esac 15763 fi 15764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15765 esac 15766 fi 15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15770 CFLAGS="$xorg_testset_save_CFLAGS" 15771 fi 15772 15773 found="no" 15774 15775 if test $found = "no" ; then 15776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15778 fi 15779 15780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15782 fi 15783 15784 CFLAGS="$CFLAGS -Wuninitialized" 15785 15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15787 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15788 cacheid=xorg_cv_cc_flag__Wuninitialized 15789 if eval test \${$cacheid+y} 15790 then : 15791 printf %s "(cached) " >&6 15792 else case e in #( 15793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15794 /* end confdefs.h. */ 15795 int i; 15796 int 15797 main (void) 15798 { 15799 15800 ; 15801 return 0; 15802 } 15803 _ACEOF 15804 if ac_fn_c_try_link "$LINENO" 15805 then : 15806 eval $cacheid=yes 15807 else case e in #( 15808 e) eval $cacheid=no ;; 15809 esac 15810 fi 15811 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15812 conftest$ac_exeext conftest.$ac_ext ;; 15813 esac 15814 fi 15815 15816 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818 15819 eval supported=\$$cacheid 15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15821 printf "%s\n" "$supported" >&6; } 15822 if test "$supported" = "yes" ; then 15823 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15824 found="yes" 15825 fi 15826 fi 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 xorg_testset_save_CFLAGS="$CFLAGS" 15843 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15848 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15849 then : 15850 printf %s "(cached) " >&6 15851 else case e in #( 15852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853 /* end confdefs.h. */ 15854 int i; 15855 _ACEOF 15856 if ac_fn_c_try_compile "$LINENO" 15857 then : 15858 xorg_cv_cc_flag_unknown_warning_option=yes 15859 else case e in #( 15860 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15861 esac 15862 fi 15863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15864 esac 15865 fi 15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15869 CFLAGS="$xorg_testset_save_CFLAGS" 15870 fi 15871 15872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 fi 15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15880 then : 15881 printf %s "(cached) " >&6 15882 else case e in #( 15883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15884 /* end confdefs.h. */ 15885 int i; 15886 _ACEOF 15887 if ac_fn_c_try_compile "$LINENO" 15888 then : 15889 xorg_cv_cc_flag_unused_command_line_argument=yes 15890 else case e in #( 15891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15892 esac 15893 fi 15894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15895 esac 15896 fi 15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901 fi 15902 15903 found="no" 15904 15905 if test $found = "no" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 fi 15913 15914 CFLAGS="$CFLAGS -Wshadow" 15915 15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15917 printf %s "checking if $CC supports -Wshadow... " >&6; } 15918 cacheid=xorg_cv_cc_flag__Wshadow 15919 if eval test \${$cacheid+y} 15920 then : 15921 printf %s "(cached) " >&6 15922 else case e in #( 15923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924 /* end confdefs.h. */ 15925 int i; 15926 int 15927 main (void) 15928 { 15929 15930 ; 15931 return 0; 15932 } 15933 _ACEOF 15934 if ac_fn_c_try_link "$LINENO" 15935 then : 15936 eval $cacheid=yes 15937 else case e in #( 15938 e) eval $cacheid=no ;; 15939 esac 15940 fi 15941 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15942 conftest$ac_exeext conftest.$ac_ext ;; 15943 esac 15944 fi 15945 15946 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948 15949 eval supported=\$$cacheid 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15951 printf "%s\n" "$supported" >&6; } 15952 if test "$supported" = "yes" ; then 15953 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15954 found="yes" 15955 fi 15956 fi 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 xorg_testset_save_CFLAGS="$CFLAGS" 15973 15974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15978 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15979 then : 15980 printf %s "(cached) " >&6 15981 else case e in #( 15982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983 /* end confdefs.h. */ 15984 int i; 15985 _ACEOF 15986 if ac_fn_c_try_compile "$LINENO" 15987 then : 15988 xorg_cv_cc_flag_unknown_warning_option=yes 15989 else case e in #( 15990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15991 esac 15992 fi 15993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15994 esac 15995 fi 15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15999 CFLAGS="$xorg_testset_save_CFLAGS" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16005 fi 16006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16010 then : 16011 printf %s "(cached) " >&6 16012 else case e in #( 16013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16014 /* end confdefs.h. */ 16015 int i; 16016 _ACEOF 16017 if ac_fn_c_try_compile "$LINENO" 16018 then : 16019 xorg_cv_cc_flag_unused_command_line_argument=yes 16020 else case e in #( 16021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16022 esac 16023 fi 16024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16025 esac 16026 fi 16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16030 CFLAGS="$xorg_testset_save_CFLAGS" 16031 fi 16032 16033 found="no" 16034 16035 if test $found = "no" ; then 16036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16038 fi 16039 16040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16042 fi 16043 16044 CFLAGS="$CFLAGS -Wmissing-noreturn" 16045 16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16047 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16048 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16049 if eval test \${$cacheid+y} 16050 then : 16051 printf %s "(cached) " >&6 16052 else case e in #( 16053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054 /* end confdefs.h. */ 16055 int i; 16056 int 16057 main (void) 16058 { 16059 16060 ; 16061 return 0; 16062 } 16063 _ACEOF 16064 if ac_fn_c_try_link "$LINENO" 16065 then : 16066 eval $cacheid=yes 16067 else case e in #( 16068 e) eval $cacheid=no ;; 16069 esac 16070 fi 16071 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16072 conftest$ac_exeext conftest.$ac_ext ;; 16073 esac 16074 fi 16075 16076 16077 CFLAGS="$xorg_testset_save_CFLAGS" 16078 16079 eval supported=\$$cacheid 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16081 printf "%s\n" "$supported" >&6; } 16082 if test "$supported" = "yes" ; then 16083 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16084 found="yes" 16085 fi 16086 fi 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 xorg_testset_save_CFLAGS="$CFLAGS" 16103 16104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16108 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16109 then : 16110 printf %s "(cached) " >&6 16111 else case e in #( 16112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16113 /* end confdefs.h. */ 16114 int i; 16115 _ACEOF 16116 if ac_fn_c_try_compile "$LINENO" 16117 then : 16118 xorg_cv_cc_flag_unknown_warning_option=yes 16119 else case e in #( 16120 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16121 esac 16122 fi 16123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16124 esac 16125 fi 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16129 CFLAGS="$xorg_testset_save_CFLAGS" 16130 fi 16131 16132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16135 fi 16136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16140 then : 16141 printf %s "(cached) " >&6 16142 else case e in #( 16143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144 /* end confdefs.h. */ 16145 int i; 16146 _ACEOF 16147 if ac_fn_c_try_compile "$LINENO" 16148 then : 16149 xorg_cv_cc_flag_unused_command_line_argument=yes 16150 else case e in #( 16151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16152 esac 16153 fi 16154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16155 esac 16156 fi 16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16160 CFLAGS="$xorg_testset_save_CFLAGS" 16161 fi 16162 16163 found="no" 16164 16165 if test $found = "no" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 16170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16172 fi 16173 16174 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16175 16176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16177 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16178 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16179 if eval test \${$cacheid+y} 16180 then : 16181 printf %s "(cached) " >&6 16182 else case e in #( 16183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16184 /* end confdefs.h. */ 16185 int i; 16186 int 16187 main (void) 16188 { 16189 16190 ; 16191 return 0; 16192 } 16193 _ACEOF 16194 if ac_fn_c_try_link "$LINENO" 16195 then : 16196 eval $cacheid=yes 16197 else case e in #( 16198 e) eval $cacheid=no ;; 16199 esac 16200 fi 16201 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16202 conftest$ac_exeext conftest.$ac_ext ;; 16203 esac 16204 fi 16205 16206 16207 CFLAGS="$xorg_testset_save_CFLAGS" 16208 16209 eval supported=\$$cacheid 16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16211 printf "%s\n" "$supported" >&6; } 16212 if test "$supported" = "yes" ; then 16213 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16214 found="yes" 16215 fi 16216 fi 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 xorg_testset_save_CFLAGS="$CFLAGS" 16233 16234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16238 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16239 then : 16240 printf %s "(cached) " >&6 16241 else case e in #( 16242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16243 /* end confdefs.h. */ 16244 int i; 16245 _ACEOF 16246 if ac_fn_c_try_compile "$LINENO" 16247 then : 16248 xorg_cv_cc_flag_unknown_warning_option=yes 16249 else case e in #( 16250 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16251 esac 16252 fi 16253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16254 esac 16255 fi 16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16259 CFLAGS="$xorg_testset_save_CFLAGS" 16260 fi 16261 16262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16265 fi 16266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16270 then : 16271 printf %s "(cached) " >&6 16272 else case e in #( 16273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274 /* end confdefs.h. */ 16275 int i; 16276 _ACEOF 16277 if ac_fn_c_try_compile "$LINENO" 16278 then : 16279 xorg_cv_cc_flag_unused_command_line_argument=yes 16280 else case e in #( 16281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16282 esac 16283 fi 16284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16285 esac 16286 fi 16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291 fi 16292 16293 found="no" 16294 16295 if test $found = "no" ; then 16296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16298 fi 16299 16300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16302 fi 16303 16304 CFLAGS="$CFLAGS -Wredundant-decls" 16305 16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16307 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16308 cacheid=xorg_cv_cc_flag__Wredundant_decls 16309 if eval test \${$cacheid+y} 16310 then : 16311 printf %s "(cached) " >&6 16312 else case e in #( 16313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16314 /* end confdefs.h. */ 16315 int i; 16316 int 16317 main (void) 16318 { 16319 16320 ; 16321 return 0; 16322 } 16323 _ACEOF 16324 if ac_fn_c_try_link "$LINENO" 16325 then : 16326 eval $cacheid=yes 16327 else case e in #( 16328 e) eval $cacheid=no ;; 16329 esac 16330 fi 16331 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16332 conftest$ac_exeext conftest.$ac_ext ;; 16333 esac 16334 fi 16335 16336 16337 CFLAGS="$xorg_testset_save_CFLAGS" 16338 16339 eval supported=\$$cacheid 16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16341 printf "%s\n" "$supported" >&6; } 16342 if test "$supported" = "yes" ; then 16343 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16344 found="yes" 16345 fi 16346 fi 16347 16348 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 -Wlogical-op" 16435 16436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16437 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16438 cacheid=xorg_cv_cc_flag__Wlogical_op 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 -Wlogical-op" 16474 found="yes" 16475 fi 16476 fi 16477 16478 16479 16480 # These are currently disabled because they are noisy. They will be enabled 16481 # in the future once the codebase is sufficiently modernized to silence 16482 # them. For now, I don't want them to drown out the other warnings. 16483 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16484 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16485 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16486 16487 # Turn some warnings into errors, so we don't accidentally get successful builds 16488 # when there are problems that should be fixed. 16489 16490 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 xorg_testset_save_CFLAGS="$CFLAGS" 16505 16506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16509 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16510 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16511 then : 16512 printf %s "(cached) " >&6 16513 else case e in #( 16514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515 /* end confdefs.h. */ 16516 int i; 16517 _ACEOF 16518 if ac_fn_c_try_compile "$LINENO" 16519 then : 16520 xorg_cv_cc_flag_unknown_warning_option=yes 16521 else case e in #( 16522 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16523 esac 16524 fi 16525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16526 esac 16527 fi 16528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16531 CFLAGS="$xorg_testset_save_CFLAGS" 16532 fi 16533 16534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16537 fi 16538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16542 then : 16543 printf %s "(cached) " >&6 16544 else case e in #( 16545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16546 /* end confdefs.h. */ 16547 int i; 16548 _ACEOF 16549 if ac_fn_c_try_compile "$LINENO" 16550 then : 16551 xorg_cv_cc_flag_unused_command_line_argument=yes 16552 else case e in #( 16553 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16554 esac 16555 fi 16556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16557 esac 16558 fi 16559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16562 CFLAGS="$xorg_testset_save_CFLAGS" 16563 fi 16564 16565 found="no" 16566 16567 if test $found = "no" ; then 16568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16570 fi 16571 16572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16574 fi 16575 16576 CFLAGS="$CFLAGS -Werror=implicit" 16577 16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16579 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16580 cacheid=xorg_cv_cc_flag__Werror_implicit 16581 if eval test \${$cacheid+y} 16582 then : 16583 printf %s "(cached) " >&6 16584 else case e in #( 16585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586 /* end confdefs.h. */ 16587 int i; 16588 int 16589 main (void) 16590 { 16591 16592 ; 16593 return 0; 16594 } 16595 _ACEOF 16596 if ac_fn_c_try_link "$LINENO" 16597 then : 16598 eval $cacheid=yes 16599 else case e in #( 16600 e) eval $cacheid=no ;; 16601 esac 16602 fi 16603 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16604 conftest$ac_exeext conftest.$ac_ext ;; 16605 esac 16606 fi 16607 16608 16609 CFLAGS="$xorg_testset_save_CFLAGS" 16610 16611 eval supported=\$$cacheid 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16613 printf "%s\n" "$supported" >&6; } 16614 if test "$supported" = "yes" ; then 16615 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16616 found="yes" 16617 fi 16618 fi 16619 16620 if test $found = "no" ; then 16621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16623 fi 16624 16625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16627 fi 16628 16629 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16630 16631 { 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 16632 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16633 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16634 if eval test \${$cacheid+y} 16635 then : 16636 printf %s "(cached) " >&6 16637 else case e in #( 16638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639 /* end confdefs.h. */ 16640 int i; 16641 int 16642 main (void) 16643 { 16644 16645 ; 16646 return 0; 16647 } 16648 _ACEOF 16649 if ac_fn_c_try_link "$LINENO" 16650 then : 16651 eval $cacheid=yes 16652 else case e in #( 16653 e) eval $cacheid=no ;; 16654 esac 16655 fi 16656 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16657 conftest$ac_exeext conftest.$ac_ext ;; 16658 esac 16659 fi 16660 16661 16662 CFLAGS="$xorg_testset_save_CFLAGS" 16663 16664 eval supported=\$$cacheid 16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16666 printf "%s\n" "$supported" >&6; } 16667 if test "$supported" = "yes" ; then 16668 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16669 found="yes" 16670 fi 16671 fi 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 xorg_testset_save_CFLAGS="$CFLAGS" 16688 16689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16693 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16694 then : 16695 printf %s "(cached) " >&6 16696 else case e in #( 16697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16698 /* end confdefs.h. */ 16699 int i; 16700 _ACEOF 16701 if ac_fn_c_try_compile "$LINENO" 16702 then : 16703 xorg_cv_cc_flag_unknown_warning_option=yes 16704 else case e in #( 16705 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16706 esac 16707 fi 16708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16709 esac 16710 fi 16711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16714 CFLAGS="$xorg_testset_save_CFLAGS" 16715 fi 16716 16717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16720 fi 16721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16725 then : 16726 printf %s "(cached) " >&6 16727 else case e in #( 16728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16729 /* end confdefs.h. */ 16730 int i; 16731 _ACEOF 16732 if ac_fn_c_try_compile "$LINENO" 16733 then : 16734 xorg_cv_cc_flag_unused_command_line_argument=yes 16735 else case e in #( 16736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16737 esac 16738 fi 16739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16740 esac 16741 fi 16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16745 CFLAGS="$xorg_testset_save_CFLAGS" 16746 fi 16747 16748 found="no" 16749 16750 if test $found = "no" ; then 16751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 fi 16754 16755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16757 fi 16758 16759 CFLAGS="$CFLAGS -Werror=nonnull" 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16762 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16763 cacheid=xorg_cv_cc_flag__Werror_nonnull 16764 if eval test \${$cacheid+y} 16765 then : 16766 printf %s "(cached) " >&6 16767 else case e in #( 16768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16769 /* end confdefs.h. */ 16770 int i; 16771 int 16772 main (void) 16773 { 16774 16775 ; 16776 return 0; 16777 } 16778 _ACEOF 16779 if ac_fn_c_try_link "$LINENO" 16780 then : 16781 eval $cacheid=yes 16782 else case e in #( 16783 e) eval $cacheid=no ;; 16784 esac 16785 fi 16786 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16787 conftest$ac_exeext conftest.$ac_ext ;; 16788 esac 16789 fi 16790 16791 16792 CFLAGS="$xorg_testset_save_CFLAGS" 16793 16794 eval supported=\$$cacheid 16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16796 printf "%s\n" "$supported" >&6; } 16797 if test "$supported" = "yes" ; then 16798 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16799 found="yes" 16800 fi 16801 fi 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 xorg_testset_save_CFLAGS="$CFLAGS" 16818 16819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16823 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16824 then : 16825 printf %s "(cached) " >&6 16826 else case e in #( 16827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828 /* end confdefs.h. */ 16829 int i; 16830 _ACEOF 16831 if ac_fn_c_try_compile "$LINENO" 16832 then : 16833 xorg_cv_cc_flag_unknown_warning_option=yes 16834 else case e in #( 16835 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16836 esac 16837 fi 16838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16839 esac 16840 fi 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16844 CFLAGS="$xorg_testset_save_CFLAGS" 16845 fi 16846 16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 fi 16851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16855 then : 16856 printf %s "(cached) " >&6 16857 else case e in #( 16858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859 /* end confdefs.h. */ 16860 int i; 16861 _ACEOF 16862 if ac_fn_c_try_compile "$LINENO" 16863 then : 16864 xorg_cv_cc_flag_unused_command_line_argument=yes 16865 else case e in #( 16866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16867 esac 16868 fi 16869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16870 esac 16871 fi 16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16875 CFLAGS="$xorg_testset_save_CFLAGS" 16876 fi 16877 16878 found="no" 16879 16880 if test $found = "no" ; then 16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16883 fi 16884 16885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16887 fi 16888 16889 CFLAGS="$CFLAGS -Werror=init-self" 16890 16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16892 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16893 cacheid=xorg_cv_cc_flag__Werror_init_self 16894 if eval test \${$cacheid+y} 16895 then : 16896 printf %s "(cached) " >&6 16897 else case e in #( 16898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16899 /* end confdefs.h. */ 16900 int i; 16901 int 16902 main (void) 16903 { 16904 16905 ; 16906 return 0; 16907 } 16908 _ACEOF 16909 if ac_fn_c_try_link "$LINENO" 16910 then : 16911 eval $cacheid=yes 16912 else case e in #( 16913 e) eval $cacheid=no ;; 16914 esac 16915 fi 16916 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16917 conftest$ac_exeext conftest.$ac_ext ;; 16918 esac 16919 fi 16920 16921 16922 CFLAGS="$xorg_testset_save_CFLAGS" 16923 16924 eval supported=\$$cacheid 16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16926 printf "%s\n" "$supported" >&6; } 16927 if test "$supported" = "yes" ; then 16928 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16929 found="yes" 16930 fi 16931 fi 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 xorg_testset_save_CFLAGS="$CFLAGS" 16948 16949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16953 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16954 then : 16955 printf %s "(cached) " >&6 16956 else case e in #( 16957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958 /* end confdefs.h. */ 16959 int i; 16960 _ACEOF 16961 if ac_fn_c_try_compile "$LINENO" 16962 then : 16963 xorg_cv_cc_flag_unknown_warning_option=yes 16964 else case e in #( 16965 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16966 esac 16967 fi 16968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16969 esac 16970 fi 16971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16974 CFLAGS="$xorg_testset_save_CFLAGS" 16975 fi 16976 16977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16980 fi 16981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16985 then : 16986 printf %s "(cached) " >&6 16987 else case e in #( 16988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16989 /* end confdefs.h. */ 16990 int i; 16991 _ACEOF 16992 if ac_fn_c_try_compile "$LINENO" 16993 then : 16994 xorg_cv_cc_flag_unused_command_line_argument=yes 16995 else case e in #( 16996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16997 esac 16998 fi 16999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17000 esac 17001 fi 17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17005 CFLAGS="$xorg_testset_save_CFLAGS" 17006 fi 17007 17008 found="no" 17009 17010 if test $found = "no" ; then 17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17013 fi 17014 17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17017 fi 17018 17019 CFLAGS="$CFLAGS -Werror=main" 17020 17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17022 printf %s "checking if $CC supports -Werror=main... " >&6; } 17023 cacheid=xorg_cv_cc_flag__Werror_main 17024 if eval test \${$cacheid+y} 17025 then : 17026 printf %s "(cached) " >&6 17027 else case e in #( 17028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17029 /* end confdefs.h. */ 17030 int i; 17031 int 17032 main (void) 17033 { 17034 17035 ; 17036 return 0; 17037 } 17038 _ACEOF 17039 if ac_fn_c_try_link "$LINENO" 17040 then : 17041 eval $cacheid=yes 17042 else case e in #( 17043 e) eval $cacheid=no ;; 17044 esac 17045 fi 17046 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17047 conftest$ac_exeext conftest.$ac_ext ;; 17048 esac 17049 fi 17050 17051 17052 CFLAGS="$xorg_testset_save_CFLAGS" 17053 17054 eval supported=\$$cacheid 17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17056 printf "%s\n" "$supported" >&6; } 17057 if test "$supported" = "yes" ; then 17058 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17059 found="yes" 17060 fi 17061 fi 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 xorg_testset_save_CFLAGS="$CFLAGS" 17078 17079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17083 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17084 then : 17085 printf %s "(cached) " >&6 17086 else case e in #( 17087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17088 /* end confdefs.h. */ 17089 int i; 17090 _ACEOF 17091 if ac_fn_c_try_compile "$LINENO" 17092 then : 17093 xorg_cv_cc_flag_unknown_warning_option=yes 17094 else case e in #( 17095 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17096 esac 17097 fi 17098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17099 esac 17100 fi 17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17104 CFLAGS="$xorg_testset_save_CFLAGS" 17105 fi 17106 17107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17110 fi 17111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17115 then : 17116 printf %s "(cached) " >&6 17117 else case e in #( 17118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119 /* end confdefs.h. */ 17120 int i; 17121 _ACEOF 17122 if ac_fn_c_try_compile "$LINENO" 17123 then : 17124 xorg_cv_cc_flag_unused_command_line_argument=yes 17125 else case e in #( 17126 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17127 esac 17128 fi 17129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17130 esac 17131 fi 17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17135 CFLAGS="$xorg_testset_save_CFLAGS" 17136 fi 17137 17138 found="no" 17139 17140 if test $found = "no" ; then 17141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17143 fi 17144 17145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 fi 17148 17149 CFLAGS="$CFLAGS -Werror=missing-braces" 17150 17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17152 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17153 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17154 if eval test \${$cacheid+y} 17155 then : 17156 printf %s "(cached) " >&6 17157 else case e in #( 17158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159 /* end confdefs.h. */ 17160 int i; 17161 int 17162 main (void) 17163 { 17164 17165 ; 17166 return 0; 17167 } 17168 _ACEOF 17169 if ac_fn_c_try_link "$LINENO" 17170 then : 17171 eval $cacheid=yes 17172 else case e in #( 17173 e) eval $cacheid=no ;; 17174 esac 17175 fi 17176 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17177 conftest$ac_exeext conftest.$ac_ext ;; 17178 esac 17179 fi 17180 17181 17182 CFLAGS="$xorg_testset_save_CFLAGS" 17183 17184 eval supported=\$$cacheid 17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17186 printf "%s\n" "$supported" >&6; } 17187 if test "$supported" = "yes" ; then 17188 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17189 found="yes" 17190 fi 17191 fi 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 xorg_testset_save_CFLAGS="$CFLAGS" 17208 17209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17213 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17214 then : 17215 printf %s "(cached) " >&6 17216 else case e in #( 17217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17218 /* end confdefs.h. */ 17219 int i; 17220 _ACEOF 17221 if ac_fn_c_try_compile "$LINENO" 17222 then : 17223 xorg_cv_cc_flag_unknown_warning_option=yes 17224 else case e in #( 17225 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17226 esac 17227 fi 17228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17229 esac 17230 fi 17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17234 CFLAGS="$xorg_testset_save_CFLAGS" 17235 fi 17236 17237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17240 fi 17241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17245 then : 17246 printf %s "(cached) " >&6 17247 else case e in #( 17248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249 /* end confdefs.h. */ 17250 int i; 17251 _ACEOF 17252 if ac_fn_c_try_compile "$LINENO" 17253 then : 17254 xorg_cv_cc_flag_unused_command_line_argument=yes 17255 else case e in #( 17256 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17257 esac 17258 fi 17259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17260 esac 17261 fi 17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17265 CFLAGS="$xorg_testset_save_CFLAGS" 17266 fi 17267 17268 found="no" 17269 17270 if test $found = "no" ; then 17271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17273 fi 17274 17275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17277 fi 17278 17279 CFLAGS="$CFLAGS -Werror=sequence-point" 17280 17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17282 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17283 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17284 if eval test \${$cacheid+y} 17285 then : 17286 printf %s "(cached) " >&6 17287 else case e in #( 17288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17289 /* end confdefs.h. */ 17290 int i; 17291 int 17292 main (void) 17293 { 17294 17295 ; 17296 return 0; 17297 } 17298 _ACEOF 17299 if ac_fn_c_try_link "$LINENO" 17300 then : 17301 eval $cacheid=yes 17302 else case e in #( 17303 e) eval $cacheid=no ;; 17304 esac 17305 fi 17306 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17307 conftest$ac_exeext conftest.$ac_ext ;; 17308 esac 17309 fi 17310 17311 17312 CFLAGS="$xorg_testset_save_CFLAGS" 17313 17314 eval supported=\$$cacheid 17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17316 printf "%s\n" "$supported" >&6; } 17317 if test "$supported" = "yes" ; then 17318 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17319 found="yes" 17320 fi 17321 fi 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 xorg_testset_save_CFLAGS="$CFLAGS" 17338 17339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17343 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17344 then : 17345 printf %s "(cached) " >&6 17346 else case e in #( 17347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17348 /* end confdefs.h. */ 17349 int i; 17350 _ACEOF 17351 if ac_fn_c_try_compile "$LINENO" 17352 then : 17353 xorg_cv_cc_flag_unknown_warning_option=yes 17354 else case e in #( 17355 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17356 esac 17357 fi 17358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17359 esac 17360 fi 17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17364 CFLAGS="$xorg_testset_save_CFLAGS" 17365 fi 17366 17367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17370 fi 17371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17375 then : 17376 printf %s "(cached) " >&6 17377 else case e in #( 17378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17379 /* end confdefs.h. */ 17380 int i; 17381 _ACEOF 17382 if ac_fn_c_try_compile "$LINENO" 17383 then : 17384 xorg_cv_cc_flag_unused_command_line_argument=yes 17385 else case e in #( 17386 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17387 esac 17388 fi 17389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17390 esac 17391 fi 17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17393 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17395 CFLAGS="$xorg_testset_save_CFLAGS" 17396 fi 17397 17398 found="no" 17399 17400 if test $found = "no" ; then 17401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17403 fi 17404 17405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17407 fi 17408 17409 CFLAGS="$CFLAGS -Werror=return-type" 17410 17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17412 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17413 cacheid=xorg_cv_cc_flag__Werror_return_type 17414 if eval test \${$cacheid+y} 17415 then : 17416 printf %s "(cached) " >&6 17417 else case e in #( 17418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419 /* end confdefs.h. */ 17420 int i; 17421 int 17422 main (void) 17423 { 17424 17425 ; 17426 return 0; 17427 } 17428 _ACEOF 17429 if ac_fn_c_try_link "$LINENO" 17430 then : 17431 eval $cacheid=yes 17432 else case e in #( 17433 e) eval $cacheid=no ;; 17434 esac 17435 fi 17436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17437 conftest$ac_exeext conftest.$ac_ext ;; 17438 esac 17439 fi 17440 17441 17442 CFLAGS="$xorg_testset_save_CFLAGS" 17443 17444 eval supported=\$$cacheid 17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17446 printf "%s\n" "$supported" >&6; } 17447 if test "$supported" = "yes" ; then 17448 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17449 found="yes" 17450 fi 17451 fi 17452 17453 if test $found = "no" ; then 17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17456 fi 17457 17458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17460 fi 17461 17462 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17463 17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17465 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17466 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17467 if eval test \${$cacheid+y} 17468 then : 17469 printf %s "(cached) " >&6 17470 else case e in #( 17471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17472 /* end confdefs.h. */ 17473 int i; 17474 int 17475 main (void) 17476 { 17477 17478 ; 17479 return 0; 17480 } 17481 _ACEOF 17482 if ac_fn_c_try_link "$LINENO" 17483 then : 17484 eval $cacheid=yes 17485 else case e in #( 17486 e) eval $cacheid=no ;; 17487 esac 17488 fi 17489 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17490 conftest$ac_exeext conftest.$ac_ext ;; 17491 esac 17492 fi 17493 17494 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496 17497 eval supported=\$$cacheid 17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17499 printf "%s\n" "$supported" >&6; } 17500 if test "$supported" = "yes" ; then 17501 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17502 found="yes" 17503 fi 17504 fi 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 xorg_testset_save_CFLAGS="$CFLAGS" 17521 17522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17526 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17527 then : 17528 printf %s "(cached) " >&6 17529 else case e in #( 17530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17531 /* end confdefs.h. */ 17532 int i; 17533 _ACEOF 17534 if ac_fn_c_try_compile "$LINENO" 17535 then : 17536 xorg_cv_cc_flag_unknown_warning_option=yes 17537 else case e in #( 17538 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17539 esac 17540 fi 17541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17542 esac 17543 fi 17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17547 CFLAGS="$xorg_testset_save_CFLAGS" 17548 fi 17549 17550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17553 fi 17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17558 then : 17559 printf %s "(cached) " >&6 17560 else case e in #( 17561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17562 /* end confdefs.h. */ 17563 int i; 17564 _ACEOF 17565 if ac_fn_c_try_compile "$LINENO" 17566 then : 17567 xorg_cv_cc_flag_unused_command_line_argument=yes 17568 else case e in #( 17569 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17570 esac 17571 fi 17572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17573 esac 17574 fi 17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17578 CFLAGS="$xorg_testset_save_CFLAGS" 17579 fi 17580 17581 found="no" 17582 17583 if test $found = "no" ; then 17584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17586 fi 17587 17588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17590 fi 17591 17592 CFLAGS="$CFLAGS -Werror=trigraphs" 17593 17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17595 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17596 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17597 if eval test \${$cacheid+y} 17598 then : 17599 printf %s "(cached) " >&6 17600 else case e in #( 17601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602 /* end confdefs.h. */ 17603 int i; 17604 int 17605 main (void) 17606 { 17607 17608 ; 17609 return 0; 17610 } 17611 _ACEOF 17612 if ac_fn_c_try_link "$LINENO" 17613 then : 17614 eval $cacheid=yes 17615 else case e in #( 17616 e) eval $cacheid=no ;; 17617 esac 17618 fi 17619 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17620 conftest$ac_exeext conftest.$ac_ext ;; 17621 esac 17622 fi 17623 17624 17625 CFLAGS="$xorg_testset_save_CFLAGS" 17626 17627 eval supported=\$$cacheid 17628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17629 printf "%s\n" "$supported" >&6; } 17630 if test "$supported" = "yes" ; then 17631 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17632 found="yes" 17633 fi 17634 fi 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 xorg_testset_save_CFLAGS="$CFLAGS" 17651 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17656 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17657 then : 17658 printf %s "(cached) " >&6 17659 else case e in #( 17660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661 /* end confdefs.h. */ 17662 int i; 17663 _ACEOF 17664 if ac_fn_c_try_compile "$LINENO" 17665 then : 17666 xorg_cv_cc_flag_unknown_warning_option=yes 17667 else case e in #( 17668 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17669 esac 17670 fi 17671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17672 esac 17673 fi 17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17677 CFLAGS="$xorg_testset_save_CFLAGS" 17678 fi 17679 17680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17683 fi 17684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17688 then : 17689 printf %s "(cached) " >&6 17690 else case e in #( 17691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692 /* end confdefs.h. */ 17693 int i; 17694 _ACEOF 17695 if ac_fn_c_try_compile "$LINENO" 17696 then : 17697 xorg_cv_cc_flag_unused_command_line_argument=yes 17698 else case e in #( 17699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17700 esac 17701 fi 17702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17703 esac 17704 fi 17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17708 CFLAGS="$xorg_testset_save_CFLAGS" 17709 fi 17710 17711 found="no" 17712 17713 if test $found = "no" ; then 17714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17716 fi 17717 17718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17720 fi 17721 17722 CFLAGS="$CFLAGS -Werror=array-bounds" 17723 17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17725 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17726 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17727 if eval test \${$cacheid+y} 17728 then : 17729 printf %s "(cached) " >&6 17730 else case e in #( 17731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17732 /* end confdefs.h. */ 17733 int i; 17734 int 17735 main (void) 17736 { 17737 17738 ; 17739 return 0; 17740 } 17741 _ACEOF 17742 if ac_fn_c_try_link "$LINENO" 17743 then : 17744 eval $cacheid=yes 17745 else case e in #( 17746 e) eval $cacheid=no ;; 17747 esac 17748 fi 17749 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17750 conftest$ac_exeext conftest.$ac_ext ;; 17751 esac 17752 fi 17753 17754 17755 CFLAGS="$xorg_testset_save_CFLAGS" 17756 17757 eval supported=\$$cacheid 17758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17759 printf "%s\n" "$supported" >&6; } 17760 if test "$supported" = "yes" ; then 17761 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17762 found="yes" 17763 fi 17764 fi 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 xorg_testset_save_CFLAGS="$CFLAGS" 17781 17782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17786 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17787 then : 17788 printf %s "(cached) " >&6 17789 else case e in #( 17790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17791 /* end confdefs.h. */ 17792 int i; 17793 _ACEOF 17794 if ac_fn_c_try_compile "$LINENO" 17795 then : 17796 xorg_cv_cc_flag_unknown_warning_option=yes 17797 else case e in #( 17798 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17799 esac 17800 fi 17801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17802 esac 17803 fi 17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17805 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17807 CFLAGS="$xorg_testset_save_CFLAGS" 17808 fi 17809 17810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 fi 17814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17816 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17817 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17818 then : 17819 printf %s "(cached) " >&6 17820 else case e in #( 17821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17822 /* end confdefs.h. */ 17823 int i; 17824 _ACEOF 17825 if ac_fn_c_try_compile "$LINENO" 17826 then : 17827 xorg_cv_cc_flag_unused_command_line_argument=yes 17828 else case e in #( 17829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17830 esac 17831 fi 17832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17833 esac 17834 fi 17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17838 CFLAGS="$xorg_testset_save_CFLAGS" 17839 fi 17840 17841 found="no" 17842 17843 if test $found = "no" ; then 17844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17846 fi 17847 17848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17850 fi 17851 17852 CFLAGS="$CFLAGS -Werror=write-strings" 17853 17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17855 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17856 cacheid=xorg_cv_cc_flag__Werror_write_strings 17857 if eval test \${$cacheid+y} 17858 then : 17859 printf %s "(cached) " >&6 17860 else case e in #( 17861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17862 /* end confdefs.h. */ 17863 int i; 17864 int 17865 main (void) 17866 { 17867 17868 ; 17869 return 0; 17870 } 17871 _ACEOF 17872 if ac_fn_c_try_link "$LINENO" 17873 then : 17874 eval $cacheid=yes 17875 else case e in #( 17876 e) eval $cacheid=no ;; 17877 esac 17878 fi 17879 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17880 conftest$ac_exeext conftest.$ac_ext ;; 17881 esac 17882 fi 17883 17884 17885 CFLAGS="$xorg_testset_save_CFLAGS" 17886 17887 eval supported=\$$cacheid 17888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17889 printf "%s\n" "$supported" >&6; } 17890 if test "$supported" = "yes" ; then 17891 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17892 found="yes" 17893 fi 17894 fi 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 xorg_testset_save_CFLAGS="$CFLAGS" 17911 17912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17916 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17917 then : 17918 printf %s "(cached) " >&6 17919 else case e in #( 17920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17921 /* end confdefs.h. */ 17922 int i; 17923 _ACEOF 17924 if ac_fn_c_try_compile "$LINENO" 17925 then : 17926 xorg_cv_cc_flag_unknown_warning_option=yes 17927 else case e in #( 17928 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17929 esac 17930 fi 17931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17932 esac 17933 fi 17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17937 CFLAGS="$xorg_testset_save_CFLAGS" 17938 fi 17939 17940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17948 then : 17949 printf %s "(cached) " >&6 17950 else case e in #( 17951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17952 /* end confdefs.h. */ 17953 int i; 17954 _ACEOF 17955 if ac_fn_c_try_compile "$LINENO" 17956 then : 17957 xorg_cv_cc_flag_unused_command_line_argument=yes 17958 else case e in #( 17959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17960 esac 17961 fi 17962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17963 esac 17964 fi 17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17966 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17968 CFLAGS="$xorg_testset_save_CFLAGS" 17969 fi 17970 17971 found="no" 17972 17973 if test $found = "no" ; then 17974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17976 fi 17977 17978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17980 fi 17981 17982 CFLAGS="$CFLAGS -Werror=address" 17983 17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17985 printf %s "checking if $CC supports -Werror=address... " >&6; } 17986 cacheid=xorg_cv_cc_flag__Werror_address 17987 if eval test \${$cacheid+y} 17988 then : 17989 printf %s "(cached) " >&6 17990 else case e in #( 17991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17992 /* end confdefs.h. */ 17993 int i; 17994 int 17995 main (void) 17996 { 17997 17998 ; 17999 return 0; 18000 } 18001 _ACEOF 18002 if ac_fn_c_try_link "$LINENO" 18003 then : 18004 eval $cacheid=yes 18005 else case e in #( 18006 e) eval $cacheid=no ;; 18007 esac 18008 fi 18009 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18010 conftest$ac_exeext conftest.$ac_ext ;; 18011 esac 18012 fi 18013 18014 18015 CFLAGS="$xorg_testset_save_CFLAGS" 18016 18017 eval supported=\$$cacheid 18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18019 printf "%s\n" "$supported" >&6; } 18020 if test "$supported" = "yes" ; then 18021 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 18022 found="yes" 18023 fi 18024 fi 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 xorg_testset_save_CFLAGS="$CFLAGS" 18041 18042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18045 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18046 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18047 then : 18048 printf %s "(cached) " >&6 18049 else case e in #( 18050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18051 /* end confdefs.h. */ 18052 int i; 18053 _ACEOF 18054 if ac_fn_c_try_compile "$LINENO" 18055 then : 18056 xorg_cv_cc_flag_unknown_warning_option=yes 18057 else case e in #( 18058 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18059 esac 18060 fi 18061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18062 esac 18063 fi 18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18067 CFLAGS="$xorg_testset_save_CFLAGS" 18068 fi 18069 18070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18073 fi 18074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18078 then : 18079 printf %s "(cached) " >&6 18080 else case e in #( 18081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18082 /* end confdefs.h. */ 18083 int i; 18084 _ACEOF 18085 if ac_fn_c_try_compile "$LINENO" 18086 then : 18087 xorg_cv_cc_flag_unused_command_line_argument=yes 18088 else case e in #( 18089 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18090 esac 18091 fi 18092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18093 esac 18094 fi 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18096 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18098 CFLAGS="$xorg_testset_save_CFLAGS" 18099 fi 18100 18101 found="no" 18102 18103 if test $found = "no" ; then 18104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18106 fi 18107 18108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18110 fi 18111 18112 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18113 18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18115 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18116 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18117 if eval test \${$cacheid+y} 18118 then : 18119 printf %s "(cached) " >&6 18120 else case e in #( 18121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18122 /* end confdefs.h. */ 18123 int i; 18124 int 18125 main (void) 18126 { 18127 18128 ; 18129 return 0; 18130 } 18131 _ACEOF 18132 if ac_fn_c_try_link "$LINENO" 18133 then : 18134 eval $cacheid=yes 18135 else case e in #( 18136 e) eval $cacheid=no ;; 18137 esac 18138 fi 18139 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18140 conftest$ac_exeext conftest.$ac_ext ;; 18141 esac 18142 fi 18143 18144 18145 CFLAGS="$xorg_testset_save_CFLAGS" 18146 18147 eval supported=\$$cacheid 18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18149 printf "%s\n" "$supported" >&6; } 18150 if test "$supported" = "yes" ; then 18151 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18152 found="yes" 18153 fi 18154 fi 18155 18156 if test $found = "no" ; then 18157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18159 fi 18160 18161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18163 fi 18164 18165 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18166 18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18168 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18169 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18170 if eval test \${$cacheid+y} 18171 then : 18172 printf %s "(cached) " >&6 18173 else case e in #( 18174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18175 /* end confdefs.h. */ 18176 int i; 18177 int 18178 main (void) 18179 { 18180 18181 ; 18182 return 0; 18183 } 18184 _ACEOF 18185 if ac_fn_c_try_link "$LINENO" 18186 then : 18187 eval $cacheid=yes 18188 else case e in #( 18189 e) eval $cacheid=no ;; 18190 esac 18191 fi 18192 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18193 conftest$ac_exeext conftest.$ac_ext ;; 18194 esac 18195 fi 18196 18197 18198 CFLAGS="$xorg_testset_save_CFLAGS" 18199 18200 eval supported=\$$cacheid 18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18202 printf "%s\n" "$supported" >&6; } 18203 if test "$supported" = "yes" ; then 18204 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18205 found="yes" 18206 fi 18207 fi 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 xorg_testset_save_CFLAGS="$CFLAGS" 18224 18225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18229 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18230 then : 18231 printf %s "(cached) " >&6 18232 else case e in #( 18233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18234 /* end confdefs.h. */ 18235 int i; 18236 _ACEOF 18237 if ac_fn_c_try_compile "$LINENO" 18238 then : 18239 xorg_cv_cc_flag_unknown_warning_option=yes 18240 else case e in #( 18241 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18242 esac 18243 fi 18244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18245 esac 18246 fi 18247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18250 CFLAGS="$xorg_testset_save_CFLAGS" 18251 fi 18252 18253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18256 fi 18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18261 then : 18262 printf %s "(cached) " >&6 18263 else case e in #( 18264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18265 /* end confdefs.h. */ 18266 int i; 18267 _ACEOF 18268 if ac_fn_c_try_compile "$LINENO" 18269 then : 18270 xorg_cv_cc_flag_unused_command_line_argument=yes 18271 else case e in #( 18272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18273 esac 18274 fi 18275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18276 esac 18277 fi 18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18281 CFLAGS="$xorg_testset_save_CFLAGS" 18282 fi 18283 18284 found="no" 18285 18286 if test $found = "no" ; then 18287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18289 fi 18290 18291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18293 fi 18294 18295 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18296 18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18298 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18299 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18300 if eval test \${$cacheid+y} 18301 then : 18302 printf %s "(cached) " >&6 18303 else case e in #( 18304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305 /* end confdefs.h. */ 18306 int i; 18307 int 18308 main (void) 18309 { 18310 18311 ; 18312 return 0; 18313 } 18314 _ACEOF 18315 if ac_fn_c_try_link "$LINENO" 18316 then : 18317 eval $cacheid=yes 18318 else case e in #( 18319 e) eval $cacheid=no ;; 18320 esac 18321 fi 18322 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18323 conftest$ac_exeext conftest.$ac_ext ;; 18324 esac 18325 fi 18326 18327 18328 CFLAGS="$xorg_testset_save_CFLAGS" 18329 18330 eval supported=\$$cacheid 18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18332 printf "%s\n" "$supported" >&6; } 18333 if test "$supported" = "yes" ; then 18334 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18335 found="yes" 18336 fi 18337 fi 18338 18339 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18340 else 18341 { 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 18342 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;} 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 xorg_testset_save_CFLAGS="$CFLAGS" 18357 18358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18362 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18363 then : 18364 printf %s "(cached) " >&6 18365 else case e in #( 18366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367 /* end confdefs.h. */ 18368 int i; 18369 _ACEOF 18370 if ac_fn_c_try_compile "$LINENO" 18371 then : 18372 xorg_cv_cc_flag_unknown_warning_option=yes 18373 else case e in #( 18374 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18375 esac 18376 fi 18377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18378 esac 18379 fi 18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384 fi 18385 18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18394 then : 18395 printf %s "(cached) " >&6 18396 else case e in #( 18397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398 /* end confdefs.h. */ 18399 int i; 18400 _ACEOF 18401 if ac_fn_c_try_compile "$LINENO" 18402 then : 18403 xorg_cv_cc_flag_unused_command_line_argument=yes 18404 else case e in #( 18405 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18406 esac 18407 fi 18408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18409 esac 18410 fi 18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18414 CFLAGS="$xorg_testset_save_CFLAGS" 18415 fi 18416 18417 found="no" 18418 18419 if test $found = "no" ; then 18420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18422 fi 18423 18424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18426 fi 18427 18428 CFLAGS="$CFLAGS -Wimplicit" 18429 18430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18431 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18432 cacheid=xorg_cv_cc_flag__Wimplicit 18433 if eval test \${$cacheid+y} 18434 then : 18435 printf %s "(cached) " >&6 18436 else case e in #( 18437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18438 /* end confdefs.h. */ 18439 int i; 18440 int 18441 main (void) 18442 { 18443 18444 ; 18445 return 0; 18446 } 18447 _ACEOF 18448 if ac_fn_c_try_link "$LINENO" 18449 then : 18450 eval $cacheid=yes 18451 else case e in #( 18452 e) eval $cacheid=no ;; 18453 esac 18454 fi 18455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18456 conftest$ac_exeext conftest.$ac_ext ;; 18457 esac 18458 fi 18459 18460 18461 CFLAGS="$xorg_testset_save_CFLAGS" 18462 18463 eval supported=\$$cacheid 18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18465 printf "%s\n" "$supported" >&6; } 18466 if test "$supported" = "yes" ; then 18467 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18468 found="yes" 18469 fi 18470 fi 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 xorg_testset_save_CFLAGS="$CFLAGS" 18487 18488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18492 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18493 then : 18494 printf %s "(cached) " >&6 18495 else case e in #( 18496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497 /* end confdefs.h. */ 18498 int i; 18499 _ACEOF 18500 if ac_fn_c_try_compile "$LINENO" 18501 then : 18502 xorg_cv_cc_flag_unknown_warning_option=yes 18503 else case e in #( 18504 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18505 esac 18506 fi 18507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18508 esac 18509 fi 18510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18511 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18513 CFLAGS="$xorg_testset_save_CFLAGS" 18514 fi 18515 18516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18519 fi 18520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18522 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18523 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18524 then : 18525 printf %s "(cached) " >&6 18526 else case e in #( 18527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18528 /* end confdefs.h. */ 18529 int i; 18530 _ACEOF 18531 if ac_fn_c_try_compile "$LINENO" 18532 then : 18533 xorg_cv_cc_flag_unused_command_line_argument=yes 18534 else case e in #( 18535 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18536 esac 18537 fi 18538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18539 esac 18540 fi 18541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18544 CFLAGS="$xorg_testset_save_CFLAGS" 18545 fi 18546 18547 found="no" 18548 18549 if test $found = "no" ; then 18550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18552 fi 18553 18554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18556 fi 18557 18558 CFLAGS="$CFLAGS -Wnonnull" 18559 18560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18561 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18562 cacheid=xorg_cv_cc_flag__Wnonnull 18563 if eval test \${$cacheid+y} 18564 then : 18565 printf %s "(cached) " >&6 18566 else case e in #( 18567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18568 /* end confdefs.h. */ 18569 int i; 18570 int 18571 main (void) 18572 { 18573 18574 ; 18575 return 0; 18576 } 18577 _ACEOF 18578 if ac_fn_c_try_link "$LINENO" 18579 then : 18580 eval $cacheid=yes 18581 else case e in #( 18582 e) eval $cacheid=no ;; 18583 esac 18584 fi 18585 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18586 conftest$ac_exeext conftest.$ac_ext ;; 18587 esac 18588 fi 18589 18590 18591 CFLAGS="$xorg_testset_save_CFLAGS" 18592 18593 eval supported=\$$cacheid 18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18595 printf "%s\n" "$supported" >&6; } 18596 if test "$supported" = "yes" ; then 18597 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18598 found="yes" 18599 fi 18600 fi 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 xorg_testset_save_CFLAGS="$CFLAGS" 18617 18618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18622 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18623 then : 18624 printf %s "(cached) " >&6 18625 else case e in #( 18626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627 /* end confdefs.h. */ 18628 int i; 18629 _ACEOF 18630 if ac_fn_c_try_compile "$LINENO" 18631 then : 18632 xorg_cv_cc_flag_unknown_warning_option=yes 18633 else case e in #( 18634 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18635 esac 18636 fi 18637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18638 esac 18639 fi 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18643 CFLAGS="$xorg_testset_save_CFLAGS" 18644 fi 18645 18646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18649 fi 18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18654 then : 18655 printf %s "(cached) " >&6 18656 else case e in #( 18657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658 /* end confdefs.h. */ 18659 int i; 18660 _ACEOF 18661 if ac_fn_c_try_compile "$LINENO" 18662 then : 18663 xorg_cv_cc_flag_unused_command_line_argument=yes 18664 else case e in #( 18665 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18666 esac 18667 fi 18668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18669 esac 18670 fi 18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18674 CFLAGS="$xorg_testset_save_CFLAGS" 18675 fi 18676 18677 found="no" 18678 18679 if test $found = "no" ; then 18680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18682 fi 18683 18684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18686 fi 18687 18688 CFLAGS="$CFLAGS -Winit-self" 18689 18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18691 printf %s "checking if $CC supports -Winit-self... " >&6; } 18692 cacheid=xorg_cv_cc_flag__Winit_self 18693 if eval test \${$cacheid+y} 18694 then : 18695 printf %s "(cached) " >&6 18696 else case e in #( 18697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698 /* end confdefs.h. */ 18699 int i; 18700 int 18701 main (void) 18702 { 18703 18704 ; 18705 return 0; 18706 } 18707 _ACEOF 18708 if ac_fn_c_try_link "$LINENO" 18709 then : 18710 eval $cacheid=yes 18711 else case e in #( 18712 e) eval $cacheid=no ;; 18713 esac 18714 fi 18715 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18716 conftest$ac_exeext conftest.$ac_ext ;; 18717 esac 18718 fi 18719 18720 18721 CFLAGS="$xorg_testset_save_CFLAGS" 18722 18723 eval supported=\$$cacheid 18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18725 printf "%s\n" "$supported" >&6; } 18726 if test "$supported" = "yes" ; then 18727 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18728 found="yes" 18729 fi 18730 fi 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 xorg_testset_save_CFLAGS="$CFLAGS" 18747 18748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18751 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18752 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18753 then : 18754 printf %s "(cached) " >&6 18755 else case e in #( 18756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757 /* end confdefs.h. */ 18758 int i; 18759 _ACEOF 18760 if ac_fn_c_try_compile "$LINENO" 18761 then : 18762 xorg_cv_cc_flag_unknown_warning_option=yes 18763 else case e in #( 18764 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18765 esac 18766 fi 18767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18768 esac 18769 fi 18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18773 CFLAGS="$xorg_testset_save_CFLAGS" 18774 fi 18775 18776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18779 fi 18780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18784 then : 18785 printf %s "(cached) " >&6 18786 else case e in #( 18787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18788 /* end confdefs.h. */ 18789 int i; 18790 _ACEOF 18791 if ac_fn_c_try_compile "$LINENO" 18792 then : 18793 xorg_cv_cc_flag_unused_command_line_argument=yes 18794 else case e in #( 18795 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18796 esac 18797 fi 18798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18799 esac 18800 fi 18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18804 CFLAGS="$xorg_testset_save_CFLAGS" 18805 fi 18806 18807 found="no" 18808 18809 if test $found = "no" ; then 18810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18812 fi 18813 18814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18816 fi 18817 18818 CFLAGS="$CFLAGS -Wmain" 18819 18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18821 printf %s "checking if $CC supports -Wmain... " >&6; } 18822 cacheid=xorg_cv_cc_flag__Wmain 18823 if eval test \${$cacheid+y} 18824 then : 18825 printf %s "(cached) " >&6 18826 else case e in #( 18827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828 /* end confdefs.h. */ 18829 int i; 18830 int 18831 main (void) 18832 { 18833 18834 ; 18835 return 0; 18836 } 18837 _ACEOF 18838 if ac_fn_c_try_link "$LINENO" 18839 then : 18840 eval $cacheid=yes 18841 else case e in #( 18842 e) eval $cacheid=no ;; 18843 esac 18844 fi 18845 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18846 conftest$ac_exeext conftest.$ac_ext ;; 18847 esac 18848 fi 18849 18850 18851 CFLAGS="$xorg_testset_save_CFLAGS" 18852 18853 eval supported=\$$cacheid 18854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18855 printf "%s\n" "$supported" >&6; } 18856 if test "$supported" = "yes" ; then 18857 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18858 found="yes" 18859 fi 18860 fi 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 xorg_testset_save_CFLAGS="$CFLAGS" 18877 18878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18882 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18883 then : 18884 printf %s "(cached) " >&6 18885 else case e in #( 18886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18887 /* end confdefs.h. */ 18888 int i; 18889 _ACEOF 18890 if ac_fn_c_try_compile "$LINENO" 18891 then : 18892 xorg_cv_cc_flag_unknown_warning_option=yes 18893 else case e in #( 18894 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18895 esac 18896 fi 18897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18898 esac 18899 fi 18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18903 CFLAGS="$xorg_testset_save_CFLAGS" 18904 fi 18905 18906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18909 fi 18910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18914 then : 18915 printf %s "(cached) " >&6 18916 else case e in #( 18917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18918 /* end confdefs.h. */ 18919 int i; 18920 _ACEOF 18921 if ac_fn_c_try_compile "$LINENO" 18922 then : 18923 xorg_cv_cc_flag_unused_command_line_argument=yes 18924 else case e in #( 18925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18926 esac 18927 fi 18928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18929 esac 18930 fi 18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18934 CFLAGS="$xorg_testset_save_CFLAGS" 18935 fi 18936 18937 found="no" 18938 18939 if test $found = "no" ; then 18940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18942 fi 18943 18944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18946 fi 18947 18948 CFLAGS="$CFLAGS -Wmissing-braces" 18949 18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18951 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18952 cacheid=xorg_cv_cc_flag__Wmissing_braces 18953 if eval test \${$cacheid+y} 18954 then : 18955 printf %s "(cached) " >&6 18956 else case e in #( 18957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18958 /* end confdefs.h. */ 18959 int i; 18960 int 18961 main (void) 18962 { 18963 18964 ; 18965 return 0; 18966 } 18967 _ACEOF 18968 if ac_fn_c_try_link "$LINENO" 18969 then : 18970 eval $cacheid=yes 18971 else case e in #( 18972 e) eval $cacheid=no ;; 18973 esac 18974 fi 18975 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18976 conftest$ac_exeext conftest.$ac_ext ;; 18977 esac 18978 fi 18979 18980 18981 CFLAGS="$xorg_testset_save_CFLAGS" 18982 18983 eval supported=\$$cacheid 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18985 printf "%s\n" "$supported" >&6; } 18986 if test "$supported" = "yes" ; then 18987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18988 found="yes" 18989 fi 18990 fi 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 xorg_testset_save_CFLAGS="$CFLAGS" 19007 19008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19012 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19013 then : 19014 printf %s "(cached) " >&6 19015 else case e in #( 19016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19017 /* end confdefs.h. */ 19018 int i; 19019 _ACEOF 19020 if ac_fn_c_try_compile "$LINENO" 19021 then : 19022 xorg_cv_cc_flag_unknown_warning_option=yes 19023 else case e in #( 19024 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19025 esac 19026 fi 19027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19028 esac 19029 fi 19030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19033 CFLAGS="$xorg_testset_save_CFLAGS" 19034 fi 19035 19036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19039 fi 19040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19044 then : 19045 printf %s "(cached) " >&6 19046 else case e in #( 19047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048 /* end confdefs.h. */ 19049 int i; 19050 _ACEOF 19051 if ac_fn_c_try_compile "$LINENO" 19052 then : 19053 xorg_cv_cc_flag_unused_command_line_argument=yes 19054 else case e in #( 19055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19056 esac 19057 fi 19058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19059 esac 19060 fi 19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19064 CFLAGS="$xorg_testset_save_CFLAGS" 19065 fi 19066 19067 found="no" 19068 19069 if test $found = "no" ; then 19070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19072 fi 19073 19074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19076 fi 19077 19078 CFLAGS="$CFLAGS -Wsequence-point" 19079 19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 19081 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 19082 cacheid=xorg_cv_cc_flag__Wsequence_point 19083 if eval test \${$cacheid+y} 19084 then : 19085 printf %s "(cached) " >&6 19086 else case e in #( 19087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19088 /* end confdefs.h. */ 19089 int i; 19090 int 19091 main (void) 19092 { 19093 19094 ; 19095 return 0; 19096 } 19097 _ACEOF 19098 if ac_fn_c_try_link "$LINENO" 19099 then : 19100 eval $cacheid=yes 19101 else case e in #( 19102 e) eval $cacheid=no ;; 19103 esac 19104 fi 19105 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19106 conftest$ac_exeext conftest.$ac_ext ;; 19107 esac 19108 fi 19109 19110 19111 CFLAGS="$xorg_testset_save_CFLAGS" 19112 19113 eval supported=\$$cacheid 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19115 printf "%s\n" "$supported" >&6; } 19116 if test "$supported" = "yes" ; then 19117 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19118 found="yes" 19119 fi 19120 fi 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 xorg_testset_save_CFLAGS="$CFLAGS" 19137 19138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19142 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19143 then : 19144 printf %s "(cached) " >&6 19145 else case e in #( 19146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19147 /* end confdefs.h. */ 19148 int i; 19149 _ACEOF 19150 if ac_fn_c_try_compile "$LINENO" 19151 then : 19152 xorg_cv_cc_flag_unknown_warning_option=yes 19153 else case e in #( 19154 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19155 esac 19156 fi 19157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19158 esac 19159 fi 19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19163 CFLAGS="$xorg_testset_save_CFLAGS" 19164 fi 19165 19166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19169 fi 19170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19174 then : 19175 printf %s "(cached) " >&6 19176 else case e in #( 19177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19178 /* end confdefs.h. */ 19179 int i; 19180 _ACEOF 19181 if ac_fn_c_try_compile "$LINENO" 19182 then : 19183 xorg_cv_cc_flag_unused_command_line_argument=yes 19184 else case e in #( 19185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19186 esac 19187 fi 19188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19189 esac 19190 fi 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19192 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19194 CFLAGS="$xorg_testset_save_CFLAGS" 19195 fi 19196 19197 found="no" 19198 19199 if test $found = "no" ; then 19200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19202 fi 19203 19204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19206 fi 19207 19208 CFLAGS="$CFLAGS -Wreturn-type" 19209 19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19211 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19212 cacheid=xorg_cv_cc_flag__Wreturn_type 19213 if eval test \${$cacheid+y} 19214 then : 19215 printf %s "(cached) " >&6 19216 else case e in #( 19217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19218 /* end confdefs.h. */ 19219 int i; 19220 int 19221 main (void) 19222 { 19223 19224 ; 19225 return 0; 19226 } 19227 _ACEOF 19228 if ac_fn_c_try_link "$LINENO" 19229 then : 19230 eval $cacheid=yes 19231 else case e in #( 19232 e) eval $cacheid=no ;; 19233 esac 19234 fi 19235 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19236 conftest$ac_exeext conftest.$ac_ext ;; 19237 esac 19238 fi 19239 19240 19241 CFLAGS="$xorg_testset_save_CFLAGS" 19242 19243 eval supported=\$$cacheid 19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19245 printf "%s\n" "$supported" >&6; } 19246 if test "$supported" = "yes" ; then 19247 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19248 found="yes" 19249 fi 19250 fi 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 xorg_testset_save_CFLAGS="$CFLAGS" 19267 19268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19272 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19273 then : 19274 printf %s "(cached) " >&6 19275 else case e in #( 19276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19277 /* end confdefs.h. */ 19278 int i; 19279 _ACEOF 19280 if ac_fn_c_try_compile "$LINENO" 19281 then : 19282 xorg_cv_cc_flag_unknown_warning_option=yes 19283 else case e in #( 19284 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19285 esac 19286 fi 19287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19288 esac 19289 fi 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19293 CFLAGS="$xorg_testset_save_CFLAGS" 19294 fi 19295 19296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19299 fi 19300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19304 then : 19305 printf %s "(cached) " >&6 19306 else case e in #( 19307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19308 /* end confdefs.h. */ 19309 int i; 19310 _ACEOF 19311 if ac_fn_c_try_compile "$LINENO" 19312 then : 19313 xorg_cv_cc_flag_unused_command_line_argument=yes 19314 else case e in #( 19315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19316 esac 19317 fi 19318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19319 esac 19320 fi 19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19324 CFLAGS="$xorg_testset_save_CFLAGS" 19325 fi 19326 19327 found="no" 19328 19329 if test $found = "no" ; then 19330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19332 fi 19333 19334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19336 fi 19337 19338 CFLAGS="$CFLAGS -Wtrigraphs" 19339 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19341 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19342 cacheid=xorg_cv_cc_flag__Wtrigraphs 19343 if eval test \${$cacheid+y} 19344 then : 19345 printf %s "(cached) " >&6 19346 else case e in #( 19347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19348 /* end confdefs.h. */ 19349 int i; 19350 int 19351 main (void) 19352 { 19353 19354 ; 19355 return 0; 19356 } 19357 _ACEOF 19358 if ac_fn_c_try_link "$LINENO" 19359 then : 19360 eval $cacheid=yes 19361 else case e in #( 19362 e) eval $cacheid=no ;; 19363 esac 19364 fi 19365 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19366 conftest$ac_exeext conftest.$ac_ext ;; 19367 esac 19368 fi 19369 19370 19371 CFLAGS="$xorg_testset_save_CFLAGS" 19372 19373 eval supported=\$$cacheid 19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19375 printf "%s\n" "$supported" >&6; } 19376 if test "$supported" = "yes" ; then 19377 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19378 found="yes" 19379 fi 19380 fi 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 xorg_testset_save_CFLAGS="$CFLAGS" 19397 19398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19402 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19403 then : 19404 printf %s "(cached) " >&6 19405 else case e in #( 19406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19407 /* end confdefs.h. */ 19408 int i; 19409 _ACEOF 19410 if ac_fn_c_try_compile "$LINENO" 19411 then : 19412 xorg_cv_cc_flag_unknown_warning_option=yes 19413 else case e in #( 19414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19415 esac 19416 fi 19417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19418 esac 19419 fi 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19423 CFLAGS="$xorg_testset_save_CFLAGS" 19424 fi 19425 19426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19429 fi 19430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19434 then : 19435 printf %s "(cached) " >&6 19436 else case e in #( 19437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19438 /* end confdefs.h. */ 19439 int i; 19440 _ACEOF 19441 if ac_fn_c_try_compile "$LINENO" 19442 then : 19443 xorg_cv_cc_flag_unused_command_line_argument=yes 19444 else case e in #( 19445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19446 esac 19447 fi 19448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19449 esac 19450 fi 19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19454 CFLAGS="$xorg_testset_save_CFLAGS" 19455 fi 19456 19457 found="no" 19458 19459 if test $found = "no" ; then 19460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19462 fi 19463 19464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19466 fi 19467 19468 CFLAGS="$CFLAGS -Warray-bounds" 19469 19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19471 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19472 cacheid=xorg_cv_cc_flag__Warray_bounds 19473 if eval test \${$cacheid+y} 19474 then : 19475 printf %s "(cached) " >&6 19476 else case e in #( 19477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19478 /* end confdefs.h. */ 19479 int i; 19480 int 19481 main (void) 19482 { 19483 19484 ; 19485 return 0; 19486 } 19487 _ACEOF 19488 if ac_fn_c_try_link "$LINENO" 19489 then : 19490 eval $cacheid=yes 19491 else case e in #( 19492 e) eval $cacheid=no ;; 19493 esac 19494 fi 19495 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19496 conftest$ac_exeext conftest.$ac_ext ;; 19497 esac 19498 fi 19499 19500 19501 CFLAGS="$xorg_testset_save_CFLAGS" 19502 19503 eval supported=\$$cacheid 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19505 printf "%s\n" "$supported" >&6; } 19506 if test "$supported" = "yes" ; then 19507 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19508 found="yes" 19509 fi 19510 fi 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 xorg_testset_save_CFLAGS="$CFLAGS" 19527 19528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19532 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19533 then : 19534 printf %s "(cached) " >&6 19535 else case e in #( 19536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19537 /* end confdefs.h. */ 19538 int i; 19539 _ACEOF 19540 if ac_fn_c_try_compile "$LINENO" 19541 then : 19542 xorg_cv_cc_flag_unknown_warning_option=yes 19543 else case e in #( 19544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19545 esac 19546 fi 19547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19548 esac 19549 fi 19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19553 CFLAGS="$xorg_testset_save_CFLAGS" 19554 fi 19555 19556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19559 fi 19560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19564 then : 19565 printf %s "(cached) " >&6 19566 else case e in #( 19567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19568 /* end confdefs.h. */ 19569 int i; 19570 _ACEOF 19571 if ac_fn_c_try_compile "$LINENO" 19572 then : 19573 xorg_cv_cc_flag_unused_command_line_argument=yes 19574 else case e in #( 19575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19576 esac 19577 fi 19578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19579 esac 19580 fi 19581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19584 CFLAGS="$xorg_testset_save_CFLAGS" 19585 fi 19586 19587 found="no" 19588 19589 if test $found = "no" ; then 19590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19592 fi 19593 19594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19596 fi 19597 19598 CFLAGS="$CFLAGS -Wwrite-strings" 19599 19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19601 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19602 cacheid=xorg_cv_cc_flag__Wwrite_strings 19603 if eval test \${$cacheid+y} 19604 then : 19605 printf %s "(cached) " >&6 19606 else case e in #( 19607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19608 /* end confdefs.h. */ 19609 int i; 19610 int 19611 main (void) 19612 { 19613 19614 ; 19615 return 0; 19616 } 19617 _ACEOF 19618 if ac_fn_c_try_link "$LINENO" 19619 then : 19620 eval $cacheid=yes 19621 else case e in #( 19622 e) eval $cacheid=no ;; 19623 esac 19624 fi 19625 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19626 conftest$ac_exeext conftest.$ac_ext ;; 19627 esac 19628 fi 19629 19630 19631 CFLAGS="$xorg_testset_save_CFLAGS" 19632 19633 eval supported=\$$cacheid 19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19635 printf "%s\n" "$supported" >&6; } 19636 if test "$supported" = "yes" ; then 19637 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19638 found="yes" 19639 fi 19640 fi 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 xorg_testset_save_CFLAGS="$CFLAGS" 19657 19658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19662 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19663 then : 19664 printf %s "(cached) " >&6 19665 else case e in #( 19666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19667 /* end confdefs.h. */ 19668 int i; 19669 _ACEOF 19670 if ac_fn_c_try_compile "$LINENO" 19671 then : 19672 xorg_cv_cc_flag_unknown_warning_option=yes 19673 else case e in #( 19674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19675 esac 19676 fi 19677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19678 esac 19679 fi 19680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19681 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19683 CFLAGS="$xorg_testset_save_CFLAGS" 19684 fi 19685 19686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19689 fi 19690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19692 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19693 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19694 then : 19695 printf %s "(cached) " >&6 19696 else case e in #( 19697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19698 /* end confdefs.h. */ 19699 int i; 19700 _ACEOF 19701 if ac_fn_c_try_compile "$LINENO" 19702 then : 19703 xorg_cv_cc_flag_unused_command_line_argument=yes 19704 else case e in #( 19705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19706 esac 19707 fi 19708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19709 esac 19710 fi 19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19714 CFLAGS="$xorg_testset_save_CFLAGS" 19715 fi 19716 19717 found="no" 19718 19719 if test $found = "no" ; then 19720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19722 fi 19723 19724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19726 fi 19727 19728 CFLAGS="$CFLAGS -Waddress" 19729 19730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19731 printf %s "checking if $CC supports -Waddress... " >&6; } 19732 cacheid=xorg_cv_cc_flag__Waddress 19733 if eval test \${$cacheid+y} 19734 then : 19735 printf %s "(cached) " >&6 19736 else case e in #( 19737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19738 /* end confdefs.h. */ 19739 int i; 19740 int 19741 main (void) 19742 { 19743 19744 ; 19745 return 0; 19746 } 19747 _ACEOF 19748 if ac_fn_c_try_link "$LINENO" 19749 then : 19750 eval $cacheid=yes 19751 else case e in #( 19752 e) eval $cacheid=no ;; 19753 esac 19754 fi 19755 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19756 conftest$ac_exeext conftest.$ac_ext ;; 19757 esac 19758 fi 19759 19760 19761 CFLAGS="$xorg_testset_save_CFLAGS" 19762 19763 eval supported=\$$cacheid 19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19765 printf "%s\n" "$supported" >&6; } 19766 if test "$supported" = "yes" ; then 19767 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19768 found="yes" 19769 fi 19770 fi 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 xorg_testset_save_CFLAGS="$CFLAGS" 19787 19788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19792 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19793 then : 19794 printf %s "(cached) " >&6 19795 else case e in #( 19796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19797 /* end confdefs.h. */ 19798 int i; 19799 _ACEOF 19800 if ac_fn_c_try_compile "$LINENO" 19801 then : 19802 xorg_cv_cc_flag_unknown_warning_option=yes 19803 else case e in #( 19804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19805 esac 19806 fi 19807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19808 esac 19809 fi 19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19813 CFLAGS="$xorg_testset_save_CFLAGS" 19814 fi 19815 19816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19819 fi 19820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19824 then : 19825 printf %s "(cached) " >&6 19826 else case e in #( 19827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19828 /* end confdefs.h. */ 19829 int i; 19830 _ACEOF 19831 if ac_fn_c_try_compile "$LINENO" 19832 then : 19833 xorg_cv_cc_flag_unused_command_line_argument=yes 19834 else case e in #( 19835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19836 esac 19837 fi 19838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19839 esac 19840 fi 19841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19844 CFLAGS="$xorg_testset_save_CFLAGS" 19845 fi 19846 19847 found="no" 19848 19849 if test $found = "no" ; then 19850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19852 fi 19853 19854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19856 fi 19857 19858 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19859 19860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19861 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19862 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19863 if eval test \${$cacheid+y} 19864 then : 19865 printf %s "(cached) " >&6 19866 else case e in #( 19867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19868 /* end confdefs.h. */ 19869 int i; 19870 int 19871 main (void) 19872 { 19873 19874 ; 19875 return 0; 19876 } 19877 _ACEOF 19878 if ac_fn_c_try_link "$LINENO" 19879 then : 19880 eval $cacheid=yes 19881 else case e in #( 19882 e) eval $cacheid=no ;; 19883 esac 19884 fi 19885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19886 conftest$ac_exeext conftest.$ac_ext ;; 19887 esac 19888 fi 19889 19890 19891 CFLAGS="$xorg_testset_save_CFLAGS" 19892 19893 eval supported=\$$cacheid 19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19895 printf "%s\n" "$supported" >&6; } 19896 if test "$supported" = "yes" ; then 19897 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19898 found="yes" 19899 fi 19900 fi 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 xorg_testset_save_CFLAGS="$CFLAGS" 19917 19918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19922 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19923 then : 19924 printf %s "(cached) " >&6 19925 else case e in #( 19926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19927 /* end confdefs.h. */ 19928 int i; 19929 _ACEOF 19930 if ac_fn_c_try_compile "$LINENO" 19931 then : 19932 xorg_cv_cc_flag_unknown_warning_option=yes 19933 else case e in #( 19934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19935 esac 19936 fi 19937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19938 esac 19939 fi 19940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19943 CFLAGS="$xorg_testset_save_CFLAGS" 19944 fi 19945 19946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19949 fi 19950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19954 then : 19955 printf %s "(cached) " >&6 19956 else case e in #( 19957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958 /* end confdefs.h. */ 19959 int i; 19960 _ACEOF 19961 if ac_fn_c_try_compile "$LINENO" 19962 then : 19963 xorg_cv_cc_flag_unused_command_line_argument=yes 19964 else case e in #( 19965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19966 esac 19967 fi 19968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19969 esac 19970 fi 19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19974 CFLAGS="$xorg_testset_save_CFLAGS" 19975 fi 19976 19977 found="no" 19978 19979 if test $found = "no" ; then 19980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19982 fi 19983 19984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19986 fi 19987 19988 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19989 19990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19991 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19992 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19993 if eval test \${$cacheid+y} 19994 then : 19995 printf %s "(cached) " >&6 19996 else case e in #( 19997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19998 /* end confdefs.h. */ 19999 int i; 20000 int 20001 main (void) 20002 { 20003 20004 ; 20005 return 0; 20006 } 20007 _ACEOF 20008 if ac_fn_c_try_link "$LINENO" 20009 then : 20010 eval $cacheid=yes 20011 else case e in #( 20012 e) eval $cacheid=no ;; 20013 esac 20014 fi 20015 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20016 conftest$ac_exeext conftest.$ac_ext ;; 20017 esac 20018 fi 20019 20020 20021 CFLAGS="$xorg_testset_save_CFLAGS" 20022 20023 eval supported=\$$cacheid 20024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20025 printf "%s\n" "$supported" >&6; } 20026 if test "$supported" = "yes" ; then 20027 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 20028 found="yes" 20029 fi 20030 fi 20031 20032 20033 fi 20034 20035 20036 20037 20038 20039 20040 20041 CWARNFLAGS="$BASE_CFLAGS" 20042 if test "x$GCC" = xyes ; then 20043 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 20044 fi 20045 20046 20047 20048 20049 20050 20051 20052 20053 # Check whether --enable-strict-compilation was given. 20054 if test ${enable_strict_compilation+y} 20055 then : 20056 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20057 else case e in #( 20058 e) STRICT_COMPILE=no ;; 20059 esac 20060 fi 20061 20062 20063 20064 20065 20066 20067 STRICT_CFLAGS="" 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 xorg_testset_save_CFLAGS="$CFLAGS" 20082 20083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20087 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20088 then : 20089 printf %s "(cached) " >&6 20090 else case e in #( 20091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20092 /* end confdefs.h. */ 20093 int i; 20094 _ACEOF 20095 if ac_fn_c_try_compile "$LINENO" 20096 then : 20097 xorg_cv_cc_flag_unknown_warning_option=yes 20098 else case e in #( 20099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20100 esac 20101 fi 20102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20103 esac 20104 fi 20105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20108 CFLAGS="$xorg_testset_save_CFLAGS" 20109 fi 20110 20111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20114 fi 20115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20119 then : 20120 printf %s "(cached) " >&6 20121 else case e in #( 20122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20123 /* end confdefs.h. */ 20124 int i; 20125 _ACEOF 20126 if ac_fn_c_try_compile "$LINENO" 20127 then : 20128 xorg_cv_cc_flag_unused_command_line_argument=yes 20129 else case e in #( 20130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20131 esac 20132 fi 20133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20134 esac 20135 fi 20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20139 CFLAGS="$xorg_testset_save_CFLAGS" 20140 fi 20141 20142 found="no" 20143 20144 if test $found = "no" ; then 20145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20147 fi 20148 20149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20151 fi 20152 20153 CFLAGS="$CFLAGS -pedantic" 20154 20155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20156 printf %s "checking if $CC supports -pedantic... " >&6; } 20157 cacheid=xorg_cv_cc_flag__pedantic 20158 if eval test \${$cacheid+y} 20159 then : 20160 printf %s "(cached) " >&6 20161 else case e in #( 20162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20163 /* end confdefs.h. */ 20164 int i; 20165 int 20166 main (void) 20167 { 20168 20169 ; 20170 return 0; 20171 } 20172 _ACEOF 20173 if ac_fn_c_try_link "$LINENO" 20174 then : 20175 eval $cacheid=yes 20176 else case e in #( 20177 e) eval $cacheid=no ;; 20178 esac 20179 fi 20180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20181 conftest$ac_exeext conftest.$ac_ext ;; 20182 esac 20183 fi 20184 20185 20186 CFLAGS="$xorg_testset_save_CFLAGS" 20187 20188 eval supported=\$$cacheid 20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20190 printf "%s\n" "$supported" >&6; } 20191 if test "$supported" = "yes" ; then 20192 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20193 found="yes" 20194 fi 20195 fi 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 xorg_testset_save_CFLAGS="$CFLAGS" 20212 20213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20218 then : 20219 printf %s "(cached) " >&6 20220 else case e in #( 20221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20222 /* end confdefs.h. */ 20223 int i; 20224 _ACEOF 20225 if ac_fn_c_try_compile "$LINENO" 20226 then : 20227 xorg_cv_cc_flag_unknown_warning_option=yes 20228 else case e in #( 20229 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20230 esac 20231 fi 20232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20233 esac 20234 fi 20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20238 CFLAGS="$xorg_testset_save_CFLAGS" 20239 fi 20240 20241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20244 fi 20245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20249 then : 20250 printf %s "(cached) " >&6 20251 else case e in #( 20252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20253 /* end confdefs.h. */ 20254 int i; 20255 _ACEOF 20256 if ac_fn_c_try_compile "$LINENO" 20257 then : 20258 xorg_cv_cc_flag_unused_command_line_argument=yes 20259 else case e in #( 20260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20261 esac 20262 fi 20263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20264 esac 20265 fi 20266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20269 CFLAGS="$xorg_testset_save_CFLAGS" 20270 fi 20271 20272 found="no" 20273 20274 if test $found = "no" ; then 20275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20277 fi 20278 20279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20281 fi 20282 20283 CFLAGS="$CFLAGS -Werror" 20284 20285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20286 printf %s "checking if $CC supports -Werror... " >&6; } 20287 cacheid=xorg_cv_cc_flag__Werror 20288 if eval test \${$cacheid+y} 20289 then : 20290 printf %s "(cached) " >&6 20291 else case e in #( 20292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20293 /* end confdefs.h. */ 20294 int i; 20295 int 20296 main (void) 20297 { 20298 20299 ; 20300 return 0; 20301 } 20302 _ACEOF 20303 if ac_fn_c_try_link "$LINENO" 20304 then : 20305 eval $cacheid=yes 20306 else case e in #( 20307 e) eval $cacheid=no ;; 20308 esac 20309 fi 20310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20311 conftest$ac_exeext conftest.$ac_ext ;; 20312 esac 20313 fi 20314 20315 20316 CFLAGS="$xorg_testset_save_CFLAGS" 20317 20318 eval supported=\$$cacheid 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20320 printf "%s\n" "$supported" >&6; } 20321 if test "$supported" = "yes" ; then 20322 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20323 found="yes" 20324 fi 20325 fi 20326 20327 if test $found = "no" ; then 20328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20330 fi 20331 20332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20334 fi 20335 20336 CFLAGS="$CFLAGS -errwarn" 20337 20338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20339 printf %s "checking if $CC supports -errwarn... " >&6; } 20340 cacheid=xorg_cv_cc_flag__errwarn 20341 if eval test \${$cacheid+y} 20342 then : 20343 printf %s "(cached) " >&6 20344 else case e in #( 20345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20346 /* end confdefs.h. */ 20347 int i; 20348 int 20349 main (void) 20350 { 20351 20352 ; 20353 return 0; 20354 } 20355 _ACEOF 20356 if ac_fn_c_try_link "$LINENO" 20357 then : 20358 eval $cacheid=yes 20359 else case e in #( 20360 e) eval $cacheid=no ;; 20361 esac 20362 fi 20363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20364 conftest$ac_exeext conftest.$ac_ext ;; 20365 esac 20366 fi 20367 20368 20369 CFLAGS="$xorg_testset_save_CFLAGS" 20370 20371 eval supported=\$$cacheid 20372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20373 printf "%s\n" "$supported" >&6; } 20374 if test "$supported" = "yes" ; then 20375 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20376 found="yes" 20377 fi 20378 fi 20379 20380 20381 20382 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20383 # activate it with -Werror, so we add it here explicitly. 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 xorg_testset_save_CFLAGS="$CFLAGS" 20398 20399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20403 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20404 then : 20405 printf %s "(cached) " >&6 20406 else case e in #( 20407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20408 /* end confdefs.h. */ 20409 int i; 20410 _ACEOF 20411 if ac_fn_c_try_compile "$LINENO" 20412 then : 20413 xorg_cv_cc_flag_unknown_warning_option=yes 20414 else case e in #( 20415 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20416 esac 20417 fi 20418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20419 esac 20420 fi 20421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20422 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20424 CFLAGS="$xorg_testset_save_CFLAGS" 20425 fi 20426 20427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20430 fi 20431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20433 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20434 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20435 then : 20436 printf %s "(cached) " >&6 20437 else case e in #( 20438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20439 /* end confdefs.h. */ 20440 int i; 20441 _ACEOF 20442 if ac_fn_c_try_compile "$LINENO" 20443 then : 20444 xorg_cv_cc_flag_unused_command_line_argument=yes 20445 else case e in #( 20446 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20447 esac 20448 fi 20449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20450 esac 20451 fi 20452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20453 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20455 CFLAGS="$xorg_testset_save_CFLAGS" 20456 fi 20457 20458 found="no" 20459 20460 if test $found = "no" ; then 20461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20463 fi 20464 20465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20467 fi 20468 20469 CFLAGS="$CFLAGS -Werror=attributes" 20470 20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20472 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20473 cacheid=xorg_cv_cc_flag__Werror_attributes 20474 if eval test \${$cacheid+y} 20475 then : 20476 printf %s "(cached) " >&6 20477 else case e in #( 20478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20479 /* end confdefs.h. */ 20480 int i; 20481 int 20482 main (void) 20483 { 20484 20485 ; 20486 return 0; 20487 } 20488 _ACEOF 20489 if ac_fn_c_try_link "$LINENO" 20490 then : 20491 eval $cacheid=yes 20492 else case e in #( 20493 e) eval $cacheid=no ;; 20494 esac 20495 fi 20496 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20497 conftest$ac_exeext conftest.$ac_ext ;; 20498 esac 20499 fi 20500 20501 20502 CFLAGS="$xorg_testset_save_CFLAGS" 20503 20504 eval supported=\$$cacheid 20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20506 printf "%s\n" "$supported" >&6; } 20507 if test "$supported" = "yes" ; then 20508 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20509 found="yes" 20510 fi 20511 fi 20512 20513 20514 20515 if test "x$STRICT_COMPILE" = "xyes"; then 20516 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20517 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20518 fi 20519 20520 20521 20522 20523 20524 20525 20526 20527 cat >>confdefs.h <<_ACEOF 20528 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20529 _ACEOF 20530 20531 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20532 if test "x$PVM" = "x"; then 20533 PVM="0" 20534 fi 20535 20536 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20537 20538 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20539 if test "x$PVP" = "x"; then 20540 PVP="0" 20541 fi 20542 20543 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20544 20545 20546 20547 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20548 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20549 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20550 touch \$(top_srcdir)/ChangeLog; \ 20551 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20552 20553 20554 20555 20556 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20557 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20558 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20559 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20560 touch \$(top_srcdir)/INSTALL; \ 20561 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20562 20563 20564 20565 20566 20567 20568 case $host_os in 20569 solaris*) 20570 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20571 # check for a man page file found in later versions that use 20572 # traditional section numbers instead 20573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20574 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20575 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20576 then : 20577 printf %s "(cached) " >&6 20578 else case e in #( 20579 e) test "$cross_compiling" = yes && 20580 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20581 if test -r "/usr/share/man/man7/attributes.7"; then 20582 ac_cv_file__usr_share_man_man7_attributes_7=yes 20583 else 20584 ac_cv_file__usr_share_man_man7_attributes_7=no 20585 fi ;; 20586 esac 20587 fi 20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20589 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20590 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20591 then : 20592 SYSV_MAN_SECTIONS=false 20593 else case e in #( 20594 e) SYSV_MAN_SECTIONS=true ;; 20595 esac 20596 fi 20597 20598 ;; 20599 *) SYSV_MAN_SECTIONS=false ;; 20600 esac 20601 20602 if test x$APP_MAN_SUFFIX = x ; then 20603 APP_MAN_SUFFIX=1 20604 fi 20605 if test x$APP_MAN_DIR = x ; then 20606 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20607 fi 20608 20609 if test x$LIB_MAN_SUFFIX = x ; then 20610 LIB_MAN_SUFFIX=3 20611 fi 20612 if test x$LIB_MAN_DIR = x ; then 20613 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20614 fi 20615 20616 if test x$FILE_MAN_SUFFIX = x ; then 20617 case $SYSV_MAN_SECTIONS in 20618 true) FILE_MAN_SUFFIX=4 ;; 20619 *) FILE_MAN_SUFFIX=5 ;; 20620 esac 20621 fi 20622 if test x$FILE_MAN_DIR = x ; then 20623 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20624 fi 20625 20626 if test x$MISC_MAN_SUFFIX = x ; then 20627 case $SYSV_MAN_SECTIONS in 20628 true) MISC_MAN_SUFFIX=5 ;; 20629 *) MISC_MAN_SUFFIX=7 ;; 20630 esac 20631 fi 20632 if test x$MISC_MAN_DIR = x ; then 20633 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20634 fi 20635 20636 if test x$DRIVER_MAN_SUFFIX = x ; then 20637 case $SYSV_MAN_SECTIONS in 20638 true) DRIVER_MAN_SUFFIX=7 ;; 20639 *) DRIVER_MAN_SUFFIX=4 ;; 20640 esac 20641 fi 20642 if test x$DRIVER_MAN_DIR = x ; then 20643 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20644 fi 20645 20646 if test x$ADMIN_MAN_SUFFIX = x ; then 20647 case $SYSV_MAN_SECTIONS in 20648 true) ADMIN_MAN_SUFFIX=1m ;; 20649 *) ADMIN_MAN_SUFFIX=8 ;; 20650 esac 20651 fi 20652 if test x$ADMIN_MAN_DIR = x ; then 20653 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20654 fi 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 XORG_MAN_PAGE="X Version 11" 20671 20672 MAN_SUBSTS="\ 20673 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20674 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20675 -e 's|__xservername__|Xorg|g' \ 20676 -e 's|__xconfigfile__|xorg.conf|g' \ 20677 -e 's|__projectroot__|\$(prefix)|g' \ 20678 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20679 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20680 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20681 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20682 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20683 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20684 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20685 20686 20687 20688 20689 AM_DEFAULT_VERBOSITY=0 20690 20691 20692 20693 20694 20695 20696 # Check whether --enable-specs was given. 20697 if test ${enable_specs+y} 20698 then : 20699 enableval=$enable_specs; build_specs=$enableval 20700 else case e in #( 20701 e) build_specs=yes ;; 20702 esac 20703 fi 20704 20705 20706 if test x$build_specs = xyes; then 20707 ENABLE_SPECS_TRUE= 20708 ENABLE_SPECS_FALSE='#' 20709 else 20710 ENABLE_SPECS_TRUE='#' 20711 ENABLE_SPECS_FALSE= 20712 fi 20713 20714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20715 printf %s "checking whether to build functional specifications... " >&6; } 20716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20717 printf "%s\n" "$build_specs" >&6; } 20718 20719 20720 20721 20722 20723 # Check whether --with-xmlto was given. 20724 if test ${with_xmlto+y} 20725 then : 20726 withval=$with_xmlto; use_xmlto=$withval 20727 else case e in #( 20728 e) use_xmlto=auto ;; 20729 esac 20730 fi 20731 20732 20733 20734 if test "x$use_xmlto" = x"auto"; then 20735 # Extract the first word of "xmlto", so it can be a program name with args. 20736 set dummy xmlto; ac_word=$2 20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20738 printf %s "checking for $ac_word... " >&6; } 20739 if test ${ac_cv_path_XMLTO+y} 20740 then : 20741 printf %s "(cached) " >&6 20742 else case e in #( 20743 e) case $XMLTO in 20744 [\\/]* | ?:[\\/]*) 20745 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20746 ;; 20747 *) 20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20749 for as_dir in $PATH 20750 do 20751 IFS=$as_save_IFS 20752 case $as_dir in #((( 20753 '') as_dir=./ ;; 20754 */) ;; 20755 *) as_dir=$as_dir/ ;; 20756 esac 20757 for ac_exec_ext in '' $ac_executable_extensions; do 20758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20759 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20761 break 2 20762 fi 20763 done 20764 done 20765 IFS=$as_save_IFS 20766 20767 ;; 20768 esac ;; 20769 esac 20770 fi 20771 XMLTO=$ac_cv_path_XMLTO 20772 if test -n "$XMLTO"; then 20773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20774 printf "%s\n" "$XMLTO" >&6; } 20775 else 20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20777 printf "%s\n" "no" >&6; } 20778 fi 20779 20780 20781 if test "x$XMLTO" = "x"; then 20782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20783 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20784 have_xmlto=no 20785 else 20786 have_xmlto=yes 20787 fi 20788 elif test "x$use_xmlto" = x"yes" ; then 20789 # Extract the first word of "xmlto", so it can be a program name with args. 20790 set dummy xmlto; ac_word=$2 20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20792 printf %s "checking for $ac_word... " >&6; } 20793 if test ${ac_cv_path_XMLTO+y} 20794 then : 20795 printf %s "(cached) " >&6 20796 else case e in #( 20797 e) case $XMLTO in 20798 [\\/]* | ?:[\\/]*) 20799 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20800 ;; 20801 *) 20802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20803 for as_dir in $PATH 20804 do 20805 IFS=$as_save_IFS 20806 case $as_dir in #((( 20807 '') as_dir=./ ;; 20808 */) ;; 20809 *) as_dir=$as_dir/ ;; 20810 esac 20811 for ac_exec_ext in '' $ac_executable_extensions; do 20812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20813 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20815 break 2 20816 fi 20817 done 20818 done 20819 IFS=$as_save_IFS 20820 20821 ;; 20822 esac ;; 20823 esac 20824 fi 20825 XMLTO=$ac_cv_path_XMLTO 20826 if test -n "$XMLTO"; then 20827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20828 printf "%s\n" "$XMLTO" >&6; } 20829 else 20830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20831 printf "%s\n" "no" >&6; } 20832 fi 20833 20834 20835 if test "x$XMLTO" = "x"; then 20836 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20837 fi 20838 have_xmlto=yes 20839 elif test "x$use_xmlto" = x"no" ; then 20840 if test "x$XMLTO" != "x"; then 20841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20842 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20843 fi 20844 have_xmlto=no 20845 else 20846 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20847 fi 20848 20849 # Test for a minimum version of xmlto, if provided. 20850 if test "$have_xmlto" = yes; then 20851 # scrape the xmlto version 20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20853 printf %s "checking the xmlto version... " >&6; } 20854 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20856 printf "%s\n" "$xmlto_version" >&6; } 20857 as_arg_v1=$xmlto_version 20858 as_arg_v2=0.0.22 20859 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20860 case $? in #( 20861 1) : 20862 if test "x$use_xmlto" = xauto; then 20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20864 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20865 have_xmlto=no 20866 else 20867 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20868 fi ;; #( 20869 0) : 20870 ;; #( 20871 2) : 20872 ;; #( 20873 *) : 20874 ;; 20875 esac 20876 fi 20877 20878 # Test for the ability of xmlto to generate a text target 20879 # 20880 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20881 # following test for empty XML docbook files. 20882 # For compatibility reasons use the following empty XML docbook file and if 20883 # it fails try it again with a non-empty XML file. 20884 have_xmlto_text=no 20885 cat > conftest.xml << "EOF" 20886 EOF 20887 if test "$have_xmlto" = yes 20888 then : 20889 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20890 then : 20891 have_xmlto_text=yes 20892 else case e in #( 20893 e) # Try it again with a non-empty XML file. 20894 cat > conftest.xml << "EOF" 20895 <x></x> 20896 EOF 20897 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20898 then : 20899 have_xmlto_text=yes 20900 else case e in #( 20901 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20902 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20903 esac 20904 fi ;; 20905 esac 20906 fi 20907 fi 20908 rm -f conftest.xml 20909 if test $have_xmlto_text = yes; then 20910 HAVE_XMLTO_TEXT_TRUE= 20911 HAVE_XMLTO_TEXT_FALSE='#' 20912 else 20913 HAVE_XMLTO_TEXT_TRUE='#' 20914 HAVE_XMLTO_TEXT_FALSE= 20915 fi 20916 20917 if test "$have_xmlto" = yes; then 20918 HAVE_XMLTO_TRUE= 20919 HAVE_XMLTO_FALSE='#' 20920 else 20921 HAVE_XMLTO_TRUE='#' 20922 HAVE_XMLTO_FALSE= 20923 fi 20924 20925 20926 20927 20928 20929 20930 # Check whether --with-fop was given. 20931 if test ${with_fop+y} 20932 then : 20933 withval=$with_fop; use_fop=$withval 20934 else case e in #( 20935 e) use_fop=auto ;; 20936 esac 20937 fi 20938 20939 20940 20941 if test "x$use_fop" = x"auto"; then 20942 # Extract the first word of "fop", so it can be a program name with args. 20943 set dummy fop; ac_word=$2 20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20945 printf %s "checking for $ac_word... " >&6; } 20946 if test ${ac_cv_path_FOP+y} 20947 then : 20948 printf %s "(cached) " >&6 20949 else case e in #( 20950 e) case $FOP in 20951 [\\/]* | ?:[\\/]*) 20952 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20953 ;; 20954 *) 20955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20956 for as_dir in $PATH 20957 do 20958 IFS=$as_save_IFS 20959 case $as_dir in #((( 20960 '') as_dir=./ ;; 20961 */) ;; 20962 *) as_dir=$as_dir/ ;; 20963 esac 20964 for ac_exec_ext in '' $ac_executable_extensions; do 20965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20966 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20968 break 2 20969 fi 20970 done 20971 done 20972 IFS=$as_save_IFS 20973 20974 ;; 20975 esac ;; 20976 esac 20977 fi 20978 FOP=$ac_cv_path_FOP 20979 if test -n "$FOP"; then 20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20981 printf "%s\n" "$FOP" >&6; } 20982 else 20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20984 printf "%s\n" "no" >&6; } 20985 fi 20986 20987 20988 if test "x$FOP" = "x"; then 20989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20990 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20991 have_fop=no 20992 else 20993 have_fop=yes 20994 fi 20995 elif test "x$use_fop" = x"yes" ; then 20996 # Extract the first word of "fop", so it can be a program name with args. 20997 set dummy fop; ac_word=$2 20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20999 printf %s "checking for $ac_word... " >&6; } 21000 if test ${ac_cv_path_FOP+y} 21001 then : 21002 printf %s "(cached) " >&6 21003 else case e in #( 21004 e) case $FOP in 21005 [\\/]* | ?:[\\/]*) 21006 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 21007 ;; 21008 *) 21009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21010 for as_dir in $PATH 21011 do 21012 IFS=$as_save_IFS 21013 case $as_dir in #((( 21014 '') as_dir=./ ;; 21015 */) ;; 21016 *) as_dir=$as_dir/ ;; 21017 esac 21018 for ac_exec_ext in '' $ac_executable_extensions; do 21019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21020 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 21021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21022 break 2 21023 fi 21024 done 21025 done 21026 IFS=$as_save_IFS 21027 21028 ;; 21029 esac ;; 21030 esac 21031 fi 21032 FOP=$ac_cv_path_FOP 21033 if test -n "$FOP"; then 21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21035 printf "%s\n" "$FOP" >&6; } 21036 else 21037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21038 printf "%s\n" "no" >&6; } 21039 fi 21040 21041 21042 if test "x$FOP" = "x"; then 21043 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 21044 fi 21045 have_fop=yes 21046 elif test "x$use_fop" = x"no" ; then 21047 if test "x$FOP" != "x"; then 21048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 21049 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 21050 fi 21051 have_fop=no 21052 else 21053 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 21054 fi 21055 21056 # Test for a minimum version of fop, if provided. 21057 21058 if test "$have_fop" = yes; then 21059 HAVE_FOP_TRUE= 21060 HAVE_FOP_FALSE='#' 21061 else 21062 HAVE_FOP_TRUE='#' 21063 HAVE_FOP_FALSE= 21064 fi 21065 21066 21067 21068 21069 # Preserves the interface, should it be implemented later 21070 21071 21072 21073 # Check whether --with-xsltproc was given. 21074 if test ${with_xsltproc+y} 21075 then : 21076 withval=$with_xsltproc; use_xsltproc=$withval 21077 else case e in #( 21078 e) use_xsltproc=auto ;; 21079 esac 21080 fi 21081 21082 21083 21084 if test "x$use_xsltproc" = x"auto"; then 21085 # Extract the first word of "xsltproc", so it can be a program name with args. 21086 set dummy xsltproc; ac_word=$2 21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21088 printf %s "checking for $ac_word... " >&6; } 21089 if test ${ac_cv_path_XSLTPROC+y} 21090 then : 21091 printf %s "(cached) " >&6 21092 else case e in #( 21093 e) case $XSLTPROC in 21094 [\\/]* | ?:[\\/]*) 21095 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21096 ;; 21097 *) 21098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21099 for as_dir in $PATH 21100 do 21101 IFS=$as_save_IFS 21102 case $as_dir in #((( 21103 '') as_dir=./ ;; 21104 */) ;; 21105 *) as_dir=$as_dir/ ;; 21106 esac 21107 for ac_exec_ext in '' $ac_executable_extensions; do 21108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21109 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21111 break 2 21112 fi 21113 done 21114 done 21115 IFS=$as_save_IFS 21116 21117 ;; 21118 esac ;; 21119 esac 21120 fi 21121 XSLTPROC=$ac_cv_path_XSLTPROC 21122 if test -n "$XSLTPROC"; then 21123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21124 printf "%s\n" "$XSLTPROC" >&6; } 21125 else 21126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21127 printf "%s\n" "no" >&6; } 21128 fi 21129 21130 21131 if test "x$XSLTPROC" = "x"; then 21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 21133 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 21134 have_xsltproc=no 21135 else 21136 have_xsltproc=yes 21137 fi 21138 elif test "x$use_xsltproc" = x"yes" ; then 21139 # Extract the first word of "xsltproc", so it can be a program name with args. 21140 set dummy xsltproc; ac_word=$2 21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21142 printf %s "checking for $ac_word... " >&6; } 21143 if test ${ac_cv_path_XSLTPROC+y} 21144 then : 21145 printf %s "(cached) " >&6 21146 else case e in #( 21147 e) case $XSLTPROC in 21148 [\\/]* | ?:[\\/]*) 21149 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21150 ;; 21151 *) 21152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21153 for as_dir in $PATH 21154 do 21155 IFS=$as_save_IFS 21156 case $as_dir in #((( 21157 '') as_dir=./ ;; 21158 */) ;; 21159 *) as_dir=$as_dir/ ;; 21160 esac 21161 for ac_exec_ext in '' $ac_executable_extensions; do 21162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21163 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21165 break 2 21166 fi 21167 done 21168 done 21169 IFS=$as_save_IFS 21170 21171 ;; 21172 esac ;; 21173 esac 21174 fi 21175 XSLTPROC=$ac_cv_path_XSLTPROC 21176 if test -n "$XSLTPROC"; then 21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21178 printf "%s\n" "$XSLTPROC" >&6; } 21179 else 21180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21181 printf "%s\n" "no" >&6; } 21182 fi 21183 21184 21185 if test "x$XSLTPROC" = "x"; then 21186 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21187 fi 21188 have_xsltproc=yes 21189 elif test "x$use_xsltproc" = x"no" ; then 21190 if test "x$XSLTPROC" != "x"; then 21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21192 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21193 fi 21194 have_xsltproc=no 21195 else 21196 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21197 fi 21198 21199 if test "$have_xsltproc" = yes; then 21200 HAVE_XSLTPROC_TRUE= 21201 HAVE_XSLTPROC_FALSE='#' 21202 else 21203 HAVE_XSLTPROC_TRUE='#' 21204 HAVE_XSLTPROC_FALSE= 21205 fi 21206 21207 21208 21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21210 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21211 XORG_SGML_PATH= 21212 if test -n "$PKG_CONFIG" && \ 21213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21214 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21215 ac_status=$? 21216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21217 test $ac_status = 0; }; then 21218 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21219 else 21220 : 21221 21222 fi 21223 21224 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21225 # the path and the name of the doc stylesheet 21226 if test "x$XORG_SGML_PATH" != "x" ; then 21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21228 printf "%s\n" "$XORG_SGML_PATH" >&6; } 21229 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21230 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21231 else 21232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21233 printf "%s\n" "no" >&6; } 21234 fi 21235 21236 21237 21238 21239 if test "x$XSL_STYLESHEET" != "x"; then 21240 HAVE_STYLESHEETS_TRUE= 21241 HAVE_STYLESHEETS_FALSE='#' 21242 else 21243 HAVE_STYLESHEETS_TRUE='#' 21244 HAVE_STYLESHEETS_FALSE= 21245 fi 21246 21247 21248 21249 # Check whether --enable-malloc0returnsnull was given. 21250 if test ${enable_malloc0returnsnull+y} 21251 then : 21252 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21253 else case e in #( 21254 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 21255 esac 21256 fi 21257 21258 21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 21260 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 21261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21262 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21263 21264 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21265 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21266 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21267 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21268 else 21269 MALLOC_ZERO_CFLAGS="" 21270 XMALLOC_ZERO_CFLAGS="" 21271 XTMALLOC_ZERO_CFLAGS="" 21272 fi 21273 21274 21275 21276 21277 21278 21279 # Determine .so library version per platform 21280 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 21281 if test "x$XEXT_SOREV" = "x" ; then 21282 case $host_os in 21283 openbsd*) XEXT_SOREV=8:0 ;; 21284 solaris*) XEXT_SOREV=0 ;; 21285 *) XEXT_SOREV=6:4:0 ;; 21286 esac 21287 fi 21288 21289 21290 # Obtain compiler/linker options for dependencies 21291 21292 pkg_failed=no 21293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 21294 printf %s "checking for XEXT... " >&6; } 21295 21296 if test -n "$XEXT_CFLAGS"; then 21297 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 21298 elif test -n "$PKG_CONFIG"; then 21299 if test -n "$PKG_CONFIG" && \ 21300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 21301 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 21302 ac_status=$? 21303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21304 test $ac_status = 0; }; then 21305 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 21306 test "x$?" != "x0" && pkg_failed=yes 21307 else 21308 pkg_failed=yes 21309 fi 21310 else 21311 pkg_failed=untried 21312 fi 21313 if test -n "$XEXT_LIBS"; then 21314 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 21315 elif test -n "$PKG_CONFIG"; then 21316 if test -n "$PKG_CONFIG" && \ 21317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 21318 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 21319 ac_status=$? 21320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21321 test $ac_status = 0; }; then 21322 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 21323 test "x$?" != "x0" && pkg_failed=yes 21324 else 21325 pkg_failed=yes 21326 fi 21327 else 21328 pkg_failed=untried 21329 fi 21330 21331 21332 21333 if test $pkg_failed = yes; then 21334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21335 printf "%s\n" "no" >&6; } 21336 21337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21338 _pkg_short_errors_supported=yes 21339 else 21340 _pkg_short_errors_supported=no 21341 fi 21342 if test $_pkg_short_errors_supported = yes; then 21343 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 21344 else 21345 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 21346 fi 21347 # Put the nasty error message in config.log where it belongs 21348 echo "$XEXT_PKG_ERRORS" >&5 21349 21350 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99) were not met: 21351 21352 $XEXT_PKG_ERRORS 21353 21354 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21355 installed software in a non-standard prefix. 21356 21357 Alternatively, you may set the environment variables XEXT_CFLAGS 21358 and XEXT_LIBS to avoid the need to call pkg-config. 21359 See the pkg-config man page for more details." "$LINENO" 5 21360 elif test $pkg_failed = untried; then 21361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21362 printf "%s\n" "no" >&6; } 21363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21364 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21365 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21366 is in your PATH or set the PKG_CONFIG environment variable to the full 21367 path to pkg-config. 21368 21369 Alternatively, you may set the environment variables XEXT_CFLAGS 21370 and XEXT_LIBS to avoid the need to call pkg-config. 21371 See the pkg-config man page for more details. 21372 21373 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21374 See 'config.log' for more details" "$LINENO" 5; } 21375 else 21376 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 21377 XEXT_LIBS=$pkg_cv_XEXT_LIBS 21378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21379 printf "%s\n" "yes" >&6; } 21380 21381 fi 21382 21383 21384 21385 21386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5 21387 printf %s "checking for __builtin_popcountl... " >&6; } 21388 if test ${ax_cv_have___builtin_popcountl+y} 21389 then : 21390 printf %s "(cached) " >&6 21391 else case e in #( 21392 e) 21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21394 /* end confdefs.h. */ 21395 21396 int 21397 main (void) 21398 { 21399 21400 __builtin_popcountl(0) 21401 21402 ; 21403 return 0; 21404 } 21405 _ACEOF 21406 if ac_fn_c_try_link "$LINENO" 21407 then : 21408 ax_cv_have___builtin_popcountl=yes 21409 else case e in #( 21410 e) ax_cv_have___builtin_popcountl=no ;; 21411 esac 21412 fi 21413 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21414 conftest$ac_exeext conftest.$ac_ext 21415 ;; 21416 esac 21417 fi 21418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5 21419 printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; } 21420 21421 if test yes = $ax_cv_have___builtin_popcountl 21422 then : 21423 21424 printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h 21425 21426 fi 21427 21428 21429 21430 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 21431 if test "x$ac_cv_func_reallocarray" = xyes 21432 then : 21433 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 21434 21435 else case e in #( 21436 e) case " $LIBOBJS " in 21437 *" reallocarray.$ac_objext "* ) ;; 21438 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 21439 ;; 21440 esac 21441 ;; 21442 esac 21443 fi 21444 21445 21446 # Allow checking code with lint, sparse, etc. 21447 21448 21449 21450 21451 21452 # Check whether --with-lint was given. 21453 if test ${with_lint+y} 21454 then : 21455 withval=$with_lint; use_lint=$withval 21456 else case e in #( 21457 e) use_lint=no ;; 21458 esac 21459 fi 21460 21461 21462 # Obtain platform specific info like program name and options 21463 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 21464 case $host_os in 21465 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21466 lint_name=splint 21467 lint_options="-badflag" 21468 ;; 21469 *freebsd* | *netbsd*) 21470 lint_name=lint 21471 lint_options="-u -b" 21472 ;; 21473 *solaris*) 21474 lint_name=lint 21475 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21476 ;; 21477 esac 21478 21479 # Test for the presence of the program (either guessed by the code or spelled out by the user) 21480 if test "x$use_lint" = x"yes" ; then 21481 # Extract the first word of "$lint_name", so it can be a program name with args. 21482 set dummy $lint_name; ac_word=$2 21483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21484 printf %s "checking for $ac_word... " >&6; } 21485 if test ${ac_cv_path_LINT+y} 21486 then : 21487 printf %s "(cached) " >&6 21488 else case e in #( 21489 e) case $LINT in 21490 [\\/]* | ?:[\\/]*) 21491 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21492 ;; 21493 *) 21494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21495 for as_dir in $PATH 21496 do 21497 IFS=$as_save_IFS 21498 case $as_dir in #((( 21499 '') as_dir=./ ;; 21500 */) ;; 21501 *) as_dir=$as_dir/ ;; 21502 esac 21503 for ac_exec_ext in '' $ac_executable_extensions; do 21504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21505 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 21506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21507 break 2 21508 fi 21509 done 21510 done 21511 IFS=$as_save_IFS 21512 21513 ;; 21514 esac ;; 21515 esac 21516 fi 21517 LINT=$ac_cv_path_LINT 21518 if test -n "$LINT"; then 21519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21520 printf "%s\n" "$LINT" >&6; } 21521 else 21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21523 printf "%s\n" "no" >&6; } 21524 fi 21525 21526 21527 if test "x$LINT" = "x"; then 21528 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21529 fi 21530 elif test "x$use_lint" = x"no" ; then 21531 if test "x$LINT" != "x"; then 21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21533 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21534 fi 21535 else 21536 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21537 fi 21538 21539 # User supplied flags override default flags 21540 if test "x$LINT_FLAGS" != "x"; then 21541 lint_options=$LINT_FLAGS 21542 fi 21543 21544 LINT_FLAGS=$lint_options 21545 21546 if test "x$LINT" != x; then 21547 LINT_TRUE= 21548 LINT_FALSE='#' 21549 else 21550 LINT_TRUE='#' 21551 LINT_FALSE= 21552 fi 21553 21554 21555 21556 21557 21558 # Check whether --enable-lint-library was given. 21559 if test ${enable_lint_library+y} 21560 then : 21561 enableval=$enable_lint_library; make_lint_lib=$enableval 21562 else case e in #( 21563 e) make_lint_lib=no ;; 21564 esac 21565 fi 21566 21567 21568 if test "x$make_lint_lib" = x"yes" ; then 21569 LINTLIB=llib-lXext.ln 21570 if test "x$LINT" = "x"; then 21571 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 21572 fi 21573 elif test "x$make_lint_lib" != x"no" ; then 21574 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 21575 fi 21576 21577 21578 if test x$make_lint_lib != xno; then 21579 MAKE_LINT_LIB_TRUE= 21580 MAKE_LINT_LIB_FALSE='#' 21581 else 21582 MAKE_LINT_LIB_TRUE='#' 21583 MAKE_LINT_LIB_FALSE= 21584 fi 21585 21586 21587 21588 21589 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc" 21590 21591 cat >confcache <<\_ACEOF 21592 # This file is a shell script that caches the results of configure 21593 # tests run on this system so they can be shared between configure 21594 # scripts and configure runs, see configure's option --config-cache. 21595 # It is not useful on other systems. If it contains results you don't 21596 # want to keep, you may remove or edit it. 21597 # 21598 # config.status only pays attention to the cache file if you give it 21599 # the --recheck option to rerun configure. 21600 # 21601 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 21602 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 21603 # following values. 21604 21605 _ACEOF 21606 21607 # The following way of writing the cache mishandles newlines in values, 21608 # but we know of no workaround that is simple, portable, and efficient. 21609 # So, we kill variables containing newlines. 21610 # Ultrix sh set writes to stderr and can't be redirected directly, 21611 # and sets the high bit in the cache file unless we assign to the vars. 21612 ( 21613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21614 eval ac_val=\$$ac_var 21615 case $ac_val in #( 21616 *${as_nl}*) 21617 case $ac_var in #( 21618 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21619 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21620 esac 21621 case $ac_var in #( 21622 _ | IFS | as_nl) ;; #( 21623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21624 *) { eval $ac_var=; unset $ac_var;} ;; 21625 esac ;; 21626 esac 21627 done 21628 21629 (set) 2>&1 | 21630 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21631 *${as_nl}ac_space=\ *) 21632 # 'set' does not quote correctly, so add quotes: double-quote 21633 # substitution turns \\\\ into \\, and sed turns \\ into \. 21634 sed -n \ 21635 "s/'/'\\\\''/g; 21636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21637 ;; #( 21638 *) 21639 # 'set' quotes correctly as required by POSIX, so do not add quotes. 21640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21641 ;; 21642 esac | 21643 sort 21644 ) | 21645 sed ' 21646 /^ac_cv_env_/b end 21647 t clear 21648 :clear 21649 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21650 t end 21651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21652 :end' >>confcache 21653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21654 if test -w "$cache_file"; then 21655 if test "x$cache_file" != "x/dev/null"; then 21656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21657 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21658 if test ! -f "$cache_file" || test -h "$cache_file"; then 21659 cat confcache >"$cache_file" 21660 else 21661 case $cache_file in #( 21662 */* | ?:*) 21663 mv -f confcache "$cache_file"$$ && 21664 mv -f "$cache_file"$$ "$cache_file" ;; #( 21665 *) 21666 mv -f confcache "$cache_file" ;; 21667 esac 21668 fi 21669 fi 21670 else 21671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21672 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21673 fi 21674 fi 21675 rm -f confcache 21676 21677 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21678 # Let make expand exec_prefix. 21679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21680 21681 DEFS=-DHAVE_CONFIG_H 21682 21683 ac_libobjs= 21684 ac_ltlibobjs= 21685 U= 21686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21687 # 1. Remove the extension, and $U if already installed. 21688 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21689 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21690 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21691 # will be set to the directory where LIBOBJS objects are built. 21692 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21693 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21694 done 21695 LIBOBJS=$ac_libobjs 21696 21697 LTLIBOBJS=$ac_ltlibobjs 21698 21699 21700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21701 printf %s "checking that generated files are newer than configure... " >&6; } 21702 if test -n "$am_sleep_pid"; then 21703 # Hide warnings about reused PIDs. 21704 wait $am_sleep_pid 2>/dev/null 21705 fi 21706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21707 printf "%s\n" "done" >&6; } 21708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21709 as_fn_error $? "conditional \"AMDEP\" was never defined. 21710 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21711 fi 21712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21714 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21715 fi 21716 case $enable_silent_rules in # ((( 21717 yes) AM_DEFAULT_VERBOSITY=0;; 21718 no) AM_DEFAULT_VERBOSITY=1;; 21719 esac 21720 if test $am_cv_make_support_nested_variables = yes; then 21721 AM_V='$(V)' 21722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 21723 else 21724 AM_V=$AM_DEFAULT_VERBOSITY 21725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 21726 fi 21727 21728 if test -n "$EXEEXT"; then 21729 am__EXEEXT_TRUE= 21730 am__EXEEXT_FALSE='#' 21731 else 21732 am__EXEEXT_TRUE='#' 21733 am__EXEEXT_FALSE= 21734 fi 21735 21736 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21737 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21738 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21739 fi 21740 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21741 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21742 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21743 fi 21744 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21745 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21746 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21747 fi 21748 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21749 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21750 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21751 fi 21752 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21753 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21754 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21755 fi 21756 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21757 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21758 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21759 fi 21760 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21761 as_fn_error $? "conditional \"LINT\" was never defined. 21762 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21763 fi 21764 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21765 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21766 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21767 fi 21768 21769 : "${CONFIG_STATUS=./config.status}" 21770 ac_write_fail=0 21771 ac_clean_files_save=$ac_clean_files 21772 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21774 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21775 as_write_fail=0 21776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21777 #! $SHELL 21778 # Generated by $as_me. 21779 # Run this file to recreate the current configuration. 21780 # Compiler output produced by configure, useful for debugging 21781 # configure, is in config.log if it exists. 21782 21783 debug=false 21784 ac_cs_recheck=false 21785 ac_cs_silent=false 21786 21787 SHELL=\${CONFIG_SHELL-$SHELL} 21788 export SHELL 21789 _ASEOF 21790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21791 ## -------------------- ## 21792 ## M4sh Initialization. ## 21793 ## -------------------- ## 21794 21795 # Be more Bourne compatible 21796 DUALCASE=1; export DUALCASE # for MKS sh 21797 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21798 then : 21799 emulate sh 21800 NULLCMD=: 21801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21802 # is contrary to our usage. Disable this feature. 21803 alias -g '${1+"$@"}'='"$@"' 21804 setopt NO_GLOB_SUBST 21805 else case e in #( 21806 e) case `(set -o) 2>/dev/null` in #( 21807 *posix*) : 21808 set -o posix ;; #( 21809 *) : 21810 ;; 21811 esac ;; 21812 esac 21813 fi 21814 21815 21816 21817 # Reset variables that may have inherited troublesome values from 21818 # the environment. 21819 21820 # IFS needs to be set, to space, tab, and newline, in precisely that order. 21821 # (If _AS_PATH_WALK were called with IFS unset, it would have the 21822 # side effect of setting IFS to empty, thus disabling word splitting.) 21823 # Quoting is to prevent editors from complaining about space-tab. 21824 as_nl=' 21825 ' 21826 export as_nl 21827 IFS=" "" $as_nl" 21828 21829 PS1='$ ' 21830 PS2='> ' 21831 PS4='+ ' 21832 21833 # Ensure predictable behavior from utilities with locale-dependent output. 21834 LC_ALL=C 21835 export LC_ALL 21836 LANGUAGE=C 21837 export LANGUAGE 21838 21839 # We cannot yet rely on "unset" to work, but we need these variables 21840 # to be unset--not just set to an empty or harmless value--now, to 21841 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21842 # also avoids known problems related to "unset" and subshell syntax 21843 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21844 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21845 do eval test \${$as_var+y} \ 21846 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21847 done 21848 21849 # Ensure that fds 0, 1, and 2 are open. 21850 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21851 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21852 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21853 21854 # The user is always right. 21855 if ${PATH_SEPARATOR+false} :; then 21856 PATH_SEPARATOR=: 21857 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21858 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21859 PATH_SEPARATOR=';' 21860 } 21861 fi 21862 21863 21864 # Find who we are. Look in the path if we contain no directory separator. 21865 as_myself= 21866 case $0 in #(( 21867 *[\\/]* ) as_myself=$0 ;; 21868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21869 for as_dir in $PATH 21870 do 21871 IFS=$as_save_IFS 21872 case $as_dir in #((( 21873 '') as_dir=./ ;; 21874 */) ;; 21875 *) as_dir=$as_dir/ ;; 21876 esac 21877 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21878 done 21879 IFS=$as_save_IFS 21880 21881 ;; 21882 esac 21883 # We did not find ourselves, most probably we were run as 'sh COMMAND' 21884 # in which case we are not to be found in the path. 21885 if test "x$as_myself" = x; then 21886 as_myself=$0 21887 fi 21888 if test ! -f "$as_myself"; then 21889 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21890 exit 1 21891 fi 21892 21893 21894 21895 # as_fn_error STATUS ERROR [LINENO LOG_FD] 21896 # ---------------------------------------- 21897 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21898 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21899 # script with STATUS, using 1 if that was 0. 21900 as_fn_error () 21901 { 21902 as_status=$1; test $as_status -eq 0 && as_status=1 21903 if test "$4"; then 21904 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21906 fi 21907 printf "%s\n" "$as_me: error: $2" >&2 21908 as_fn_exit $as_status 21909 } # as_fn_error 21910 21911 21912 # as_fn_set_status STATUS 21913 # ----------------------- 21914 # Set $? to STATUS, without forking. 21915 as_fn_set_status () 21916 { 21917 return $1 21918 } # as_fn_set_status 21919 21920 # as_fn_exit STATUS 21921 # ----------------- 21922 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21923 as_fn_exit () 21924 { 21925 set +e 21926 as_fn_set_status $1 21927 exit $1 21928 } # as_fn_exit 21929 21930 # as_fn_unset VAR 21931 # --------------- 21932 # Portably unset VAR. 21933 as_fn_unset () 21934 { 21935 { eval $1=; unset $1;} 21936 } 21937 as_unset=as_fn_unset 21938 21939 # as_fn_append VAR VALUE 21940 # ---------------------- 21941 # Append the text in VALUE to the end of the definition contained in VAR. Take 21942 # advantage of any shell optimizations that allow amortized linear growth over 21943 # repeated appends, instead of the typical quadratic growth present in naive 21944 # implementations. 21945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21946 then : 21947 eval 'as_fn_append () 21948 { 21949 eval $1+=\$2 21950 }' 21951 else case e in #( 21952 e) as_fn_append () 21953 { 21954 eval $1=\$$1\$2 21955 } ;; 21956 esac 21957 fi # as_fn_append 21958 21959 # as_fn_arith ARG... 21960 # ------------------ 21961 # Perform arithmetic evaluation on the ARGs, and store the result in the 21962 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21963 # must be portable across $(()) and expr. 21964 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21965 then : 21966 eval 'as_fn_arith () 21967 { 21968 as_val=$(( $* )) 21969 }' 21970 else case e in #( 21971 e) as_fn_arith () 21972 { 21973 as_val=`expr "$@" || test $? -eq 1` 21974 } ;; 21975 esac 21976 fi # as_fn_arith 21977 21978 21979 if expr a : '\(a\)' >/dev/null 2>&1 && 21980 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21981 as_expr=expr 21982 else 21983 as_expr=false 21984 fi 21985 21986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21987 as_basename=basename 21988 else 21989 as_basename=false 21990 fi 21991 21992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21993 as_dirname=dirname 21994 else 21995 as_dirname=false 21996 fi 21997 21998 as_me=`$as_basename -- "$0" || 21999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22000 X"$0" : 'X\(//\)$' \| \ 22001 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22002 printf "%s\n" X/"$0" | 22003 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22004 s//\1/ 22005 q 22006 } 22007 /^X\/\(\/\/\)$/{ 22008 s//\1/ 22009 q 22010 } 22011 /^X\/\(\/\).*/{ 22012 s//\1/ 22013 q 22014 } 22015 s/.*/./; q'` 22016 22017 # Avoid depending upon Character Ranges. 22018 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22021 as_cr_digits='0123456789' 22022 as_cr_alnum=$as_cr_Letters$as_cr_digits 22023 22024 22025 # Determine whether it's possible to make 'echo' print without a newline. 22026 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22027 # for compatibility with existing Makefiles. 22028 ECHO_C= ECHO_N= ECHO_T= 22029 case `echo -n x` in #((((( 22030 -n*) 22031 case `echo 'xy\c'` in 22032 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22033 xy) ECHO_C='\c';; 22034 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22035 ECHO_T=' ';; 22036 esac;; 22037 *) 22038 ECHO_N='-n';; 22039 esac 22040 22041 # For backward compatibility with old third-party macros, we provide 22042 # the shell variables $as_echo and $as_echo_n. New code should use 22043 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22044 as_echo='printf %s\n' 22045 as_echo_n='printf %s' 22046 22047 rm -f conf$$ conf$$.exe conf$$.file 22048 if test -d conf$$.dir; then 22049 rm -f conf$$.dir/conf$$.file 22050 else 22051 rm -f conf$$.dir 22052 mkdir conf$$.dir 2>/dev/null 22053 fi 22054 if (echo >conf$$.file) 2>/dev/null; then 22055 if ln -s conf$$.file conf$$ 2>/dev/null; then 22056 as_ln_s='ln -s' 22057 # ... but there are two gotchas: 22058 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22059 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22060 # In both cases, we have to default to 'cp -pR'. 22061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22062 as_ln_s='cp -pR' 22063 elif ln conf$$.file conf$$ 2>/dev/null; then 22064 as_ln_s=ln 22065 else 22066 as_ln_s='cp -pR' 22067 fi 22068 else 22069 as_ln_s='cp -pR' 22070 fi 22071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22072 rmdir conf$$.dir 2>/dev/null 22073 22074 22075 # as_fn_mkdir_p 22076 # ------------- 22077 # Create "$as_dir" as a directory, including parents if necessary. 22078 as_fn_mkdir_p () 22079 { 22080 22081 case $as_dir in #( 22082 -*) as_dir=./$as_dir;; 22083 esac 22084 test -d "$as_dir" || eval $as_mkdir_p || { 22085 as_dirs= 22086 while :; do 22087 case $as_dir in #( 22088 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22089 *) as_qdir=$as_dir;; 22090 esac 22091 as_dirs="'$as_qdir' $as_dirs" 22092 as_dir=`$as_dirname -- "$as_dir" || 22093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22094 X"$as_dir" : 'X\(//\)[^/]' \| \ 22095 X"$as_dir" : 'X\(//\)$' \| \ 22096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22097 printf "%s\n" X"$as_dir" | 22098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22099 s//\1/ 22100 q 22101 } 22102 /^X\(\/\/\)[^/].*/{ 22103 s//\1/ 22104 q 22105 } 22106 /^X\(\/\/\)$/{ 22107 s//\1/ 22108 q 22109 } 22110 /^X\(\/\).*/{ 22111 s//\1/ 22112 q 22113 } 22114 s/.*/./; q'` 22115 test -d "$as_dir" && break 22116 done 22117 test -z "$as_dirs" || eval "mkdir $as_dirs" 22118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22119 22120 22121 } # as_fn_mkdir_p 22122 if mkdir -p . 2>/dev/null; then 22123 as_mkdir_p='mkdir -p "$as_dir"' 22124 else 22125 test -d ./-p && rmdir ./-p 22126 as_mkdir_p=false 22127 fi 22128 22129 22130 # as_fn_executable_p FILE 22131 # ----------------------- 22132 # Test if FILE is an executable regular file. 22133 as_fn_executable_p () 22134 { 22135 test -f "$1" && test -x "$1" 22136 } # as_fn_executable_p 22137 as_test_x='test -x' 22138 as_executable_p=as_fn_executable_p 22139 22140 # Sed expression to map a string onto a valid CPP name. 22141 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22142 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22143 22144 # Sed expression to map a string onto a valid variable name. 22145 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22146 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22147 22148 22149 exec 6>&1 22150 ## ----------------------------------- ## 22151 ## Main body of $CONFIG_STATUS script. ## 22152 ## ----------------------------------- ## 22153 _ASEOF 22154 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22155 22156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22157 # Save the log message, to keep $0 and so on meaningful, and to 22158 # report actual input values of CONFIG_FILES etc. instead of their 22159 # values after options handling. 22160 ac_log=" 22161 This file was extended by libXext $as_me 1.3.7, which was 22162 generated by GNU Autoconf 2.72. Invocation command line was 22163 22164 CONFIG_FILES = $CONFIG_FILES 22165 CONFIG_HEADERS = $CONFIG_HEADERS 22166 CONFIG_LINKS = $CONFIG_LINKS 22167 CONFIG_COMMANDS = $CONFIG_COMMANDS 22168 $ $0 $@ 22169 22170 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22171 " 22172 22173 _ACEOF 22174 22175 case $ac_config_files in *" 22176 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22177 esac 22178 22179 case $ac_config_headers in *" 22180 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22181 esac 22182 22183 22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22185 # Files that config.status was made for. 22186 config_files="$ac_config_files" 22187 config_headers="$ac_config_headers" 22188 config_commands="$ac_config_commands" 22189 22190 _ACEOF 22191 22192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22193 ac_cs_usage="\ 22194 '$as_me' instantiates files and other configuration actions 22195 from templates according to the current configuration. Unless the files 22196 and actions are specified as TAGs, all are instantiated by default. 22197 22198 Usage: $0 [OPTION]... [TAG]... 22199 22200 -h, --help print this help, then exit 22201 -V, --version print version number and configuration settings, then exit 22202 --config print configuration, then exit 22203 -q, --quiet, --silent 22204 do not print progress messages 22205 -d, --debug don't remove temporary files 22206 --recheck update $as_me by reconfiguring in the same conditions 22207 --file=FILE[:TEMPLATE] 22208 instantiate the configuration file FILE 22209 --header=FILE[:TEMPLATE] 22210 instantiate the configuration header FILE 22211 22212 Configuration files: 22213 $config_files 22214 22215 Configuration headers: 22216 $config_headers 22217 22218 Configuration commands: 22219 $config_commands 22220 22221 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>." 22222 22223 _ACEOF 22224 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22225 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22227 ac_cs_config='$ac_cs_config_escaped' 22228 ac_cs_version="\\ 22229 libXext config.status 1.3.7 22230 configured by $0, generated by GNU Autoconf 2.72, 22231 with options \\"\$ac_cs_config\\" 22232 22233 Copyright (C) 2023 Free Software Foundation, Inc. 22234 This config.status script is free software; the Free Software Foundation 22235 gives unlimited permission to copy, distribute and modify it." 22236 22237 ac_pwd='$ac_pwd' 22238 srcdir='$srcdir' 22239 INSTALL='$INSTALL' 22240 MKDIR_P='$MKDIR_P' 22241 AWK='$AWK' 22242 test -n "\$AWK" || AWK=awk 22243 _ACEOF 22244 22245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22246 # The default lists apply if the user does not specify any file. 22247 ac_need_defaults=: 22248 while test $# != 0 22249 do 22250 case $1 in 22251 --*=?*) 22252 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22254 ac_shift=: 22255 ;; 22256 --*=) 22257 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22258 ac_optarg= 22259 ac_shift=: 22260 ;; 22261 *) 22262 ac_option=$1 22263 ac_optarg=$2 22264 ac_shift=shift 22265 ;; 22266 esac 22267 22268 case $ac_option in 22269 # Handling of the options. 22270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22271 ac_cs_recheck=: ;; 22272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22273 printf "%s\n" "$ac_cs_version"; exit ;; 22274 --config | --confi | --conf | --con | --co | --c ) 22275 printf "%s\n" "$ac_cs_config"; exit ;; 22276 --debug | --debu | --deb | --de | --d | -d ) 22277 debug=: ;; 22278 --file | --fil | --fi | --f ) 22279 $ac_shift 22280 case $ac_optarg in 22281 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22282 '') as_fn_error $? "missing file argument" ;; 22283 esac 22284 as_fn_append CONFIG_FILES " '$ac_optarg'" 22285 ac_need_defaults=false;; 22286 --header | --heade | --head | --hea ) 22287 $ac_shift 22288 case $ac_optarg in 22289 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22290 esac 22291 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22292 ac_need_defaults=false;; 22293 --he | --h) 22294 # Conflict between --help and --header 22295 as_fn_error $? "ambiguous option: '$1' 22296 Try '$0 --help' for more information.";; 22297 --help | --hel | -h ) 22298 printf "%s\n" "$ac_cs_usage"; exit ;; 22299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22300 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22301 ac_cs_silent=: ;; 22302 22303 # This is an error. 22304 -*) as_fn_error $? "unrecognized option: '$1' 22305 Try '$0 --help' for more information." ;; 22306 22307 *) as_fn_append ac_config_targets " $1" 22308 ac_need_defaults=false ;; 22309 22310 esac 22311 shift 22312 done 22313 22314 ac_configure_extra_args= 22315 22316 if $ac_cs_silent; then 22317 exec 6>/dev/null 22318 ac_configure_extra_args="$ac_configure_extra_args --silent" 22319 fi 22320 22321 _ACEOF 22322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22323 if \$ac_cs_recheck; then 22324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22325 shift 22326 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22327 CONFIG_SHELL='$SHELL' 22328 export CONFIG_SHELL 22329 exec "\$@" 22330 fi 22331 22332 _ACEOF 22333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22334 exec 5>>config.log 22335 { 22336 echo 22337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22338 ## Running $as_me. ## 22339 _ASBOX 22340 printf "%s\n" "$ac_log" 22341 } >&5 22342 22343 _ACEOF 22344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22345 # 22346 # INIT-COMMANDS 22347 # 22348 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22349 22350 22351 # The HP-UX ksh and POSIX shell print the target directory to stdout 22352 # if CDPATH is set. 22353 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22354 22355 sed_quote_subst='$sed_quote_subst' 22356 double_quote_subst='$double_quote_subst' 22357 delay_variable_subst='$delay_variable_subst' 22358 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22359 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22360 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22361 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22362 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22363 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22364 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22365 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22366 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22367 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22368 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22369 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22370 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22371 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22372 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22373 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22374 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22375 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22376 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22377 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22378 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22379 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22380 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22381 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22382 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22383 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22384 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22385 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22386 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22387 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22388 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22389 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22390 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22391 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22392 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22393 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22394 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22395 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22396 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22397 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22398 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22399 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22400 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22401 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22402 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22403 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22404 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22405 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22406 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22407 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22408 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22409 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22410 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22411 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22412 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22413 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22414 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22415 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22416 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22417 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22418 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"`' 22419 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22420 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22421 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22422 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22423 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22424 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22425 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22426 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22427 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22428 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22429 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22430 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22431 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22432 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22433 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22434 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22435 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22436 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22437 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22438 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22439 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22440 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22441 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22442 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22443 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22444 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22445 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22446 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22447 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22448 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22449 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22450 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22451 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22452 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22453 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22454 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22455 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22456 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22457 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22458 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22459 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22460 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22461 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22462 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22463 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22464 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22465 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22466 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22467 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22468 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22469 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22470 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22471 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22472 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22473 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22474 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22475 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22476 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22477 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22478 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22479 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22480 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22481 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22482 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22483 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22484 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22485 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22486 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22487 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22488 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22489 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22490 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22491 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22492 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22493 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22494 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22495 22496 LTCC='$LTCC' 22497 LTCFLAGS='$LTCFLAGS' 22498 compiler='$compiler_DEFAULT' 22499 22500 # A function that is used when there is no print builtin or printf. 22501 func_fallback_echo () 22502 { 22503 eval 'cat <<_LTECHO_EOF 22504 \$1 22505 _LTECHO_EOF' 22506 } 22507 22508 # Quote evaled strings. 22509 for var in SHELL \ 22510 ECHO \ 22511 PATH_SEPARATOR \ 22512 SED \ 22513 GREP \ 22514 EGREP \ 22515 FGREP \ 22516 LD \ 22517 NM \ 22518 LN_S \ 22519 lt_SP2NL \ 22520 lt_NL2SP \ 22521 reload_flag \ 22522 FILECMD \ 22523 OBJDUMP \ 22524 deplibs_check_method \ 22525 file_magic_cmd \ 22526 file_magic_glob \ 22527 want_nocaseglob \ 22528 DLLTOOL \ 22529 sharedlib_from_linklib_cmd \ 22530 AR \ 22531 archiver_list_spec \ 22532 STRIP \ 22533 RANLIB \ 22534 CC \ 22535 CFLAGS \ 22536 compiler \ 22537 lt_cv_sys_global_symbol_pipe \ 22538 lt_cv_sys_global_symbol_to_cdecl \ 22539 lt_cv_sys_global_symbol_to_import \ 22540 lt_cv_sys_global_symbol_to_c_name_address \ 22541 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22542 lt_cv_nm_interface \ 22543 nm_file_list_spec \ 22544 lt_cv_truncate_bin \ 22545 lt_prog_compiler_no_builtin_flag \ 22546 lt_prog_compiler_pic \ 22547 lt_prog_compiler_wl \ 22548 lt_prog_compiler_static \ 22549 lt_cv_prog_compiler_c_o \ 22550 need_locks \ 22551 MANIFEST_TOOL \ 22552 DSYMUTIL \ 22553 NMEDIT \ 22554 LIPO \ 22555 OTOOL \ 22556 OTOOL64 \ 22557 shrext_cmds \ 22558 export_dynamic_flag_spec \ 22559 whole_archive_flag_spec \ 22560 compiler_needs_object \ 22561 with_gnu_ld \ 22562 allow_undefined_flag \ 22563 no_undefined_flag \ 22564 hardcode_libdir_flag_spec \ 22565 hardcode_libdir_separator \ 22566 exclude_expsyms \ 22567 include_expsyms \ 22568 file_list_spec \ 22569 variables_saved_for_relink \ 22570 libname_spec \ 22571 library_names_spec \ 22572 soname_spec \ 22573 install_override_mode \ 22574 finish_eval \ 22575 old_striplib \ 22576 striplib; do 22577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22578 *[\\\\\\\`\\"\\\$]*) 22579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22580 ;; 22581 *) 22582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22583 ;; 22584 esac 22585 done 22586 22587 # Double-quote double-evaled strings. 22588 for var in reload_cmds \ 22589 old_postinstall_cmds \ 22590 old_postuninstall_cmds \ 22591 old_archive_cmds \ 22592 extract_expsyms_cmds \ 22593 old_archive_from_new_cmds \ 22594 old_archive_from_expsyms_cmds \ 22595 archive_cmds \ 22596 archive_expsym_cmds \ 22597 module_cmds \ 22598 module_expsym_cmds \ 22599 export_symbols_cmds \ 22600 prelink_cmds \ 22601 postlink_cmds \ 22602 postinstall_cmds \ 22603 postuninstall_cmds \ 22604 finish_cmds \ 22605 sys_lib_search_path_spec \ 22606 configure_time_dlsearch_path \ 22607 configure_time_lt_sys_library_path; do 22608 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22609 *[\\\\\\\`\\"\\\$]*) 22610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22611 ;; 22612 *) 22613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22614 ;; 22615 esac 22616 done 22617 22618 ac_aux_dir='$ac_aux_dir' 22619 22620 # See if we are running on zsh, and set the options that allow our 22621 # commands through without removal of \ escapes INIT. 22622 if test -n "\${ZSH_VERSION+set}"; then 22623 setopt NO_GLOB_SUBST 22624 fi 22625 22626 22627 PACKAGE='$PACKAGE' 22628 VERSION='$VERSION' 22629 RM='$RM' 22630 ofile='$ofile' 22631 22632 22633 22634 22635 _ACEOF 22636 22637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22638 22639 # Handling of arguments. 22640 for ac_config_target in $ac_config_targets 22641 do 22642 case $ac_config_target in 22643 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22647 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22648 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22649 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22650 "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;; 22651 22652 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22653 esac 22654 done 22655 22656 22657 # If the user did not use the arguments to specify the items to instantiate, 22658 # then the envvar interface is used. Set only those that are not. 22659 # We use the long form for the default assignment because of an extremely 22660 # bizarre bug on SunOS 4.1.3. 22661 if $ac_need_defaults; then 22662 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22663 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22664 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22665 fi 22666 22667 # Have a temporary directory for convenience. Make it in the build tree 22668 # simply because there is no reason against having it here, and in addition, 22669 # creating and moving files from /tmp can sometimes cause problems. 22670 # Hook for its removal unless debugging. 22671 # Note that there is a small window in which the directory will not be cleaned: 22672 # after its creation but before its name has been assigned to '$tmp'. 22673 $debug || 22674 { 22675 tmp= ac_tmp= 22676 trap 'exit_status=$? 22677 : "${ac_tmp:=$tmp}" 22678 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22679 ' 0 22680 trap 'as_fn_exit 1' 1 2 13 15 22681 } 22682 # Create a (secure) tmp directory for tmp files. 22683 22684 { 22685 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22686 test -d "$tmp" 22687 } || 22688 { 22689 tmp=./conf$$-$RANDOM 22690 (umask 077 && mkdir "$tmp") 22691 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22692 ac_tmp=$tmp 22693 22694 # Set up the scripts for CONFIG_FILES section. 22695 # No need to generate them if there are no CONFIG_FILES. 22696 # This happens for instance with './config.status config.h'. 22697 if test -n "$CONFIG_FILES"; then 22698 22699 22700 ac_cr=`echo X | tr X '\015'` 22701 # On cygwin, bash can eat \r inside `` if the user requested igncr. 22702 # But we know of no other shell where ac_cr would be empty at this 22703 # point, so we can use a bashism as a fallback. 22704 if test "x$ac_cr" = x; then 22705 eval ac_cr=\$\'\\r\' 22706 fi 22707 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22708 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22709 ac_cs_awk_cr='\\r' 22710 else 22711 ac_cs_awk_cr=$ac_cr 22712 fi 22713 22714 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22715 _ACEOF 22716 22717 22718 { 22719 echo "cat >conf$$subs.awk <<_ACEOF" && 22720 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22721 echo "_ACEOF" 22722 } >conf$$subs.sh || 22723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22724 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22725 ac_delim='%!_!# ' 22726 for ac_last_try in false false false false false :; do 22727 . ./conf$$subs.sh || 22728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22729 22730 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22731 if test $ac_delim_n = $ac_delim_num; then 22732 break 22733 elif $ac_last_try; then 22734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22735 else 22736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22737 fi 22738 done 22739 rm -f conf$$subs.sh 22740 22741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22742 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22743 _ACEOF 22744 sed -n ' 22745 h 22746 s/^/S["/; s/!.*/"]=/ 22747 p 22748 g 22749 s/^[^!]*!// 22750 :repl 22751 t repl 22752 s/'"$ac_delim"'$// 22753 t delim 22754 :nl 22755 h 22756 s/\(.\{148\}\)..*/\1/ 22757 t more1 22758 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22759 p 22760 n 22761 b repl 22762 :more1 22763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22764 p 22765 g 22766 s/.\{148\}// 22767 t nl 22768 :delim 22769 h 22770 s/\(.\{148\}\)..*/\1/ 22771 t more2 22772 s/["\\]/\\&/g; s/^/"/; s/$/"/ 22773 p 22774 b 22775 :more2 22776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22777 p 22778 g 22779 s/.\{148\}// 22780 t delim 22781 ' <conf$$subs.awk | sed ' 22782 /^[^""]/{ 22783 N 22784 s/\n// 22785 } 22786 ' >>$CONFIG_STATUS || ac_write_fail=1 22787 rm -f conf$$subs.awk 22788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22789 _ACAWK 22790 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22791 for (key in S) S_is_set[key] = 1 22792 FS = "" 22793 22794 } 22795 { 22796 line = $ 0 22797 nfields = split(line, field, "@") 22798 substed = 0 22799 len = length(field[1]) 22800 for (i = 2; i < nfields; i++) { 22801 key = field[i] 22802 keylen = length(key) 22803 if (S_is_set[key]) { 22804 value = S[key] 22805 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22806 len += length(value) + length(field[++i]) 22807 substed = 1 22808 } else 22809 len += 1 + keylen 22810 } 22811 22812 print line 22813 } 22814 22815 _ACAWK 22816 _ACEOF 22817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22818 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22819 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22820 else 22821 cat 22822 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22823 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22824 _ACEOF 22825 22826 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22827 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22828 # trailing colons and then remove the whole line if VPATH becomes empty 22829 # (actually we leave an empty line to preserve line numbers). 22830 if test "x$srcdir" = x.; then 22831 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22832 h 22833 s/// 22834 s/^/:/ 22835 s/[ ]*$/:/ 22836 s/:\$(srcdir):/:/g 22837 s/:\${srcdir}:/:/g 22838 s/:@srcdir@:/:/g 22839 s/^:*// 22840 s/:*$// 22841 x 22842 s/\(=[ ]*\).*/\1/ 22843 G 22844 s/\n// 22845 s/^[^=]*=[ ]*$// 22846 }' 22847 fi 22848 22849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22850 fi # test -n "$CONFIG_FILES" 22851 22852 # Set up the scripts for CONFIG_HEADERS section. 22853 # No need to generate them if there are no CONFIG_HEADERS. 22854 # This happens for instance with './config.status Makefile'. 22855 if test -n "$CONFIG_HEADERS"; then 22856 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22857 BEGIN { 22858 _ACEOF 22859 22860 # Transform confdefs.h into an awk script 'defines.awk', embedded as 22861 # here-document in config.status, that substitutes the proper values into 22862 # config.h.in to produce config.h. 22863 22864 # Create a delimiter string that does not exist in confdefs.h, to ease 22865 # handling of long lines. 22866 ac_delim='%!_!# ' 22867 for ac_last_try in false false :; do 22868 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22869 if test -z "$ac_tt"; then 22870 break 22871 elif $ac_last_try; then 22872 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22873 else 22874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22875 fi 22876 done 22877 22878 # For the awk script, D is an array of macro values keyed by name, 22879 # likewise P contains macro parameters if any. Preserve backslash 22880 # newline sequences. 22881 22882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22883 sed -n ' 22884 s/.\{148\}/&'"$ac_delim"'/g 22885 t rset 22886 :rset 22887 s/^[ ]*#[ ]*define[ ][ ]*/ / 22888 t def 22889 d 22890 :def 22891 s/\\$// 22892 t bsnl 22893 s/["\\]/\\&/g 22894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22895 D["\1"]=" \3"/p 22896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22897 d 22898 :bsnl 22899 s/["\\]/\\&/g 22900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22901 D["\1"]=" \3\\\\\\n"\\/p 22902 t cont 22903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22904 t cont 22905 d 22906 :cont 22907 n 22908 s/.\{148\}/&'"$ac_delim"'/g 22909 t clear 22910 :clear 22911 s/\\$// 22912 t bsnlc 22913 s/["\\]/\\&/g; s/^/"/; s/$/"/p 22914 d 22915 :bsnlc 22916 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22917 b cont 22918 ' <confdefs.h | sed ' 22919 s/'"$ac_delim"'/"\\\ 22920 "/g' >>$CONFIG_STATUS || ac_write_fail=1 22921 22922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22923 for (key in D) D_is_set[key] = 1 22924 FS = "" 22925 } 22926 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22927 line = \$ 0 22928 split(line, arg, " ") 22929 if (arg[1] == "#") { 22930 defundef = arg[2] 22931 mac1 = arg[3] 22932 } else { 22933 defundef = substr(arg[1], 2) 22934 mac1 = arg[2] 22935 } 22936 split(mac1, mac2, "(") #) 22937 macro = mac2[1] 22938 prefix = substr(line, 1, index(line, defundef) - 1) 22939 if (D_is_set[macro]) { 22940 # Preserve the white space surrounding the "#". 22941 print prefix "define", macro P[macro] D[macro] 22942 next 22943 } else { 22944 # Replace #undef with comments. This is necessary, for example, 22945 # in the case of _POSIX_SOURCE, which is predefined and required 22946 # on some systems where configure will not decide to define it. 22947 if (defundef == "undef") { 22948 print "/*", prefix defundef, macro, "*/" 22949 next 22950 } 22951 } 22952 } 22953 { print } 22954 _ACAWK 22955 _ACEOF 22956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22957 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22958 fi # test -n "$CONFIG_HEADERS" 22959 22960 22961 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22962 shift 22963 for ac_tag 22964 do 22965 case $ac_tag in 22966 :[FHLC]) ac_mode=$ac_tag; continue;; 22967 esac 22968 case $ac_mode$ac_tag in 22969 :[FHL]*:*);; 22970 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22971 :[FH]-) ac_tag=-:-;; 22972 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22973 esac 22974 ac_save_IFS=$IFS 22975 IFS=: 22976 set x $ac_tag 22977 IFS=$ac_save_IFS 22978 shift 22979 ac_file=$1 22980 shift 22981 22982 case $ac_mode in 22983 :L) ac_source=$1;; 22984 :[FH]) 22985 ac_file_inputs= 22986 for ac_f 22987 do 22988 case $ac_f in 22989 -) ac_f="$ac_tmp/stdin";; 22990 *) # Look for the file first in the build tree, then in the source tree 22991 # (if the path is not absolute). The absolute path cannot be DOS-style, 22992 # because $ac_f cannot contain ':'. 22993 test -f "$ac_f" || 22994 case $ac_f in 22995 [\\/$]*) false;; 22996 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22997 esac || 22998 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22999 esac 23000 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23001 as_fn_append ac_file_inputs " '$ac_f'" 23002 done 23003 23004 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23005 # use $as_me), people would be surprised to read: 23006 # /* config.h. Generated by config.status. */ 23007 configure_input='Generated from '` 23008 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23009 `' by configure.' 23010 if test x"$ac_file" != x-; then 23011 configure_input="$ac_file. $configure_input" 23012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23013 printf "%s\n" "$as_me: creating $ac_file" >&6;} 23014 fi 23015 # Neutralize special characters interpreted by sed in replacement strings. 23016 case $configure_input in #( 23017 *\&* | *\|* | *\\* ) 23018 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23019 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23020 *) ac_sed_conf_input=$configure_input;; 23021 esac 23022 23023 case $ac_tag in 23024 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23026 esac 23027 ;; 23028 esac 23029 23030 ac_dir=`$as_dirname -- "$ac_file" || 23031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23032 X"$ac_file" : 'X\(//\)[^/]' \| \ 23033 X"$ac_file" : 'X\(//\)$' \| \ 23034 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23035 printf "%s\n" X"$ac_file" | 23036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23037 s//\1/ 23038 q 23039 } 23040 /^X\(\/\/\)[^/].*/{ 23041 s//\1/ 23042 q 23043 } 23044 /^X\(\/\/\)$/{ 23045 s//\1/ 23046 q 23047 } 23048 /^X\(\/\).*/{ 23049 s//\1/ 23050 q 23051 } 23052 s/.*/./; q'` 23053 as_dir="$ac_dir"; as_fn_mkdir_p 23054 ac_builddir=. 23055 23056 case "$ac_dir" in 23057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23058 *) 23059 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23060 # A ".." for each directory in $ac_dir_suffix. 23061 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23062 case $ac_top_builddir_sub in 23063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23065 esac ;; 23066 esac 23067 ac_abs_top_builddir=$ac_pwd 23068 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23069 # for backward compatibility: 23070 ac_top_builddir=$ac_top_build_prefix 23071 23072 case $srcdir in 23073 .) # We are building in place. 23074 ac_srcdir=. 23075 ac_top_srcdir=$ac_top_builddir_sub 23076 ac_abs_top_srcdir=$ac_pwd ;; 23077 [\\/]* | ?:[\\/]* ) # Absolute name. 23078 ac_srcdir=$srcdir$ac_dir_suffix; 23079 ac_top_srcdir=$srcdir 23080 ac_abs_top_srcdir=$srcdir ;; 23081 *) # Relative name. 23082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23083 ac_top_srcdir=$ac_top_build_prefix$srcdir 23084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23085 esac 23086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23087 23088 23089 case $ac_mode in 23090 :F) 23091 # 23092 # CONFIG_FILE 23093 # 23094 23095 case $INSTALL in 23096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23098 esac 23099 ac_MKDIR_P=$MKDIR_P 23100 case $MKDIR_P in 23101 [\\/$]* | ?:[\\/]* ) ;; 23102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23103 esac 23104 _ACEOF 23105 23106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23107 # If the template does not know about datarootdir, expand it. 23108 # FIXME: This hack should be removed a few years after 2.60. 23109 ac_datarootdir_hack=; ac_datarootdir_seen= 23110 ac_sed_dataroot=' 23111 /datarootdir/ { 23112 p 23113 q 23114 } 23115 /@datadir@/p 23116 /@docdir@/p 23117 /@infodir@/p 23118 /@localedir@/p 23119 /@mandir@/p' 23120 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23121 *datarootdir*) ac_datarootdir_seen=yes;; 23122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23124 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23125 _ACEOF 23126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23127 ac_datarootdir_hack=' 23128 s&@datadir@&$datadir&g 23129 s&@docdir@&$docdir&g 23130 s&@infodir@&$infodir&g 23131 s&@localedir@&$localedir&g 23132 s&@mandir@&$mandir&g 23133 s&\\\${datarootdir}&$datarootdir&g' ;; 23134 esac 23135 _ACEOF 23136 23137 # Neutralize VPATH when '$srcdir' = '.'. 23138 # Shell code in configure.ac might set extrasub. 23139 # FIXME: do we really want to maintain this feature? 23140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23141 ac_sed_extra="$ac_vpsub 23142 $extrasub 23143 _ACEOF 23144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23145 :t 23146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23147 s|@configure_input@|$ac_sed_conf_input|;t t 23148 s&@top_builddir@&$ac_top_builddir_sub&;t t 23149 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23150 s&@srcdir@&$ac_srcdir&;t t 23151 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23152 s&@top_srcdir@&$ac_top_srcdir&;t t 23153 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23154 s&@builddir@&$ac_builddir&;t t 23155 s&@abs_builddir@&$ac_abs_builddir&;t t 23156 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23157 s&@INSTALL@&$ac_INSTALL&;t t 23158 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23159 $ac_datarootdir_hack 23160 " 23161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23162 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23163 23164 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23165 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23167 "$ac_tmp/out"`; test -z "$ac_out"; } && 23168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23169 which seems to be undefined. Please make sure it is defined" >&5 23170 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23171 which seems to be undefined. Please make sure it is defined" >&2;} 23172 23173 rm -f "$ac_tmp/stdin" 23174 case $ac_file in 23175 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23176 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23177 esac \ 23178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23179 ;; 23180 :H) 23181 # 23182 # CONFIG_HEADER 23183 # 23184 if test x"$ac_file" != x-; then 23185 { 23186 printf "%s\n" "/* $configure_input */" >&1 \ 23187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23188 } >"$ac_tmp/config.h" \ 23189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23190 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23192 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23193 else 23194 rm -f "$ac_file" 23195 mv "$ac_tmp/config.h" "$ac_file" \ 23196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23197 fi 23198 else 23199 printf "%s\n" "/* $configure_input */" >&1 \ 23200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23201 || as_fn_error $? "could not create -" "$LINENO" 5 23202 fi 23203 # Compute "$ac_file"'s index in $config_headers. 23204 _am_arg="$ac_file" 23205 _am_stamp_count=1 23206 for _am_header in $config_headers :; do 23207 case $_am_header in 23208 $_am_arg | $_am_arg:* ) 23209 break ;; 23210 * ) 23211 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23212 esac 23213 done 23214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23216 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23217 X"$_am_arg" : 'X\(//\)$' \| \ 23218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23219 printf "%s\n" X"$_am_arg" | 23220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23221 s//\1/ 23222 q 23223 } 23224 /^X\(\/\/\)[^/].*/{ 23225 s//\1/ 23226 q 23227 } 23228 /^X\(\/\/\)$/{ 23229 s//\1/ 23230 q 23231 } 23232 /^X\(\/\).*/{ 23233 s//\1/ 23234 q 23235 } 23236 s/.*/./; q'`/stamp-h$_am_stamp_count 23237 ;; 23238 23239 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23240 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23241 ;; 23242 esac 23243 23244 23245 case $ac_file$ac_mode in 23246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23247 # Older Autoconf quotes --file arguments for eval, but not when files 23248 # are listed without --file. Let's play safe and only enable the eval 23249 # if we detect the quoting. 23250 # TODO: see whether this extra hack can be removed once we start 23251 # requiring Autoconf 2.70 or later. 23252 case $CONFIG_FILES in #( 23253 *\'*) : 23254 eval set x "$CONFIG_FILES" ;; #( 23255 *) : 23256 set x $CONFIG_FILES ;; #( 23257 *) : 23258 ;; 23259 esac 23260 shift 23261 # Used to flag and report bootstrapping failures. 23262 am_rc=0 23263 for am_mf 23264 do 23265 # Strip MF so we end up with the name of the file. 23266 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23267 # Check whether this is an Automake generated Makefile which includes 23268 # dependency-tracking related rules and includes. 23269 # Grep'ing the whole file directly is not great: AIX grep has a line 23270 # limit of 2048, but all sed's we know have understand at least 4000. 23271 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23272 || continue 23273 am_dirpart=`$as_dirname -- "$am_mf" || 23274 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23275 X"$am_mf" : 'X\(//\)[^/]' \| \ 23276 X"$am_mf" : 'X\(//\)$' \| \ 23277 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23278 printf "%s\n" X"$am_mf" | 23279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23280 s//\1/ 23281 q 23282 } 23283 /^X\(\/\/\)[^/].*/{ 23284 s//\1/ 23285 q 23286 } 23287 /^X\(\/\/\)$/{ 23288 s//\1/ 23289 q 23290 } 23291 /^X\(\/\).*/{ 23292 s//\1/ 23293 q 23294 } 23295 s/.*/./; q'` 23296 am_filepart=`$as_basename -- "$am_mf" || 23297 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23298 X"$am_mf" : 'X\(//\)$' \| \ 23299 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23300 printf "%s\n" X/"$am_mf" | 23301 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23302 s//\1/ 23303 q 23304 } 23305 /^X\/\(\/\/\)$/{ 23306 s//\1/ 23307 q 23308 } 23309 /^X\/\(\/\).*/{ 23310 s//\1/ 23311 q 23312 } 23313 s/.*/./; q'` 23314 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23315 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23316 | $MAKE -f - am--depfiles" >&5 23317 (cd "$am_dirpart" \ 23318 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23319 | $MAKE -f - am--depfiles) >&5 2>&5 23320 ac_status=$? 23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23322 (exit $ac_status); } || am_rc=$? 23323 done 23324 if test $am_rc -ne 0; then 23325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23326 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23327 as_fn_error $? "Something went wrong bootstrapping makefile fragments 23328 for automatic dependency tracking. If GNU make was not used, consider 23329 re-running the configure script with MAKE=\"gmake\" (or whatever is 23330 necessary). You can also try re-running configure with the 23331 '--disable-dependency-tracking' option to at least be able to build 23332 the package (albeit without support for automatic dependency tracking). 23333 See 'config.log' for more details" "$LINENO" 5; } 23334 fi 23335 { am_dirpart=; unset am_dirpart;} 23336 { am_filepart=; unset am_filepart;} 23337 { am_mf=; unset am_mf;} 23338 { am_rc=; unset am_rc;} 23339 rm -f conftest-deps.mk 23340 } 23341 ;; 23342 "libtool":C) 23343 23344 # See if we are running on zsh, and set the options that allow our 23345 # commands through without removal of \ escapes. 23346 if test -n "${ZSH_VERSION+set}"; then 23347 setopt NO_GLOB_SUBST 23348 fi 23349 23350 cfgfile=${ofile}T 23351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23352 $RM "$cfgfile" 23353 23354 cat <<_LT_EOF >> "$cfgfile" 23355 #! $SHELL 23356 # Generated automatically by $as_me ($PACKAGE) $VERSION 23357 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 23358 23359 # Provide generalized library-building support services. 23360 # Written by Gordon Matzigkeit, 1996 23361 23362 # Copyright (C) 2024 Free Software Foundation, Inc. 23363 # This is free software; see the source for copying conditions. There is NO 23364 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23365 23366 # GNU Libtool is free software; you can redistribute it and/or modify 23367 # it under the terms of the GNU General Public License as published by 23368 # the Free Software Foundation; either version 2 of the License, or 23369 # (at your option) any later version. 23370 # 23371 # As a special exception to the GNU General Public License, if you 23372 # distribute this file as part of a program or library that is built 23373 # using GNU Libtool, you may include this file under the same 23374 # distribution terms that you use for the rest of that program. 23375 # 23376 # GNU Libtool is distributed in the hope that it will be useful, but 23377 # WITHOUT ANY WARRANTY; without even the implied warranty of 23378 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23379 # GNU General Public License for more details. 23380 # 23381 # You should have received a copy of the GNU General Public License 23382 # along with this program. If not, see <http://www.gnu.org/licenses/>. 23383 23384 23385 # The names of the tagged configurations supported by this script. 23386 available_tags='' 23387 23388 # Configured defaults for sys_lib_dlsearch_path munging. 23389 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23390 23391 # ### BEGIN LIBTOOL CONFIG 23392 23393 # Which release of libtool.m4 was used? 23394 macro_version=$macro_version 23395 macro_revision=$macro_revision 23396 23397 # Whether or not to build shared libraries. 23398 build_libtool_libs=$enable_shared 23399 23400 # Whether or not to build static libraries. 23401 build_old_libs=$enable_static 23402 23403 # What type of objects to build. 23404 pic_mode=$pic_mode 23405 23406 # Whether or not to optimize for fast installation. 23407 fast_install=$enable_fast_install 23408 23409 # Shared archive member basename,for filename based shared library versioning on AIX. 23410 shared_archive_member_spec=$shared_archive_member_spec 23411 23412 # Shell to use when invoking shell scripts. 23413 SHELL=$lt_SHELL 23414 23415 # An echo program that protects backslashes. 23416 ECHO=$lt_ECHO 23417 23418 # The PATH separator for the build system. 23419 PATH_SEPARATOR=$lt_PATH_SEPARATOR 23420 23421 # The host system. 23422 host_alias=$host_alias 23423 host=$host 23424 host_os=$host_os 23425 23426 # The build system. 23427 build_alias=$build_alias 23428 build=$build 23429 build_os=$build_os 23430 23431 # A sed program that does not truncate output. 23432 SED=$lt_SED 23433 23434 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 23435 Xsed="\$SED -e 1s/^X//" 23436 23437 # A grep program that handles long lines. 23438 GREP=$lt_GREP 23439 23440 # An ERE matcher. 23441 EGREP=$lt_EGREP 23442 23443 # A literal string matcher. 23444 FGREP=$lt_FGREP 23445 23446 # A BSD- or MS-compatible name lister. 23447 NM=$lt_NM 23448 23449 # Whether we need soft or hard links. 23450 LN_S=$lt_LN_S 23451 23452 # What is the maximum length of a command? 23453 max_cmd_len=$max_cmd_len 23454 23455 # Object file suffix (normally "o"). 23456 objext=$ac_objext 23457 23458 # Executable file suffix (normally ""). 23459 exeext=$exeext 23460 23461 # whether the shell understands "unset". 23462 lt_unset=$lt_unset 23463 23464 # turn spaces into newlines. 23465 SP2NL=$lt_lt_SP2NL 23466 23467 # turn newlines into spaces. 23468 NL2SP=$lt_lt_NL2SP 23469 23470 # convert \$build file names to \$host format. 23471 to_host_file_cmd=$lt_cv_to_host_file_cmd 23472 23473 # convert \$build files to toolchain format. 23474 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23475 23476 # A file(cmd) program that detects file types. 23477 FILECMD=$lt_FILECMD 23478 23479 # An object symbol dumper. 23480 OBJDUMP=$lt_OBJDUMP 23481 23482 # Method to check whether dependent libraries are shared objects. 23483 deplibs_check_method=$lt_deplibs_check_method 23484 23485 # Command to use when deplibs_check_method = "file_magic". 23486 file_magic_cmd=$lt_file_magic_cmd 23487 23488 # How to find potential files when deplibs_check_method = "file_magic". 23489 file_magic_glob=$lt_file_magic_glob 23490 23491 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23492 want_nocaseglob=$lt_want_nocaseglob 23493 23494 # DLL creation program. 23495 DLLTOOL=$lt_DLLTOOL 23496 23497 # Command to associate shared and link libraries. 23498 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23499 23500 # The archiver. 23501 AR=$lt_AR 23502 23503 # Flags to create an archive (by configure). 23504 lt_ar_flags=$lt_ar_flags 23505 23506 # Flags to create an archive. 23507 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23508 23509 # How to feed a file listing to the archiver. 23510 archiver_list_spec=$lt_archiver_list_spec 23511 23512 # A symbol stripping program. 23513 STRIP=$lt_STRIP 23514 23515 # Commands used to install an old-style archive. 23516 RANLIB=$lt_RANLIB 23517 old_postinstall_cmds=$lt_old_postinstall_cmds 23518 old_postuninstall_cmds=$lt_old_postuninstall_cmds 23519 23520 # Whether to use a lock for old archive extraction. 23521 lock_old_archive_extraction=$lock_old_archive_extraction 23522 23523 # A C compiler. 23524 LTCC=$lt_CC 23525 23526 # LTCC compiler flags. 23527 LTCFLAGS=$lt_CFLAGS 23528 23529 # Take the output of nm and produce a listing of raw symbols and C names. 23530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23531 23532 # Transform the output of nm in a proper C declaration. 23533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23534 23535 # Transform the output of nm into a list of symbols to manually relocate. 23536 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23537 23538 # Transform the output of nm in a C name address pair. 23539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23540 23541 # Transform the output of nm in a C name address pair when lib prefix is needed. 23542 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23543 23544 # The name lister interface. 23545 nm_interface=$lt_lt_cv_nm_interface 23546 23547 # Specify filename containing input files for \$NM. 23548 nm_file_list_spec=$lt_nm_file_list_spec 23549 23550 # The root where to search for dependent libraries,and where our libraries should be installed. 23551 lt_sysroot=$lt_sysroot 23552 23553 # Command to truncate a binary pipe. 23554 lt_truncate_bin=$lt_lt_cv_truncate_bin 23555 23556 # The name of the directory that contains temporary libtool files. 23557 objdir=$objdir 23558 23559 # Used to examine libraries when file_magic_cmd begins with "file". 23560 MAGIC_CMD=$MAGIC_CMD 23561 23562 # Must we lock files when doing compilation? 23563 need_locks=$lt_need_locks 23564 23565 # Manifest tool. 23566 MANIFEST_TOOL=$lt_MANIFEST_TOOL 23567 23568 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23569 DSYMUTIL=$lt_DSYMUTIL 23570 23571 # Tool to change global to local symbols on Mac OS X. 23572 NMEDIT=$lt_NMEDIT 23573 23574 # Tool to manipulate fat objects and archives on Mac OS X. 23575 LIPO=$lt_LIPO 23576 23577 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 23578 OTOOL=$lt_OTOOL 23579 23580 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23581 OTOOL64=$lt_OTOOL64 23582 23583 # Old archive suffix (normally "a"). 23584 libext=$libext 23585 23586 # Shared library suffix (normally ".so"). 23587 shrext_cmds=$lt_shrext_cmds 23588 23589 # The commands to extract the exported symbol list from a shared archive. 23590 extract_expsyms_cmds=$lt_extract_expsyms_cmds 23591 23592 # Variables whose values should be saved in libtool wrapper scripts and 23593 # restored at link time. 23594 variables_saved_for_relink=$lt_variables_saved_for_relink 23595 23596 # Do we need the "lib" prefix for modules? 23597 need_lib_prefix=$need_lib_prefix 23598 23599 # Do we need a version for libraries? 23600 need_version=$need_version 23601 23602 # Library versioning type. 23603 version_type=$version_type 23604 23605 # Shared library runtime path variable. 23606 runpath_var=$runpath_var 23607 23608 # Shared library path variable. 23609 shlibpath_var=$shlibpath_var 23610 23611 # Is shlibpath searched before the hard-coded library search path? 23612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23613 23614 # Format of library name prefix. 23615 libname_spec=$lt_libname_spec 23616 23617 # List of archive names. First name is the real one, the rest are links. 23618 # The last name is the one that the linker finds with -lNAME 23619 library_names_spec=$lt_library_names_spec 23620 23621 # The coded name of the library, if different from the real name. 23622 soname_spec=$lt_soname_spec 23623 23624 # Permission mode override for installation of shared libraries. 23625 install_override_mode=$lt_install_override_mode 23626 23627 # Command to use after installation of a shared archive. 23628 postinstall_cmds=$lt_postinstall_cmds 23629 23630 # Command to use after uninstallation of a shared archive. 23631 postuninstall_cmds=$lt_postuninstall_cmds 23632 23633 # Commands used to finish a libtool library installation in a directory. 23634 finish_cmds=$lt_finish_cmds 23635 23636 # As "finish_cmds", except a single script fragment to be evaled but 23637 # not shown. 23638 finish_eval=$lt_finish_eval 23639 23640 # Whether we should hardcode library paths into libraries. 23641 hardcode_into_libs=$hardcode_into_libs 23642 23643 # Compile-time system search path for libraries. 23644 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23645 23646 # Detected run-time system search path for libraries. 23647 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23648 23649 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23650 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23651 23652 # Whether dlopen is supported. 23653 dlopen_support=$enable_dlopen 23654 23655 # Whether dlopen of programs is supported. 23656 dlopen_self=$enable_dlopen_self 23657 23658 # Whether dlopen of statically linked programs is supported. 23659 dlopen_self_static=$enable_dlopen_self_static 23660 23661 # Commands to strip libraries. 23662 old_striplib=$lt_old_striplib 23663 striplib=$lt_striplib 23664 23665 23666 # The linker used to build libraries. 23667 LD=$lt_LD 23668 23669 # How to create reloadable object files. 23670 reload_flag=$lt_reload_flag 23671 reload_cmds=$lt_reload_cmds 23672 23673 # Commands used to build an old-style archive. 23674 old_archive_cmds=$lt_old_archive_cmds 23675 23676 # A language specific compiler. 23677 CC=$lt_compiler 23678 23679 # Is the compiler the GNU compiler? 23680 with_gcc=$GCC 23681 23682 # Compiler flag to turn off builtin functions. 23683 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23684 23685 # Additional compiler flags for building library objects. 23686 pic_flag=$lt_lt_prog_compiler_pic 23687 23688 # How to pass a linker flag through the compiler. 23689 wl=$lt_lt_prog_compiler_wl 23690 23691 # Compiler flag to prevent dynamic linking. 23692 link_static_flag=$lt_lt_prog_compiler_static 23693 23694 # Does compiler simultaneously support -c and -o options? 23695 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23696 23697 # Whether or not to add -lc for building shared libraries. 23698 build_libtool_need_lc=$archive_cmds_need_lc 23699 23700 # Whether or not to disallow shared libs when runtime libs are static. 23701 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23702 23703 # Compiler flag to allow reflexive dlopens. 23704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23705 23706 # Compiler flag to generate shared objects directly from archives. 23707 whole_archive_flag_spec=$lt_whole_archive_flag_spec 23708 23709 # Whether the compiler copes with passing no objects directly. 23710 compiler_needs_object=$lt_compiler_needs_object 23711 23712 # Create an old-style archive from a shared archive. 23713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23714 23715 # Create a temporary old-style archive to link instead of a shared archive. 23716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23717 23718 # Commands used to build a shared archive. 23719 archive_cmds=$lt_archive_cmds 23720 archive_expsym_cmds=$lt_archive_expsym_cmds 23721 23722 # Commands used to build a loadable module if different from building 23723 # a shared archive. 23724 module_cmds=$lt_module_cmds 23725 module_expsym_cmds=$lt_module_expsym_cmds 23726 23727 # Whether we are building with GNU ld or not. 23728 with_gnu_ld=$lt_with_gnu_ld 23729 23730 # Flag that allows shared libraries with undefined symbols to be built. 23731 allow_undefined_flag=$lt_allow_undefined_flag 23732 23733 # Flag that enforces no undefined symbols. 23734 no_undefined_flag=$lt_no_undefined_flag 23735 23736 # Flag to hardcode \$libdir into a binary during linking. 23737 # This must work even if \$libdir does not exist 23738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23739 23740 # Whether we need a single "-rpath" flag with a separated argument. 23741 hardcode_libdir_separator=$lt_hardcode_libdir_separator 23742 23743 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23744 # DIR into the resulting binary. 23745 hardcode_direct=$hardcode_direct 23746 23747 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23748 # DIR into the resulting binary and the resulting library dependency is 23749 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 23750 # library is relocated. 23751 hardcode_direct_absolute=$hardcode_direct_absolute 23752 23753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23754 # into the resulting binary. 23755 hardcode_minus_L=$hardcode_minus_L 23756 23757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23758 # into the resulting binary. 23759 hardcode_shlibpath_var=$hardcode_shlibpath_var 23760 23761 # Set to "yes" if building a shared library automatically hardcodes DIR 23762 # into the library and all subsequent libraries and executables linked 23763 # against it. 23764 hardcode_automatic=$hardcode_automatic 23765 23766 # Set to yes if linker adds runtime paths of dependent libraries 23767 # to runtime path list. 23768 inherit_rpath=$inherit_rpath 23769 23770 # Whether libtool must link a program against all its dependency libraries. 23771 link_all_deplibs=$link_all_deplibs 23772 23773 # Set to "yes" if exported symbols are required. 23774 always_export_symbols=$always_export_symbols 23775 23776 # The commands to list exported symbols. 23777 export_symbols_cmds=$lt_export_symbols_cmds 23778 23779 # Symbols that should not be listed in the preloaded symbols. 23780 exclude_expsyms=$lt_exclude_expsyms 23781 23782 # Symbols that must always be exported. 23783 include_expsyms=$lt_include_expsyms 23784 23785 # Commands necessary for linking programs (against libraries) with templates. 23786 prelink_cmds=$lt_prelink_cmds 23787 23788 # Commands necessary for finishing linking programs. 23789 postlink_cmds=$lt_postlink_cmds 23790 23791 # Specify filename containing input files. 23792 file_list_spec=$lt_file_list_spec 23793 23794 # How to hardcode a shared library path into an executable. 23795 hardcode_action=$hardcode_action 23796 23797 # ### END LIBTOOL CONFIG 23798 23799 _LT_EOF 23800 23801 cat <<'_LT_EOF' >> "$cfgfile" 23802 23803 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23804 23805 # func_munge_path_list VARIABLE PATH 23806 # ----------------------------------- 23807 # VARIABLE is name of variable containing _space_ separated list of 23808 # directories to be munged by the contents of PATH, which is string 23809 # having a format: 23810 # "DIR[:DIR]:" 23811 # string "DIR[ DIR]" will be prepended to VARIABLE 23812 # ":DIR[:DIR]" 23813 # string "DIR[ DIR]" will be appended to VARIABLE 23814 # "DIRP[:DIRP]::[DIRA:]DIRA" 23815 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23816 # "DIRA[ DIRA]" will be appended to VARIABLE 23817 # "DIR[:DIR]" 23818 # VARIABLE will be replaced by "DIR[ DIR]" 23819 func_munge_path_list () 23820 { 23821 case x$2 in 23822 x) 23823 ;; 23824 *:) 23825 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23826 ;; 23827 x:*) 23828 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23829 ;; 23830 *::*) 23831 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23832 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23833 ;; 23834 *) 23835 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23836 ;; 23837 esac 23838 } 23839 23840 23841 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23842 func_cc_basename () 23843 { 23844 for cc_temp in $*""; do 23845 case $cc_temp in 23846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23848 \-*) ;; 23849 *) break;; 23850 esac 23851 done 23852 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23853 } 23854 23855 23856 # ### END FUNCTIONS SHARED WITH CONFIGURE 23857 23858 _LT_EOF 23859 23860 case $host_os in 23861 aix3*) 23862 cat <<\_LT_EOF >> "$cfgfile" 23863 # AIX sometimes has problems with the GCC collect2 program. For some 23864 # reason, if we set the COLLECT_NAMES environment variable, the problems 23865 # vanish in a puff of smoke. 23866 if test set != "${COLLECT_NAMES+set}"; then 23867 COLLECT_NAMES= 23868 export COLLECT_NAMES 23869 fi 23870 _LT_EOF 23871 ;; 23872 esac 23873 23874 23875 23876 ltmain=$ac_aux_dir/ltmain.sh 23877 23878 23879 # We use sed instead of cat because bash on DJGPP gets confused if 23880 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23881 # text mode, it properly converts lines to CR/LF. This bash problem 23882 # is reportedly fixed, but why not run on old versions too? 23883 $SED '$q' "$ltmain" >> "$cfgfile" \ 23884 || (rm -f "$cfgfile"; exit 1) 23885 23886 mv -f "$cfgfile" "$ofile" || 23887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23888 chmod +x "$ofile" 23889 23890 ;; 23891 23892 esac 23893 done # for ac_tag 23894 23895 23896 as_fn_exit 0 23897 _ACEOF 23898 ac_clean_files=$ac_clean_files_save 23899 23900 test $ac_write_fail = 0 || 23901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23902 23903 23904 # configure is writing to config.log, and then calls config.status. 23905 # config.status does its own redirection, appending to config.log. 23906 # Unfortunately, on DOS this fails, as config.log is still kept open 23907 # by configure, so config.status won't be able to write to it; its 23908 # output is simply discarded. So we exec the FD to /dev/null, 23909 # effectively closing config.log, so it can be properly (re)opened and 23910 # appended to by config.status. When coming back to configure, we 23911 # need to make the FD available again. 23912 if test "$no_create" != yes; then 23913 ac_cs_success=: 23914 ac_config_status_args= 23915 test "$silent" = yes && 23916 ac_config_status_args="$ac_config_status_args --quiet" 23917 exec 5>/dev/null 23918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23919 exec 5>>config.log 23920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23921 # would make configure fail if this is the last instruction. 23922 $ac_cs_success || as_fn_exit 1 23923 fi 23924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23926 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23927 fi 23928 23929 23930