1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXres 1.2.3. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/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/libxres/-/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 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='libXres' 617 PACKAGE_TARNAME='libXres' 618 PACKAGE_VERSION='1.2.3' 619 PACKAGE_STRING='libXres 1.2.3' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues' 621 PACKAGE_URL='' 622 623 ac_unique_file="Makefile.am" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 LIBOBJS 660 XRES_LIBS 661 XRES_CFLAGS 662 XTMALLOC_ZERO_CFLAGS 663 XMALLOC_ZERO_CFLAGS 664 MALLOC_ZERO_CFLAGS 665 MAN_SUBSTS 666 XORG_MAN_PAGE 667 ADMIN_MAN_DIR 668 DRIVER_MAN_DIR 669 MISC_MAN_DIR 670 FILE_MAN_DIR 671 LIB_MAN_DIR 672 APP_MAN_DIR 673 ADMIN_MAN_SUFFIX 674 DRIVER_MAN_SUFFIX 675 MISC_MAN_SUFFIX 676 FILE_MAN_SUFFIX 677 LIB_MAN_SUFFIX 678 APP_MAN_SUFFIX 679 INSTALL_CMD 680 PKG_CONFIG_LIBDIR 681 PKG_CONFIG_PATH 682 PKG_CONFIG 683 CHANGELOG_CMD 684 STRICT_CFLAGS 685 CWARNFLAGS 686 BASE_CFLAGS 687 LT_SYS_LIBRARY_PATH 688 OTOOL64 689 OTOOL 690 LIPO 691 NMEDIT 692 DSYMUTIL 693 MANIFEST_TOOL 694 RANLIB 695 ac_ct_AR 696 AR 697 DLLTOOL 698 OBJDUMP 699 FILECMD 700 LN_S 701 NM 702 ac_ct_DUMPBIN 703 DUMPBIN 704 LD 705 FGREP 706 EGREP 707 GREP 708 SED 709 am__fastdepCC_FALSE 710 am__fastdepCC_TRUE 711 CCDEPMODE 712 am__nodep 713 AMDEPBACKSLASH 714 AMDEP_FALSE 715 AMDEP_TRUE 716 am__include 717 DEPDIR 718 OBJEXT 719 EXEEXT 720 ac_ct_CC 721 CPPFLAGS 722 LDFLAGS 723 CFLAGS 724 CC 725 host_os 726 host_vendor 727 host_cpu 728 host 729 build_os 730 build_vendor 731 build_cpu 732 build 733 LIBTOOL 734 am__xargs_n 735 am__rm_f_notfound 736 AM_BACKSLASH 737 AM_DEFAULT_VERBOSITY 738 AM_DEFAULT_V 739 AM_V 740 CSCOPE 741 ETAGS 742 CTAGS 743 am__untar 744 am__tar 745 AMTAR 746 am__leading_dot 747 SET_MAKE 748 AWK 749 mkdir_p 750 MKDIR_P 751 INSTALL_STRIP_PROGRAM 752 STRIP 753 install_sh 754 MAKEINFO 755 AUTOHEADER 756 AUTOMAKE 757 AUTOCONF 758 ACLOCAL 759 VERSION 760 PACKAGE 761 CYGPATH_W 762 am__isrc 763 INSTALL_DATA 764 INSTALL_SCRIPT 765 INSTALL_PROGRAM 766 target_alias 767 host_alias 768 build_alias 769 LIBS 770 ECHO_T 771 ECHO_N 772 ECHO_C 773 DEFS 774 mandir 775 localedir 776 libdir 777 psdir 778 pdfdir 779 dvidir 780 htmldir 781 infodir 782 docdir 783 oldincludedir 784 includedir 785 runstatedir 786 localstatedir 787 sharedstatedir 788 sysconfdir 789 datadir 790 datarootdir 791 libexecdir 792 sbindir 793 bindir 794 program_transform_name 795 prefix 796 exec_prefix 797 PACKAGE_URL 798 PACKAGE_BUGREPORT 799 PACKAGE_STRING 800 PACKAGE_VERSION 801 PACKAGE_TARNAME 802 PACKAGE_NAME 803 PATH_SEPARATOR 804 SHELL 805 am__quote' 806 ac_subst_files='' 807 ac_user_opts=' 808 enable_option_checking 809 enable_silent_rules 810 enable_shared 811 enable_static 812 enable_pic 813 with_pic 814 enable_fast_install 815 enable_aix_soname 816 with_aix_soname 817 enable_dependency_tracking 818 with_gnu_ld 819 with_sysroot 820 enable_libtool_lock 821 enable_selective_werror 822 enable_strict_compilation 823 enable_malloc0returnsnull 824 ' 825 ac_precious_vars='build_alias 826 host_alias 827 target_alias 828 CC 829 CFLAGS 830 LDFLAGS 831 LIBS 832 CPPFLAGS 833 LT_SYS_LIBRARY_PATH 834 PKG_CONFIG 835 PKG_CONFIG_PATH 836 PKG_CONFIG_LIBDIR 837 XRES_CFLAGS 838 XRES_LIBS' 839 840 841 # Initialize some variables set by options. 842 ac_init_help= 843 ac_init_version=false 844 ac_unrecognized_opts= 845 ac_unrecognized_sep= 846 # The variables have the same names as the options, with 847 # dashes changed to underlines. 848 cache_file=/dev/null 849 exec_prefix=NONE 850 no_create= 851 no_recursion= 852 prefix=NONE 853 program_prefix=NONE 854 program_suffix=NONE 855 program_transform_name=s,x,x, 856 silent= 857 site= 858 srcdir= 859 verbose= 860 x_includes=NONE 861 x_libraries=NONE 862 863 # Installation directory options. 864 # These are left unexpanded so users can "make install exec_prefix=/foo" 865 # and all the variables that are supposed to be based on exec_prefix 866 # by default will actually change. 867 # Use braces instead of parens because sh, perl, etc. also accept them. 868 # (The list follows the same order as the GNU Coding Standards.) 869 bindir='${exec_prefix}/bin' 870 sbindir='${exec_prefix}/sbin' 871 libexecdir='${exec_prefix}/libexec' 872 datarootdir='${prefix}/share' 873 datadir='${datarootdir}' 874 sysconfdir='${prefix}/etc' 875 sharedstatedir='${prefix}/com' 876 localstatedir='${prefix}/var' 877 runstatedir='${localstatedir}/run' 878 includedir='${prefix}/include' 879 oldincludedir='/usr/include' 880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881 infodir='${datarootdir}/info' 882 htmldir='${docdir}' 883 dvidir='${docdir}' 884 pdfdir='${docdir}' 885 psdir='${docdir}' 886 libdir='${exec_prefix}/lib' 887 localedir='${datarootdir}/locale' 888 mandir='${datarootdir}/man' 889 890 ac_prev= 891 ac_dashdash= 892 for ac_option 893 do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: '$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952 "enable_$ac_useropt" 953 "*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: '$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978 "enable_$ac_useropt" 979 "*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1129 | --runstate | --runstat | --runsta | --runst | --runs \ 1130 | --run | --ru | --r) 1131 ac_prev=runstatedir ;; 1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1134 | --run=* | --ru=* | --r=*) 1135 runstatedir=$ac_optarg ;; 1136 1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1138 ac_prev=sbindir ;; 1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1140 | --sbi=* | --sb=*) 1141 sbindir=$ac_optarg ;; 1142 1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1145 | --sharedst | --shareds | --shared | --share | --shar \ 1146 | --sha | --sh) 1147 ac_prev=sharedstatedir ;; 1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1151 | --sha=* | --sh=*) 1152 sharedstatedir=$ac_optarg ;; 1153 1154 -site | --site | --sit) 1155 ac_prev=site ;; 1156 -site=* | --site=* | --sit=*) 1157 site=$ac_optarg ;; 1158 1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1160 ac_prev=srcdir ;; 1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1162 srcdir=$ac_optarg ;; 1163 1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1165 | --syscon | --sysco | --sysc | --sys | --sy) 1166 ac_prev=sysconfdir ;; 1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1169 sysconfdir=$ac_optarg ;; 1170 1171 -target | --target | --targe | --targ | --tar | --ta | --t) 1172 ac_prev=target_alias ;; 1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1174 target_alias=$ac_optarg ;; 1175 1176 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1177 verbose=yes ;; 1178 1179 -version | --version | --versio | --versi | --vers | -V) 1180 ac_init_version=: ;; 1181 1182 -with-* | --with-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: '$ac_useropt'" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=\$ac_optarg ;; 1197 1198 -without-* | --without-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: '$ac_useropt'" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207 "with_$ac_useropt" 1208 "*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=no ;; 1213 1214 --x) 1215 # Obsolete; use --with-x. 1216 with_x=yes ;; 1217 1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1219 | --x-incl | --x-inc | --x-in | --x-i) 1220 ac_prev=x_includes ;; 1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1223 x_includes=$ac_optarg ;; 1224 1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1227 ac_prev=x_libraries ;; 1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1230 x_libraries=$ac_optarg ;; 1231 1232 -*) as_fn_error $? "unrecognized option: '$ac_option' 1233 Try '$0 --help' for more information" 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 case $ac_envvar in #( 1240 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1241 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1242 esac 1243 eval $ac_envvar=\$ac_optarg 1244 export $ac_envvar ;; 1245 1246 *) 1247 # FIXME: should be removed in autoconf 3.0. 1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1252 ;; 1253 1254 esac 1255 done 1256 1257 if test -n "$ac_prev"; then 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1259 as_fn_error $? "missing argument to $ac_option" 1260 fi 1261 1262 if test -n "$ac_unrecognized_opts"; then 1263 case $enable_option_checking in 1264 no) ;; 1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1267 esac 1268 fi 1269 1270 # Check all directory arguments for consistency. 1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1272 datadir sysconfdir sharedstatedir localstatedir includedir \ 1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1274 libdir localedir mandir runstatedir 1275 do 1276 eval ac_val=\$$ac_var 1277 # Remove trailing slashes. 1278 case $ac_val in 1279 */ ) 1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1281 eval $ac_var=\$ac_val;; 1282 esac 1283 # Be sure to have absolute directory names. 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1289 done 1290 1291 # There might be people who depend on the old broken behavior: '$host' 1292 # used to hold the argument of --host etc. 1293 # FIXME: To remove some day. 1294 build=$build_alias 1295 host=$host_alias 1296 target=$target_alias 1297 1298 # FIXME: To remove some day. 1299 if test "x$host_alias" != x; then 1300 if test "x$build_alias" = x; then 1301 cross_compiling=maybe 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305 fi 1306 1307 ac_tool_prefix= 1308 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310 test "$silent" = yes && exec 6>/dev/null 1311 1312 1313 ac_pwd=`pwd` && test -n "$ac_pwd" && 1314 ac_ls_di=`ls -di .` && 1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 as_fn_error $? "working directory cannot be determined" 1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 as_fn_error $? "pwd does not report name of working directory" 1319 1320 1321 # Find the source files, if location was not specified. 1322 if test -z "$srcdir"; then 1323 ac_srcdir_defaulted=yes 1324 # Try the directory containing this script, then the parent directory. 1325 ac_confdir=`$as_dirname -- "$as_myself" || 1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1327 X"$as_myself" : 'X\(//\)[^/]' \| \ 1328 X"$as_myself" : 'X\(//\)$' \| \ 1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1330 printf "%s\n" X"$as_myself" | 1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)[^/].*/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\).*/{ 1344 s//\1/ 1345 q 1346 } 1347 s/.*/./; q'` 1348 srcdir=$ac_confdir 1349 if test ! -r "$srcdir/$ac_unique_file"; then 1350 srcdir=.. 1351 fi 1352 else 1353 ac_srcdir_defaulted=no 1354 fi 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1358 fi 1359 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1360 ac_abs_confdir=`( 1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1362 pwd)` 1363 # When building in place, set srcdir=. 1364 if test "$ac_abs_confdir" = "$ac_pwd"; then 1365 srcdir=. 1366 fi 1367 # Remove unnecessary trailing slashes from srcdir. 1368 # Double slashes in file names in object file debugging info 1369 # mess up M-x gdb in Emacs. 1370 case $srcdir in 1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1372 esac 1373 for ac_var in $ac_precious_vars; do 1374 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_env_${ac_var}_value=\$${ac_var} 1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1378 done 1379 1380 # 1381 # Report the --help message. 1382 # 1383 if test "$ac_init_help" = "long"; then 1384 # Omit some internal or obsolete options to make the list less imposing. 1385 # This message is too long to be a string in the A/UX 3.1 sh. 1386 cat <<_ACEOF 1387 'configure' configures libXres 1.2.3 to adapt to many kinds of systems. 1388 1389 Usage: $0 [OPTION]... [VAR=VALUE]... 1390 1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1392 VAR=VALUE. See below for descriptions of some of the useful variables. 1393 1394 Defaults for the options are specified in brackets. 1395 1396 Configuration: 1397 -h, --help display this help and exit 1398 --help=short display options specific to this package 1399 --help=recursive display the short help of all the included packages 1400 -V, --version display version information and exit 1401 -q, --quiet, --silent do not print 'checking ...' messages 1402 --cache-file=FILE cache test results in FILE [disabled] 1403 -C, --config-cache alias for '--cache-file=config.cache' 1404 -n, --no-create do not create output files 1405 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1406 1407 Installation directories: 1408 --prefix=PREFIX install architecture-independent files in PREFIX 1409 [$ac_default_prefix] 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1411 [PREFIX] 1412 1413 By default, 'make install' will install all the files in 1414 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1415 an installation prefix other than '$ac_default_prefix' using '--prefix', 1416 for instance '--prefix=\$HOME'. 1417 1418 For better control, use the options below. 1419 1420 Fine tuning of the installation directories: 1421 --bindir=DIR user executables [EPREFIX/bin] 1422 --sbindir=DIR system admin executables [EPREFIX/sbin] 1423 --libexecdir=DIR program executables [EPREFIX/libexec] 1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441 _ACEOF 1442 1443 cat <<\_ACEOF 1444 1445 Program names: 1446 --program-prefix=PREFIX prepend PREFIX to installed program names 1447 --program-suffix=SUFFIX append SUFFIX to installed program names 1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1449 1450 System types: 1451 --build=BUILD configure for building on BUILD [guessed] 1452 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1453 _ACEOF 1454 fi 1455 1456 if test -n "$ac_init_help"; then 1457 case $ac_init_help in 1458 short | recursive ) echo "Configuration of libXres 1.2.3:";; 1459 esac 1460 cat <<\_ACEOF 1461 1462 Optional Features: 1463 --disable-option-checking ignore unrecognized --enable/--with options 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --enable-silent-rules less verbose build output (undo: "make V=1") 1467 --disable-silent-rules verbose build output (undo: "make V=0") 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1471 both] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --enable-aix-soname=aix|svr4|both 1475 shared library versioning (aka "SONAME") variant to 1476 provide on AIX, [default=aix]. 1477 --enable-dependency-tracking 1478 do not reject slow dependency extractors 1479 --disable-dependency-tracking 1480 speeds up one-time build 1481 --disable-libtool-lock avoid locking (might break parallel builds) 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-malloc0returnsnull 1489 assume malloc(0) can return NULL (default: yes) 1490 1491 Optional Packages: 1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1496 compiler's sysroot if not specified). 1497 1498 Some influential environment variables: 1499 CC C compiler command 1500 CFLAGS C compiler flags 1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 nonstandard directory <lib dir> 1503 LIBS libraries to pass to the linker, e.g. -l<library> 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1505 you have headers in a nonstandard directory <include dir> 1506 LT_SYS_LIBRARY_PATH 1507 User-defined run-time library search path. 1508 PKG_CONFIG path to pkg-config utility 1509 PKG_CONFIG_PATH 1510 directories to add to pkg-config's search path 1511 PKG_CONFIG_LIBDIR 1512 path overriding pkg-config's built-in search path 1513 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config 1514 XRES_LIBS linker flags for XRES, overriding pkg-config 1515 1516 Use these variables to override the choices made by 'configure' or to help 1517 it to find libraries and programs with nonstandard names/locations. 1518 1519 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>. 1520 _ACEOF 1521 ac_status=$? 1522 fi 1523 1524 if test "$ac_init_help" = "recursive"; then 1525 # If there are subdirs, report their specific --help. 1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1527 test -d "$ac_dir" || 1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1529 continue 1530 ac_builddir=. 1531 1532 case "$ac_dir" in 1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1534 *) 1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1536 # A ".." for each directory in $ac_dir_suffix. 1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1538 case $ac_top_builddir_sub in 1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1541 esac ;; 1542 esac 1543 ac_abs_top_builddir=$ac_pwd 1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1545 # for backward compatibility: 1546 ac_top_builddir=$ac_top_build_prefix 1547 1548 case $srcdir in 1549 .) # We are building in place. 1550 ac_srcdir=. 1551 ac_top_srcdir=$ac_top_builddir_sub 1552 ac_abs_top_srcdir=$ac_pwd ;; 1553 [\\/]* | ?:[\\/]* ) # Absolute name. 1554 ac_srcdir=$srcdir$ac_dir_suffix; 1555 ac_top_srcdir=$srcdir 1556 ac_abs_top_srcdir=$srcdir ;; 1557 *) # Relative name. 1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1559 ac_top_srcdir=$ac_top_build_prefix$srcdir 1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1561 esac 1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1563 1564 cd "$ac_dir" || { ac_status=$?; continue; } 1565 # Check for configure.gnu first; this name is used for a wrapper for 1566 # Metaconfig's "Configure" on case-insensitive file systems. 1567 if test -f "$ac_srcdir/configure.gnu"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1570 elif test -f "$ac_srcdir/configure"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure" --help=recursive 1573 else 1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1575 fi || ac_status=$? 1576 cd "$ac_pwd" || { ac_status=$?; break; } 1577 done 1578 fi 1579 1580 test -n "$ac_init_help" && exit $ac_status 1581 if $ac_init_version; then 1582 cat <<\_ACEOF 1583 libXres configure 1.2.3 1584 generated by GNU Autoconf 2.72 1585 1586 Copyright (C) 2023 Free Software Foundation, Inc. 1587 This configure script is free software; the Free Software Foundation 1588 gives unlimited permission to copy, distribute and modify it. 1589 _ACEOF 1590 exit 1591 fi 1592 1593 ## ------------------------ ## 1594 ## Autoconf initialization. ## 1595 ## ------------------------ ## 1596 1597 # ac_fn_c_try_compile LINENO 1598 # -------------------------- 1599 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1600 ac_fn_c_try_compile () 1601 { 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext conftest.beam 1604 if { { ac_try="$ac_compile" 1605 case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608 esac 1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610 printf "%s\n" "$ac_try_echo"; } >&5 1611 (eval "$ac_compile") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest.$ac_objext 1623 then : 1624 ac_retval=0 1625 else case e in #( 1626 e) printf "%s\n" "$as_me: failed program was:" >&5 1627 sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 ;; 1630 esac 1631 fi 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 as_fn_set_status $ac_retval 1634 1635 } # ac_fn_c_try_compile 1636 1637 # ac_fn_c_try_link LINENO 1638 # ----------------------- 1639 # Try to link conftest.$ac_ext, and return whether this succeeded. 1640 ac_fn_c_try_link () 1641 { 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1644 if { { ac_try="$ac_link" 1645 case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648 esac 1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650 printf "%s\n" "$ac_try_echo"; } >&5 1651 (eval "$ac_link") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_c_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest$ac_exeext && { 1663 test "$cross_compiling" = yes || 1664 test -x conftest$ac_exeext 1665 } 1666 then : 1667 ac_retval=0 1668 else case e in #( 1669 e) printf "%s\n" "$as_me: failed program was:" >&5 1670 sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 ;; 1673 esac 1674 fi 1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1677 # interfere with the next link command; also delete a directory that is 1678 # left behind by Apple's compiler. We do this before executing the actions. 1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683 } # ac_fn_c_try_link 1684 1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686 # ------------------------------------------------------- 1687 # Tests whether HEADER exists and can be compiled using the include files in 1688 # INCLUDES, setting the cache variable VAR accordingly. 1689 ac_fn_c_check_header_compile () 1690 { 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693 printf %s "checking for $2... " >&6; } 1694 if eval test \${$3+y} 1695 then : 1696 printf %s "(cached) " >&6 1697 else case e in #( 1698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699 /* end confdefs.h. */ 1700 $4 1701 #include <$2> 1702 _ACEOF 1703 if ac_fn_c_try_compile "$LINENO" 1704 then : 1705 eval "$3=yes" 1706 else case e in #( 1707 e) eval "$3=no" ;; 1708 esac 1709 fi 1710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1711 esac 1712 fi 1713 eval ac_res=\$$3 1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715 printf "%s\n" "$ac_res" >&6; } 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718 } # ac_fn_c_check_header_compile 1719 1720 # ac_fn_c_check_func LINENO FUNC VAR 1721 # ---------------------------------- 1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1723 ac_fn_c_check_func () 1724 { 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1727 printf %s "checking for $2... " >&6; } 1728 if eval test \${$3+y} 1729 then : 1730 printf %s "(cached) " >&6 1731 else case e in #( 1732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733 /* end confdefs.h. */ 1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1736 #define $2 innocuous_$2 1737 1738 /* System header to define __stub macros and hopefully few prototypes, 1739 which can conflict with char $2 (void); below. */ 1740 1741 #include <limits.h> 1742 #undef $2 1743 1744 /* Override any GCC internal prototype to avoid an error. 1745 Use char because int might match the return type of a GCC 1746 builtin and then its argument prototype would still apply. */ 1747 #ifdef __cplusplus 1748 extern "C" 1749 #endif 1750 char $2 (void); 1751 /* The GNU C library defines this for functions which it implements 1752 to always fail with ENOSYS. Some functions are actually named 1753 something starting with __ and the normal name is an alias. */ 1754 #if defined __stub_$2 || defined __stub___$2 1755 choke me 1756 #endif 1757 1758 int 1759 main (void) 1760 { 1761 return $2 (); 1762 ; 1763 return 0; 1764 } 1765 _ACEOF 1766 if ac_fn_c_try_link "$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 \ 1774 conftest$ac_exeext conftest.$ac_ext ;; 1775 esac 1776 fi 1777 eval ac_res=\$$3 1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1779 printf "%s\n" "$ac_res" >&6; } 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 1782 } # ac_fn_c_check_func 1783 1784 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1785 # ------------------------------------------------------------------ 1786 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1787 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1788 ac_fn_check_decl () 1789 { 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 as_decl_name=`echo $2|sed 's/ *(.*//'` 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1793 printf %s "checking whether $as_decl_name is declared... " >&6; } 1794 if eval test \${$3+y} 1795 then : 1796 printf %s "(cached) " >&6 1797 else case e in #( 1798 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1799 eval ac_save_FLAGS=\$$6 1800 as_fn_append $6 " $5" 1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1802 /* end confdefs.h. */ 1803 $4 1804 int 1805 main (void) 1806 { 1807 #ifndef $as_decl_name 1808 #ifdef __cplusplus 1809 (void) $as_decl_use; 1810 #else 1811 (void) $as_decl_name; 1812 #endif 1813 #endif 1814 1815 ; 1816 return 0; 1817 } 1818 _ACEOF 1819 if ac_fn_c_try_compile "$LINENO" 1820 then : 1821 eval "$3=yes" 1822 else case e in #( 1823 e) eval "$3=no" ;; 1824 esac 1825 fi 1826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1827 eval $6=\$ac_save_FLAGS 1828 ;; 1829 esac 1830 fi 1831 eval ac_res=\$$3 1832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1833 printf "%s\n" "$ac_res" >&6; } 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1835 1836 } # ac_fn_check_decl 1837 ac_configure_args_raw= 1838 for ac_arg 1839 do 1840 case $ac_arg in 1841 *\'*) 1842 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1843 esac 1844 as_fn_append ac_configure_args_raw " '$ac_arg'" 1845 done 1846 1847 case $ac_configure_args_raw in 1848 *$as_nl*) 1849 ac_safe_unquote= ;; 1850 *) 1851 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1852 ac_unsafe_a="$ac_unsafe_z#~" 1853 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1854 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1855 esac 1856 1857 cat >config.log <<_ACEOF 1858 This file contains any messages produced by compilers while 1859 running configure, to aid debugging if configure makes a mistake. 1860 1861 It was created by libXres $as_me 1.2.3, which was 1862 generated by GNU Autoconf 2.72. Invocation command line was 1863 1864 $ $0$ac_configure_args_raw 1865 1866 _ACEOF 1867 exec 5>>config.log 1868 { 1869 cat <<_ASUNAME 1870 ## --------- ## 1871 ## Platform. ## 1872 ## --------- ## 1873 1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1875 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1876 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1877 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1878 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1879 1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1881 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1882 1883 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1884 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1886 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1887 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1888 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1889 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1890 1891 _ASUNAME 1892 1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1894 for as_dir in $PATH 1895 do 1896 IFS=$as_save_IFS 1897 case $as_dir in #((( 1898 '') as_dir=./ ;; 1899 */) ;; 1900 *) as_dir=$as_dir/ ;; 1901 esac 1902 printf "%s\n" "PATH: $as_dir" 1903 done 1904 IFS=$as_save_IFS 1905 1906 } >&5 1907 1908 cat >&5 <<_ACEOF 1909 1910 1911 ## ----------- ## 1912 ## Core tests. ## 1913 ## ----------- ## 1914 1915 _ACEOF 1916 1917 1918 # Keep a trace of the command line. 1919 # Strip out --no-create and --no-recursion so they do not pile up. 1920 # Strip out --silent because we don't want to record it for future runs. 1921 # Also quote any args containing shell meta-characters. 1922 # Make two passes to allow for proper duplicate-argument suppression. 1923 ac_configure_args= 1924 ac_configure_args0= 1925 ac_configure_args1= 1926 ac_must_keep_next=false 1927 for ac_pass in 1 2 1928 do 1929 for ac_arg 1930 do 1931 case $ac_arg in 1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1934 | -silent | --silent | --silen | --sile | --sil) 1935 continue ;; 1936 *\'*) 1937 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1938 esac 1939 case $ac_pass in 1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1941 2) 1942 as_fn_append ac_configure_args1 " '$ac_arg'" 1943 if test $ac_must_keep_next = true; then 1944 ac_must_keep_next=false # Got value, back to normal. 1945 else 1946 case $ac_arg in 1947 *=* | --config-cache | -C | -disable-* | --disable-* \ 1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1950 | -with-* | --with-* | -without-* | --without-* | --x) 1951 case "$ac_configure_args0 " in 1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1953 esac 1954 ;; 1955 -* ) ac_must_keep_next=true ;; 1956 esac 1957 fi 1958 as_fn_append ac_configure_args " '$ac_arg'" 1959 ;; 1960 esac 1961 done 1962 done 1963 { ac_configure_args0=; unset ac_configure_args0;} 1964 { ac_configure_args1=; unset ac_configure_args1;} 1965 1966 # When interrupted or exit'd, cleanup temporary files, and complete 1967 # config.log. We remove comments because anyway the quotes in there 1968 # would cause problems or look ugly. 1969 # WARNING: Use '\'' to represent an apostrophe within the trap. 1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1971 trap 'exit_status=$? 1972 # Sanitize IFS. 1973 IFS=" "" $as_nl" 1974 # Save into config.log some information that might help in debugging. 1975 { 1976 echo 1977 1978 printf "%s\n" "## ---------------- ## 1979 ## Cache variables. ## 1980 ## ---------------- ##" 1981 echo 1982 # The following way of writing the cache mishandles newlines in values, 1983 ( 1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1985 eval ac_val=\$$ac_var 1986 case $ac_val in #( 1987 *${as_nl}*) 1988 case $ac_var in #( 1989 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1990 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1991 esac 1992 case $ac_var in #( 1993 _ | IFS | as_nl) ;; #( 1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1995 *) { eval $ac_var=; unset $ac_var;} ;; 1996 esac ;; 1997 esac 1998 done 1999 (set) 2>&1 | 2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2001 *${as_nl}ac_space=\ *) 2002 sed -n \ 2003 "s/'\''/'\''\\\\'\'''\''/g; 2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2005 ;; #( 2006 *) 2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2008 ;; 2009 esac | 2010 sort 2011 ) 2012 echo 2013 2014 printf "%s\n" "## ----------------- ## 2015 ## Output variables. ## 2016 ## ----------------- ##" 2017 echo 2018 for ac_var in $ac_subst_vars 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 printf "%s\n" "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 2028 if test -n "$ac_subst_files"; then 2029 printf "%s\n" "## ------------------- ## 2030 ## File substitutions. ## 2031 ## ------------------- ##" 2032 echo 2033 for ac_var in $ac_subst_files 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 printf "%s\n" "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 fi 2043 2044 if test -s confdefs.h; then 2045 printf "%s\n" "## ----------- ## 2046 ## confdefs.h. ## 2047 ## ----------- ##" 2048 echo 2049 cat confdefs.h 2050 echo 2051 fi 2052 test "$ac_signal" != 0 && 2053 printf "%s\n" "$as_me: caught signal $ac_signal" 2054 printf "%s\n" "$as_me: exit $exit_status" 2055 } >&5 2056 rm -f core *.core core.conftest.* && 2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2058 exit $exit_status 2059 ' 0 2060 for ac_signal in 1 2 13 15; do 2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2062 done 2063 ac_signal=0 2064 2065 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2066 rm -f -r conftest* confdefs.h 2067 2068 printf "%s\n" "/* confdefs.h */" > confdefs.h 2069 2070 # Predefined preprocessor variables. 2071 2072 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2073 2074 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2075 2076 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2077 2078 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2079 2080 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2081 2082 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2083 2084 2085 # Let the site file select an alternate cache file if it wants to. 2086 # Prefer an explicitly selected file to automatically selected ones. 2087 if test -n "$CONFIG_SITE"; then 2088 ac_site_files="$CONFIG_SITE" 2089 elif test "x$prefix" != xNONE; then 2090 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2091 else 2092 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2093 fi 2094 2095 for ac_site_file in $ac_site_files 2096 do 2097 case $ac_site_file in #( 2098 */*) : 2099 ;; #( 2100 *) : 2101 ac_site_file=./$ac_site_file ;; 2102 esac 2103 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2105 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2106 sed 's/^/| /' "$ac_site_file" >&5 2107 . "$ac_site_file" \ 2108 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2109 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2110 as_fn_error $? "failed to load site script $ac_site_file 2111 See 'config.log' for more details" "$LINENO" 5; } 2112 fi 2113 done 2114 2115 if test -r "$cache_file"; then 2116 # Some versions of bash will fail to source /dev/null (special files 2117 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2120 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2121 case $cache_file in 2122 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2123 *) . "./$cache_file";; 2124 esac 2125 fi 2126 else 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2128 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2129 >$cache_file 2130 fi 2131 2132 # Test code for whether the C compiler supports C89 (global declarations) 2133 ac_c_conftest_c89_globals=' 2134 /* Does the compiler advertise C89 conformance? 2135 Do not test the value of __STDC__, because some compilers set it to 0 2136 while being otherwise adequately conformant. */ 2137 #if !defined __STDC__ 2138 # error "Compiler does not advertise C89 conformance" 2139 #endif 2140 2141 #include <stddef.h> 2142 #include <stdarg.h> 2143 struct stat; 2144 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2145 struct buf { int x; }; 2146 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2147 static char *e (char **p, int i) 2148 { 2149 return p[i]; 2150 } 2151 static char *f (char * (*g) (char **, int), char **p, ...) 2152 { 2153 char *s; 2154 va_list v; 2155 va_start (v,p); 2156 s = g (p, va_arg (v,int)); 2157 va_end (v); 2158 return s; 2159 } 2160 2161 /* C89 style stringification. */ 2162 #define noexpand_stringify(a) #a 2163 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2164 2165 /* C89 style token pasting. Exercises some of the corner cases that 2166 e.g. old MSVC gets wrong, but not very hard. */ 2167 #define noexpand_concat(a,b) a##b 2168 #define expand_concat(a,b) noexpand_concat(a,b) 2169 extern int vA; 2170 extern int vbee; 2171 #define aye A 2172 #define bee B 2173 int *pvA = &expand_concat(v,aye); 2174 int *pvbee = &noexpand_concat(v,bee); 2175 2176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2177 function prototypes and stuff, but not \xHH hex character constants. 2178 These do not provoke an error unfortunately, instead are silently treated 2179 as an "x". The following induces an error, until -std is added to get 2180 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2181 array size at least. It is necessary to write \x00 == 0 to get something 2182 that is true only with -std. */ 2183 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2184 2185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2186 inside strings and character constants. */ 2187 #define FOO(x) '\''x'\'' 2188 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2189 2190 int test (int i, double x); 2191 struct s1 {int (*f) (int a);}; 2192 struct s2 {int (*f) (double a);}; 2193 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2194 int, int);' 2195 2196 # Test code for whether the C compiler supports C89 (body of main). 2197 ac_c_conftest_c89_main=' 2198 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2199 ' 2200 2201 # Test code for whether the C compiler supports C99 (global declarations) 2202 ac_c_conftest_c99_globals=' 2203 /* Does the compiler advertise C99 conformance? */ 2204 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2205 # error "Compiler does not advertise C99 conformance" 2206 #endif 2207 2208 // See if C++-style comments work. 2209 2210 #include <stdbool.h> 2211 extern int puts (const char *); 2212 extern int printf (const char *, ...); 2213 extern int dprintf (int, const char *, ...); 2214 extern void *malloc (size_t); 2215 extern void free (void *); 2216 2217 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2218 // dprintf is used instead of fprintf to avoid needing to declare 2219 // FILE and stderr. 2220 #define debug(...) dprintf (2, __VA_ARGS__) 2221 #define showlist(...) puts (#__VA_ARGS__) 2222 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2223 static void 2224 test_varargs_macros (void) 2225 { 2226 int x = 1234; 2227 int y = 5678; 2228 debug ("Flag"); 2229 debug ("X = %d\n", x); 2230 showlist (The first, second, and third items.); 2231 report (x>y, "x is %d but y is %d", x, y); 2232 } 2233 2234 // Check long long types. 2235 #define BIG64 18446744073709551615ull 2236 #define BIG32 4294967295ul 2237 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2238 #if !BIG_OK 2239 #error "your preprocessor is broken" 2240 #endif 2241 #if BIG_OK 2242 #else 2243 #error "your preprocessor is broken" 2244 #endif 2245 static long long int bignum = -9223372036854775807LL; 2246 static unsigned long long int ubignum = BIG64; 2247 2248 struct incomplete_array 2249 { 2250 int datasize; 2251 double data[]; 2252 }; 2253 2254 struct named_init { 2255 int number; 2256 const wchar_t *name; 2257 double average; 2258 }; 2259 2260 typedef const char *ccp; 2261 2262 static inline int 2263 test_restrict (ccp restrict text) 2264 { 2265 // Iterate through items via the restricted pointer. 2266 // Also check for declarations in for loops. 2267 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2268 continue; 2269 return 0; 2270 } 2271 2272 // Check varargs and va_copy. 2273 static bool 2274 test_varargs (const char *format, ...) 2275 { 2276 va_list args; 2277 va_start (args, format); 2278 va_list args_copy; 2279 va_copy (args_copy, args); 2280 2281 const char *str = ""; 2282 int number = 0; 2283 float fnumber = 0; 2284 2285 while (*format) 2286 { 2287 switch (*format++) 2288 { 2289 case '\''s'\'': // string 2290 str = va_arg (args_copy, const char *); 2291 break; 2292 case '\''d'\'': // int 2293 number = va_arg (args_copy, int); 2294 break; 2295 case '\''f'\'': // float 2296 fnumber = va_arg (args_copy, double); 2297 break; 2298 default: 2299 break; 2300 } 2301 } 2302 va_end (args_copy); 2303 va_end (args); 2304 2305 return *str && number && fnumber; 2306 } 2307 ' 2308 2309 # Test code for whether the C compiler supports C99 (body of main). 2310 ac_c_conftest_c99_main=' 2311 // Check bool. 2312 _Bool success = false; 2313 success |= (argc != 0); 2314 2315 // Check restrict. 2316 if (test_restrict ("String literal") == 0) 2317 success = true; 2318 char *restrict newvar = "Another string"; 2319 2320 // Check varargs. 2321 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2322 test_varargs_macros (); 2323 2324 // Check flexible array members. 2325 struct incomplete_array *ia = 2326 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2327 ia->datasize = 10; 2328 for (int i = 0; i < ia->datasize; ++i) 2329 ia->data[i] = i * 1.234; 2330 // Work around memory leak warnings. 2331 free (ia); 2332 2333 // Check named initializers. 2334 struct named_init ni = { 2335 .number = 34, 2336 .name = L"Test wide string", 2337 .average = 543.34343, 2338 }; 2339 2340 ni.number = 58; 2341 2342 int dynamic_array[ni.number]; 2343 dynamic_array[0] = argv[0][0]; 2344 dynamic_array[ni.number - 1] = 543; 2345 2346 // work around unused variable warnings 2347 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2348 || dynamic_array[ni.number - 1] != 543); 2349 ' 2350 2351 # Test code for whether the C compiler supports C11 (global declarations) 2352 ac_c_conftest_c11_globals=' 2353 /* Does the compiler advertise C11 conformance? */ 2354 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2355 # error "Compiler does not advertise C11 conformance" 2356 #endif 2357 2358 // Check _Alignas. 2359 char _Alignas (double) aligned_as_double; 2360 char _Alignas (0) no_special_alignment; 2361 extern char aligned_as_int; 2362 char _Alignas (0) _Alignas (int) aligned_as_int; 2363 2364 // Check _Alignof. 2365 enum 2366 { 2367 int_alignment = _Alignof (int), 2368 int_array_alignment = _Alignof (int[100]), 2369 char_alignment = _Alignof (char) 2370 }; 2371 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2372 2373 // Check _Noreturn. 2374 int _Noreturn does_not_return (void) { for (;;) continue; } 2375 2376 // Check _Static_assert. 2377 struct test_static_assert 2378 { 2379 int x; 2380 _Static_assert (sizeof (int) <= sizeof (long int), 2381 "_Static_assert does not work in struct"); 2382 long int y; 2383 }; 2384 2385 // Check UTF-8 literals. 2386 #define u8 syntax error! 2387 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2388 2389 // Check duplicate typedefs. 2390 typedef long *long_ptr; 2391 typedef long int *long_ptr; 2392 typedef long_ptr long_ptr; 2393 2394 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2395 struct anonymous 2396 { 2397 union { 2398 struct { int i; int j; }; 2399 struct { int k; long int l; } w; 2400 }; 2401 int m; 2402 } v1; 2403 ' 2404 2405 # Test code for whether the C compiler supports C11 (body of main). 2406 ac_c_conftest_c11_main=' 2407 _Static_assert ((offsetof (struct anonymous, i) 2408 == offsetof (struct anonymous, w.k)), 2409 "Anonymous union alignment botch"); 2410 v1.i = 2; 2411 v1.w.k = 5; 2412 ok |= v1.i != 5; 2413 ' 2414 2415 # Test code for whether the C compiler supports C11 (complete). 2416 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2417 ${ac_c_conftest_c99_globals} 2418 ${ac_c_conftest_c11_globals} 2419 2420 int 2421 main (int argc, char **argv) 2422 { 2423 int ok = 0; 2424 ${ac_c_conftest_c89_main} 2425 ${ac_c_conftest_c99_main} 2426 ${ac_c_conftest_c11_main} 2427 return ok; 2428 } 2429 " 2430 2431 # Test code for whether the C compiler supports C99 (complete). 2432 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2433 ${ac_c_conftest_c99_globals} 2434 2435 int 2436 main (int argc, char **argv) 2437 { 2438 int ok = 0; 2439 ${ac_c_conftest_c89_main} 2440 ${ac_c_conftest_c99_main} 2441 return ok; 2442 } 2443 " 2444 2445 # Test code for whether the C compiler supports C89 (complete). 2446 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2447 2448 int 2449 main (int argc, char **argv) 2450 { 2451 int ok = 0; 2452 ${ac_c_conftest_c89_main} 2453 return ok; 2454 } 2455 " 2456 2457 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2458 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2459 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2460 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2461 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2462 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2463 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2464 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2465 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2466 2467 # Auxiliary files required by this configure script. 2468 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2469 2470 # Locations in which to look for auxiliary files. 2471 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2472 2473 # Search for a directory containing all of the required auxiliary files, 2474 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2475 # If we don't find one directory that contains all the files we need, 2476 # we report the set of missing files from the *first* directory in 2477 # $ac_aux_dir_candidates and give up. 2478 ac_missing_aux_files="" 2479 ac_first_candidate=: 2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482 as_found=false 2483 for as_dir in $ac_aux_dir_candidates 2484 do 2485 IFS=$as_save_IFS 2486 case $as_dir in #((( 2487 '') as_dir=./ ;; 2488 */) ;; 2489 *) as_dir=$as_dir/ ;; 2490 esac 2491 as_found=: 2492 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2494 ac_aux_dir_found=yes 2495 ac_install_sh= 2496 for ac_aux in $ac_aux_files 2497 do 2498 # As a special case, if "install-sh" is required, that requirement 2499 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2500 # and $ac_install_sh is set appropriately for whichever one is found. 2501 if test x"$ac_aux" = x"install-sh" 2502 then 2503 if test -f "${as_dir}install-sh"; then 2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2505 ac_install_sh="${as_dir}install-sh -c" 2506 elif test -f "${as_dir}install.sh"; then 2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2508 ac_install_sh="${as_dir}install.sh -c" 2509 elif test -f "${as_dir}shtool"; then 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2511 ac_install_sh="${as_dir}shtool install -c" 2512 else 2513 ac_aux_dir_found=no 2514 if $ac_first_candidate; then 2515 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2516 else 2517 break 2518 fi 2519 fi 2520 else 2521 if test -f "${as_dir}${ac_aux}"; then 2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2523 else 2524 ac_aux_dir_found=no 2525 if $ac_first_candidate; then 2526 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2527 else 2528 break 2529 fi 2530 fi 2531 fi 2532 done 2533 if test "$ac_aux_dir_found" = yes; then 2534 ac_aux_dir="$as_dir" 2535 break 2536 fi 2537 ac_first_candidate=false 2538 2539 as_found=false 2540 done 2541 IFS=$as_save_IFS 2542 if $as_found 2543 then : 2544 2545 else case e in #( 2546 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2547 esac 2548 fi 2549 2550 2551 # These three variables are undocumented and unsupported, 2552 # and are intended to be withdrawn in a future Autoconf release. 2553 # They can cause serious problems if a builder's source tree is in a directory 2554 # whose full name contains unusual characters. 2555 if test -f "${ac_aux_dir}config.guess"; then 2556 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2557 fi 2558 if test -f "${ac_aux_dir}config.sub"; then 2559 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2560 fi 2561 if test -f "$ac_aux_dir/configure"; then 2562 ac_configure="$SHELL ${ac_aux_dir}configure" 2563 fi 2564 2565 # Check that the precious variables saved in the cache have kept the same 2566 # value. 2567 ac_cache_corrupted=false 2568 for ac_var in $ac_precious_vars; do 2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value 2573 case $ac_old_set,$ac_new_set in 2574 set,) 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2576 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2577 ac_cache_corrupted=: ;; 2578 ,set) 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2580 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,);; 2583 *) 2584 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 # differences in whitespace do not lead to failure. 2586 ac_old_val_w=`echo x $ac_old_val` 2587 ac_new_val_w=`echo x $ac_new_val` 2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2590 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2591 ac_cache_corrupted=: 2592 else 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2594 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2595 eval $ac_var=\$ac_old_val 2596 fi 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2598 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2600 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2601 fi;; 2602 esac 2603 # Pass precious variables to config.status. 2604 if test "$ac_new_set" = set; then 2605 case $ac_new_val in 2606 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;; 2608 esac 2609 case " $ac_configure_args " in 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2612 esac 2613 fi 2614 done 2615 if $ac_cache_corrupted; then 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2617 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2619 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2620 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2621 and start over" "$LINENO" 5 2622 fi 2623 ## -------------------- ## 2624 ## Main body of script. ## 2625 ## -------------------- ## 2626 2627 ac_ext=c 2628 ac_cpp='$CPP $CPPFLAGS' 2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2632 2633 2634 2635 ac_config_headers="$ac_config_headers config.h" 2636 2637 2638 2639 # Initialize Automake 2640 am__api_version='1.18' 2641 2642 2643 2644 # Find a good install program. We prefer a C program (faster), 2645 # so one script is as good as another. But avoid the broken or 2646 # incompatible versions: 2647 # SysV /etc/install, /usr/sbin/install 2648 # SunOS /usr/etc/install 2649 # IRIX /sbin/install 2650 # AIX /bin/install 2651 # AmigaOS /C/install, which installs bootblocks on floppy discs 2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2655 # OS/2's system install, which has a completely different semantic 2656 # ./install, which can be erroneously created by make from ./install.sh. 2657 # Reject install programs that cannot install multiple files. 2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2659 printf %s "checking for a BSD-compatible install... " >&6; } 2660 if test -z "$INSTALL"; then 2661 if test ${ac_cv_path_install+y} 2662 then : 2663 printf %s "(cached) " >&6 2664 else case e in #( 2665 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666 for as_dir in $PATH 2667 do 2668 IFS=$as_save_IFS 2669 case $as_dir in #((( 2670 '') as_dir=./ ;; 2671 */) ;; 2672 *) as_dir=$as_dir/ ;; 2673 esac 2674 # Account for fact that we put trailing slashes in our PATH walk. 2675 case $as_dir in #(( 2676 ./ | /[cC]/* | \ 2677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2678 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2679 /usr/ucb/* ) ;; 2680 *) 2681 # OSF1 and SCO ODT 3.0 have their own names for install. 2682 # Don't use installbsd from OSF since it installs stuff as root 2683 # by default. 2684 for ac_prog in ginstall scoinst install; do 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2687 if test $ac_prog = install && 2688 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2689 # AIX install. It has an incompatible calling convention. 2690 : 2691 elif test $ac_prog = install && 2692 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2693 # program-specific install script used by HP pwplus--don't use. 2694 : 2695 else 2696 rm -rf conftest.one conftest.two conftest.dir 2697 echo one > conftest.one 2698 echo two > conftest.two 2699 mkdir conftest.dir 2700 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2701 test -s conftest.one && test -s conftest.two && 2702 test -s conftest.dir/conftest.one && 2703 test -s conftest.dir/conftest.two 2704 then 2705 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2706 break 3 2707 fi 2708 fi 2709 fi 2710 done 2711 done 2712 ;; 2713 esac 2714 2715 done 2716 IFS=$as_save_IFS 2717 2718 rm -rf conftest.one conftest.two conftest.dir 2719 ;; 2720 esac 2721 fi 2722 if test ${ac_cv_path_install+y}; then 2723 INSTALL=$ac_cv_path_install 2724 else 2725 # As a last resort, use the slow shell script. Don't cache a 2726 # value for INSTALL within a source directory, because that will 2727 # break other packages using the cache if that directory is 2728 # removed, or if the value is a relative name. 2729 INSTALL=$ac_install_sh 2730 fi 2731 fi 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2733 printf "%s\n" "$INSTALL" >&6; } 2734 2735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2736 # It thinks the first close brace ends the variable substitution. 2737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2738 2739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2740 2741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2742 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2744 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2745 if test ${am_cv_sleep_fractional_seconds+y} 2746 then : 2747 printf %s "(cached) " >&6 2748 else case e in #( 2749 e) if sleep 0.001 2>/dev/null 2750 then : 2751 am_cv_sleep_fractional_seconds=yes 2752 else case e in #( 2753 e) am_cv_sleep_fractional_seconds=no ;; 2754 esac 2755 fi 2756 ;; 2757 esac 2758 fi 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2760 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2761 2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2763 printf %s "checking filesystem timestamp resolution... " >&6; } 2764 if test ${am_cv_filesystem_timestamp_resolution+y} 2765 then : 2766 printf %s "(cached) " >&6 2767 else case e in #( 2768 e) # Default to the worst case. 2769 am_cv_filesystem_timestamp_resolution=2 2770 2771 # Only try to go finer than 1 sec if sleep can do it. 2772 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2773 # - 1 sec is not much of a win compared to 2 sec, and 2774 # - it takes 2 seconds to perform the test whether 1 sec works. 2775 # 2776 # Instead, just use the default 2s on platforms that have 1s resolution, 2777 # accept the extra 1s delay when using $sleep in the Automake tests, in 2778 # exchange for not incurring the 2s delay for running the test for all 2779 # packages. 2780 # 2781 am_try_resolutions= 2782 if test "$am_cv_sleep_fractional_seconds" = yes; then 2783 # Even a millisecond often causes a bunch of false positives, 2784 # so just try a hundredth of a second. The time saved between .001 and 2785 # .01 is not terribly consequential. 2786 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2787 fi 2788 2789 # In order to catch current-generation FAT out, we must *modify* files 2790 # that already exist; the *creation* timestamp is finer. Use names 2791 # that make ls -t sort them differently when they have equal 2792 # timestamps than when they have distinct timestamps, keeping 2793 # in mind that ls -t prints the *newest* file first. 2794 rm -f conftest.ts? 2795 : > conftest.ts1 2796 : > conftest.ts2 2797 : > conftest.ts3 2798 2799 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2800 # clobber the current shell's arguments. (Outer-level square brackets 2801 # are removed by m4; they're present so that m4 does not expand 2802 # <dollar><star>; be careful, easy to get confused.) 2803 if ( 2804 set X `ls -t conftest.ts[12]` && 2805 { 2806 test "$*" != "X conftest.ts1 conftest.ts2" || 2807 test "$*" != "X conftest.ts2 conftest.ts1"; 2808 } 2809 ); then :; else 2810 # If neither matched, then we have a broken ls. This can happen 2811 # if, for instance, CONFIG_SHELL is bash and it inherits a 2812 # broken ls alias from the environment. This has actually 2813 # happened. Such a system could not be considered "sane". 2814 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2816 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2817 as_fn_error $? "ls -t produces unexpected output. 2818 Make sure there is not a broken ls alias in your environment. 2819 See 'config.log' for more details" "$LINENO" 5; } 2820 fi 2821 2822 for am_try_res in $am_try_resolutions; do 2823 # Any one fine-grained sleep might happen to cross the boundary 2824 # between two values of a coarser actual resolution, but if we do 2825 # two fine-grained sleeps in a row, at least one of them will fall 2826 # entirely within a coarse interval. 2827 echo alpha > conftest.ts1 2828 sleep $am_try_res 2829 echo beta > conftest.ts2 2830 sleep $am_try_res 2831 echo gamma > conftest.ts3 2832 2833 # We assume that 'ls -t' will make use of high-resolution 2834 # timestamps if the operating system supports them at all. 2835 if (set X `ls -t conftest.ts?` && 2836 test "$2" = conftest.ts3 && 2837 test "$3" = conftest.ts2 && 2838 test "$4" = conftest.ts1); then 2839 # 2840 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2841 # because we don't need to test make. 2842 make_ok=true 2843 if test $am_try_res != 1; then 2844 # But if we've succeeded so far with a subsecond resolution, we 2845 # have one more thing to check: make. It can happen that 2846 # everything else supports the subsecond mtimes, but make doesn't; 2847 # notably on macOS, which ships make 3.81 from 2006 (the last one 2848 # released under GPLv2). https://bugs.gnu.org/68808 2849 # 2850 # We test $MAKE if it is defined in the environment, else "make". 2851 # It might get overridden later, but our hope is that in practice 2852 # it does not matter: it is the system "make" which is (by far) 2853 # the most likely to be broken, whereas if the user overrides it, 2854 # probably they did so with a better, or at least not worse, make. 2855 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2856 # 2857 # Create a Makefile (real tab character here): 2858 rm -f conftest.mk 2859 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2860 echo ' touch conftest.ts2' >>conftest.mk 2861 # 2862 # Now, running 2863 # touch conftest.ts1; touch conftest.ts2; make 2864 # should touch ts1 because ts2 is newer. This could happen by luck, 2865 # but most often, it will fail if make's support is insufficient. So 2866 # test for several consecutive successes. 2867 # 2868 # (We reuse conftest.ts[12] because we still want to modify existing 2869 # files, not create new ones, per above.) 2870 n=0 2871 make=${MAKE-make} 2872 until test $n -eq 3; do 2873 echo one > conftest.ts1 2874 sleep $am_try_res 2875 echo two > conftest.ts2 # ts2 should now be newer than ts1 2876 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2877 make_ok=false 2878 break # out of $n loop 2879 fi 2880 n=`expr $n + 1` 2881 done 2882 fi 2883 # 2884 if $make_ok; then 2885 # Everything we know to check worked out, so call this resolution good. 2886 am_cv_filesystem_timestamp_resolution=$am_try_res 2887 break # out of $am_try_res loop 2888 fi 2889 # Otherwise, we'll go on to check the next resolution. 2890 fi 2891 done 2892 rm -f conftest.ts? 2893 # (end _am_filesystem_timestamp_resolution) 2894 ;; 2895 esac 2896 fi 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2898 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2899 2900 # This check should not be cached, as it may vary across builds of 2901 # different projects. 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2903 printf %s "checking whether build environment is sane... " >&6; } 2904 # Reject unsafe characters in $srcdir or the absolute working directory 2905 # name. Accept space and tab only in the latter. 2906 am_lf=' 2907 ' 2908 case `pwd` in 2909 *[\\\"\#\$\&\'\`$am_lf]*) 2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2911 printf "%s\n" "no" >&6; } 2912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2913 esac 2914 case $srcdir in 2915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917 printf "%s\n" "no" >&6; } 2918 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2919 esac 2920 2921 # Do 'set' in a subshell so we don't clobber the current shell's 2922 # arguments. Must try -L first in case configure is actually a 2923 # symlink; some systems play weird games with the mod time of symlinks 2924 # (eg FreeBSD returns the mod time of the symlink's containing 2925 # directory). 2926 am_build_env_is_sane=no 2927 am_has_slept=no 2928 rm -f conftest.file 2929 for am_try in 1 2; do 2930 echo "timestamp, slept: $am_has_slept" > conftest.file 2931 if ( 2932 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2933 if test "$*" = "X"; then 2934 # -L didn't work. 2935 set X `ls -t "$srcdir/configure" conftest.file` 2936 fi 2937 test "$2" = conftest.file 2938 ); then 2939 am_build_env_is_sane=yes 2940 break 2941 fi 2942 # Just in case. 2943 sleep "$am_cv_filesystem_timestamp_resolution" 2944 am_has_slept=yes 2945 done 2946 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2948 printf "%s\n" "$am_build_env_is_sane" >&6; } 2949 if test "$am_build_env_is_sane" = no; then 2950 as_fn_error $? "newly created file is older than distributed files! 2951 Check your system clock" "$LINENO" 5 2952 fi 2953 2954 # If we didn't sleep, we still need to ensure time stamps of config.status and 2955 # generated files are strictly newer. 2956 am_sleep_pid= 2957 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2958 then : 2959 2960 else case e in #( 2961 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2962 am_sleep_pid=$! 2963 ;; 2964 esac 2965 fi 2966 2967 rm -f conftest.file 2968 2969 test "$program_prefix" != NONE && 2970 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2971 # Use a double $ so make ignores it. 2972 test "$program_suffix" != NONE && 2973 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2974 # Double any \ or $. 2975 # By default was 's,x,x', remove it if useless. 2976 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2977 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2978 2979 2980 # Expand $ac_aux_dir to an absolute path. 2981 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2982 2983 2984 if test x"${MISSING+set}" != xset; then 2985 MISSING="\${SHELL} '$am_aux_dir/missing'" 2986 fi 2987 # Use eval to expand $SHELL 2988 if eval "$MISSING --is-lightweight"; then 2989 am_missing_run="$MISSING " 2990 else 2991 am_missing_run= 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2993 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2994 fi 2995 2996 if test x"${install_sh+set}" != xset; then 2997 case $am_aux_dir in 2998 *\ * | *\ *) 2999 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3000 *) 3001 install_sh="\${SHELL} $am_aux_dir/install-sh" 3002 esac 3003 fi 3004 3005 # Installed binaries are usually stripped using 'strip' when the user 3006 # run "make install-strip". However 'strip' might not be the right 3007 # tool to use in cross-compilation environments, therefore Automake 3008 # will honor the 'STRIP' environment variable to overrule this program. 3009 if test "$cross_compiling" != no; then 3010 if test -n "$ac_tool_prefix"; then 3011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3012 set dummy ${ac_tool_prefix}strip; ac_word=$2 3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014 printf %s "checking for $ac_word... " >&6; } 3015 if test ${ac_cv_prog_STRIP+y} 3016 then : 3017 printf %s "(cached) " >&6 3018 else case e in #( 3019 e) if test -n "$STRIP"; then 3020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3021 else 3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023 for as_dir in $PATH 3024 do 3025 IFS=$as_save_IFS 3026 case $as_dir in #((( 3027 '') as_dir=./ ;; 3028 */) ;; 3029 *) as_dir=$as_dir/ ;; 3030 esac 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037 done 3038 done 3039 IFS=$as_save_IFS 3040 3041 fi ;; 3042 esac 3043 fi 3044 STRIP=$ac_cv_prog_STRIP 3045 if test -n "$STRIP"; then 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3047 printf "%s\n" "$STRIP" >&6; } 3048 else 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050 printf "%s\n" "no" >&6; } 3051 fi 3052 3053 3054 fi 3055 if test -z "$ac_cv_prog_STRIP"; then 3056 ac_ct_STRIP=$STRIP 3057 # Extract the first word of "strip", so it can be a program name with args. 3058 set dummy strip; ac_word=$2 3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060 printf %s "checking for $ac_word... " >&6; } 3061 if test ${ac_cv_prog_ac_ct_STRIP+y} 3062 then : 3063 printf %s "(cached) " >&6 3064 else case e in #( 3065 e) if test -n "$ac_ct_STRIP"; then 3066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3067 else 3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069 for as_dir in $PATH 3070 do 3071 IFS=$as_save_IFS 3072 case $as_dir in #((( 3073 '') as_dir=./ ;; 3074 */) ;; 3075 *) as_dir=$as_dir/ ;; 3076 esac 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3079 ac_cv_prog_ac_ct_STRIP="strip" 3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083 done 3084 done 3085 IFS=$as_save_IFS 3086 3087 fi ;; 3088 esac 3089 fi 3090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3091 if test -n "$ac_ct_STRIP"; then 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3093 printf "%s\n" "$ac_ct_STRIP" >&6; } 3094 else 3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3096 printf "%s\n" "no" >&6; } 3097 fi 3098 3099 if test "x$ac_ct_STRIP" = x; then 3100 STRIP=":" 3101 else 3102 case $cross_compiling:$ac_tool_warned in 3103 yes:) 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3106 ac_tool_warned=yes ;; 3107 esac 3108 STRIP=$ac_ct_STRIP 3109 fi 3110 else 3111 STRIP="$ac_cv_prog_STRIP" 3112 fi 3113 3114 fi 3115 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3116 3117 3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3119 printf %s "checking for a race-free mkdir -p... " >&6; } 3120 if test -z "$MKDIR_P"; then 3121 if test ${ac_cv_path_mkdir+y} 3122 then : 3123 printf %s "(cached) " >&6 3124 else case e in #( 3125 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3127 do 3128 IFS=$as_save_IFS 3129 case $as_dir in #((( 3130 '') as_dir=./ ;; 3131 */) ;; 3132 *) as_dir=$as_dir/ ;; 3133 esac 3134 for ac_prog in mkdir gmkdir; do 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3137 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3138 'mkdir ('*'coreutils) '* | \ 3139 *'BusyBox '* | \ 3140 'mkdir (fileutils) '4.1*) 3141 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3142 break 3;; 3143 esac 3144 done 3145 done 3146 done 3147 IFS=$as_save_IFS 3148 ;; 3149 esac 3150 fi 3151 3152 test -d ./--version && rmdir ./--version 3153 if test ${ac_cv_path_mkdir+y}; then 3154 MKDIR_P="$ac_cv_path_mkdir -p" 3155 else 3156 # As a last resort, use plain mkdir -p, 3157 # in the hope it doesn't have the bugs of ancient mkdir. 3158 MKDIR_P='mkdir -p' 3159 fi 3160 fi 3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3162 printf "%s\n" "$MKDIR_P" >&6; } 3163 3164 for ac_prog in gawk mawk nawk awk 3165 do 3166 # Extract the first word of "$ac_prog", so it can be a program name with args. 3167 set dummy $ac_prog; ac_word=$2 3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169 printf %s "checking for $ac_word... " >&6; } 3170 if test ${ac_cv_prog_AWK+y} 3171 then : 3172 printf %s "(cached) " >&6 3173 else case e in #( 3174 e) if test -n "$AWK"; then 3175 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3176 else 3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178 for as_dir in $PATH 3179 do 3180 IFS=$as_save_IFS 3181 case $as_dir in #((( 3182 '') as_dir=./ ;; 3183 */) ;; 3184 *) as_dir=$as_dir/ ;; 3185 esac 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_AWK="$ac_prog" 3189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192 done 3193 done 3194 IFS=$as_save_IFS 3195 3196 fi ;; 3197 esac 3198 fi 3199 AWK=$ac_cv_prog_AWK 3200 if test -n "$AWK"; then 3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3202 printf "%s\n" "$AWK" >&6; } 3203 else 3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205 printf "%s\n" "no" >&6; } 3206 fi 3207 3208 3209 test -n "$AWK" && break 3210 done 3211 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3213 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3214 set x ${MAKE-make} 3215 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3216 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3217 then : 3218 printf %s "(cached) " >&6 3219 else case e in #( 3220 e) cat >conftest.make <<\_ACEOF 3221 SHELL = /bin/sh 3222 all: 3223 @echo '@@@%%%=$(MAKE)=@@@%%%' 3224 _ACEOF 3225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3226 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3227 *@@@%%%=?*=@@@%%%*) 3228 eval ac_cv_prog_make_${ac_make}_set=yes;; 3229 *) 3230 eval ac_cv_prog_make_${ac_make}_set=no;; 3231 esac 3232 rm -f conftest.make ;; 3233 esac 3234 fi 3235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3237 printf "%s\n" "yes" >&6; } 3238 SET_MAKE= 3239 else 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241 printf "%s\n" "no" >&6; } 3242 SET_MAKE="MAKE=${MAKE-make}" 3243 fi 3244 3245 rm -rf .tst 2>/dev/null 3246 mkdir .tst 2>/dev/null 3247 if test -d .tst; then 3248 am__leading_dot=. 3249 else 3250 am__leading_dot=_ 3251 fi 3252 rmdir .tst 2>/dev/null 3253 3254 AM_DEFAULT_VERBOSITY=1 3255 # Check whether --enable-silent-rules was given. 3256 if test ${enable_silent_rules+y} 3257 then : 3258 enableval=$enable_silent_rules; 3259 fi 3260 3261 am_make=${MAKE-make} 3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3263 printf %s "checking whether $am_make supports nested variables... " >&6; } 3264 if test ${am_cv_make_support_nested_variables+y} 3265 then : 3266 printf %s "(cached) " >&6 3267 else case e in #( 3268 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3269 BAR0=false 3270 BAR1=true 3271 V=1 3272 am__doit: 3273 @$(TRUE) 3274 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3275 am_cv_make_support_nested_variables=yes 3276 else 3277 am_cv_make_support_nested_variables=no 3278 fi ;; 3279 esac 3280 fi 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3282 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3283 AM_BACKSLASH='\' 3284 3285 am__rm_f_notfound= 3286 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3287 then : 3288 3289 else case e in #( 3290 e) am__rm_f_notfound='""' ;; 3291 esac 3292 fi 3293 3294 3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3296 printf %s "checking xargs -n works... " >&6; } 3297 if test ${am_cv_xargs_n_works+y} 3298 then : 3299 printf %s "(cached) " >&6 3300 else case e in #( 3301 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3302 3" 3303 then : 3304 am_cv_xargs_n_works=yes 3305 else case e in #( 3306 e) am_cv_xargs_n_works=no ;; 3307 esac 3308 fi ;; 3309 esac 3310 fi 3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3312 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3313 if test "$am_cv_xargs_n_works" = yes 3314 then : 3315 am__xargs_n='xargs -n' 3316 else case e in #( 3317 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3318 ;; 3319 esac 3320 fi 3321 3322 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3323 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3324 # is not polluted with repeated "-I." 3325 am__isrc=' -I$(srcdir)' 3326 # test to see if srcdir already configured 3327 if test -f $srcdir/config.status; then 3328 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3329 fi 3330 fi 3331 3332 # test whether we have cygpath 3333 if test -z "$CYGPATH_W"; then 3334 if (cygpath --version) >/dev/null 2>/dev/null; then 3335 CYGPATH_W='cygpath -w' 3336 else 3337 CYGPATH_W=echo 3338 fi 3339 fi 3340 3341 3342 # Define the identity of the package. 3343 PACKAGE='libXres' 3344 VERSION='1.2.3' 3345 3346 3347 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3348 3349 3350 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3351 3352 # Some tools Automake needs. 3353 3354 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3355 3356 3357 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3358 3359 3360 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3361 3362 3363 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3364 3365 3366 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3367 3368 # For better backward compatibility. To be removed once Automake 1.9.x 3369 # dies out for good. For more background, see: 3370 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3371 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3372 mkdir_p='$(MKDIR_P)' 3373 3374 # We need awk for the "check" target (and possibly the TAP driver). The 3375 # system "awk" is bad on some platforms. 3376 # Always define AMTAR for backward compatibility. Yes, it's still used 3377 # in the wild :-( We should find a proper way to deprecate it ... 3378 AMTAR='$${TAR-tar}' 3379 3380 3381 # We'll loop over all known methods to create a tar archive until one works. 3382 _am_tools='gnutar plaintar pax cpio none' 3383 3384 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3385 # There is notably a 21 bits limit for the UID and the GID. In fact, 3386 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3387 # and bug#13588). 3388 am_max_uid=2097151 # 2^21 - 1 3389 am_max_gid=$am_max_uid 3390 # The $UID and $GID variables are not portable, so we need to resort 3391 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3392 # below are definitely unexpected, so allow the users to see them 3393 # (that is, avoid stderr redirection). 3394 am_uid=`id -u || echo unknown` 3395 am_gid=`id -g || echo unknown` 3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3397 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3398 if test x$am_uid = xunknown; then 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3400 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3401 elif test $am_uid -le $am_max_uid; then 3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3403 printf "%s\n" "yes" >&6; } 3404 else 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406 printf "%s\n" "no" >&6; } 3407 _am_tools=none 3408 fi 3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3410 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3411 if test x$gm_gid = xunknown; then 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3413 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3414 elif test $am_gid -le $am_max_gid; then 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3416 printf "%s\n" "yes" >&6; } 3417 else 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419 printf "%s\n" "no" >&6; } 3420 _am_tools=none 3421 fi 3422 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3424 printf %s "checking how to create a ustar tar archive... " >&6; } 3425 3426 # Go ahead even if we have the value already cached. We do so because we 3427 # need to set the values for the 'am__tar' and 'am__untar' variables. 3428 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3429 3430 for _am_tool in $_am_tools; do 3431 case $_am_tool in 3432 gnutar) 3433 for _am_tar in tar gnutar gtar; do 3434 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3435 ($_am_tar --version) >&5 2>&5 3436 ac_status=$? 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } && break 3439 done 3440 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3441 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3442 am__untar="$_am_tar -xf -" 3443 ;; 3444 plaintar) 3445 # Must skip GNU tar: if it does not support --format= it doesn't create 3446 # ustar tarball either. 3447 (tar --version) >/dev/null 2>&1 && continue 3448 am__tar='tar chf - "$$tardir"' 3449 am__tar_='tar chf - "$tardir"' 3450 am__untar='tar xf -' 3451 ;; 3452 pax) 3453 am__tar='pax -L -x ustar -w "$$tardir"' 3454 am__tar_='pax -L -x ustar -w "$tardir"' 3455 am__untar='pax -r' 3456 ;; 3457 cpio) 3458 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3459 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3460 am__untar='cpio -i -H ustar -d' 3461 ;; 3462 none) 3463 am__tar=false 3464 am__tar_=false 3465 am__untar=false 3466 ;; 3467 esac 3468 3469 # If the value was cached, stop now. We just wanted to have am__tar 3470 # and am__untar set. 3471 test -n "${am_cv_prog_tar_ustar}" && break 3472 3473 # tar/untar a dummy directory, and stop if the command works. 3474 rm -rf conftest.dir 3475 mkdir conftest.dir 3476 echo GrepMe > conftest.dir/file 3477 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3478 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3479 ac_status=$? 3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3481 (exit $ac_status); } 3482 rm -rf conftest.dir 3483 if test -s conftest.tar; then 3484 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3485 ($am__untar <conftest.tar) >&5 2>&5 3486 ac_status=$? 3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3488 (exit $ac_status); } 3489 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3490 (cat conftest.dir/file) >&5 2>&5 3491 ac_status=$? 3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); } 3494 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3495 fi 3496 done 3497 rm -rf conftest.dir 3498 3499 if test ${am_cv_prog_tar_ustar+y} 3500 then : 3501 printf %s "(cached) " >&6 3502 else case e in #( 3503 e) am_cv_prog_tar_ustar=$_am_tool ;; 3504 esac 3505 fi 3506 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3508 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3509 3510 3511 3512 3513 3514 # Variables for tags utilities; see am/tags.am 3515 if test -z "$CTAGS"; then 3516 CTAGS=ctags 3517 fi 3518 3519 if test -z "$ETAGS"; then 3520 ETAGS=etags 3521 fi 3522 3523 if test -z "$CSCOPE"; then 3524 CSCOPE=cscope 3525 fi 3526 3527 3528 3529 3530 3531 3532 3533 3534 # Initialize libtool 3535 case `pwd` in 3536 *\ * | *\ *) 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3538 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3539 esac 3540 3541 3542 3543 macro_version='2.5.4' 3544 macro_revision='2.5.4' 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 ltmain=$ac_aux_dir/ltmain.sh 3560 3561 3562 3563 # Make sure we can run config.sub. 3564 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3565 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3566 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3568 printf %s "checking build system type... " >&6; } 3569 if test ${ac_cv_build+y} 3570 then : 3571 printf %s "(cached) " >&6 3572 else case e in #( 3573 e) ac_build_alias=$build_alias 3574 test "x$ac_build_alias" = x && 3575 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3576 test "x$ac_build_alias" = x && 3577 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3578 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3579 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3580 ;; 3581 esac 3582 fi 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3584 printf "%s\n" "$ac_cv_build" >&6; } 3585 case $ac_cv_build in 3586 *-*-*) ;; 3587 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3588 esac 3589 build=$ac_cv_build 3590 ac_save_IFS=$IFS; IFS='-' 3591 set x $ac_cv_build 3592 shift 3593 build_cpu=$1 3594 build_vendor=$2 3595 shift; shift 3596 # Remember, the first character of IFS is used to create $*, 3597 # except with old shells: 3598 build_os=$* 3599 IFS=$ac_save_IFS 3600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3601 3602 3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3604 printf %s "checking host system type... " >&6; } 3605 if test ${ac_cv_host+y} 3606 then : 3607 printf %s "(cached) " >&6 3608 else case e in #( 3609 e) if test "x$host_alias" = x; then 3610 ac_cv_host=$ac_cv_build 3611 else 3612 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3613 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3614 fi 3615 ;; 3616 esac 3617 fi 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3619 printf "%s\n" "$ac_cv_host" >&6; } 3620 case $ac_cv_host in 3621 *-*-*) ;; 3622 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3623 esac 3624 host=$ac_cv_host 3625 ac_save_IFS=$IFS; IFS='-' 3626 set x $ac_cv_host 3627 shift 3628 host_cpu=$1 3629 host_vendor=$2 3630 shift; shift 3631 # Remember, the first character of IFS is used to create $*, 3632 # except with old shells: 3633 host_os=$* 3634 IFS=$ac_save_IFS 3635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3636 3637 3638 # Backslashify metacharacters that are still active within 3639 # double-quoted strings. 3640 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3641 3642 # Same as above, but do not quote variable references. 3643 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3644 3645 # Sed substitution to delay expansion of an escaped shell variable in a 3646 # double_quote_subst'ed string. 3647 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3648 3649 # Sed substitution to delay expansion of an escaped single quote. 3650 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3651 3652 # Sed substitution to avoid accidental globbing in evaled expressions 3653 no_glob_subst='s/\*/\\\*/g' 3654 3655 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3656 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3657 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3658 3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3660 printf %s "checking how to print strings... " >&6; } 3661 # Test print first, because it will be a builtin if present. 3662 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3663 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3664 ECHO='print -r --' 3665 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3666 ECHO='printf %s\n' 3667 else 3668 # Use this function as a fallback that always works. 3669 func_fallback_echo () 3670 { 3671 eval 'cat <<_LTECHO_EOF 3672 $1 3673 _LTECHO_EOF' 3674 } 3675 ECHO='func_fallback_echo' 3676 fi 3677 3678 # func_echo_all arg... 3679 # Invoke $ECHO with all args, space-separated. 3680 func_echo_all () 3681 { 3682 $ECHO "" 3683 } 3684 3685 case $ECHO in 3686 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3687 printf "%s\n" "printf" >&6; } ;; 3688 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3689 printf "%s\n" "print -r" >&6; } ;; 3690 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3691 printf "%s\n" "cat" >&6; } ;; 3692 esac 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 DEPDIR="${am__leading_dot}deps" 3717 3718 ac_config_commands="$ac_config_commands depfiles" 3719 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3721 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3722 cat > confinc.mk << 'END' 3723 am__doit: 3724 @echo this is the am__doit target >confinc.out 3725 .PHONY: am__doit 3726 END 3727 am__include="#" 3728 am__quote= 3729 # BSD make does it like this. 3730 echo '.include "confinc.mk" # ignored' > confmf.BSD 3731 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3732 echo 'include confinc.mk # ignored' > confmf.GNU 3733 _am_result=no 3734 for s in GNU BSD; do 3735 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3736 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); } 3740 case $?:`cat confinc.out 2>/dev/null` in #( 3741 '0:this is the am__doit target') : 3742 case $s in #( 3743 BSD) : 3744 am__include='.include' am__quote='"' ;; #( 3745 *) : 3746 am__include='include' am__quote='' ;; 3747 esac ;; #( 3748 *) : 3749 ;; 3750 esac 3751 if test "$am__include" != "#"; then 3752 _am_result="yes ($s style)" 3753 break 3754 fi 3755 done 3756 rm -f confinc.* confmf.* 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3758 printf "%s\n" "${_am_result}" >&6; } 3759 3760 # Check whether --enable-dependency-tracking was given. 3761 if test ${enable_dependency_tracking+y} 3762 then : 3763 enableval=$enable_dependency_tracking; 3764 fi 3765 3766 if test "x$enable_dependency_tracking" != xno; then 3767 am_depcomp="$ac_aux_dir/depcomp" 3768 AMDEPBACKSLASH='\' 3769 am__nodep='_no' 3770 fi 3771 if test "x$enable_dependency_tracking" != xno; then 3772 AMDEP_TRUE= 3773 AMDEP_FALSE='#' 3774 else 3775 AMDEP_TRUE='#' 3776 AMDEP_FALSE= 3777 fi 3778 3779 3780 ac_ext=c 3781 ac_cpp='$CPP $CPPFLAGS' 3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3785 if test -n "$ac_tool_prefix"; then 3786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3787 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789 printf %s "checking for $ac_word... " >&6; } 3790 if test ${ac_cv_prog_CC+y} 3791 then : 3792 printf %s "(cached) " >&6 3793 else case e in #( 3794 e) if test -n "$CC"; then 3795 ac_cv_prog_CC="$CC" # Let the user override the test. 3796 else 3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798 for as_dir in $PATH 3799 do 3800 IFS=$as_save_IFS 3801 case $as_dir in #((( 3802 '') as_dir=./ ;; 3803 */) ;; 3804 *) as_dir=$as_dir/ ;; 3805 esac 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3808 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812 done 3813 done 3814 IFS=$as_save_IFS 3815 3816 fi ;; 3817 esac 3818 fi 3819 CC=$ac_cv_prog_CC 3820 if test -n "$CC"; then 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3822 printf "%s\n" "$CC" >&6; } 3823 else 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825 printf "%s\n" "no" >&6; } 3826 fi 3827 3828 3829 fi 3830 if test -z "$ac_cv_prog_CC"; then 3831 ac_ct_CC=$CC 3832 # Extract the first word of "gcc", so it can be a program name with args. 3833 set dummy gcc; ac_word=$2 3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3835 printf %s "checking for $ac_word... " >&6; } 3836 if test ${ac_cv_prog_ac_ct_CC+y} 3837 then : 3838 printf %s "(cached) " >&6 3839 else case e in #( 3840 e) if test -n "$ac_ct_CC"; then 3841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3842 else 3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844 for as_dir in $PATH 3845 do 3846 IFS=$as_save_IFS 3847 case $as_dir in #((( 3848 '') as_dir=./ ;; 3849 */) ;; 3850 *) as_dir=$as_dir/ ;; 3851 esac 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3854 ac_cv_prog_ac_ct_CC="gcc" 3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3856 break 2 3857 fi 3858 done 3859 done 3860 IFS=$as_save_IFS 3861 3862 fi ;; 3863 esac 3864 fi 3865 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3866 if test -n "$ac_ct_CC"; then 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3868 printf "%s\n" "$ac_ct_CC" >&6; } 3869 else 3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3871 printf "%s\n" "no" >&6; } 3872 fi 3873 3874 if test "x$ac_ct_CC" = x; then 3875 CC="" 3876 else 3877 case $cross_compiling:$ac_tool_warned in 3878 yes:) 3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3880 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3881 ac_tool_warned=yes ;; 3882 esac 3883 CC=$ac_ct_CC 3884 fi 3885 else 3886 CC="$ac_cv_prog_CC" 3887 fi 3888 3889 if test -z "$CC"; then 3890 if test -n "$ac_tool_prefix"; then 3891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3892 set dummy ${ac_tool_prefix}cc; ac_word=$2 3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3894 printf %s "checking for $ac_word... " >&6; } 3895 if test ${ac_cv_prog_CC+y} 3896 then : 3897 printf %s "(cached) " >&6 3898 else case e in #( 3899 e) if test -n "$CC"; then 3900 ac_cv_prog_CC="$CC" # Let the user override the test. 3901 else 3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3903 for as_dir in $PATH 3904 do 3905 IFS=$as_save_IFS 3906 case $as_dir in #((( 3907 '') as_dir=./ ;; 3908 */) ;; 3909 *) as_dir=$as_dir/ ;; 3910 esac 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3913 ac_cv_prog_CC="${ac_tool_prefix}cc" 3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3915 break 2 3916 fi 3917 done 3918 done 3919 IFS=$as_save_IFS 3920 3921 fi ;; 3922 esac 3923 fi 3924 CC=$ac_cv_prog_CC 3925 if test -n "$CC"; then 3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3927 printf "%s\n" "$CC" >&6; } 3928 else 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3930 printf "%s\n" "no" >&6; } 3931 fi 3932 3933 3934 fi 3935 fi 3936 if test -z "$CC"; then 3937 # Extract the first word of "cc", so it can be a program name with args. 3938 set dummy cc; ac_word=$2 3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3940 printf %s "checking for $ac_word... " >&6; } 3941 if test ${ac_cv_prog_CC+y} 3942 then : 3943 printf %s "(cached) " >&6 3944 else case e in #( 3945 e) if test -n "$CC"; then 3946 ac_cv_prog_CC="$CC" # Let the user override the test. 3947 else 3948 ac_prog_rejected=no 3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950 for as_dir in $PATH 3951 do 3952 IFS=$as_save_IFS 3953 case $as_dir in #((( 3954 '') as_dir=./ ;; 3955 */) ;; 3956 *) as_dir=$as_dir/ ;; 3957 esac 3958 for ac_exec_ext in '' $ac_executable_extensions; do 3959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3960 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3961 ac_prog_rejected=yes 3962 continue 3963 fi 3964 ac_cv_prog_CC="cc" 3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3966 break 2 3967 fi 3968 done 3969 done 3970 IFS=$as_save_IFS 3971 3972 if test $ac_prog_rejected = yes; then 3973 # We found a bogon in the path, so make sure we never use it. 3974 set dummy $ac_cv_prog_CC 3975 shift 3976 if test $# != 0; then 3977 # We chose a different compiler from the bogus one. 3978 # However, it has the same basename, so the bogon will be chosen 3979 # first if we set CC to just the basename; use the full file name. 3980 shift 3981 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3982 fi 3983 fi 3984 fi ;; 3985 esac 3986 fi 3987 CC=$ac_cv_prog_CC 3988 if test -n "$CC"; then 3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3990 printf "%s\n" "$CC" >&6; } 3991 else 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993 printf "%s\n" "no" >&6; } 3994 fi 3995 3996 3997 fi 3998 if test -z "$CC"; then 3999 if test -n "$ac_tool_prefix"; then 4000 for ac_prog in cl.exe 4001 do 4002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4005 printf %s "checking for $ac_word... " >&6; } 4006 if test ${ac_cv_prog_CC+y} 4007 then : 4008 printf %s "(cached) " >&6 4009 else case e in #( 4010 e) if test -n "$CC"; then 4011 ac_cv_prog_CC="$CC" # Let the user override the test. 4012 else 4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014 for as_dir in $PATH 4015 do 4016 IFS=$as_save_IFS 4017 case $as_dir in #((( 4018 '') as_dir=./ ;; 4019 */) ;; 4020 *) as_dir=$as_dir/ ;; 4021 esac 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4026 break 2 4027 fi 4028 done 4029 done 4030 IFS=$as_save_IFS 4031 4032 fi ;; 4033 esac 4034 fi 4035 CC=$ac_cv_prog_CC 4036 if test -n "$CC"; then 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4038 printf "%s\n" "$CC" >&6; } 4039 else 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4041 printf "%s\n" "no" >&6; } 4042 fi 4043 4044 4045 test -n "$CC" && break 4046 done 4047 fi 4048 if test -z "$CC"; then 4049 ac_ct_CC=$CC 4050 for ac_prog in cl.exe 4051 do 4052 # Extract the first word of "$ac_prog", so it can be a program name with args. 4053 set dummy $ac_prog; ac_word=$2 4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4055 printf %s "checking for $ac_word... " >&6; } 4056 if test ${ac_cv_prog_ac_ct_CC+y} 4057 then : 4058 printf %s "(cached) " >&6 4059 else case e in #( 4060 e) if test -n "$ac_ct_CC"; then 4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4062 else 4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064 for as_dir in $PATH 4065 do 4066 IFS=$as_save_IFS 4067 case $as_dir in #((( 4068 '') as_dir=./ ;; 4069 */) ;; 4070 *) as_dir=$as_dir/ ;; 4071 esac 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4074 ac_cv_prog_ac_ct_CC="$ac_prog" 4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078 done 4079 done 4080 IFS=$as_save_IFS 4081 4082 fi ;; 4083 esac 4084 fi 4085 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4086 if test -n "$ac_ct_CC"; then 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4088 printf "%s\n" "$ac_ct_CC" >&6; } 4089 else 4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4091 printf "%s\n" "no" >&6; } 4092 fi 4093 4094 4095 test -n "$ac_ct_CC" && break 4096 done 4097 4098 if test "x$ac_ct_CC" = x; then 4099 CC="" 4100 else 4101 case $cross_compiling:$ac_tool_warned in 4102 yes:) 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4105 ac_tool_warned=yes ;; 4106 esac 4107 CC=$ac_ct_CC 4108 fi 4109 fi 4110 4111 fi 4112 if test -z "$CC"; then 4113 if test -n "$ac_tool_prefix"; then 4114 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4115 set dummy ${ac_tool_prefix}clang; ac_word=$2 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4117 printf %s "checking for $ac_word... " >&6; } 4118 if test ${ac_cv_prog_CC+y} 4119 then : 4120 printf %s "(cached) " >&6 4121 else case e in #( 4122 e) if test -n "$CC"; then 4123 ac_cv_prog_CC="$CC" # Let the user override the test. 4124 else 4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4126 for as_dir in $PATH 4127 do 4128 IFS=$as_save_IFS 4129 case $as_dir in #((( 4130 '') as_dir=./ ;; 4131 */) ;; 4132 *) as_dir=$as_dir/ ;; 4133 esac 4134 for ac_exec_ext in '' $ac_executable_extensions; do 4135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4136 ac_cv_prog_CC="${ac_tool_prefix}clang" 4137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4138 break 2 4139 fi 4140 done 4141 done 4142 IFS=$as_save_IFS 4143 4144 fi ;; 4145 esac 4146 fi 4147 CC=$ac_cv_prog_CC 4148 if test -n "$CC"; then 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4150 printf "%s\n" "$CC" >&6; } 4151 else 4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4153 printf "%s\n" "no" >&6; } 4154 fi 4155 4156 4157 fi 4158 if test -z "$ac_cv_prog_CC"; then 4159 ac_ct_CC=$CC 4160 # Extract the first word of "clang", so it can be a program name with args. 4161 set dummy clang; ac_word=$2 4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4163 printf %s "checking for $ac_word... " >&6; } 4164 if test ${ac_cv_prog_ac_ct_CC+y} 4165 then : 4166 printf %s "(cached) " >&6 4167 else case e in #( 4168 e) if test -n "$ac_ct_CC"; then 4169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4170 else 4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4172 for as_dir in $PATH 4173 do 4174 IFS=$as_save_IFS 4175 case $as_dir in #((( 4176 '') as_dir=./ ;; 4177 */) ;; 4178 *) as_dir=$as_dir/ ;; 4179 esac 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4182 ac_cv_prog_ac_ct_CC="clang" 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186 done 4187 done 4188 IFS=$as_save_IFS 4189 4190 fi ;; 4191 esac 4192 fi 4193 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4194 if test -n "$ac_ct_CC"; then 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4196 printf "%s\n" "$ac_ct_CC" >&6; } 4197 else 4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4199 printf "%s\n" "no" >&6; } 4200 fi 4201 4202 if test "x$ac_ct_CC" = x; then 4203 CC="" 4204 else 4205 case $cross_compiling:$ac_tool_warned in 4206 yes:) 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4209 ac_tool_warned=yes ;; 4210 esac 4211 CC=$ac_ct_CC 4212 fi 4213 else 4214 CC="$ac_cv_prog_CC" 4215 fi 4216 4217 fi 4218 4219 4220 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4222 as_fn_error $? "no acceptable C compiler found in \$PATH 4223 See 'config.log' for more details" "$LINENO" 5; } 4224 4225 # Provide some information about the compiler. 4226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4227 set X $ac_compile 4228 ac_compiler=$2 4229 for ac_option in --version -v -V -qversion -version; do 4230 { { ac_try="$ac_compiler $ac_option >&5" 4231 case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234 esac 4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4236 printf "%s\n" "$ac_try_echo"; } >&5 4237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4238 ac_status=$? 4239 if test -s conftest.err; then 4240 sed '10a\ 4241 ... rest of stderr output deleted ... 4242 10q' conftest.err >conftest.er1 4243 cat conftest.er1 >&5 4244 fi 4245 rm -f conftest.er1 conftest.err 4246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4247 test $ac_status = 0; } 4248 done 4249 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251 /* end confdefs.h. */ 4252 4253 int 4254 main (void) 4255 { 4256 4257 ; 4258 return 0; 4259 } 4260 _ACEOF 4261 ac_clean_files_save=$ac_clean_files 4262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4263 # Try to create an executable without -o first, disregard a.out. 4264 # It will help us diagnose broken compilers, and finding out an intuition 4265 # of exeext. 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4267 printf %s "checking whether the C compiler works... " >&6; } 4268 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4269 4270 # The possible output files: 4271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4272 4273 ac_rmfiles= 4274 for ac_file in $ac_files 4275 do 4276 case $ac_file in 4277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4278 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4279 esac 4280 done 4281 rm -f $ac_rmfiles 4282 4283 if { { ac_try="$ac_link_default" 4284 case "(($ac_try" in 4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4286 *) ac_try_echo=$ac_try;; 4287 esac 4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4289 printf "%s\n" "$ac_try_echo"; } >&5 4290 (eval "$ac_link_default") 2>&5 4291 ac_status=$? 4292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4293 test $ac_status = 0; } 4294 then : 4295 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4296 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4297 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4298 # so that the user can short-circuit this test for compilers unknown to 4299 # Autoconf. 4300 for ac_file in $ac_files '' 4301 do 4302 test -f "$ac_file" || continue 4303 case $ac_file in 4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4305 ;; 4306 [ab].out ) 4307 # We found the default executable, but exeext='' is most 4308 # certainly right. 4309 break;; 4310 *.* ) 4311 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4312 then :; else 4313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4314 fi 4315 # We set ac_cv_exeext here because the later test for it is not 4316 # safe: cross compilers may not add the suffix if given an '-o' 4317 # argument, so we may need to know it at that point already. 4318 # Even if this section looks crufty: it has the advantage of 4319 # actually working. 4320 break;; 4321 * ) 4322 break;; 4323 esac 4324 done 4325 test "$ac_cv_exeext" = no && ac_cv_exeext= 4326 4327 else case e in #( 4328 e) ac_file='' ;; 4329 esac 4330 fi 4331 if test -z "$ac_file" 4332 then : 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4334 printf "%s\n" "no" >&6; } 4335 printf "%s\n" "$as_me: failed program was:" >&5 4336 sed 's/^/| /' conftest.$ac_ext >&5 4337 4338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4339 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4340 as_fn_error 77 "C compiler cannot create executables 4341 See 'config.log' for more details" "$LINENO" 5; } 4342 else case e in #( 4343 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4344 printf "%s\n" "yes" >&6; } ;; 4345 esac 4346 fi 4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4348 printf %s "checking for C compiler default output file name... " >&6; } 4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4350 printf "%s\n" "$ac_file" >&6; } 4351 ac_exeext=$ac_cv_exeext 4352 4353 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4354 ac_clean_files=$ac_clean_files_save 4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4356 printf %s "checking for suffix of executables... " >&6; } 4357 if { { ac_try="$ac_link" 4358 case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361 esac 4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4363 printf "%s\n" "$ac_try_echo"; } >&5 4364 (eval "$ac_link") 2>&5 4365 ac_status=$? 4366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4367 test $ac_status = 0; } 4368 then : 4369 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4370 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4371 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4372 # 'rm'. 4373 for ac_file in conftest.exe conftest conftest.*; do 4374 test -f "$ac_file" || continue 4375 case $ac_file in 4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4378 break;; 4379 * ) break;; 4380 esac 4381 done 4382 else case e in #( 4383 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4384 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4385 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4386 See 'config.log' for more details" "$LINENO" 5; } ;; 4387 esac 4388 fi 4389 rm -f conftest conftest$ac_cv_exeext 4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4391 printf "%s\n" "$ac_cv_exeext" >&6; } 4392 4393 rm -f conftest.$ac_ext 4394 EXEEXT=$ac_cv_exeext 4395 ac_exeext=$EXEEXT 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397 /* end confdefs.h. */ 4398 #include <stdio.h> 4399 int 4400 main (void) 4401 { 4402 FILE *f = fopen ("conftest.out", "w"); 4403 if (!f) 4404 return 1; 4405 return ferror (f) || fclose (f) != 0; 4406 4407 ; 4408 return 0; 4409 } 4410 _ACEOF 4411 ac_clean_files="$ac_clean_files conftest.out" 4412 # Check that the compiler produces executables we can run. If not, either 4413 # the compiler is broken, or we cross compile. 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4415 printf %s "checking whether we are cross compiling... " >&6; } 4416 if test "$cross_compiling" != yes; then 4417 { { ac_try="$ac_link" 4418 case "(($ac_try" in 4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4420 *) ac_try_echo=$ac_try;; 4421 esac 4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4423 printf "%s\n" "$ac_try_echo"; } >&5 4424 (eval "$ac_link") 2>&5 4425 ac_status=$? 4426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4427 test $ac_status = 0; } 4428 if { ac_try='./conftest$ac_cv_exeext' 4429 { { case "(($ac_try" in 4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4431 *) ac_try_echo=$ac_try;; 4432 esac 4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4434 printf "%s\n" "$ac_try_echo"; } >&5 4435 (eval "$ac_try") 2>&5 4436 ac_status=$? 4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4438 test $ac_status = 0; }; }; then 4439 cross_compiling=no 4440 else 4441 if test "$cross_compiling" = maybe; then 4442 cross_compiling=yes 4443 else 4444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4445 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4446 as_fn_error 77 "cannot run C compiled programs. 4447 If you meant to cross compile, use '--host'. 4448 See 'config.log' for more details" "$LINENO" 5; } 4449 fi 4450 fi 4451 fi 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4453 printf "%s\n" "$cross_compiling" >&6; } 4454 4455 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4456 conftest.o conftest.obj conftest.out 4457 ac_clean_files=$ac_clean_files_save 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4459 printf %s "checking for suffix of object files... " >&6; } 4460 if test ${ac_cv_objext+y} 4461 then : 4462 printf %s "(cached) " >&6 4463 else case e in #( 4464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465 /* end confdefs.h. */ 4466 4467 int 4468 main (void) 4469 { 4470 4471 ; 4472 return 0; 4473 } 4474 _ACEOF 4475 rm -f conftest.o conftest.obj 4476 if { { ac_try="$ac_compile" 4477 case "(($ac_try" in 4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4479 *) ac_try_echo=$ac_try;; 4480 esac 4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4482 printf "%s\n" "$ac_try_echo"; } >&5 4483 (eval "$ac_compile") 2>&5 4484 ac_status=$? 4485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4486 test $ac_status = 0; } 4487 then : 4488 for ac_file in conftest.o conftest.obj conftest.*; do 4489 test -f "$ac_file" || continue; 4490 case $ac_file in 4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4493 break;; 4494 esac 4495 done 4496 else case e in #( 4497 e) printf "%s\n" "$as_me: failed program was:" >&5 4498 sed 's/^/| /' conftest.$ac_ext >&5 4499 4500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4501 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4502 as_fn_error $? "cannot compute suffix of object files: cannot compile 4503 See 'config.log' for more details" "$LINENO" 5; } ;; 4504 esac 4505 fi 4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4507 esac 4508 fi 4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4510 printf "%s\n" "$ac_cv_objext" >&6; } 4511 OBJEXT=$ac_cv_objext 4512 ac_objext=$OBJEXT 4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4514 printf %s "checking whether the compiler supports GNU C... " >&6; } 4515 if test ${ac_cv_c_compiler_gnu+y} 4516 then : 4517 printf %s "(cached) " >&6 4518 else case e in #( 4519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520 /* end confdefs.h. */ 4521 4522 int 4523 main (void) 4524 { 4525 #ifndef __GNUC__ 4526 choke me 4527 #endif 4528 4529 ; 4530 return 0; 4531 } 4532 _ACEOF 4533 if ac_fn_c_try_compile "$LINENO" 4534 then : 4535 ac_compiler_gnu=yes 4536 else case e in #( 4537 e) ac_compiler_gnu=no ;; 4538 esac 4539 fi 4540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4541 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4542 ;; 4543 esac 4544 fi 4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4546 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4548 4549 if test $ac_compiler_gnu = yes; then 4550 GCC=yes 4551 else 4552 GCC= 4553 fi 4554 ac_test_CFLAGS=${CFLAGS+y} 4555 ac_save_CFLAGS=$CFLAGS 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4557 printf %s "checking whether $CC accepts -g... " >&6; } 4558 if test ${ac_cv_prog_cc_g+y} 4559 then : 4560 printf %s "(cached) " >&6 4561 else case e in #( 4562 e) ac_save_c_werror_flag=$ac_c_werror_flag 4563 ac_c_werror_flag=yes 4564 ac_cv_prog_cc_g=no 4565 CFLAGS="-g" 4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4567 /* end confdefs.h. */ 4568 4569 int 4570 main (void) 4571 { 4572 4573 ; 4574 return 0; 4575 } 4576 _ACEOF 4577 if ac_fn_c_try_compile "$LINENO" 4578 then : 4579 ac_cv_prog_cc_g=yes 4580 else case e in #( 4581 e) CFLAGS="" 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583 /* end confdefs.h. */ 4584 4585 int 4586 main (void) 4587 { 4588 4589 ; 4590 return 0; 4591 } 4592 _ACEOF 4593 if ac_fn_c_try_compile "$LINENO" 4594 then : 4595 4596 else case e in #( 4597 e) ac_c_werror_flag=$ac_save_c_werror_flag 4598 CFLAGS="-g" 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600 /* end confdefs.h. */ 4601 4602 int 4603 main (void) 4604 { 4605 4606 ; 4607 return 0; 4608 } 4609 _ACEOF 4610 if ac_fn_c_try_compile "$LINENO" 4611 then : 4612 ac_cv_prog_cc_g=yes 4613 fi 4614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4615 esac 4616 fi 4617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4618 esac 4619 fi 4620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4621 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4622 esac 4623 fi 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4625 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4626 if test $ac_test_CFLAGS; then 4627 CFLAGS=$ac_save_CFLAGS 4628 elif test $ac_cv_prog_cc_g = yes; then 4629 if test "$GCC" = yes; then 4630 CFLAGS="-g -O2" 4631 else 4632 CFLAGS="-g" 4633 fi 4634 else 4635 if test "$GCC" = yes; then 4636 CFLAGS="-O2" 4637 else 4638 CFLAGS= 4639 fi 4640 fi 4641 ac_prog_cc_stdc=no 4642 if test x$ac_prog_cc_stdc = xno 4643 then : 4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4645 printf %s "checking for $CC option to enable C11 features... " >&6; } 4646 if test ${ac_cv_prog_cc_c11+y} 4647 then : 4648 printf %s "(cached) " >&6 4649 else case e in #( 4650 e) ac_cv_prog_cc_c11=no 4651 ac_save_CC=$CC 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653 /* end confdefs.h. */ 4654 $ac_c_conftest_c11_program 4655 _ACEOF 4656 for ac_arg in '' -std=gnu11 4657 do 4658 CC="$ac_save_CC $ac_arg" 4659 if ac_fn_c_try_compile "$LINENO" 4660 then : 4661 ac_cv_prog_cc_c11=$ac_arg 4662 fi 4663 rm -f core conftest.err conftest.$ac_objext conftest.beam 4664 test "x$ac_cv_prog_cc_c11" != "xno" && break 4665 done 4666 rm -f conftest.$ac_ext 4667 CC=$ac_save_CC ;; 4668 esac 4669 fi 4670 4671 if test "x$ac_cv_prog_cc_c11" = xno 4672 then : 4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4674 printf "%s\n" "unsupported" >&6; } 4675 else case e in #( 4676 e) if test "x$ac_cv_prog_cc_c11" = x 4677 then : 4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4679 printf "%s\n" "none needed" >&6; } 4680 else case e in #( 4681 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4682 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4683 CC="$CC $ac_cv_prog_cc_c11" ;; 4684 esac 4685 fi 4686 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4687 ac_prog_cc_stdc=c11 ;; 4688 esac 4689 fi 4690 fi 4691 if test x$ac_prog_cc_stdc = xno 4692 then : 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4694 printf %s "checking for $CC option to enable C99 features... " >&6; } 4695 if test ${ac_cv_prog_cc_c99+y} 4696 then : 4697 printf %s "(cached) " >&6 4698 else case e in #( 4699 e) ac_cv_prog_cc_c99=no 4700 ac_save_CC=$CC 4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702 /* end confdefs.h. */ 4703 $ac_c_conftest_c99_program 4704 _ACEOF 4705 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4706 do 4707 CC="$ac_save_CC $ac_arg" 4708 if ac_fn_c_try_compile "$LINENO" 4709 then : 4710 ac_cv_prog_cc_c99=$ac_arg 4711 fi 4712 rm -f core conftest.err conftest.$ac_objext conftest.beam 4713 test "x$ac_cv_prog_cc_c99" != "xno" && break 4714 done 4715 rm -f conftest.$ac_ext 4716 CC=$ac_save_CC ;; 4717 esac 4718 fi 4719 4720 if test "x$ac_cv_prog_cc_c99" = xno 4721 then : 4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4723 printf "%s\n" "unsupported" >&6; } 4724 else case e in #( 4725 e) if test "x$ac_cv_prog_cc_c99" = x 4726 then : 4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4728 printf "%s\n" "none needed" >&6; } 4729 else case e in #( 4730 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4731 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4732 CC="$CC $ac_cv_prog_cc_c99" ;; 4733 esac 4734 fi 4735 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4736 ac_prog_cc_stdc=c99 ;; 4737 esac 4738 fi 4739 fi 4740 if test x$ac_prog_cc_stdc = xno 4741 then : 4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4743 printf %s "checking for $CC option to enable C89 features... " >&6; } 4744 if test ${ac_cv_prog_cc_c89+y} 4745 then : 4746 printf %s "(cached) " >&6 4747 else case e in #( 4748 e) ac_cv_prog_cc_c89=no 4749 ac_save_CC=$CC 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751 /* end confdefs.h. */ 4752 $ac_c_conftest_c89_program 4753 _ACEOF 4754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4755 do 4756 CC="$ac_save_CC $ac_arg" 4757 if ac_fn_c_try_compile "$LINENO" 4758 then : 4759 ac_cv_prog_cc_c89=$ac_arg 4760 fi 4761 rm -f core conftest.err conftest.$ac_objext conftest.beam 4762 test "x$ac_cv_prog_cc_c89" != "xno" && break 4763 done 4764 rm -f conftest.$ac_ext 4765 CC=$ac_save_CC ;; 4766 esac 4767 fi 4768 4769 if test "x$ac_cv_prog_cc_c89" = xno 4770 then : 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4772 printf "%s\n" "unsupported" >&6; } 4773 else case e in #( 4774 e) if test "x$ac_cv_prog_cc_c89" = x 4775 then : 4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4777 printf "%s\n" "none needed" >&6; } 4778 else case e in #( 4779 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4780 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4781 CC="$CC $ac_cv_prog_cc_c89" ;; 4782 esac 4783 fi 4784 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4785 ac_prog_cc_stdc=c89 ;; 4786 esac 4787 fi 4788 fi 4789 4790 ac_ext=c 4791 ac_cpp='$CPP $CPPFLAGS' 4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4795 4796 4797 ac_ext=c 4798 ac_cpp='$CPP $CPPFLAGS' 4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4803 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4804 if test ${am_cv_prog_cc_c_o+y} 4805 then : 4806 printf %s "(cached) " >&6 4807 else case e in #( 4808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4809 /* end confdefs.h. */ 4810 4811 int 4812 main (void) 4813 { 4814 4815 ; 4816 return 0; 4817 } 4818 _ACEOF 4819 # Make sure it works both with $CC and with simple cc. 4820 # Following AC_PROG_CC_C_O, we do the test twice because some 4821 # compilers refuse to overwrite an existing .o file with -o, 4822 # though they will create one. 4823 am_cv_prog_cc_c_o=yes 4824 for am_i in 1 2; do 4825 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4826 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4827 ac_status=$? 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); } \ 4830 && test -f conftest2.$ac_objext; then 4831 : OK 4832 else 4833 am_cv_prog_cc_c_o=no 4834 break 4835 fi 4836 done 4837 # aligned with autoconf, so not including core; see bug#72225. 4838 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4839 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4840 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4841 unset am_i ;; 4842 esac 4843 fi 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4845 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4846 if test "$am_cv_prog_cc_c_o" != yes; then 4847 # Losing compiler, so override with the script. 4848 # FIXME: It is wrong to rewrite CC. 4849 # But if we don't then we get into trouble of one sort or another. 4850 # A longer-term fix would be to have automake use am__CC in this case, 4851 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4852 CC="$am_aux_dir/compile $CC" 4853 fi 4854 ac_ext=c 4855 ac_cpp='$CPP $CPPFLAGS' 4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4859 4860 4861 depcc="$CC" am_compiler_list= 4862 4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4864 printf %s "checking dependency style of $depcc... " >&6; } 4865 if test ${am_cv_CC_dependencies_compiler_type+y} 4866 then : 4867 printf %s "(cached) " >&6 4868 else case e in #( 4869 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4870 # We make a subdir and do the tests there. Otherwise we can end up 4871 # making bogus files that we don't know about and never remove. For 4872 # instance it was reported that on HP-UX the gcc test will end up 4873 # making a dummy file named 'D' -- because '-MD' means "put the output 4874 # in D". 4875 rm -rf conftest.dir 4876 mkdir conftest.dir 4877 # Copy depcomp to subdir because otherwise we won't find it if we're 4878 # using a relative directory. 4879 cp "$am_depcomp" conftest.dir 4880 cd conftest.dir 4881 # We will build objects and dependencies in a subdirectory because 4882 # it helps to detect inapplicable dependency modes. For instance 4883 # both Tru64's cc and ICC support -MD to output dependencies as a 4884 # side effect of compilation, but ICC will put the dependencies in 4885 # the current directory while Tru64 will put them in the object 4886 # directory. 4887 mkdir sub 4888 4889 am_cv_CC_dependencies_compiler_type=none 4890 if test "$am_compiler_list" = ""; then 4891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4892 fi 4893 am__universal=false 4894 case " $depcc " in #( 4895 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4896 esac 4897 4898 for depmode in $am_compiler_list; do 4899 # Setup a source with many dependencies, because some compilers 4900 # like to wrap large dependency lists on column 80 (with \), and 4901 # we should not choose a depcomp mode which is confused by this. 4902 # 4903 # We need to recreate these files for each test, as the compiler may 4904 # overwrite some of them when testing with obscure command lines. 4905 # This happens at least with the AIX C compiler. 4906 : > sub/conftest.c 4907 for i in 1 2 3 4 5 6; do 4908 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4909 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4910 # Solaris 10 /bin/sh. 4911 echo '/* dummy */' > sub/conftst$i.h 4912 done 4913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4914 4915 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4916 # mode. It turns out that the SunPro C++ compiler does not properly 4917 # handle '-M -o', and we need to detect this. Also, some Intel 4918 # versions had trouble with output in subdirs. 4919 am__obj=sub/conftest.${OBJEXT-o} 4920 am__minus_obj="-o $am__obj" 4921 case $depmode in 4922 gcc) 4923 # This depmode causes a compiler race in universal mode. 4924 test "$am__universal" = false || continue 4925 ;; 4926 nosideeffect) 4927 # After this tag, mechanisms are not by side-effect, so they'll 4928 # only be used when explicitly requested. 4929 if test "x$enable_dependency_tracking" = xyes; then 4930 continue 4931 else 4932 break 4933 fi 4934 ;; 4935 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4936 # This compiler won't grok '-c -o', but also, the minuso test has 4937 # not run yet. These depmodes are late enough in the game, and 4938 # so weak that their functioning should not be impacted. 4939 am__obj=conftest.${OBJEXT-o} 4940 am__minus_obj= 4941 ;; 4942 none) break ;; 4943 esac 4944 if depmode=$depmode \ 4945 source=sub/conftest.c object=$am__obj \ 4946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4948 >/dev/null 2>conftest.err && 4949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4953 # icc doesn't choke on unknown options, it will just issue warnings 4954 # or remarks (even with -Werror). So we grep stderr for any message 4955 # that says an option was ignored or not supported. 4956 # When given -MP, icc 7.0 and 7.1 complain thus: 4957 # icc: Command line warning: ignoring option '-M'; no argument required 4958 # The diagnosis changed in icc 8.0: 4959 # icc: Command line remark: option '-MP' not supported 4960 if (grep 'ignoring option' conftest.err || 4961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4962 am_cv_CC_dependencies_compiler_type=$depmode 4963 break 4964 fi 4965 fi 4966 done 4967 4968 cd .. 4969 rm -rf conftest.dir 4970 else 4971 am_cv_CC_dependencies_compiler_type=none 4972 fi 4973 ;; 4974 esac 4975 fi 4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4977 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4979 4980 if 4981 test "x$enable_dependency_tracking" != xno \ 4982 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4983 am__fastdepCC_TRUE= 4984 am__fastdepCC_FALSE='#' 4985 else 4986 am__fastdepCC_TRUE='#' 4987 am__fastdepCC_FALSE= 4988 fi 4989 4990 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4992 printf %s "checking for a sed that does not truncate output... " >&6; } 4993 if test ${ac_cv_path_SED+y} 4994 then : 4995 printf %s "(cached) " >&6 4996 else case e in #( 4997 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4998 for ac_i in 1 2 3 4 5 6 7; do 4999 ac_script="$ac_script$as_nl$ac_script" 5000 done 5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5002 { ac_script=; unset ac_script;} 5003 if test -z "$SED"; then 5004 ac_path_SED_found=false 5005 # Loop through the user's path and test for each of PROGNAME-LIST 5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007 for as_dir in $PATH 5008 do 5009 IFS=$as_save_IFS 5010 case $as_dir in #((( 5011 '') as_dir=./ ;; 5012 */) ;; 5013 *) as_dir=$as_dir/ ;; 5014 esac 5015 for ac_prog in sed gsed 5016 do 5017 for ac_exec_ext in '' $ac_executable_extensions; do 5018 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5019 as_fn_executable_p "$ac_path_SED" || continue 5020 # Check for GNU ac_path_SED and select it if it is found. 5021 # Check for GNU $ac_path_SED 5022 case `"$ac_path_SED" --version 2>&1` in #( 5023 *GNU*) 5024 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5025 #( 5026 *) 5027 ac_count=0 5028 printf %s 0123456789 >"conftest.in" 5029 while : 5030 do 5031 cat "conftest.in" "conftest.in" >"conftest.tmp" 5032 mv "conftest.tmp" "conftest.in" 5033 cp "conftest.in" "conftest.nl" 5034 printf "%s\n" '' >> "conftest.nl" 5035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5037 as_fn_arith $ac_count + 1 && ac_count=$as_val 5038 if test $ac_count -gt ${ac_path_SED_max-0}; then 5039 # Best one so far, save it but keep looking for a better one 5040 ac_cv_path_SED="$ac_path_SED" 5041 ac_path_SED_max=$ac_count 5042 fi 5043 # 10*(2^10) chars as input seems more than enough 5044 test $ac_count -gt 10 && break 5045 done 5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5047 esac 5048 5049 $ac_path_SED_found && break 3 5050 done 5051 done 5052 done 5053 IFS=$as_save_IFS 5054 if test -z "$ac_cv_path_SED"; then 5055 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5056 fi 5057 else 5058 ac_cv_path_SED=$SED 5059 fi 5060 ;; 5061 esac 5062 fi 5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5064 printf "%s\n" "$ac_cv_path_SED" >&6; } 5065 SED="$ac_cv_path_SED" 5066 rm -f conftest.sed 5067 5068 test -z "$SED" && SED=sed 5069 Xsed="$SED -e 1s/^X//" 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5082 printf %s "checking for grep that handles long lines and -e... " >&6; } 5083 if test ${ac_cv_path_GREP+y} 5084 then : 5085 printf %s "(cached) " >&6 5086 else case e in #( 5087 e) if test -z "$GREP"; then 5088 ac_path_GREP_found=false 5089 # Loop through the user's path and test for each of PROGNAME-LIST 5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5092 do 5093 IFS=$as_save_IFS 5094 case $as_dir in #((( 5095 '') as_dir=./ ;; 5096 */) ;; 5097 *) as_dir=$as_dir/ ;; 5098 esac 5099 for ac_prog in grep ggrep 5100 do 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5103 as_fn_executable_p "$ac_path_GREP" || continue 5104 # Check for GNU ac_path_GREP and select it if it is found. 5105 # Check for GNU $ac_path_GREP 5106 case `"$ac_path_GREP" --version 2>&1` in #( 5107 *GNU*) 5108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5109 #( 5110 *) 5111 ac_count=0 5112 printf %s 0123456789 >"conftest.in" 5113 while : 5114 do 5115 cat "conftest.in" "conftest.in" >"conftest.tmp" 5116 mv "conftest.tmp" "conftest.in" 5117 cp "conftest.in" "conftest.nl" 5118 printf "%s\n" 'GREP' >> "conftest.nl" 5119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5121 as_fn_arith $ac_count + 1 && ac_count=$as_val 5122 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5123 # Best one so far, save it but keep looking for a better one 5124 ac_cv_path_GREP="$ac_path_GREP" 5125 ac_path_GREP_max=$ac_count 5126 fi 5127 # 10*(2^10) chars as input seems more than enough 5128 test $ac_count -gt 10 && break 5129 done 5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5131 esac 5132 5133 $ac_path_GREP_found && break 3 5134 done 5135 done 5136 done 5137 IFS=$as_save_IFS 5138 if test -z "$ac_cv_path_GREP"; then 5139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5140 fi 5141 else 5142 ac_cv_path_GREP=$GREP 5143 fi 5144 ;; 5145 esac 5146 fi 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5148 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5149 GREP="$ac_cv_path_GREP" 5150 5151 5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5153 printf %s "checking for egrep... " >&6; } 5154 if test ${ac_cv_path_EGREP+y} 5155 then : 5156 printf %s "(cached) " >&6 5157 else case e in #( 5158 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5159 then ac_cv_path_EGREP="$GREP -E" 5160 else 5161 if test -z "$EGREP"; then 5162 ac_path_EGREP_found=false 5163 # Loop through the user's path and test for each of PROGNAME-LIST 5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5166 do 5167 IFS=$as_save_IFS 5168 case $as_dir in #((( 5169 '') as_dir=./ ;; 5170 */) ;; 5171 *) as_dir=$as_dir/ ;; 5172 esac 5173 for ac_prog in egrep 5174 do 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5177 as_fn_executable_p "$ac_path_EGREP" || continue 5178 # Check for GNU ac_path_EGREP and select it if it is found. 5179 # Check for GNU $ac_path_EGREP 5180 case `"$ac_path_EGREP" --version 2>&1` in #( 5181 *GNU*) 5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5183 #( 5184 *) 5185 ac_count=0 5186 printf %s 0123456789 >"conftest.in" 5187 while : 5188 do 5189 cat "conftest.in" "conftest.in" >"conftest.tmp" 5190 mv "conftest.tmp" "conftest.in" 5191 cp "conftest.in" "conftest.nl" 5192 printf "%s\n" 'EGREP' >> "conftest.nl" 5193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5195 as_fn_arith $ac_count + 1 && ac_count=$as_val 5196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5197 # Best one so far, save it but keep looking for a better one 5198 ac_cv_path_EGREP="$ac_path_EGREP" 5199 ac_path_EGREP_max=$ac_count 5200 fi 5201 # 10*(2^10) chars as input seems more than enough 5202 test $ac_count -gt 10 && break 5203 done 5204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5205 esac 5206 5207 $ac_path_EGREP_found && break 3 5208 done 5209 done 5210 done 5211 IFS=$as_save_IFS 5212 if test -z "$ac_cv_path_EGREP"; then 5213 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5214 fi 5215 else 5216 ac_cv_path_EGREP=$EGREP 5217 fi 5218 5219 fi ;; 5220 esac 5221 fi 5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5223 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5224 EGREP="$ac_cv_path_EGREP" 5225 5226 EGREP_TRADITIONAL=$EGREP 5227 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5228 5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5230 printf %s "checking for fgrep... " >&6; } 5231 if test ${ac_cv_path_FGREP+y} 5232 then : 5233 printf %s "(cached) " >&6 5234 else case e in #( 5235 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5236 then ac_cv_path_FGREP="$GREP -F" 5237 else 5238 if test -z "$FGREP"; then 5239 ac_path_FGREP_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5243 do 5244 IFS=$as_save_IFS 5245 case $as_dir in #((( 5246 '') as_dir=./ ;; 5247 */) ;; 5248 *) as_dir=$as_dir/ ;; 5249 esac 5250 for ac_prog in fgrep 5251 do 5252 for ac_exec_ext in '' $ac_executable_extensions; do 5253 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5254 as_fn_executable_p "$ac_path_FGREP" || continue 5255 # Check for GNU ac_path_FGREP and select it if it is found. 5256 # Check for GNU $ac_path_FGREP 5257 case `"$ac_path_FGREP" --version 2>&1` in #( 5258 *GNU*) 5259 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5260 #( 5261 *) 5262 ac_count=0 5263 printf %s 0123456789 >"conftest.in" 5264 while : 5265 do 5266 cat "conftest.in" "conftest.in" >"conftest.tmp" 5267 mv "conftest.tmp" "conftest.in" 5268 cp "conftest.in" "conftest.nl" 5269 printf "%s\n" 'FGREP' >> "conftest.nl" 5270 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5272 as_fn_arith $ac_count + 1 && ac_count=$as_val 5273 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5274 # Best one so far, save it but keep looking for a better one 5275 ac_cv_path_FGREP="$ac_path_FGREP" 5276 ac_path_FGREP_max=$ac_count 5277 fi 5278 # 10*(2^10) chars as input seems more than enough 5279 test $ac_count -gt 10 && break 5280 done 5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5282 esac 5283 5284 $ac_path_FGREP_found && break 3 5285 done 5286 done 5287 done 5288 IFS=$as_save_IFS 5289 if test -z "$ac_cv_path_FGREP"; then 5290 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5291 fi 5292 else 5293 ac_cv_path_FGREP=$FGREP 5294 fi 5295 5296 fi ;; 5297 esac 5298 fi 5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5300 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5301 FGREP="$ac_cv_path_FGREP" 5302 5303 5304 test -z "$GREP" && GREP=grep 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 # Check whether --with-gnu-ld was given. 5325 if test ${with_gnu_ld+y} 5326 then : 5327 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5328 else case e in #( 5329 e) with_gnu_ld=no ;; 5330 esac 5331 fi 5332 5333 ac_prog=ld 5334 if test yes = "$GCC"; then 5335 # Check if gcc -print-prog-name=ld gives a path. 5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5337 printf %s "checking for ld used by $CC... " >&6; } 5338 case $host in 5339 *-*-mingw* | *-*-windows*) 5340 # gcc leaves a trailing carriage return, which upsets mingw 5341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5342 *) 5343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5344 esac 5345 case $ac_prog in 5346 # Accept absolute paths. 5347 [\\/]* | ?:[\\/]*) 5348 re_direlt='/[^/][^/]*/\.\./' 5349 # Canonicalize the pathname of ld 5350 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5351 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5352 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5353 done 5354 test -z "$LD" && LD=$ac_prog 5355 ;; 5356 "") 5357 # If it fails, then pretend we aren't using GCC. 5358 ac_prog=ld 5359 ;; 5360 *) 5361 # If it is relative, then search for the first ld in PATH. 5362 with_gnu_ld=unknown 5363 ;; 5364 esac 5365 elif test yes = "$with_gnu_ld"; then 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5367 printf %s "checking for GNU ld... " >&6; } 5368 else 5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5370 printf %s "checking for non-GNU ld... " >&6; } 5371 fi 5372 if test ${lt_cv_path_LD+y} 5373 then : 5374 printf %s "(cached) " >&6 5375 else case e in #( 5376 e) if test -z "$LD"; then 5377 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5378 for ac_dir in $PATH; do 5379 IFS=$lt_save_ifs 5380 test -z "$ac_dir" && ac_dir=. 5381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5382 lt_cv_path_LD=$ac_dir/$ac_prog 5383 # Check to see if the program is GNU ld. I'd rather use --version, 5384 # but apparently some variants of GNU ld only accept -v. 5385 # Break only if it was the GNU/non-GNU ld that we prefer. 5386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5387 *GNU* | *'with BFD'*) 5388 test no != "$with_gnu_ld" && break 5389 ;; 5390 *) 5391 test yes != "$with_gnu_ld" && break 5392 ;; 5393 esac 5394 fi 5395 done 5396 IFS=$lt_save_ifs 5397 else 5398 lt_cv_path_LD=$LD # Let the user override the test with a path. 5399 fi ;; 5400 esac 5401 fi 5402 5403 LD=$lt_cv_path_LD 5404 if test -n "$LD"; then 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5406 printf "%s\n" "$LD" >&6; } 5407 else 5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409 printf "%s\n" "no" >&6; } 5410 fi 5411 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5413 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5414 if test ${lt_cv_prog_gnu_ld+y} 5415 then : 5416 printf %s "(cached) " >&6 5417 else case e in #( 5418 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5419 case `$LD -v 2>&1 </dev/null` in 5420 *GNU* | *'with BFD'*) 5421 lt_cv_prog_gnu_ld=yes 5422 ;; 5423 *) 5424 lt_cv_prog_gnu_ld=no 5425 ;; 5426 esac ;; 5427 esac 5428 fi 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5430 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5431 with_gnu_ld=$lt_cv_prog_gnu_ld 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5442 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5443 if test ${lt_cv_path_NM+y} 5444 then : 5445 printf %s "(cached) " >&6 5446 else case e in #( 5447 e) if test -n "$NM"; then 5448 # Let the user override the test. 5449 lt_cv_path_NM=$NM 5450 else 5451 lt_nm_to_check=${ac_tool_prefix}nm 5452 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5453 lt_nm_to_check="$lt_nm_to_check nm" 5454 fi 5455 for lt_tmp_nm in $lt_nm_to_check; do 5456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5457 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5458 IFS=$lt_save_ifs 5459 test -z "$ac_dir" && ac_dir=. 5460 tmp_nm=$ac_dir/$lt_tmp_nm 5461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5462 # Check to see if the nm accepts a BSD-compat flag. 5463 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5464 # nm: unknown option "B" ignored 5465 # Tru64's nm complains that /dev/null is an invalid object file 5466 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5467 case $build_os in 5468 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5469 *) lt_bad_file=/dev/null ;; 5470 esac 5471 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5472 *$lt_bad_file* | *'Invalid file or object type'*) 5473 lt_cv_path_NM="$tmp_nm -B" 5474 break 2 5475 ;; 5476 *) 5477 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5478 */dev/null*) 5479 lt_cv_path_NM="$tmp_nm -p" 5480 break 2 5481 ;; 5482 *) 5483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5484 continue # so that we can try to find one that supports BSD flags 5485 ;; 5486 esac 5487 ;; 5488 esac 5489 fi 5490 done 5491 IFS=$lt_save_ifs 5492 done 5493 : ${lt_cv_path_NM=no} 5494 fi ;; 5495 esac 5496 fi 5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5498 printf "%s\n" "$lt_cv_path_NM" >&6; } 5499 if test no != "$lt_cv_path_NM"; then 5500 NM=$lt_cv_path_NM 5501 else 5502 # Didn't find any BSD compatible name lister, look for dumpbin. 5503 if test -n "$DUMPBIN"; then : 5504 # Let the user override the test. 5505 else 5506 if test -n "$ac_tool_prefix"; then 5507 for ac_prog in dumpbin "link -dump" 5508 do 5509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5512 printf %s "checking for $ac_word... " >&6; } 5513 if test ${ac_cv_prog_DUMPBIN+y} 5514 then : 5515 printf %s "(cached) " >&6 5516 else case e in #( 5517 e) if test -n "$DUMPBIN"; then 5518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5519 else 5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521 for as_dir in $PATH 5522 do 5523 IFS=$as_save_IFS 5524 case $as_dir in #((( 5525 '') as_dir=./ ;; 5526 */) ;; 5527 *) as_dir=$as_dir/ ;; 5528 esac 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535 done 5536 done 5537 IFS=$as_save_IFS 5538 5539 fi ;; 5540 esac 5541 fi 5542 DUMPBIN=$ac_cv_prog_DUMPBIN 5543 if test -n "$DUMPBIN"; then 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5545 printf "%s\n" "$DUMPBIN" >&6; } 5546 else 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5548 printf "%s\n" "no" >&6; } 5549 fi 5550 5551 5552 test -n "$DUMPBIN" && break 5553 done 5554 fi 5555 if test -z "$DUMPBIN"; then 5556 ac_ct_DUMPBIN=$DUMPBIN 5557 for ac_prog in dumpbin "link -dump" 5558 do 5559 # Extract the first word of "$ac_prog", so it can be a program name with args. 5560 set dummy $ac_prog; ac_word=$2 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5562 printf %s "checking for $ac_word... " >&6; } 5563 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5564 then : 5565 printf %s "(cached) " >&6 5566 else case e in #( 5567 e) if test -n "$ac_ct_DUMPBIN"; then 5568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5569 else 5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571 for as_dir in $PATH 5572 do 5573 IFS=$as_save_IFS 5574 case $as_dir in #((( 5575 '') as_dir=./ ;; 5576 */) ;; 5577 *) as_dir=$as_dir/ ;; 5578 esac 5579 for ac_exec_ext in '' $ac_executable_extensions; do 5580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5583 break 2 5584 fi 5585 done 5586 done 5587 IFS=$as_save_IFS 5588 5589 fi ;; 5590 esac 5591 fi 5592 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5593 if test -n "$ac_ct_DUMPBIN"; then 5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5595 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5596 else 5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5598 printf "%s\n" "no" >&6; } 5599 fi 5600 5601 5602 test -n "$ac_ct_DUMPBIN" && break 5603 done 5604 5605 if test "x$ac_ct_DUMPBIN" = x; then 5606 DUMPBIN=":" 5607 else 5608 case $cross_compiling:$ac_tool_warned in 5609 yes:) 5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5612 ac_tool_warned=yes ;; 5613 esac 5614 DUMPBIN=$ac_ct_DUMPBIN 5615 fi 5616 fi 5617 5618 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5619 *COFF*) 5620 DUMPBIN="$DUMPBIN -symbols -headers" 5621 ;; 5622 *) 5623 DUMPBIN=: 5624 ;; 5625 esac 5626 fi 5627 5628 if test : != "$DUMPBIN"; then 5629 NM=$DUMPBIN 5630 fi 5631 fi 5632 test -z "$NM" && NM=nm 5633 5634 5635 5636 5637 5638 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5640 printf %s "checking the name lister ($NM) interface... " >&6; } 5641 if test ${lt_cv_nm_interface+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else case e in #( 5645 e) lt_cv_nm_interface="BSD nm" 5646 echo "int some_variable = 0;" > conftest.$ac_ext 5647 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5648 (eval "$ac_compile" 2>conftest.err) 5649 cat conftest.err >&5 5650 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5652 cat conftest.err >&5 5653 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5654 cat conftest.out >&5 5655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5656 lt_cv_nm_interface="MS dumpbin" 5657 fi 5658 rm -f conftest* ;; 5659 esac 5660 fi 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5662 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5663 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5665 printf %s "checking whether ln -s works... " >&6; } 5666 LN_S=$as_ln_s 5667 if test "$LN_S" = "ln -s"; then 5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5669 printf "%s\n" "yes" >&6; } 5670 else 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5672 printf "%s\n" "no, using $LN_S" >&6; } 5673 fi 5674 5675 # find the maximum length of command line arguments 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5677 printf %s "checking the maximum length of command line arguments... " >&6; } 5678 if test ${lt_cv_sys_max_cmd_len+y} 5679 then : 5680 printf %s "(cached) " >&6 5681 else case e in #( 5682 e) i=0 5683 teststring=ABCD 5684 5685 case $build_os in 5686 msdosdjgpp*) 5687 # On DJGPP, this test can blow up pretty badly due to problems in libc 5688 # (any single argument exceeding 2000 bytes causes a buffer overrun 5689 # during glob expansion). Even if it were fixed, the result of this 5690 # check would be larger than it should be. 5691 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5692 ;; 5693 5694 gnu* | ironclad*) 5695 # Under GNU Hurd and Ironclad, this test is not required because there 5696 # is no limit to the length of command line arguments. 5697 # Libtool will interpret -1 as no limit whatsoever 5698 lt_cv_sys_max_cmd_len=-1; 5699 ;; 5700 5701 cygwin* | mingw* | windows* | cegcc*) 5702 # On Win9x/ME, this test blows up -- it succeeds, but takes 5703 # about 5 minutes as the teststring grows exponentially. 5704 # Worse, since 9x/ME are not pre-emptively multitasking, 5705 # you end up with a "frozen" computer, even though with patience 5706 # the test eventually succeeds (with a max line length of 256k). 5707 # Instead, let's just punt: use the minimum linelength reported by 5708 # all of the supported platforms: 8192 (on NT/2K/XP). 5709 lt_cv_sys_max_cmd_len=8192; 5710 ;; 5711 5712 mint*) 5713 # On MiNT this can take a long time and run out of memory. 5714 lt_cv_sys_max_cmd_len=8192; 5715 ;; 5716 5717 amigaos*) 5718 # On AmigaOS with pdksh, this test takes hours, literally. 5719 # So we just punt and use a minimum line length of 8192. 5720 lt_cv_sys_max_cmd_len=8192; 5721 ;; 5722 5723 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5724 # This has been around since 386BSD, at least. Likely further. 5725 if test -x /sbin/sysctl; then 5726 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5727 elif test -x /usr/sbin/sysctl; then 5728 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5729 else 5730 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5731 fi 5732 # And add a safety zone 5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5735 ;; 5736 5737 interix*) 5738 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5739 lt_cv_sys_max_cmd_len=196608 5740 ;; 5741 5742 os2*) 5743 # The test takes a long time on OS/2. 5744 lt_cv_sys_max_cmd_len=8192 5745 ;; 5746 5747 osf*) 5748 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5749 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5750 # nice to cause kernel panics so lets avoid the loop below. 5751 # First set a reasonable default. 5752 lt_cv_sys_max_cmd_len=16384 5753 # 5754 if test -x /sbin/sysconfig; then 5755 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5756 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5757 esac 5758 fi 5759 ;; 5760 sco3.2v5*) 5761 lt_cv_sys_max_cmd_len=102400 5762 ;; 5763 sysv5* | sco5v6* | sysv4.2uw2*) 5764 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5765 if test -n "$kargmax"; then 5766 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5767 else 5768 lt_cv_sys_max_cmd_len=32768 5769 fi 5770 ;; 5771 *) 5772 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5773 if test -n "$lt_cv_sys_max_cmd_len" && \ 5774 test undefined != "$lt_cv_sys_max_cmd_len"; then 5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5777 else 5778 # Make teststring a little bigger before we do anything with it. 5779 # a 1K string should be a reasonable start. 5780 for i in 1 2 3 4 5 6 7 8; do 5781 teststring=$teststring$teststring 5782 done 5783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5784 # If test is not a shell built-in, we'll probably end up computing a 5785 # maximum length that is only half of the actual maximum length, but 5786 # we can't tell. 5787 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5788 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5789 test 17 != "$i" # 1/2 MB should be enough 5790 do 5791 i=`expr $i + 1` 5792 teststring=$teststring$teststring 5793 done 5794 # Only check the string length outside the loop. 5795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5796 teststring= 5797 # Add a significant safety factor because C++ compilers can tack on 5798 # massive amounts of additional arguments before passing them to the 5799 # linker. It appears as though 1/2 is a usable value. 5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5801 fi 5802 ;; 5803 esac 5804 ;; 5805 esac 5806 fi 5807 5808 if test -n "$lt_cv_sys_max_cmd_len"; then 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5810 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5811 else 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5813 printf "%s\n" "none" >&6; } 5814 fi 5815 max_cmd_len=$lt_cv_sys_max_cmd_len 5816 5817 5818 5819 5820 5821 5822 : ${CP="cp -f"} 5823 : ${MV="mv -f"} 5824 : ${RM="rm -f"} 5825 5826 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5827 lt_unset=unset 5828 else 5829 lt_unset=false 5830 fi 5831 5832 5833 5834 5835 5836 # test EBCDIC or ASCII 5837 case `echo X|tr X '\101'` in 5838 A) # ASCII based system 5839 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5840 lt_SP2NL='tr \040 \012' 5841 lt_NL2SP='tr \015\012 \040\040' 5842 ;; 5843 *) # EBCDIC based system 5844 lt_SP2NL='tr \100 \n' 5845 lt_NL2SP='tr \r\n \100\100' 5846 ;; 5847 esac 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5858 printf %s "checking how to convert $build file names to $host format... " >&6; } 5859 if test ${lt_cv_to_host_file_cmd+y} 5860 then : 5861 printf %s "(cached) " >&6 5862 else case e in #( 5863 e) case $host in 5864 *-*-mingw* ) 5865 case $build in 5866 *-*-mingw* | *-*-windows* ) # actually msys 5867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5868 ;; 5869 *-*-cygwin* ) 5870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5871 ;; 5872 * ) # otherwise, assume *nix 5873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5874 ;; 5875 esac 5876 ;; 5877 *-*-cygwin* ) 5878 case $build in 5879 *-*-mingw* | *-*-windows* ) # actually msys 5880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5881 ;; 5882 *-*-cygwin* ) 5883 lt_cv_to_host_file_cmd=func_convert_file_noop 5884 ;; 5885 * ) # otherwise, assume *nix 5886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5887 ;; 5888 esac 5889 ;; 5890 * ) # unhandled hosts (and "normal" native builds) 5891 lt_cv_to_host_file_cmd=func_convert_file_noop 5892 ;; 5893 esac 5894 ;; 5895 esac 5896 fi 5897 5898 to_host_file_cmd=$lt_cv_to_host_file_cmd 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5900 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5901 5902 5903 5904 5905 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5907 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5908 if test ${lt_cv_to_tool_file_cmd+y} 5909 then : 5910 printf %s "(cached) " >&6 5911 else case e in #( 5912 e) #assume ordinary cross tools, or native build. 5913 lt_cv_to_tool_file_cmd=func_convert_file_noop 5914 case $host in 5915 *-*-mingw* | *-*-windows* ) 5916 case $build in 5917 *-*-mingw* | *-*-windows* ) # actually msys 5918 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5919 ;; 5920 esac 5921 ;; 5922 esac 5923 ;; 5924 esac 5925 fi 5926 5927 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5929 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5930 5931 5932 5933 5934 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5936 printf %s "checking for $LD option to reload object files... " >&6; } 5937 if test ${lt_cv_ld_reload_flag+y} 5938 then : 5939 printf %s "(cached) " >&6 5940 else case e in #( 5941 e) lt_cv_ld_reload_flag='-r' ;; 5942 esac 5943 fi 5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5945 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5946 reload_flag=$lt_cv_ld_reload_flag 5947 case $reload_flag in 5948 "" | " "*) ;; 5949 *) reload_flag=" $reload_flag" ;; 5950 esac 5951 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5952 case $host_os in 5953 cygwin* | mingw* | windows* | pw32* | cegcc*) 5954 if test yes != "$GCC"; then 5955 reload_cmds=false 5956 fi 5957 ;; 5958 darwin*) 5959 if test yes = "$GCC"; then 5960 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5961 else 5962 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5963 fi 5964 ;; 5965 esac 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 # Extract the first word of "file", so it can be a program name with args. 5976 set dummy file; ac_word=$2 5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5978 printf %s "checking for $ac_word... " >&6; } 5979 if test ${ac_cv_prog_FILECMD+y} 5980 then : 5981 printf %s "(cached) " >&6 5982 else case e in #( 5983 e) if test -n "$FILECMD"; then 5984 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5985 else 5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5987 for as_dir in $PATH 5988 do 5989 IFS=$as_save_IFS 5990 case $as_dir in #((( 5991 '') as_dir=./ ;; 5992 */) ;; 5993 *) as_dir=$as_dir/ ;; 5994 esac 5995 for ac_exec_ext in '' $ac_executable_extensions; do 5996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5997 ac_cv_prog_FILECMD="file" 5998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5999 break 2 6000 fi 6001 done 6002 done 6003 IFS=$as_save_IFS 6004 6005 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6006 fi ;; 6007 esac 6008 fi 6009 FILECMD=$ac_cv_prog_FILECMD 6010 if test -n "$FILECMD"; then 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6012 printf "%s\n" "$FILECMD" >&6; } 6013 else 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6015 printf "%s\n" "no" >&6; } 6016 fi 6017 6018 6019 6020 6021 6022 6023 6024 6025 if test -n "$ac_tool_prefix"; then 6026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6027 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6029 printf %s "checking for $ac_word... " >&6; } 6030 if test ${ac_cv_prog_OBJDUMP+y} 6031 then : 6032 printf %s "(cached) " >&6 6033 else case e in #( 6034 e) if test -n "$OBJDUMP"; then 6035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6036 else 6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6038 for as_dir in $PATH 6039 do 6040 IFS=$as_save_IFS 6041 case $as_dir in #((( 6042 '') as_dir=./ ;; 6043 */) ;; 6044 *) as_dir=$as_dir/ ;; 6045 esac 6046 for ac_exec_ext in '' $ac_executable_extensions; do 6047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6050 break 2 6051 fi 6052 done 6053 done 6054 IFS=$as_save_IFS 6055 6056 fi ;; 6057 esac 6058 fi 6059 OBJDUMP=$ac_cv_prog_OBJDUMP 6060 if test -n "$OBJDUMP"; then 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6062 printf "%s\n" "$OBJDUMP" >&6; } 6063 else 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6065 printf "%s\n" "no" >&6; } 6066 fi 6067 6068 6069 fi 6070 if test -z "$ac_cv_prog_OBJDUMP"; then 6071 ac_ct_OBJDUMP=$OBJDUMP 6072 # Extract the first word of "objdump", so it can be a program name with args. 6073 set dummy objdump; ac_word=$2 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075 printf %s "checking for $ac_word... " >&6; } 6076 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6077 then : 6078 printf %s "(cached) " >&6 6079 else case e in #( 6080 e) if test -n "$ac_ct_OBJDUMP"; then 6081 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6082 else 6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084 for as_dir in $PATH 6085 do 6086 IFS=$as_save_IFS 6087 case $as_dir in #((( 6088 '') as_dir=./ ;; 6089 */) ;; 6090 *) as_dir=$as_dir/ ;; 6091 esac 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6094 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098 done 6099 done 6100 IFS=$as_save_IFS 6101 6102 fi ;; 6103 esac 6104 fi 6105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6106 if test -n "$ac_ct_OBJDUMP"; then 6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6108 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6109 else 6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111 printf "%s\n" "no" >&6; } 6112 fi 6113 6114 if test "x$ac_ct_OBJDUMP" = x; then 6115 OBJDUMP="false" 6116 else 6117 case $cross_compiling:$ac_tool_warned in 6118 yes:) 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6121 ac_tool_warned=yes ;; 6122 esac 6123 OBJDUMP=$ac_ct_OBJDUMP 6124 fi 6125 else 6126 OBJDUMP="$ac_cv_prog_OBJDUMP" 6127 fi 6128 6129 test -z "$OBJDUMP" && OBJDUMP=objdump 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6140 printf %s "checking how to recognize dependent libraries... " >&6; } 6141 if test ${lt_cv_deplibs_check_method+y} 6142 then : 6143 printf %s "(cached) " >&6 6144 else case e in #( 6145 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6146 lt_cv_file_magic_test_file= 6147 lt_cv_deplibs_check_method='unknown' 6148 # Need to set the preceding variable on all platforms that support 6149 # interlibrary dependencies. 6150 # 'none' -- dependencies not supported. 6151 # 'unknown' -- same as none, but documents that we really don't know. 6152 # 'pass_all' -- all dependencies passed with no checks. 6153 # 'file_magic [[regex]]' -- check by looking for files in library path 6154 # that responds to the $file_magic_cmd with a given extended regex. 6155 # If you have 'file' or equivalent on your system and you're not sure 6156 # whether 'pass_all' will *always* work, you probably want this one. 6157 6158 case $host_os in 6159 aix[4-9]*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162 6163 beos*) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 6167 bsdi[45]*) 6168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6169 lt_cv_file_magic_cmd='$FILECMD -L' 6170 lt_cv_file_magic_test_file=/shlib/libc.so 6171 ;; 6172 6173 cygwin*) 6174 # func_win32_libid is a shell function defined in ltmain.sh 6175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6176 lt_cv_file_magic_cmd='func_win32_libid' 6177 ;; 6178 6179 mingw* | windows* | pw32*) 6180 # Base MSYS/MinGW do not provide the 'file' command needed by 6181 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6182 # unless we find 'file', for example because we are cross-compiling. 6183 if ( file / ) >/dev/null 2>&1; then 6184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6185 lt_cv_file_magic_cmd='func_win32_libid' 6186 else 6187 # Keep this pattern in sync with the one in func_win32_libid. 6188 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6189 lt_cv_file_magic_cmd='$OBJDUMP -f' 6190 fi 6191 ;; 6192 6193 cegcc*) 6194 # use the weaker test based on 'objdump'. See mingw*. 6195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6196 lt_cv_file_magic_cmd='$OBJDUMP -f' 6197 ;; 6198 6199 darwin* | rhapsody*) 6200 lt_cv_deplibs_check_method=pass_all 6201 ;; 6202 6203 freebsd* | dragonfly* | midnightbsd*) 6204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6205 case $host_cpu in 6206 i*86 ) 6207 # Not sure whether the presence of OpenBSD here was a mistake. 6208 # Let's accept both of them until this is cleared up. 6209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6210 lt_cv_file_magic_cmd=$FILECMD 6211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6212 ;; 6213 esac 6214 else 6215 lt_cv_deplibs_check_method=pass_all 6216 fi 6217 ;; 6218 6219 haiku*) 6220 lt_cv_deplibs_check_method=pass_all 6221 ;; 6222 6223 hpux10.20* | hpux11*) 6224 lt_cv_file_magic_cmd=$FILECMD 6225 case $host_cpu in 6226 ia64*) 6227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6229 ;; 6230 hppa*64*) 6231 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]' 6232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6233 ;; 6234 *) 6235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6236 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6237 ;; 6238 esac 6239 ;; 6240 6241 interix[3-9]*) 6242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6244 ;; 6245 6246 irix5* | irix6* | nonstopux*) 6247 case $LD in 6248 *-32|*"-32 ") libmagic=32-bit;; 6249 *-n32|*"-n32 ") libmagic=N32;; 6250 *-64|*"-64 ") libmagic=64-bit;; 6251 *) libmagic=never-match;; 6252 esac 6253 lt_cv_deplibs_check_method=pass_all 6254 ;; 6255 6256 # This must be glibc/ELF. 6257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6258 lt_cv_deplibs_check_method=pass_all 6259 ;; 6260 6261 *-mlibc) 6262 lt_cv_deplibs_check_method=pass_all 6263 ;; 6264 6265 netbsd* | netbsdelf*-gnu) 6266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6268 else 6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6270 fi 6271 ;; 6272 6273 newos6*) 6274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6275 lt_cv_file_magic_cmd=$FILECMD 6276 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6277 ;; 6278 6279 *nto* | *qnx*) 6280 lt_cv_deplibs_check_method=pass_all 6281 ;; 6282 6283 openbsd*) 6284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6286 else 6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6288 fi 6289 ;; 6290 6291 osf3* | osf4* | osf5*) 6292 lt_cv_deplibs_check_method=pass_all 6293 ;; 6294 6295 rdos*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299 serenity*) 6300 lt_cv_deplibs_check_method=pass_all 6301 ;; 6302 6303 solaris*) 6304 lt_cv_deplibs_check_method=pass_all 6305 ;; 6306 6307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311 sysv4 | sysv4.3*) 6312 case $host_vendor in 6313 motorola) 6314 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]' 6315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6316 ;; 6317 ncr) 6318 lt_cv_deplibs_check_method=pass_all 6319 ;; 6320 sequent) 6321 lt_cv_file_magic_cmd='/bin/file' 6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6323 ;; 6324 sni) 6325 lt_cv_file_magic_cmd='/bin/file' 6326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6327 lt_cv_file_magic_test_file=/lib/libc.so 6328 ;; 6329 siemens) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 pc) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335 esac 6336 ;; 6337 6338 tpf*) 6339 lt_cv_deplibs_check_method=pass_all 6340 ;; 6341 os2*) 6342 lt_cv_deplibs_check_method=pass_all 6343 ;; 6344 esac 6345 ;; 6346 esac 6347 fi 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6349 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6350 6351 file_magic_glob= 6352 want_nocaseglob=no 6353 if test "$build" = "$host"; then 6354 case $host_os in 6355 mingw* | windows* | pw32*) 6356 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6357 want_nocaseglob=yes 6358 else 6359 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6360 fi 6361 ;; 6362 esac 6363 fi 6364 6365 file_magic_cmd=$lt_cv_file_magic_cmd 6366 deplibs_check_method=$lt_cv_deplibs_check_method 6367 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 if test -n "$ac_tool_prefix"; then 6391 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6392 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394 printf %s "checking for $ac_word... " >&6; } 6395 if test ${ac_cv_prog_DLLTOOL+y} 6396 then : 6397 printf %s "(cached) " >&6 6398 else case e in #( 6399 e) if test -n "$DLLTOOL"; then 6400 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6401 else 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 case $as_dir in #((( 6407 '') as_dir=./ ;; 6408 */) ;; 6409 *) as_dir=$as_dir/ ;; 6410 esac 6411 for ac_exec_ext in '' $ac_executable_extensions; do 6412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6413 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6415 break 2 6416 fi 6417 done 6418 done 6419 IFS=$as_save_IFS 6420 6421 fi ;; 6422 esac 6423 fi 6424 DLLTOOL=$ac_cv_prog_DLLTOOL 6425 if test -n "$DLLTOOL"; then 6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6427 printf "%s\n" "$DLLTOOL" >&6; } 6428 else 6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6430 printf "%s\n" "no" >&6; } 6431 fi 6432 6433 6434 fi 6435 if test -z "$ac_cv_prog_DLLTOOL"; then 6436 ac_ct_DLLTOOL=$DLLTOOL 6437 # Extract the first word of "dlltool", so it can be a program name with args. 6438 set dummy dlltool; ac_word=$2 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6440 printf %s "checking for $ac_word... " >&6; } 6441 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6442 then : 6443 printf %s "(cached) " >&6 6444 else case e in #( 6445 e) if test -n "$ac_ct_DLLTOOL"; then 6446 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6447 else 6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6449 for as_dir in $PATH 6450 do 6451 IFS=$as_save_IFS 6452 case $as_dir in #((( 6453 '') as_dir=./ ;; 6454 */) ;; 6455 *) as_dir=$as_dir/ ;; 6456 esac 6457 for ac_exec_ext in '' $ac_executable_extensions; do 6458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6459 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6461 break 2 6462 fi 6463 done 6464 done 6465 IFS=$as_save_IFS 6466 6467 fi ;; 6468 esac 6469 fi 6470 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6471 if test -n "$ac_ct_DLLTOOL"; then 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6473 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6474 else 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6476 printf "%s\n" "no" >&6; } 6477 fi 6478 6479 if test "x$ac_ct_DLLTOOL" = x; then 6480 DLLTOOL="false" 6481 else 6482 case $cross_compiling:$ac_tool_warned in 6483 yes:) 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6485 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6486 ac_tool_warned=yes ;; 6487 esac 6488 DLLTOOL=$ac_ct_DLLTOOL 6489 fi 6490 else 6491 DLLTOOL="$ac_cv_prog_DLLTOOL" 6492 fi 6493 6494 test -z "$DLLTOOL" && DLLTOOL=dlltool 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6506 printf %s "checking how to associate runtime and link libraries... " >&6; } 6507 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6508 then : 6509 printf %s "(cached) " >&6 6510 else case e in #( 6511 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6512 6513 case $host_os in 6514 cygwin* | mingw* | windows* | pw32* | cegcc*) 6515 # two different shell functions defined in ltmain.sh; 6516 # decide which one to use based on capabilities of $DLLTOOL 6517 case `$DLLTOOL --help 2>&1` in 6518 *--identify-strict*) 6519 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6520 ;; 6521 *) 6522 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6523 ;; 6524 esac 6525 ;; 6526 *) 6527 # fallback: assume linklib IS sharedlib 6528 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6529 ;; 6530 esac 6531 ;; 6532 esac 6533 fi 6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6535 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6538 6539 6540 6541 6542 6543 6544 6545 6546 if test -n "$ac_tool_prefix"; then 6547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6548 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6550 printf %s "checking for $ac_word... " >&6; } 6551 if test ${ac_cv_prog_RANLIB+y} 6552 then : 6553 printf %s "(cached) " >&6 6554 else case e in #( 6555 e) if test -n "$RANLIB"; then 6556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6557 else 6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559 for as_dir in $PATH 6560 do 6561 IFS=$as_save_IFS 6562 case $as_dir in #((( 6563 '') as_dir=./ ;; 6564 */) ;; 6565 *) as_dir=$as_dir/ ;; 6566 esac 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573 done 6574 done 6575 IFS=$as_save_IFS 6576 6577 fi ;; 6578 esac 6579 fi 6580 RANLIB=$ac_cv_prog_RANLIB 6581 if test -n "$RANLIB"; then 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6583 printf "%s\n" "$RANLIB" >&6; } 6584 else 6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586 printf "%s\n" "no" >&6; } 6587 fi 6588 6589 6590 fi 6591 if test -z "$ac_cv_prog_RANLIB"; then 6592 ac_ct_RANLIB=$RANLIB 6593 # Extract the first word of "ranlib", so it can be a program name with args. 6594 set dummy ranlib; ac_word=$2 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596 printf %s "checking for $ac_word... " >&6; } 6597 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6598 then : 6599 printf %s "(cached) " >&6 6600 else case e in #( 6601 e) if test -n "$ac_ct_RANLIB"; then 6602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6603 else 6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6605 for as_dir in $PATH 6606 do 6607 IFS=$as_save_IFS 6608 case $as_dir in #((( 6609 '') as_dir=./ ;; 6610 */) ;; 6611 *) as_dir=$as_dir/ ;; 6612 esac 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_RANLIB="ranlib" 6616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619 done 6620 done 6621 IFS=$as_save_IFS 6622 6623 fi ;; 6624 esac 6625 fi 6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6627 if test -n "$ac_ct_RANLIB"; then 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6629 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6630 else 6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6632 printf "%s\n" "no" >&6; } 6633 fi 6634 6635 if test "x$ac_ct_RANLIB" = x; then 6636 RANLIB=":" 6637 else 6638 case $cross_compiling:$ac_tool_warned in 6639 yes:) 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6641 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6642 ac_tool_warned=yes ;; 6643 esac 6644 RANLIB=$ac_ct_RANLIB 6645 fi 6646 else 6647 RANLIB="$ac_cv_prog_RANLIB" 6648 fi 6649 6650 if test -n "$ac_tool_prefix"; then 6651 for ac_prog in ar 6652 do 6653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656 printf %s "checking for $ac_word... " >&6; } 6657 if test ${ac_cv_prog_AR+y} 6658 then : 6659 printf %s "(cached) " >&6 6660 else case e in #( 6661 e) if test -n "$AR"; then 6662 ac_cv_prog_AR="$AR" # Let the user override the test. 6663 else 6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665 for as_dir in $PATH 6666 do 6667 IFS=$as_save_IFS 6668 case $as_dir in #((( 6669 '') as_dir=./ ;; 6670 */) ;; 6671 *) as_dir=$as_dir/ ;; 6672 esac 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6675 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679 done 6680 done 6681 IFS=$as_save_IFS 6682 6683 fi ;; 6684 esac 6685 fi 6686 AR=$ac_cv_prog_AR 6687 if test -n "$AR"; then 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6689 printf "%s\n" "$AR" >&6; } 6690 else 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6692 printf "%s\n" "no" >&6; } 6693 fi 6694 6695 6696 test -n "$AR" && break 6697 done 6698 fi 6699 if test -z "$AR"; then 6700 ac_ct_AR=$AR 6701 for ac_prog in ar 6702 do 6703 # Extract the first word of "$ac_prog", so it can be a program name with args. 6704 set dummy $ac_prog; ac_word=$2 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6706 printf %s "checking for $ac_word... " >&6; } 6707 if test ${ac_cv_prog_ac_ct_AR+y} 6708 then : 6709 printf %s "(cached) " >&6 6710 else case e in #( 6711 e) if test -n "$ac_ct_AR"; then 6712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6713 else 6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715 for as_dir in $PATH 6716 do 6717 IFS=$as_save_IFS 6718 case $as_dir in #((( 6719 '') as_dir=./ ;; 6720 */) ;; 6721 *) as_dir=$as_dir/ ;; 6722 esac 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_ac_ct_AR="$ac_prog" 6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729 done 6730 done 6731 IFS=$as_save_IFS 6732 6733 fi ;; 6734 esac 6735 fi 6736 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6737 if test -n "$ac_ct_AR"; then 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6739 printf "%s\n" "$ac_ct_AR" >&6; } 6740 else 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6742 printf "%s\n" "no" >&6; } 6743 fi 6744 6745 6746 test -n "$ac_ct_AR" && break 6747 done 6748 6749 if test "x$ac_ct_AR" = x; then 6750 AR="false" 6751 else 6752 case $cross_compiling:$ac_tool_warned in 6753 yes:) 6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6756 ac_tool_warned=yes ;; 6757 esac 6758 AR=$ac_ct_AR 6759 fi 6760 fi 6761 6762 : ${AR=ar} 6763 6764 6765 6766 6767 6768 6769 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6770 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6771 # higher priority because that's what people were doing historically (setting 6772 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6773 # variable obsoleted/removed. 6774 6775 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6776 lt_ar_flags=$AR_FLAGS 6777 6778 6779 6780 6781 6782 6783 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6784 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6785 6786 6787 6788 6789 6790 6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6792 printf %s "checking for archiver @FILE support... " >&6; } 6793 if test ${lt_cv_ar_at_file+y} 6794 then : 6795 printf %s "(cached) " >&6 6796 else case e in #( 6797 e) lt_cv_ar_at_file=no 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799 /* end confdefs.h. */ 6800 6801 int 6802 main (void) 6803 { 6804 6805 ; 6806 return 0; 6807 } 6808 _ACEOF 6809 if ac_fn_c_try_compile "$LINENO" 6810 then : 6811 echo conftest.$ac_objext > conftest.lst 6812 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6814 (eval $lt_ar_try) 2>&5 6815 ac_status=$? 6816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6817 test $ac_status = 0; } 6818 if test 0 -eq "$ac_status"; then 6819 # Ensure the archiver fails upon bogus file names. 6820 rm -f conftest.$ac_objext libconftest.a 6821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6822 (eval $lt_ar_try) 2>&5 6823 ac_status=$? 6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6825 test $ac_status = 0; } 6826 if test 0 -ne "$ac_status"; then 6827 lt_cv_ar_at_file=@ 6828 fi 6829 fi 6830 rm -f conftest.* libconftest.a 6831 6832 fi 6833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6834 ;; 6835 esac 6836 fi 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6838 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6839 6840 if test no = "$lt_cv_ar_at_file"; then 6841 archiver_list_spec= 6842 else 6843 archiver_list_spec=$lt_cv_ar_at_file 6844 fi 6845 6846 6847 6848 6849 6850 6851 6852 if test -n "$ac_tool_prefix"; then 6853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6854 set dummy ${ac_tool_prefix}strip; ac_word=$2 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856 printf %s "checking for $ac_word... " >&6; } 6857 if test ${ac_cv_prog_STRIP+y} 6858 then : 6859 printf %s "(cached) " >&6 6860 else case e in #( 6861 e) if test -n "$STRIP"; then 6862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6863 else 6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865 for as_dir in $PATH 6866 do 6867 IFS=$as_save_IFS 6868 case $as_dir in #((( 6869 '') as_dir=./ ;; 6870 */) ;; 6871 *) as_dir=$as_dir/ ;; 6872 esac 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879 done 6880 done 6881 IFS=$as_save_IFS 6882 6883 fi ;; 6884 esac 6885 fi 6886 STRIP=$ac_cv_prog_STRIP 6887 if test -n "$STRIP"; then 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6889 printf "%s\n" "$STRIP" >&6; } 6890 else 6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892 printf "%s\n" "no" >&6; } 6893 fi 6894 6895 6896 fi 6897 if test -z "$ac_cv_prog_STRIP"; then 6898 ac_ct_STRIP=$STRIP 6899 # Extract the first word of "strip", so it can be a program name with args. 6900 set dummy strip; ac_word=$2 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6902 printf %s "checking for $ac_word... " >&6; } 6903 if test ${ac_cv_prog_ac_ct_STRIP+y} 6904 then : 6905 printf %s "(cached) " >&6 6906 else case e in #( 6907 e) if test -n "$ac_ct_STRIP"; then 6908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6909 else 6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911 for as_dir in $PATH 6912 do 6913 IFS=$as_save_IFS 6914 case $as_dir in #((( 6915 '') as_dir=./ ;; 6916 */) ;; 6917 *) as_dir=$as_dir/ ;; 6918 esac 6919 for ac_exec_ext in '' $ac_executable_extensions; do 6920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6921 ac_cv_prog_ac_ct_STRIP="strip" 6922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6923 break 2 6924 fi 6925 done 6926 done 6927 IFS=$as_save_IFS 6928 6929 fi ;; 6930 esac 6931 fi 6932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6933 if test -n "$ac_ct_STRIP"; then 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6935 printf "%s\n" "$ac_ct_STRIP" >&6; } 6936 else 6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938 printf "%s\n" "no" >&6; } 6939 fi 6940 6941 if test "x$ac_ct_STRIP" = x; then 6942 STRIP=":" 6943 else 6944 case $cross_compiling:$ac_tool_warned in 6945 yes:) 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6948 ac_tool_warned=yes ;; 6949 esac 6950 STRIP=$ac_ct_STRIP 6951 fi 6952 else 6953 STRIP="$ac_cv_prog_STRIP" 6954 fi 6955 6956 test -z "$STRIP" && STRIP=: 6957 6958 6959 6960 6961 6962 6963 6964 test -z "$RANLIB" && RANLIB=: 6965 6966 6967 6968 6969 6970 6971 # Determine commands to create old-style static archives. 6972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6973 old_postinstall_cmds='chmod 644 $oldlib' 6974 old_postuninstall_cmds= 6975 6976 if test -n "$RANLIB"; then 6977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6979 fi 6980 6981 case $host_os in 6982 darwin*) 6983 lock_old_archive_extraction=yes ;; 6984 *) 6985 lock_old_archive_extraction=no ;; 6986 esac 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 # If no C compiler was specified, use CC. 7027 LTCC=${LTCC-"$CC"} 7028 7029 # If no C compiler flags were specified, use CFLAGS. 7030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7031 7032 # Allow CC to be a program name with arguments. 7033 compiler=$CC 7034 7035 7036 # Check for command to grab the raw symbol name followed by C symbol from nm. 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7038 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7039 if test ${lt_cv_sys_global_symbol_pipe+y} 7040 then : 7041 printf %s "(cached) " >&6 7042 else case e in #( 7043 e) 7044 # These are sane defaults that work on at least a few old systems. 7045 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7046 7047 # Character class describing NM global symbol codes. 7048 symcode='[BCDEGRST]' 7049 7050 # Regexp to match symbols that can be accessed directly from C. 7051 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7052 7053 # Define system-specific variables. 7054 case $host_os in 7055 aix*) 7056 symcode='[BCDT]' 7057 ;; 7058 cygwin* | mingw* | windows* | pw32* | cegcc*) 7059 symcode='[ABCDGISTW]' 7060 ;; 7061 hpux*) 7062 if test ia64 = "$host_cpu"; then 7063 symcode='[ABCDEGRST]' 7064 fi 7065 ;; 7066 irix* | nonstopux*) 7067 symcode='[BCDEGRST]' 7068 ;; 7069 osf*) 7070 symcode='[BCDEGQRST]' 7071 ;; 7072 solaris*) 7073 symcode='[BCDRT]' 7074 ;; 7075 sco3.2v5*) 7076 symcode='[DT]' 7077 ;; 7078 sysv4.2uw2*) 7079 symcode='[DT]' 7080 ;; 7081 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7082 symcode='[ABDT]' 7083 ;; 7084 sysv4) 7085 symcode='[DFNSTU]' 7086 ;; 7087 esac 7088 7089 # If we're using GNU nm, then use its standard symbol codes. 7090 case `$NM -V 2>&1` in 7091 *GNU* | *'with BFD'*) 7092 symcode='[ABCDGIRSTW]' ;; 7093 esac 7094 7095 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7096 # Gets list of data symbols to import. 7097 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7098 # Adjust the below global symbol transforms to fixup imported variables. 7099 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7100 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7101 lt_c_name_lib_hook="\ 7102 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7103 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7104 else 7105 # Disable hooks by default. 7106 lt_cv_sys_global_symbol_to_import= 7107 lt_cdecl_hook= 7108 lt_c_name_hook= 7109 lt_c_name_lib_hook= 7110 fi 7111 7112 # Transform an extracted symbol line into a proper C declaration. 7113 # Some systems (esp. on ia64) link data and code symbols differently, 7114 # so use this general approach. 7115 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7116 $lt_cdecl_hook\ 7117 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7118 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7119 7120 # Transform an extracted symbol line into symbol name and symbol address 7121 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7122 $lt_c_name_hook\ 7123 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7124 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7125 7126 # Transform an extracted symbol line into symbol name with lib prefix and 7127 # symbol address. 7128 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7129 $lt_c_name_lib_hook\ 7130 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7131 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7132 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7133 7134 # Handle CRLF in mingw tool chain 7135 opt_cr= 7136 case $build_os in 7137 mingw* | windows*) 7138 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7139 ;; 7140 esac 7141 7142 # Try without a prefix underscore, then with it. 7143 for ac_symprfx in "" "_"; do 7144 7145 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7146 symxfrm="\\1 $ac_symprfx\\2 \\2" 7147 7148 # Write the raw and C identifiers. 7149 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7150 # Fake it for dumpbin and say T for any non-static function, 7151 # D for any global variable and I for any imported variable. 7152 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7153 # which start with @ or ?. 7154 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7155 " {last_section=section; section=\$ 3};"\ 7156 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7157 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7158 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7159 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7160 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7161 " \$ 0!~/External *\|/{next};"\ 7162 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7163 " {if(hide[section]) next};"\ 7164 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7165 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7166 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7167 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7168 " ' prfx=^$ac_symprfx" 7169 else 7170 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7171 fi 7172 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7173 7174 # Check to see that the pipe works correctly. 7175 pipe_works=no 7176 7177 rm -f conftest* 7178 cat > conftest.$ac_ext <<_LT_EOF 7179 #ifdef __cplusplus 7180 extern "C" { 7181 #endif 7182 char nm_test_var; 7183 void nm_test_func(void); 7184 void nm_test_func(void){} 7185 #ifdef __cplusplus 7186 } 7187 #endif 7188 int main(void){nm_test_var='a';nm_test_func();return(0);} 7189 _LT_EOF 7190 7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7192 (eval $ac_compile) 2>&5 7193 ac_status=$? 7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7195 test $ac_status = 0; }; then 7196 # Now try to grab the symbols. 7197 nlist=conftest.nm 7198 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7199 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7200 # Try sorting and uniquifying the output. 7201 if sort "$nlist" | uniq > "$nlist"T; then 7202 mv -f "$nlist"T "$nlist" 7203 else 7204 rm -f "$nlist"T 7205 fi 7206 7207 # Make sure that we snagged all the symbols we need. 7208 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7209 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7210 cat <<_LT_EOF > conftest.$ac_ext 7211 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7212 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7213 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7214 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7215 # define LT_DLSYM_CONST 7216 #elif defined __osf__ 7217 /* This system does not cope well with relocations in const data. */ 7218 # define LT_DLSYM_CONST 7219 #else 7220 # define LT_DLSYM_CONST const 7221 #endif 7222 7223 #ifdef __cplusplus 7224 extern "C" { 7225 #endif 7226 7227 _LT_EOF 7228 # Now generate the symbol file. 7229 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7230 7231 cat <<_LT_EOF >> conftest.$ac_ext 7232 7233 /* The mapping between symbol names and symbols. */ 7234 LT_DLSYM_CONST struct { 7235 const char *name; 7236 void *address; 7237 } 7238 lt__PROGRAM__LTX_preloaded_symbols[] = 7239 { 7240 { "@PROGRAM@", (void *) 0 }, 7241 _LT_EOF 7242 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7243 cat <<\_LT_EOF >> conftest.$ac_ext 7244 {0, (void *) 0} 7245 }; 7246 7247 /* This works around a problem in FreeBSD linker */ 7248 #ifdef FREEBSD_WORKAROUND 7249 static const void *lt_preloaded_setup() { 7250 return lt__PROGRAM__LTX_preloaded_symbols; 7251 } 7252 #endif 7253 7254 #ifdef __cplusplus 7255 } 7256 #endif 7257 _LT_EOF 7258 # Now try linking the two files. 7259 mv conftest.$ac_objext conftstm.$ac_objext 7260 lt_globsym_save_LIBS=$LIBS 7261 lt_globsym_save_CFLAGS=$CFLAGS 7262 LIBS=conftstm.$ac_objext 7263 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7265 (eval $ac_link) 2>&5 7266 ac_status=$? 7267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7268 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7269 pipe_works=yes 7270 fi 7271 LIBS=$lt_globsym_save_LIBS 7272 CFLAGS=$lt_globsym_save_CFLAGS 7273 else 7274 echo "cannot find nm_test_func in $nlist" >&5 7275 fi 7276 else 7277 echo "cannot find nm_test_var in $nlist" >&5 7278 fi 7279 else 7280 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7281 fi 7282 else 7283 echo "$progname: failed program was:" >&5 7284 cat conftest.$ac_ext >&5 7285 fi 7286 rm -rf conftest* conftst* 7287 7288 # Do not use the global_symbol_pipe unless it works. 7289 if test yes = "$pipe_works"; then 7290 break 7291 else 7292 lt_cv_sys_global_symbol_pipe= 7293 fi 7294 done 7295 ;; 7296 esac 7297 fi 7298 7299 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7300 lt_cv_sys_global_symbol_to_cdecl= 7301 fi 7302 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7304 printf "%s\n" "failed" >&6; } 7305 else 7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7307 printf "%s\n" "ok" >&6; } 7308 fi 7309 7310 # Response file support. 7311 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7312 nm_file_list_spec='@' 7313 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7314 nm_file_list_spec='@' 7315 fi 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7354 printf %s "checking for sysroot... " >&6; } 7355 7356 # Check whether --with-sysroot was given. 7357 if test ${with_sysroot+y} 7358 then : 7359 withval=$with_sysroot; 7360 else case e in #( 7361 e) with_sysroot=no ;; 7362 esac 7363 fi 7364 7365 7366 lt_sysroot= 7367 case $with_sysroot in #( 7368 yes) 7369 if test yes = "$GCC"; then 7370 # Trim trailing / since we'll always append absolute paths and we want 7371 # to avoid //, if only for less confusing output for the user. 7372 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7373 fi 7374 ;; #( 7375 /*) 7376 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7377 ;; #( 7378 no|'') 7379 ;; #( 7380 *) 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7382 printf "%s\n" "$with_sysroot" >&6; } 7383 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7384 ;; 7385 esac 7386 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7388 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7389 7390 7391 7392 7393 7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7395 printf %s "checking for a working dd... " >&6; } 7396 if test ${ac_cv_path_lt_DD+y} 7397 then : 7398 printf %s "(cached) " >&6 7399 else case e in #( 7400 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7401 cat conftest.i conftest.i >conftest2.i 7402 : ${lt_DD:=$DD} 7403 if test -z "$lt_DD"; then 7404 ac_path_lt_DD_found=false 7405 # Loop through the user's path and test for each of PROGNAME-LIST 7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7407 for as_dir in $PATH 7408 do 7409 IFS=$as_save_IFS 7410 case $as_dir in #((( 7411 '') as_dir=./ ;; 7412 */) ;; 7413 *) as_dir=$as_dir/ ;; 7414 esac 7415 for ac_prog in dd 7416 do 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7419 as_fn_executable_p "$ac_path_lt_DD" || continue 7420 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7421 cmp -s conftest.i conftest.out \ 7422 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7423 fi 7424 $ac_path_lt_DD_found && break 3 7425 done 7426 done 7427 done 7428 IFS=$as_save_IFS 7429 if test -z "$ac_cv_path_lt_DD"; then 7430 : 7431 fi 7432 else 7433 ac_cv_path_lt_DD=$lt_DD 7434 fi 7435 7436 rm -f conftest.i conftest2.i conftest.out ;; 7437 esac 7438 fi 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7440 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7441 7442 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7444 printf %s "checking how to truncate binary pipes... " >&6; } 7445 if test ${lt_cv_truncate_bin+y} 7446 then : 7447 printf %s "(cached) " >&6 7448 else case e in #( 7449 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7450 cat conftest.i conftest.i >conftest2.i 7451 lt_cv_truncate_bin= 7452 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7453 cmp -s conftest.i conftest.out \ 7454 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7455 fi 7456 rm -f conftest.i conftest2.i conftest.out 7457 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7458 esac 7459 fi 7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7461 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7462 7463 7464 7465 7466 7467 7468 7469 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7470 func_cc_basename () 7471 { 7472 for cc_temp in $*""; do 7473 case $cc_temp in 7474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7476 \-*) ;; 7477 *) break;; 7478 esac 7479 done 7480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7481 } 7482 7483 # Check whether --enable-libtool-lock was given. 7484 if test ${enable_libtool_lock+y} 7485 then : 7486 enableval=$enable_libtool_lock; 7487 fi 7488 7489 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7490 7491 # Some flags need to be propagated to the compiler or linker for good 7492 # libtool support. 7493 case $host in 7494 ia64-*-hpux*) 7495 # Find out what ABI is being produced by ac_compile, and set mode 7496 # options accordingly. 7497 echo 'int i;' > conftest.$ac_ext 7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7499 (eval $ac_compile) 2>&5 7500 ac_status=$? 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7502 test $ac_status = 0; }; then 7503 case `$FILECMD conftest.$ac_objext` in 7504 *ELF-32*) 7505 HPUX_IA64_MODE=32 7506 ;; 7507 *ELF-64*) 7508 HPUX_IA64_MODE=64 7509 ;; 7510 esac 7511 fi 7512 rm -rf conftest* 7513 ;; 7514 *-*-irix6*) 7515 # Find out what ABI is being produced by ac_compile, and set linker 7516 # options accordingly. 7517 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7519 (eval $ac_compile) 2>&5 7520 ac_status=$? 7521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7522 test $ac_status = 0; }; then 7523 if test yes = "$lt_cv_prog_gnu_ld"; then 7524 case `$FILECMD conftest.$ac_objext` in 7525 *32-bit*) 7526 LD="${LD-ld} -melf32bsmip" 7527 ;; 7528 *N32*) 7529 LD="${LD-ld} -melf32bmipn32" 7530 ;; 7531 *64-bit*) 7532 LD="${LD-ld} -melf64bmip" 7533 ;; 7534 esac 7535 else 7536 case `$FILECMD conftest.$ac_objext` in 7537 *32-bit*) 7538 LD="${LD-ld} -32" 7539 ;; 7540 *N32*) 7541 LD="${LD-ld} -n32" 7542 ;; 7543 *64-bit*) 7544 LD="${LD-ld} -64" 7545 ;; 7546 esac 7547 fi 7548 fi 7549 rm -rf conftest* 7550 ;; 7551 7552 mips64*-*linux*) 7553 # Find out what ABI is being produced by ac_compile, and set linker 7554 # options accordingly. 7555 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7557 (eval $ac_compile) 2>&5 7558 ac_status=$? 7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7560 test $ac_status = 0; }; then 7561 emul=elf 7562 case `$FILECMD conftest.$ac_objext` in 7563 *32-bit*) 7564 emul="${emul}32" 7565 ;; 7566 *64-bit*) 7567 emul="${emul}64" 7568 ;; 7569 esac 7570 case `$FILECMD conftest.$ac_objext` in 7571 *MSB*) 7572 emul="${emul}btsmip" 7573 ;; 7574 *LSB*) 7575 emul="${emul}ltsmip" 7576 ;; 7577 esac 7578 case `$FILECMD conftest.$ac_objext` in 7579 *N32*) 7580 emul="${emul}n32" 7581 ;; 7582 esac 7583 LD="${LD-ld} -m $emul" 7584 fi 7585 rm -rf conftest* 7586 ;; 7587 7588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7590 # Find out what ABI is being produced by ac_compile, and set linker 7591 # options accordingly. Note that the listed cases only cover the 7592 # situations where additional linker options are needed (such as when 7593 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7594 # vice versa); the common cases where no linker options are needed do 7595 # not appear in the list. 7596 echo 'int i;' > conftest.$ac_ext 7597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7598 (eval $ac_compile) 2>&5 7599 ac_status=$? 7600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7601 test $ac_status = 0; }; then 7602 case `$FILECMD conftest.o` in 7603 *32-bit*) 7604 case $host in 7605 x86_64-*kfreebsd*-gnu) 7606 LD="${LD-ld} -m elf_i386_fbsd" 7607 ;; 7608 x86_64-*linux*|x86_64-gnu*) 7609 case `$FILECMD conftest.o` in 7610 *x86-64*) 7611 LD="${LD-ld} -m elf32_x86_64" 7612 ;; 7613 *) 7614 LD="${LD-ld} -m elf_i386" 7615 ;; 7616 esac 7617 ;; 7618 powerpc64le-*linux*) 7619 LD="${LD-ld} -m elf32lppclinux" 7620 ;; 7621 powerpc64-*linux*) 7622 LD="${LD-ld} -m elf32ppclinux" 7623 ;; 7624 s390x-*linux*) 7625 LD="${LD-ld} -m elf_s390" 7626 ;; 7627 sparc64-*linux*) 7628 LD="${LD-ld} -m elf32_sparc" 7629 ;; 7630 esac 7631 ;; 7632 *64-bit*) 7633 case $host in 7634 x86_64-*kfreebsd*-gnu) 7635 LD="${LD-ld} -m elf_x86_64_fbsd" 7636 ;; 7637 x86_64-*linux*|x86_64-gnu*) 7638 LD="${LD-ld} -m elf_x86_64" 7639 ;; 7640 powerpcle-*linux*) 7641 LD="${LD-ld} -m elf64lppc" 7642 ;; 7643 powerpc-*linux*) 7644 LD="${LD-ld} -m elf64ppc" 7645 ;; 7646 s390*-*linux*|s390*-*tpf*) 7647 LD="${LD-ld} -m elf64_s390" 7648 ;; 7649 sparc*-*linux*) 7650 LD="${LD-ld} -m elf64_sparc" 7651 ;; 7652 esac 7653 ;; 7654 esac 7655 fi 7656 rm -rf conftest* 7657 ;; 7658 7659 *-*-sco3.2v5*) 7660 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7661 SAVE_CFLAGS=$CFLAGS 7662 CFLAGS="$CFLAGS -belf" 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7664 printf %s "checking whether the C compiler needs -belf... " >&6; } 7665 if test ${lt_cv_cc_needs_belf+y} 7666 then : 7667 printf %s "(cached) " >&6 7668 else case e in #( 7669 e) ac_ext=c 7670 ac_cpp='$CPP $CPPFLAGS' 7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7674 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676 /* end confdefs.h. */ 7677 7678 int 7679 main (void) 7680 { 7681 7682 ; 7683 return 0; 7684 } 7685 _ACEOF 7686 if ac_fn_c_try_link "$LINENO" 7687 then : 7688 lt_cv_cc_needs_belf=yes 7689 else case e in #( 7690 e) lt_cv_cc_needs_belf=no ;; 7691 esac 7692 fi 7693 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7694 conftest$ac_exeext conftest.$ac_ext 7695 ac_ext=c 7696 ac_cpp='$CPP $CPPFLAGS' 7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7700 ;; 7701 esac 7702 fi 7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7704 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7705 if test yes != "$lt_cv_cc_needs_belf"; then 7706 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7707 CFLAGS=$SAVE_CFLAGS 7708 fi 7709 ;; 7710 *-*solaris*) 7711 # Find out what ABI is being produced by ac_compile, and set linker 7712 # options accordingly. 7713 echo 'int i;' > conftest.$ac_ext 7714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7715 (eval $ac_compile) 2>&5 7716 ac_status=$? 7717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7718 test $ac_status = 0; }; then 7719 case `$FILECMD conftest.o` in 7720 *64-bit*) 7721 case $lt_cv_prog_gnu_ld in 7722 yes*) 7723 case $host in 7724 i?86-*-solaris*|x86_64-*-solaris*) 7725 LD="${LD-ld} -m elf_x86_64" 7726 ;; 7727 sparc*-*-solaris*) 7728 LD="${LD-ld} -m elf64_sparc" 7729 ;; 7730 esac 7731 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7732 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7733 LD=${LD-ld}_sol2 7734 fi 7735 ;; 7736 *) 7737 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7738 LD="${LD-ld} -64" 7739 fi 7740 ;; 7741 esac 7742 ;; 7743 esac 7744 fi 7745 rm -rf conftest* 7746 ;; 7747 esac 7748 7749 need_locks=$enable_libtool_lock 7750 7751 if test -n "$ac_tool_prefix"; then 7752 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7753 set dummy ${ac_tool_prefix}mt; ac_word=$2 7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7755 printf %s "checking for $ac_word... " >&6; } 7756 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7757 then : 7758 printf %s "(cached) " >&6 7759 else case e in #( 7760 e) if test -n "$MANIFEST_TOOL"; then 7761 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7762 else 7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764 for as_dir in $PATH 7765 do 7766 IFS=$as_save_IFS 7767 case $as_dir in #((( 7768 '') as_dir=./ ;; 7769 */) ;; 7770 *) as_dir=$as_dir/ ;; 7771 esac 7772 for ac_exec_ext in '' $ac_executable_extensions; do 7773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7774 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7776 break 2 7777 fi 7778 done 7779 done 7780 IFS=$as_save_IFS 7781 7782 fi ;; 7783 esac 7784 fi 7785 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7786 if test -n "$MANIFEST_TOOL"; then 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7788 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7789 else 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791 printf "%s\n" "no" >&6; } 7792 fi 7793 7794 7795 fi 7796 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7797 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7798 # Extract the first word of "mt", so it can be a program name with args. 7799 set dummy mt; ac_word=$2 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7801 printf %s "checking for $ac_word... " >&6; } 7802 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7803 then : 7804 printf %s "(cached) " >&6 7805 else case e in #( 7806 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7807 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7808 else 7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7810 for as_dir in $PATH 7811 do 7812 IFS=$as_save_IFS 7813 case $as_dir in #((( 7814 '') as_dir=./ ;; 7815 */) ;; 7816 *) as_dir=$as_dir/ ;; 7817 esac 7818 for ac_exec_ext in '' $ac_executable_extensions; do 7819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7820 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7822 break 2 7823 fi 7824 done 7825 done 7826 IFS=$as_save_IFS 7827 7828 fi ;; 7829 esac 7830 fi 7831 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7832 if test -n "$ac_ct_MANIFEST_TOOL"; then 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7834 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7835 else 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7837 printf "%s\n" "no" >&6; } 7838 fi 7839 7840 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7841 MANIFEST_TOOL=":" 7842 else 7843 case $cross_compiling:$ac_tool_warned in 7844 yes:) 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7847 ac_tool_warned=yes ;; 7848 esac 7849 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7850 fi 7851 else 7852 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7853 fi 7854 7855 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7857 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7858 if test ${lt_cv_path_manifest_tool+y} 7859 then : 7860 printf %s "(cached) " >&6 7861 else case e in #( 7862 e) lt_cv_path_manifest_tool=no 7863 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7864 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7865 cat conftest.err >&5 7866 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7867 lt_cv_path_manifest_tool=yes 7868 fi 7869 rm -f conftest* ;; 7870 esac 7871 fi 7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7873 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7874 if test yes != "$lt_cv_path_manifest_tool"; then 7875 MANIFEST_TOOL=: 7876 fi 7877 7878 7879 7880 7881 7882 7883 case $host_os in 7884 rhapsody* | darwin*) 7885 if test -n "$ac_tool_prefix"; then 7886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7887 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7889 printf %s "checking for $ac_word... " >&6; } 7890 if test ${ac_cv_prog_DSYMUTIL+y} 7891 then : 7892 printf %s "(cached) " >&6 7893 else case e in #( 7894 e) if test -n "$DSYMUTIL"; then 7895 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7896 else 7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7898 for as_dir in $PATH 7899 do 7900 IFS=$as_save_IFS 7901 case $as_dir in #((( 7902 '') as_dir=./ ;; 7903 */) ;; 7904 *) as_dir=$as_dir/ ;; 7905 esac 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912 done 7913 done 7914 IFS=$as_save_IFS 7915 7916 fi ;; 7917 esac 7918 fi 7919 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7920 if test -n "$DSYMUTIL"; then 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7922 printf "%s\n" "$DSYMUTIL" >&6; } 7923 else 7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7925 printf "%s\n" "no" >&6; } 7926 fi 7927 7928 7929 fi 7930 if test -z "$ac_cv_prog_DSYMUTIL"; then 7931 ac_ct_DSYMUTIL=$DSYMUTIL 7932 # Extract the first word of "dsymutil", so it can be a program name with args. 7933 set dummy dsymutil; ac_word=$2 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7935 printf %s "checking for $ac_word... " >&6; } 7936 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7937 then : 7938 printf %s "(cached) " >&6 7939 else case e in #( 7940 e) if test -n "$ac_ct_DSYMUTIL"; then 7941 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7942 else 7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944 for as_dir in $PATH 7945 do 7946 IFS=$as_save_IFS 7947 case $as_dir in #((( 7948 '') as_dir=./ ;; 7949 */) ;; 7950 *) as_dir=$as_dir/ ;; 7951 esac 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958 done 7959 done 7960 IFS=$as_save_IFS 7961 7962 fi ;; 7963 esac 7964 fi 7965 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7966 if test -n "$ac_ct_DSYMUTIL"; then 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7968 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7969 else 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971 printf "%s\n" "no" >&6; } 7972 fi 7973 7974 if test "x$ac_ct_DSYMUTIL" = x; then 7975 DSYMUTIL=":" 7976 else 7977 case $cross_compiling:$ac_tool_warned in 7978 yes:) 7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7981 ac_tool_warned=yes ;; 7982 esac 7983 DSYMUTIL=$ac_ct_DSYMUTIL 7984 fi 7985 else 7986 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7987 fi 7988 7989 if test -n "$ac_tool_prefix"; then 7990 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7991 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7993 printf %s "checking for $ac_word... " >&6; } 7994 if test ${ac_cv_prog_NMEDIT+y} 7995 then : 7996 printf %s "(cached) " >&6 7997 else case e in #( 7998 e) if test -n "$NMEDIT"; then 7999 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8000 else 8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002 for as_dir in $PATH 8003 do 8004 IFS=$as_save_IFS 8005 case $as_dir in #((( 8006 '') as_dir=./ ;; 8007 */) ;; 8008 *) as_dir=$as_dir/ ;; 8009 esac 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016 done 8017 done 8018 IFS=$as_save_IFS 8019 8020 fi ;; 8021 esac 8022 fi 8023 NMEDIT=$ac_cv_prog_NMEDIT 8024 if test -n "$NMEDIT"; then 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8026 printf "%s\n" "$NMEDIT" >&6; } 8027 else 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029 printf "%s\n" "no" >&6; } 8030 fi 8031 8032 8033 fi 8034 if test -z "$ac_cv_prog_NMEDIT"; then 8035 ac_ct_NMEDIT=$NMEDIT 8036 # Extract the first word of "nmedit", so it can be a program name with args. 8037 set dummy nmedit; ac_word=$2 8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039 printf %s "checking for $ac_word... " >&6; } 8040 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8041 then : 8042 printf %s "(cached) " >&6 8043 else case e in #( 8044 e) if test -n "$ac_ct_NMEDIT"; then 8045 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8046 else 8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048 for as_dir in $PATH 8049 do 8050 IFS=$as_save_IFS 8051 case $as_dir in #((( 8052 '') as_dir=./ ;; 8053 */) ;; 8054 *) as_dir=$as_dir/ ;; 8055 esac 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8058 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062 done 8063 done 8064 IFS=$as_save_IFS 8065 8066 fi ;; 8067 esac 8068 fi 8069 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8070 if test -n "$ac_ct_NMEDIT"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8072 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8073 else 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075 printf "%s\n" "no" >&6; } 8076 fi 8077 8078 if test "x$ac_ct_NMEDIT" = x; then 8079 NMEDIT=":" 8080 else 8081 case $cross_compiling:$ac_tool_warned in 8082 yes:) 8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8085 ac_tool_warned=yes ;; 8086 esac 8087 NMEDIT=$ac_ct_NMEDIT 8088 fi 8089 else 8090 NMEDIT="$ac_cv_prog_NMEDIT" 8091 fi 8092 8093 if test -n "$ac_tool_prefix"; then 8094 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8095 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8097 printf %s "checking for $ac_word... " >&6; } 8098 if test ${ac_cv_prog_LIPO+y} 8099 then : 8100 printf %s "(cached) " >&6 8101 else case e in #( 8102 e) if test -n "$LIPO"; then 8103 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8104 else 8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8106 for as_dir in $PATH 8107 do 8108 IFS=$as_save_IFS 8109 case $as_dir in #((( 8110 '') as_dir=./ ;; 8111 */) ;; 8112 *) as_dir=$as_dir/ ;; 8113 esac 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120 done 8121 done 8122 IFS=$as_save_IFS 8123 8124 fi ;; 8125 esac 8126 fi 8127 LIPO=$ac_cv_prog_LIPO 8128 if test -n "$LIPO"; then 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8130 printf "%s\n" "$LIPO" >&6; } 8131 else 8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133 printf "%s\n" "no" >&6; } 8134 fi 8135 8136 8137 fi 8138 if test -z "$ac_cv_prog_LIPO"; then 8139 ac_ct_LIPO=$LIPO 8140 # Extract the first word of "lipo", so it can be a program name with args. 8141 set dummy lipo; ac_word=$2 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8143 printf %s "checking for $ac_word... " >&6; } 8144 if test ${ac_cv_prog_ac_ct_LIPO+y} 8145 then : 8146 printf %s "(cached) " >&6 8147 else case e in #( 8148 e) if test -n "$ac_ct_LIPO"; then 8149 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8150 else 8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152 for as_dir in $PATH 8153 do 8154 IFS=$as_save_IFS 8155 case $as_dir in #((( 8156 '') as_dir=./ ;; 8157 */) ;; 8158 *) as_dir=$as_dir/ ;; 8159 esac 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_ac_ct_LIPO="lipo" 8163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166 done 8167 done 8168 IFS=$as_save_IFS 8169 8170 fi ;; 8171 esac 8172 fi 8173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8174 if test -n "$ac_ct_LIPO"; then 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8176 printf "%s\n" "$ac_ct_LIPO" >&6; } 8177 else 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8179 printf "%s\n" "no" >&6; } 8180 fi 8181 8182 if test "x$ac_ct_LIPO" = x; then 8183 LIPO=":" 8184 else 8185 case $cross_compiling:$ac_tool_warned in 8186 yes:) 8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8189 ac_tool_warned=yes ;; 8190 esac 8191 LIPO=$ac_ct_LIPO 8192 fi 8193 else 8194 LIPO="$ac_cv_prog_LIPO" 8195 fi 8196 8197 if test -n "$ac_tool_prefix"; then 8198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8199 set dummy ${ac_tool_prefix}otool; ac_word=$2 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201 printf %s "checking for $ac_word... " >&6; } 8202 if test ${ac_cv_prog_OTOOL+y} 8203 then : 8204 printf %s "(cached) " >&6 8205 else case e in #( 8206 e) if test -n "$OTOOL"; then 8207 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8208 else 8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8210 for as_dir in $PATH 8211 do 8212 IFS=$as_save_IFS 8213 case $as_dir in #((( 8214 '') as_dir=./ ;; 8215 */) ;; 8216 *) as_dir=$as_dir/ ;; 8217 esac 8218 for ac_exec_ext in '' $ac_executable_extensions; do 8219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8222 break 2 8223 fi 8224 done 8225 done 8226 IFS=$as_save_IFS 8227 8228 fi ;; 8229 esac 8230 fi 8231 OTOOL=$ac_cv_prog_OTOOL 8232 if test -n "$OTOOL"; then 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8234 printf "%s\n" "$OTOOL" >&6; } 8235 else 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8237 printf "%s\n" "no" >&6; } 8238 fi 8239 8240 8241 fi 8242 if test -z "$ac_cv_prog_OTOOL"; then 8243 ac_ct_OTOOL=$OTOOL 8244 # Extract the first word of "otool", so it can be a program name with args. 8245 set dummy otool; ac_word=$2 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8247 printf %s "checking for $ac_word... " >&6; } 8248 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8249 then : 8250 printf %s "(cached) " >&6 8251 else case e in #( 8252 e) if test -n "$ac_ct_OTOOL"; then 8253 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8254 else 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256 for as_dir in $PATH 8257 do 8258 IFS=$as_save_IFS 8259 case $as_dir in #((( 8260 '') as_dir=./ ;; 8261 */) ;; 8262 *) as_dir=$as_dir/ ;; 8263 esac 8264 for ac_exec_ext in '' $ac_executable_extensions; do 8265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8266 ac_cv_prog_ac_ct_OTOOL="otool" 8267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8268 break 2 8269 fi 8270 done 8271 done 8272 IFS=$as_save_IFS 8273 8274 fi ;; 8275 esac 8276 fi 8277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8278 if test -n "$ac_ct_OTOOL"; then 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8280 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8281 else 8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283 printf "%s\n" "no" >&6; } 8284 fi 8285 8286 if test "x$ac_ct_OTOOL" = x; then 8287 OTOOL=":" 8288 else 8289 case $cross_compiling:$ac_tool_warned in 8290 yes:) 8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8293 ac_tool_warned=yes ;; 8294 esac 8295 OTOOL=$ac_ct_OTOOL 8296 fi 8297 else 8298 OTOOL="$ac_cv_prog_OTOOL" 8299 fi 8300 8301 if test -n "$ac_tool_prefix"; then 8302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8303 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8305 printf %s "checking for $ac_word... " >&6; } 8306 if test ${ac_cv_prog_OTOOL64+y} 8307 then : 8308 printf %s "(cached) " >&6 8309 else case e in #( 8310 e) if test -n "$OTOOL64"; then 8311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8312 else 8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8314 for as_dir in $PATH 8315 do 8316 IFS=$as_save_IFS 8317 case $as_dir in #((( 8318 '') as_dir=./ ;; 8319 */) ;; 8320 *) as_dir=$as_dir/ ;; 8321 esac 8322 for ac_exec_ext in '' $ac_executable_extensions; do 8323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8324 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8326 break 2 8327 fi 8328 done 8329 done 8330 IFS=$as_save_IFS 8331 8332 fi ;; 8333 esac 8334 fi 8335 OTOOL64=$ac_cv_prog_OTOOL64 8336 if test -n "$OTOOL64"; then 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8338 printf "%s\n" "$OTOOL64" >&6; } 8339 else 8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8341 printf "%s\n" "no" >&6; } 8342 fi 8343 8344 8345 fi 8346 if test -z "$ac_cv_prog_OTOOL64"; then 8347 ac_ct_OTOOL64=$OTOOL64 8348 # Extract the first word of "otool64", so it can be a program name with args. 8349 set dummy otool64; ac_word=$2 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351 printf %s "checking for $ac_word... " >&6; } 8352 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8353 then : 8354 printf %s "(cached) " >&6 8355 else case e in #( 8356 e) if test -n "$ac_ct_OTOOL64"; then 8357 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8358 else 8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360 for as_dir in $PATH 8361 do 8362 IFS=$as_save_IFS 8363 case $as_dir in #((( 8364 '') as_dir=./ ;; 8365 */) ;; 8366 *) as_dir=$as_dir/ ;; 8367 esac 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8370 ac_cv_prog_ac_ct_OTOOL64="otool64" 8371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374 done 8375 done 8376 IFS=$as_save_IFS 8377 8378 fi ;; 8379 esac 8380 fi 8381 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8382 if test -n "$ac_ct_OTOOL64"; then 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8384 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8385 else 8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387 printf "%s\n" "no" >&6; } 8388 fi 8389 8390 if test "x$ac_ct_OTOOL64" = x; then 8391 OTOOL64=":" 8392 else 8393 case $cross_compiling:$ac_tool_warned in 8394 yes:) 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8397 ac_tool_warned=yes ;; 8398 esac 8399 OTOOL64=$ac_ct_OTOOL64 8400 fi 8401 else 8402 OTOOL64="$ac_cv_prog_OTOOL64" 8403 fi 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8432 printf %s "checking for -single_module linker flag... " >&6; } 8433 if test ${lt_cv_apple_cc_single_mod+y} 8434 then : 8435 printf %s "(cached) " >&6 8436 else case e in #( 8437 e) lt_cv_apple_cc_single_mod=no 8438 if test -z "$LT_MULTI_MODULE"; then 8439 # By default we will add the -single_module flag. You can override 8440 # by either setting the environment variable LT_MULTI_MODULE 8441 # non-empty at configure time, or by adding -multi_module to the 8442 # link flags. 8443 rm -rf libconftest.dylib* 8444 echo "int foo(void){return 1;}" > conftest.c 8445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8446 -dynamiclib -Wl,-single_module conftest.c" >&5 8447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8449 _lt_result=$? 8450 # If there is a non-empty error log, and "single_module" 8451 # appears in it, assume the flag caused a linker warning 8452 if test -s conftest.err && $GREP single_module conftest.err; then 8453 cat conftest.err >&5 8454 # Otherwise, if the output was created with a 0 exit code from 8455 # the compiler, it worked. 8456 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8457 lt_cv_apple_cc_single_mod=yes 8458 else 8459 cat conftest.err >&5 8460 fi 8461 rm -rf libconftest.dylib* 8462 rm -f conftest.* 8463 fi ;; 8464 esac 8465 fi 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8467 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8468 8469 # Feature test to disable chained fixups since it is not 8470 # compatible with '-undefined dynamic_lookup' 8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8472 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8473 if test ${lt_cv_support_no_fixup_chains+y} 8474 then : 8475 printf %s "(cached) " >&6 8476 else case e in #( 8477 e) save_LDFLAGS=$LDFLAGS 8478 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480 /* end confdefs.h. */ 8481 8482 int 8483 main (void) 8484 { 8485 8486 ; 8487 return 0; 8488 } 8489 _ACEOF 8490 if ac_fn_c_try_link "$LINENO" 8491 then : 8492 lt_cv_support_no_fixup_chains=yes 8493 else case e in #( 8494 e) lt_cv_support_no_fixup_chains=no 8495 ;; 8496 esac 8497 fi 8498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8499 conftest$ac_exeext conftest.$ac_ext 8500 LDFLAGS=$save_LDFLAGS 8501 8502 ;; 8503 esac 8504 fi 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8506 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8507 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8509 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8510 if test ${lt_cv_ld_exported_symbols_list+y} 8511 then : 8512 printf %s "(cached) " >&6 8513 else case e in #( 8514 e) lt_cv_ld_exported_symbols_list=no 8515 save_LDFLAGS=$LDFLAGS 8516 echo "_main" > conftest.sym 8517 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519 /* end confdefs.h. */ 8520 8521 int 8522 main (void) 8523 { 8524 8525 ; 8526 return 0; 8527 } 8528 _ACEOF 8529 if ac_fn_c_try_link "$LINENO" 8530 then : 8531 lt_cv_ld_exported_symbols_list=yes 8532 else case e in #( 8533 e) lt_cv_ld_exported_symbols_list=no ;; 8534 esac 8535 fi 8536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8537 conftest$ac_exeext conftest.$ac_ext 8538 LDFLAGS=$save_LDFLAGS 8539 ;; 8540 esac 8541 fi 8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8543 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8544 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8546 printf %s "checking for -force_load linker flag... " >&6; } 8547 if test ${lt_cv_ld_force_load+y} 8548 then : 8549 printf %s "(cached) " >&6 8550 else case e in #( 8551 e) lt_cv_ld_force_load=no 8552 cat > conftest.c << _LT_EOF 8553 int forced_loaded() { return 2;} 8554 _LT_EOF 8555 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8556 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8557 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8558 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8559 echo "$RANLIB libconftest.a" >&5 8560 $RANLIB libconftest.a 2>&5 8561 cat > conftest.c << _LT_EOF 8562 int main(void) { return 0;} 8563 _LT_EOF 8564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8566 _lt_result=$? 8567 if test -s conftest.err && $GREP force_load conftest.err; then 8568 cat conftest.err >&5 8569 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8570 lt_cv_ld_force_load=yes 8571 else 8572 cat conftest.err >&5 8573 fi 8574 rm -f conftest.err libconftest.a conftest conftest.c 8575 rm -rf conftest.dSYM 8576 ;; 8577 esac 8578 fi 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8580 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8581 case $host_os in 8582 rhapsody* | darwin1.[012]) 8583 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8584 darwin1.*) 8585 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8586 darwin*) 8587 case $MACOSX_DEPLOYMENT_TARGET,$host in 8588 10.[012],*|,*powerpc*-darwin[5-8]*) 8589 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8590 *) 8591 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8592 if test yes = "$lt_cv_support_no_fixup_chains"; then 8593 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8594 fi 8595 ;; 8596 esac 8597 ;; 8598 esac 8599 if test yes = "$lt_cv_apple_cc_single_mod"; then 8600 _lt_dar_single_mod='$single_module' 8601 fi 8602 _lt_dar_needs_single_mod=no 8603 case $host_os in 8604 rhapsody* | darwin1.*) 8605 _lt_dar_needs_single_mod=yes ;; 8606 darwin*) 8607 # When targeting Mac OS X 10.4 (darwin 8) or later, 8608 # -single_module is the default and -multi_module is unsupported. 8609 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8610 # target any OS version that needs -single_module. 8611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8612 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8613 _lt_dar_needs_single_mod=yes ;; 8614 esac 8615 ;; 8616 esac 8617 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8618 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8619 else 8620 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8621 fi 8622 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8623 _lt_dsymutil='~$DSYMUTIL $lib || :' 8624 else 8625 _lt_dsymutil= 8626 fi 8627 ;; 8628 esac 8629 8630 # func_munge_path_list VARIABLE PATH 8631 # ----------------------------------- 8632 # VARIABLE is name of variable containing _space_ separated list of 8633 # directories to be munged by the contents of PATH, which is string 8634 # having a format: 8635 # "DIR[:DIR]:" 8636 # string "DIR[ DIR]" will be prepended to VARIABLE 8637 # ":DIR[:DIR]" 8638 # string "DIR[ DIR]" will be appended to VARIABLE 8639 # "DIRP[:DIRP]::[DIRA:]DIRA" 8640 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8641 # "DIRA[ DIRA]" will be appended to VARIABLE 8642 # "DIR[:DIR]" 8643 # VARIABLE will be replaced by "DIR[ DIR]" 8644 func_munge_path_list () 8645 { 8646 case x$2 in 8647 x) 8648 ;; 8649 *:) 8650 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8651 ;; 8652 x:*) 8653 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8654 ;; 8655 *::*) 8656 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8657 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8658 ;; 8659 *) 8660 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8661 ;; 8662 esac 8663 } 8664 8665 ac_header= ac_cache= 8666 for ac_item in $ac_header_c_list 8667 do 8668 if test $ac_cache; then 8669 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8670 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8671 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8672 fi 8673 ac_header= ac_cache= 8674 elif test $ac_header; then 8675 ac_cache=$ac_item 8676 else 8677 ac_header=$ac_item 8678 fi 8679 done 8680 8681 8682 8683 8684 8685 8686 8687 8688 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8689 then : 8690 8691 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8692 8693 fi 8694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8695 " 8696 if test "x$ac_cv_header_dlfcn_h" = xyes 8697 then : 8698 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8699 8700 fi 8701 8702 8703 8704 8705 8706 # Set options 8707 8708 8709 8710 enable_dlopen=no 8711 8712 8713 enable_win32_dll=no 8714 8715 8716 # Check whether --enable-shared was given. 8717 if test ${enable_shared+y} 8718 then : 8719 enableval=$enable_shared; p=${PACKAGE-default} 8720 case $enableval in 8721 yes) enable_shared=yes ;; 8722 no) enable_shared=no ;; 8723 *) 8724 enable_shared=no 8725 # Look at the argument we got. We use all the common list separators. 8726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8727 for pkg in $enableval; do 8728 IFS=$lt_save_ifs 8729 if test "X$pkg" = "X$p"; then 8730 enable_shared=yes 8731 fi 8732 done 8733 IFS=$lt_save_ifs 8734 ;; 8735 esac 8736 else case e in #( 8737 e) enable_shared=yes ;; 8738 esac 8739 fi 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 # Check whether --enable-static was given. 8750 if test ${enable_static+y} 8751 then : 8752 enableval=$enable_static; p=${PACKAGE-default} 8753 case $enableval in 8754 yes) enable_static=yes ;; 8755 no) enable_static=no ;; 8756 *) 8757 enable_static=no 8758 # Look at the argument we got. We use all the common list separators. 8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8760 for pkg in $enableval; do 8761 IFS=$lt_save_ifs 8762 if test "X$pkg" = "X$p"; then 8763 enable_static=yes 8764 fi 8765 done 8766 IFS=$lt_save_ifs 8767 ;; 8768 esac 8769 else case e in #( 8770 e) enable_static=yes ;; 8771 esac 8772 fi 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 # Check whether --enable-pic was given. 8783 if test ${enable_pic+y} 8784 then : 8785 enableval=$enable_pic; lt_p=${PACKAGE-default} 8786 case $enableval in 8787 yes|no) pic_mode=$enableval ;; 8788 *) 8789 pic_mode=default 8790 # Look at the argument we got. We use all the common list separators. 8791 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8792 for lt_pkg in $enableval; do 8793 IFS=$lt_save_ifs 8794 if test "X$lt_pkg" = "X$lt_p"; then 8795 pic_mode=yes 8796 fi 8797 done 8798 IFS=$lt_save_ifs 8799 ;; 8800 esac 8801 else case e in #( 8802 e) # Check whether --with-pic was given. 8803 if test ${with_pic+y} 8804 then : 8805 withval=$with_pic; lt_p=${PACKAGE-default} 8806 case $withval in 8807 yes|no) pic_mode=$withval ;; 8808 *) 8809 pic_mode=default 8810 # Look at the argument we got. We use all the common list separators. 8811 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8812 for lt_pkg in $withval; do 8813 IFS=$lt_save_ifs 8814 if test "X$lt_pkg" = "X$lt_p"; then 8815 pic_mode=yes 8816 fi 8817 done 8818 IFS=$lt_save_ifs 8819 ;; 8820 esac 8821 else case e in #( 8822 e) pic_mode=default ;; 8823 esac 8824 fi 8825 8826 ;; 8827 esac 8828 fi 8829 8830 8831 8832 8833 8834 8835 8836 8837 # Check whether --enable-fast-install was given. 8838 if test ${enable_fast_install+y} 8839 then : 8840 enableval=$enable_fast_install; p=${PACKAGE-default} 8841 case $enableval in 8842 yes) enable_fast_install=yes ;; 8843 no) enable_fast_install=no ;; 8844 *) 8845 enable_fast_install=no 8846 # Look at the argument we got. We use all the common list separators. 8847 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8848 for pkg in $enableval; do 8849 IFS=$lt_save_ifs 8850 if test "X$pkg" = "X$p"; then 8851 enable_fast_install=yes 8852 fi 8853 done 8854 IFS=$lt_save_ifs 8855 ;; 8856 esac 8857 else case e in #( 8858 e) enable_fast_install=yes ;; 8859 esac 8860 fi 8861 8862 8863 8864 8865 8866 8867 8868 8869 shared_archive_member_spec= 8870 case $host,$enable_shared in 8871 power*-*-aix[5-9]*,yes) 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8873 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8874 # Check whether --enable-aix-soname was given. 8875 if test ${enable_aix_soname+y} 8876 then : 8877 enableval=$enable_aix_soname; case $enableval in 8878 aix|svr4|both) 8879 ;; 8880 *) 8881 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8882 ;; 8883 esac 8884 lt_cv_with_aix_soname=$enable_aix_soname 8885 else case e in #( 8886 e) # Check whether --with-aix-soname was given. 8887 if test ${with_aix_soname+y} 8888 then : 8889 withval=$with_aix_soname; case $withval in 8890 aix|svr4|both) 8891 ;; 8892 *) 8893 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8894 ;; 8895 esac 8896 lt_cv_with_aix_soname=$with_aix_soname 8897 else case e in #( 8898 e) if test ${lt_cv_with_aix_soname+y} 8899 then : 8900 printf %s "(cached) " >&6 8901 else case e in #( 8902 e) lt_cv_with_aix_soname=aix ;; 8903 esac 8904 fi 8905 ;; 8906 esac 8907 fi 8908 8909 enable_aix_soname=$lt_cv_with_aix_soname ;; 8910 esac 8911 fi 8912 8913 with_aix_soname=$enable_aix_soname 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8915 printf "%s\n" "$with_aix_soname" >&6; } 8916 if test aix != "$with_aix_soname"; then 8917 # For the AIX way of multilib, we name the shared archive member 8918 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8919 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8920 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8921 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8922 if test 64 = "${OBJECT_MODE-32}"; then 8923 shared_archive_member_spec=shr_64 8924 else 8925 shared_archive_member_spec=shr 8926 fi 8927 fi 8928 ;; 8929 *) 8930 with_aix_soname=aix 8931 ;; 8932 esac 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 # This can be used to rebuild libtool when needed 8944 LIBTOOL_DEPS=$ltmain 8945 8946 # Always use our own libtool. 8947 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 test -z "$LN_S" && LN_S="ln -s" 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 if test -n "${ZSH_VERSION+set}"; then 8994 setopt NO_GLOB_SUBST 8995 fi 8996 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8998 printf %s "checking for objdir... " >&6; } 8999 if test ${lt_cv_objdir+y} 9000 then : 9001 printf %s "(cached) " >&6 9002 else case e in #( 9003 e) rm -f .libs 2>/dev/null 9004 mkdir .libs 2>/dev/null 9005 if test -d .libs; then 9006 lt_cv_objdir=.libs 9007 else 9008 # MS-DOS does not allow filenames that begin with a dot. 9009 lt_cv_objdir=_libs 9010 fi 9011 rmdir .libs 2>/dev/null ;; 9012 esac 9013 fi 9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9015 printf "%s\n" "$lt_cv_objdir" >&6; } 9016 objdir=$lt_cv_objdir 9017 9018 9019 9020 9021 9022 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9023 9024 9025 9026 9027 case $host_os in 9028 aix3*) 9029 # AIX sometimes has problems with the GCC collect2 program. For some 9030 # reason, if we set the COLLECT_NAMES environment variable, the problems 9031 # vanish in a puff of smoke. 9032 if test set != "${COLLECT_NAMES+set}"; then 9033 COLLECT_NAMES= 9034 export COLLECT_NAMES 9035 fi 9036 ;; 9037 esac 9038 9039 # Global variables: 9040 ofile=libtool 9041 can_build_shared=yes 9042 9043 # All known linkers require a '.a' archive for static linking (except MSVC and 9044 # ICC, which need '.lib'). 9045 libext=a 9046 9047 with_gnu_ld=$lt_cv_prog_gnu_ld 9048 9049 old_CC=$CC 9050 old_CFLAGS=$CFLAGS 9051 9052 # Set sane defaults for various variables 9053 test -z "$CC" && CC=cc 9054 test -z "$LTCC" && LTCC=$CC 9055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9056 test -z "$LD" && LD=ld 9057 test -z "$ac_objext" && ac_objext=o 9058 9059 func_cc_basename $compiler 9060 cc_basename=$func_cc_basename_result 9061 9062 9063 # Only perform the check for file, if the check method requires it 9064 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9065 case $deplibs_check_method in 9066 file_magic*) 9067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9069 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9070 if test ${lt_cv_path_MAGIC_CMD+y} 9071 then : 9072 printf %s "(cached) " >&6 9073 else case e in #( 9074 e) case $MAGIC_CMD in 9075 [\\/*] | ?:[\\/]*) 9076 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9077 ;; 9078 *) 9079 lt_save_MAGIC_CMD=$MAGIC_CMD 9080 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9082 for ac_dir in $ac_dummy; do 9083 IFS=$lt_save_ifs 9084 test -z "$ac_dir" && ac_dir=. 9085 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9086 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9087 if test -n "$file_magic_test_file"; then 9088 case $deplibs_check_method in 9089 "file_magic "*) 9090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9091 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9093 $EGREP "$file_magic_regex" > /dev/null; then 9094 : 9095 else 9096 cat <<_LT_EOF 1>&2 9097 9098 *** Warning: the command libtool uses to detect shared libraries, 9099 *** $file_magic_cmd, produces output that libtool cannot recognize. 9100 *** The result is that libtool may fail to recognize shared libraries 9101 *** as such. This will affect the creation of libtool libraries that 9102 *** depend on shared libraries, but programs linked with such libtool 9103 *** libraries will work regardless of this problem. Nevertheless, you 9104 *** may want to report the problem to your system manager and/or to 9105 *** bug-libtool@gnu.org 9106 9107 _LT_EOF 9108 fi ;; 9109 esac 9110 fi 9111 break 9112 fi 9113 done 9114 IFS=$lt_save_ifs 9115 MAGIC_CMD=$lt_save_MAGIC_CMD 9116 ;; 9117 esac ;; 9118 esac 9119 fi 9120 9121 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9122 if test -n "$MAGIC_CMD"; then 9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9124 printf "%s\n" "$MAGIC_CMD" >&6; } 9125 else 9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9127 printf "%s\n" "no" >&6; } 9128 fi 9129 9130 9131 9132 9133 9134 if test -z "$lt_cv_path_MAGIC_CMD"; then 9135 if test -n "$ac_tool_prefix"; then 9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9137 printf %s "checking for file... " >&6; } 9138 if test ${lt_cv_path_MAGIC_CMD+y} 9139 then : 9140 printf %s "(cached) " >&6 9141 else case e in #( 9142 e) case $MAGIC_CMD in 9143 [\\/*] | ?:[\\/]*) 9144 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9145 ;; 9146 *) 9147 lt_save_MAGIC_CMD=$MAGIC_CMD 9148 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9150 for ac_dir in $ac_dummy; do 9151 IFS=$lt_save_ifs 9152 test -z "$ac_dir" && ac_dir=. 9153 if test -f "$ac_dir/file"; then 9154 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9155 if test -n "$file_magic_test_file"; then 9156 case $deplibs_check_method in 9157 "file_magic "*) 9158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9159 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9161 $EGREP "$file_magic_regex" > /dev/null; then 9162 : 9163 else 9164 cat <<_LT_EOF 1>&2 9165 9166 *** Warning: the command libtool uses to detect shared libraries, 9167 *** $file_magic_cmd, produces output that libtool cannot recognize. 9168 *** The result is that libtool may fail to recognize shared libraries 9169 *** as such. This will affect the creation of libtool libraries that 9170 *** depend on shared libraries, but programs linked with such libtool 9171 *** libraries will work regardless of this problem. Nevertheless, you 9172 *** may want to report the problem to your system manager and/or to 9173 *** bug-libtool@gnu.org 9174 9175 _LT_EOF 9176 fi ;; 9177 esac 9178 fi 9179 break 9180 fi 9181 done 9182 IFS=$lt_save_ifs 9183 MAGIC_CMD=$lt_save_MAGIC_CMD 9184 ;; 9185 esac ;; 9186 esac 9187 fi 9188 9189 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9190 if test -n "$MAGIC_CMD"; then 9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9192 printf "%s\n" "$MAGIC_CMD" >&6; } 9193 else 9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9195 printf "%s\n" "no" >&6; } 9196 fi 9197 9198 9199 else 9200 MAGIC_CMD=: 9201 fi 9202 fi 9203 9204 fi 9205 ;; 9206 esac 9207 9208 # Use C for the default configuration in the libtool script 9209 9210 lt_save_CC=$CC 9211 ac_ext=c 9212 ac_cpp='$CPP $CPPFLAGS' 9213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9215 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9216 9217 9218 # Source file extension for C test sources. 9219 ac_ext=c 9220 9221 # Object file extension for compiled C test sources. 9222 objext=o 9223 objext=$objext 9224 9225 # Code to be used in simple compile tests 9226 lt_simple_compile_test_code="int some_variable = 0;" 9227 9228 # Code to be used in simple link tests 9229 lt_simple_link_test_code='int main(void){return(0);}' 9230 9231 9232 9233 9234 9235 9236 9237 # If no C compiler was specified, use CC. 9238 LTCC=${LTCC-"$CC"} 9239 9240 # If no C compiler flags were specified, use CFLAGS. 9241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9242 9243 # Allow CC to be a program name with arguments. 9244 compiler=$CC 9245 9246 # Save the default compiler, since it gets overwritten when the other 9247 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9248 compiler_DEFAULT=$CC 9249 9250 # save warnings/boilerplate of simple test code 9251 ac_outfile=conftest.$ac_objext 9252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9254 _lt_compiler_boilerplate=`cat conftest.err` 9255 $RM conftest* 9256 9257 ac_outfile=conftest.$ac_objext 9258 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9260 _lt_linker_boilerplate=`cat conftest.err` 9261 $RM -r conftest* 9262 9263 9264 ## CAVEAT EMPTOR: 9265 ## There is no encapsulation within the following macros, do not change 9266 ## the running order or otherwise move them around unless you know exactly 9267 ## what you are doing... 9268 if test -n "$compiler"; then 9269 9270 lt_prog_compiler_no_builtin_flag= 9271 9272 if test yes = "$GCC"; then 9273 case $cc_basename in 9274 nvcc*) 9275 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9276 *) 9277 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9278 esac 9279 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9281 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9282 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9283 then : 9284 printf %s "(cached) " >&6 9285 else case e in #( 9286 e) lt_cv_prog_compiler_rtti_exceptions=no 9287 ac_outfile=conftest.$ac_objext 9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9289 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9290 # Insert the option either (1) after the last *FLAGS variable, or 9291 # (2) before a word containing "conftest.", or (3) at the end. 9292 # Note that $ac_compile itself does not contain backslashes and begins 9293 # with a dollar sign (not a hyphen), so the echo should work correctly. 9294 # The option is referenced via a variable to avoid confusing sed. 9295 lt_compile=`echo "$ac_compile" | $SED \ 9296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9298 -e 's:$: $lt_compiler_flag:'` 9299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9300 (eval "$lt_compile" 2>conftest.err) 9301 ac_status=$? 9302 cat conftest.err >&5 9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9304 if (exit $ac_status) && test -s "$ac_outfile"; then 9305 # The compiler can only warn and ignore the option if not recognized 9306 # So say no if there are warnings other than the usual output. 9307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9310 lt_cv_prog_compiler_rtti_exceptions=yes 9311 fi 9312 fi 9313 $RM conftest* 9314 ;; 9315 esac 9316 fi 9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9318 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9319 9320 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9322 else 9323 : 9324 fi 9325 9326 fi 9327 9328 9329 9330 9331 9332 9333 lt_prog_compiler_wl= 9334 lt_prog_compiler_pic= 9335 lt_prog_compiler_static= 9336 9337 9338 if test yes = "$GCC"; then 9339 lt_prog_compiler_wl='-Wl,' 9340 lt_prog_compiler_static='-static' 9341 9342 case $host_os in 9343 aix*) 9344 # All AIX code is PIC. 9345 if test ia64 = "$host_cpu"; then 9346 # AIX 5 now supports IA64 processor 9347 lt_prog_compiler_static='-Bstatic' 9348 fi 9349 lt_prog_compiler_pic='-fPIC' 9350 ;; 9351 9352 amigaos*) 9353 case $host_cpu in 9354 powerpc) 9355 # see comment about AmigaOS4 .so support 9356 lt_prog_compiler_pic='-fPIC' 9357 ;; 9358 m68k) 9359 # FIXME: we need at least 68020 code to build shared libraries, but 9360 # adding the '-m68020' flag to GCC prevents building anything better, 9361 # like '-m68040'. 9362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9363 ;; 9364 esac 9365 ;; 9366 9367 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9368 # PIC is the default for these OSes. 9369 ;; 9370 9371 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9372 # This hack is so that the source file can tell whether it is being 9373 # built for inclusion in a dll (and should export symbols for example). 9374 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9375 # (--disable-auto-import) libraries 9376 lt_prog_compiler_pic='-DDLL_EXPORT' 9377 case $host_os in 9378 os2*) 9379 lt_prog_compiler_static='$wl-static' 9380 ;; 9381 esac 9382 ;; 9383 9384 darwin* | rhapsody*) 9385 # PIC is the default on this platform 9386 # Common symbols not allowed in MH_DYLIB files 9387 lt_prog_compiler_pic='-fno-common' 9388 ;; 9389 9390 haiku*) 9391 # PIC is the default for Haiku. 9392 # The "-static" flag exists, but is broken. 9393 lt_prog_compiler_static= 9394 ;; 9395 9396 hpux*) 9397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9399 # sets the default TLS model and affects inlining. 9400 case $host_cpu in 9401 hppa*64*) 9402 # +Z the default 9403 ;; 9404 *) 9405 lt_prog_compiler_pic='-fPIC' 9406 ;; 9407 esac 9408 ;; 9409 9410 interix[3-9]*) 9411 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9412 # Instead, we relocate shared libraries at runtime. 9413 ;; 9414 9415 msdosdjgpp*) 9416 # Just because we use GCC doesn't mean we suddenly get shared libraries 9417 # on systems that don't support them. 9418 lt_prog_compiler_can_build_shared=no 9419 enable_shared=no 9420 ;; 9421 9422 *nto* | *qnx*) 9423 # QNX uses GNU C++, but need to define -shared option too, otherwise 9424 # it will coredump. 9425 lt_prog_compiler_pic='-fPIC -shared' 9426 ;; 9427 9428 sysv4*MP*) 9429 if test -d /usr/nec; then 9430 lt_prog_compiler_pic=-Kconform_pic 9431 fi 9432 ;; 9433 9434 *) 9435 lt_prog_compiler_pic='-fPIC' 9436 ;; 9437 esac 9438 9439 case $cc_basename in 9440 nvcc*) # Cuda Compiler Driver 2.2 9441 lt_prog_compiler_wl='-Xlinker ' 9442 if test -n "$lt_prog_compiler_pic"; then 9443 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9444 fi 9445 ;; 9446 esac 9447 else 9448 # PORTME Check for flag to pass linker flags through the system compiler. 9449 case $host_os in 9450 aix*) 9451 lt_prog_compiler_wl='-Wl,' 9452 if test ia64 = "$host_cpu"; then 9453 # AIX 5 now supports IA64 processor 9454 lt_prog_compiler_static='-Bstatic' 9455 else 9456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9457 fi 9458 ;; 9459 9460 darwin* | rhapsody*) 9461 # PIC is the default on this platform 9462 # Common symbols not allowed in MH_DYLIB files 9463 lt_prog_compiler_pic='-fno-common' 9464 case $cc_basename in 9465 nagfor*) 9466 # NAG Fortran compiler 9467 lt_prog_compiler_wl='-Wl,-Wl,,' 9468 lt_prog_compiler_pic='-PIC' 9469 lt_prog_compiler_static='-Bstatic' 9470 ;; 9471 esac 9472 ;; 9473 9474 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9475 # This hack is so that the source file can tell whether it is being 9476 # built for inclusion in a dll (and should export symbols for example). 9477 lt_prog_compiler_pic='-DDLL_EXPORT' 9478 case $host_os in 9479 os2*) 9480 lt_prog_compiler_static='$wl-static' 9481 ;; 9482 esac 9483 ;; 9484 9485 hpux9* | hpux10* | hpux11*) 9486 lt_prog_compiler_wl='-Wl,' 9487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9488 # not for PA HP-UX. 9489 case $host_cpu in 9490 hppa*64*|ia64*) 9491 # +Z the default 9492 ;; 9493 *) 9494 lt_prog_compiler_pic='+Z' 9495 ;; 9496 esac 9497 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9498 lt_prog_compiler_static='$wl-a ${wl}archive' 9499 ;; 9500 9501 irix5* | irix6* | nonstopux*) 9502 lt_prog_compiler_wl='-Wl,' 9503 # PIC (with -KPIC) is the default. 9504 lt_prog_compiler_static='-non_shared' 9505 ;; 9506 9507 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9508 case $cc_basename in 9509 # old Intel for x86_64, which still supported -KPIC. 9510 ecc*) 9511 lt_prog_compiler_wl='-Wl,' 9512 lt_prog_compiler_pic='-KPIC' 9513 lt_prog_compiler_static='-static' 9514 ;; 9515 *flang* | ftn | f18* | f95*) 9516 # Flang compiler. 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-fPIC' 9519 lt_prog_compiler_static='-static' 9520 ;; 9521 # icc used to be incompatible with GCC. 9522 # ICC 10 doesn't accept -KPIC any more. 9523 icc* | ifort*) 9524 lt_prog_compiler_wl='-Wl,' 9525 lt_prog_compiler_pic='-fPIC' 9526 lt_prog_compiler_static='-static' 9527 ;; 9528 # Lahey Fortran 8.1. 9529 lf95*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='--shared' 9532 lt_prog_compiler_static='--static' 9533 ;; 9534 nagfor*) 9535 # NAG Fortran compiler 9536 lt_prog_compiler_wl='-Wl,-Wl,,' 9537 lt_prog_compiler_pic='-PIC' 9538 lt_prog_compiler_static='-Bstatic' 9539 ;; 9540 tcc*) 9541 # Fabrice Bellard et al's Tiny C Compiler 9542 lt_prog_compiler_wl='-Wl,' 9543 lt_prog_compiler_pic='-fPIC' 9544 lt_prog_compiler_static='-static' 9545 ;; 9546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9547 # Portland Group compilers (*not* the Pentium gcc compiler, 9548 # which looks to be a dead project) 9549 lt_prog_compiler_wl='-Wl,' 9550 lt_prog_compiler_pic='-fpic' 9551 lt_prog_compiler_static='-Bstatic' 9552 ;; 9553 ccc*) 9554 lt_prog_compiler_wl='-Wl,' 9555 # All Alpha code is PIC. 9556 lt_prog_compiler_static='-non_shared' 9557 ;; 9558 xl* | bgxl* | bgf* | mpixl*) 9559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9560 lt_prog_compiler_wl='-Wl,' 9561 lt_prog_compiler_pic='-qpic' 9562 lt_prog_compiler_static='-qstaticlink' 9563 ;; 9564 *) 9565 case `$CC -V 2>&1 | $SED 5q` in 9566 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9567 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9568 lt_prog_compiler_pic='-KPIC' 9569 lt_prog_compiler_static='-Bstatic' 9570 lt_prog_compiler_wl='' 9571 ;; 9572 *Sun\ F* | *Sun*Fortran*) 9573 lt_prog_compiler_pic='-KPIC' 9574 lt_prog_compiler_static='-Bstatic' 9575 lt_prog_compiler_wl='-Qoption ld ' 9576 ;; 9577 *Sun\ C*) 9578 # Sun C 5.9 9579 lt_prog_compiler_pic='-KPIC' 9580 lt_prog_compiler_static='-Bstatic' 9581 lt_prog_compiler_wl='-Wl,' 9582 ;; 9583 *Intel*\ [CF]*Compiler*) 9584 lt_prog_compiler_wl='-Wl,' 9585 lt_prog_compiler_pic='-fPIC' 9586 lt_prog_compiler_static='-static' 9587 ;; 9588 *Portland\ Group*) 9589 lt_prog_compiler_wl='-Wl,' 9590 lt_prog_compiler_pic='-fpic' 9591 lt_prog_compiler_static='-Bstatic' 9592 ;; 9593 esac 9594 ;; 9595 esac 9596 ;; 9597 9598 newsos6) 9599 lt_prog_compiler_pic='-KPIC' 9600 lt_prog_compiler_static='-Bstatic' 9601 ;; 9602 9603 *-mlibc) 9604 lt_prog_compiler_wl='-Wl,' 9605 lt_prog_compiler_pic='-fPIC' 9606 lt_prog_compiler_static='-static' 9607 ;; 9608 9609 *nto* | *qnx*) 9610 # QNX uses GNU C++, but need to define -shared option too, otherwise 9611 # it will coredump. 9612 lt_prog_compiler_pic='-fPIC -shared' 9613 ;; 9614 9615 osf3* | osf4* | osf5*) 9616 lt_prog_compiler_wl='-Wl,' 9617 # All OSF/1 code is PIC. 9618 lt_prog_compiler_static='-non_shared' 9619 ;; 9620 9621 rdos*) 9622 lt_prog_compiler_static='-non_shared' 9623 ;; 9624 9625 serenity*) 9626 ;; 9627 9628 solaris*) 9629 lt_prog_compiler_pic='-KPIC' 9630 lt_prog_compiler_static='-Bstatic' 9631 case $cc_basename in 9632 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9633 lt_prog_compiler_wl='-Qoption ld ';; 9634 *) 9635 lt_prog_compiler_wl='-Wl,';; 9636 esac 9637 ;; 9638 9639 sunos4*) 9640 lt_prog_compiler_wl='-Qoption ld ' 9641 lt_prog_compiler_pic='-PIC' 9642 lt_prog_compiler_static='-Bstatic' 9643 ;; 9644 9645 sysv4 | sysv4.2uw2* | sysv4.3*) 9646 lt_prog_compiler_wl='-Wl,' 9647 lt_prog_compiler_pic='-KPIC' 9648 lt_prog_compiler_static='-Bstatic' 9649 ;; 9650 9651 sysv4*MP*) 9652 if test -d /usr/nec; then 9653 lt_prog_compiler_pic='-Kconform_pic' 9654 lt_prog_compiler_static='-Bstatic' 9655 fi 9656 ;; 9657 9658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9659 lt_prog_compiler_wl='-Wl,' 9660 lt_prog_compiler_pic='-KPIC' 9661 lt_prog_compiler_static='-Bstatic' 9662 ;; 9663 9664 unicos*) 9665 lt_prog_compiler_wl='-Wl,' 9666 lt_prog_compiler_can_build_shared=no 9667 ;; 9668 9669 uts4*) 9670 lt_prog_compiler_pic='-pic' 9671 lt_prog_compiler_static='-Bstatic' 9672 ;; 9673 9674 *) 9675 lt_prog_compiler_can_build_shared=no 9676 ;; 9677 esac 9678 fi 9679 9680 case $host_os in 9681 # For platforms that do not support PIC, -DPIC is meaningless: 9682 *djgpp*) 9683 lt_prog_compiler_pic= 9684 ;; 9685 *) 9686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9687 ;; 9688 esac 9689 9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9691 printf %s "checking for $compiler option to produce PIC... " >&6; } 9692 if test ${lt_cv_prog_compiler_pic+y} 9693 then : 9694 printf %s "(cached) " >&6 9695 else case e in #( 9696 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9697 esac 9698 fi 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9700 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9701 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9702 9703 # 9704 # Check to make sure the PIC flag actually works. 9705 # 9706 if test -n "$lt_prog_compiler_pic"; then 9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9708 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9709 if test ${lt_cv_prog_compiler_pic_works+y} 9710 then : 9711 printf %s "(cached) " >&6 9712 else case e in #( 9713 e) lt_cv_prog_compiler_pic_works=no 9714 ac_outfile=conftest.$ac_objext 9715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9717 # Insert the option either (1) after the last *FLAGS variable, or 9718 # (2) before a word containing "conftest.", or (3) at the end. 9719 # Note that $ac_compile itself does not contain backslashes and begins 9720 # with a dollar sign (not a hyphen), so the echo should work correctly. 9721 # The option is referenced via a variable to avoid confusing sed. 9722 lt_compile=`echo "$ac_compile" | $SED \ 9723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9725 -e 's:$: $lt_compiler_flag:'` 9726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9727 (eval "$lt_compile" 2>conftest.err) 9728 ac_status=$? 9729 cat conftest.err >&5 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 if (exit $ac_status) && test -s "$ac_outfile"; then 9732 # The compiler can only warn and ignore the option if not recognized 9733 # So say no if there are warnings other than the usual output. 9734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9737 lt_cv_prog_compiler_pic_works=yes 9738 fi 9739 fi 9740 $RM conftest* 9741 ;; 9742 esac 9743 fi 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9745 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9746 9747 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9748 case $lt_prog_compiler_pic in 9749 "" | " "*) ;; 9750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9751 esac 9752 else 9753 lt_prog_compiler_pic= 9754 lt_prog_compiler_can_build_shared=no 9755 fi 9756 9757 fi 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 # 9770 # Check to make sure the static flag actually works. 9771 # 9772 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9774 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9775 if test ${lt_cv_prog_compiler_static_works+y} 9776 then : 9777 printf %s "(cached) " >&6 9778 else case e in #( 9779 e) lt_cv_prog_compiler_static_works=no 9780 save_LDFLAGS=$LDFLAGS 9781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9782 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9784 # The linker can only warn and ignore the option if not recognized 9785 # So say no if there are warnings 9786 if test -s conftest.err; then 9787 # Append any errors to the config.log. 9788 cat conftest.err 1>&5 9789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9791 if diff conftest.exp conftest.er2 >/dev/null; then 9792 lt_cv_prog_compiler_static_works=yes 9793 fi 9794 else 9795 lt_cv_prog_compiler_static_works=yes 9796 fi 9797 fi 9798 $RM -r conftest* 9799 LDFLAGS=$save_LDFLAGS 9800 ;; 9801 esac 9802 fi 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9804 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9805 9806 if test yes = "$lt_cv_prog_compiler_static_works"; then 9807 : 9808 else 9809 lt_prog_compiler_static= 9810 fi 9811 9812 9813 9814 9815 9816 9817 9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9819 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9820 if test ${lt_cv_prog_compiler_c_o+y} 9821 then : 9822 printf %s "(cached) " >&6 9823 else case e in #( 9824 e) lt_cv_prog_compiler_c_o=no 9825 $RM -r conftest 2>/dev/null 9826 mkdir conftest 9827 cd conftest 9828 mkdir out 9829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9830 9831 lt_compiler_flag="-o out/conftest2.$ac_objext" 9832 # Insert the option either (1) after the last *FLAGS variable, or 9833 # (2) before a word containing "conftest.", or (3) at the end. 9834 # Note that $ac_compile itself does not contain backslashes and begins 9835 # with a dollar sign (not a hyphen), so the echo should work correctly. 9836 lt_compile=`echo "$ac_compile" | $SED \ 9837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9839 -e 's:$: $lt_compiler_flag:'` 9840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9841 (eval "$lt_compile" 2>out/conftest.err) 9842 ac_status=$? 9843 cat out/conftest.err >&5 9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9845 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9846 then 9847 # The compiler can only warn and ignore the option if not recognized 9848 # So say no if there are warnings 9849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9852 lt_cv_prog_compiler_c_o=yes 9853 fi 9854 fi 9855 chmod u+w . 2>&5 9856 $RM conftest* 9857 # SGI C++ compiler will create directory out/ii_files/ for 9858 # template instantiation 9859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9860 $RM out/* && rmdir out 9861 cd .. 9862 $RM -r conftest 9863 $RM conftest* 9864 ;; 9865 esac 9866 fi 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9868 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9869 9870 9871 9872 9873 9874 9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9876 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9877 if test ${lt_cv_prog_compiler_c_o+y} 9878 then : 9879 printf %s "(cached) " >&6 9880 else case e in #( 9881 e) lt_cv_prog_compiler_c_o=no 9882 $RM -r conftest 2>/dev/null 9883 mkdir conftest 9884 cd conftest 9885 mkdir out 9886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9887 9888 lt_compiler_flag="-o out/conftest2.$ac_objext" 9889 # Insert the option either (1) after the last *FLAGS variable, or 9890 # (2) before a word containing "conftest.", or (3) at the end. 9891 # Note that $ac_compile itself does not contain backslashes and begins 9892 # with a dollar sign (not a hyphen), so the echo should work correctly. 9893 lt_compile=`echo "$ac_compile" | $SED \ 9894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9896 -e 's:$: $lt_compiler_flag:'` 9897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9898 (eval "$lt_compile" 2>out/conftest.err) 9899 ac_status=$? 9900 cat out/conftest.err >&5 9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9902 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9903 then 9904 # The compiler can only warn and ignore the option if not recognized 9905 # So say no if there are warnings 9906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9909 lt_cv_prog_compiler_c_o=yes 9910 fi 9911 fi 9912 chmod u+w . 2>&5 9913 $RM conftest* 9914 # SGI C++ compiler will create directory out/ii_files/ for 9915 # template instantiation 9916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9917 $RM out/* && rmdir out 9918 cd .. 9919 $RM -r conftest 9920 $RM conftest* 9921 ;; 9922 esac 9923 fi 9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9925 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9926 9927 9928 9929 9930 hard_links=nottested 9931 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9932 # do not overwrite the value of need_locks provided by the user 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9934 printf %s "checking if we can lock with hard links... " >&6; } 9935 hard_links=yes 9936 $RM conftest* 9937 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9938 touch conftest.a 9939 ln conftest.a conftest.b 2>&5 || hard_links=no 9940 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9942 printf "%s\n" "$hard_links" >&6; } 9943 if test no = "$hard_links"; then 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9945 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9946 need_locks=warn 9947 fi 9948 else 9949 need_locks=no 9950 fi 9951 9952 9953 9954 9955 9956 9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9958 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9959 9960 runpath_var= 9961 allow_undefined_flag= 9962 always_export_symbols=no 9963 archive_cmds= 9964 archive_expsym_cmds= 9965 compiler_needs_object=no 9966 enable_shared_with_static_runtimes=no 9967 export_dynamic_flag_spec= 9968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9969 hardcode_automatic=no 9970 hardcode_direct=no 9971 hardcode_direct_absolute=no 9972 hardcode_libdir_flag_spec= 9973 hardcode_libdir_separator= 9974 hardcode_minus_L=no 9975 hardcode_shlibpath_var=unsupported 9976 inherit_rpath=no 9977 link_all_deplibs=unknown 9978 module_cmds= 9979 module_expsym_cmds= 9980 old_archive_from_new_cmds= 9981 old_archive_from_expsyms_cmds= 9982 thread_safe_flag_spec= 9983 whole_archive_flag_spec= 9984 # include_expsyms should be a list of space-separated symbols to be *always* 9985 # included in the symbol list 9986 include_expsyms= 9987 # exclude_expsyms can be an extended regexp of symbols to exclude 9988 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9989 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9990 # as well as any symbol that contains 'd'. 9991 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9993 # platforms (ab)use it in PIC code, but their linkers get confused if 9994 # the symbol is explicitly referenced. Since portable code cannot 9995 # rely on this symbol name, it's probably fine to never include it in 9996 # preloaded symbol tables. 9997 # Exclude shared library initialization/finalization symbols. 9998 extract_expsyms_cmds= 9999 10000 case $host_os in 10001 cygwin* | mingw* | windows* | pw32* | cegcc*) 10002 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10003 # When not using gcc, we currently assume that we are using 10004 # Microsoft Visual C++ or Intel C++ Compiler. 10005 if test yes != "$GCC"; then 10006 with_gnu_ld=no 10007 fi 10008 ;; 10009 interix*) 10010 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10011 with_gnu_ld=yes 10012 ;; 10013 esac 10014 10015 ld_shlibs=yes 10016 10017 # On some targets, GNU ld is compatible enough with the native linker 10018 # that we're better off using the native interface for both. 10019 lt_use_gnu_ld_interface=no 10020 if test yes = "$with_gnu_ld"; then 10021 case $host_os in 10022 aix*) 10023 # The AIX port of GNU ld has always aspired to compatibility 10024 # with the native linker. However, as the warning in the GNU ld 10025 # block says, versions before 2.19.5* couldn't really create working 10026 # shared libraries, regardless of the interface used. 10027 case `$LD -v 2>&1` in 10028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10030 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10031 *) 10032 lt_use_gnu_ld_interface=yes 10033 ;; 10034 esac 10035 ;; 10036 *) 10037 lt_use_gnu_ld_interface=yes 10038 ;; 10039 esac 10040 fi 10041 10042 if test yes = "$lt_use_gnu_ld_interface"; then 10043 # If archive_cmds runs LD, not CC, wlarc should be empty 10044 wlarc='$wl' 10045 10046 # Set some defaults for GNU ld with shared library support. These 10047 # are reset later if shared libraries are not supported. Putting them 10048 # here allows them to be overridden if necessary. 10049 runpath_var=LD_RUN_PATH 10050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10051 export_dynamic_flag_spec='$wl--export-dynamic' 10052 # ancient GNU ld didn't support --whole-archive et. al. 10053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10054 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10055 else 10056 whole_archive_flag_spec= 10057 fi 10058 supports_anon_versioning=no 10059 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10060 *GNU\ gold*) supports_anon_versioning=yes ;; 10061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10064 *\ 2.11.*) ;; # other 2.11 versions 10065 *) supports_anon_versioning=yes ;; 10066 esac 10067 10068 # See if GNU ld supports shared libraries. 10069 case $host_os in 10070 aix[3-9]*) 10071 # On AIX/PPC, the GNU linker is very broken 10072 if test ia64 != "$host_cpu"; then 10073 ld_shlibs=no 10074 cat <<_LT_EOF 1>&2 10075 10076 *** Warning: the GNU linker, at least up to release 2.19, is reported 10077 *** to be unable to reliably create shared libraries on AIX. 10078 *** Therefore, libtool is disabling shared libraries support. If you 10079 *** really care for shared libraries, you may want to install binutils 10080 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10081 *** You will then need to restart the configuration process. 10082 10083 _LT_EOF 10084 fi 10085 ;; 10086 10087 amigaos*) 10088 case $host_cpu in 10089 powerpc) 10090 # see comment about AmigaOS4 .so support 10091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10092 archive_expsym_cmds='' 10093 ;; 10094 m68k) 10095 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)' 10096 hardcode_libdir_flag_spec='-L$libdir' 10097 hardcode_minus_L=yes 10098 ;; 10099 esac 10100 ;; 10101 10102 beos*) 10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10104 allow_undefined_flag=unsupported 10105 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10106 # support --undefined. This deserves some investigation. FIXME 10107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10108 else 10109 ld_shlibs=no 10110 fi 10111 ;; 10112 10113 cygwin* | mingw* | windows* | pw32* | cegcc*) 10114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10115 # as there is no search path for DLLs. 10116 hardcode_libdir_flag_spec='-L$libdir' 10117 export_dynamic_flag_spec='$wl--export-all-symbols' 10118 allow_undefined_flag=unsupported 10119 always_export_symbols=no 10120 enable_shared_with_static_runtimes=yes 10121 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' 10122 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10123 file_list_spec='@' 10124 10125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10127 # If the export-symbols file already is a .def file, use it as 10128 # is; otherwise, prepend EXPORTS... 10129 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10130 cp $export_symbols $output_objdir/$soname.def; 10131 else 10132 echo EXPORTS > $output_objdir/$soname.def; 10133 cat $export_symbols >> $output_objdir/$soname.def; 10134 fi~ 10135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10136 else 10137 ld_shlibs=no 10138 fi 10139 ;; 10140 10141 haiku*) 10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10143 link_all_deplibs=no 10144 ;; 10145 10146 os2*) 10147 hardcode_libdir_flag_spec='-L$libdir' 10148 hardcode_minus_L=yes 10149 allow_undefined_flag=unsupported 10150 shrext_cmds=.dll 10151 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10154 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10155 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10156 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10157 emximp -o $lib $output_objdir/$libname.def' 10158 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10161 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10162 prefix_cmds="$SED"~ 10163 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10164 prefix_cmds="$prefix_cmds -e 1d"; 10165 fi~ 10166 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10167 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10169 emximp -o $lib $output_objdir/$libname.def' 10170 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10171 enable_shared_with_static_runtimes=yes 10172 file_list_spec='@' 10173 ;; 10174 10175 interix[3-9]*) 10176 hardcode_direct=no 10177 hardcode_shlibpath_var=no 10178 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10179 export_dynamic_flag_spec='$wl-E' 10180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10181 # Instead, shared libraries are loaded at an image base (0x10000000 by 10182 # default) and relocated if they conflict, which is a slow very memory 10183 # consuming and fragmenting process. To avoid this, we pick a random, 10184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10185 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10187 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' 10188 ;; 10189 10190 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10191 tmp_diet=no 10192 if test linux-dietlibc = "$host_os"; then 10193 case $cc_basename in 10194 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10195 esac 10196 fi 10197 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10198 && test no = "$tmp_diet" 10199 then 10200 tmp_addflag=' $pic_flag' 10201 tmp_sharedflag='-shared' 10202 case $cc_basename,$host_cpu in 10203 pgcc*) # Portland Group C compiler 10204 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' 10205 tmp_addflag=' $pic_flag' 10206 ;; 10207 pgf77* | pgf90* | pgf95* | pgfortran*) 10208 # Portland Group f77 and f90 compilers 10209 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' 10210 tmp_addflag=' $pic_flag -Mnomain' ;; 10211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10212 tmp_addflag=' -i_dynamic' ;; 10213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10214 tmp_addflag=' -i_dynamic -nofor_main' ;; 10215 ifc* | ifort*) # Intel Fortran compiler 10216 tmp_addflag=' -nofor_main' ;; 10217 lf95*) # Lahey Fortran 8.1 10218 whole_archive_flag_spec= 10219 tmp_sharedflag='--shared' ;; 10220 nagfor*) # NAGFOR 5.3 10221 tmp_sharedflag='-Wl,-shared' ;; 10222 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10223 tmp_sharedflag='-qmkshrobj' 10224 tmp_addflag= ;; 10225 nvcc*) # Cuda Compiler Driver 2.2 10226 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' 10227 compiler_needs_object=yes 10228 ;; 10229 esac 10230 case `$CC -V 2>&1 | $SED 5q` in 10231 *Sun\ C*) # Sun C 5.9 10232 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' 10233 compiler_needs_object=yes 10234 tmp_sharedflag='-G' ;; 10235 *Sun\ F*) # Sun Fortran 8.3 10236 tmp_sharedflag='-G' ;; 10237 esac 10238 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10239 10240 if test yes = "$supports_anon_versioning"; then 10241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10242 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10243 echo "local: *; };" >> $output_objdir/$libname.ver~ 10244 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10245 fi 10246 10247 case $cc_basename in 10248 tcc*) 10249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10250 export_dynamic_flag_spec='-rdynamic' 10251 ;; 10252 xlf* | bgf* | bgxlf* | mpixlf*) 10253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10256 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10257 if test yes = "$supports_anon_versioning"; then 10258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10259 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10260 echo "local: *; };" >> $output_objdir/$libname.ver~ 10261 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10262 fi 10263 ;; 10264 esac 10265 else 10266 ld_shlibs=no 10267 fi 10268 ;; 10269 10270 *-mlibc) 10271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10273 ;; 10274 10275 netbsd* | netbsdelf*-gnu) 10276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10277 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10278 wlarc= 10279 else 10280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10281 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10282 fi 10283 ;; 10284 10285 solaris*) 10286 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10287 ld_shlibs=no 10288 cat <<_LT_EOF 1>&2 10289 10290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10291 *** create shared libraries on Solaris systems. Therefore, libtool 10292 *** is disabling shared libraries support. We urge you to upgrade GNU 10293 *** binutils to release 2.9.1 or newer. Another option is to modify 10294 *** your PATH or compiler configuration so that the native linker is 10295 *** used, and then restart. 10296 10297 _LT_EOF 10298 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10301 else 10302 ld_shlibs=no 10303 fi 10304 ;; 10305 10306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10307 case `$LD -v 2>&1` in 10308 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10309 ld_shlibs=no 10310 cat <<_LT_EOF 1>&2 10311 10312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10313 *** reliably create shared libraries on SCO systems. Therefore, libtool 10314 *** is disabling shared libraries support. We urge you to upgrade GNU 10315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10316 *** your PATH or compiler configuration so that the native linker is 10317 *** used, and then restart. 10318 10319 _LT_EOF 10320 ;; 10321 *) 10322 # For security reasons, it is highly recommended that you always 10323 # use absolute paths for naming shared libraries, and exclude the 10324 # DT_RUNPATH tag from executables and libraries. But doing so 10325 # requires that you compile everything twice, which is a pain. 10326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10330 else 10331 ld_shlibs=no 10332 fi 10333 ;; 10334 esac 10335 ;; 10336 10337 sunos4*) 10338 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10339 wlarc= 10340 hardcode_direct=yes 10341 hardcode_shlibpath_var=no 10342 ;; 10343 10344 *) 10345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10347 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10348 else 10349 ld_shlibs=no 10350 fi 10351 ;; 10352 esac 10353 10354 if test no = "$ld_shlibs"; then 10355 runpath_var= 10356 hardcode_libdir_flag_spec= 10357 export_dynamic_flag_spec= 10358 whole_archive_flag_spec= 10359 fi 10360 else 10361 # PORTME fill in a description of your system's linker (not GNU ld) 10362 case $host_os in 10363 aix3*) 10364 allow_undefined_flag=unsupported 10365 always_export_symbols=yes 10366 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' 10367 # Note: this linker hardcodes the directories in LIBPATH if there 10368 # are no directories specified by -L. 10369 hardcode_minus_L=yes 10370 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10371 # Neither direct hardcoding nor static linking is supported with a 10372 # broken collect2. 10373 hardcode_direct=unsupported 10374 fi 10375 ;; 10376 10377 aix[4-9]*) 10378 if test ia64 = "$host_cpu"; then 10379 # On IA64, the linker does run time linking by default, so we don't 10380 # have to do anything special. 10381 aix_use_runtimelinking=no 10382 exp_sym_flag='-Bexport' 10383 no_entry_flag= 10384 else 10385 # If we're using GNU nm, then we don't want the "-C" option. 10386 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10387 # Without the "-l" option, or with the "-B" option, AIX nm treats 10388 # weak defined symbols like other global defined symbols, whereas 10389 # GNU nm marks them as "W". 10390 # While the 'weak' keyword is ignored in the Export File, we need 10391 # it in the Import File for the 'aix-soname' feature, so we have 10392 # to replace the "-B" option with "-P" for AIX nm. 10393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10394 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' 10395 else 10396 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' 10397 fi 10398 aix_use_runtimelinking=no 10399 10400 # Test if we are trying to use run time linking or normal 10401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10402 # have runtime linking enabled, and use it for executables. 10403 # For shared libraries, we enable/disable runtime linking 10404 # depending on the kind of the shared library created - 10405 # when "with_aix_soname,aix_use_runtimelinking" is: 10406 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10407 # "aix,yes" lib.so shared, rtl:yes, for executables 10408 # lib.a static archive 10409 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10410 # lib.a(lib.so.V) shared, rtl:no, for executables 10411 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10412 # lib.a(lib.so.V) shared, rtl:no 10413 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10414 # lib.a static archive 10415 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10416 for ld_flag in $LDFLAGS; do 10417 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10418 aix_use_runtimelinking=yes 10419 break 10420 fi 10421 done 10422 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10423 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10424 # so we don't have lib.a shared libs to link our executables. 10425 # We have to force runtime linking in this case. 10426 aix_use_runtimelinking=yes 10427 LDFLAGS="$LDFLAGS -Wl,-brtl" 10428 fi 10429 ;; 10430 esac 10431 10432 exp_sym_flag='-bexport' 10433 no_entry_flag='-bnoentry' 10434 fi 10435 10436 # When large executables or shared objects are built, AIX ld can 10437 # have problems creating the table of contents. If linking a library 10438 # or program results in "error TOC overflow" add -mminimal-toc to 10439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10441 10442 archive_cmds='' 10443 hardcode_direct=yes 10444 hardcode_direct_absolute=yes 10445 hardcode_libdir_separator=':' 10446 link_all_deplibs=yes 10447 file_list_spec='$wl-f,' 10448 case $with_aix_soname,$aix_use_runtimelinking in 10449 aix,*) ;; # traditional, no import file 10450 svr4,* | *,yes) # use import file 10451 # The Import File defines what to hardcode. 10452 hardcode_direct=no 10453 hardcode_direct_absolute=no 10454 ;; 10455 esac 10456 10457 if test yes = "$GCC"; then 10458 case $host_os in aix4.[012]|aix4.[012].*) 10459 # We only want to do this on AIX 4.2 and lower, the check 10460 # below for broken collect2 doesn't work under 4.3+ 10461 collect2name=`$CC -print-prog-name=collect2` 10462 if test -f "$collect2name" && 10463 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10464 then 10465 # We have reworked collect2 10466 : 10467 else 10468 # We have old collect2 10469 hardcode_direct=unsupported 10470 # It fails to find uninstalled libraries when the uninstalled 10471 # path is not listed in the libpath. Setting hardcode_minus_L 10472 # to unsupported forces relinking 10473 hardcode_minus_L=yes 10474 hardcode_libdir_flag_spec='-L$libdir' 10475 hardcode_libdir_separator= 10476 fi 10477 ;; 10478 esac 10479 shared_flag='-shared' 10480 if test yes = "$aix_use_runtimelinking"; then 10481 shared_flag="$shared_flag "'$wl-G' 10482 fi 10483 # Need to ensure runtime linking is disabled for the traditional 10484 # shared library, or the linker may eventually find shared libraries 10485 # /with/ Import File - we do not want to mix them. 10486 shared_flag_aix='-shared' 10487 shared_flag_svr4='-shared $wl-G' 10488 else 10489 # not using gcc 10490 if test ia64 = "$host_cpu"; then 10491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10492 # chokes on -Wl,-G. The following line is correct: 10493 shared_flag='-G' 10494 else 10495 if test yes = "$aix_use_runtimelinking"; then 10496 shared_flag='$wl-G' 10497 else 10498 shared_flag='$wl-bM:SRE' 10499 fi 10500 shared_flag_aix='$wl-bM:SRE' 10501 shared_flag_svr4='$wl-G' 10502 fi 10503 fi 10504 10505 export_dynamic_flag_spec='$wl-bexpall' 10506 # It seems that -bexpall does not export symbols beginning with 10507 # underscore (_), so it is better to generate a list of symbols to export. 10508 always_export_symbols=yes 10509 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10510 # Warning - without using the other runtime loading flags (-brtl), 10511 # -berok will link without error, but may produce a broken library. 10512 allow_undefined_flag='-berok' 10513 # Determine the default libpath from the value encoded in an 10514 # empty executable. 10515 if test set = "${lt_cv_aix_libpath+set}"; then 10516 aix_libpath=$lt_cv_aix_libpath 10517 else 10518 if test ${lt_cv_aix_libpath_+y} 10519 then : 10520 printf %s "(cached) " >&6 10521 else case e in #( 10522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10523 /* end confdefs.h. */ 10524 10525 int 10526 main (void) 10527 { 10528 10529 ; 10530 return 0; 10531 } 10532 _ACEOF 10533 if ac_fn_c_try_link "$LINENO" 10534 then : 10535 10536 lt_aix_libpath_sed=' 10537 /Import File Strings/,/^$/ { 10538 /^0/ { 10539 s/^0 *\([^ ]*\) *$/\1/ 10540 p 10541 } 10542 }' 10543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10544 # Check for a 64-bit object if we didn't find anything. 10545 if test -z "$lt_cv_aix_libpath_"; then 10546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10547 fi 10548 fi 10549 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10550 conftest$ac_exeext conftest.$ac_ext 10551 if test -z "$lt_cv_aix_libpath_"; then 10552 lt_cv_aix_libpath_=/usr/lib:/lib 10553 fi 10554 ;; 10555 esac 10556 fi 10557 10558 aix_libpath=$lt_cv_aix_libpath_ 10559 fi 10560 10561 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10562 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 10563 else 10564 if test ia64 = "$host_cpu"; then 10565 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10566 allow_undefined_flag="-z nodefs" 10567 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" 10568 else 10569 # Determine the default libpath from the value encoded in an 10570 # empty executable. 10571 if test set = "${lt_cv_aix_libpath+set}"; then 10572 aix_libpath=$lt_cv_aix_libpath 10573 else 10574 if test ${lt_cv_aix_libpath_+y} 10575 then : 10576 printf %s "(cached) " >&6 10577 else case e in #( 10578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579 /* end confdefs.h. */ 10580 10581 int 10582 main (void) 10583 { 10584 10585 ; 10586 return 0; 10587 } 10588 _ACEOF 10589 if ac_fn_c_try_link "$LINENO" 10590 then : 10591 10592 lt_aix_libpath_sed=' 10593 /Import File Strings/,/^$/ { 10594 /^0/ { 10595 s/^0 *\([^ ]*\) *$/\1/ 10596 p 10597 } 10598 }' 10599 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10600 # Check for a 64-bit object if we didn't find anything. 10601 if test -z "$lt_cv_aix_libpath_"; then 10602 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10603 fi 10604 fi 10605 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10606 conftest$ac_exeext conftest.$ac_ext 10607 if test -z "$lt_cv_aix_libpath_"; then 10608 lt_cv_aix_libpath_=/usr/lib:/lib 10609 fi 10610 ;; 10611 esac 10612 fi 10613 10614 aix_libpath=$lt_cv_aix_libpath_ 10615 fi 10616 10617 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10618 # Warning - without using the other run time loading flags, 10619 # -berok will link without error, but may produce a broken library. 10620 no_undefined_flag=' $wl-bernotok' 10621 allow_undefined_flag=' $wl-berok' 10622 if test yes = "$with_gnu_ld"; then 10623 # We only use this code for GNU lds that support --whole-archive. 10624 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10625 else 10626 # Exported symbols can be pulled into shared objects from archives 10627 whole_archive_flag_spec='$convenience' 10628 fi 10629 archive_cmds_need_lc=yes 10630 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10631 # -brtl affects multiple linker settings, -berok does not and is overridden later 10632 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10633 if test svr4 != "$with_aix_soname"; then 10634 # This is similar to how AIX traditionally builds its shared libraries. 10635 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' 10636 fi 10637 if test aix != "$with_aix_soname"; then 10638 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' 10639 else 10640 # used by -dlpreopen to get the symbols 10641 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10642 fi 10643 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10644 fi 10645 fi 10646 ;; 10647 10648 amigaos*) 10649 case $host_cpu in 10650 powerpc) 10651 # see comment about AmigaOS4 .so support 10652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10653 archive_expsym_cmds='' 10654 ;; 10655 m68k) 10656 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)' 10657 hardcode_libdir_flag_spec='-L$libdir' 10658 hardcode_minus_L=yes 10659 ;; 10660 esac 10661 ;; 10662 10663 bsdi[45]*) 10664 export_dynamic_flag_spec=-rdynamic 10665 ;; 10666 10667 cygwin* | mingw* | windows* | pw32* | cegcc*) 10668 # When not using gcc, we currently assume that we are using 10669 # Microsoft Visual C++ or Intel C++ Compiler. 10670 # hardcode_libdir_flag_spec is actually meaningless, as there is 10671 # no search path for DLLs. 10672 case $cc_basename in 10673 cl* | icl*) 10674 # Native MSVC or ICC 10675 hardcode_libdir_flag_spec=' ' 10676 allow_undefined_flag=unsupported 10677 always_export_symbols=yes 10678 file_list_spec='@' 10679 # Tell ltmain to make .lib files, not .a files. 10680 libext=lib 10681 # Tell ltmain to make .dll files, not .so files. 10682 shrext_cmds=.dll 10683 # FIXME: Setting linknames here is a bad hack. 10684 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10685 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10686 cp "$export_symbols" "$output_objdir/$soname.def"; 10687 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10688 else 10689 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10690 fi~ 10691 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10692 linknames=' 10693 # The linker will not automatically build a static lib if we build a DLL. 10694 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10695 enable_shared_with_static_runtimes=yes 10696 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10698 # Don't use ranlib 10699 old_postinstall_cmds='chmod 644 $oldlib' 10700 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10701 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10702 case $lt_outputfile in 10703 *.exe|*.EXE) ;; 10704 *) 10705 lt_outputfile=$lt_outputfile.exe 10706 lt_tool_outputfile=$lt_tool_outputfile.exe 10707 ;; 10708 esac~ 10709 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10710 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10711 $RM "$lt_outputfile.manifest"; 10712 fi' 10713 ;; 10714 *) 10715 # Assume MSVC and ICC wrapper 10716 hardcode_libdir_flag_spec=' ' 10717 allow_undefined_flag=unsupported 10718 # Tell ltmain to make .lib files, not .a files. 10719 libext=lib 10720 # Tell ltmain to make .dll files, not .so files. 10721 shrext_cmds=.dll 10722 # FIXME: Setting linknames here is a bad hack. 10723 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10724 # The linker will automatically build a .lib file if we build a DLL. 10725 old_archive_from_new_cmds='true' 10726 # FIXME: Should let the user specify the lib program. 10727 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10728 enable_shared_with_static_runtimes=yes 10729 ;; 10730 esac 10731 ;; 10732 10733 darwin* | rhapsody*) 10734 10735 10736 archive_cmds_need_lc=no 10737 hardcode_direct=no 10738 hardcode_automatic=yes 10739 hardcode_shlibpath_var=unsupported 10740 if test yes = "$lt_cv_ld_force_load"; then 10741 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\"`' 10742 10743 else 10744 whole_archive_flag_spec='' 10745 fi 10746 link_all_deplibs=yes 10747 allow_undefined_flag=$_lt_dar_allow_undefined 10748 case $cc_basename in 10749 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10750 *) _lt_dar_can_shared=$GCC ;; 10751 esac 10752 if test yes = "$_lt_dar_can_shared"; then 10753 output_verbose_link_cmd=func_echo_all 10754 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10755 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10756 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" 10757 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" 10758 10759 else 10760 ld_shlibs=no 10761 fi 10762 10763 ;; 10764 10765 dgux*) 10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10767 hardcode_libdir_flag_spec='-L$libdir' 10768 hardcode_shlibpath_var=no 10769 ;; 10770 10771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10772 # support. Future versions do this automatically, but an explicit c++rt0.o 10773 # does not break anything, and helps significantly (at the cost of a little 10774 # extra space). 10775 freebsd2.2*) 10776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10777 hardcode_libdir_flag_spec='-R$libdir' 10778 hardcode_direct=yes 10779 hardcode_shlibpath_var=no 10780 ;; 10781 10782 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10783 freebsd2.*) 10784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10785 hardcode_direct=yes 10786 hardcode_minus_L=yes 10787 hardcode_shlibpath_var=no 10788 ;; 10789 10790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10791 freebsd* | dragonfly* | midnightbsd*) 10792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10793 hardcode_libdir_flag_spec='-R$libdir' 10794 hardcode_direct=yes 10795 hardcode_shlibpath_var=no 10796 ;; 10797 10798 hpux9*) 10799 if test yes = "$GCC"; then 10800 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' 10801 else 10802 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' 10803 fi 10804 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10805 hardcode_libdir_separator=: 10806 hardcode_direct=yes 10807 10808 # hardcode_minus_L: Not really in the search PATH, 10809 # but as the default location of the library. 10810 hardcode_minus_L=yes 10811 export_dynamic_flag_spec='$wl-E' 10812 ;; 10813 10814 hpux10*) 10815 if test yes,no = "$GCC,$with_gnu_ld"; then 10816 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10817 else 10818 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10819 fi 10820 if test no = "$with_gnu_ld"; then 10821 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10822 hardcode_libdir_separator=: 10823 hardcode_direct=yes 10824 hardcode_direct_absolute=yes 10825 export_dynamic_flag_spec='$wl-E' 10826 # hardcode_minus_L: Not really in the search PATH, 10827 # but as the default location of the library. 10828 hardcode_minus_L=yes 10829 fi 10830 ;; 10831 10832 hpux11*) 10833 if test yes,no = "$GCC,$with_gnu_ld"; then 10834 case $host_cpu in 10835 hppa*64*) 10836 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10837 ;; 10838 ia64*) 10839 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10840 ;; 10841 *) 10842 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10843 ;; 10844 esac 10845 else 10846 case $host_cpu in 10847 hppa*64*) 10848 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10849 ;; 10850 ia64*) 10851 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10852 ;; 10853 *) 10854 10855 # Older versions of the 11.00 compiler do not understand -b yet 10856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10858 printf %s "checking if $CC understands -b... " >&6; } 10859 if test ${lt_cv_prog_compiler__b+y} 10860 then : 10861 printf %s "(cached) " >&6 10862 else case e in #( 10863 e) lt_cv_prog_compiler__b=no 10864 save_LDFLAGS=$LDFLAGS 10865 LDFLAGS="$LDFLAGS -b" 10866 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10868 # The linker can only warn and ignore the option if not recognized 10869 # So say no if there are warnings 10870 if test -s conftest.err; then 10871 # Append any errors to the config.log. 10872 cat conftest.err 1>&5 10873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10875 if diff conftest.exp conftest.er2 >/dev/null; then 10876 lt_cv_prog_compiler__b=yes 10877 fi 10878 else 10879 lt_cv_prog_compiler__b=yes 10880 fi 10881 fi 10882 $RM -r conftest* 10883 LDFLAGS=$save_LDFLAGS 10884 ;; 10885 esac 10886 fi 10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10888 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10889 10890 if test yes = "$lt_cv_prog_compiler__b"; then 10891 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10892 else 10893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10894 fi 10895 10896 ;; 10897 esac 10898 fi 10899 if test no = "$with_gnu_ld"; then 10900 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10901 hardcode_libdir_separator=: 10902 10903 case $host_cpu in 10904 hppa*64*|ia64*) 10905 hardcode_direct=no 10906 hardcode_shlibpath_var=no 10907 ;; 10908 *) 10909 hardcode_direct=yes 10910 hardcode_direct_absolute=yes 10911 export_dynamic_flag_spec='$wl-E' 10912 10913 # hardcode_minus_L: Not really in the search PATH, 10914 # but as the default location of the library. 10915 hardcode_minus_L=yes 10916 ;; 10917 esac 10918 fi 10919 ;; 10920 10921 irix5* | irix6* | nonstopux*) 10922 if test yes = "$GCC"; then 10923 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' 10924 # Try to use the -exported_symbol ld option, if it does not 10925 # work, assume that -exports_file does not work either and 10926 # implicitly export all symbols. 10927 # This should be the same for all languages, so no per-tag cache variable. 10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10929 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10930 if test ${lt_cv_irix_exported_symbol+y} 10931 then : 10932 printf %s "(cached) " >&6 10933 else case e in #( 10934 e) save_LDFLAGS=$LDFLAGS 10935 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10937 /* end confdefs.h. */ 10938 int foo (void) { return 0; } 10939 _ACEOF 10940 if ac_fn_c_try_link "$LINENO" 10941 then : 10942 lt_cv_irix_exported_symbol=yes 10943 else case e in #( 10944 e) lt_cv_irix_exported_symbol=no ;; 10945 esac 10946 fi 10947 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10948 conftest$ac_exeext conftest.$ac_ext 10949 LDFLAGS=$save_LDFLAGS ;; 10950 esac 10951 fi 10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10953 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10954 if test yes = "$lt_cv_irix_exported_symbol"; then 10955 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' 10956 fi 10957 else 10958 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' 10959 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' 10960 fi 10961 archive_cmds_need_lc='no' 10962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10963 hardcode_libdir_separator=: 10964 inherit_rpath=yes 10965 link_all_deplibs=yes 10966 ;; 10967 10968 linux*) 10969 case $cc_basename in 10970 tcc*) 10971 # Fabrice Bellard et al's Tiny C Compiler 10972 ld_shlibs=yes 10973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10975 ;; 10976 esac 10977 ;; 10978 10979 *-mlibc) 10980 ;; 10981 10982 netbsd* | netbsdelf*-gnu) 10983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10985 else 10986 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10987 fi 10988 hardcode_libdir_flag_spec='-R$libdir' 10989 hardcode_direct=yes 10990 hardcode_shlibpath_var=no 10991 ;; 10992 10993 newsos6) 10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10995 hardcode_direct=yes 10996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10997 hardcode_libdir_separator=: 10998 hardcode_shlibpath_var=no 10999 ;; 11000 11001 *nto* | *qnx*) 11002 ;; 11003 11004 openbsd*) 11005 if test -f /usr/libexec/ld.so; then 11006 hardcode_direct=yes 11007 hardcode_shlibpath_var=no 11008 hardcode_direct_absolute=yes 11009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11011 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11012 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11013 export_dynamic_flag_spec='$wl-E' 11014 else 11015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11016 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11017 fi 11018 else 11019 ld_shlibs=no 11020 fi 11021 ;; 11022 11023 os2*) 11024 hardcode_libdir_flag_spec='-L$libdir' 11025 hardcode_minus_L=yes 11026 allow_undefined_flag=unsupported 11027 shrext_cmds=.dll 11028 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11031 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11032 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11034 emximp -o $lib $output_objdir/$libname.def' 11035 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11038 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11039 prefix_cmds="$SED"~ 11040 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11041 prefix_cmds="$prefix_cmds -e 1d"; 11042 fi~ 11043 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11044 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11046 emximp -o $lib $output_objdir/$libname.def' 11047 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11048 enable_shared_with_static_runtimes=yes 11049 file_list_spec='@' 11050 ;; 11051 11052 osf3*) 11053 if test yes = "$GCC"; then 11054 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11055 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' 11056 else 11057 allow_undefined_flag=' -expect_unresolved \*' 11058 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' 11059 fi 11060 archive_cmds_need_lc='no' 11061 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11062 hardcode_libdir_separator=: 11063 ;; 11064 11065 osf4* | osf5*) # as osf3* with the addition of -msym flag 11066 if test yes = "$GCC"; then 11067 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11068 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' 11069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11070 else 11071 allow_undefined_flag=' -expect_unresolved \*' 11072 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' 11073 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~ 11074 $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' 11075 11076 # Both c and cxx compiler support -rpath directly 11077 hardcode_libdir_flag_spec='-rpath $libdir' 11078 fi 11079 archive_cmds_need_lc='no' 11080 hardcode_libdir_separator=: 11081 ;; 11082 11083 serenity*) 11084 ;; 11085 11086 solaris*) 11087 no_undefined_flag=' -z defs' 11088 if test yes = "$GCC"; then 11089 wlarc='$wl' 11090 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11092 $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' 11093 else 11094 case `$CC -V 2>&1` in 11095 *"Compilers 5.0"*) 11096 wlarc='' 11097 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11099 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11100 ;; 11101 *) 11102 wlarc='$wl' 11103 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11105 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11106 ;; 11107 esac 11108 fi 11109 hardcode_libdir_flag_spec='-R$libdir' 11110 hardcode_shlibpath_var=no 11111 case $host_os in 11112 solaris2.[0-5] | solaris2.[0-5].*) ;; 11113 *) 11114 # The compiler driver will combine and reorder linker options, 11115 # but understands '-z linker_flag'. GCC discards it without '$wl', 11116 # but is careful enough not to reorder. 11117 # Supported since Solaris 2.6 (maybe 2.5.1?) 11118 if test yes = "$GCC"; then 11119 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11120 else 11121 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11122 fi 11123 ;; 11124 esac 11125 link_all_deplibs=yes 11126 ;; 11127 11128 sunos4*) 11129 if test sequent = "$host_vendor"; then 11130 # Use $CC to link under sequent, because it throws in some extra .o 11131 # files that make .init and .fini sections work. 11132 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11133 else 11134 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11135 fi 11136 hardcode_libdir_flag_spec='-L$libdir' 11137 hardcode_direct=yes 11138 hardcode_minus_L=yes 11139 hardcode_shlibpath_var=no 11140 ;; 11141 11142 sysv4) 11143 case $host_vendor in 11144 sni) 11145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11146 hardcode_direct=yes # is this really true??? 11147 ;; 11148 siemens) 11149 ## LD is ld it makes a PLAMLIB 11150 ## CC just makes a GrossModule. 11151 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11152 reload_cmds='$CC -r -o $output$reload_objs' 11153 hardcode_direct=no 11154 ;; 11155 motorola) 11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11157 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11158 ;; 11159 esac 11160 runpath_var='LD_RUN_PATH' 11161 hardcode_shlibpath_var=no 11162 ;; 11163 11164 sysv4.3*) 11165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11166 hardcode_shlibpath_var=no 11167 export_dynamic_flag_spec='-Bexport' 11168 ;; 11169 11170 sysv4*MP*) 11171 if test -d /usr/nec; then 11172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11173 hardcode_shlibpath_var=no 11174 runpath_var=LD_RUN_PATH 11175 hardcode_runpath_var=yes 11176 ld_shlibs=yes 11177 fi 11178 ;; 11179 11180 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11181 no_undefined_flag='$wl-z,text' 11182 archive_cmds_need_lc=no 11183 hardcode_shlibpath_var=no 11184 runpath_var='LD_RUN_PATH' 11185 11186 if test yes = "$GCC"; then 11187 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11188 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11189 else 11190 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11191 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11192 fi 11193 ;; 11194 11195 sysv5* | sco3.2v5* | sco5v6*) 11196 # Note: We CANNOT use -z defs as we might desire, because we do not 11197 # link with -lc, and that would cause any symbols used from libc to 11198 # always be unresolved, which means just about no library would 11199 # ever link correctly. If we're not using GNU ld we use -z text 11200 # though, which does catch some bad symbols but isn't as heavy-handed 11201 # as -z defs. 11202 no_undefined_flag='$wl-z,text' 11203 allow_undefined_flag='$wl-z,nodefs' 11204 archive_cmds_need_lc=no 11205 hardcode_shlibpath_var=no 11206 hardcode_libdir_flag_spec='$wl-R,$libdir' 11207 hardcode_libdir_separator=':' 11208 link_all_deplibs=yes 11209 export_dynamic_flag_spec='$wl-Bexport' 11210 runpath_var='LD_RUN_PATH' 11211 11212 if test yes = "$GCC"; then 11213 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11214 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11215 else 11216 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11217 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11218 fi 11219 ;; 11220 11221 uts4*) 11222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11223 hardcode_libdir_flag_spec='-L$libdir' 11224 hardcode_shlibpath_var=no 11225 ;; 11226 11227 *) 11228 ld_shlibs=no 11229 ;; 11230 esac 11231 11232 if test sni = "$host_vendor"; then 11233 case $host in 11234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11235 export_dynamic_flag_spec='$wl-Blargedynsym' 11236 ;; 11237 esac 11238 fi 11239 fi 11240 11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11242 printf "%s\n" "$ld_shlibs" >&6; } 11243 test no = "$ld_shlibs" && can_build_shared=no 11244 11245 with_gnu_ld=$with_gnu_ld 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 # 11262 # Do we need to explicitly link libc? 11263 # 11264 case "x$archive_cmds_need_lc" in 11265 x|xyes) 11266 # Assume -lc should be added 11267 archive_cmds_need_lc=yes 11268 11269 if test yes,yes = "$GCC,$enable_shared"; then 11270 case $archive_cmds in 11271 *'~'*) 11272 # FIXME: we may have to deal with multi-command sequences. 11273 ;; 11274 '$CC '*) 11275 # Test whether the compiler implicitly links with -lc since on some 11276 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11277 # to ld, don't add -lc before -lgcc. 11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11279 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11280 if test ${lt_cv_archive_cmds_need_lc+y} 11281 then : 11282 printf %s "(cached) " >&6 11283 else case e in #( 11284 e) $RM conftest* 11285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11286 11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11288 (eval $ac_compile) 2>&5 11289 ac_status=$? 11290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11291 test $ac_status = 0; } 2>conftest.err; then 11292 soname=conftest 11293 lib=conftest 11294 libobjs=conftest.$ac_objext 11295 deplibs= 11296 wl=$lt_prog_compiler_wl 11297 pic_flag=$lt_prog_compiler_pic 11298 compiler_flags=-v 11299 linker_flags=-v 11300 verstring= 11301 output_objdir=. 11302 libname=conftest 11303 lt_save_allow_undefined_flag=$allow_undefined_flag 11304 allow_undefined_flag= 11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11306 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11307 ac_status=$? 11308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11309 test $ac_status = 0; } 11310 then 11311 lt_cv_archive_cmds_need_lc=no 11312 else 11313 lt_cv_archive_cmds_need_lc=yes 11314 fi 11315 allow_undefined_flag=$lt_save_allow_undefined_flag 11316 else 11317 cat conftest.err 1>&5 11318 fi 11319 $RM conftest* 11320 ;; 11321 esac 11322 fi 11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11324 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11325 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11326 ;; 11327 esac 11328 fi 11329 ;; 11330 esac 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11484 printf %s "checking dynamic linker characteristics... " >&6; } 11485 11486 if test yes = "$GCC"; then 11487 case $host_os in 11488 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11489 *) lt_awk_arg='/^libraries:/' ;; 11490 esac 11491 case $host_os in 11492 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11493 *) lt_sed_strip_eq='s|=/|/|g' ;; 11494 esac 11495 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11496 case $lt_search_path_spec in 11497 *\;*) 11498 # if the path contains ";" then we assume it to be the separator 11499 # otherwise default to the standard path separator (i.e. ":") - it is 11500 # assumed that no part of a normal pathname contains ";" but that should 11501 # okay in the real world where ";" in dirpaths is itself problematic. 11502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11503 ;; 11504 *) 11505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11506 ;; 11507 esac 11508 # Ok, now we have the path, separated by spaces, we can step through it 11509 # and add multilib dir if necessary... 11510 lt_tmp_lt_search_path_spec= 11511 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11512 # ...but if some path component already ends with the multilib dir we assume 11513 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11514 case "$lt_multi_os_dir; $lt_search_path_spec " in 11515 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11516 lt_multi_os_dir= 11517 ;; 11518 esac 11519 for lt_sys_path in $lt_search_path_spec; do 11520 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11522 elif test -n "$lt_multi_os_dir"; then 11523 test -d "$lt_sys_path" && \ 11524 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11525 fi 11526 done 11527 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11528 BEGIN {RS = " "; FS = "/|\n";} { 11529 lt_foo = ""; 11530 lt_count = 0; 11531 for (lt_i = NF; lt_i > 0; lt_i--) { 11532 if ($lt_i != "" && $lt_i != ".") { 11533 if ($lt_i == "..") { 11534 lt_count++; 11535 } else { 11536 if (lt_count == 0) { 11537 lt_foo = "/" $lt_i lt_foo; 11538 } else { 11539 lt_count--; 11540 } 11541 } 11542 } 11543 } 11544 if (lt_foo != "") { lt_freq[lt_foo]++; } 11545 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11546 }'` 11547 # AWK program above erroneously prepends '/' to C:/dos/paths 11548 # for these hosts. 11549 case $host_os in 11550 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11551 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11552 esac 11553 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11554 else 11555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11556 fi 11557 library_names_spec= 11558 libname_spec='lib$name' 11559 soname_spec= 11560 shrext_cmds=.so 11561 postinstall_cmds= 11562 postuninstall_cmds= 11563 finish_cmds= 11564 finish_eval= 11565 shlibpath_var= 11566 shlibpath_overrides_runpath=unknown 11567 version_type=none 11568 dynamic_linker="$host_os ld.so" 11569 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11570 need_lib_prefix=unknown 11571 hardcode_into_libs=no 11572 11573 # when you set need_version to no, make sure it does not cause -set_version 11574 # flags to be left without arguments 11575 need_version=unknown 11576 11577 11578 11579 case $host_os in 11580 aix3*) 11581 version_type=linux # correct to gnu/linux during the next big refactor 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11583 shlibpath_var=LIBPATH 11584 11585 # AIX 3 has no versioning support, so we append a major version to the name. 11586 soname_spec='$libname$release$shared_ext$major' 11587 ;; 11588 11589 aix[4-9]*) 11590 version_type=linux # correct to gnu/linux during the next big refactor 11591 need_lib_prefix=no 11592 need_version=no 11593 hardcode_into_libs=yes 11594 if test ia64 = "$host_cpu"; then 11595 # AIX 5 supports IA64 11596 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 else 11599 # With GCC up to 2.95.x, collect2 would create an import file 11600 # for dependence libraries. The import file would start with 11601 # the line '#! .'. This would cause the generated library to 11602 # depend on '.', always an invalid library. This was fixed in 11603 # development snapshots of GCC prior to 3.0. 11604 case $host_os in 11605 aix4 | aix4.[01] | aix4.[01].*) 11606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11607 echo ' yes ' 11608 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11609 : 11610 else 11611 can_build_shared=no 11612 fi 11613 ;; 11614 esac 11615 # Using Import Files as archive members, it is possible to support 11616 # filename-based versioning of shared library archives on AIX. While 11617 # this would work for both with and without runtime linking, it will 11618 # prevent static linking of such archives. So we do filename-based 11619 # shared library versioning with .so extension only, which is used 11620 # when both runtime linking and shared linking is enabled. 11621 # Unfortunately, runtime linking may impact performance, so we do 11622 # not want this to be the default eventually. Also, we use the 11623 # versioned .so libs for executables only if there is the -brtl 11624 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11625 # To allow for filename-based versioning support, we need to create 11626 # libNAME.so.V as an archive file, containing: 11627 # *) an Import File, referring to the versioned filename of the 11628 # archive as well as the shared archive member, telling the 11629 # bitwidth (32 or 64) of that shared object, and providing the 11630 # list of exported symbols of that shared object, eventually 11631 # decorated with the 'weak' keyword 11632 # *) the shared object with the F_LOADONLY flag set, to really avoid 11633 # it being seen by the linker. 11634 # At run time we better use the real file rather than another symlink, 11635 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11636 11637 case $with_aix_soname,$aix_use_runtimelinking in 11638 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11639 # soname into executable. Probably we can add versioning support to 11640 # collect2, so additional links can be useful in future. 11641 aix,yes) # traditional libtool 11642 dynamic_linker='AIX unversionable lib.so' 11643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11644 # instead of lib<name>.a to let people know that these are not 11645 # typical AIX shared libraries. 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11647 ;; 11648 aix,no) # traditional AIX only 11649 dynamic_linker='AIX lib.a(lib.so.V)' 11650 # We preserve .a as extension for shared libraries through AIX4.2 11651 # and later when we are not doing run time linking. 11652 library_names_spec='$libname$release.a $libname.a' 11653 soname_spec='$libname$release$shared_ext$major' 11654 ;; 11655 svr4,*) # full svr4 only 11656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11658 # We do not specify a path in Import Files, so LIBPATH fires. 11659 shlibpath_overrides_runpath=yes 11660 ;; 11661 *,yes) # both, prefer svr4 11662 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11663 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11664 # unpreferred sharedlib libNAME.a needs extra handling 11665 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"' 11666 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"' 11667 # We do not specify a path in Import Files, so LIBPATH fires. 11668 shlibpath_overrides_runpath=yes 11669 ;; 11670 *,no) # both, prefer aix 11671 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11672 library_names_spec='$libname$release.a $libname.a' 11673 soname_spec='$libname$release$shared_ext$major' 11674 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11675 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)' 11676 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"' 11677 ;; 11678 esac 11679 shlibpath_var=LIBPATH 11680 fi 11681 ;; 11682 11683 amigaos*) 11684 case $host_cpu in 11685 powerpc) 11686 # Since July 2007 AmigaOS4 officially supports .so libraries. 11687 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11689 ;; 11690 m68k) 11691 library_names_spec='$libname.ixlibrary $libname.a' 11692 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11693 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' 11694 ;; 11695 esac 11696 ;; 11697 11698 beos*) 11699 library_names_spec='$libname$shared_ext' 11700 dynamic_linker="$host_os ld.so" 11701 shlibpath_var=LIBRARY_PATH 11702 ;; 11703 11704 bsdi[45]*) 11705 version_type=linux # correct to gnu/linux during the next big refactor 11706 need_version=no 11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11708 soname_spec='$libname$release$shared_ext$major' 11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11713 # the default ld.so.conf also contains /usr/contrib/lib and 11714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11715 # libtool to hard-code these into programs 11716 ;; 11717 11718 cygwin* | mingw* | windows* | pw32* | cegcc*) 11719 version_type=windows 11720 shrext_cmds=.dll 11721 need_version=no 11722 need_lib_prefix=no 11723 11724 case $GCC,$cc_basename in 11725 yes,*) 11726 # gcc 11727 library_names_spec='$libname.dll.a' 11728 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11729 # If user builds GCC with multilib enabled, 11730 # it should just install on $(libdir) 11731 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11732 if test xyes = x"$multilib"; then 11733 postinstall_cmds='base_file=`basename \$file`~ 11734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11735 dldir=$destdir/`dirname \$dlpath`~ 11736 $install_prog $dir/$dlname $destdir/$dlname~ 11737 chmod a+x $destdir/$dlname~ 11738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11739 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11740 fi' 11741 else 11742 postinstall_cmds='base_file=`basename \$file`~ 11743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11744 dldir=$destdir/`dirname \$dlpath`~ 11745 test -d \$dldir || mkdir -p \$dldir~ 11746 $install_prog $dir/$dlname \$dldir/$dlname~ 11747 chmod a+x \$dldir/$dlname~ 11748 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11749 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11750 fi' 11751 fi 11752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11753 dlpath=$dir/\$dldll~ 11754 $RM \$dlpath' 11755 shlibpath_overrides_runpath=yes 11756 11757 case $host_os in 11758 cygwin*) 11759 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11760 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11761 11762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11763 ;; 11764 mingw* | windows* | cegcc*) 11765 # MinGW DLLs use traditional 'lib' prefix 11766 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11767 ;; 11768 pw32*) 11769 # pw32 DLLs use 'pw' prefix rather than 'lib' 11770 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11771 ;; 11772 esac 11773 dynamic_linker='Win32 ld.exe' 11774 ;; 11775 11776 *,cl* | *,icl*) 11777 # Native MSVC or ICC 11778 libname_spec='$name' 11779 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11780 library_names_spec='$libname.dll.lib' 11781 11782 case $build_os in 11783 mingw* | windows*) 11784 sys_lib_search_path_spec= 11785 lt_save_ifs=$IFS 11786 IFS=';' 11787 for lt_path in $LIB 11788 do 11789 IFS=$lt_save_ifs 11790 # Let DOS variable expansion print the short 8.3 style file name. 11791 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11792 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11793 done 11794 IFS=$lt_save_ifs 11795 # Convert to MSYS style. 11796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11797 ;; 11798 cygwin*) 11799 # Convert to unix form, then to dos form, then back to unix form 11800 # but this time dos style (no spaces!) so that the unix form looks 11801 # like /cygdrive/c/PROGRA~1:/cygdr... 11802 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11803 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11804 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11805 ;; 11806 *) 11807 sys_lib_search_path_spec=$LIB 11808 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11809 # It is most probably a Windows format PATH. 11810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11811 else 11812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11813 fi 11814 # FIXME: find the short name or the path components, as spaces are 11815 # common. (e.g. "Program Files" -> "PROGRA~1") 11816 ;; 11817 esac 11818 11819 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11820 postinstall_cmds='base_file=`basename \$file`~ 11821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11822 dldir=$destdir/`dirname \$dlpath`~ 11823 test -d \$dldir || mkdir -p \$dldir~ 11824 $install_prog $dir/$dlname \$dldir/$dlname' 11825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11826 dlpath=$dir/\$dldll~ 11827 $RM \$dlpath' 11828 shlibpath_overrides_runpath=yes 11829 dynamic_linker='Win32 link.exe' 11830 ;; 11831 11832 *) 11833 # Assume MSVC and ICC wrapper 11834 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11835 dynamic_linker='Win32 ld.exe' 11836 ;; 11837 esac 11838 # FIXME: first we should search . and the directory the executable is in 11839 shlibpath_var=PATH 11840 ;; 11841 11842 darwin* | rhapsody*) 11843 dynamic_linker="$host_os dyld" 11844 version_type=darwin 11845 need_lib_prefix=no 11846 need_version=no 11847 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11848 soname_spec='$libname$release$major$shared_ext' 11849 shlibpath_overrides_runpath=yes 11850 shlibpath_var=DYLD_LIBRARY_PATH 11851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11852 11853 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11855 ;; 11856 11857 dgux*) 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 need_lib_prefix=no 11860 need_version=no 11861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11862 soname_spec='$libname$release$shared_ext$major' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 ;; 11865 11866 freebsd* | dragonfly* | midnightbsd*) 11867 # DragonFly does not have aout. When/if they implement a new 11868 # versioning mechanism, adjust this. 11869 if test -x /usr/bin/objformat; then 11870 objformat=`/usr/bin/objformat` 11871 else 11872 case $host_os in 11873 freebsd[23].*) objformat=aout ;; 11874 *) objformat=elf ;; 11875 esac 11876 fi 11877 version_type=freebsd-$objformat 11878 case $version_type in 11879 freebsd-elf*) 11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11881 soname_spec='$libname$release$shared_ext$major' 11882 need_version=no 11883 need_lib_prefix=no 11884 ;; 11885 freebsd-*) 11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11887 need_version=yes 11888 ;; 11889 esac 11890 case $host_cpu in 11891 powerpc64) 11892 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11893 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895 /* end confdefs.h. */ 11896 int test_pointer_size[sizeof (void *) - 5]; 11897 11898 _ACEOF 11899 if ac_fn_c_try_compile "$LINENO" 11900 then : 11901 shlibpath_var=LD_LIBRARY_PATH 11902 else case e in #( 11903 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 11904 esac 11905 fi 11906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11907 ;; 11908 *) 11909 shlibpath_var=LD_LIBRARY_PATH 11910 ;; 11911 esac 11912 case $host_os in 11913 freebsd2.*) 11914 shlibpath_overrides_runpath=yes 11915 ;; 11916 freebsd3.[01]* | freebsdelf3.[01]*) 11917 shlibpath_overrides_runpath=yes 11918 hardcode_into_libs=yes 11919 ;; 11920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11922 shlibpath_overrides_runpath=no 11923 hardcode_into_libs=yes 11924 ;; 11925 *) # from 4.6 on, and DragonFly 11926 shlibpath_overrides_runpath=yes 11927 hardcode_into_libs=yes 11928 ;; 11929 esac 11930 ;; 11931 11932 haiku*) 11933 version_type=linux # correct to gnu/linux during the next big refactor 11934 need_lib_prefix=no 11935 need_version=no 11936 dynamic_linker="$host_os runtime_loader" 11937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11938 soname_spec='$libname$release$shared_ext$major' 11939 shlibpath_var=LIBRARY_PATH 11940 shlibpath_overrides_runpath=no 11941 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 11942 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 11943 hardcode_into_libs=no 11944 ;; 11945 11946 hpux9* | hpux10* | hpux11*) 11947 # Give a soname corresponding to the major version so that dld.sl refuses to 11948 # link against other versions. 11949 version_type=sunos 11950 need_lib_prefix=no 11951 need_version=no 11952 case $host_cpu in 11953 ia64*) 11954 shrext_cmds='.so' 11955 hardcode_into_libs=yes 11956 dynamic_linker="$host_os dld.so" 11957 shlibpath_var=LD_LIBRARY_PATH 11958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11960 soname_spec='$libname$release$shared_ext$major' 11961 if test 32 = "$HPUX_IA64_MODE"; then 11962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11963 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11964 else 11965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11966 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11967 fi 11968 ;; 11969 hppa*64*) 11970 shrext_cmds='.sl' 11971 hardcode_into_libs=yes 11972 dynamic_linker="$host_os dld.sl" 11973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11976 soname_spec='$libname$release$shared_ext$major' 11977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11979 ;; 11980 *) 11981 shrext_cmds='.sl' 11982 dynamic_linker="$host_os dld.sl" 11983 shlibpath_var=SHLIB_PATH 11984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11986 soname_spec='$libname$release$shared_ext$major' 11987 ;; 11988 esac 11989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11990 postinstall_cmds='chmod 555 $lib' 11991 # or fails outright, so override atomically: 11992 install_override_mode=555 11993 ;; 11994 11995 interix[3-9]*) 11996 version_type=linux # correct to gnu/linux during the next big refactor 11997 need_lib_prefix=no 11998 need_version=no 11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12000 soname_spec='$libname$release$shared_ext$major' 12001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12002 shlibpath_var=LD_LIBRARY_PATH 12003 shlibpath_overrides_runpath=no 12004 hardcode_into_libs=yes 12005 ;; 12006 12007 irix5* | irix6* | nonstopux*) 12008 case $host_os in 12009 nonstopux*) version_type=nonstopux ;; 12010 *) 12011 if test yes = "$lt_cv_prog_gnu_ld"; then 12012 version_type=linux # correct to gnu/linux during the next big refactor 12013 else 12014 version_type=irix 12015 fi ;; 12016 esac 12017 need_lib_prefix=no 12018 need_version=no 12019 soname_spec='$libname$release$shared_ext$major' 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12021 case $host_os in 12022 irix5* | nonstopux*) 12023 libsuff= shlibsuff= 12024 ;; 12025 *) 12026 case $LD in # libtool.m4 will add one of these switches to LD 12027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12028 libsuff= shlibsuff= libmagic=32-bit;; 12029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12030 libsuff=32 shlibsuff=N32 libmagic=N32;; 12031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12032 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12033 *) libsuff= shlibsuff= libmagic=never-match;; 12034 esac 12035 ;; 12036 esac 12037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12038 shlibpath_overrides_runpath=no 12039 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12040 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12041 hardcode_into_libs=yes 12042 ;; 12043 12044 # No shared lib support for Linux oldld, aout, or coff. 12045 linux*oldld* | linux*aout* | linux*coff*) 12046 dynamic_linker=no 12047 ;; 12048 12049 linux*android*) 12050 version_type=none # Android doesn't support versioned libraries. 12051 need_lib_prefix=no 12052 need_version=no 12053 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12054 soname_spec='$libname$release$shared_ext' 12055 finish_cmds= 12056 shlibpath_var=LD_LIBRARY_PATH 12057 shlibpath_overrides_runpath=yes 12058 12059 # This implies no fast_install, which is unacceptable. 12060 # Some rework will be needed to allow for fast_install 12061 # before this can be enabled. 12062 hardcode_into_libs=yes 12063 12064 dynamic_linker='Android linker' 12065 # -rpath works at least for libraries that are not overridden by 12066 # libraries installed in system locations. 12067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12068 ;; 12069 12070 # This must be glibc/ELF. 12071 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12072 version_type=linux # correct to gnu/linux during the next big refactor 12073 need_lib_prefix=no 12074 need_version=no 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12076 soname_spec='$libname$release$shared_ext$major' 12077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12078 shlibpath_var=LD_LIBRARY_PATH 12079 shlibpath_overrides_runpath=no 12080 12081 # Some binutils ld are patched to set DT_RUNPATH 12082 if test ${lt_cv_shlibpath_overrides_runpath+y} 12083 then : 12084 printf %s "(cached) " >&6 12085 else case e in #( 12086 e) lt_cv_shlibpath_overrides_runpath=no 12087 save_LDFLAGS=$LDFLAGS 12088 save_libdir=$libdir 12089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092 /* end confdefs.h. */ 12093 12094 int 12095 main (void) 12096 { 12097 12098 ; 12099 return 0; 12100 } 12101 _ACEOF 12102 if ac_fn_c_try_link "$LINENO" 12103 then : 12104 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12105 then : 12106 lt_cv_shlibpath_overrides_runpath=yes 12107 fi 12108 fi 12109 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12110 conftest$ac_exeext conftest.$ac_ext 12111 LDFLAGS=$save_LDFLAGS 12112 libdir=$save_libdir 12113 ;; 12114 esac 12115 fi 12116 12117 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12118 12119 # This implies no fast_install, which is unacceptable. 12120 # Some rework will be needed to allow for fast_install 12121 # before this can be enabled. 12122 hardcode_into_libs=yes 12123 12124 # Ideally, we could use ldconfig to report *all* directories which are 12125 # searched for libraries, however this is still not possible. Aside from not 12126 # being certain /sbin/ldconfig is available, command 12127 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12128 # even though it is searched at run-time. Try to do the best guess by 12129 # appending ld.so.conf contents (and includes) to the search path. 12130 if test -f /etc/ld.so.conf; then 12131 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' ' '` 12132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12133 fi 12134 12135 # We used to test for /lib/ld.so.1 and disable shared libraries on 12136 # powerpc, because MkLinux only supported shared libraries with the 12137 # GNU dynamic linker. Since this was broken with cross compilers, 12138 # most powerpc-linux boxes support dynamic linking these days and 12139 # people can always --disable-shared, the test was removed, and we 12140 # assume the GNU/Linux dynamic linker is in use. 12141 dynamic_linker='GNU/Linux ld.so' 12142 ;; 12143 12144 netbsdelf*-gnu) 12145 version_type=linux 12146 need_lib_prefix=no 12147 need_version=no 12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12149 soname_spec='$libname$release$shared_ext$major' 12150 shlibpath_var=LD_LIBRARY_PATH 12151 shlibpath_overrides_runpath=no 12152 hardcode_into_libs=yes 12153 dynamic_linker='NetBSD ld.elf_so' 12154 ;; 12155 12156 netbsd*) 12157 version_type=sunos 12158 need_lib_prefix=no 12159 need_version=no 12160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12163 dynamic_linker='NetBSD (a.out) ld.so' 12164 else 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 dynamic_linker='NetBSD ld.elf_so' 12168 fi 12169 shlibpath_var=LD_LIBRARY_PATH 12170 shlibpath_overrides_runpath=yes 12171 hardcode_into_libs=yes 12172 ;; 12173 12174 *-mlibc) 12175 version_type=linux # correct to gnu/linux during the next big refactor 12176 need_lib_prefix=no 12177 need_version=no 12178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12179 soname_spec='$libname$release$shared_ext$major' 12180 dynamic_linker='mlibc ld.so' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=no 12183 hardcode_into_libs=yes 12184 ;; 12185 12186 newsos6) 12187 version_type=linux # correct to gnu/linux during the next big refactor 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12189 shlibpath_var=LD_LIBRARY_PATH 12190 shlibpath_overrides_runpath=yes 12191 ;; 12192 12193 *nto* | *qnx*) 12194 version_type=qnx 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12198 soname_spec='$libname$release$shared_ext$major' 12199 shlibpath_var=LD_LIBRARY_PATH 12200 shlibpath_overrides_runpath=no 12201 hardcode_into_libs=yes 12202 dynamic_linker='ldqnx.so' 12203 ;; 12204 12205 openbsd*) 12206 version_type=sunos 12207 sys_lib_dlsearch_path_spec=/usr/lib 12208 need_lib_prefix=no 12209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12210 need_version=no 12211 else 12212 need_version=yes 12213 fi 12214 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12216 shlibpath_var=LD_LIBRARY_PATH 12217 shlibpath_overrides_runpath=yes 12218 ;; 12219 12220 os2*) 12221 libname_spec='$name' 12222 version_type=windows 12223 shrext_cmds=.dll 12224 need_version=no 12225 need_lib_prefix=no 12226 # OS/2 can only load a DLL with a base name of 8 characters or less. 12227 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12228 v=$($ECHO $release$versuffix | tr -d .-); 12229 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12230 $ECHO $n$v`$shared_ext' 12231 library_names_spec='${libname}_dll.$libext' 12232 dynamic_linker='OS/2 ld.exe' 12233 shlibpath_var=BEGINLIBPATH 12234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12236 postinstall_cmds='base_file=`basename \$file`~ 12237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12238 dldir=$destdir/`dirname \$dlpath`~ 12239 test -d \$dldir || mkdir -p \$dldir~ 12240 $install_prog $dir/$dlname \$dldir/$dlname~ 12241 chmod a+x \$dldir/$dlname~ 12242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12244 fi' 12245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12246 dlpath=$dir/\$dldll~ 12247 $RM \$dlpath' 12248 ;; 12249 12250 osf3* | osf4* | osf5*) 12251 version_type=osf 12252 need_lib_prefix=no 12253 need_version=no 12254 soname_spec='$libname$release$shared_ext$major' 12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12256 shlibpath_var=LD_LIBRARY_PATH 12257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12259 ;; 12260 12261 rdos*) 12262 dynamic_linker=no 12263 ;; 12264 12265 serenity*) 12266 version_type=linux # correct to gnu/linux during the next big refactor 12267 need_lib_prefix=no 12268 need_version=no 12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12270 soname_spec='$libname$release$shared_ext$major' 12271 shlibpath_var=LD_LIBRARY_PATH 12272 shlibpath_overrides_runpath=no 12273 dynamic_linker='SerenityOS LibELF' 12274 ;; 12275 12276 solaris*) 12277 version_type=linux # correct to gnu/linux during the next big refactor 12278 need_lib_prefix=no 12279 need_version=no 12280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12281 soname_spec='$libname$release$shared_ext$major' 12282 shlibpath_var=LD_LIBRARY_PATH 12283 shlibpath_overrides_runpath=yes 12284 hardcode_into_libs=yes 12285 # ldd complains unless libraries are executable 12286 postinstall_cmds='chmod +x $lib' 12287 ;; 12288 12289 sunos4*) 12290 version_type=sunos 12291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12293 shlibpath_var=LD_LIBRARY_PATH 12294 shlibpath_overrides_runpath=yes 12295 if test yes = "$with_gnu_ld"; then 12296 need_lib_prefix=no 12297 fi 12298 need_version=yes 12299 ;; 12300 12301 sysv4 | sysv4.3*) 12302 version_type=linux # correct to gnu/linux during the next big refactor 12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12304 soname_spec='$libname$release$shared_ext$major' 12305 shlibpath_var=LD_LIBRARY_PATH 12306 case $host_vendor in 12307 sni) 12308 shlibpath_overrides_runpath=no 12309 need_lib_prefix=no 12310 runpath_var=LD_RUN_PATH 12311 ;; 12312 siemens) 12313 need_lib_prefix=no 12314 ;; 12315 motorola) 12316 need_lib_prefix=no 12317 need_version=no 12318 shlibpath_overrides_runpath=no 12319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12320 ;; 12321 esac 12322 ;; 12323 12324 sysv4*MP*) 12325 if test -d /usr/nec; then 12326 version_type=linux # correct to gnu/linux during the next big refactor 12327 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12328 soname_spec='$libname$shared_ext.$major' 12329 shlibpath_var=LD_LIBRARY_PATH 12330 fi 12331 ;; 12332 12333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12334 version_type=sco 12335 need_lib_prefix=no 12336 need_version=no 12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12338 soname_spec='$libname$release$shared_ext$major' 12339 shlibpath_var=LD_LIBRARY_PATH 12340 shlibpath_overrides_runpath=yes 12341 hardcode_into_libs=yes 12342 if test yes = "$with_gnu_ld"; then 12343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12344 else 12345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12346 case $host_os in 12347 sco3.2v5*) 12348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12349 ;; 12350 esac 12351 fi 12352 sys_lib_dlsearch_path_spec='/usr/lib' 12353 ;; 12354 12355 tpf*) 12356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12357 version_type=linux # correct to gnu/linux during the next big refactor 12358 need_lib_prefix=no 12359 need_version=no 12360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12361 shlibpath_var=LD_LIBRARY_PATH 12362 shlibpath_overrides_runpath=no 12363 hardcode_into_libs=yes 12364 ;; 12365 12366 uts4*) 12367 version_type=linux # correct to gnu/linux during the next big refactor 12368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12369 soname_spec='$libname$release$shared_ext$major' 12370 shlibpath_var=LD_LIBRARY_PATH 12371 ;; 12372 12373 emscripten*) 12374 version_type=none 12375 need_lib_prefix=no 12376 need_version=no 12377 library_names_spec='$libname$release$shared_ext' 12378 soname_spec='$libname$release$shared_ext' 12379 finish_cmds= 12380 dynamic_linker="Emscripten linker" 12381 lt_prog_compiler_wl= 12382 lt_prog_compiler_pic= 12383 lt_prog_compiler_static= 12384 12385 12386 if test yes = "$GCC"; then 12387 lt_prog_compiler_wl='-Wl,' 12388 lt_prog_compiler_static='-static' 12389 12390 case $host_os in 12391 aix*) 12392 # All AIX code is PIC. 12393 if test ia64 = "$host_cpu"; then 12394 # AIX 5 now supports IA64 processor 12395 lt_prog_compiler_static='-Bstatic' 12396 fi 12397 lt_prog_compiler_pic='-fPIC' 12398 ;; 12399 12400 amigaos*) 12401 case $host_cpu in 12402 powerpc) 12403 # see comment about AmigaOS4 .so support 12404 lt_prog_compiler_pic='-fPIC' 12405 ;; 12406 m68k) 12407 # FIXME: we need at least 68020 code to build shared libraries, but 12408 # adding the '-m68020' flag to GCC prevents building anything better, 12409 # like '-m68040'. 12410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12411 ;; 12412 esac 12413 ;; 12414 12415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12416 # PIC is the default for these OSes. 12417 ;; 12418 12419 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12420 # This hack is so that the source file can tell whether it is being 12421 # built for inclusion in a dll (and should export symbols for example). 12422 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12423 # (--disable-auto-import) libraries 12424 lt_prog_compiler_pic='-DDLL_EXPORT' 12425 case $host_os in 12426 os2*) 12427 lt_prog_compiler_static='$wl-static' 12428 ;; 12429 esac 12430 ;; 12431 12432 darwin* | rhapsody*) 12433 # PIC is the default on this platform 12434 # Common symbols not allowed in MH_DYLIB files 12435 lt_prog_compiler_pic='-fno-common' 12436 ;; 12437 12438 haiku*) 12439 # PIC is the default for Haiku. 12440 # The "-static" flag exists, but is broken. 12441 lt_prog_compiler_static= 12442 ;; 12443 12444 hpux*) 12445 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12446 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12447 # sets the default TLS model and affects inlining. 12448 case $host_cpu in 12449 hppa*64*) 12450 # +Z the default 12451 ;; 12452 *) 12453 lt_prog_compiler_pic='-fPIC' 12454 ;; 12455 esac 12456 ;; 12457 12458 interix[3-9]*) 12459 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12460 # Instead, we relocate shared libraries at runtime. 12461 ;; 12462 12463 msdosdjgpp*) 12464 # Just because we use GCC doesn't mean we suddenly get shared libraries 12465 # on systems that don't support them. 12466 lt_prog_compiler_can_build_shared=no 12467 enable_shared=no 12468 ;; 12469 12470 *nto* | *qnx*) 12471 # QNX uses GNU C++, but need to define -shared option too, otherwise 12472 # it will coredump. 12473 lt_prog_compiler_pic='-fPIC -shared' 12474 ;; 12475 12476 sysv4*MP*) 12477 if test -d /usr/nec; then 12478 lt_prog_compiler_pic=-Kconform_pic 12479 fi 12480 ;; 12481 12482 *) 12483 lt_prog_compiler_pic='-fPIC' 12484 ;; 12485 esac 12486 12487 case $cc_basename in 12488 nvcc*) # Cuda Compiler Driver 2.2 12489 lt_prog_compiler_wl='-Xlinker ' 12490 if test -n "$lt_prog_compiler_pic"; then 12491 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12492 fi 12493 ;; 12494 esac 12495 else 12496 # PORTME Check for flag to pass linker flags through the system compiler. 12497 case $host_os in 12498 aix*) 12499 lt_prog_compiler_wl='-Wl,' 12500 if test ia64 = "$host_cpu"; then 12501 # AIX 5 now supports IA64 processor 12502 lt_prog_compiler_static='-Bstatic' 12503 else 12504 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12505 fi 12506 ;; 12507 12508 darwin* | rhapsody*) 12509 # PIC is the default on this platform 12510 # Common symbols not allowed in MH_DYLIB files 12511 lt_prog_compiler_pic='-fno-common' 12512 case $cc_basename in 12513 nagfor*) 12514 # NAG Fortran compiler 12515 lt_prog_compiler_wl='-Wl,-Wl,,' 12516 lt_prog_compiler_pic='-PIC' 12517 lt_prog_compiler_static='-Bstatic' 12518 ;; 12519 esac 12520 ;; 12521 12522 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12523 # This hack is so that the source file can tell whether it is being 12524 # built for inclusion in a dll (and should export symbols for example). 12525 lt_prog_compiler_pic='-DDLL_EXPORT' 12526 case $host_os in 12527 os2*) 12528 lt_prog_compiler_static='$wl-static' 12529 ;; 12530 esac 12531 ;; 12532 12533 hpux9* | hpux10* | hpux11*) 12534 lt_prog_compiler_wl='-Wl,' 12535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12536 # not for PA HP-UX. 12537 case $host_cpu in 12538 hppa*64*|ia64*) 12539 # +Z the default 12540 ;; 12541 *) 12542 lt_prog_compiler_pic='+Z' 12543 ;; 12544 esac 12545 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12546 lt_prog_compiler_static='$wl-a ${wl}archive' 12547 ;; 12548 12549 irix5* | irix6* | nonstopux*) 12550 lt_prog_compiler_wl='-Wl,' 12551 # PIC (with -KPIC) is the default. 12552 lt_prog_compiler_static='-non_shared' 12553 ;; 12554 12555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12556 case $cc_basename in 12557 # old Intel for x86_64, which still supported -KPIC. 12558 ecc*) 12559 lt_prog_compiler_wl='-Wl,' 12560 lt_prog_compiler_pic='-KPIC' 12561 lt_prog_compiler_static='-static' 12562 ;; 12563 *flang* | ftn | f18* | f95*) 12564 # Flang compiler. 12565 lt_prog_compiler_wl='-Wl,' 12566 lt_prog_compiler_pic='-fPIC' 12567 lt_prog_compiler_static='-static' 12568 ;; 12569 # icc used to be incompatible with GCC. 12570 # ICC 10 doesn't accept -KPIC any more. 12571 icc* | ifort*) 12572 lt_prog_compiler_wl='-Wl,' 12573 lt_prog_compiler_pic='-fPIC' 12574 lt_prog_compiler_static='-static' 12575 ;; 12576 # Lahey Fortran 8.1. 12577 lf95*) 12578 lt_prog_compiler_wl='-Wl,' 12579 lt_prog_compiler_pic='--shared' 12580 lt_prog_compiler_static='--static' 12581 ;; 12582 nagfor*) 12583 # NAG Fortran compiler 12584 lt_prog_compiler_wl='-Wl,-Wl,,' 12585 lt_prog_compiler_pic='-PIC' 12586 lt_prog_compiler_static='-Bstatic' 12587 ;; 12588 tcc*) 12589 # Fabrice Bellard et al's Tiny C Compiler 12590 lt_prog_compiler_wl='-Wl,' 12591 lt_prog_compiler_pic='-fPIC' 12592 lt_prog_compiler_static='-static' 12593 ;; 12594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12595 # Portland Group compilers (*not* the Pentium gcc compiler, 12596 # which looks to be a dead project) 12597 lt_prog_compiler_wl='-Wl,' 12598 lt_prog_compiler_pic='-fpic' 12599 lt_prog_compiler_static='-Bstatic' 12600 ;; 12601 ccc*) 12602 lt_prog_compiler_wl='-Wl,' 12603 # All Alpha code is PIC. 12604 lt_prog_compiler_static='-non_shared' 12605 ;; 12606 xl* | bgxl* | bgf* | mpixl*) 12607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12608 lt_prog_compiler_wl='-Wl,' 12609 lt_prog_compiler_pic='-qpic' 12610 lt_prog_compiler_static='-qstaticlink' 12611 ;; 12612 *) 12613 case `$CC -V 2>&1 | $SED 5q` in 12614 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12615 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12616 lt_prog_compiler_pic='-KPIC' 12617 lt_prog_compiler_static='-Bstatic' 12618 lt_prog_compiler_wl='' 12619 ;; 12620 *Sun\ F* | *Sun*Fortran*) 12621 lt_prog_compiler_pic='-KPIC' 12622 lt_prog_compiler_static='-Bstatic' 12623 lt_prog_compiler_wl='-Qoption ld ' 12624 ;; 12625 *Sun\ C*) 12626 # Sun C 5.9 12627 lt_prog_compiler_pic='-KPIC' 12628 lt_prog_compiler_static='-Bstatic' 12629 lt_prog_compiler_wl='-Wl,' 12630 ;; 12631 *Intel*\ [CF]*Compiler*) 12632 lt_prog_compiler_wl='-Wl,' 12633 lt_prog_compiler_pic='-fPIC' 12634 lt_prog_compiler_static='-static' 12635 ;; 12636 *Portland\ Group*) 12637 lt_prog_compiler_wl='-Wl,' 12638 lt_prog_compiler_pic='-fpic' 12639 lt_prog_compiler_static='-Bstatic' 12640 ;; 12641 esac 12642 ;; 12643 esac 12644 ;; 12645 12646 newsos6) 12647 lt_prog_compiler_pic='-KPIC' 12648 lt_prog_compiler_static='-Bstatic' 12649 ;; 12650 12651 *-mlibc) 12652 lt_prog_compiler_wl='-Wl,' 12653 lt_prog_compiler_pic='-fPIC' 12654 lt_prog_compiler_static='-static' 12655 ;; 12656 12657 *nto* | *qnx*) 12658 # QNX uses GNU C++, but need to define -shared option too, otherwise 12659 # it will coredump. 12660 lt_prog_compiler_pic='-fPIC -shared' 12661 ;; 12662 12663 osf3* | osf4* | osf5*) 12664 lt_prog_compiler_wl='-Wl,' 12665 # All OSF/1 code is PIC. 12666 lt_prog_compiler_static='-non_shared' 12667 ;; 12668 12669 rdos*) 12670 lt_prog_compiler_static='-non_shared' 12671 ;; 12672 12673 serenity*) 12674 ;; 12675 12676 solaris*) 12677 lt_prog_compiler_pic='-KPIC' 12678 lt_prog_compiler_static='-Bstatic' 12679 case $cc_basename in 12680 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12681 lt_prog_compiler_wl='-Qoption ld ';; 12682 *) 12683 lt_prog_compiler_wl='-Wl,';; 12684 esac 12685 ;; 12686 12687 sunos4*) 12688 lt_prog_compiler_wl='-Qoption ld ' 12689 lt_prog_compiler_pic='-PIC' 12690 lt_prog_compiler_static='-Bstatic' 12691 ;; 12692 12693 sysv4 | sysv4.2uw2* | sysv4.3*) 12694 lt_prog_compiler_wl='-Wl,' 12695 lt_prog_compiler_pic='-KPIC' 12696 lt_prog_compiler_static='-Bstatic' 12697 ;; 12698 12699 sysv4*MP*) 12700 if test -d /usr/nec; then 12701 lt_prog_compiler_pic='-Kconform_pic' 12702 lt_prog_compiler_static='-Bstatic' 12703 fi 12704 ;; 12705 12706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12707 lt_prog_compiler_wl='-Wl,' 12708 lt_prog_compiler_pic='-KPIC' 12709 lt_prog_compiler_static='-Bstatic' 12710 ;; 12711 12712 unicos*) 12713 lt_prog_compiler_wl='-Wl,' 12714 lt_prog_compiler_can_build_shared=no 12715 ;; 12716 12717 uts4*) 12718 lt_prog_compiler_pic='-pic' 12719 lt_prog_compiler_static='-Bstatic' 12720 ;; 12721 12722 *) 12723 lt_prog_compiler_can_build_shared=no 12724 ;; 12725 esac 12726 fi 12727 12728 case $host_os in 12729 # For platforms that do not support PIC, -DPIC is meaningless: 12730 *djgpp*) 12731 lt_prog_compiler_pic= 12732 ;; 12733 *) 12734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12735 ;; 12736 esac 12737 12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12739 printf %s "checking for $compiler option to produce PIC... " >&6; } 12740 if test ${lt_cv_prog_compiler_pic+y} 12741 then : 12742 printf %s "(cached) " >&6 12743 else case e in #( 12744 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12745 esac 12746 fi 12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12748 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12749 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12750 12751 # 12752 # Check to make sure the PIC flag actually works. 12753 # 12754 if test -n "$lt_prog_compiler_pic"; then 12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12756 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12757 if test ${lt_cv_prog_compiler_pic_works+y} 12758 then : 12759 printf %s "(cached) " >&6 12760 else case e in #( 12761 e) lt_cv_prog_compiler_pic_works=no 12762 ac_outfile=conftest.$ac_objext 12763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12765 # Insert the option either (1) after the last *FLAGS variable, or 12766 # (2) before a word containing "conftest.", or (3) at the end. 12767 # Note that $ac_compile itself does not contain backslashes and begins 12768 # with a dollar sign (not a hyphen), so the echo should work correctly. 12769 # The option is referenced via a variable to avoid confusing sed. 12770 lt_compile=`echo "$ac_compile" | $SED \ 12771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12773 -e 's:$: $lt_compiler_flag:'` 12774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12775 (eval "$lt_compile" 2>conftest.err) 12776 ac_status=$? 12777 cat conftest.err >&5 12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12779 if (exit $ac_status) && test -s "$ac_outfile"; then 12780 # The compiler can only warn and ignore the option if not recognized 12781 # So say no if there are warnings other than the usual output. 12782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12785 lt_cv_prog_compiler_pic_works=yes 12786 fi 12787 fi 12788 $RM conftest* 12789 ;; 12790 esac 12791 fi 12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12793 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12794 12795 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12796 case $lt_prog_compiler_pic in 12797 "" | " "*) ;; 12798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12799 esac 12800 else 12801 lt_prog_compiler_pic= 12802 lt_prog_compiler_can_build_shared=no 12803 fi 12804 12805 fi 12806 12807 12808 12809 12810 12811 # 12812 # Check to make sure the static flag actually works. 12813 # 12814 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12816 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12817 if test ${lt_cv_prog_compiler_static_works+y} 12818 then : 12819 printf %s "(cached) " >&6 12820 else case e in #( 12821 e) lt_cv_prog_compiler_static_works=no 12822 save_LDFLAGS=$LDFLAGS 12823 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12824 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12825 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12826 # The linker can only warn and ignore the option if not recognized 12827 # So say no if there are warnings 12828 if test -s conftest.err; then 12829 # Append any errors to the config.log. 12830 cat conftest.err 1>&5 12831 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12833 if diff conftest.exp conftest.er2 >/dev/null; then 12834 lt_cv_prog_compiler_static_works=yes 12835 fi 12836 else 12837 lt_cv_prog_compiler_static_works=yes 12838 fi 12839 fi 12840 $RM -r conftest* 12841 LDFLAGS=$save_LDFLAGS 12842 ;; 12843 esac 12844 fi 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12846 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12847 12848 if test yes = "$lt_cv_prog_compiler_static_works"; then 12849 : 12850 else 12851 lt_prog_compiler_static= 12852 fi 12853 12854 12855 12856 ='-fPIC' 12857 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12858 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' 12859 archive_cmds_need_lc=no 12860 no_undefined_flag= 12861 ;; 12862 12863 *) 12864 dynamic_linker=no 12865 ;; 12866 esac 12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12868 printf "%s\n" "$dynamic_linker" >&6; } 12869 test no = "$dynamic_linker" && can_build_shared=no 12870 12871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12872 if test yes = "$GCC"; then 12873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12874 fi 12875 12876 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12877 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12878 fi 12879 12880 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12881 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12882 fi 12883 12884 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12885 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12886 12887 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12888 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12889 12890 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12891 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12990 printf %s "checking how to hardcode library paths into programs... " >&6; } 12991 hardcode_action= 12992 if test -n "$hardcode_libdir_flag_spec" || 12993 test -n "$runpath_var" || 12994 test yes = "$hardcode_automatic"; then 12995 12996 # We can hardcode non-existent directories. 12997 if test no != "$hardcode_direct" && 12998 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12999 # have to relink, otherwise we might link with an installed library 13000 # when we should be linking with a yet-to-be-installed one 13001 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13002 test no != "$hardcode_minus_L"; then 13003 # Linking always hardcodes the temporary library directory. 13004 hardcode_action=relink 13005 else 13006 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13007 hardcode_action=immediate 13008 fi 13009 else 13010 # We cannot hardcode anything, or else we can only hardcode existing 13011 # directories. 13012 hardcode_action=unsupported 13013 fi 13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13015 printf "%s\n" "$hardcode_action" >&6; } 13016 13017 if test relink = "$hardcode_action" || 13018 test yes = "$inherit_rpath"; then 13019 # Fast installation is not supported 13020 enable_fast_install=no 13021 elif test yes = "$shlibpath_overrides_runpath" || 13022 test no = "$enable_shared"; then 13023 # Fast installation is not necessary 13024 enable_fast_install=needless 13025 fi 13026 13027 13028 13029 13030 13031 13032 if test yes != "$enable_dlopen"; then 13033 enable_dlopen=unknown 13034 enable_dlopen_self=unknown 13035 enable_dlopen_self_static=unknown 13036 else 13037 lt_cv_dlopen=no 13038 lt_cv_dlopen_libs= 13039 13040 case $host_os in 13041 beos*) 13042 lt_cv_dlopen=load_add_on 13043 lt_cv_dlopen_libs= 13044 lt_cv_dlopen_self=yes 13045 ;; 13046 13047 mingw* | windows* | pw32* | cegcc*) 13048 lt_cv_dlopen=LoadLibrary 13049 lt_cv_dlopen_libs= 13050 ;; 13051 13052 cygwin*) 13053 lt_cv_dlopen=dlopen 13054 lt_cv_dlopen_libs= 13055 ;; 13056 13057 darwin*) 13058 # if libdl is installed we need to link against it 13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13060 printf %s "checking for dlopen in -ldl... " >&6; } 13061 if test ${ac_cv_lib_dl_dlopen+y} 13062 then : 13063 printf %s "(cached) " >&6 13064 else case e in #( 13065 e) ac_check_lib_save_LIBS=$LIBS 13066 LIBS="-ldl $LIBS" 13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13068 /* end confdefs.h. */ 13069 13070 /* Override any GCC internal prototype to avoid an error. 13071 Use char because int might match the return type of a GCC 13072 builtin and then its argument prototype would still apply. 13073 The 'extern "C"' is for builds by C++ compilers; 13074 although this is not generally supported in C code supporting it here 13075 has little cost and some practical benefit (sr 110532). */ 13076 #ifdef __cplusplus 13077 extern "C" 13078 #endif 13079 char dlopen (void); 13080 int 13081 main (void) 13082 { 13083 return dlopen (); 13084 ; 13085 return 0; 13086 } 13087 _ACEOF 13088 if ac_fn_c_try_link "$LINENO" 13089 then : 13090 ac_cv_lib_dl_dlopen=yes 13091 else case e in #( 13092 e) ac_cv_lib_dl_dlopen=no ;; 13093 esac 13094 fi 13095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13096 conftest$ac_exeext conftest.$ac_ext 13097 LIBS=$ac_check_lib_save_LIBS ;; 13098 esac 13099 fi 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13101 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13102 if test "x$ac_cv_lib_dl_dlopen" = xyes 13103 then : 13104 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13105 else case e in #( 13106 e) 13107 lt_cv_dlopen=dyld 13108 lt_cv_dlopen_libs= 13109 lt_cv_dlopen_self=yes 13110 ;; 13111 esac 13112 fi 13113 13114 ;; 13115 13116 tpf*) 13117 # Don't try to run any link tests for TPF. We know it's impossible 13118 # because TPF is a cross-compiler, and we know how we open DSOs. 13119 lt_cv_dlopen=dlopen 13120 lt_cv_dlopen_libs= 13121 lt_cv_dlopen_self=no 13122 ;; 13123 13124 *) 13125 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13126 if test "x$ac_cv_func_shl_load" = xyes 13127 then : 13128 lt_cv_dlopen=shl_load 13129 else case e in #( 13130 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13131 printf %s "checking for shl_load in -ldld... " >&6; } 13132 if test ${ac_cv_lib_dld_shl_load+y} 13133 then : 13134 printf %s "(cached) " >&6 13135 else case e in #( 13136 e) ac_check_lib_save_LIBS=$LIBS 13137 LIBS="-ldld $LIBS" 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139 /* end confdefs.h. */ 13140 13141 /* Override any GCC internal prototype to avoid an error. 13142 Use char because int might match the return type of a GCC 13143 builtin and then its argument prototype would still apply. 13144 The 'extern "C"' is for builds by C++ compilers; 13145 although this is not generally supported in C code supporting it here 13146 has little cost and some practical benefit (sr 110532). */ 13147 #ifdef __cplusplus 13148 extern "C" 13149 #endif 13150 char shl_load (void); 13151 int 13152 main (void) 13153 { 13154 return shl_load (); 13155 ; 13156 return 0; 13157 } 13158 _ACEOF 13159 if ac_fn_c_try_link "$LINENO" 13160 then : 13161 ac_cv_lib_dld_shl_load=yes 13162 else case e in #( 13163 e) ac_cv_lib_dld_shl_load=no ;; 13164 esac 13165 fi 13166 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13167 conftest$ac_exeext conftest.$ac_ext 13168 LIBS=$ac_check_lib_save_LIBS ;; 13169 esac 13170 fi 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13172 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13173 if test "x$ac_cv_lib_dld_shl_load" = xyes 13174 then : 13175 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13176 else case e in #( 13177 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13178 if test "x$ac_cv_func_dlopen" = xyes 13179 then : 13180 lt_cv_dlopen=dlopen 13181 else case e in #( 13182 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13183 printf %s "checking for dlopen in -ldl... " >&6; } 13184 if test ${ac_cv_lib_dl_dlopen+y} 13185 then : 13186 printf %s "(cached) " >&6 13187 else case e in #( 13188 e) ac_check_lib_save_LIBS=$LIBS 13189 LIBS="-ldl $LIBS" 13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191 /* end confdefs.h. */ 13192 13193 /* Override any GCC internal prototype to avoid an error. 13194 Use char because int might match the return type of a GCC 13195 builtin and then its argument prototype would still apply. 13196 The 'extern "C"' is for builds by C++ compilers; 13197 although this is not generally supported in C code supporting it here 13198 has little cost and some practical benefit (sr 110532). */ 13199 #ifdef __cplusplus 13200 extern "C" 13201 #endif 13202 char dlopen (void); 13203 int 13204 main (void) 13205 { 13206 return dlopen (); 13207 ; 13208 return 0; 13209 } 13210 _ACEOF 13211 if ac_fn_c_try_link "$LINENO" 13212 then : 13213 ac_cv_lib_dl_dlopen=yes 13214 else case e in #( 13215 e) ac_cv_lib_dl_dlopen=no ;; 13216 esac 13217 fi 13218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13219 conftest$ac_exeext conftest.$ac_ext 13220 LIBS=$ac_check_lib_save_LIBS ;; 13221 esac 13222 fi 13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13224 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13225 if test "x$ac_cv_lib_dl_dlopen" = xyes 13226 then : 13227 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13228 else case e in #( 13229 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13230 printf %s "checking for dlopen in -lsvld... " >&6; } 13231 if test ${ac_cv_lib_svld_dlopen+y} 13232 then : 13233 printf %s "(cached) " >&6 13234 else case e in #( 13235 e) ac_check_lib_save_LIBS=$LIBS 13236 LIBS="-lsvld $LIBS" 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238 /* end confdefs.h. */ 13239 13240 /* Override any GCC internal prototype to avoid an error. 13241 Use char because int might match the return type of a GCC 13242 builtin and then its argument prototype would still apply. 13243 The 'extern "C"' is for builds by C++ compilers; 13244 although this is not generally supported in C code supporting it here 13245 has little cost and some practical benefit (sr 110532). */ 13246 #ifdef __cplusplus 13247 extern "C" 13248 #endif 13249 char dlopen (void); 13250 int 13251 main (void) 13252 { 13253 return dlopen (); 13254 ; 13255 return 0; 13256 } 13257 _ACEOF 13258 if ac_fn_c_try_link "$LINENO" 13259 then : 13260 ac_cv_lib_svld_dlopen=yes 13261 else case e in #( 13262 e) ac_cv_lib_svld_dlopen=no ;; 13263 esac 13264 fi 13265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13266 conftest$ac_exeext conftest.$ac_ext 13267 LIBS=$ac_check_lib_save_LIBS ;; 13268 esac 13269 fi 13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13271 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13272 if test "x$ac_cv_lib_svld_dlopen" = xyes 13273 then : 13274 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13275 else case e in #( 13276 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13277 printf %s "checking for dld_link in -ldld... " >&6; } 13278 if test ${ac_cv_lib_dld_dld_link+y} 13279 then : 13280 printf %s "(cached) " >&6 13281 else case e in #( 13282 e) ac_check_lib_save_LIBS=$LIBS 13283 LIBS="-ldld $LIBS" 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285 /* end confdefs.h. */ 13286 13287 /* Override any GCC internal prototype to avoid an error. 13288 Use char because int might match the return type of a GCC 13289 builtin and then its argument prototype would still apply. 13290 The 'extern "C"' is for builds by C++ compilers; 13291 although this is not generally supported in C code supporting it here 13292 has little cost and some practical benefit (sr 110532). */ 13293 #ifdef __cplusplus 13294 extern "C" 13295 #endif 13296 char dld_link (void); 13297 int 13298 main (void) 13299 { 13300 return dld_link (); 13301 ; 13302 return 0; 13303 } 13304 _ACEOF 13305 if ac_fn_c_try_link "$LINENO" 13306 then : 13307 ac_cv_lib_dld_dld_link=yes 13308 else case e in #( 13309 e) ac_cv_lib_dld_dld_link=no ;; 13310 esac 13311 fi 13312 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13313 conftest$ac_exeext conftest.$ac_ext 13314 LIBS=$ac_check_lib_save_LIBS ;; 13315 esac 13316 fi 13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13318 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13319 if test "x$ac_cv_lib_dld_dld_link" = xyes 13320 then : 13321 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13322 fi 13323 13324 ;; 13325 esac 13326 fi 13327 13328 ;; 13329 esac 13330 fi 13331 13332 ;; 13333 esac 13334 fi 13335 13336 ;; 13337 esac 13338 fi 13339 13340 ;; 13341 esac 13342 fi 13343 13344 ;; 13345 esac 13346 13347 if test no = "$lt_cv_dlopen"; then 13348 enable_dlopen=no 13349 else 13350 enable_dlopen=yes 13351 fi 13352 13353 case $lt_cv_dlopen in 13354 dlopen) 13355 save_CPPFLAGS=$CPPFLAGS 13356 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13357 13358 save_LDFLAGS=$LDFLAGS 13359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13360 13361 save_LIBS=$LIBS 13362 LIBS="$lt_cv_dlopen_libs $LIBS" 13363 13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13365 printf %s "checking whether a program can dlopen itself... " >&6; } 13366 if test ${lt_cv_dlopen_self+y} 13367 then : 13368 printf %s "(cached) " >&6 13369 else case e in #( 13370 e) if test yes = "$cross_compiling"; then : 13371 lt_cv_dlopen_self=cross 13372 else 13373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13374 lt_status=$lt_dlunknown 13375 cat > conftest.$ac_ext <<_LT_EOF 13376 #line $LINENO "configure" 13377 #include "confdefs.h" 13378 13379 #if HAVE_DLFCN_H 13380 #include <dlfcn.h> 13381 #endif 13382 13383 #include <stdio.h> 13384 13385 #ifdef RTLD_GLOBAL 13386 # define LT_DLGLOBAL RTLD_GLOBAL 13387 #else 13388 # ifdef DL_GLOBAL 13389 # define LT_DLGLOBAL DL_GLOBAL 13390 # else 13391 # define LT_DLGLOBAL 0 13392 # endif 13393 #endif 13394 13395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13396 find out it does not work in some platform. */ 13397 #ifndef LT_DLLAZY_OR_NOW 13398 # ifdef RTLD_LAZY 13399 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13400 # else 13401 # ifdef DL_LAZY 13402 # define LT_DLLAZY_OR_NOW DL_LAZY 13403 # else 13404 # ifdef RTLD_NOW 13405 # define LT_DLLAZY_OR_NOW RTLD_NOW 13406 # else 13407 # ifdef DL_NOW 13408 # define LT_DLLAZY_OR_NOW DL_NOW 13409 # else 13410 # define LT_DLLAZY_OR_NOW 0 13411 # endif 13412 # endif 13413 # endif 13414 # endif 13415 #endif 13416 13417 /* When -fvisibility=hidden is used, assume the code has been annotated 13418 correspondingly for the symbols needed. */ 13419 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13420 int fnord (void) __attribute__((visibility("default"))); 13421 #endif 13422 13423 int fnord (void) { return 42; } 13424 int main (void) 13425 { 13426 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13427 int status = $lt_dlunknown; 13428 13429 if (self) 13430 { 13431 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13432 else 13433 { 13434 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13435 else puts (dlerror ()); 13436 } 13437 /* dlclose (self); */ 13438 } 13439 else 13440 puts (dlerror ()); 13441 13442 return status; 13443 } 13444 _LT_EOF 13445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13446 (eval $ac_link) 2>&5 13447 ac_status=$? 13448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13449 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13450 (./conftest; exit; ) >&5 2>/dev/null 13451 lt_status=$? 13452 case x$lt_status in 13453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13456 esac 13457 else : 13458 # compilation failed 13459 lt_cv_dlopen_self=no 13460 fi 13461 fi 13462 rm -fr conftest* 13463 13464 ;; 13465 esac 13466 fi 13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13468 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13469 13470 if test yes = "$lt_cv_dlopen_self"; then 13471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13473 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13474 if test ${lt_cv_dlopen_self_static+y} 13475 then : 13476 printf %s "(cached) " >&6 13477 else case e in #( 13478 e) if test yes = "$cross_compiling"; then : 13479 lt_cv_dlopen_self_static=cross 13480 else 13481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13482 lt_status=$lt_dlunknown 13483 cat > conftest.$ac_ext <<_LT_EOF 13484 #line $LINENO "configure" 13485 #include "confdefs.h" 13486 13487 #if HAVE_DLFCN_H 13488 #include <dlfcn.h> 13489 #endif 13490 13491 #include <stdio.h> 13492 13493 #ifdef RTLD_GLOBAL 13494 # define LT_DLGLOBAL RTLD_GLOBAL 13495 #else 13496 # ifdef DL_GLOBAL 13497 # define LT_DLGLOBAL DL_GLOBAL 13498 # else 13499 # define LT_DLGLOBAL 0 13500 # endif 13501 #endif 13502 13503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13504 find out it does not work in some platform. */ 13505 #ifndef LT_DLLAZY_OR_NOW 13506 # ifdef RTLD_LAZY 13507 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13508 # else 13509 # ifdef DL_LAZY 13510 # define LT_DLLAZY_OR_NOW DL_LAZY 13511 # else 13512 # ifdef RTLD_NOW 13513 # define LT_DLLAZY_OR_NOW RTLD_NOW 13514 # else 13515 # ifdef DL_NOW 13516 # define LT_DLLAZY_OR_NOW DL_NOW 13517 # else 13518 # define LT_DLLAZY_OR_NOW 0 13519 # endif 13520 # endif 13521 # endif 13522 # endif 13523 #endif 13524 13525 /* When -fvisibility=hidden is used, assume the code has been annotated 13526 correspondingly for the symbols needed. */ 13527 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13528 int fnord (void) __attribute__((visibility("default"))); 13529 #endif 13530 13531 int fnord (void) { return 42; } 13532 int main (void) 13533 { 13534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13535 int status = $lt_dlunknown; 13536 13537 if (self) 13538 { 13539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13540 else 13541 { 13542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13543 else puts (dlerror ()); 13544 } 13545 /* dlclose (self); */ 13546 } 13547 else 13548 puts (dlerror ()); 13549 13550 return status; 13551 } 13552 _LT_EOF 13553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13554 (eval $ac_link) 2>&5 13555 ac_status=$? 13556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13557 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13558 (./conftest; exit; ) >&5 2>/dev/null 13559 lt_status=$? 13560 case x$lt_status in 13561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13564 esac 13565 else : 13566 # compilation failed 13567 lt_cv_dlopen_self_static=no 13568 fi 13569 fi 13570 rm -fr conftest* 13571 13572 ;; 13573 esac 13574 fi 13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13576 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13577 fi 13578 13579 CPPFLAGS=$save_CPPFLAGS 13580 LDFLAGS=$save_LDFLAGS 13581 LIBS=$save_LIBS 13582 ;; 13583 esac 13584 13585 case $lt_cv_dlopen_self in 13586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13587 *) enable_dlopen_self=unknown ;; 13588 esac 13589 13590 case $lt_cv_dlopen_self_static in 13591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13592 *) enable_dlopen_self_static=unknown ;; 13593 esac 13594 fi 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 striplib= 13613 old_striplib= 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13615 printf %s "checking whether stripping libraries is possible... " >&6; } 13616 if test -z "$STRIP"; then 13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618 printf "%s\n" "no" >&6; } 13619 else 13620 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13621 old_striplib="$STRIP --strip-debug" 13622 striplib="$STRIP --strip-unneeded" 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13624 printf "%s\n" "yes" >&6; } 13625 else 13626 case $host_os in 13627 darwin*) 13628 # FIXME - insert some real tests, host_os isn't really good enough 13629 striplib="$STRIP -x" 13630 old_striplib="$STRIP -S" 13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13632 printf "%s\n" "yes" >&6; } 13633 ;; 13634 freebsd*) 13635 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13636 old_striplib="$STRIP --strip-debug" 13637 striplib="$STRIP --strip-unneeded" 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13639 printf "%s\n" "yes" >&6; } 13640 else 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642 printf "%s\n" "no" >&6; } 13643 fi 13644 ;; 13645 *) 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647 printf "%s\n" "no" >&6; } 13648 ;; 13649 esac 13650 fi 13651 fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 # Report what library types will actually be built 13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13666 printf %s "checking if libtool supports shared libraries... " >&6; } 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13668 printf "%s\n" "$can_build_shared" >&6; } 13669 13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13671 printf %s "checking whether to build shared libraries... " >&6; } 13672 test no = "$can_build_shared" && enable_shared=no 13673 13674 # On AIX, shared libraries and static libraries use the same namespace, and 13675 # are all built from PIC. 13676 case $host_os in 13677 aix3*) 13678 test yes = "$enable_shared" && enable_static=no 13679 if test -n "$RANLIB"; then 13680 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13681 postinstall_cmds='$RANLIB $lib' 13682 fi 13683 ;; 13684 13685 aix[4-9]*) 13686 if test ia64 != "$host_cpu"; then 13687 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13688 yes,aix,yes) ;; # shared object as lib.so file only 13689 yes,svr4,*) ;; # shared object as lib.so archive member only 13690 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13691 esac 13692 fi 13693 ;; 13694 esac 13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13696 printf "%s\n" "$enable_shared" >&6; } 13697 13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13699 printf %s "checking whether to build static libraries... " >&6; } 13700 # Make sure either enable_shared or enable_static is yes. 13701 test yes = "$enable_shared" || enable_static=yes 13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13703 printf "%s\n" "$enable_static" >&6; } 13704 13705 13706 13707 13708 fi 13709 ac_ext=c 13710 ac_cpp='$CPP $CPPFLAGS' 13711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13713 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13714 13715 CC=$lt_save_CC 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 ac_config_commands="$ac_config_commands libtool" 13732 13733 13734 13735 13736 # Only expand once: 13737 13738 13739 13740 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13753 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13754 if test ${ac_cv_c_undeclared_builtin_options+y} 13755 then : 13756 printf %s "(cached) " >&6 13757 else case e in #( 13758 e) ac_save_CFLAGS=$CFLAGS 13759 ac_cv_c_undeclared_builtin_options='cannot detect' 13760 for ac_arg in '' -fno-builtin; do 13761 CFLAGS="$ac_save_CFLAGS $ac_arg" 13762 # This test program should *not* compile successfully. 13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13764 /* end confdefs.h. */ 13765 13766 int 13767 main (void) 13768 { 13769 (void) strchr; 13770 ; 13771 return 0; 13772 } 13773 _ACEOF 13774 if ac_fn_c_try_compile "$LINENO" 13775 then : 13776 13777 else case e in #( 13778 e) # This test program should compile successfully. 13779 # No library function is consistently available on 13780 # freestanding implementations, so test against a dummy 13781 # declaration. Include always-available headers on the 13782 # off chance that they somehow elicit warnings. 13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784 /* end confdefs.h. */ 13785 #include <float.h> 13786 #include <limits.h> 13787 #include <stdarg.h> 13788 #include <stddef.h> 13789 extern void ac_decl (int, char *); 13790 13791 int 13792 main (void) 13793 { 13794 (void) ac_decl (0, (char *) 0); 13795 (void) ac_decl; 13796 13797 ; 13798 return 0; 13799 } 13800 _ACEOF 13801 if ac_fn_c_try_compile "$LINENO" 13802 then : 13803 if test x"$ac_arg" = x 13804 then : 13805 ac_cv_c_undeclared_builtin_options='none needed' 13806 else case e in #( 13807 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13808 esac 13809 fi 13810 break 13811 fi 13812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13813 esac 13814 fi 13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13816 done 13817 CFLAGS=$ac_save_CFLAGS 13818 ;; 13819 esac 13820 fi 13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13822 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13823 case $ac_cv_c_undeclared_builtin_options in #( 13824 'cannot detect') : 13825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13826 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13827 as_fn_error $? "cannot make $CC report undeclared builtins 13828 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13829 'none needed') : 13830 ac_c_undeclared_builtin_options='' ;; #( 13831 *) : 13832 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13833 esac 13834 13835 13836 13837 13838 13839 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13840 if test "x$ac_cv_have_decl___clang__" = xyes 13841 then : 13842 CLANGCC="yes" 13843 else case e in #( 13844 e) CLANGCC="no" ;; 13845 esac 13846 fi 13847 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13848 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13849 then : 13850 INTELCC="yes" 13851 else case e in #( 13852 e) INTELCC="no" ;; 13853 esac 13854 fi 13855 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13856 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13857 then : 13858 SUNCC="yes" 13859 else case e in #( 13860 e) SUNCC="no" ;; 13861 esac 13862 fi 13863 13864 13865 13866 13867 13868 13869 13870 13871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13872 if test -n "$ac_tool_prefix"; then 13873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13874 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13876 printf %s "checking for $ac_word... " >&6; } 13877 if test ${ac_cv_path_PKG_CONFIG+y} 13878 then : 13879 printf %s "(cached) " >&6 13880 else case e in #( 13881 e) case $PKG_CONFIG in 13882 [\\/]* | ?:[\\/]*) 13883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13884 ;; 13885 *) 13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13887 for as_dir in $PATH 13888 do 13889 IFS=$as_save_IFS 13890 case $as_dir in #((( 13891 '') as_dir=./ ;; 13892 */) ;; 13893 *) as_dir=$as_dir/ ;; 13894 esac 13895 for ac_exec_ext in '' $ac_executable_extensions; do 13896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13897 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13899 break 2 13900 fi 13901 done 13902 done 13903 IFS=$as_save_IFS 13904 13905 ;; 13906 esac ;; 13907 esac 13908 fi 13909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13910 if test -n "$PKG_CONFIG"; then 13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13912 printf "%s\n" "$PKG_CONFIG" >&6; } 13913 else 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13915 printf "%s\n" "no" >&6; } 13916 fi 13917 13918 13919 fi 13920 if test -z "$ac_cv_path_PKG_CONFIG"; then 13921 ac_pt_PKG_CONFIG=$PKG_CONFIG 13922 # Extract the first word of "pkg-config", so it can be a program name with args. 13923 set dummy pkg-config; ac_word=$2 13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13925 printf %s "checking for $ac_word... " >&6; } 13926 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13927 then : 13928 printf %s "(cached) " >&6 13929 else case e in #( 13930 e) case $ac_pt_PKG_CONFIG in 13931 [\\/]* | ?:[\\/]*) 13932 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13933 ;; 13934 *) 13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13936 for as_dir in $PATH 13937 do 13938 IFS=$as_save_IFS 13939 case $as_dir in #((( 13940 '') as_dir=./ ;; 13941 */) ;; 13942 *) as_dir=$as_dir/ ;; 13943 esac 13944 for ac_exec_ext in '' $ac_executable_extensions; do 13945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13946 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13948 break 2 13949 fi 13950 done 13951 done 13952 IFS=$as_save_IFS 13953 13954 ;; 13955 esac ;; 13956 esac 13957 fi 13958 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13959 if test -n "$ac_pt_PKG_CONFIG"; then 13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13961 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13962 else 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13964 printf "%s\n" "no" >&6; } 13965 fi 13966 13967 if test "x$ac_pt_PKG_CONFIG" = x; then 13968 PKG_CONFIG="" 13969 else 13970 case $cross_compiling:$ac_tool_warned in 13971 yes:) 13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13973 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13974 ac_tool_warned=yes ;; 13975 esac 13976 PKG_CONFIG=$ac_pt_PKG_CONFIG 13977 fi 13978 else 13979 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13980 fi 13981 13982 fi 13983 if test -n "$PKG_CONFIG"; then 13984 _pkg_min_version=0.9.0 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13986 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13987 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13989 printf "%s\n" "yes" >&6; } 13990 else 13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13992 printf "%s\n" "no" >&6; } 13993 PKG_CONFIG="" 13994 fi 13995 fi 13996 13997 13998 13999 14000 14001 # Check whether --enable-selective-werror was given. 14002 if test ${enable_selective_werror+y} 14003 then : 14004 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14005 else case e in #( 14006 e) SELECTIVE_WERROR=yes ;; 14007 esac 14008 fi 14009 14010 14011 14012 14013 14014 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14015 if test "x$SUNCC" = "xyes"; then 14016 BASE_CFLAGS="-v" 14017 else 14018 BASE_CFLAGS="" 14019 fi 14020 14021 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 xorg_testset_save_CFLAGS="$CFLAGS" 14036 14037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14041 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14042 then : 14043 printf %s "(cached) " >&6 14044 else case e in #( 14045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14046 /* end confdefs.h. */ 14047 int i; 14048 _ACEOF 14049 if ac_fn_c_try_compile "$LINENO" 14050 then : 14051 xorg_cv_cc_flag_unknown_warning_option=yes 14052 else case e in #( 14053 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14054 esac 14055 fi 14056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14057 esac 14058 fi 14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14062 CFLAGS="$xorg_testset_save_CFLAGS" 14063 fi 14064 14065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14068 fi 14069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14073 then : 14074 printf %s "(cached) " >&6 14075 else case e in #( 14076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14077 /* end confdefs.h. */ 14078 int i; 14079 _ACEOF 14080 if ac_fn_c_try_compile "$LINENO" 14081 then : 14082 xorg_cv_cc_flag_unused_command_line_argument=yes 14083 else case e in #( 14084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14085 esac 14086 fi 14087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14088 esac 14089 fi 14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14093 CFLAGS="$xorg_testset_save_CFLAGS" 14094 fi 14095 14096 found="no" 14097 14098 if test $found = "no" ; then 14099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14101 fi 14102 14103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14105 fi 14106 14107 CFLAGS="$CFLAGS -Wall" 14108 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14110 printf %s "checking if $CC supports -Wall... " >&6; } 14111 cacheid=xorg_cv_cc_flag__Wall 14112 if eval test \${$cacheid+y} 14113 then : 14114 printf %s "(cached) " >&6 14115 else case e in #( 14116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117 /* end confdefs.h. */ 14118 int i; 14119 int 14120 main (void) 14121 { 14122 14123 ; 14124 return 0; 14125 } 14126 _ACEOF 14127 if ac_fn_c_try_link "$LINENO" 14128 then : 14129 eval $cacheid=yes 14130 else case e in #( 14131 e) eval $cacheid=no ;; 14132 esac 14133 fi 14134 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14135 conftest$ac_exeext conftest.$ac_ext ;; 14136 esac 14137 fi 14138 14139 14140 CFLAGS="$xorg_testset_save_CFLAGS" 14141 14142 eval supported=\$$cacheid 14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14144 printf "%s\n" "$supported" >&6; } 14145 if test "$supported" = "yes" ; then 14146 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14147 found="yes" 14148 fi 14149 fi 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 xorg_testset_save_CFLAGS="$CFLAGS" 14166 14167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14171 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14172 then : 14173 printf %s "(cached) " >&6 14174 else case e in #( 14175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14176 /* end confdefs.h. */ 14177 int i; 14178 _ACEOF 14179 if ac_fn_c_try_compile "$LINENO" 14180 then : 14181 xorg_cv_cc_flag_unknown_warning_option=yes 14182 else case e in #( 14183 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14184 esac 14185 fi 14186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14187 esac 14188 fi 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14192 CFLAGS="$xorg_testset_save_CFLAGS" 14193 fi 14194 14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14198 fi 14199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14203 then : 14204 printf %s "(cached) " >&6 14205 else case e in #( 14206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14207 /* end confdefs.h. */ 14208 int i; 14209 _ACEOF 14210 if ac_fn_c_try_compile "$LINENO" 14211 then : 14212 xorg_cv_cc_flag_unused_command_line_argument=yes 14213 else case e in #( 14214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14215 esac 14216 fi 14217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14218 esac 14219 fi 14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224 fi 14225 14226 found="no" 14227 14228 if test $found = "no" ; then 14229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14231 fi 14232 14233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14235 fi 14236 14237 CFLAGS="$CFLAGS -Wpointer-arith" 14238 14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14240 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14241 cacheid=xorg_cv_cc_flag__Wpointer_arith 14242 if eval test \${$cacheid+y} 14243 then : 14244 printf %s "(cached) " >&6 14245 else case e in #( 14246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14247 /* end confdefs.h. */ 14248 int i; 14249 int 14250 main (void) 14251 { 14252 14253 ; 14254 return 0; 14255 } 14256 _ACEOF 14257 if ac_fn_c_try_link "$LINENO" 14258 then : 14259 eval $cacheid=yes 14260 else case e in #( 14261 e) eval $cacheid=no ;; 14262 esac 14263 fi 14264 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14265 conftest$ac_exeext conftest.$ac_ext ;; 14266 esac 14267 fi 14268 14269 14270 CFLAGS="$xorg_testset_save_CFLAGS" 14271 14272 eval supported=\$$cacheid 14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14274 printf "%s\n" "$supported" >&6; } 14275 if test "$supported" = "yes" ; then 14276 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14277 found="yes" 14278 fi 14279 fi 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 xorg_testset_save_CFLAGS="$CFLAGS" 14296 14297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14301 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14302 then : 14303 printf %s "(cached) " >&6 14304 else case e in #( 14305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306 /* end confdefs.h. */ 14307 int i; 14308 _ACEOF 14309 if ac_fn_c_try_compile "$LINENO" 14310 then : 14311 xorg_cv_cc_flag_unknown_warning_option=yes 14312 else case e in #( 14313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14314 esac 14315 fi 14316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14317 esac 14318 fi 14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14322 CFLAGS="$xorg_testset_save_CFLAGS" 14323 fi 14324 14325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 fi 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14333 then : 14334 printf %s "(cached) " >&6 14335 else case e in #( 14336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337 /* end confdefs.h. */ 14338 int i; 14339 _ACEOF 14340 if ac_fn_c_try_compile "$LINENO" 14341 then : 14342 xorg_cv_cc_flag_unused_command_line_argument=yes 14343 else case e in #( 14344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14345 esac 14346 fi 14347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14348 esac 14349 fi 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14353 CFLAGS="$xorg_testset_save_CFLAGS" 14354 fi 14355 14356 found="no" 14357 14358 if test $found = "no" ; then 14359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14361 fi 14362 14363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14365 fi 14366 14367 CFLAGS="$CFLAGS -Wmissing-declarations" 14368 14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14370 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14371 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14372 if eval test \${$cacheid+y} 14373 then : 14374 printf %s "(cached) " >&6 14375 else case e in #( 14376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377 /* end confdefs.h. */ 14378 int i; 14379 int 14380 main (void) 14381 { 14382 14383 ; 14384 return 0; 14385 } 14386 _ACEOF 14387 if ac_fn_c_try_link "$LINENO" 14388 then : 14389 eval $cacheid=yes 14390 else case e in #( 14391 e) eval $cacheid=no ;; 14392 esac 14393 fi 14394 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14395 conftest$ac_exeext conftest.$ac_ext ;; 14396 esac 14397 fi 14398 14399 14400 CFLAGS="$xorg_testset_save_CFLAGS" 14401 14402 eval supported=\$$cacheid 14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14404 printf "%s\n" "$supported" >&6; } 14405 if test "$supported" = "yes" ; then 14406 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14407 found="yes" 14408 fi 14409 fi 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 xorg_testset_save_CFLAGS="$CFLAGS" 14426 14427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14431 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14432 then : 14433 printf %s "(cached) " >&6 14434 else case e in #( 14435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14436 /* end confdefs.h. */ 14437 int i; 14438 _ACEOF 14439 if ac_fn_c_try_compile "$LINENO" 14440 then : 14441 xorg_cv_cc_flag_unknown_warning_option=yes 14442 else case e in #( 14443 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14444 esac 14445 fi 14446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14447 esac 14448 fi 14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14452 CFLAGS="$xorg_testset_save_CFLAGS" 14453 fi 14454 14455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 fi 14459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14463 then : 14464 printf %s "(cached) " >&6 14465 else case e in #( 14466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14467 /* end confdefs.h. */ 14468 int i; 14469 _ACEOF 14470 if ac_fn_c_try_compile "$LINENO" 14471 then : 14472 xorg_cv_cc_flag_unused_command_line_argument=yes 14473 else case e in #( 14474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14475 esac 14476 fi 14477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14478 esac 14479 fi 14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14483 CFLAGS="$xorg_testset_save_CFLAGS" 14484 fi 14485 14486 found="no" 14487 14488 if test $found = "no" ; then 14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14491 fi 14492 14493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14495 fi 14496 14497 CFLAGS="$CFLAGS -Wformat=2" 14498 14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14500 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14501 cacheid=xorg_cv_cc_flag__Wformat_2 14502 if eval test \${$cacheid+y} 14503 then : 14504 printf %s "(cached) " >&6 14505 else case e in #( 14506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507 /* end confdefs.h. */ 14508 int i; 14509 int 14510 main (void) 14511 { 14512 14513 ; 14514 return 0; 14515 } 14516 _ACEOF 14517 if ac_fn_c_try_link "$LINENO" 14518 then : 14519 eval $cacheid=yes 14520 else case e in #( 14521 e) eval $cacheid=no ;; 14522 esac 14523 fi 14524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14525 conftest$ac_exeext conftest.$ac_ext ;; 14526 esac 14527 fi 14528 14529 14530 CFLAGS="$xorg_testset_save_CFLAGS" 14531 14532 eval supported=\$$cacheid 14533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14534 printf "%s\n" "$supported" >&6; } 14535 if test "$supported" = "yes" ; then 14536 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14537 found="yes" 14538 fi 14539 fi 14540 14541 if test $found = "no" ; then 14542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14544 fi 14545 14546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14548 fi 14549 14550 CFLAGS="$CFLAGS -Wformat" 14551 14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14553 printf %s "checking if $CC supports -Wformat... " >&6; } 14554 cacheid=xorg_cv_cc_flag__Wformat 14555 if eval test \${$cacheid+y} 14556 then : 14557 printf %s "(cached) " >&6 14558 else case e in #( 14559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14560 /* end confdefs.h. */ 14561 int i; 14562 int 14563 main (void) 14564 { 14565 14566 ; 14567 return 0; 14568 } 14569 _ACEOF 14570 if ac_fn_c_try_link "$LINENO" 14571 then : 14572 eval $cacheid=yes 14573 else case e in #( 14574 e) eval $cacheid=no ;; 14575 esac 14576 fi 14577 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14578 conftest$ac_exeext conftest.$ac_ext ;; 14579 esac 14580 fi 14581 14582 14583 CFLAGS="$xorg_testset_save_CFLAGS" 14584 14585 eval supported=\$$cacheid 14586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14587 printf "%s\n" "$supported" >&6; } 14588 if test "$supported" = "yes" ; then 14589 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14590 found="yes" 14591 fi 14592 fi 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 xorg_testset_save_CFLAGS="$CFLAGS" 14611 14612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14616 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14617 then : 14618 printf %s "(cached) " >&6 14619 else case e in #( 14620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14621 /* end confdefs.h. */ 14622 int i; 14623 _ACEOF 14624 if ac_fn_c_try_compile "$LINENO" 14625 then : 14626 xorg_cv_cc_flag_unknown_warning_option=yes 14627 else case e in #( 14628 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14629 esac 14630 fi 14631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14632 esac 14633 fi 14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14637 CFLAGS="$xorg_testset_save_CFLAGS" 14638 fi 14639 14640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14643 fi 14644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14648 then : 14649 printf %s "(cached) " >&6 14650 else case e in #( 14651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652 /* end confdefs.h. */ 14653 int i; 14654 _ACEOF 14655 if ac_fn_c_try_compile "$LINENO" 14656 then : 14657 xorg_cv_cc_flag_unused_command_line_argument=yes 14658 else case e in #( 14659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14660 esac 14661 fi 14662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14663 esac 14664 fi 14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14668 CFLAGS="$xorg_testset_save_CFLAGS" 14669 fi 14670 14671 found="no" 14672 14673 if test $found = "no" ; then 14674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14676 fi 14677 14678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14680 fi 14681 14682 CFLAGS="$CFLAGS -Wstrict-prototypes" 14683 14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14685 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14686 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14687 if eval test \${$cacheid+y} 14688 then : 14689 printf %s "(cached) " >&6 14690 else case e in #( 14691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692 /* end confdefs.h. */ 14693 int i; 14694 int 14695 main (void) 14696 { 14697 14698 ; 14699 return 0; 14700 } 14701 _ACEOF 14702 if ac_fn_c_try_link "$LINENO" 14703 then : 14704 eval $cacheid=yes 14705 else case e in #( 14706 e) eval $cacheid=no ;; 14707 esac 14708 fi 14709 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14710 conftest$ac_exeext conftest.$ac_ext ;; 14711 esac 14712 fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719 printf "%s\n" "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14722 found="yes" 14723 fi 14724 fi 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 xorg_testset_save_CFLAGS="$CFLAGS" 14741 14742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14746 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14747 then : 14748 printf %s "(cached) " >&6 14749 else case e in #( 14750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751 /* end confdefs.h. */ 14752 int i; 14753 _ACEOF 14754 if ac_fn_c_try_compile "$LINENO" 14755 then : 14756 xorg_cv_cc_flag_unknown_warning_option=yes 14757 else case e in #( 14758 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14759 esac 14760 fi 14761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14762 esac 14763 fi 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14767 CFLAGS="$xorg_testset_save_CFLAGS" 14768 fi 14769 14770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14773 fi 14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14778 then : 14779 printf %s "(cached) " >&6 14780 else case e in #( 14781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14782 /* end confdefs.h. */ 14783 int i; 14784 _ACEOF 14785 if ac_fn_c_try_compile "$LINENO" 14786 then : 14787 xorg_cv_cc_flag_unused_command_line_argument=yes 14788 else case e in #( 14789 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14790 esac 14791 fi 14792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14793 esac 14794 fi 14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14798 CFLAGS="$xorg_testset_save_CFLAGS" 14799 fi 14800 14801 found="no" 14802 14803 if test $found = "no" ; then 14804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14806 fi 14807 14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14810 fi 14811 14812 CFLAGS="$CFLAGS -Wmissing-prototypes" 14813 14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14815 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14816 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14817 if eval test \${$cacheid+y} 14818 then : 14819 printf %s "(cached) " >&6 14820 else case e in #( 14821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14822 /* end confdefs.h. */ 14823 int i; 14824 int 14825 main (void) 14826 { 14827 14828 ; 14829 return 0; 14830 } 14831 _ACEOF 14832 if ac_fn_c_try_link "$LINENO" 14833 then : 14834 eval $cacheid=yes 14835 else case e in #( 14836 e) eval $cacheid=no ;; 14837 esac 14838 fi 14839 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14840 conftest$ac_exeext conftest.$ac_ext ;; 14841 esac 14842 fi 14843 14844 14845 CFLAGS="$xorg_testset_save_CFLAGS" 14846 14847 eval supported=\$$cacheid 14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14849 printf "%s\n" "$supported" >&6; } 14850 if test "$supported" = "yes" ; then 14851 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14852 found="yes" 14853 fi 14854 fi 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 xorg_testset_save_CFLAGS="$CFLAGS" 14871 14872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14875 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14876 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14877 then : 14878 printf %s "(cached) " >&6 14879 else case e in #( 14880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881 /* end confdefs.h. */ 14882 int i; 14883 _ACEOF 14884 if ac_fn_c_try_compile "$LINENO" 14885 then : 14886 xorg_cv_cc_flag_unknown_warning_option=yes 14887 else case e in #( 14888 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14889 esac 14890 fi 14891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14892 esac 14893 fi 14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14897 CFLAGS="$xorg_testset_save_CFLAGS" 14898 fi 14899 14900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14903 fi 14904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14908 then : 14909 printf %s "(cached) " >&6 14910 else case e in #( 14911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912 /* end confdefs.h. */ 14913 int i; 14914 _ACEOF 14915 if ac_fn_c_try_compile "$LINENO" 14916 then : 14917 xorg_cv_cc_flag_unused_command_line_argument=yes 14918 else case e in #( 14919 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14920 esac 14921 fi 14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14923 esac 14924 fi 14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14928 CFLAGS="$xorg_testset_save_CFLAGS" 14929 fi 14930 14931 found="no" 14932 14933 if test $found = "no" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 14938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14940 fi 14941 14942 CFLAGS="$CFLAGS -Wnested-externs" 14943 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14945 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14946 cacheid=xorg_cv_cc_flag__Wnested_externs 14947 if eval test \${$cacheid+y} 14948 then : 14949 printf %s "(cached) " >&6 14950 else case e in #( 14951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14952 /* end confdefs.h. */ 14953 int i; 14954 int 14955 main (void) 14956 { 14957 14958 ; 14959 return 0; 14960 } 14961 _ACEOF 14962 if ac_fn_c_try_link "$LINENO" 14963 then : 14964 eval $cacheid=yes 14965 else case e in #( 14966 e) eval $cacheid=no ;; 14967 esac 14968 fi 14969 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14970 conftest$ac_exeext conftest.$ac_ext ;; 14971 esac 14972 fi 14973 14974 14975 CFLAGS="$xorg_testset_save_CFLAGS" 14976 14977 eval supported=\$$cacheid 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14979 printf "%s\n" "$supported" >&6; } 14980 if test "$supported" = "yes" ; then 14981 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14982 found="yes" 14983 fi 14984 fi 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 xorg_testset_save_CFLAGS="$CFLAGS" 15001 15002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15006 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15007 then : 15008 printf %s "(cached) " >&6 15009 else case e in #( 15010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15011 /* end confdefs.h. */ 15012 int i; 15013 _ACEOF 15014 if ac_fn_c_try_compile "$LINENO" 15015 then : 15016 xorg_cv_cc_flag_unknown_warning_option=yes 15017 else case e in #( 15018 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15019 esac 15020 fi 15021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15022 esac 15023 fi 15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15027 CFLAGS="$xorg_testset_save_CFLAGS" 15028 fi 15029 15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15033 fi 15034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15038 then : 15039 printf %s "(cached) " >&6 15040 else case e in #( 15041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042 /* end confdefs.h. */ 15043 int i; 15044 _ACEOF 15045 if ac_fn_c_try_compile "$LINENO" 15046 then : 15047 xorg_cv_cc_flag_unused_command_line_argument=yes 15048 else case e in #( 15049 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15050 esac 15051 fi 15052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15053 esac 15054 fi 15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15058 CFLAGS="$xorg_testset_save_CFLAGS" 15059 fi 15060 15061 found="no" 15062 15063 if test $found = "no" ; then 15064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15066 fi 15067 15068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15070 fi 15071 15072 CFLAGS="$CFLAGS -Wbad-function-cast" 15073 15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15075 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15076 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15077 if eval test \${$cacheid+y} 15078 then : 15079 printf %s "(cached) " >&6 15080 else case e in #( 15081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15082 /* end confdefs.h. */ 15083 int i; 15084 int 15085 main (void) 15086 { 15087 15088 ; 15089 return 0; 15090 } 15091 _ACEOF 15092 if ac_fn_c_try_link "$LINENO" 15093 then : 15094 eval $cacheid=yes 15095 else case e in #( 15096 e) eval $cacheid=no ;; 15097 esac 15098 fi 15099 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15100 conftest$ac_exeext conftest.$ac_ext ;; 15101 esac 15102 fi 15103 15104 15105 CFLAGS="$xorg_testset_save_CFLAGS" 15106 15107 eval supported=\$$cacheid 15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15109 printf "%s\n" "$supported" >&6; } 15110 if test "$supported" = "yes" ; then 15111 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15112 found="yes" 15113 fi 15114 fi 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 xorg_testset_save_CFLAGS="$CFLAGS" 15131 15132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15136 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15137 then : 15138 printf %s "(cached) " >&6 15139 else case e in #( 15140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141 /* end confdefs.h. */ 15142 int i; 15143 _ACEOF 15144 if ac_fn_c_try_compile "$LINENO" 15145 then : 15146 xorg_cv_cc_flag_unknown_warning_option=yes 15147 else case e in #( 15148 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15149 esac 15150 fi 15151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15152 esac 15153 fi 15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158 fi 15159 15160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15168 then : 15169 printf %s "(cached) " >&6 15170 else case e in #( 15171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15172 /* end confdefs.h. */ 15173 int i; 15174 _ACEOF 15175 if ac_fn_c_try_compile "$LINENO" 15176 then : 15177 xorg_cv_cc_flag_unused_command_line_argument=yes 15178 else case e in #( 15179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15180 esac 15181 fi 15182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15183 esac 15184 fi 15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15188 CFLAGS="$xorg_testset_save_CFLAGS" 15189 fi 15190 15191 found="no" 15192 15193 if test $found = "no" ; then 15194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 fi 15197 15198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15200 fi 15201 15202 CFLAGS="$CFLAGS -Wold-style-definition" 15203 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15205 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15206 cacheid=xorg_cv_cc_flag__Wold_style_definition 15207 if eval test \${$cacheid+y} 15208 then : 15209 printf %s "(cached) " >&6 15210 else case e in #( 15211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15212 /* end confdefs.h. */ 15213 int i; 15214 int 15215 main (void) 15216 { 15217 15218 ; 15219 return 0; 15220 } 15221 _ACEOF 15222 if ac_fn_c_try_link "$LINENO" 15223 then : 15224 eval $cacheid=yes 15225 else case e in #( 15226 e) eval $cacheid=no ;; 15227 esac 15228 fi 15229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15230 conftest$ac_exeext conftest.$ac_ext ;; 15231 esac 15232 fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239 printf "%s\n" "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15242 found="yes" 15243 fi 15244 fi 15245 15246 if test $found = "no" ; then 15247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15249 fi 15250 15251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15253 fi 15254 15255 CFLAGS="$CFLAGS -fd" 15256 15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15258 printf %s "checking if $CC supports -fd... " >&6; } 15259 cacheid=xorg_cv_cc_flag__fd 15260 if eval test \${$cacheid+y} 15261 then : 15262 printf %s "(cached) " >&6 15263 else case e in #( 15264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15265 /* end confdefs.h. */ 15266 int i; 15267 int 15268 main (void) 15269 { 15270 15271 ; 15272 return 0; 15273 } 15274 _ACEOF 15275 if ac_fn_c_try_link "$LINENO" 15276 then : 15277 eval $cacheid=yes 15278 else case e in #( 15279 e) eval $cacheid=no ;; 15280 esac 15281 fi 15282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15283 conftest$ac_exeext conftest.$ac_ext ;; 15284 esac 15285 fi 15286 15287 15288 CFLAGS="$xorg_testset_save_CFLAGS" 15289 15290 eval supported=\$$cacheid 15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15292 printf "%s\n" "$supported" >&6; } 15293 if test "$supported" = "yes" ; then 15294 BASE_CFLAGS="$BASE_CFLAGS -fd" 15295 found="yes" 15296 fi 15297 fi 15298 15299 15300 15301 15302 15303 # This chunk adds additional warnings that could catch undesired effects. 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 xorg_testset_save_CFLAGS="$CFLAGS" 15318 15319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15323 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15324 then : 15325 printf %s "(cached) " >&6 15326 else case e in #( 15327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328 /* end confdefs.h. */ 15329 int i; 15330 _ACEOF 15331 if ac_fn_c_try_compile "$LINENO" 15332 then : 15333 xorg_cv_cc_flag_unknown_warning_option=yes 15334 else case e in #( 15335 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15336 esac 15337 fi 15338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15339 esac 15340 fi 15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15344 CFLAGS="$xorg_testset_save_CFLAGS" 15345 fi 15346 15347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15350 fi 15351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15355 then : 15356 printf %s "(cached) " >&6 15357 else case e in #( 15358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15359 /* end confdefs.h. */ 15360 int i; 15361 _ACEOF 15362 if ac_fn_c_try_compile "$LINENO" 15363 then : 15364 xorg_cv_cc_flag_unused_command_line_argument=yes 15365 else case e in #( 15366 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15367 esac 15368 fi 15369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15370 esac 15371 fi 15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15373 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15375 CFLAGS="$xorg_testset_save_CFLAGS" 15376 fi 15377 15378 found="no" 15379 15380 if test $found = "no" ; then 15381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 fi 15384 15385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15387 fi 15388 15389 CFLAGS="$CFLAGS -Wunused" 15390 15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15392 printf %s "checking if $CC supports -Wunused... " >&6; } 15393 cacheid=xorg_cv_cc_flag__Wunused 15394 if eval test \${$cacheid+y} 15395 then : 15396 printf %s "(cached) " >&6 15397 else case e in #( 15398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15399 /* end confdefs.h. */ 15400 int i; 15401 int 15402 main (void) 15403 { 15404 15405 ; 15406 return 0; 15407 } 15408 _ACEOF 15409 if ac_fn_c_try_link "$LINENO" 15410 then : 15411 eval $cacheid=yes 15412 else case e in #( 15413 e) eval $cacheid=no ;; 15414 esac 15415 fi 15416 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15417 conftest$ac_exeext conftest.$ac_ext ;; 15418 esac 15419 fi 15420 15421 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423 15424 eval supported=\$$cacheid 15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15426 printf "%s\n" "$supported" >&6; } 15427 if test "$supported" = "yes" ; then 15428 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15429 found="yes" 15430 fi 15431 fi 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 xorg_testset_save_CFLAGS="$CFLAGS" 15448 15449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15452 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15453 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15454 then : 15455 printf %s "(cached) " >&6 15456 else case e in #( 15457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458 /* end confdefs.h. */ 15459 int i; 15460 _ACEOF 15461 if ac_fn_c_try_compile "$LINENO" 15462 then : 15463 xorg_cv_cc_flag_unknown_warning_option=yes 15464 else case e in #( 15465 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15466 esac 15467 fi 15468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15469 esac 15470 fi 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15472 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15474 CFLAGS="$xorg_testset_save_CFLAGS" 15475 fi 15476 15477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15480 fi 15481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15483 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15484 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15485 then : 15486 printf %s "(cached) " >&6 15487 else case e in #( 15488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489 /* end confdefs.h. */ 15490 int i; 15491 _ACEOF 15492 if ac_fn_c_try_compile "$LINENO" 15493 then : 15494 xorg_cv_cc_flag_unused_command_line_argument=yes 15495 else case e in #( 15496 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15497 esac 15498 fi 15499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15500 esac 15501 fi 15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15505 CFLAGS="$xorg_testset_save_CFLAGS" 15506 fi 15507 15508 found="no" 15509 15510 if test $found = "no" ; then 15511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15513 fi 15514 15515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15517 fi 15518 15519 CFLAGS="$CFLAGS -Wuninitialized" 15520 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15522 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15523 cacheid=xorg_cv_cc_flag__Wuninitialized 15524 if eval test \${$cacheid+y} 15525 then : 15526 printf %s "(cached) " >&6 15527 else case e in #( 15528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15529 /* end confdefs.h. */ 15530 int i; 15531 int 15532 main (void) 15533 { 15534 15535 ; 15536 return 0; 15537 } 15538 _ACEOF 15539 if ac_fn_c_try_link "$LINENO" 15540 then : 15541 eval $cacheid=yes 15542 else case e in #( 15543 e) eval $cacheid=no ;; 15544 esac 15545 fi 15546 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15547 conftest$ac_exeext conftest.$ac_ext ;; 15548 esac 15549 fi 15550 15551 15552 CFLAGS="$xorg_testset_save_CFLAGS" 15553 15554 eval supported=\$$cacheid 15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15556 printf "%s\n" "$supported" >&6; } 15557 if test "$supported" = "yes" ; then 15558 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15559 found="yes" 15560 fi 15561 fi 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 xorg_testset_save_CFLAGS="$CFLAGS" 15578 15579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15582 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15583 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15584 then : 15585 printf %s "(cached) " >&6 15586 else case e in #( 15587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15588 /* end confdefs.h. */ 15589 int i; 15590 _ACEOF 15591 if ac_fn_c_try_compile "$LINENO" 15592 then : 15593 xorg_cv_cc_flag_unknown_warning_option=yes 15594 else case e in #( 15595 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15596 esac 15597 fi 15598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15599 esac 15600 fi 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15604 CFLAGS="$xorg_testset_save_CFLAGS" 15605 fi 15606 15607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15610 fi 15611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15615 then : 15616 printf %s "(cached) " >&6 15617 else case e in #( 15618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619 /* end confdefs.h. */ 15620 int i; 15621 _ACEOF 15622 if ac_fn_c_try_compile "$LINENO" 15623 then : 15624 xorg_cv_cc_flag_unused_command_line_argument=yes 15625 else case e in #( 15626 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15627 esac 15628 fi 15629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15630 esac 15631 fi 15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15635 CFLAGS="$xorg_testset_save_CFLAGS" 15636 fi 15637 15638 found="no" 15639 15640 if test $found = "no" ; then 15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15643 fi 15644 15645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15647 fi 15648 15649 CFLAGS="$CFLAGS -Wshadow" 15650 15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15652 printf %s "checking if $CC supports -Wshadow... " >&6; } 15653 cacheid=xorg_cv_cc_flag__Wshadow 15654 if eval test \${$cacheid+y} 15655 then : 15656 printf %s "(cached) " >&6 15657 else case e in #( 15658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15659 /* end confdefs.h. */ 15660 int i; 15661 int 15662 main (void) 15663 { 15664 15665 ; 15666 return 0; 15667 } 15668 _ACEOF 15669 if ac_fn_c_try_link "$LINENO" 15670 then : 15671 eval $cacheid=yes 15672 else case e in #( 15673 e) eval $cacheid=no ;; 15674 esac 15675 fi 15676 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15677 conftest$ac_exeext conftest.$ac_ext ;; 15678 esac 15679 fi 15680 15681 15682 CFLAGS="$xorg_testset_save_CFLAGS" 15683 15684 eval supported=\$$cacheid 15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15686 printf "%s\n" "$supported" >&6; } 15687 if test "$supported" = "yes" ; then 15688 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15689 found="yes" 15690 fi 15691 fi 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 xorg_testset_save_CFLAGS="$CFLAGS" 15708 15709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15713 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15714 then : 15715 printf %s "(cached) " >&6 15716 else case e in #( 15717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15718 /* end confdefs.h. */ 15719 int i; 15720 _ACEOF 15721 if ac_fn_c_try_compile "$LINENO" 15722 then : 15723 xorg_cv_cc_flag_unknown_warning_option=yes 15724 else case e in #( 15725 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15726 esac 15727 fi 15728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15729 esac 15730 fi 15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15734 CFLAGS="$xorg_testset_save_CFLAGS" 15735 fi 15736 15737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15740 fi 15741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15745 then : 15746 printf %s "(cached) " >&6 15747 else case e in #( 15748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15749 /* end confdefs.h. */ 15750 int i; 15751 _ACEOF 15752 if ac_fn_c_try_compile "$LINENO" 15753 then : 15754 xorg_cv_cc_flag_unused_command_line_argument=yes 15755 else case e in #( 15756 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15757 esac 15758 fi 15759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15760 esac 15761 fi 15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15765 CFLAGS="$xorg_testset_save_CFLAGS" 15766 fi 15767 15768 found="no" 15769 15770 if test $found = "no" ; then 15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15773 fi 15774 15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15777 fi 15778 15779 CFLAGS="$CFLAGS -Wmissing-noreturn" 15780 15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15782 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15783 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15784 if eval test \${$cacheid+y} 15785 then : 15786 printf %s "(cached) " >&6 15787 else case e in #( 15788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789 /* end confdefs.h. */ 15790 int i; 15791 int 15792 main (void) 15793 { 15794 15795 ; 15796 return 0; 15797 } 15798 _ACEOF 15799 if ac_fn_c_try_link "$LINENO" 15800 then : 15801 eval $cacheid=yes 15802 else case e in #( 15803 e) eval $cacheid=no ;; 15804 esac 15805 fi 15806 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15807 conftest$ac_exeext conftest.$ac_ext ;; 15808 esac 15809 fi 15810 15811 15812 CFLAGS="$xorg_testset_save_CFLAGS" 15813 15814 eval supported=\$$cacheid 15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15816 printf "%s\n" "$supported" >&6; } 15817 if test "$supported" = "yes" ; then 15818 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15819 found="yes" 15820 fi 15821 fi 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 xorg_testset_save_CFLAGS="$CFLAGS" 15838 15839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15842 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15843 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15844 then : 15845 printf %s "(cached) " >&6 15846 else case e in #( 15847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15848 /* end confdefs.h. */ 15849 int i; 15850 _ACEOF 15851 if ac_fn_c_try_compile "$LINENO" 15852 then : 15853 xorg_cv_cc_flag_unknown_warning_option=yes 15854 else case e in #( 15855 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15856 esac 15857 fi 15858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15859 esac 15860 fi 15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15862 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15864 CFLAGS="$xorg_testset_save_CFLAGS" 15865 fi 15866 15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15870 fi 15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15873 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15874 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15875 then : 15876 printf %s "(cached) " >&6 15877 else case e in #( 15878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15879 /* end confdefs.h. */ 15880 int i; 15881 _ACEOF 15882 if ac_fn_c_try_compile "$LINENO" 15883 then : 15884 xorg_cv_cc_flag_unused_command_line_argument=yes 15885 else case e in #( 15886 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15887 esac 15888 fi 15889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15890 esac 15891 fi 15892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15895 CFLAGS="$xorg_testset_save_CFLAGS" 15896 fi 15897 15898 found="no" 15899 15900 if test $found = "no" ; then 15901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15903 fi 15904 15905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15907 fi 15908 15909 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15910 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15912 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15913 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15914 if eval test \${$cacheid+y} 15915 then : 15916 printf %s "(cached) " >&6 15917 else case e in #( 15918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15919 /* end confdefs.h. */ 15920 int i; 15921 int 15922 main (void) 15923 { 15924 15925 ; 15926 return 0; 15927 } 15928 _ACEOF 15929 if ac_fn_c_try_link "$LINENO" 15930 then : 15931 eval $cacheid=yes 15932 else case e in #( 15933 e) eval $cacheid=no ;; 15934 esac 15935 fi 15936 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15937 conftest$ac_exeext conftest.$ac_ext ;; 15938 esac 15939 fi 15940 15941 15942 CFLAGS="$xorg_testset_save_CFLAGS" 15943 15944 eval supported=\$$cacheid 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15946 printf "%s\n" "$supported" >&6; } 15947 if test "$supported" = "yes" ; then 15948 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15949 found="yes" 15950 fi 15951 fi 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 xorg_testset_save_CFLAGS="$CFLAGS" 15968 15969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15973 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15974 then : 15975 printf %s "(cached) " >&6 15976 else case e in #( 15977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978 /* end confdefs.h. */ 15979 int i; 15980 _ACEOF 15981 if ac_fn_c_try_compile "$LINENO" 15982 then : 15983 xorg_cv_cc_flag_unknown_warning_option=yes 15984 else case e in #( 15985 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15986 esac 15987 fi 15988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15989 esac 15990 fi 15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15992 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15994 CFLAGS="$xorg_testset_save_CFLAGS" 15995 fi 15996 15997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 fi 16001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16003 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16004 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16005 then : 16006 printf %s "(cached) " >&6 16007 else case e in #( 16008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16009 /* end confdefs.h. */ 16010 int i; 16011 _ACEOF 16012 if ac_fn_c_try_compile "$LINENO" 16013 then : 16014 xorg_cv_cc_flag_unused_command_line_argument=yes 16015 else case e in #( 16016 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16017 esac 16018 fi 16019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16020 esac 16021 fi 16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16023 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16025 CFLAGS="$xorg_testset_save_CFLAGS" 16026 fi 16027 16028 found="no" 16029 16030 if test $found = "no" ; then 16031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16033 fi 16034 16035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16037 fi 16038 16039 CFLAGS="$CFLAGS -Wredundant-decls" 16040 16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16042 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16043 cacheid=xorg_cv_cc_flag__Wredundant_decls 16044 if eval test \${$cacheid+y} 16045 then : 16046 printf %s "(cached) " >&6 16047 else case e in #( 16048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16049 /* end confdefs.h. */ 16050 int i; 16051 int 16052 main (void) 16053 { 16054 16055 ; 16056 return 0; 16057 } 16058 _ACEOF 16059 if ac_fn_c_try_link "$LINENO" 16060 then : 16061 eval $cacheid=yes 16062 else case e in #( 16063 e) eval $cacheid=no ;; 16064 esac 16065 fi 16066 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16067 conftest$ac_exeext conftest.$ac_ext ;; 16068 esac 16069 fi 16070 16071 16072 CFLAGS="$xorg_testset_save_CFLAGS" 16073 16074 eval supported=\$$cacheid 16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16076 printf "%s\n" "$supported" >&6; } 16077 if test "$supported" = "yes" ; then 16078 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16079 found="yes" 16080 fi 16081 fi 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 xorg_testset_save_CFLAGS="$CFLAGS" 16098 16099 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16102 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16103 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16104 then : 16105 printf %s "(cached) " >&6 16106 else case e in #( 16107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108 /* end confdefs.h. */ 16109 int i; 16110 _ACEOF 16111 if ac_fn_c_try_compile "$LINENO" 16112 then : 16113 xorg_cv_cc_flag_unknown_warning_option=yes 16114 else case e in #( 16115 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16116 esac 16117 fi 16118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16119 esac 16120 fi 16121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16122 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16124 CFLAGS="$xorg_testset_save_CFLAGS" 16125 fi 16126 16127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16130 fi 16131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16133 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16134 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16135 then : 16136 printf %s "(cached) " >&6 16137 else case e in #( 16138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16139 /* end confdefs.h. */ 16140 int i; 16141 _ACEOF 16142 if ac_fn_c_try_compile "$LINENO" 16143 then : 16144 xorg_cv_cc_flag_unused_command_line_argument=yes 16145 else case e in #( 16146 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16147 esac 16148 fi 16149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16150 esac 16151 fi 16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16153 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16155 CFLAGS="$xorg_testset_save_CFLAGS" 16156 fi 16157 16158 found="no" 16159 16160 if test $found = "no" ; then 16161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16163 fi 16164 16165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16167 fi 16168 16169 CFLAGS="$CFLAGS -Wlogical-op" 16170 16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16172 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16173 cacheid=xorg_cv_cc_flag__Wlogical_op 16174 if eval test \${$cacheid+y} 16175 then : 16176 printf %s "(cached) " >&6 16177 else case e in #( 16178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16179 /* end confdefs.h. */ 16180 int i; 16181 int 16182 main (void) 16183 { 16184 16185 ; 16186 return 0; 16187 } 16188 _ACEOF 16189 if ac_fn_c_try_link "$LINENO" 16190 then : 16191 eval $cacheid=yes 16192 else case e in #( 16193 e) eval $cacheid=no ;; 16194 esac 16195 fi 16196 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16197 conftest$ac_exeext conftest.$ac_ext ;; 16198 esac 16199 fi 16200 16201 16202 CFLAGS="$xorg_testset_save_CFLAGS" 16203 16204 eval supported=\$$cacheid 16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16206 printf "%s\n" "$supported" >&6; } 16207 if test "$supported" = "yes" ; then 16208 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16209 found="yes" 16210 fi 16211 fi 16212 16213 16214 16215 # These are currently disabled because they are noisy. They will be enabled 16216 # in the future once the codebase is sufficiently modernized to silence 16217 # them. For now, I don't want them to drown out the other warnings. 16218 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16219 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16220 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16221 16222 # Turn some warnings into errors, so we don't accidentally get successful builds 16223 # when there are problems that should be fixed. 16224 16225 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 xorg_testset_save_CFLAGS="$CFLAGS" 16240 16241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16245 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16246 then : 16247 printf %s "(cached) " >&6 16248 else case e in #( 16249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16250 /* end confdefs.h. */ 16251 int i; 16252 _ACEOF 16253 if ac_fn_c_try_compile "$LINENO" 16254 then : 16255 xorg_cv_cc_flag_unknown_warning_option=yes 16256 else case e in #( 16257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16258 esac 16259 fi 16260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16261 esac 16262 fi 16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16266 CFLAGS="$xorg_testset_save_CFLAGS" 16267 fi 16268 16269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16272 fi 16273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16277 then : 16278 printf %s "(cached) " >&6 16279 else case e in #( 16280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16281 /* end confdefs.h. */ 16282 int i; 16283 _ACEOF 16284 if ac_fn_c_try_compile "$LINENO" 16285 then : 16286 xorg_cv_cc_flag_unused_command_line_argument=yes 16287 else case e in #( 16288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16289 esac 16290 fi 16291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16292 esac 16293 fi 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16297 CFLAGS="$xorg_testset_save_CFLAGS" 16298 fi 16299 16300 found="no" 16301 16302 if test $found = "no" ; then 16303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16305 fi 16306 16307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16309 fi 16310 16311 CFLAGS="$CFLAGS -Werror=implicit" 16312 16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16314 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16315 cacheid=xorg_cv_cc_flag__Werror_implicit 16316 if eval test \${$cacheid+y} 16317 then : 16318 printf %s "(cached) " >&6 16319 else case e in #( 16320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16321 /* end confdefs.h. */ 16322 int i; 16323 int 16324 main (void) 16325 { 16326 16327 ; 16328 return 0; 16329 } 16330 _ACEOF 16331 if ac_fn_c_try_link "$LINENO" 16332 then : 16333 eval $cacheid=yes 16334 else case e in #( 16335 e) eval $cacheid=no ;; 16336 esac 16337 fi 16338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16339 conftest$ac_exeext conftest.$ac_ext ;; 16340 esac 16341 fi 16342 16343 16344 CFLAGS="$xorg_testset_save_CFLAGS" 16345 16346 eval supported=\$$cacheid 16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16348 printf "%s\n" "$supported" >&6; } 16349 if test "$supported" = "yes" ; then 16350 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16351 found="yes" 16352 fi 16353 fi 16354 16355 if test $found = "no" ; then 16356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16358 fi 16359 16360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16362 fi 16363 16364 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16365 16366 { 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 16367 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16368 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16369 if eval test \${$cacheid+y} 16370 then : 16371 printf %s "(cached) " >&6 16372 else case e in #( 16373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374 /* end confdefs.h. */ 16375 int i; 16376 int 16377 main (void) 16378 { 16379 16380 ; 16381 return 0; 16382 } 16383 _ACEOF 16384 if ac_fn_c_try_link "$LINENO" 16385 then : 16386 eval $cacheid=yes 16387 else case e in #( 16388 e) eval $cacheid=no ;; 16389 esac 16390 fi 16391 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16392 conftest$ac_exeext conftest.$ac_ext ;; 16393 esac 16394 fi 16395 16396 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398 16399 eval supported=\$$cacheid 16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16401 printf "%s\n" "$supported" >&6; } 16402 if test "$supported" = "yes" ; then 16403 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16404 found="yes" 16405 fi 16406 fi 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 xorg_testset_save_CFLAGS="$CFLAGS" 16423 16424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16428 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16429 then : 16430 printf %s "(cached) " >&6 16431 else case e in #( 16432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433 /* end confdefs.h. */ 16434 int i; 16435 _ACEOF 16436 if ac_fn_c_try_compile "$LINENO" 16437 then : 16438 xorg_cv_cc_flag_unknown_warning_option=yes 16439 else case e in #( 16440 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16441 esac 16442 fi 16443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16444 esac 16445 fi 16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16449 CFLAGS="$xorg_testset_save_CFLAGS" 16450 fi 16451 16452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16455 fi 16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16460 then : 16461 printf %s "(cached) " >&6 16462 else case e in #( 16463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16464 /* end confdefs.h. */ 16465 int i; 16466 _ACEOF 16467 if ac_fn_c_try_compile "$LINENO" 16468 then : 16469 xorg_cv_cc_flag_unused_command_line_argument=yes 16470 else case e in #( 16471 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16472 esac 16473 fi 16474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16475 esac 16476 fi 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16478 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16480 CFLAGS="$xorg_testset_save_CFLAGS" 16481 fi 16482 16483 found="no" 16484 16485 if test $found = "no" ; then 16486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16488 fi 16489 16490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16492 fi 16493 16494 CFLAGS="$CFLAGS -Werror=nonnull" 16495 16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16497 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16498 cacheid=xorg_cv_cc_flag__Werror_nonnull 16499 if eval test \${$cacheid+y} 16500 then : 16501 printf %s "(cached) " >&6 16502 else case e in #( 16503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504 /* end confdefs.h. */ 16505 int i; 16506 int 16507 main (void) 16508 { 16509 16510 ; 16511 return 0; 16512 } 16513 _ACEOF 16514 if ac_fn_c_try_link "$LINENO" 16515 then : 16516 eval $cacheid=yes 16517 else case e in #( 16518 e) eval $cacheid=no ;; 16519 esac 16520 fi 16521 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16522 conftest$ac_exeext conftest.$ac_ext ;; 16523 esac 16524 fi 16525 16526 16527 CFLAGS="$xorg_testset_save_CFLAGS" 16528 16529 eval supported=\$$cacheid 16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16531 printf "%s\n" "$supported" >&6; } 16532 if test "$supported" = "yes" ; then 16533 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16534 found="yes" 16535 fi 16536 fi 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 xorg_testset_save_CFLAGS="$CFLAGS" 16553 16554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16558 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16559 then : 16560 printf %s "(cached) " >&6 16561 else case e in #( 16562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16563 /* end confdefs.h. */ 16564 int i; 16565 _ACEOF 16566 if ac_fn_c_try_compile "$LINENO" 16567 then : 16568 xorg_cv_cc_flag_unknown_warning_option=yes 16569 else case e in #( 16570 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16571 esac 16572 fi 16573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16574 esac 16575 fi 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16579 CFLAGS="$xorg_testset_save_CFLAGS" 16580 fi 16581 16582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16585 fi 16586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16590 then : 16591 printf %s "(cached) " >&6 16592 else case e in #( 16593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594 /* end confdefs.h. */ 16595 int i; 16596 _ACEOF 16597 if ac_fn_c_try_compile "$LINENO" 16598 then : 16599 xorg_cv_cc_flag_unused_command_line_argument=yes 16600 else case e in #( 16601 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16602 esac 16603 fi 16604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16605 esac 16606 fi 16607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16610 CFLAGS="$xorg_testset_save_CFLAGS" 16611 fi 16612 16613 found="no" 16614 16615 if test $found = "no" ; then 16616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16618 fi 16619 16620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16622 fi 16623 16624 CFLAGS="$CFLAGS -Werror=init-self" 16625 16626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16627 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16628 cacheid=xorg_cv_cc_flag__Werror_init_self 16629 if eval test \${$cacheid+y} 16630 then : 16631 printf %s "(cached) " >&6 16632 else case e in #( 16633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16634 /* end confdefs.h. */ 16635 int i; 16636 int 16637 main (void) 16638 { 16639 16640 ; 16641 return 0; 16642 } 16643 _ACEOF 16644 if ac_fn_c_try_link "$LINENO" 16645 then : 16646 eval $cacheid=yes 16647 else case e in #( 16648 e) eval $cacheid=no ;; 16649 esac 16650 fi 16651 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16652 conftest$ac_exeext conftest.$ac_ext ;; 16653 esac 16654 fi 16655 16656 16657 CFLAGS="$xorg_testset_save_CFLAGS" 16658 16659 eval supported=\$$cacheid 16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16661 printf "%s\n" "$supported" >&6; } 16662 if test "$supported" = "yes" ; then 16663 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16664 found="yes" 16665 fi 16666 fi 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 xorg_testset_save_CFLAGS="$CFLAGS" 16683 16684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16688 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16689 then : 16690 printf %s "(cached) " >&6 16691 else case e in #( 16692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16693 /* end confdefs.h. */ 16694 int i; 16695 _ACEOF 16696 if ac_fn_c_try_compile "$LINENO" 16697 then : 16698 xorg_cv_cc_flag_unknown_warning_option=yes 16699 else case e in #( 16700 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16701 esac 16702 fi 16703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16704 esac 16705 fi 16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16709 CFLAGS="$xorg_testset_save_CFLAGS" 16710 fi 16711 16712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16715 fi 16716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16720 then : 16721 printf %s "(cached) " >&6 16722 else case e in #( 16723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724 /* end confdefs.h. */ 16725 int i; 16726 _ACEOF 16727 if ac_fn_c_try_compile "$LINENO" 16728 then : 16729 xorg_cv_cc_flag_unused_command_line_argument=yes 16730 else case e in #( 16731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16732 esac 16733 fi 16734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16735 esac 16736 fi 16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16740 CFLAGS="$xorg_testset_save_CFLAGS" 16741 fi 16742 16743 found="no" 16744 16745 if test $found = "no" ; then 16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16748 fi 16749 16750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16752 fi 16753 16754 CFLAGS="$CFLAGS -Werror=main" 16755 16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16757 printf %s "checking if $CC supports -Werror=main... " >&6; } 16758 cacheid=xorg_cv_cc_flag__Werror_main 16759 if eval test \${$cacheid+y} 16760 then : 16761 printf %s "(cached) " >&6 16762 else case e in #( 16763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16764 /* end confdefs.h. */ 16765 int i; 16766 int 16767 main (void) 16768 { 16769 16770 ; 16771 return 0; 16772 } 16773 _ACEOF 16774 if ac_fn_c_try_link "$LINENO" 16775 then : 16776 eval $cacheid=yes 16777 else case e in #( 16778 e) eval $cacheid=no ;; 16779 esac 16780 fi 16781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16782 conftest$ac_exeext conftest.$ac_ext ;; 16783 esac 16784 fi 16785 16786 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788 16789 eval supported=\$$cacheid 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16791 printf "%s\n" "$supported" >&6; } 16792 if test "$supported" = "yes" ; then 16793 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16794 found="yes" 16795 fi 16796 fi 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 xorg_testset_save_CFLAGS="$CFLAGS" 16813 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16818 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16819 then : 16820 printf %s "(cached) " >&6 16821 else case e in #( 16822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16823 /* end confdefs.h. */ 16824 int i; 16825 _ACEOF 16826 if ac_fn_c_try_compile "$LINENO" 16827 then : 16828 xorg_cv_cc_flag_unknown_warning_option=yes 16829 else case e in #( 16830 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16831 esac 16832 fi 16833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16834 esac 16835 fi 16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16839 CFLAGS="$xorg_testset_save_CFLAGS" 16840 fi 16841 16842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 fi 16846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16850 then : 16851 printf %s "(cached) " >&6 16852 else case e in #( 16853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16854 /* end confdefs.h. */ 16855 int i; 16856 _ACEOF 16857 if ac_fn_c_try_compile "$LINENO" 16858 then : 16859 xorg_cv_cc_flag_unused_command_line_argument=yes 16860 else case e in #( 16861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16862 esac 16863 fi 16864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16865 esac 16866 fi 16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871 fi 16872 16873 found="no" 16874 16875 if test $found = "no" ; then 16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16878 fi 16879 16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16882 fi 16883 16884 CFLAGS="$CFLAGS -Werror=missing-braces" 16885 16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16887 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16888 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16889 if eval test \${$cacheid+y} 16890 then : 16891 printf %s "(cached) " >&6 16892 else case e in #( 16893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894 /* end confdefs.h. */ 16895 int i; 16896 int 16897 main (void) 16898 { 16899 16900 ; 16901 return 0; 16902 } 16903 _ACEOF 16904 if ac_fn_c_try_link "$LINENO" 16905 then : 16906 eval $cacheid=yes 16907 else case e in #( 16908 e) eval $cacheid=no ;; 16909 esac 16910 fi 16911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16912 conftest$ac_exeext conftest.$ac_ext ;; 16913 esac 16914 fi 16915 16916 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918 16919 eval supported=\$$cacheid 16920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16921 printf "%s\n" "$supported" >&6; } 16922 if test "$supported" = "yes" ; then 16923 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16924 found="yes" 16925 fi 16926 fi 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 xorg_testset_save_CFLAGS="$CFLAGS" 16943 16944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16948 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16949 then : 16950 printf %s "(cached) " >&6 16951 else case e in #( 16952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953 /* end confdefs.h. */ 16954 int i; 16955 _ACEOF 16956 if ac_fn_c_try_compile "$LINENO" 16957 then : 16958 xorg_cv_cc_flag_unknown_warning_option=yes 16959 else case e in #( 16960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16961 esac 16962 fi 16963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16964 esac 16965 fi 16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16969 CFLAGS="$xorg_testset_save_CFLAGS" 16970 fi 16971 16972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16975 fi 16976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16980 then : 16981 printf %s "(cached) " >&6 16982 else case e in #( 16983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16984 /* end confdefs.h. */ 16985 int i; 16986 _ACEOF 16987 if ac_fn_c_try_compile "$LINENO" 16988 then : 16989 xorg_cv_cc_flag_unused_command_line_argument=yes 16990 else case e in #( 16991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16992 esac 16993 fi 16994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16995 esac 16996 fi 16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17000 CFLAGS="$xorg_testset_save_CFLAGS" 17001 fi 17002 17003 found="no" 17004 17005 if test $found = "no" ; then 17006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17008 fi 17009 17010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17012 fi 17013 17014 CFLAGS="$CFLAGS -Werror=sequence-point" 17015 17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17017 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17018 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17019 if eval test \${$cacheid+y} 17020 then : 17021 printf %s "(cached) " >&6 17022 else case e in #( 17023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17024 /* end confdefs.h. */ 17025 int i; 17026 int 17027 main (void) 17028 { 17029 17030 ; 17031 return 0; 17032 } 17033 _ACEOF 17034 if ac_fn_c_try_link "$LINENO" 17035 then : 17036 eval $cacheid=yes 17037 else case e in #( 17038 e) eval $cacheid=no ;; 17039 esac 17040 fi 17041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17042 conftest$ac_exeext conftest.$ac_ext ;; 17043 esac 17044 fi 17045 17046 17047 CFLAGS="$xorg_testset_save_CFLAGS" 17048 17049 eval supported=\$$cacheid 17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17051 printf "%s\n" "$supported" >&6; } 17052 if test "$supported" = "yes" ; then 17053 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17054 found="yes" 17055 fi 17056 fi 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 xorg_testset_save_CFLAGS="$CFLAGS" 17073 17074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17078 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17079 then : 17080 printf %s "(cached) " >&6 17081 else case e in #( 17082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17083 /* end confdefs.h. */ 17084 int i; 17085 _ACEOF 17086 if ac_fn_c_try_compile "$LINENO" 17087 then : 17088 xorg_cv_cc_flag_unknown_warning_option=yes 17089 else case e in #( 17090 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17091 esac 17092 fi 17093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17094 esac 17095 fi 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17099 CFLAGS="$xorg_testset_save_CFLAGS" 17100 fi 17101 17102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17105 fi 17106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17110 then : 17111 printf %s "(cached) " >&6 17112 else case e in #( 17113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17114 /* end confdefs.h. */ 17115 int i; 17116 _ACEOF 17117 if ac_fn_c_try_compile "$LINENO" 17118 then : 17119 xorg_cv_cc_flag_unused_command_line_argument=yes 17120 else case e in #( 17121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17122 esac 17123 fi 17124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17125 esac 17126 fi 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17130 CFLAGS="$xorg_testset_save_CFLAGS" 17131 fi 17132 17133 found="no" 17134 17135 if test $found = "no" ; then 17136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17138 fi 17139 17140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17142 fi 17143 17144 CFLAGS="$CFLAGS -Werror=return-type" 17145 17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17147 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17148 cacheid=xorg_cv_cc_flag__Werror_return_type 17149 if eval test \${$cacheid+y} 17150 then : 17151 printf %s "(cached) " >&6 17152 else case e in #( 17153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154 /* end confdefs.h. */ 17155 int i; 17156 int 17157 main (void) 17158 { 17159 17160 ; 17161 return 0; 17162 } 17163 _ACEOF 17164 if ac_fn_c_try_link "$LINENO" 17165 then : 17166 eval $cacheid=yes 17167 else case e in #( 17168 e) eval $cacheid=no ;; 17169 esac 17170 fi 17171 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17172 conftest$ac_exeext conftest.$ac_ext ;; 17173 esac 17174 fi 17175 17176 17177 CFLAGS="$xorg_testset_save_CFLAGS" 17178 17179 eval supported=\$$cacheid 17180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17181 printf "%s\n" "$supported" >&6; } 17182 if test "$supported" = "yes" ; then 17183 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17184 found="yes" 17185 fi 17186 fi 17187 17188 if test $found = "no" ; then 17189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17191 fi 17192 17193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17195 fi 17196 17197 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17198 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17200 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17201 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17202 if eval test \${$cacheid+y} 17203 then : 17204 printf %s "(cached) " >&6 17205 else case e in #( 17206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17207 /* end confdefs.h. */ 17208 int i; 17209 int 17210 main (void) 17211 { 17212 17213 ; 17214 return 0; 17215 } 17216 _ACEOF 17217 if ac_fn_c_try_link "$LINENO" 17218 then : 17219 eval $cacheid=yes 17220 else case e in #( 17221 e) eval $cacheid=no ;; 17222 esac 17223 fi 17224 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17225 conftest$ac_exeext conftest.$ac_ext ;; 17226 esac 17227 fi 17228 17229 17230 CFLAGS="$xorg_testset_save_CFLAGS" 17231 17232 eval supported=\$$cacheid 17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17234 printf "%s\n" "$supported" >&6; } 17235 if test "$supported" = "yes" ; then 17236 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17237 found="yes" 17238 fi 17239 fi 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 xorg_testset_save_CFLAGS="$CFLAGS" 17256 17257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17261 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17262 then : 17263 printf %s "(cached) " >&6 17264 else case e in #( 17265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17266 /* end confdefs.h. */ 17267 int i; 17268 _ACEOF 17269 if ac_fn_c_try_compile "$LINENO" 17270 then : 17271 xorg_cv_cc_flag_unknown_warning_option=yes 17272 else case e in #( 17273 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17274 esac 17275 fi 17276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17277 esac 17278 fi 17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17282 CFLAGS="$xorg_testset_save_CFLAGS" 17283 fi 17284 17285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17288 fi 17289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17293 then : 17294 printf %s "(cached) " >&6 17295 else case e in #( 17296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17297 /* end confdefs.h. */ 17298 int i; 17299 _ACEOF 17300 if ac_fn_c_try_compile "$LINENO" 17301 then : 17302 xorg_cv_cc_flag_unused_command_line_argument=yes 17303 else case e in #( 17304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17305 esac 17306 fi 17307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17308 esac 17309 fi 17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17313 CFLAGS="$xorg_testset_save_CFLAGS" 17314 fi 17315 17316 found="no" 17317 17318 if test $found = "no" ; then 17319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17321 fi 17322 17323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17325 fi 17326 17327 CFLAGS="$CFLAGS -Werror=trigraphs" 17328 17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17330 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17331 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17332 if eval test \${$cacheid+y} 17333 then : 17334 printf %s "(cached) " >&6 17335 else case e in #( 17336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337 /* end confdefs.h. */ 17338 int i; 17339 int 17340 main (void) 17341 { 17342 17343 ; 17344 return 0; 17345 } 17346 _ACEOF 17347 if ac_fn_c_try_link "$LINENO" 17348 then : 17349 eval $cacheid=yes 17350 else case e in #( 17351 e) eval $cacheid=no ;; 17352 esac 17353 fi 17354 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17355 conftest$ac_exeext conftest.$ac_ext ;; 17356 esac 17357 fi 17358 17359 17360 CFLAGS="$xorg_testset_save_CFLAGS" 17361 17362 eval supported=\$$cacheid 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17364 printf "%s\n" "$supported" >&6; } 17365 if test "$supported" = "yes" ; then 17366 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17367 found="yes" 17368 fi 17369 fi 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 xorg_testset_save_CFLAGS="$CFLAGS" 17386 17387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17391 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17392 then : 17393 printf %s "(cached) " >&6 17394 else case e in #( 17395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396 /* end confdefs.h. */ 17397 int i; 17398 _ACEOF 17399 if ac_fn_c_try_compile "$LINENO" 17400 then : 17401 xorg_cv_cc_flag_unknown_warning_option=yes 17402 else case e in #( 17403 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17404 esac 17405 fi 17406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17407 esac 17408 fi 17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17412 CFLAGS="$xorg_testset_save_CFLAGS" 17413 fi 17414 17415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17418 fi 17419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17423 then : 17424 printf %s "(cached) " >&6 17425 else case e in #( 17426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17427 /* end confdefs.h. */ 17428 int i; 17429 _ACEOF 17430 if ac_fn_c_try_compile "$LINENO" 17431 then : 17432 xorg_cv_cc_flag_unused_command_line_argument=yes 17433 else case e in #( 17434 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17435 esac 17436 fi 17437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17438 esac 17439 fi 17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17443 CFLAGS="$xorg_testset_save_CFLAGS" 17444 fi 17445 17446 found="no" 17447 17448 if test $found = "no" ; then 17449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17451 fi 17452 17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17455 fi 17456 17457 CFLAGS="$CFLAGS -Werror=array-bounds" 17458 17459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17460 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17461 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17462 if eval test \${$cacheid+y} 17463 then : 17464 printf %s "(cached) " >&6 17465 else case e in #( 17466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17467 /* end confdefs.h. */ 17468 int i; 17469 int 17470 main (void) 17471 { 17472 17473 ; 17474 return 0; 17475 } 17476 _ACEOF 17477 if ac_fn_c_try_link "$LINENO" 17478 then : 17479 eval $cacheid=yes 17480 else case e in #( 17481 e) eval $cacheid=no ;; 17482 esac 17483 fi 17484 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17485 conftest$ac_exeext conftest.$ac_ext ;; 17486 esac 17487 fi 17488 17489 17490 CFLAGS="$xorg_testset_save_CFLAGS" 17491 17492 eval supported=\$$cacheid 17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17494 printf "%s\n" "$supported" >&6; } 17495 if test "$supported" = "yes" ; then 17496 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17497 found="yes" 17498 fi 17499 fi 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 xorg_testset_save_CFLAGS="$CFLAGS" 17516 17517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17520 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17521 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17522 then : 17523 printf %s "(cached) " >&6 17524 else case e in #( 17525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526 /* end confdefs.h. */ 17527 int i; 17528 _ACEOF 17529 if ac_fn_c_try_compile "$LINENO" 17530 then : 17531 xorg_cv_cc_flag_unknown_warning_option=yes 17532 else case e in #( 17533 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17534 esac 17535 fi 17536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17537 esac 17538 fi 17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543 fi 17544 17545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17553 then : 17554 printf %s "(cached) " >&6 17555 else case e in #( 17556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17557 /* end confdefs.h. */ 17558 int i; 17559 _ACEOF 17560 if ac_fn_c_try_compile "$LINENO" 17561 then : 17562 xorg_cv_cc_flag_unused_command_line_argument=yes 17563 else case e in #( 17564 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17565 esac 17566 fi 17567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17568 esac 17569 fi 17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17573 CFLAGS="$xorg_testset_save_CFLAGS" 17574 fi 17575 17576 found="no" 17577 17578 if test $found = "no" ; then 17579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17581 fi 17582 17583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17585 fi 17586 17587 CFLAGS="$CFLAGS -Werror=write-strings" 17588 17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17590 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17591 cacheid=xorg_cv_cc_flag__Werror_write_strings 17592 if eval test \${$cacheid+y} 17593 then : 17594 printf %s "(cached) " >&6 17595 else case e in #( 17596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597 /* end confdefs.h. */ 17598 int i; 17599 int 17600 main (void) 17601 { 17602 17603 ; 17604 return 0; 17605 } 17606 _ACEOF 17607 if ac_fn_c_try_link "$LINENO" 17608 then : 17609 eval $cacheid=yes 17610 else case e in #( 17611 e) eval $cacheid=no ;; 17612 esac 17613 fi 17614 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17615 conftest$ac_exeext conftest.$ac_ext ;; 17616 esac 17617 fi 17618 17619 17620 CFLAGS="$xorg_testset_save_CFLAGS" 17621 17622 eval supported=\$$cacheid 17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17624 printf "%s\n" "$supported" >&6; } 17625 if test "$supported" = "yes" ; then 17626 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17627 found="yes" 17628 fi 17629 fi 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 xorg_testset_save_CFLAGS="$CFLAGS" 17646 17647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17651 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17652 then : 17653 printf %s "(cached) " >&6 17654 else case e in #( 17655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17656 /* end confdefs.h. */ 17657 int i; 17658 _ACEOF 17659 if ac_fn_c_try_compile "$LINENO" 17660 then : 17661 xorg_cv_cc_flag_unknown_warning_option=yes 17662 else case e in #( 17663 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17664 esac 17665 fi 17666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17667 esac 17668 fi 17669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17672 CFLAGS="$xorg_testset_save_CFLAGS" 17673 fi 17674 17675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17678 fi 17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17683 then : 17684 printf %s "(cached) " >&6 17685 else case e in #( 17686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17687 /* end confdefs.h. */ 17688 int i; 17689 _ACEOF 17690 if ac_fn_c_try_compile "$LINENO" 17691 then : 17692 xorg_cv_cc_flag_unused_command_line_argument=yes 17693 else case e in #( 17694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17695 esac 17696 fi 17697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17698 esac 17699 fi 17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17703 CFLAGS="$xorg_testset_save_CFLAGS" 17704 fi 17705 17706 found="no" 17707 17708 if test $found = "no" ; then 17709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17711 fi 17712 17713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17715 fi 17716 17717 CFLAGS="$CFLAGS -Werror=address" 17718 17719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17720 printf %s "checking if $CC supports -Werror=address... " >&6; } 17721 cacheid=xorg_cv_cc_flag__Werror_address 17722 if eval test \${$cacheid+y} 17723 then : 17724 printf %s "(cached) " >&6 17725 else case e in #( 17726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17727 /* end confdefs.h. */ 17728 int i; 17729 int 17730 main (void) 17731 { 17732 17733 ; 17734 return 0; 17735 } 17736 _ACEOF 17737 if ac_fn_c_try_link "$LINENO" 17738 then : 17739 eval $cacheid=yes 17740 else case e in #( 17741 e) eval $cacheid=no ;; 17742 esac 17743 fi 17744 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17745 conftest$ac_exeext conftest.$ac_ext ;; 17746 esac 17747 fi 17748 17749 17750 CFLAGS="$xorg_testset_save_CFLAGS" 17751 17752 eval supported=\$$cacheid 17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17754 printf "%s\n" "$supported" >&6; } 17755 if test "$supported" = "yes" ; then 17756 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17757 found="yes" 17758 fi 17759 fi 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 xorg_testset_save_CFLAGS="$CFLAGS" 17776 17777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17781 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17782 then : 17783 printf %s "(cached) " >&6 17784 else case e in #( 17785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17786 /* end confdefs.h. */ 17787 int i; 17788 _ACEOF 17789 if ac_fn_c_try_compile "$LINENO" 17790 then : 17791 xorg_cv_cc_flag_unknown_warning_option=yes 17792 else case e in #( 17793 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17794 esac 17795 fi 17796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17797 esac 17798 fi 17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17802 CFLAGS="$xorg_testset_save_CFLAGS" 17803 fi 17804 17805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17808 fi 17809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17813 then : 17814 printf %s "(cached) " >&6 17815 else case e in #( 17816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17817 /* end confdefs.h. */ 17818 int i; 17819 _ACEOF 17820 if ac_fn_c_try_compile "$LINENO" 17821 then : 17822 xorg_cv_cc_flag_unused_command_line_argument=yes 17823 else case e in #( 17824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17825 esac 17826 fi 17827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17828 esac 17829 fi 17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17833 CFLAGS="$xorg_testset_save_CFLAGS" 17834 fi 17835 17836 found="no" 17837 17838 if test $found = "no" ; then 17839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17841 fi 17842 17843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17845 fi 17846 17847 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17848 17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17850 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17851 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17852 if eval test \${$cacheid+y} 17853 then : 17854 printf %s "(cached) " >&6 17855 else case e in #( 17856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17857 /* end confdefs.h. */ 17858 int i; 17859 int 17860 main (void) 17861 { 17862 17863 ; 17864 return 0; 17865 } 17866 _ACEOF 17867 if ac_fn_c_try_link "$LINENO" 17868 then : 17869 eval $cacheid=yes 17870 else case e in #( 17871 e) eval $cacheid=no ;; 17872 esac 17873 fi 17874 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17875 conftest$ac_exeext conftest.$ac_ext ;; 17876 esac 17877 fi 17878 17879 17880 CFLAGS="$xorg_testset_save_CFLAGS" 17881 17882 eval supported=\$$cacheid 17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17884 printf "%s\n" "$supported" >&6; } 17885 if test "$supported" = "yes" ; then 17886 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17887 found="yes" 17888 fi 17889 fi 17890 17891 if test $found = "no" ; then 17892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17894 fi 17895 17896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17898 fi 17899 17900 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17901 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17903 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17904 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17905 if eval test \${$cacheid+y} 17906 then : 17907 printf %s "(cached) " >&6 17908 else case e in #( 17909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17910 /* end confdefs.h. */ 17911 int i; 17912 int 17913 main (void) 17914 { 17915 17916 ; 17917 return 0; 17918 } 17919 _ACEOF 17920 if ac_fn_c_try_link "$LINENO" 17921 then : 17922 eval $cacheid=yes 17923 else case e in #( 17924 e) eval $cacheid=no ;; 17925 esac 17926 fi 17927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17928 conftest$ac_exeext conftest.$ac_ext ;; 17929 esac 17930 fi 17931 17932 17933 CFLAGS="$xorg_testset_save_CFLAGS" 17934 17935 eval supported=\$$cacheid 17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17937 printf "%s\n" "$supported" >&6; } 17938 if test "$supported" = "yes" ; then 17939 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17940 found="yes" 17941 fi 17942 fi 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 xorg_testset_save_CFLAGS="$CFLAGS" 17959 17960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17964 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17965 then : 17966 printf %s "(cached) " >&6 17967 else case e in #( 17968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17969 /* end confdefs.h. */ 17970 int i; 17971 _ACEOF 17972 if ac_fn_c_try_compile "$LINENO" 17973 then : 17974 xorg_cv_cc_flag_unknown_warning_option=yes 17975 else case e in #( 17976 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17977 esac 17978 fi 17979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17980 esac 17981 fi 17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17985 CFLAGS="$xorg_testset_save_CFLAGS" 17986 fi 17987 17988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17991 fi 17992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17996 then : 17997 printf %s "(cached) " >&6 17998 else case e in #( 17999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18000 /* end confdefs.h. */ 18001 int i; 18002 _ACEOF 18003 if ac_fn_c_try_compile "$LINENO" 18004 then : 18005 xorg_cv_cc_flag_unused_command_line_argument=yes 18006 else case e in #( 18007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18008 esac 18009 fi 18010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18011 esac 18012 fi 18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18016 CFLAGS="$xorg_testset_save_CFLAGS" 18017 fi 18018 18019 found="no" 18020 18021 if test $found = "no" ; then 18022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18024 fi 18025 18026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18028 fi 18029 18030 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18031 18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18033 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18034 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18035 if eval test \${$cacheid+y} 18036 then : 18037 printf %s "(cached) " >&6 18038 else case e in #( 18039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18040 /* end confdefs.h. */ 18041 int i; 18042 int 18043 main (void) 18044 { 18045 18046 ; 18047 return 0; 18048 } 18049 _ACEOF 18050 if ac_fn_c_try_link "$LINENO" 18051 then : 18052 eval $cacheid=yes 18053 else case e in #( 18054 e) eval $cacheid=no ;; 18055 esac 18056 fi 18057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18058 conftest$ac_exeext conftest.$ac_ext ;; 18059 esac 18060 fi 18061 18062 18063 CFLAGS="$xorg_testset_save_CFLAGS" 18064 18065 eval supported=\$$cacheid 18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18067 printf "%s\n" "$supported" >&6; } 18068 if test "$supported" = "yes" ; then 18069 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18070 found="yes" 18071 fi 18072 fi 18073 18074 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18075 else 18076 { 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 18077 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;} 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 xorg_testset_save_CFLAGS="$CFLAGS" 18092 18093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18097 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18098 then : 18099 printf %s "(cached) " >&6 18100 else case e in #( 18101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18102 /* end confdefs.h. */ 18103 int i; 18104 _ACEOF 18105 if ac_fn_c_try_compile "$LINENO" 18106 then : 18107 xorg_cv_cc_flag_unknown_warning_option=yes 18108 else case e in #( 18109 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18110 esac 18111 fi 18112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18113 esac 18114 fi 18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18118 CFLAGS="$xorg_testset_save_CFLAGS" 18119 fi 18120 18121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18124 fi 18125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18129 then : 18130 printf %s "(cached) " >&6 18131 else case e in #( 18132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18133 /* end confdefs.h. */ 18134 int i; 18135 _ACEOF 18136 if ac_fn_c_try_compile "$LINENO" 18137 then : 18138 xorg_cv_cc_flag_unused_command_line_argument=yes 18139 else case e in #( 18140 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18141 esac 18142 fi 18143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18144 esac 18145 fi 18146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18149 CFLAGS="$xorg_testset_save_CFLAGS" 18150 fi 18151 18152 found="no" 18153 18154 if test $found = "no" ; then 18155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18157 fi 18158 18159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18161 fi 18162 18163 CFLAGS="$CFLAGS -Wimplicit" 18164 18165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18166 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18167 cacheid=xorg_cv_cc_flag__Wimplicit 18168 if eval test \${$cacheid+y} 18169 then : 18170 printf %s "(cached) " >&6 18171 else case e in #( 18172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18173 /* end confdefs.h. */ 18174 int i; 18175 int 18176 main (void) 18177 { 18178 18179 ; 18180 return 0; 18181 } 18182 _ACEOF 18183 if ac_fn_c_try_link "$LINENO" 18184 then : 18185 eval $cacheid=yes 18186 else case e in #( 18187 e) eval $cacheid=no ;; 18188 esac 18189 fi 18190 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18191 conftest$ac_exeext conftest.$ac_ext ;; 18192 esac 18193 fi 18194 18195 18196 CFLAGS="$xorg_testset_save_CFLAGS" 18197 18198 eval supported=\$$cacheid 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18200 printf "%s\n" "$supported" >&6; } 18201 if test "$supported" = "yes" ; then 18202 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18203 found="yes" 18204 fi 18205 fi 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 xorg_testset_save_CFLAGS="$CFLAGS" 18222 18223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18226 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18227 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18228 then : 18229 printf %s "(cached) " >&6 18230 else case e in #( 18231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18232 /* end confdefs.h. */ 18233 int i; 18234 _ACEOF 18235 if ac_fn_c_try_compile "$LINENO" 18236 then : 18237 xorg_cv_cc_flag_unknown_warning_option=yes 18238 else case e in #( 18239 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18240 esac 18241 fi 18242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18243 esac 18244 fi 18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18246 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18248 CFLAGS="$xorg_testset_save_CFLAGS" 18249 fi 18250 18251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18254 fi 18255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18257 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18258 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18259 then : 18260 printf %s "(cached) " >&6 18261 else case e in #( 18262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18263 /* end confdefs.h. */ 18264 int i; 18265 _ACEOF 18266 if ac_fn_c_try_compile "$LINENO" 18267 then : 18268 xorg_cv_cc_flag_unused_command_line_argument=yes 18269 else case e in #( 18270 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18271 esac 18272 fi 18273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18274 esac 18275 fi 18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18279 CFLAGS="$xorg_testset_save_CFLAGS" 18280 fi 18281 18282 found="no" 18283 18284 if test $found = "no" ; then 18285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18287 fi 18288 18289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18291 fi 18292 18293 CFLAGS="$CFLAGS -Wnonnull" 18294 18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18296 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18297 cacheid=xorg_cv_cc_flag__Wnonnull 18298 if eval test \${$cacheid+y} 18299 then : 18300 printf %s "(cached) " >&6 18301 else case e in #( 18302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18303 /* end confdefs.h. */ 18304 int i; 18305 int 18306 main (void) 18307 { 18308 18309 ; 18310 return 0; 18311 } 18312 _ACEOF 18313 if ac_fn_c_try_link "$LINENO" 18314 then : 18315 eval $cacheid=yes 18316 else case e in #( 18317 e) eval $cacheid=no ;; 18318 esac 18319 fi 18320 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18321 conftest$ac_exeext conftest.$ac_ext ;; 18322 esac 18323 fi 18324 18325 18326 CFLAGS="$xorg_testset_save_CFLAGS" 18327 18328 eval supported=\$$cacheid 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18330 printf "%s\n" "$supported" >&6; } 18331 if test "$supported" = "yes" ; then 18332 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18333 found="yes" 18334 fi 18335 fi 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 xorg_testset_save_CFLAGS="$CFLAGS" 18352 18353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18357 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18358 then : 18359 printf %s "(cached) " >&6 18360 else case e in #( 18361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18362 /* end confdefs.h. */ 18363 int i; 18364 _ACEOF 18365 if ac_fn_c_try_compile "$LINENO" 18366 then : 18367 xorg_cv_cc_flag_unknown_warning_option=yes 18368 else case e in #( 18369 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18370 esac 18371 fi 18372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18373 esac 18374 fi 18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18376 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18378 CFLAGS="$xorg_testset_save_CFLAGS" 18379 fi 18380 18381 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18384 fi 18385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18387 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18388 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18389 then : 18390 printf %s "(cached) " >&6 18391 else case e in #( 18392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393 /* end confdefs.h. */ 18394 int i; 18395 _ACEOF 18396 if ac_fn_c_try_compile "$LINENO" 18397 then : 18398 xorg_cv_cc_flag_unused_command_line_argument=yes 18399 else case e in #( 18400 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18401 esac 18402 fi 18403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18404 esac 18405 fi 18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18407 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18409 CFLAGS="$xorg_testset_save_CFLAGS" 18410 fi 18411 18412 found="no" 18413 18414 if test $found = "no" ; then 18415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18417 fi 18418 18419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18421 fi 18422 18423 CFLAGS="$CFLAGS -Winit-self" 18424 18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18426 printf %s "checking if $CC supports -Winit-self... " >&6; } 18427 cacheid=xorg_cv_cc_flag__Winit_self 18428 if eval test \${$cacheid+y} 18429 then : 18430 printf %s "(cached) " >&6 18431 else case e in #( 18432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18433 /* end confdefs.h. */ 18434 int i; 18435 int 18436 main (void) 18437 { 18438 18439 ; 18440 return 0; 18441 } 18442 _ACEOF 18443 if ac_fn_c_try_link "$LINENO" 18444 then : 18445 eval $cacheid=yes 18446 else case e in #( 18447 e) eval $cacheid=no ;; 18448 esac 18449 fi 18450 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18451 conftest$ac_exeext conftest.$ac_ext ;; 18452 esac 18453 fi 18454 18455 18456 CFLAGS="$xorg_testset_save_CFLAGS" 18457 18458 eval supported=\$$cacheid 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18460 printf "%s\n" "$supported" >&6; } 18461 if test "$supported" = "yes" ; then 18462 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18463 found="yes" 18464 fi 18465 fi 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 xorg_testset_save_CFLAGS="$CFLAGS" 18482 18483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18487 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18488 then : 18489 printf %s "(cached) " >&6 18490 else case e in #( 18491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18492 /* end confdefs.h. */ 18493 int i; 18494 _ACEOF 18495 if ac_fn_c_try_compile "$LINENO" 18496 then : 18497 xorg_cv_cc_flag_unknown_warning_option=yes 18498 else case e in #( 18499 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18500 esac 18501 fi 18502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18503 esac 18504 fi 18505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18508 CFLAGS="$xorg_testset_save_CFLAGS" 18509 fi 18510 18511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18514 fi 18515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18519 then : 18520 printf %s "(cached) " >&6 18521 else case e in #( 18522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18523 /* end confdefs.h. */ 18524 int i; 18525 _ACEOF 18526 if ac_fn_c_try_compile "$LINENO" 18527 then : 18528 xorg_cv_cc_flag_unused_command_line_argument=yes 18529 else case e in #( 18530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18531 esac 18532 fi 18533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18534 esac 18535 fi 18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18539 CFLAGS="$xorg_testset_save_CFLAGS" 18540 fi 18541 18542 found="no" 18543 18544 if test $found = "no" ; then 18545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18547 fi 18548 18549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18551 fi 18552 18553 CFLAGS="$CFLAGS -Wmain" 18554 18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18556 printf %s "checking if $CC supports -Wmain... " >&6; } 18557 cacheid=xorg_cv_cc_flag__Wmain 18558 if eval test \${$cacheid+y} 18559 then : 18560 printf %s "(cached) " >&6 18561 else case e in #( 18562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18563 /* end confdefs.h. */ 18564 int i; 18565 int 18566 main (void) 18567 { 18568 18569 ; 18570 return 0; 18571 } 18572 _ACEOF 18573 if ac_fn_c_try_link "$LINENO" 18574 then : 18575 eval $cacheid=yes 18576 else case e in #( 18577 e) eval $cacheid=no ;; 18578 esac 18579 fi 18580 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18581 conftest$ac_exeext conftest.$ac_ext ;; 18582 esac 18583 fi 18584 18585 18586 CFLAGS="$xorg_testset_save_CFLAGS" 18587 18588 eval supported=\$$cacheid 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18590 printf "%s\n" "$supported" >&6; } 18591 if test "$supported" = "yes" ; then 18592 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18593 found="yes" 18594 fi 18595 fi 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 xorg_testset_save_CFLAGS="$CFLAGS" 18612 18613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18617 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18618 then : 18619 printf %s "(cached) " >&6 18620 else case e in #( 18621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18622 /* end confdefs.h. */ 18623 int i; 18624 _ACEOF 18625 if ac_fn_c_try_compile "$LINENO" 18626 then : 18627 xorg_cv_cc_flag_unknown_warning_option=yes 18628 else case e in #( 18629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18630 esac 18631 fi 18632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18633 esac 18634 fi 18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18638 CFLAGS="$xorg_testset_save_CFLAGS" 18639 fi 18640 18641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18644 fi 18645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18649 then : 18650 printf %s "(cached) " >&6 18651 else case e in #( 18652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18653 /* end confdefs.h. */ 18654 int i; 18655 _ACEOF 18656 if ac_fn_c_try_compile "$LINENO" 18657 then : 18658 xorg_cv_cc_flag_unused_command_line_argument=yes 18659 else case e in #( 18660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18661 esac 18662 fi 18663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18664 esac 18665 fi 18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18669 CFLAGS="$xorg_testset_save_CFLAGS" 18670 fi 18671 18672 found="no" 18673 18674 if test $found = "no" ; then 18675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18677 fi 18678 18679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18681 fi 18682 18683 CFLAGS="$CFLAGS -Wmissing-braces" 18684 18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18686 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18687 cacheid=xorg_cv_cc_flag__Wmissing_braces 18688 if eval test \${$cacheid+y} 18689 then : 18690 printf %s "(cached) " >&6 18691 else case e in #( 18692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18693 /* end confdefs.h. */ 18694 int i; 18695 int 18696 main (void) 18697 { 18698 18699 ; 18700 return 0; 18701 } 18702 _ACEOF 18703 if ac_fn_c_try_link "$LINENO" 18704 then : 18705 eval $cacheid=yes 18706 else case e in #( 18707 e) eval $cacheid=no ;; 18708 esac 18709 fi 18710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18711 conftest$ac_exeext conftest.$ac_ext ;; 18712 esac 18713 fi 18714 18715 18716 CFLAGS="$xorg_testset_save_CFLAGS" 18717 18718 eval supported=\$$cacheid 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18720 printf "%s\n" "$supported" >&6; } 18721 if test "$supported" = "yes" ; then 18722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18723 found="yes" 18724 fi 18725 fi 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 xorg_testset_save_CFLAGS="$CFLAGS" 18742 18743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18747 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18748 then : 18749 printf %s "(cached) " >&6 18750 else case e in #( 18751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18752 /* end confdefs.h. */ 18753 int i; 18754 _ACEOF 18755 if ac_fn_c_try_compile "$LINENO" 18756 then : 18757 xorg_cv_cc_flag_unknown_warning_option=yes 18758 else case e in #( 18759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18760 esac 18761 fi 18762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18763 esac 18764 fi 18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18768 CFLAGS="$xorg_testset_save_CFLAGS" 18769 fi 18770 18771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18774 fi 18775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18779 then : 18780 printf %s "(cached) " >&6 18781 else case e in #( 18782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18783 /* end confdefs.h. */ 18784 int i; 18785 _ACEOF 18786 if ac_fn_c_try_compile "$LINENO" 18787 then : 18788 xorg_cv_cc_flag_unused_command_line_argument=yes 18789 else case e in #( 18790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18791 esac 18792 fi 18793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18794 esac 18795 fi 18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18799 CFLAGS="$xorg_testset_save_CFLAGS" 18800 fi 18801 18802 found="no" 18803 18804 if test $found = "no" ; then 18805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18807 fi 18808 18809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18811 fi 18812 18813 CFLAGS="$CFLAGS -Wsequence-point" 18814 18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18816 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18817 cacheid=xorg_cv_cc_flag__Wsequence_point 18818 if eval test \${$cacheid+y} 18819 then : 18820 printf %s "(cached) " >&6 18821 else case e in #( 18822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18823 /* end confdefs.h. */ 18824 int i; 18825 int 18826 main (void) 18827 { 18828 18829 ; 18830 return 0; 18831 } 18832 _ACEOF 18833 if ac_fn_c_try_link "$LINENO" 18834 then : 18835 eval $cacheid=yes 18836 else case e in #( 18837 e) eval $cacheid=no ;; 18838 esac 18839 fi 18840 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18841 conftest$ac_exeext conftest.$ac_ext ;; 18842 esac 18843 fi 18844 18845 18846 CFLAGS="$xorg_testset_save_CFLAGS" 18847 18848 eval supported=\$$cacheid 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18850 printf "%s\n" "$supported" >&6; } 18851 if test "$supported" = "yes" ; then 18852 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18853 found="yes" 18854 fi 18855 fi 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 xorg_testset_save_CFLAGS="$CFLAGS" 18872 18873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18878 then : 18879 printf %s "(cached) " >&6 18880 else case e in #( 18881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18882 /* end confdefs.h. */ 18883 int i; 18884 _ACEOF 18885 if ac_fn_c_try_compile "$LINENO" 18886 then : 18887 xorg_cv_cc_flag_unknown_warning_option=yes 18888 else case e in #( 18889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18890 esac 18891 fi 18892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18893 esac 18894 fi 18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18898 CFLAGS="$xorg_testset_save_CFLAGS" 18899 fi 18900 18901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18904 fi 18905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18909 then : 18910 printf %s "(cached) " >&6 18911 else case e in #( 18912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18913 /* end confdefs.h. */ 18914 int i; 18915 _ACEOF 18916 if ac_fn_c_try_compile "$LINENO" 18917 then : 18918 xorg_cv_cc_flag_unused_command_line_argument=yes 18919 else case e in #( 18920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18921 esac 18922 fi 18923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18924 esac 18925 fi 18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18929 CFLAGS="$xorg_testset_save_CFLAGS" 18930 fi 18931 18932 found="no" 18933 18934 if test $found = "no" ; then 18935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18937 fi 18938 18939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18941 fi 18942 18943 CFLAGS="$CFLAGS -Wreturn-type" 18944 18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18946 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18947 cacheid=xorg_cv_cc_flag__Wreturn_type 18948 if eval test \${$cacheid+y} 18949 then : 18950 printf %s "(cached) " >&6 18951 else case e in #( 18952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953 /* end confdefs.h. */ 18954 int i; 18955 int 18956 main (void) 18957 { 18958 18959 ; 18960 return 0; 18961 } 18962 _ACEOF 18963 if ac_fn_c_try_link "$LINENO" 18964 then : 18965 eval $cacheid=yes 18966 else case e in #( 18967 e) eval $cacheid=no ;; 18968 esac 18969 fi 18970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18971 conftest$ac_exeext conftest.$ac_ext ;; 18972 esac 18973 fi 18974 18975 18976 CFLAGS="$xorg_testset_save_CFLAGS" 18977 18978 eval supported=\$$cacheid 18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18980 printf "%s\n" "$supported" >&6; } 18981 if test "$supported" = "yes" ; then 18982 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18983 found="yes" 18984 fi 18985 fi 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 xorg_testset_save_CFLAGS="$CFLAGS" 19002 19003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19007 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19008 then : 19009 printf %s "(cached) " >&6 19010 else case e in #( 19011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19012 /* end confdefs.h. */ 19013 int i; 19014 _ACEOF 19015 if ac_fn_c_try_compile "$LINENO" 19016 then : 19017 xorg_cv_cc_flag_unknown_warning_option=yes 19018 else case e in #( 19019 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19020 esac 19021 fi 19022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19023 esac 19024 fi 19025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19028 CFLAGS="$xorg_testset_save_CFLAGS" 19029 fi 19030 19031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19034 fi 19035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19039 then : 19040 printf %s "(cached) " >&6 19041 else case e in #( 19042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19043 /* end confdefs.h. */ 19044 int i; 19045 _ACEOF 19046 if ac_fn_c_try_compile "$LINENO" 19047 then : 19048 xorg_cv_cc_flag_unused_command_line_argument=yes 19049 else case e in #( 19050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19051 esac 19052 fi 19053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19054 esac 19055 fi 19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19059 CFLAGS="$xorg_testset_save_CFLAGS" 19060 fi 19061 19062 found="no" 19063 19064 if test $found = "no" ; then 19065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19067 fi 19068 19069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19071 fi 19072 19073 CFLAGS="$CFLAGS -Wtrigraphs" 19074 19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19076 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19077 cacheid=xorg_cv_cc_flag__Wtrigraphs 19078 if eval test \${$cacheid+y} 19079 then : 19080 printf %s "(cached) " >&6 19081 else case e in #( 19082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19083 /* end confdefs.h. */ 19084 int i; 19085 int 19086 main (void) 19087 { 19088 19089 ; 19090 return 0; 19091 } 19092 _ACEOF 19093 if ac_fn_c_try_link "$LINENO" 19094 then : 19095 eval $cacheid=yes 19096 else case e in #( 19097 e) eval $cacheid=no ;; 19098 esac 19099 fi 19100 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19101 conftest$ac_exeext conftest.$ac_ext ;; 19102 esac 19103 fi 19104 19105 19106 CFLAGS="$xorg_testset_save_CFLAGS" 19107 19108 eval supported=\$$cacheid 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19110 printf "%s\n" "$supported" >&6; } 19111 if test "$supported" = "yes" ; then 19112 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19113 found="yes" 19114 fi 19115 fi 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 xorg_testset_save_CFLAGS="$CFLAGS" 19132 19133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19137 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19138 then : 19139 printf %s "(cached) " >&6 19140 else case e in #( 19141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19142 /* end confdefs.h. */ 19143 int i; 19144 _ACEOF 19145 if ac_fn_c_try_compile "$LINENO" 19146 then : 19147 xorg_cv_cc_flag_unknown_warning_option=yes 19148 else case e in #( 19149 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19150 esac 19151 fi 19152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19153 esac 19154 fi 19155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19158 CFLAGS="$xorg_testset_save_CFLAGS" 19159 fi 19160 19161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19164 fi 19165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19169 then : 19170 printf %s "(cached) " >&6 19171 else case e in #( 19172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19173 /* end confdefs.h. */ 19174 int i; 19175 _ACEOF 19176 if ac_fn_c_try_compile "$LINENO" 19177 then : 19178 xorg_cv_cc_flag_unused_command_line_argument=yes 19179 else case e in #( 19180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19181 esac 19182 fi 19183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19184 esac 19185 fi 19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19189 CFLAGS="$xorg_testset_save_CFLAGS" 19190 fi 19191 19192 found="no" 19193 19194 if test $found = "no" ; then 19195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19197 fi 19198 19199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19201 fi 19202 19203 CFLAGS="$CFLAGS -Warray-bounds" 19204 19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19206 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19207 cacheid=xorg_cv_cc_flag__Warray_bounds 19208 if eval test \${$cacheid+y} 19209 then : 19210 printf %s "(cached) " >&6 19211 else case e in #( 19212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19213 /* end confdefs.h. */ 19214 int i; 19215 int 19216 main (void) 19217 { 19218 19219 ; 19220 return 0; 19221 } 19222 _ACEOF 19223 if ac_fn_c_try_link "$LINENO" 19224 then : 19225 eval $cacheid=yes 19226 else case e in #( 19227 e) eval $cacheid=no ;; 19228 esac 19229 fi 19230 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19231 conftest$ac_exeext conftest.$ac_ext ;; 19232 esac 19233 fi 19234 19235 19236 CFLAGS="$xorg_testset_save_CFLAGS" 19237 19238 eval supported=\$$cacheid 19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19240 printf "%s\n" "$supported" >&6; } 19241 if test "$supported" = "yes" ; then 19242 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19243 found="yes" 19244 fi 19245 fi 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 xorg_testset_save_CFLAGS="$CFLAGS" 19262 19263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19267 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19268 then : 19269 printf %s "(cached) " >&6 19270 else case e in #( 19271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19272 /* end confdefs.h. */ 19273 int i; 19274 _ACEOF 19275 if ac_fn_c_try_compile "$LINENO" 19276 then : 19277 xorg_cv_cc_flag_unknown_warning_option=yes 19278 else case e in #( 19279 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19280 esac 19281 fi 19282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19283 esac 19284 fi 19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19288 CFLAGS="$xorg_testset_save_CFLAGS" 19289 fi 19290 19291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19294 fi 19295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19299 then : 19300 printf %s "(cached) " >&6 19301 else case e in #( 19302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19303 /* end confdefs.h. */ 19304 int i; 19305 _ACEOF 19306 if ac_fn_c_try_compile "$LINENO" 19307 then : 19308 xorg_cv_cc_flag_unused_command_line_argument=yes 19309 else case e in #( 19310 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19311 esac 19312 fi 19313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19314 esac 19315 fi 19316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19319 CFLAGS="$xorg_testset_save_CFLAGS" 19320 fi 19321 19322 found="no" 19323 19324 if test $found = "no" ; then 19325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19327 fi 19328 19329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19331 fi 19332 19333 CFLAGS="$CFLAGS -Wwrite-strings" 19334 19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19336 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19337 cacheid=xorg_cv_cc_flag__Wwrite_strings 19338 if eval test \${$cacheid+y} 19339 then : 19340 printf %s "(cached) " >&6 19341 else case e in #( 19342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19343 /* end confdefs.h. */ 19344 int i; 19345 int 19346 main (void) 19347 { 19348 19349 ; 19350 return 0; 19351 } 19352 _ACEOF 19353 if ac_fn_c_try_link "$LINENO" 19354 then : 19355 eval $cacheid=yes 19356 else case e in #( 19357 e) eval $cacheid=no ;; 19358 esac 19359 fi 19360 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19361 conftest$ac_exeext conftest.$ac_ext ;; 19362 esac 19363 fi 19364 19365 19366 CFLAGS="$xorg_testset_save_CFLAGS" 19367 19368 eval supported=\$$cacheid 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19370 printf "%s\n" "$supported" >&6; } 19371 if test "$supported" = "yes" ; then 19372 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19373 found="yes" 19374 fi 19375 fi 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 xorg_testset_save_CFLAGS="$CFLAGS" 19392 19393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19396 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19397 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19398 then : 19399 printf %s "(cached) " >&6 19400 else case e in #( 19401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19402 /* end confdefs.h. */ 19403 int i; 19404 _ACEOF 19405 if ac_fn_c_try_compile "$LINENO" 19406 then : 19407 xorg_cv_cc_flag_unknown_warning_option=yes 19408 else case e in #( 19409 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19410 esac 19411 fi 19412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19413 esac 19414 fi 19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19418 CFLAGS="$xorg_testset_save_CFLAGS" 19419 fi 19420 19421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19424 fi 19425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19429 then : 19430 printf %s "(cached) " >&6 19431 else case e in #( 19432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19433 /* end confdefs.h. */ 19434 int i; 19435 _ACEOF 19436 if ac_fn_c_try_compile "$LINENO" 19437 then : 19438 xorg_cv_cc_flag_unused_command_line_argument=yes 19439 else case e in #( 19440 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19441 esac 19442 fi 19443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19444 esac 19445 fi 19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19449 CFLAGS="$xorg_testset_save_CFLAGS" 19450 fi 19451 19452 found="no" 19453 19454 if test $found = "no" ; then 19455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19457 fi 19458 19459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19461 fi 19462 19463 CFLAGS="$CFLAGS -Waddress" 19464 19465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19466 printf %s "checking if $CC supports -Waddress... " >&6; } 19467 cacheid=xorg_cv_cc_flag__Waddress 19468 if eval test \${$cacheid+y} 19469 then : 19470 printf %s "(cached) " >&6 19471 else case e in #( 19472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19473 /* end confdefs.h. */ 19474 int i; 19475 int 19476 main (void) 19477 { 19478 19479 ; 19480 return 0; 19481 } 19482 _ACEOF 19483 if ac_fn_c_try_link "$LINENO" 19484 then : 19485 eval $cacheid=yes 19486 else case e in #( 19487 e) eval $cacheid=no ;; 19488 esac 19489 fi 19490 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19491 conftest$ac_exeext conftest.$ac_ext ;; 19492 esac 19493 fi 19494 19495 19496 CFLAGS="$xorg_testset_save_CFLAGS" 19497 19498 eval supported=\$$cacheid 19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19500 printf "%s\n" "$supported" >&6; } 19501 if test "$supported" = "yes" ; then 19502 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19503 found="yes" 19504 fi 19505 fi 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 xorg_testset_save_CFLAGS="$CFLAGS" 19522 19523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19527 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19528 then : 19529 printf %s "(cached) " >&6 19530 else case e in #( 19531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19532 /* end confdefs.h. */ 19533 int i; 19534 _ACEOF 19535 if ac_fn_c_try_compile "$LINENO" 19536 then : 19537 xorg_cv_cc_flag_unknown_warning_option=yes 19538 else case e in #( 19539 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19540 esac 19541 fi 19542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19543 esac 19544 fi 19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19546 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19548 CFLAGS="$xorg_testset_save_CFLAGS" 19549 fi 19550 19551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19554 fi 19555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19557 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19558 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19559 then : 19560 printf %s "(cached) " >&6 19561 else case e in #( 19562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19563 /* end confdefs.h. */ 19564 int i; 19565 _ACEOF 19566 if ac_fn_c_try_compile "$LINENO" 19567 then : 19568 xorg_cv_cc_flag_unused_command_line_argument=yes 19569 else case e in #( 19570 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19571 esac 19572 fi 19573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19574 esac 19575 fi 19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19577 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19579 CFLAGS="$xorg_testset_save_CFLAGS" 19580 fi 19581 19582 found="no" 19583 19584 if test $found = "no" ; then 19585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19587 fi 19588 19589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19591 fi 19592 19593 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19594 19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19596 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19597 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19598 if eval test \${$cacheid+y} 19599 then : 19600 printf %s "(cached) " >&6 19601 else case e in #( 19602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19603 /* end confdefs.h. */ 19604 int i; 19605 int 19606 main (void) 19607 { 19608 19609 ; 19610 return 0; 19611 } 19612 _ACEOF 19613 if ac_fn_c_try_link "$LINENO" 19614 then : 19615 eval $cacheid=yes 19616 else case e in #( 19617 e) eval $cacheid=no ;; 19618 esac 19619 fi 19620 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19621 conftest$ac_exeext conftest.$ac_ext ;; 19622 esac 19623 fi 19624 19625 19626 CFLAGS="$xorg_testset_save_CFLAGS" 19627 19628 eval supported=\$$cacheid 19629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19630 printf "%s\n" "$supported" >&6; } 19631 if test "$supported" = "yes" ; then 19632 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19633 found="yes" 19634 fi 19635 fi 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 xorg_testset_save_CFLAGS="$CFLAGS" 19652 19653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19656 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19657 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19658 then : 19659 printf %s "(cached) " >&6 19660 else case e in #( 19661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19662 /* end confdefs.h. */ 19663 int i; 19664 _ACEOF 19665 if ac_fn_c_try_compile "$LINENO" 19666 then : 19667 xorg_cv_cc_flag_unknown_warning_option=yes 19668 else case e in #( 19669 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19670 esac 19671 fi 19672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19673 esac 19674 fi 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19676 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19678 CFLAGS="$xorg_testset_save_CFLAGS" 19679 fi 19680 19681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19684 fi 19685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19687 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19688 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19689 then : 19690 printf %s "(cached) " >&6 19691 else case e in #( 19692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19693 /* end confdefs.h. */ 19694 int i; 19695 _ACEOF 19696 if ac_fn_c_try_compile "$LINENO" 19697 then : 19698 xorg_cv_cc_flag_unused_command_line_argument=yes 19699 else case e in #( 19700 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19701 esac 19702 fi 19703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19704 esac 19705 fi 19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19707 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19709 CFLAGS="$xorg_testset_save_CFLAGS" 19710 fi 19711 19712 found="no" 19713 19714 if test $found = "no" ; then 19715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19717 fi 19718 19719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19721 fi 19722 19723 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19724 19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19726 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19727 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19728 if eval test \${$cacheid+y} 19729 then : 19730 printf %s "(cached) " >&6 19731 else case e in #( 19732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19733 /* end confdefs.h. */ 19734 int i; 19735 int 19736 main (void) 19737 { 19738 19739 ; 19740 return 0; 19741 } 19742 _ACEOF 19743 if ac_fn_c_try_link "$LINENO" 19744 then : 19745 eval $cacheid=yes 19746 else case e in #( 19747 e) eval $cacheid=no ;; 19748 esac 19749 fi 19750 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19751 conftest$ac_exeext conftest.$ac_ext ;; 19752 esac 19753 fi 19754 19755 19756 CFLAGS="$xorg_testset_save_CFLAGS" 19757 19758 eval supported=\$$cacheid 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19760 printf "%s\n" "$supported" >&6; } 19761 if test "$supported" = "yes" ; then 19762 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19763 found="yes" 19764 fi 19765 fi 19766 19767 19768 fi 19769 19770 19771 19772 19773 19774 19775 19776 CWARNFLAGS="$BASE_CFLAGS" 19777 if test "x$GCC" = xyes ; then 19778 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19779 fi 19780 19781 19782 19783 19784 19785 19786 19787 19788 # Check whether --enable-strict-compilation was given. 19789 if test ${enable_strict_compilation+y} 19790 then : 19791 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19792 else case e in #( 19793 e) STRICT_COMPILE=no ;; 19794 esac 19795 fi 19796 19797 19798 19799 19800 19801 19802 STRICT_CFLAGS="" 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 xorg_testset_save_CFLAGS="$CFLAGS" 19817 19818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19822 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19823 then : 19824 printf %s "(cached) " >&6 19825 else case e in #( 19826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19827 /* end confdefs.h. */ 19828 int i; 19829 _ACEOF 19830 if ac_fn_c_try_compile "$LINENO" 19831 then : 19832 xorg_cv_cc_flag_unknown_warning_option=yes 19833 else case e in #( 19834 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19835 esac 19836 fi 19837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19838 esac 19839 fi 19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19843 CFLAGS="$xorg_testset_save_CFLAGS" 19844 fi 19845 19846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19849 fi 19850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19854 then : 19855 printf %s "(cached) " >&6 19856 else case e in #( 19857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19858 /* end confdefs.h. */ 19859 int i; 19860 _ACEOF 19861 if ac_fn_c_try_compile "$LINENO" 19862 then : 19863 xorg_cv_cc_flag_unused_command_line_argument=yes 19864 else case e in #( 19865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19866 esac 19867 fi 19868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19869 esac 19870 fi 19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19874 CFLAGS="$xorg_testset_save_CFLAGS" 19875 fi 19876 19877 found="no" 19878 19879 if test $found = "no" ; then 19880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19882 fi 19883 19884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19886 fi 19887 19888 CFLAGS="$CFLAGS -pedantic" 19889 19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19891 printf %s "checking if $CC supports -pedantic... " >&6; } 19892 cacheid=xorg_cv_cc_flag__pedantic 19893 if eval test \${$cacheid+y} 19894 then : 19895 printf %s "(cached) " >&6 19896 else case e in #( 19897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19898 /* end confdefs.h. */ 19899 int i; 19900 int 19901 main (void) 19902 { 19903 19904 ; 19905 return 0; 19906 } 19907 _ACEOF 19908 if ac_fn_c_try_link "$LINENO" 19909 then : 19910 eval $cacheid=yes 19911 else case e in #( 19912 e) eval $cacheid=no ;; 19913 esac 19914 fi 19915 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19916 conftest$ac_exeext conftest.$ac_ext ;; 19917 esac 19918 fi 19919 19920 19921 CFLAGS="$xorg_testset_save_CFLAGS" 19922 19923 eval supported=\$$cacheid 19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19925 printf "%s\n" "$supported" >&6; } 19926 if test "$supported" = "yes" ; then 19927 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19928 found="yes" 19929 fi 19930 fi 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 xorg_testset_save_CFLAGS="$CFLAGS" 19947 19948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19952 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19953 then : 19954 printf %s "(cached) " >&6 19955 else case e in #( 19956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19957 /* end confdefs.h. */ 19958 int i; 19959 _ACEOF 19960 if ac_fn_c_try_compile "$LINENO" 19961 then : 19962 xorg_cv_cc_flag_unknown_warning_option=yes 19963 else case e in #( 19964 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19965 esac 19966 fi 19967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19968 esac 19969 fi 19970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19973 CFLAGS="$xorg_testset_save_CFLAGS" 19974 fi 19975 19976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19979 fi 19980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19984 then : 19985 printf %s "(cached) " >&6 19986 else case e in #( 19987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19988 /* end confdefs.h. */ 19989 int i; 19990 _ACEOF 19991 if ac_fn_c_try_compile "$LINENO" 19992 then : 19993 xorg_cv_cc_flag_unused_command_line_argument=yes 19994 else case e in #( 19995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19996 esac 19997 fi 19998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19999 esac 20000 fi 20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20004 CFLAGS="$xorg_testset_save_CFLAGS" 20005 fi 20006 20007 found="no" 20008 20009 if test $found = "no" ; then 20010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20012 fi 20013 20014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20016 fi 20017 20018 CFLAGS="$CFLAGS -Werror" 20019 20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20021 printf %s "checking if $CC supports -Werror... " >&6; } 20022 cacheid=xorg_cv_cc_flag__Werror 20023 if eval test \${$cacheid+y} 20024 then : 20025 printf %s "(cached) " >&6 20026 else case e in #( 20027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20028 /* end confdefs.h. */ 20029 int i; 20030 int 20031 main (void) 20032 { 20033 20034 ; 20035 return 0; 20036 } 20037 _ACEOF 20038 if ac_fn_c_try_link "$LINENO" 20039 then : 20040 eval $cacheid=yes 20041 else case e in #( 20042 e) eval $cacheid=no ;; 20043 esac 20044 fi 20045 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20046 conftest$ac_exeext conftest.$ac_ext ;; 20047 esac 20048 fi 20049 20050 20051 CFLAGS="$xorg_testset_save_CFLAGS" 20052 20053 eval supported=\$$cacheid 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20055 printf "%s\n" "$supported" >&6; } 20056 if test "$supported" = "yes" ; then 20057 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20058 found="yes" 20059 fi 20060 fi 20061 20062 if test $found = "no" ; then 20063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20065 fi 20066 20067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20069 fi 20070 20071 CFLAGS="$CFLAGS -errwarn" 20072 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20074 printf %s "checking if $CC supports -errwarn... " >&6; } 20075 cacheid=xorg_cv_cc_flag__errwarn 20076 if eval test \${$cacheid+y} 20077 then : 20078 printf %s "(cached) " >&6 20079 else case e in #( 20080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20081 /* end confdefs.h. */ 20082 int i; 20083 int 20084 main (void) 20085 { 20086 20087 ; 20088 return 0; 20089 } 20090 _ACEOF 20091 if ac_fn_c_try_link "$LINENO" 20092 then : 20093 eval $cacheid=yes 20094 else case e in #( 20095 e) eval $cacheid=no ;; 20096 esac 20097 fi 20098 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20099 conftest$ac_exeext conftest.$ac_ext ;; 20100 esac 20101 fi 20102 20103 20104 CFLAGS="$xorg_testset_save_CFLAGS" 20105 20106 eval supported=\$$cacheid 20107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20108 printf "%s\n" "$supported" >&6; } 20109 if test "$supported" = "yes" ; then 20110 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20111 found="yes" 20112 fi 20113 fi 20114 20115 20116 20117 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20118 # activate it with -Werror, so we add it here explicitly. 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 xorg_testset_save_CFLAGS="$CFLAGS" 20133 20134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20138 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20139 then : 20140 printf %s "(cached) " >&6 20141 else case e in #( 20142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20143 /* end confdefs.h. */ 20144 int i; 20145 _ACEOF 20146 if ac_fn_c_try_compile "$LINENO" 20147 then : 20148 xorg_cv_cc_flag_unknown_warning_option=yes 20149 else case e in #( 20150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20151 esac 20152 fi 20153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20154 esac 20155 fi 20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20159 CFLAGS="$xorg_testset_save_CFLAGS" 20160 fi 20161 20162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20165 fi 20166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20170 then : 20171 printf %s "(cached) " >&6 20172 else case e in #( 20173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20174 /* end confdefs.h. */ 20175 int i; 20176 _ACEOF 20177 if ac_fn_c_try_compile "$LINENO" 20178 then : 20179 xorg_cv_cc_flag_unused_command_line_argument=yes 20180 else case e in #( 20181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20182 esac 20183 fi 20184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20185 esac 20186 fi 20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20190 CFLAGS="$xorg_testset_save_CFLAGS" 20191 fi 20192 20193 found="no" 20194 20195 if test $found = "no" ; then 20196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20198 fi 20199 20200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20202 fi 20203 20204 CFLAGS="$CFLAGS -Werror=attributes" 20205 20206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20207 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20208 cacheid=xorg_cv_cc_flag__Werror_attributes 20209 if eval test \${$cacheid+y} 20210 then : 20211 printf %s "(cached) " >&6 20212 else case e in #( 20213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20214 /* end confdefs.h. */ 20215 int i; 20216 int 20217 main (void) 20218 { 20219 20220 ; 20221 return 0; 20222 } 20223 _ACEOF 20224 if ac_fn_c_try_link "$LINENO" 20225 then : 20226 eval $cacheid=yes 20227 else case e in #( 20228 e) eval $cacheid=no ;; 20229 esac 20230 fi 20231 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20232 conftest$ac_exeext conftest.$ac_ext ;; 20233 esac 20234 fi 20235 20236 20237 CFLAGS="$xorg_testset_save_CFLAGS" 20238 20239 eval supported=\$$cacheid 20240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20241 printf "%s\n" "$supported" >&6; } 20242 if test "$supported" = "yes" ; then 20243 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20244 found="yes" 20245 fi 20246 fi 20247 20248 20249 20250 if test "x$STRICT_COMPILE" = "xyes"; then 20251 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20252 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20253 fi 20254 20255 20256 20257 20258 20259 20260 20261 20262 cat >>confdefs.h <<_ACEOF 20263 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20264 _ACEOF 20265 20266 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20267 if test "x$PVM" = "x"; then 20268 PVM="0" 20269 fi 20270 20271 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20272 20273 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20274 if test "x$PVP" = "x"; then 20275 PVP="0" 20276 fi 20277 20278 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20279 20280 20281 20282 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20283 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20284 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20285 touch \$(top_srcdir)/ChangeLog; \ 20286 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20287 20288 20289 20290 20291 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20292 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20293 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20294 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20295 touch \$(top_srcdir)/INSTALL; \ 20296 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20297 20298 20299 20300 20301 20302 20303 case $host_os in 20304 solaris*) 20305 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20306 # check for a man page file found in later versions that use 20307 # traditional section numbers instead 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20309 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20310 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20311 then : 20312 printf %s "(cached) " >&6 20313 else case e in #( 20314 e) test "$cross_compiling" = yes && 20315 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20316 if test -r "/usr/share/man/man7/attributes.7"; then 20317 ac_cv_file__usr_share_man_man7_attributes_7=yes 20318 else 20319 ac_cv_file__usr_share_man_man7_attributes_7=no 20320 fi ;; 20321 esac 20322 fi 20323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20324 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20325 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20326 then : 20327 SYSV_MAN_SECTIONS=false 20328 else case e in #( 20329 e) SYSV_MAN_SECTIONS=true ;; 20330 esac 20331 fi 20332 20333 ;; 20334 *) SYSV_MAN_SECTIONS=false ;; 20335 esac 20336 20337 if test x$APP_MAN_SUFFIX = x ; then 20338 APP_MAN_SUFFIX=1 20339 fi 20340 if test x$APP_MAN_DIR = x ; then 20341 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20342 fi 20343 20344 if test x$LIB_MAN_SUFFIX = x ; then 20345 LIB_MAN_SUFFIX=3 20346 fi 20347 if test x$LIB_MAN_DIR = x ; then 20348 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20349 fi 20350 20351 if test x$FILE_MAN_SUFFIX = x ; then 20352 case $SYSV_MAN_SECTIONS in 20353 true) FILE_MAN_SUFFIX=4 ;; 20354 *) FILE_MAN_SUFFIX=5 ;; 20355 esac 20356 fi 20357 if test x$FILE_MAN_DIR = x ; then 20358 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20359 fi 20360 20361 if test x$MISC_MAN_SUFFIX = x ; then 20362 case $SYSV_MAN_SECTIONS in 20363 true) MISC_MAN_SUFFIX=5 ;; 20364 *) MISC_MAN_SUFFIX=7 ;; 20365 esac 20366 fi 20367 if test x$MISC_MAN_DIR = x ; then 20368 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20369 fi 20370 20371 if test x$DRIVER_MAN_SUFFIX = x ; then 20372 case $SYSV_MAN_SECTIONS in 20373 true) DRIVER_MAN_SUFFIX=7 ;; 20374 *) DRIVER_MAN_SUFFIX=4 ;; 20375 esac 20376 fi 20377 if test x$DRIVER_MAN_DIR = x ; then 20378 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20379 fi 20380 20381 if test x$ADMIN_MAN_SUFFIX = x ; then 20382 case $SYSV_MAN_SECTIONS in 20383 true) ADMIN_MAN_SUFFIX=1m ;; 20384 *) ADMIN_MAN_SUFFIX=8 ;; 20385 esac 20386 fi 20387 if test x$ADMIN_MAN_DIR = x ; then 20388 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20389 fi 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 XORG_MAN_PAGE="X Version 11" 20406 20407 MAN_SUBSTS="\ 20408 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20409 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20410 -e 's|__xservername__|Xorg|g' \ 20411 -e 's|__xconfigfile__|xorg.conf|g' \ 20412 -e 's|__projectroot__|\$(prefix)|g' \ 20413 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20414 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20415 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20416 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20417 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20418 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20419 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20420 20421 20422 20423 20424 AM_DEFAULT_VERBOSITY=0 20425 20426 20427 20428 20429 20430 # Check whether --enable-malloc0returnsnull was given. 20431 if test ${enable_malloc0returnsnull+y} 20432 then : 20433 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20434 else case e in #( 20435 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 20436 esac 20437 fi 20438 20439 20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 20441 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20443 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20444 20445 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20446 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20447 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20448 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20449 else 20450 MALLOC_ZERO_CFLAGS="" 20451 XMALLOC_ZERO_CFLAGS="" 20452 XTMALLOC_ZERO_CFLAGS="" 20453 fi 20454 20455 20456 20457 20458 20459 20460 # Obtain compiler/linker options for dependencies 20461 20462 pkg_failed=no 20463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5 20464 printf %s "checking for XRES... " >&6; } 20465 20466 if test -n "$XRES_CFLAGS"; then 20467 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS" 20468 elif test -n "$PKG_CONFIG"; then 20469 if test -n "$PKG_CONFIG" && \ 20470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0\""; } >&5 20471 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0") 2>&5 20472 ac_status=$? 20473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20474 test $ac_status = 0; }; then 20475 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0" 2>/dev/null` 20476 test "x$?" != "x0" && pkg_failed=yes 20477 else 20478 pkg_failed=yes 20479 fi 20480 else 20481 pkg_failed=untried 20482 fi 20483 if test -n "$XRES_LIBS"; then 20484 pkg_cv_XRES_LIBS="$XRES_LIBS" 20485 elif test -n "$PKG_CONFIG"; then 20486 if test -n "$PKG_CONFIG" && \ 20487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0\""; } >&5 20488 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0") 2>&5 20489 ac_status=$? 20490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20491 test $ac_status = 0; }; then 20492 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0" 2>/dev/null` 20493 test "x$?" != "x0" && pkg_failed=yes 20494 else 20495 pkg_failed=yes 20496 fi 20497 else 20498 pkg_failed=untried 20499 fi 20500 20501 20502 20503 if test $pkg_failed = yes; then 20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20505 printf "%s\n" "no" >&6; } 20506 20507 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20508 _pkg_short_errors_supported=yes 20509 else 20510 _pkg_short_errors_supported=no 20511 fi 20512 if test $_pkg_short_errors_supported = yes; then 20513 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0" 2>&1` 20514 else 20515 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0" 2>&1` 20516 fi 20517 # Put the nasty error message in config.log where it belongs 20518 echo "$XRES_PKG_ERRORS" >&5 20519 20520 as_fn_error $? "Package requirements (x11 >= 1.6 xproto xext xextproto resourceproto >= 1.2.0) were not met: 20521 20522 $XRES_PKG_ERRORS 20523 20524 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20525 installed software in a non-standard prefix. 20526 20527 Alternatively, you may set the environment variables XRES_CFLAGS 20528 and XRES_LIBS to avoid the need to call pkg-config. 20529 See the pkg-config man page for more details." "$LINENO" 5 20530 elif test $pkg_failed = untried; then 20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20532 printf "%s\n" "no" >&6; } 20533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20534 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20535 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20536 is in your PATH or set the PKG_CONFIG environment variable to the full 20537 path to pkg-config. 20538 20539 Alternatively, you may set the environment variables XRES_CFLAGS 20540 and XRES_LIBS to avoid the need to call pkg-config. 20541 See the pkg-config man page for more details. 20542 20543 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20544 See 'config.log' for more details" "$LINENO" 5; } 20545 else 20546 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS 20547 XRES_LIBS=$pkg_cv_XRES_LIBS 20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20549 printf "%s\n" "yes" >&6; } 20550 20551 fi 20552 20553 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc" 20554 20555 cat >confcache <<\_ACEOF 20556 # This file is a shell script that caches the results of configure 20557 # tests run on this system so they can be shared between configure 20558 # scripts and configure runs, see configure's option --config-cache. 20559 # It is not useful on other systems. If it contains results you don't 20560 # want to keep, you may remove or edit it. 20561 # 20562 # config.status only pays attention to the cache file if you give it 20563 # the --recheck option to rerun configure. 20564 # 20565 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20566 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20567 # following values. 20568 20569 _ACEOF 20570 20571 # The following way of writing the cache mishandles newlines in values, 20572 # but we know of no workaround that is simple, portable, and efficient. 20573 # So, we kill variables containing newlines. 20574 # Ultrix sh set writes to stderr and can't be redirected directly, 20575 # and sets the high bit in the cache file unless we assign to the vars. 20576 ( 20577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20578 eval ac_val=\$$ac_var 20579 case $ac_val in #( 20580 *${as_nl}*) 20581 case $ac_var in #( 20582 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20583 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20584 esac 20585 case $ac_var in #( 20586 _ | IFS | as_nl) ;; #( 20587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20588 *) { eval $ac_var=; unset $ac_var;} ;; 20589 esac ;; 20590 esac 20591 done 20592 20593 (set) 2>&1 | 20594 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20595 *${as_nl}ac_space=\ *) 20596 # 'set' does not quote correctly, so add quotes: double-quote 20597 # substitution turns \\\\ into \\, and sed turns \\ into \. 20598 sed -n \ 20599 "s/'/'\\\\''/g; 20600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20601 ;; #( 20602 *) 20603 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20605 ;; 20606 esac | 20607 sort 20608 ) | 20609 sed ' 20610 /^ac_cv_env_/b end 20611 t clear 20612 :clear 20613 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20614 t end 20615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20616 :end' >>confcache 20617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20618 if test -w "$cache_file"; then 20619 if test "x$cache_file" != "x/dev/null"; then 20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20621 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20622 if test ! -f "$cache_file" || test -h "$cache_file"; then 20623 cat confcache >"$cache_file" 20624 else 20625 case $cache_file in #( 20626 */* | ?:*) 20627 mv -f confcache "$cache_file"$$ && 20628 mv -f "$cache_file"$$ "$cache_file" ;; #( 20629 *) 20630 mv -f confcache "$cache_file" ;; 20631 esac 20632 fi 20633 fi 20634 else 20635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20636 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20637 fi 20638 fi 20639 rm -f confcache 20640 20641 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20642 # Let make expand exec_prefix. 20643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20644 20645 DEFS=-DHAVE_CONFIG_H 20646 20647 ac_libobjs= 20648 ac_ltlibobjs= 20649 U= 20650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20651 # 1. Remove the extension, and $U if already installed. 20652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20653 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20655 # will be set to the directory where LIBOBJS objects are built. 20656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20658 done 20659 LIBOBJS=$ac_libobjs 20660 20661 LTLIBOBJS=$ac_ltlibobjs 20662 20663 20664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20665 printf %s "checking that generated files are newer than configure... " >&6; } 20666 if test -n "$am_sleep_pid"; then 20667 # Hide warnings about reused PIDs. 20668 wait $am_sleep_pid 2>/dev/null 20669 fi 20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20671 printf "%s\n" "done" >&6; } 20672 case $enable_silent_rules in # ((( 20673 yes) AM_DEFAULT_VERBOSITY=0;; 20674 no) AM_DEFAULT_VERBOSITY=1;; 20675 esac 20676 if test $am_cv_make_support_nested_variables = yes; then 20677 AM_V='$(V)' 20678 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20679 else 20680 AM_V=$AM_DEFAULT_VERBOSITY 20681 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20682 fi 20683 20684 if test -n "$EXEEXT"; then 20685 am__EXEEXT_TRUE= 20686 am__EXEEXT_FALSE='#' 20687 else 20688 am__EXEEXT_TRUE='#' 20689 am__EXEEXT_FALSE= 20690 fi 20691 20692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20693 as_fn_error $? "conditional \"AMDEP\" was never defined. 20694 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20695 fi 20696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20698 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20699 fi 20700 20701 : "${CONFIG_STATUS=./config.status}" 20702 ac_write_fail=0 20703 ac_clean_files_save=$ac_clean_files 20704 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20706 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20707 as_write_fail=0 20708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20709 #! $SHELL 20710 # Generated by $as_me. 20711 # Run this file to recreate the current configuration. 20712 # Compiler output produced by configure, useful for debugging 20713 # configure, is in config.log if it exists. 20714 20715 debug=false 20716 ac_cs_recheck=false 20717 ac_cs_silent=false 20718 20719 SHELL=\${CONFIG_SHELL-$SHELL} 20720 export SHELL 20721 _ASEOF 20722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20723 ## -------------------- ## 20724 ## M4sh Initialization. ## 20725 ## -------------------- ## 20726 20727 # Be more Bourne compatible 20728 DUALCASE=1; export DUALCASE # for MKS sh 20729 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20730 then : 20731 emulate sh 20732 NULLCMD=: 20733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20734 # is contrary to our usage. Disable this feature. 20735 alias -g '${1+"$@"}'='"$@"' 20736 setopt NO_GLOB_SUBST 20737 else case e in #( 20738 e) case `(set -o) 2>/dev/null` in #( 20739 *posix*) : 20740 set -o posix ;; #( 20741 *) : 20742 ;; 20743 esac ;; 20744 esac 20745 fi 20746 20747 20748 20749 # Reset variables that may have inherited troublesome values from 20750 # the environment. 20751 20752 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20753 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20754 # side effect of setting IFS to empty, thus disabling word splitting.) 20755 # Quoting is to prevent editors from complaining about space-tab. 20756 as_nl=' 20757 ' 20758 export as_nl 20759 IFS=" "" $as_nl" 20760 20761 PS1='$ ' 20762 PS2='> ' 20763 PS4='+ ' 20764 20765 # Ensure predictable behavior from utilities with locale-dependent output. 20766 LC_ALL=C 20767 export LC_ALL 20768 LANGUAGE=C 20769 export LANGUAGE 20770 20771 # We cannot yet rely on "unset" to work, but we need these variables 20772 # to be unset--not just set to an empty or harmless value--now, to 20773 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20774 # also avoids known problems related to "unset" and subshell syntax 20775 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20776 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20777 do eval test \${$as_var+y} \ 20778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20779 done 20780 20781 # Ensure that fds 0, 1, and 2 are open. 20782 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20783 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20784 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20785 20786 # The user is always right. 20787 if ${PATH_SEPARATOR+false} :; then 20788 PATH_SEPARATOR=: 20789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20791 PATH_SEPARATOR=';' 20792 } 20793 fi 20794 20795 20796 # Find who we are. Look in the path if we contain no directory separator. 20797 as_myself= 20798 case $0 in #(( 20799 *[\\/]* ) as_myself=$0 ;; 20800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20801 for as_dir in $PATH 20802 do 20803 IFS=$as_save_IFS 20804 case $as_dir in #((( 20805 '') as_dir=./ ;; 20806 */) ;; 20807 *) as_dir=$as_dir/ ;; 20808 esac 20809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20810 done 20811 IFS=$as_save_IFS 20812 20813 ;; 20814 esac 20815 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20816 # in which case we are not to be found in the path. 20817 if test "x$as_myself" = x; then 20818 as_myself=$0 20819 fi 20820 if test ! -f "$as_myself"; then 20821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20822 exit 1 20823 fi 20824 20825 20826 20827 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20828 # ---------------------------------------- 20829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20831 # script with STATUS, using 1 if that was 0. 20832 as_fn_error () 20833 { 20834 as_status=$1; test $as_status -eq 0 && as_status=1 20835 if test "$4"; then 20836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20838 fi 20839 printf "%s\n" "$as_me: error: $2" >&2 20840 as_fn_exit $as_status 20841 } # as_fn_error 20842 20843 20844 # as_fn_set_status STATUS 20845 # ----------------------- 20846 # Set $? to STATUS, without forking. 20847 as_fn_set_status () 20848 { 20849 return $1 20850 } # as_fn_set_status 20851 20852 # as_fn_exit STATUS 20853 # ----------------- 20854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20855 as_fn_exit () 20856 { 20857 set +e 20858 as_fn_set_status $1 20859 exit $1 20860 } # as_fn_exit 20861 20862 # as_fn_unset VAR 20863 # --------------- 20864 # Portably unset VAR. 20865 as_fn_unset () 20866 { 20867 { eval $1=; unset $1;} 20868 } 20869 as_unset=as_fn_unset 20870 20871 # as_fn_append VAR VALUE 20872 # ---------------------- 20873 # Append the text in VALUE to the end of the definition contained in VAR. Take 20874 # advantage of any shell optimizations that allow amortized linear growth over 20875 # repeated appends, instead of the typical quadratic growth present in naive 20876 # implementations. 20877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20878 then : 20879 eval 'as_fn_append () 20880 { 20881 eval $1+=\$2 20882 }' 20883 else case e in #( 20884 e) as_fn_append () 20885 { 20886 eval $1=\$$1\$2 20887 } ;; 20888 esac 20889 fi # as_fn_append 20890 20891 # as_fn_arith ARG... 20892 # ------------------ 20893 # Perform arithmetic evaluation on the ARGs, and store the result in the 20894 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20895 # must be portable across $(()) and expr. 20896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20897 then : 20898 eval 'as_fn_arith () 20899 { 20900 as_val=$(( $* )) 20901 }' 20902 else case e in #( 20903 e) as_fn_arith () 20904 { 20905 as_val=`expr "$@" || test $? -eq 1` 20906 } ;; 20907 esac 20908 fi # as_fn_arith 20909 20910 20911 if expr a : '\(a\)' >/dev/null 2>&1 && 20912 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20913 as_expr=expr 20914 else 20915 as_expr=false 20916 fi 20917 20918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20919 as_basename=basename 20920 else 20921 as_basename=false 20922 fi 20923 20924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20925 as_dirname=dirname 20926 else 20927 as_dirname=false 20928 fi 20929 20930 as_me=`$as_basename -- "$0" || 20931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20932 X"$0" : 'X\(//\)$' \| \ 20933 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20934 printf "%s\n" X/"$0" | 20935 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20936 s//\1/ 20937 q 20938 } 20939 /^X\/\(\/\/\)$/{ 20940 s//\1/ 20941 q 20942 } 20943 /^X\/\(\/\).*/{ 20944 s//\1/ 20945 q 20946 } 20947 s/.*/./; q'` 20948 20949 # Avoid depending upon Character Ranges. 20950 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20953 as_cr_digits='0123456789' 20954 as_cr_alnum=$as_cr_Letters$as_cr_digits 20955 20956 20957 # Determine whether it's possible to make 'echo' print without a newline. 20958 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20959 # for compatibility with existing Makefiles. 20960 ECHO_C= ECHO_N= ECHO_T= 20961 case `echo -n x` in #((((( 20962 -n*) 20963 case `echo 'xy\c'` in 20964 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20965 xy) ECHO_C='\c';; 20966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20967 ECHO_T=' ';; 20968 esac;; 20969 *) 20970 ECHO_N='-n';; 20971 esac 20972 20973 # For backward compatibility with old third-party macros, we provide 20974 # the shell variables $as_echo and $as_echo_n. New code should use 20975 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20976 as_echo='printf %s\n' 20977 as_echo_n='printf %s' 20978 20979 rm -f conf$$ conf$$.exe conf$$.file 20980 if test -d conf$$.dir; then 20981 rm -f conf$$.dir/conf$$.file 20982 else 20983 rm -f conf$$.dir 20984 mkdir conf$$.dir 2>/dev/null 20985 fi 20986 if (echo >conf$$.file) 2>/dev/null; then 20987 if ln -s conf$$.file conf$$ 2>/dev/null; then 20988 as_ln_s='ln -s' 20989 # ... but there are two gotchas: 20990 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20991 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20992 # In both cases, we have to default to 'cp -pR'. 20993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20994 as_ln_s='cp -pR' 20995 elif ln conf$$.file conf$$ 2>/dev/null; then 20996 as_ln_s=ln 20997 else 20998 as_ln_s='cp -pR' 20999 fi 21000 else 21001 as_ln_s='cp -pR' 21002 fi 21003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21004 rmdir conf$$.dir 2>/dev/null 21005 21006 21007 # as_fn_mkdir_p 21008 # ------------- 21009 # Create "$as_dir" as a directory, including parents if necessary. 21010 as_fn_mkdir_p () 21011 { 21012 21013 case $as_dir in #( 21014 -*) as_dir=./$as_dir;; 21015 esac 21016 test -d "$as_dir" || eval $as_mkdir_p || { 21017 as_dirs= 21018 while :; do 21019 case $as_dir in #( 21020 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21021 *) as_qdir=$as_dir;; 21022 esac 21023 as_dirs="'$as_qdir' $as_dirs" 21024 as_dir=`$as_dirname -- "$as_dir" || 21025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21026 X"$as_dir" : 'X\(//\)[^/]' \| \ 21027 X"$as_dir" : 'X\(//\)$' \| \ 21028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21029 printf "%s\n" X"$as_dir" | 21030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21031 s//\1/ 21032 q 21033 } 21034 /^X\(\/\/\)[^/].*/{ 21035 s//\1/ 21036 q 21037 } 21038 /^X\(\/\/\)$/{ 21039 s//\1/ 21040 q 21041 } 21042 /^X\(\/\).*/{ 21043 s//\1/ 21044 q 21045 } 21046 s/.*/./; q'` 21047 test -d "$as_dir" && break 21048 done 21049 test -z "$as_dirs" || eval "mkdir $as_dirs" 21050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21051 21052 21053 } # as_fn_mkdir_p 21054 if mkdir -p . 2>/dev/null; then 21055 as_mkdir_p='mkdir -p "$as_dir"' 21056 else 21057 test -d ./-p && rmdir ./-p 21058 as_mkdir_p=false 21059 fi 21060 21061 21062 # as_fn_executable_p FILE 21063 # ----------------------- 21064 # Test if FILE is an executable regular file. 21065 as_fn_executable_p () 21066 { 21067 test -f "$1" && test -x "$1" 21068 } # as_fn_executable_p 21069 as_test_x='test -x' 21070 as_executable_p=as_fn_executable_p 21071 21072 # Sed expression to map a string onto a valid CPP name. 21073 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21074 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21075 21076 # Sed expression to map a string onto a valid variable name. 21077 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21078 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21079 21080 21081 exec 6>&1 21082 ## ----------------------------------- ## 21083 ## Main body of $CONFIG_STATUS script. ## 21084 ## ----------------------------------- ## 21085 _ASEOF 21086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21087 21088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21089 # Save the log message, to keep $0 and so on meaningful, and to 21090 # report actual input values of CONFIG_FILES etc. instead of their 21091 # values after options handling. 21092 ac_log=" 21093 This file was extended by libXres $as_me 1.2.3, which was 21094 generated by GNU Autoconf 2.72. Invocation command line was 21095 21096 CONFIG_FILES = $CONFIG_FILES 21097 CONFIG_HEADERS = $CONFIG_HEADERS 21098 CONFIG_LINKS = $CONFIG_LINKS 21099 CONFIG_COMMANDS = $CONFIG_COMMANDS 21100 $ $0 $@ 21101 21102 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21103 " 21104 21105 _ACEOF 21106 21107 case $ac_config_files in *" 21108 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21109 esac 21110 21111 case $ac_config_headers in *" 21112 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21113 esac 21114 21115 21116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21117 # Files that config.status was made for. 21118 config_files="$ac_config_files" 21119 config_headers="$ac_config_headers" 21120 config_commands="$ac_config_commands" 21121 21122 _ACEOF 21123 21124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21125 ac_cs_usage="\ 21126 '$as_me' instantiates files and other configuration actions 21127 from templates according to the current configuration. Unless the files 21128 and actions are specified as TAGs, all are instantiated by default. 21129 21130 Usage: $0 [OPTION]... [TAG]... 21131 21132 -h, --help print this help, then exit 21133 -V, --version print version number and configuration settings, then exit 21134 --config print configuration, then exit 21135 -q, --quiet, --silent 21136 do not print progress messages 21137 -d, --debug don't remove temporary files 21138 --recheck update $as_me by reconfiguring in the same conditions 21139 --file=FILE[:TEMPLATE] 21140 instantiate the configuration file FILE 21141 --header=FILE[:TEMPLATE] 21142 instantiate the configuration header FILE 21143 21144 Configuration files: 21145 $config_files 21146 21147 Configuration headers: 21148 $config_headers 21149 21150 Configuration commands: 21151 $config_commands 21152 21153 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>." 21154 21155 _ACEOF 21156 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21157 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21159 ac_cs_config='$ac_cs_config_escaped' 21160 ac_cs_version="\\ 21161 libXres config.status 1.2.3 21162 configured by $0, generated by GNU Autoconf 2.72, 21163 with options \\"\$ac_cs_config\\" 21164 21165 Copyright (C) 2023 Free Software Foundation, Inc. 21166 This config.status script is free software; the Free Software Foundation 21167 gives unlimited permission to copy, distribute and modify it." 21168 21169 ac_pwd='$ac_pwd' 21170 srcdir='$srcdir' 21171 INSTALL='$INSTALL' 21172 MKDIR_P='$MKDIR_P' 21173 AWK='$AWK' 21174 test -n "\$AWK" || AWK=awk 21175 _ACEOF 21176 21177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21178 # The default lists apply if the user does not specify any file. 21179 ac_need_defaults=: 21180 while test $# != 0 21181 do 21182 case $1 in 21183 --*=?*) 21184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21186 ac_shift=: 21187 ;; 21188 --*=) 21189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21190 ac_optarg= 21191 ac_shift=: 21192 ;; 21193 *) 21194 ac_option=$1 21195 ac_optarg=$2 21196 ac_shift=shift 21197 ;; 21198 esac 21199 21200 case $ac_option in 21201 # Handling of the options. 21202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21203 ac_cs_recheck=: ;; 21204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21205 printf "%s\n" "$ac_cs_version"; exit ;; 21206 --config | --confi | --conf | --con | --co | --c ) 21207 printf "%s\n" "$ac_cs_config"; exit ;; 21208 --debug | --debu | --deb | --de | --d | -d ) 21209 debug=: ;; 21210 --file | --fil | --fi | --f ) 21211 $ac_shift 21212 case $ac_optarg in 21213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21214 '') as_fn_error $? "missing file argument" ;; 21215 esac 21216 as_fn_append CONFIG_FILES " '$ac_optarg'" 21217 ac_need_defaults=false;; 21218 --header | --heade | --head | --hea ) 21219 $ac_shift 21220 case $ac_optarg in 21221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21222 esac 21223 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21224 ac_need_defaults=false;; 21225 --he | --h) 21226 # Conflict between --help and --header 21227 as_fn_error $? "ambiguous option: '$1' 21228 Try '$0 --help' for more information.";; 21229 --help | --hel | -h ) 21230 printf "%s\n" "$ac_cs_usage"; exit ;; 21231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21232 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21233 ac_cs_silent=: ;; 21234 21235 # This is an error. 21236 -*) as_fn_error $? "unrecognized option: '$1' 21237 Try '$0 --help' for more information." ;; 21238 21239 *) as_fn_append ac_config_targets " $1" 21240 ac_need_defaults=false ;; 21241 21242 esac 21243 shift 21244 done 21245 21246 ac_configure_extra_args= 21247 21248 if $ac_cs_silent; then 21249 exec 6>/dev/null 21250 ac_configure_extra_args="$ac_configure_extra_args --silent" 21251 fi 21252 21253 _ACEOF 21254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21255 if \$ac_cs_recheck; then 21256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21257 shift 21258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21259 CONFIG_SHELL='$SHELL' 21260 export CONFIG_SHELL 21261 exec "\$@" 21262 fi 21263 21264 _ACEOF 21265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21266 exec 5>>config.log 21267 { 21268 echo 21269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21270 ## Running $as_me. ## 21271 _ASBOX 21272 printf "%s\n" "$ac_log" 21273 } >&5 21274 21275 _ACEOF 21276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21277 # 21278 # INIT-COMMANDS 21279 # 21280 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21281 21282 21283 # The HP-UX ksh and POSIX shell print the target directory to stdout 21284 # if CDPATH is set. 21285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21286 21287 sed_quote_subst='$sed_quote_subst' 21288 double_quote_subst='$double_quote_subst' 21289 delay_variable_subst='$delay_variable_subst' 21290 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21291 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21292 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21293 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21294 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21295 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21296 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21297 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21298 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21299 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21320 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21321 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21322 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21323 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21324 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21325 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21326 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21327 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21328 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21329 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21331 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21332 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21333 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21334 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21335 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21336 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21337 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21338 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21339 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21340 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21341 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21342 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21343 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21344 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21345 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21346 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21347 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21348 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21349 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21350 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"`' 21351 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21352 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21353 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21354 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21358 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21359 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21363 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21364 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21365 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21366 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21367 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21368 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21369 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21370 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21371 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21372 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21373 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21374 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21375 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21376 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21377 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21378 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21379 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21380 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21381 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21382 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21383 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21384 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21385 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21386 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21395 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21396 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21397 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21398 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21399 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21400 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21419 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21420 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21421 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21422 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21423 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21424 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21425 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21426 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21427 21428 LTCC='$LTCC' 21429 LTCFLAGS='$LTCFLAGS' 21430 compiler='$compiler_DEFAULT' 21431 21432 # A function that is used when there is no print builtin or printf. 21433 func_fallback_echo () 21434 { 21435 eval 'cat <<_LTECHO_EOF 21436 \$1 21437 _LTECHO_EOF' 21438 } 21439 21440 # Quote evaled strings. 21441 for var in SHELL \ 21442 ECHO \ 21443 PATH_SEPARATOR \ 21444 SED \ 21445 GREP \ 21446 EGREP \ 21447 FGREP \ 21448 LD \ 21449 NM \ 21450 LN_S \ 21451 lt_SP2NL \ 21452 lt_NL2SP \ 21453 reload_flag \ 21454 FILECMD \ 21455 OBJDUMP \ 21456 deplibs_check_method \ 21457 file_magic_cmd \ 21458 file_magic_glob \ 21459 want_nocaseglob \ 21460 DLLTOOL \ 21461 sharedlib_from_linklib_cmd \ 21462 AR \ 21463 archiver_list_spec \ 21464 STRIP \ 21465 RANLIB \ 21466 CC \ 21467 CFLAGS \ 21468 compiler \ 21469 lt_cv_sys_global_symbol_pipe \ 21470 lt_cv_sys_global_symbol_to_cdecl \ 21471 lt_cv_sys_global_symbol_to_import \ 21472 lt_cv_sys_global_symbol_to_c_name_address \ 21473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21474 lt_cv_nm_interface \ 21475 nm_file_list_spec \ 21476 lt_cv_truncate_bin \ 21477 lt_prog_compiler_no_builtin_flag \ 21478 lt_prog_compiler_pic \ 21479 lt_prog_compiler_wl \ 21480 lt_prog_compiler_static \ 21481 lt_cv_prog_compiler_c_o \ 21482 need_locks \ 21483 MANIFEST_TOOL \ 21484 DSYMUTIL \ 21485 NMEDIT \ 21486 LIPO \ 21487 OTOOL \ 21488 OTOOL64 \ 21489 shrext_cmds \ 21490 export_dynamic_flag_spec \ 21491 whole_archive_flag_spec \ 21492 compiler_needs_object \ 21493 with_gnu_ld \ 21494 allow_undefined_flag \ 21495 no_undefined_flag \ 21496 hardcode_libdir_flag_spec \ 21497 hardcode_libdir_separator \ 21498 exclude_expsyms \ 21499 include_expsyms \ 21500 file_list_spec \ 21501 variables_saved_for_relink \ 21502 libname_spec \ 21503 library_names_spec \ 21504 soname_spec \ 21505 install_override_mode \ 21506 finish_eval \ 21507 old_striplib \ 21508 striplib; do 21509 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21510 *[\\\\\\\`\\"\\\$]*) 21511 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21512 ;; 21513 *) 21514 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21515 ;; 21516 esac 21517 done 21518 21519 # Double-quote double-evaled strings. 21520 for var in reload_cmds \ 21521 old_postinstall_cmds \ 21522 old_postuninstall_cmds \ 21523 old_archive_cmds \ 21524 extract_expsyms_cmds \ 21525 old_archive_from_new_cmds \ 21526 old_archive_from_expsyms_cmds \ 21527 archive_cmds \ 21528 archive_expsym_cmds \ 21529 module_cmds \ 21530 module_expsym_cmds \ 21531 export_symbols_cmds \ 21532 prelink_cmds \ 21533 postlink_cmds \ 21534 postinstall_cmds \ 21535 postuninstall_cmds \ 21536 finish_cmds \ 21537 sys_lib_search_path_spec \ 21538 configure_time_dlsearch_path \ 21539 configure_time_lt_sys_library_path; do 21540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21541 *[\\\\\\\`\\"\\\$]*) 21542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21543 ;; 21544 *) 21545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21546 ;; 21547 esac 21548 done 21549 21550 ac_aux_dir='$ac_aux_dir' 21551 21552 # See if we are running on zsh, and set the options that allow our 21553 # commands through without removal of \ escapes INIT. 21554 if test -n "\${ZSH_VERSION+set}"; then 21555 setopt NO_GLOB_SUBST 21556 fi 21557 21558 21559 PACKAGE='$PACKAGE' 21560 VERSION='$VERSION' 21561 RM='$RM' 21562 ofile='$ofile' 21563 21564 21565 21566 21567 _ACEOF 21568 21569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21570 21571 # Handling of arguments. 21572 for ac_config_target in $ac_config_targets 21573 do 21574 case $ac_config_target in 21575 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21576 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21577 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21579 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21580 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21581 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;; 21582 21583 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21584 esac 21585 done 21586 21587 21588 # If the user did not use the arguments to specify the items to instantiate, 21589 # then the envvar interface is used. Set only those that are not. 21590 # We use the long form for the default assignment because of an extremely 21591 # bizarre bug on SunOS 4.1.3. 21592 if $ac_need_defaults; then 21593 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21594 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21595 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21596 fi 21597 21598 # Have a temporary directory for convenience. Make it in the build tree 21599 # simply because there is no reason against having it here, and in addition, 21600 # creating and moving files from /tmp can sometimes cause problems. 21601 # Hook for its removal unless debugging. 21602 # Note that there is a small window in which the directory will not be cleaned: 21603 # after its creation but before its name has been assigned to '$tmp'. 21604 $debug || 21605 { 21606 tmp= ac_tmp= 21607 trap 'exit_status=$? 21608 : "${ac_tmp:=$tmp}" 21609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21610 ' 0 21611 trap 'as_fn_exit 1' 1 2 13 15 21612 } 21613 # Create a (secure) tmp directory for tmp files. 21614 21615 { 21616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21617 test -d "$tmp" 21618 } || 21619 { 21620 tmp=./conf$$-$RANDOM 21621 (umask 077 && mkdir "$tmp") 21622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21623 ac_tmp=$tmp 21624 21625 # Set up the scripts for CONFIG_FILES section. 21626 # No need to generate them if there are no CONFIG_FILES. 21627 # This happens for instance with './config.status config.h'. 21628 if test -n "$CONFIG_FILES"; then 21629 21630 21631 ac_cr=`echo X | tr X '\015'` 21632 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21633 # But we know of no other shell where ac_cr would be empty at this 21634 # point, so we can use a bashism as a fallback. 21635 if test "x$ac_cr" = x; then 21636 eval ac_cr=\$\'\\r\' 21637 fi 21638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21640 ac_cs_awk_cr='\\r' 21641 else 21642 ac_cs_awk_cr=$ac_cr 21643 fi 21644 21645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21646 _ACEOF 21647 21648 21649 { 21650 echo "cat >conf$$subs.awk <<_ACEOF" && 21651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21652 echo "_ACEOF" 21653 } >conf$$subs.sh || 21654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21656 ac_delim='%!_!# ' 21657 for ac_last_try in false false false false false :; do 21658 . ./conf$$subs.sh || 21659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21660 21661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21662 if test $ac_delim_n = $ac_delim_num; then 21663 break 21664 elif $ac_last_try; then 21665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21666 else 21667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21668 fi 21669 done 21670 rm -f conf$$subs.sh 21671 21672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21674 _ACEOF 21675 sed -n ' 21676 h 21677 s/^/S["/; s/!.*/"]=/ 21678 p 21679 g 21680 s/^[^!]*!// 21681 :repl 21682 t repl 21683 s/'"$ac_delim"'$// 21684 t delim 21685 :nl 21686 h 21687 s/\(.\{148\}\)..*/\1/ 21688 t more1 21689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21690 p 21691 n 21692 b repl 21693 :more1 21694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21695 p 21696 g 21697 s/.\{148\}// 21698 t nl 21699 :delim 21700 h 21701 s/\(.\{148\}\)..*/\1/ 21702 t more2 21703 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21704 p 21705 b 21706 :more2 21707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21708 p 21709 g 21710 s/.\{148\}// 21711 t delim 21712 ' <conf$$subs.awk | sed ' 21713 /^[^""]/{ 21714 N 21715 s/\n// 21716 } 21717 ' >>$CONFIG_STATUS || ac_write_fail=1 21718 rm -f conf$$subs.awk 21719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21720 _ACAWK 21721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21722 for (key in S) S_is_set[key] = 1 21723 FS = "" 21724 21725 } 21726 { 21727 line = $ 0 21728 nfields = split(line, field, "@") 21729 substed = 0 21730 len = length(field[1]) 21731 for (i = 2; i < nfields; i++) { 21732 key = field[i] 21733 keylen = length(key) 21734 if (S_is_set[key]) { 21735 value = S[key] 21736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21737 len += length(value) + length(field[++i]) 21738 substed = 1 21739 } else 21740 len += 1 + keylen 21741 } 21742 21743 print line 21744 } 21745 21746 _ACAWK 21747 _ACEOF 21748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21751 else 21752 cat 21753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21755 _ACEOF 21756 21757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21759 # trailing colons and then remove the whole line if VPATH becomes empty 21760 # (actually we leave an empty line to preserve line numbers). 21761 if test "x$srcdir" = x.; then 21762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21763 h 21764 s/// 21765 s/^/:/ 21766 s/[ ]*$/:/ 21767 s/:\$(srcdir):/:/g 21768 s/:\${srcdir}:/:/g 21769 s/:@srcdir@:/:/g 21770 s/^:*// 21771 s/:*$// 21772 x 21773 s/\(=[ ]*\).*/\1/ 21774 G 21775 s/\n// 21776 s/^[^=]*=[ ]*$// 21777 }' 21778 fi 21779 21780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21781 fi # test -n "$CONFIG_FILES" 21782 21783 # Set up the scripts for CONFIG_HEADERS section. 21784 # No need to generate them if there are no CONFIG_HEADERS. 21785 # This happens for instance with './config.status Makefile'. 21786 if test -n "$CONFIG_HEADERS"; then 21787 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21788 BEGIN { 21789 _ACEOF 21790 21791 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21792 # here-document in config.status, that substitutes the proper values into 21793 # config.h.in to produce config.h. 21794 21795 # Create a delimiter string that does not exist in confdefs.h, to ease 21796 # handling of long lines. 21797 ac_delim='%!_!# ' 21798 for ac_last_try in false false :; do 21799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21800 if test -z "$ac_tt"; then 21801 break 21802 elif $ac_last_try; then 21803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21804 else 21805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21806 fi 21807 done 21808 21809 # For the awk script, D is an array of macro values keyed by name, 21810 # likewise P contains macro parameters if any. Preserve backslash 21811 # newline sequences. 21812 21813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21814 sed -n ' 21815 s/.\{148\}/&'"$ac_delim"'/g 21816 t rset 21817 :rset 21818 s/^[ ]*#[ ]*define[ ][ ]*/ / 21819 t def 21820 d 21821 :def 21822 s/\\$// 21823 t bsnl 21824 s/["\\]/\\&/g 21825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21826 D["\1"]=" \3"/p 21827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21828 d 21829 :bsnl 21830 s/["\\]/\\&/g 21831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21832 D["\1"]=" \3\\\\\\n"\\/p 21833 t cont 21834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21835 t cont 21836 d 21837 :cont 21838 n 21839 s/.\{148\}/&'"$ac_delim"'/g 21840 t clear 21841 :clear 21842 s/\\$// 21843 t bsnlc 21844 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21845 d 21846 :bsnlc 21847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21848 b cont 21849 ' <confdefs.h | sed ' 21850 s/'"$ac_delim"'/"\\\ 21851 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21852 21853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21854 for (key in D) D_is_set[key] = 1 21855 FS = "" 21856 } 21857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21858 line = \$ 0 21859 split(line, arg, " ") 21860 if (arg[1] == "#") { 21861 defundef = arg[2] 21862 mac1 = arg[3] 21863 } else { 21864 defundef = substr(arg[1], 2) 21865 mac1 = arg[2] 21866 } 21867 split(mac1, mac2, "(") #) 21868 macro = mac2[1] 21869 prefix = substr(line, 1, index(line, defundef) - 1) 21870 if (D_is_set[macro]) { 21871 # Preserve the white space surrounding the "#". 21872 print prefix "define", macro P[macro] D[macro] 21873 next 21874 } else { 21875 # Replace #undef with comments. This is necessary, for example, 21876 # in the case of _POSIX_SOURCE, which is predefined and required 21877 # on some systems where configure will not decide to define it. 21878 if (defundef == "undef") { 21879 print "/*", prefix defundef, macro, "*/" 21880 next 21881 } 21882 } 21883 } 21884 { print } 21885 _ACAWK 21886 _ACEOF 21887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21889 fi # test -n "$CONFIG_HEADERS" 21890 21891 21892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21893 shift 21894 for ac_tag 21895 do 21896 case $ac_tag in 21897 :[FHLC]) ac_mode=$ac_tag; continue;; 21898 esac 21899 case $ac_mode$ac_tag in 21900 :[FHL]*:*);; 21901 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21902 :[FH]-) ac_tag=-:-;; 21903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21904 esac 21905 ac_save_IFS=$IFS 21906 IFS=: 21907 set x $ac_tag 21908 IFS=$ac_save_IFS 21909 shift 21910 ac_file=$1 21911 shift 21912 21913 case $ac_mode in 21914 :L) ac_source=$1;; 21915 :[FH]) 21916 ac_file_inputs= 21917 for ac_f 21918 do 21919 case $ac_f in 21920 -) ac_f="$ac_tmp/stdin";; 21921 *) # Look for the file first in the build tree, then in the source tree 21922 # (if the path is not absolute). The absolute path cannot be DOS-style, 21923 # because $ac_f cannot contain ':'. 21924 test -f "$ac_f" || 21925 case $ac_f in 21926 [\\/$]*) false;; 21927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21928 esac || 21929 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21930 esac 21931 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21932 as_fn_append ac_file_inputs " '$ac_f'" 21933 done 21934 21935 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21936 # use $as_me), people would be surprised to read: 21937 # /* config.h. Generated by config.status. */ 21938 configure_input='Generated from '` 21939 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21940 `' by configure.' 21941 if test x"$ac_file" != x-; then 21942 configure_input="$ac_file. $configure_input" 21943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21944 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21945 fi 21946 # Neutralize special characters interpreted by sed in replacement strings. 21947 case $configure_input in #( 21948 *\&* | *\|* | *\\* ) 21949 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21950 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21951 *) ac_sed_conf_input=$configure_input;; 21952 esac 21953 21954 case $ac_tag in 21955 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21957 esac 21958 ;; 21959 esac 21960 21961 ac_dir=`$as_dirname -- "$ac_file" || 21962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21963 X"$ac_file" : 'X\(//\)[^/]' \| \ 21964 X"$ac_file" : 'X\(//\)$' \| \ 21965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21966 printf "%s\n" X"$ac_file" | 21967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21968 s//\1/ 21969 q 21970 } 21971 /^X\(\/\/\)[^/].*/{ 21972 s//\1/ 21973 q 21974 } 21975 /^X\(\/\/\)$/{ 21976 s//\1/ 21977 q 21978 } 21979 /^X\(\/\).*/{ 21980 s//\1/ 21981 q 21982 } 21983 s/.*/./; q'` 21984 as_dir="$ac_dir"; as_fn_mkdir_p 21985 ac_builddir=. 21986 21987 case "$ac_dir" in 21988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21989 *) 21990 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21991 # A ".." for each directory in $ac_dir_suffix. 21992 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21993 case $ac_top_builddir_sub in 21994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21996 esac ;; 21997 esac 21998 ac_abs_top_builddir=$ac_pwd 21999 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22000 # for backward compatibility: 22001 ac_top_builddir=$ac_top_build_prefix 22002 22003 case $srcdir in 22004 .) # We are building in place. 22005 ac_srcdir=. 22006 ac_top_srcdir=$ac_top_builddir_sub 22007 ac_abs_top_srcdir=$ac_pwd ;; 22008 [\\/]* | ?:[\\/]* ) # Absolute name. 22009 ac_srcdir=$srcdir$ac_dir_suffix; 22010 ac_top_srcdir=$srcdir 22011 ac_abs_top_srcdir=$srcdir ;; 22012 *) # Relative name. 22013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22014 ac_top_srcdir=$ac_top_build_prefix$srcdir 22015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22016 esac 22017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22018 22019 22020 case $ac_mode in 22021 :F) 22022 # 22023 # CONFIG_FILE 22024 # 22025 22026 case $INSTALL in 22027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22029 esac 22030 ac_MKDIR_P=$MKDIR_P 22031 case $MKDIR_P in 22032 [\\/$]* | ?:[\\/]* ) ;; 22033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22034 esac 22035 _ACEOF 22036 22037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22038 # If the template does not know about datarootdir, expand it. 22039 # FIXME: This hack should be removed a few years after 2.60. 22040 ac_datarootdir_hack=; ac_datarootdir_seen= 22041 ac_sed_dataroot=' 22042 /datarootdir/ { 22043 p 22044 q 22045 } 22046 /@datadir@/p 22047 /@docdir@/p 22048 /@infodir@/p 22049 /@localedir@/p 22050 /@mandir@/p' 22051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22052 *datarootdir*) ac_datarootdir_seen=yes;; 22053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22055 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22056 _ACEOF 22057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22058 ac_datarootdir_hack=' 22059 s&@datadir@&$datadir&g 22060 s&@docdir@&$docdir&g 22061 s&@infodir@&$infodir&g 22062 s&@localedir@&$localedir&g 22063 s&@mandir@&$mandir&g 22064 s&\\\${datarootdir}&$datarootdir&g' ;; 22065 esac 22066 _ACEOF 22067 22068 # Neutralize VPATH when '$srcdir' = '.'. 22069 # Shell code in configure.ac might set extrasub. 22070 # FIXME: do we really want to maintain this feature? 22071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22072 ac_sed_extra="$ac_vpsub 22073 $extrasub 22074 _ACEOF 22075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22076 :t 22077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22078 s|@configure_input@|$ac_sed_conf_input|;t t 22079 s&@top_builddir@&$ac_top_builddir_sub&;t t 22080 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22081 s&@srcdir@&$ac_srcdir&;t t 22082 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22083 s&@top_srcdir@&$ac_top_srcdir&;t t 22084 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22085 s&@builddir@&$ac_builddir&;t t 22086 s&@abs_builddir@&$ac_abs_builddir&;t t 22087 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22088 s&@INSTALL@&$ac_INSTALL&;t t 22089 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22090 $ac_datarootdir_hack 22091 " 22092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22093 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22094 22095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22098 "$ac_tmp/out"`; test -z "$ac_out"; } && 22099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22100 which seems to be undefined. Please make sure it is defined" >&5 22101 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22102 which seems to be undefined. Please make sure it is defined" >&2;} 22103 22104 rm -f "$ac_tmp/stdin" 22105 case $ac_file in 22106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22108 esac \ 22109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22110 ;; 22111 :H) 22112 # 22113 # CONFIG_HEADER 22114 # 22115 if test x"$ac_file" != x-; then 22116 { 22117 printf "%s\n" "/* $configure_input */" >&1 \ 22118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22119 } >"$ac_tmp/config.h" \ 22120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22121 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22123 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22124 else 22125 rm -f "$ac_file" 22126 mv "$ac_tmp/config.h" "$ac_file" \ 22127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22128 fi 22129 else 22130 printf "%s\n" "/* $configure_input */" >&1 \ 22131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22132 || as_fn_error $? "could not create -" "$LINENO" 5 22133 fi 22134 # Compute "$ac_file"'s index in $config_headers. 22135 _am_arg="$ac_file" 22136 _am_stamp_count=1 22137 for _am_header in $config_headers :; do 22138 case $_am_header in 22139 $_am_arg | $_am_arg:* ) 22140 break ;; 22141 * ) 22142 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22143 esac 22144 done 22145 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22146 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22147 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22148 X"$_am_arg" : 'X\(//\)$' \| \ 22149 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22150 printf "%s\n" X"$_am_arg" | 22151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22152 s//\1/ 22153 q 22154 } 22155 /^X\(\/\/\)[^/].*/{ 22156 s//\1/ 22157 q 22158 } 22159 /^X\(\/\/\)$/{ 22160 s//\1/ 22161 q 22162 } 22163 /^X\(\/\).*/{ 22164 s//\1/ 22165 q 22166 } 22167 s/.*/./; q'`/stamp-h$_am_stamp_count 22168 ;; 22169 22170 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22171 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22172 ;; 22173 esac 22174 22175 22176 case $ac_file$ac_mode in 22177 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22178 # Older Autoconf quotes --file arguments for eval, but not when files 22179 # are listed without --file. Let's play safe and only enable the eval 22180 # if we detect the quoting. 22181 # TODO: see whether this extra hack can be removed once we start 22182 # requiring Autoconf 2.70 or later. 22183 case $CONFIG_FILES in #( 22184 *\'*) : 22185 eval set x "$CONFIG_FILES" ;; #( 22186 *) : 22187 set x $CONFIG_FILES ;; #( 22188 *) : 22189 ;; 22190 esac 22191 shift 22192 # Used to flag and report bootstrapping failures. 22193 am_rc=0 22194 for am_mf 22195 do 22196 # Strip MF so we end up with the name of the file. 22197 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22198 # Check whether this is an Automake generated Makefile which includes 22199 # dependency-tracking related rules and includes. 22200 # Grep'ing the whole file directly is not great: AIX grep has a line 22201 # limit of 2048, but all sed's we know have understand at least 4000. 22202 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22203 || continue 22204 am_dirpart=`$as_dirname -- "$am_mf" || 22205 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22206 X"$am_mf" : 'X\(//\)[^/]' \| \ 22207 X"$am_mf" : 'X\(//\)$' \| \ 22208 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22209 printf "%s\n" X"$am_mf" | 22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22211 s//\1/ 22212 q 22213 } 22214 /^X\(\/\/\)[^/].*/{ 22215 s//\1/ 22216 q 22217 } 22218 /^X\(\/\/\)$/{ 22219 s//\1/ 22220 q 22221 } 22222 /^X\(\/\).*/{ 22223 s//\1/ 22224 q 22225 } 22226 s/.*/./; q'` 22227 am_filepart=`$as_basename -- "$am_mf" || 22228 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22229 X"$am_mf" : 'X\(//\)$' \| \ 22230 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22231 printf "%s\n" X/"$am_mf" | 22232 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22233 s//\1/ 22234 q 22235 } 22236 /^X\/\(\/\/\)$/{ 22237 s//\1/ 22238 q 22239 } 22240 /^X\/\(\/\).*/{ 22241 s//\1/ 22242 q 22243 } 22244 s/.*/./; q'` 22245 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22246 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22247 | $MAKE -f - am--depfiles" >&5 22248 (cd "$am_dirpart" \ 22249 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22250 | $MAKE -f - am--depfiles) >&5 2>&5 22251 ac_status=$? 22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22253 (exit $ac_status); } || am_rc=$? 22254 done 22255 if test $am_rc -ne 0; then 22256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22257 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22258 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22259 for automatic dependency tracking. If GNU make was not used, consider 22260 re-running the configure script with MAKE=\"gmake\" (or whatever is 22261 necessary). You can also try re-running configure with the 22262 '--disable-dependency-tracking' option to at least be able to build 22263 the package (albeit without support for automatic dependency tracking). 22264 See 'config.log' for more details" "$LINENO" 5; } 22265 fi 22266 { am_dirpart=; unset am_dirpart;} 22267 { am_filepart=; unset am_filepart;} 22268 { am_mf=; unset am_mf;} 22269 { am_rc=; unset am_rc;} 22270 rm -f conftest-deps.mk 22271 } 22272 ;; 22273 "libtool":C) 22274 22275 # See if we are running on zsh, and set the options that allow our 22276 # commands through without removal of \ escapes. 22277 if test -n "${ZSH_VERSION+set}"; then 22278 setopt NO_GLOB_SUBST 22279 fi 22280 22281 cfgfile=${ofile}T 22282 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22283 $RM "$cfgfile" 22284 22285 cat <<_LT_EOF >> "$cfgfile" 22286 #! $SHELL 22287 # Generated automatically by $as_me ($PACKAGE) $VERSION 22288 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22289 22290 # Provide generalized library-building support services. 22291 # Written by Gordon Matzigkeit, 1996 22292 22293 # Copyright (C) 2024 Free Software Foundation, Inc. 22294 # This is free software; see the source for copying conditions. There is NO 22295 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22296 22297 # GNU Libtool is free software; you can redistribute it and/or modify 22298 # it under the terms of the GNU General Public License as published by 22299 # the Free Software Foundation; either version 2 of the License, or 22300 # (at your option) any later version. 22301 # 22302 # As a special exception to the GNU General Public License, if you 22303 # distribute this file as part of a program or library that is built 22304 # using GNU Libtool, you may include this file under the same 22305 # distribution terms that you use for the rest of that program. 22306 # 22307 # GNU Libtool is distributed in the hope that it will be useful, but 22308 # WITHOUT ANY WARRANTY; without even the implied warranty of 22309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22310 # GNU General Public License for more details. 22311 # 22312 # You should have received a copy of the GNU General Public License 22313 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22314 22315 22316 # The names of the tagged configurations supported by this script. 22317 available_tags='' 22318 22319 # Configured defaults for sys_lib_dlsearch_path munging. 22320 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22321 22322 # ### BEGIN LIBTOOL CONFIG 22323 22324 # Which release of libtool.m4 was used? 22325 macro_version=$macro_version 22326 macro_revision=$macro_revision 22327 22328 # Whether or not to build shared libraries. 22329 build_libtool_libs=$enable_shared 22330 22331 # Whether or not to build static libraries. 22332 build_old_libs=$enable_static 22333 22334 # What type of objects to build. 22335 pic_mode=$pic_mode 22336 22337 # Whether or not to optimize for fast installation. 22338 fast_install=$enable_fast_install 22339 22340 # Shared archive member basename,for filename based shared library versioning on AIX. 22341 shared_archive_member_spec=$shared_archive_member_spec 22342 22343 # Shell to use when invoking shell scripts. 22344 SHELL=$lt_SHELL 22345 22346 # An echo program that protects backslashes. 22347 ECHO=$lt_ECHO 22348 22349 # The PATH separator for the build system. 22350 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22351 22352 # The host system. 22353 host_alias=$host_alias 22354 host=$host 22355 host_os=$host_os 22356 22357 # The build system. 22358 build_alias=$build_alias 22359 build=$build 22360 build_os=$build_os 22361 22362 # A sed program that does not truncate output. 22363 SED=$lt_SED 22364 22365 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22366 Xsed="\$SED -e 1s/^X//" 22367 22368 # A grep program that handles long lines. 22369 GREP=$lt_GREP 22370 22371 # An ERE matcher. 22372 EGREP=$lt_EGREP 22373 22374 # A literal string matcher. 22375 FGREP=$lt_FGREP 22376 22377 # A BSD- or MS-compatible name lister. 22378 NM=$lt_NM 22379 22380 # Whether we need soft or hard links. 22381 LN_S=$lt_LN_S 22382 22383 # What is the maximum length of a command? 22384 max_cmd_len=$max_cmd_len 22385 22386 # Object file suffix (normally "o"). 22387 objext=$ac_objext 22388 22389 # Executable file suffix (normally ""). 22390 exeext=$exeext 22391 22392 # whether the shell understands "unset". 22393 lt_unset=$lt_unset 22394 22395 # turn spaces into newlines. 22396 SP2NL=$lt_lt_SP2NL 22397 22398 # turn newlines into spaces. 22399 NL2SP=$lt_lt_NL2SP 22400 22401 # convert \$build file names to \$host format. 22402 to_host_file_cmd=$lt_cv_to_host_file_cmd 22403 22404 # convert \$build files to toolchain format. 22405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22406 22407 # A file(cmd) program that detects file types. 22408 FILECMD=$lt_FILECMD 22409 22410 # An object symbol dumper. 22411 OBJDUMP=$lt_OBJDUMP 22412 22413 # Method to check whether dependent libraries are shared objects. 22414 deplibs_check_method=$lt_deplibs_check_method 22415 22416 # Command to use when deplibs_check_method = "file_magic". 22417 file_magic_cmd=$lt_file_magic_cmd 22418 22419 # How to find potential files when deplibs_check_method = "file_magic". 22420 file_magic_glob=$lt_file_magic_glob 22421 22422 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22423 want_nocaseglob=$lt_want_nocaseglob 22424 22425 # DLL creation program. 22426 DLLTOOL=$lt_DLLTOOL 22427 22428 # Command to associate shared and link libraries. 22429 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22430 22431 # The archiver. 22432 AR=$lt_AR 22433 22434 # Flags to create an archive (by configure). 22435 lt_ar_flags=$lt_ar_flags 22436 22437 # Flags to create an archive. 22438 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22439 22440 # How to feed a file listing to the archiver. 22441 archiver_list_spec=$lt_archiver_list_spec 22442 22443 # A symbol stripping program. 22444 STRIP=$lt_STRIP 22445 22446 # Commands used to install an old-style archive. 22447 RANLIB=$lt_RANLIB 22448 old_postinstall_cmds=$lt_old_postinstall_cmds 22449 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22450 22451 # Whether to use a lock for old archive extraction. 22452 lock_old_archive_extraction=$lock_old_archive_extraction 22453 22454 # A C compiler. 22455 LTCC=$lt_CC 22456 22457 # LTCC compiler flags. 22458 LTCFLAGS=$lt_CFLAGS 22459 22460 # Take the output of nm and produce a listing of raw symbols and C names. 22461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22462 22463 # Transform the output of nm in a proper C declaration. 22464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22465 22466 # Transform the output of nm into a list of symbols to manually relocate. 22467 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22468 22469 # Transform the output of nm in a C name address pair. 22470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22471 22472 # Transform the output of nm in a C name address pair when lib prefix is needed. 22473 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22474 22475 # The name lister interface. 22476 nm_interface=$lt_lt_cv_nm_interface 22477 22478 # Specify filename containing input files for \$NM. 22479 nm_file_list_spec=$lt_nm_file_list_spec 22480 22481 # The root where to search for dependent libraries,and where our libraries should be installed. 22482 lt_sysroot=$lt_sysroot 22483 22484 # Command to truncate a binary pipe. 22485 lt_truncate_bin=$lt_lt_cv_truncate_bin 22486 22487 # The name of the directory that contains temporary libtool files. 22488 objdir=$objdir 22489 22490 # Used to examine libraries when file_magic_cmd begins with "file". 22491 MAGIC_CMD=$MAGIC_CMD 22492 22493 # Must we lock files when doing compilation? 22494 need_locks=$lt_need_locks 22495 22496 # Manifest tool. 22497 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22498 22499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22500 DSYMUTIL=$lt_DSYMUTIL 22501 22502 # Tool to change global to local symbols on Mac OS X. 22503 NMEDIT=$lt_NMEDIT 22504 22505 # Tool to manipulate fat objects and archives on Mac OS X. 22506 LIPO=$lt_LIPO 22507 22508 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22509 OTOOL=$lt_OTOOL 22510 22511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22512 OTOOL64=$lt_OTOOL64 22513 22514 # Old archive suffix (normally "a"). 22515 libext=$libext 22516 22517 # Shared library suffix (normally ".so"). 22518 shrext_cmds=$lt_shrext_cmds 22519 22520 # The commands to extract the exported symbol list from a shared archive. 22521 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22522 22523 # Variables whose values should be saved in libtool wrapper scripts and 22524 # restored at link time. 22525 variables_saved_for_relink=$lt_variables_saved_for_relink 22526 22527 # Do we need the "lib" prefix for modules? 22528 need_lib_prefix=$need_lib_prefix 22529 22530 # Do we need a version for libraries? 22531 need_version=$need_version 22532 22533 # Library versioning type. 22534 version_type=$version_type 22535 22536 # Shared library runtime path variable. 22537 runpath_var=$runpath_var 22538 22539 # Shared library path variable. 22540 shlibpath_var=$shlibpath_var 22541 22542 # Is shlibpath searched before the hard-coded library search path? 22543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22544 22545 # Format of library name prefix. 22546 libname_spec=$lt_libname_spec 22547 22548 # List of archive names. First name is the real one, the rest are links. 22549 # The last name is the one that the linker finds with -lNAME 22550 library_names_spec=$lt_library_names_spec 22551 22552 # The coded name of the library, if different from the real name. 22553 soname_spec=$lt_soname_spec 22554 22555 # Permission mode override for installation of shared libraries. 22556 install_override_mode=$lt_install_override_mode 22557 22558 # Command to use after installation of a shared archive. 22559 postinstall_cmds=$lt_postinstall_cmds 22560 22561 # Command to use after uninstallation of a shared archive. 22562 postuninstall_cmds=$lt_postuninstall_cmds 22563 22564 # Commands used to finish a libtool library installation in a directory. 22565 finish_cmds=$lt_finish_cmds 22566 22567 # As "finish_cmds", except a single script fragment to be evaled but 22568 # not shown. 22569 finish_eval=$lt_finish_eval 22570 22571 # Whether we should hardcode library paths into libraries. 22572 hardcode_into_libs=$hardcode_into_libs 22573 22574 # Compile-time system search path for libraries. 22575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22576 22577 # Detected run-time system search path for libraries. 22578 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22579 22580 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22581 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22582 22583 # Whether dlopen is supported. 22584 dlopen_support=$enable_dlopen 22585 22586 # Whether dlopen of programs is supported. 22587 dlopen_self=$enable_dlopen_self 22588 22589 # Whether dlopen of statically linked programs is supported. 22590 dlopen_self_static=$enable_dlopen_self_static 22591 22592 # Commands to strip libraries. 22593 old_striplib=$lt_old_striplib 22594 striplib=$lt_striplib 22595 22596 22597 # The linker used to build libraries. 22598 LD=$lt_LD 22599 22600 # How to create reloadable object files. 22601 reload_flag=$lt_reload_flag 22602 reload_cmds=$lt_reload_cmds 22603 22604 # Commands used to build an old-style archive. 22605 old_archive_cmds=$lt_old_archive_cmds 22606 22607 # A language specific compiler. 22608 CC=$lt_compiler 22609 22610 # Is the compiler the GNU compiler? 22611 with_gcc=$GCC 22612 22613 # Compiler flag to turn off builtin functions. 22614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22615 22616 # Additional compiler flags for building library objects. 22617 pic_flag=$lt_lt_prog_compiler_pic 22618 22619 # How to pass a linker flag through the compiler. 22620 wl=$lt_lt_prog_compiler_wl 22621 22622 # Compiler flag to prevent dynamic linking. 22623 link_static_flag=$lt_lt_prog_compiler_static 22624 22625 # Does compiler simultaneously support -c and -o options? 22626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22627 22628 # Whether or not to add -lc for building shared libraries. 22629 build_libtool_need_lc=$archive_cmds_need_lc 22630 22631 # Whether or not to disallow shared libs when runtime libs are static. 22632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22633 22634 # Compiler flag to allow reflexive dlopens. 22635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22636 22637 # Compiler flag to generate shared objects directly from archives. 22638 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22639 22640 # Whether the compiler copes with passing no objects directly. 22641 compiler_needs_object=$lt_compiler_needs_object 22642 22643 # Create an old-style archive from a shared archive. 22644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22645 22646 # Create a temporary old-style archive to link instead of a shared archive. 22647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22648 22649 # Commands used to build a shared archive. 22650 archive_cmds=$lt_archive_cmds 22651 archive_expsym_cmds=$lt_archive_expsym_cmds 22652 22653 # Commands used to build a loadable module if different from building 22654 # a shared archive. 22655 module_cmds=$lt_module_cmds 22656 module_expsym_cmds=$lt_module_expsym_cmds 22657 22658 # Whether we are building with GNU ld or not. 22659 with_gnu_ld=$lt_with_gnu_ld 22660 22661 # Flag that allows shared libraries with undefined symbols to be built. 22662 allow_undefined_flag=$lt_allow_undefined_flag 22663 22664 # Flag that enforces no undefined symbols. 22665 no_undefined_flag=$lt_no_undefined_flag 22666 22667 # Flag to hardcode \$libdir into a binary during linking. 22668 # This must work even if \$libdir does not exist 22669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22670 22671 # Whether we need a single "-rpath" flag with a separated argument. 22672 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22673 22674 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22675 # DIR into the resulting binary. 22676 hardcode_direct=$hardcode_direct 22677 22678 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22679 # DIR into the resulting binary and the resulting library dependency is 22680 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22681 # library is relocated. 22682 hardcode_direct_absolute=$hardcode_direct_absolute 22683 22684 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22685 # into the resulting binary. 22686 hardcode_minus_L=$hardcode_minus_L 22687 22688 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22689 # into the resulting binary. 22690 hardcode_shlibpath_var=$hardcode_shlibpath_var 22691 22692 # Set to "yes" if building a shared library automatically hardcodes DIR 22693 # into the library and all subsequent libraries and executables linked 22694 # against it. 22695 hardcode_automatic=$hardcode_automatic 22696 22697 # Set to yes if linker adds runtime paths of dependent libraries 22698 # to runtime path list. 22699 inherit_rpath=$inherit_rpath 22700 22701 # Whether libtool must link a program against all its dependency libraries. 22702 link_all_deplibs=$link_all_deplibs 22703 22704 # Set to "yes" if exported symbols are required. 22705 always_export_symbols=$always_export_symbols 22706 22707 # The commands to list exported symbols. 22708 export_symbols_cmds=$lt_export_symbols_cmds 22709 22710 # Symbols that should not be listed in the preloaded symbols. 22711 exclude_expsyms=$lt_exclude_expsyms 22712 22713 # Symbols that must always be exported. 22714 include_expsyms=$lt_include_expsyms 22715 22716 # Commands necessary for linking programs (against libraries) with templates. 22717 prelink_cmds=$lt_prelink_cmds 22718 22719 # Commands necessary for finishing linking programs. 22720 postlink_cmds=$lt_postlink_cmds 22721 22722 # Specify filename containing input files. 22723 file_list_spec=$lt_file_list_spec 22724 22725 # How to hardcode a shared library path into an executable. 22726 hardcode_action=$hardcode_action 22727 22728 # ### END LIBTOOL CONFIG 22729 22730 _LT_EOF 22731 22732 cat <<'_LT_EOF' >> "$cfgfile" 22733 22734 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22735 22736 # func_munge_path_list VARIABLE PATH 22737 # ----------------------------------- 22738 # VARIABLE is name of variable containing _space_ separated list of 22739 # directories to be munged by the contents of PATH, which is string 22740 # having a format: 22741 # "DIR[:DIR]:" 22742 # string "DIR[ DIR]" will be prepended to VARIABLE 22743 # ":DIR[:DIR]" 22744 # string "DIR[ DIR]" will be appended to VARIABLE 22745 # "DIRP[:DIRP]::[DIRA:]DIRA" 22746 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22747 # "DIRA[ DIRA]" will be appended to VARIABLE 22748 # "DIR[:DIR]" 22749 # VARIABLE will be replaced by "DIR[ DIR]" 22750 func_munge_path_list () 22751 { 22752 case x$2 in 22753 x) 22754 ;; 22755 *:) 22756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22757 ;; 22758 x:*) 22759 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22760 ;; 22761 *::*) 22762 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22763 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22764 ;; 22765 *) 22766 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22767 ;; 22768 esac 22769 } 22770 22771 22772 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22773 func_cc_basename () 22774 { 22775 for cc_temp in $*""; do 22776 case $cc_temp in 22777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22779 \-*) ;; 22780 *) break;; 22781 esac 22782 done 22783 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22784 } 22785 22786 22787 # ### END FUNCTIONS SHARED WITH CONFIGURE 22788 22789 _LT_EOF 22790 22791 case $host_os in 22792 aix3*) 22793 cat <<\_LT_EOF >> "$cfgfile" 22794 # AIX sometimes has problems with the GCC collect2 program. For some 22795 # reason, if we set the COLLECT_NAMES environment variable, the problems 22796 # vanish in a puff of smoke. 22797 if test set != "${COLLECT_NAMES+set}"; then 22798 COLLECT_NAMES= 22799 export COLLECT_NAMES 22800 fi 22801 _LT_EOF 22802 ;; 22803 esac 22804 22805 22806 22807 ltmain=$ac_aux_dir/ltmain.sh 22808 22809 22810 # We use sed instead of cat because bash on DJGPP gets confused if 22811 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22812 # text mode, it properly converts lines to CR/LF. This bash problem 22813 # is reportedly fixed, but why not run on old versions too? 22814 $SED '$q' "$ltmain" >> "$cfgfile" \ 22815 || (rm -f "$cfgfile"; exit 1) 22816 22817 mv -f "$cfgfile" "$ofile" || 22818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22819 chmod +x "$ofile" 22820 22821 ;; 22822 22823 esac 22824 done # for ac_tag 22825 22826 22827 as_fn_exit 0 22828 _ACEOF 22829 ac_clean_files=$ac_clean_files_save 22830 22831 test $ac_write_fail = 0 || 22832 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22833 22834 22835 # configure is writing to config.log, and then calls config.status. 22836 # config.status does its own redirection, appending to config.log. 22837 # Unfortunately, on DOS this fails, as config.log is still kept open 22838 # by configure, so config.status won't be able to write to it; its 22839 # output is simply discarded. So we exec the FD to /dev/null, 22840 # effectively closing config.log, so it can be properly (re)opened and 22841 # appended to by config.status. When coming back to configure, we 22842 # need to make the FD available again. 22843 if test "$no_create" != yes; then 22844 ac_cs_success=: 22845 ac_config_status_args= 22846 test "$silent" = yes && 22847 ac_config_status_args="$ac_config_status_args --quiet" 22848 exec 5>/dev/null 22849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22850 exec 5>>config.log 22851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22852 # would make configure fail if this is the last instruction. 22853 $ac_cs_success || as_fn_exit 1 22854 fi 22855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22857 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22858 fi 22859 22860 22861